· 8 years ago · Nov 05, 2017, 05:42 PM
1webpackJsonp([2, 0], [function(t, e, a) {
2 "use strict";
3
4 function n(t) {
5 return t && t.__esModule ? t : {
6 "default": t
7 }
8 }
9 var r = a(30),
10 s = n(r),
11 i = a(11),
12 o = n(i),
13 u = a(494);
14 a(229);
15 var l = a(237),
16 c = n(l),
17 d = a(16),
18 f = n(d),
19 h = a(410),
20 p = n(h);
21 (0, u.sync)(f["default"], c["default"]);
22 var m = new o["default"]((0, s["default"])({
23 router: c["default"],
24 store: f["default"]
25 }, p["default"]));
26 m.$mount("#app"), window.app = m
27}, , , , , , , , function(t, e, a) {
28 "use strict";
29
30 function n(t) {
31 return t && t.__esModule ? t : {
32 "default": t
33 }
34 }
35
36 function r(t, e, a) {
37 (0, f["default"])((0, c["default"])({}, t, e), a)
38 }
39
40 function s() {
41 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
42 e = arguments[1];
43 r({
44 type: "error",
45 title: "Oops...",
46 text: "Something went wrong. Please try again.",
47 confirmButtonText: "OK",
48 html: !0
49 }, t, e)
50 }
51
52 function i(t) {
53 var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
54 r({
55 type: "success",
56 title: "Efectuat",
57 text: "Actiunea a fost efectuata cu succes.",
58 confirmButtonText: "OK",
59 html: !0
60 }, e, t)
61 }
62
63 function o(t) {
64 var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
65 r({
66 type: "warning",
67 title: "Confirmă acțiunea",
68 text: "Ești sigur că vrei să faci asta?",
69 showCancelButton: !0,
70 confirmButtonColor: "#e52c5a",
71 confirmButtonText: "Da",
72 cancelButtonText: "Nu",
73 showLoaderOnConfirm: !0,
74 html: !0
75 }, e, t)
76 }
77
78 function u(t) {
79 var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
80 r({
81 timer: 2500,
82 title: "404",
83 type: "warning",
84 showConfirmButton: !0,
85 text: "Pagina nu a fost găsită."
86 }, e, function() {
87 f["default"].close(), t && t()
88 })
89 }
90 Object.defineProperty(e, "__esModule", {
91 value: !0
92 });
93 var l = a(12),
94 c = n(l);
95 e.oops = s, e.success = i, e.confirm = o, e.missing = u;
96 var d = a(404),
97 f = n(d)
98}, , , , , , , , function(t, e, a) {
99 "use strict";
100
101 function n(t) {
102 if (t && t.__esModule) return t;
103 var e = {};
104 if (null != t)
105 for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
106 return e["default"] = t, e
107 }
108
109 function r(t) {
110 return t && t.__esModule ? t : {
111 "default": t
112 }
113 }
114 Object.defineProperty(e, "__esModule", {
115 value: !0
116 });
117 var s = a(11),
118 i = r(s),
119 o = a(39),
120 u = r(o),
121 l = a(245),
122 c = n(l),
123 d = a(246),
124 f = n(d),
125 h = a(247),
126 p = r(h);
127 i["default"].use(u["default"]), e["default"] = new u["default"].Store({
128 actions: c,
129 getters: f,
130 modules: {
131 auth: p["default"]
132 }
133 })
134}, , , , , , , , , , , , , function(t, e) {
135 "use strict";
136 Object.defineProperty(e, "__esModule", {
137 value: !0
138 }), e["default"] = {
139 data: function() {
140 return {
141 queryResults: {}
142 }
143 },
144 methods: {
145 runQuery: function(t) {
146 var e = this;
147 this.queryResults = {}, !t.query, t.post("/query").then(function(t) {
148 var a = t.data;
149 e.queryResults = a, e.form.successful = !1
150 })
151 }
152 }
153 }
154}, , , , , , , , , , , function(t, e, a) {
155 "use strict";
156
157 function n(t) {
158 return t && t.__esModule ? t : {
159 "default": t
160 }
161 }
162 Object.defineProperty(e, "__esModule", {
163 value: !0
164 }), e.DataTableMixin = e.DataTable = void 0;
165 var r = a(450),
166 s = n(r),
167 i = a(236),
168 o = n(i);
169 e.DataTable = s["default"], e.DataTableMixin = o["default"], e["default"] = s["default"]
170}, function(t, e, a) {
171 "use strict";
172
173 function n(t) {
174 return t && t.__esModule ? t : {
175 "default": t
176 }
177 }
178 Object.defineProperty(e, "__esModule", {
179 value: !0
180 });
181 var r = a(42),
182 s = n(r),
183 i = {
184 bus: null,
185 install: function(t) {
186 this.bus = new t, t.prototype.$event = this
187 },
188 emit: function(t) {
189 for (var e, a = arguments.length, n = Array(a > 1 ? a - 1 : 0), r = 1; r < a; r++) n[r - 1] = arguments[r];
190 return (e = this.bus).$emit.apply(e, [t].concat(n)), this
191 },
192 on: function() {
193 var t = this,
194 e = arguments;
195 return 2 === arguments.length ? this.bus.$on(arguments[0], arguments[1]) : (0, s["default"])(arguments[0]).forEach(function(a) {
196 t.bus.$on(a, e[0][a])
197 }), this
198 }
199 };
200 e["default"] = i
201}, , , , , , , , , , , , , , , , , function(t, e, a) {
202 "use strict";
203
204 function n(t) {
205 return t && t.__esModule ? t : {
206 "default": t
207 }
208 }
209
210 function r(t) {
211 var e = (0, i["default"])(t);
212 return '<span title="' + e.format(u) + '">' + e.format(o) + "</span>"
213 }
214 Object.defineProperty(e, "__esModule", {
215 value: !0
216 }), e["default"] = r;
217 var s = a(1),
218 i = n(s),
219 o = "MMM D, YYYY",
220 u = "MMM D, YYYY @ HH:mm"
221}, function(t, e) {
222 "use strict";
223 Object.defineProperty(e, "__esModule", {
224 value: !0
225 });
226 e.LOGOUT = "LOGOUT", e.SAVE_TOKEN = "SAVE_TOKEN", e.FETCH_USER = "FETCH_USER", e.FETCH_USER_SUCCESS = "FETCH_USER_SUCCESS", e.FETCH_USER_FAILURE = "FETCH_USER_FAILURE"
227}, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(t, e, a) {
228 "use strict";
229
230 function n(t) {
231 return t && t.__esModule ? t : {
232 "default": t
233 }
234 }
235 Object.defineProperty(e, "__esModule", {
236 value: !0
237 });
238 var r = a(39),
239 s = a(413),
240 i = n(s);
241 e["default"] = {
242 components: {
243 Navbar: i["default"]
244 },
245 computed: (0, r.mapGetters)({
246 user: "authUser",
247 authenticated: "authCheck"
248 }),
249 data: function() {
250 return {
251 title: null,
252 loading: !0,
253 preventStopLoading: !1,
254 appName: "BD App"
255 }
256 },
257 created: function() {
258 var t = this;
259 this.setDocTitle(), this.$event.on({
260 "loading.start": function(e) {
261 e && void 0 !== e.preventStop && (t.preventStopLoading = !0), t.loading = !0
262 },
263 "loading.done": function(e) {
264 e && void 0 !== e.preventStop && (t.preventStopLoading = !1), t.preventStopLoading || (t.loading = !1)
265 }
266 })
267 },
268 methods: {
269 pageTitle: function(t) {
270 this.title = t, this.setDocTitle()
271 },
272 setDocTitle: function() {
273 this.$route.title && (this.title = this.$route.title), document.title = this.title ? this.title + " - " + this.appName : this.appName
274 }
275 }
276 }
277}, function(t, e, a) {
278 "use strict";
279
280 function n(t) {
281 return t && t.__esModule ? t : {
282 "default": t
283 }
284 }
285 Object.defineProperty(e, "__esModule", {
286 value: !0
287 });
288 var r = a(42),
289 s = n(r);
290 e["default"] = {
291 data: function() {
292 return {
293 chapter: {},
294 chart: null
295 }
296 },
297 created: function() {
298 this.$event.emit("loading.start"), this.fetchStats()
299 },
300 methods: {
301 fetchStats: function() {
302 var t = this;
303 return this.$http.get("/chapters/" + this.$route.params.id + "?rate=true").then(function(e) {
304 var a = e.data;
305 t.chapter = a, t.buildChart(), t.$root.loading = !1
306 })
307 },
308 buildChart: function() {
309 var t = this,
310 e = [];
311 (0, s["default"])(this.chapter.not_solved_stats).map(function(a) {
312 return e.push({
313 x: a,
314 y: t.chapter.not_solved_stats[a]
315 })
316 });
317 var a = [];
318 (0, s["default"])(this.chapter.solved_stats).map(function(e) {
319 return a.push({
320 x: e,
321 y: t.chapter.solved_stats[e]
322 })
323 }), this.chart = [{
324 label: "Rezolvate",
325 color: "#26A69A",
326 data: a
327 }, {
328 label: "Nerezolvate",
329 color: "#EF5350",
330 data: e
331 }]
332 },
333 getSolveRate: function() {
334 try {
335 var t = 100 * this.chapter.solve_rate.solved / this.chapter.solve_rate.asked;
336 if (isNaN(t)) throw new Error;
337 return Math.floor(t)
338 } catch (e) {
339 return 0
340 }
341 },
342 getUserSolveRate: function() {
343 try {
344 var t = 100 * this.chapter.questions_solved.count / this.chapter.questions_answered.count;
345 if (isNaN(t)) throw new Error;
346 return Math.floor(t)
347 } catch (e) {
348 return 0
349 }
350 }
351 }
352 }
353}, function(t, e) {
354 "use strict";
355 Object.defineProperty(e, "__esModule", {
356 value: !0
357 }), e["default"] = {
358 data: function() {
359 return {
360 form: this.$form({
361 username: "",
362 password: "",
363 remember: !1
364 })
365 }
366 },
367 mounted: function() {
368 this.$root.loading = !1, this.$root.pageTitle("Autentificare"), this.$refs.username.focus()
369 },
370 methods: {
371 login: function() {
372 var t = this;
373 this.form.post("/login").then(function(e) {
374 var a = e.data;
375 t.$event.emit("loading.start"), t.$store.dispatch("saveToken", {
376 token: a.token,
377 remember: t.form.remember
378 }), t.$router.push("/")
379 })
380 }
381 }
382 }
383}, function(t, e, a) {
384 "use strict";
385
386 function n(t) {
387 return t && t.__esModule ? t : {
388 "default": t
389 }
390 }
391 Object.defineProperty(e, "__esModule", {
392 value: !0
393 });
394 var r = a(30),
395 s = n(r),
396 i = a(39),
397 o = a(416),
398 u = n(o);
399 e["default"] = {
400 components: {
401 AdminMenu: u["default"]
402 },
403 computed: (0, s["default"])({}, (0, i.mapGetters)({
404 user: "authUser",
405 authenticated: "authCheck"
406 }), {
407 admin: function() {
408 return this.$route.name && this.$route.name.startsWith("admin")
409 }
410 }),
411 methods: {
412 logout: function() {
413 this.$store.dispatch("logout"), this.$router.push("/login")
414 }
415 }
416 }
417}, function(t, e, a) {
418 "use strict";
419
420 function n(t) {
421 return t && t.__esModule ? t : {
422 "default": t
423 }
424 }
425 Object.defineProperty(e, "__esModule", {
426 value: !0
427 });
428 var r = a(29),
429 s = n(r),
430 i = a(8);
431 e["default"] = {
432 mixins: [s["default"]],
433 data: function() {
434 return {
435 question: null,
436 chapter: null,
437 evaluate: null,
438 correctResults: {},
439 canRunTest: !1,
440 form: this.$form({
441 query: ""
442 })
443 }
444 },
445 created: function() {
446 var t = this;
447 this.$event.emit("loading.start", {
448 preventStop: !0
449 }), this.fetchChapter().then(function() {
450 return t.fetchQuestion()
451 })
452 },
453 methods: {
454 fetchChapter: function() {
455 var t = this;
456 return this.$http.get("/chapters/" + this.$route.params.id + "?questions_count=true").then(function(e) {
457 var a = e.data;
458 return t.chapter = a
459 })["catch"](function() {
460 return (0, i.missing)(function() {
461 return t.$router.push({
462 name: "dashboard"
463 })
464 })
465 })
466 },
467 fetchQuestion: function() {
468 var t = this;
469 this.$http.get("/quiz/" + this.$route.params.id).then(function(e) {
470 var a = e.body;
471 t.question = a, t.canRunTest = !0
472 })["catch"](function(e) {
473 var a = e.status;
474 403 === a ? (0, i.missing)(function() {
475 return t.$router.push({
476 name: "user.questions"
477 })
478 }, {
479 text: "Trebuie să adaugi o întrebare pentru a continua!"
480 }) : 401 !== a && (0, i.missing)(function() {
481 return t.$router.push({
482 name: "dashboard"
483 })
484 }, {
485 text: "Nu mai exista întrebari pentru acest capitol."
486 })
487 }).then(function() {
488 return t.$event.emit("loading.done", {
489 preventStop: !1
490 })
491 })
492 },
493 save: function() {
494 var t = this;
495 this.form.post("/quiz/" + this.question.id).then(function(e) {
496 var a = e.body;
497 t.evaluate = a, t.queryResults = {}, t.canRunTest = !1
498 })
499 },
500 next: function() {
501 var t = this;
502 this.$event.emit("loading.start", {
503 preventStop: !0
504 }), this.clear(), this.fetchChapter().then(function() {
505 return t.fetchQuestion()
506 })
507 },
508 clear: function() {
509 this.evaluate = null, this.correctResults = {}, this.queryResults = {}, this.form.reset()
510 },
511 viewResults: function() {
512 this.queryResults = this.evaluate.userSet, this.correctResults = this.evaluate.correctSet
513 },
514 report: function() {
515 var t = this;
516 return this.question.report_resolved ? (0, i.oops)({
517 text: "Această întrebare a fost aprobată de un administrator și nu mai poate fi raportată."
518 }) : void(0, i.confirm)(function() {
519 t.$http.post("/quiz/report/" + t.question.id).then(function() {
520 return (0, i.success)(t.next())
521 })["catch"](function() {
522 return (0, i.oops)({
523 text: "Nu poti raporta o intrebare la care nu ai răspuns, sau pe care ai mai raportat-o."
524 })
525 })
526 }, {
527 text: "Ești sigur că vrei să raportezi intrebarea ?"
528 })
529 }
530 }
531 }
532}, function(t, e, a) {
533 "use strict";
534 Object.defineProperty(e, "__esModule", {
535 value: !0
536 });
537 var n = a(8);
538 e["default"] = {
539 created: function() {
540 this.$root.pageTitle("Administrare")
541 },
542 methods: {
543 reevaluate: function() {
544 var t = this;
545 (0, n.confirm)(function() {
546 t.$event.emit("loading.start"), t.$http.get("/admin/reevaluate").then(function(e) {
547 var a = e.data;
548 return (0, n.success)(function() {
549 return t.$event.emit("loading.done")
550 }, {
551 text: a.total + " intrebari au fost reevaluate."
552 })
553 })["catch"](function() {
554 (0, n.oops)({
555 text: "Eroare. Te rog incearca din nou."
556 })
557 })
558 })
559 }
560 }
561 }
562}, function(t, e) {
563 "use strict";
564 Object.defineProperty(e, "__esModule", {
565 value: !0
566 }), e["default"] = {
567 data: function() {
568 return {
569 tables: [],
570 form: this.$form({
571 query: ""
572 })
573 }
574 },
575 created: function() {
576 this.$root.pageTitle("Tabele"), this.$event.emit("loading.start"), this.fetch()
577 },
578 methods: {
579 fetch: function() {
580 var t = this;
581 this.$http.get("/admin/tables").then(function(e) {
582 var a = e.data;
583 return t.tables = a
584 })
585 },
586 drop: function(t) {
587 var e = this;
588 this.$http["delete"]("/admin/tables/" + t.name).then(function() {
589 return e.tables.splice(e.tables.indexOf(t), 1)
590 })
591 },
592 grant: function(t) {
593 this.update(t, !0)
594 },
595 revoke: function(t) {
596 this.update(t, !1)
597 },
598 update: function(t, e) {
599 this.$http.patch("/admin/tables/" + t.name, {
600 granted: e
601 }).then(function() {
602 return t.granted = e
603 })
604 },
605 store: function() {
606 var t = this;
607 this.form.post("/admin/tables").then(function() {
608 t.fetch(), t.form.reset(), t.form.clear()
609 })
610 }
611 }
612 }
613}, function(t, e, a) {
614 "use strict";
615
616 function n(t) {
617 return t && t.__esModule ? t : {
618 "default": t
619 }
620 }
621 Object.defineProperty(e, "__esModule", {
622 value: !0
623 });
624 var r = a(3),
625 s = n(r);
626 e["default"] = {
627 data: function() {
628 return {
629 form: this.$form({
630 name: "",
631 description: "",
632 color: "#" + Math.floor(16777215 * Math.random()).toString(16)
633 })
634 }
635 },
636 mounted: function() {
637 var t = this;
638 (0, s["default"])(this.$refs.modal).modal("show").on("shown.bs.modal", function() {
639 return t.$refs.name.focus()
640 }).on("hidden.bs.modal", function() {
641 return t.$router.push("/admin/chapters")
642 })
643 },
644 beforeDestroy: function() {
645 (0, s["default"])(this.$refs.modal).modal("hide")
646 },
647 methods: {
648 save: function() {
649 var t = this;
650 this.form.post("/admin/chapters").then(function(e) {
651 var a = e.data;
652 t.$event.emit("chapter.added", {
653 chapter: a
654 }), (0, s["default"])(t.$refs.modal).modal("hide")
655 })
656 }
657 }
658 }
659}, function(t, e, a) {
660 "use strict";
661
662 function n(t) {
663 return t && t.__esModule ? t : {
664 "default": t
665 }
666 }
667 Object.defineProperty(e, "__esModule", {
668 value: !0
669 });
670 var r = a(3),
671 s = n(r);
672 e["default"] = {
673 props: ["chapters"],
674 data: function() {
675 return {
676 form: this.$form({
677 name: "",
678 description: "",
679 color: ""
680 })
681 }
682 },
683 mounted: function() {
684 var t = this;
685 this.fetchCategory(), (0, s["default"])(this.$refs.modal).on("hidden.bs.modal", function() {
686 return t.$router.push("/admin/chapters")
687 })
688 },
689 beforeDestroy: function() {
690 (0, s["default"])(this.$refs.modal).modal("hide")
691 },
692 methods: {
693 save: function() {
694 var t = this;
695 this.form.patch("/admin/chapters/" + this.$route.params.id).then(function(e) {
696 var a = e.data;
697 t.$event.emit("chapter.updated", {
698 chapter: a
699 }), (0, s["default"])(t.$refs.modal).modal("hide")
700 })
701 },
702 fetchCategory: function() {
703 var t = this;
704 this.$http.get("/admin/chapters/" + this.$route.params.id).then(function(e) {
705 var a = e.data;
706 t.form.name = a.name, t.form.description = a.description, t.form.color = a.color, (0, s["default"])(t.$refs.modal).modal("show")
707 })["catch"](function() {
708 return t.$router.push("/admin/chapters")
709 })
710 }
711 }
712 }
713}, function(t, e, a) {
714 "use strict";
715
716 function n(t) {
717 return t && t.__esModule ? t : {
718 "default": t
719 }
720 }
721 Object.defineProperty(e, "__esModule", {
722 value: !0
723 });
724 var r = a(12),
725 s = n(r),
726 i = a(3),
727 o = n(i),
728 u = a(8);
729 e["default"] = {
730 data: function() {
731 return {
732 chapters: []
733 }
734 },
735 created: function() {
736 var t = this;
737 this.$root.pageTitle("Capitole"), this.fetchChapters(), this.$event.on("chapter.added", function(e) {
738 var a = e.chapter;
739 t.chapters.push(a)
740 }), this.$event.on("chapter.updated", function(e) {
741 var a = e.chapter,
742 n = t.chapters.find(function(t) {
743 return t.id == a.id
744 });
745 (0, s["default"])(n, a)
746 })
747 },
748 methods: {
749 fetchChapters: function() {
750 var t = this;
751 this.$event.emit("loading.start"), this.$http.get("/admin/chapters").then(function(e) {
752 var a = e.data;
753 t.chapters = a, t.$nextTick(function() {
754 return t.sortable()
755 })
756 })
757 },
758 destroy: function(t) {
759 var e = this;
760 (0, u.confirm)(function() {
761 e.$http["delete"]("/admin/chapters/" + t.id).then(function() {
762 return e.chapters.splice(e.chapters.indexOf(t), 1)
763 })
764 }, {
765 text: "Ești sigur că vrei să ștergi capitolul <b>" + t.name + "</b>?"
766 })
767 },
768 sortable: function() {
769 var t = this;
770 (0, o["default"])(this.$el).find("tbody").sortable({
771 axis: "y",
772 cursor: "move",
773 handle: ".column-name",
774 helper: function(t, e) {
775 return e.children().each(function() {
776 (0, o["default"])(this).width((0, o["default"])(this).width())
777 }), e
778 },
779 update: function(e) {
780 t.$http.post("/admin/chapters/order", {
781 items: (0, o["default"])(e.target).sortable("toArray")
782 })
783 }
784 })
785 }
786 }
787 }
788}, function(t, e, a) {
789 "use strict";
790
791 function n(t) {
792 return t && t.__esModule ? t : {
793 "default": t
794 }
795 }
796 Object.defineProperty(e, "__esModule", {
797 value: !0
798 });
799 var r = a(29),
800 s = n(r);
801 e["default"] = {
802 mixins: [s["default"]],
803 data: function() {
804 return {
805 chapters: [],
806 form: this.$form({
807 question: "",
808 query: "",
809 chapter: null
810 })
811 }
812 },
813 created: function() {
814 this.$event.emit("loading.start"), this.fetchChapters()
815 },
816 methods: {
817 fetchChapters: function() {
818 var t = this;
819 this.$http.get("/admin/chapters").then(function(e) {
820 var a = e.data;
821 return t.chapters = a
822 })
823 },
824 save: function() {
825 var t = this;
826 this.form.post("/admin/questions").then(function(e) {
827 e.data;
828 t.form.query = "", t.form.question = "", t.queryResults = {}
829 })
830 }
831 }
832 }
833}, function(t, e, a) {
834 "use strict";
835
836 function n(t) {
837 return t && t.__esModule ? t : {
838 "default": t
839 }
840 }
841 Object.defineProperty(e, "__esModule", {
842 value: !0
843 });
844 var r = a(29),
845 s = n(r);
846 e["default"] = {
847 mixins: [s["default"]],
848 data: function() {
849 return {
850 chapters: [],
851 question: null,
852 form: this.$form({
853 question: "",
854 query: null,
855 chapter: null,
856 report_resolved: !1
857 })
858 }
859 },
860 created: function() {
861 var t = this;
862 this.$event.emit("loading.start", {
863 preventStop: !0
864 }), this.fetchChapters().then(function() {
865 return t.fetchQuestion()
866 })
867 },
868 methods: {
869 fetchChapters: function() {
870 var t = this;
871 return this.$http.get("/admin/chapters").then(function(e) {
872 var a = e.data;
873 return t.chapters = a
874 })
875 },
876 fetchQuestion: function() {
877 var t = this;
878 this.$http.get("/admin/questions/" + this.$route.params.id).then(function(e) {
879 var a = e.data;
880 return t.fillForm(a)
881 }).then(function() {
882 return t.$event.emit("loading.done", {
883 preventStop: !1
884 })
885 })
886 },
887 save: function() {
888 var t = this;
889 this.form.patch("/admin/questions/" + this.$route.params.id).then(function(e) {
890 var a = e.data;
891 return t.fillForm(a)
892 })
893 },
894 fillForm: function(t) {
895 this.question = t, this.form.query = t.answer, this.form.question = t.question, this.form.chapter = t.chapter_id, this.form.report_resolved = t.report_resolved
896 }
897 }
898 }
899}, function(t, e, a) {
900 "use strict";
901
902 function n(t) {
903 return t && t.__esModule ? t : {
904 "default": t
905 }
906 }
907 Object.defineProperty(e, "__esModule", {
908 value: !0
909 });
910 var r = a(16),
911 s = (n(r), a(58)),
912 i = n(s),
913 o = a(40),
914 u = a(8),
915 l = function(t, e, a) {
916 return '<i class="fa fa-square m-r-xs" aria-hidden="true" style="color: ' + (a.chapter.color || "transparent") + ';"></i> ' + a.chapter.name
917 };
918 e["default"] = {
919 mixins: [o.DataTableMixin],
920 data: function() {
921 return {
922 url: "/api/admin/questions",
923 params: {
924 filter: "all"
925 },
926 columns: [{
927 name: "chapter.name",
928 data: "chapter.name",
929 title: "Capitol",
930 callback: l
931 }, {
932 name: "user.name",
933 title: "Utilizator",
934 callback: function(t, e, a) {
935 return a.user ? a.user.name : ""
936 }
937 }, {
938 name: "asked",
939 data: "asked",
940 title: "Întrebată"
941 }, {
942 name: "solved",
943 data: "solved",
944 title: "Rezolvată"
945 }, {
946 name: "created_at",
947 data: "created_at",
948 title: "Adăugată",
949 callback: i["default"],
950 searchable: !1
951 }, "__actions"],
952 itemActions: [{
953 title: "Editează",
954 icon: "fa fa-pencil",
955 "class": "action action-primary",
956 callback: [this, "edit"],
957 link: [this, "editLink"]
958 }, {
959 title: "Șterge",
960 icon: "fa fa-trash-o",
961 "class": "action action-danger",
962 callback: [this, "destroy"]
963 }]
964 }
965 },
966 created: function() {
967 var t = this;
968 this.$root.pageTitle("Întrebări"), this.addButtonDataTable(function() {
969 t.$router.push({
970 name: "admin.questions.create"
971 })
972 }, "Adaugă"), this.addFilterDataTable(function(e) {
973 t.params.filter = e, t.refreshDataTable()
974 })
975 },
976 methods: {
977 edit: function(t) {
978 var e = t.id;
979 this.$router.push({
980 name: "admin.questions.edit",
981 params: {
982 id: e
983 }
984 })
985 },
986 editLink: function(t) {
987 var e = t.id;
988 return "questions/" + e + "/edit"
989 },
990 destroy: function(t) {
991 var e = this,
992 a = t.id;
993 (0, u.confirm)(function() {
994 e.$http["delete"]("/admin/questions/" + a).then(function() {
995 return e.refreshDataTable()
996 })
997 }, {
998 text: "Ești sigur că vrei să ștergi această întrebare?"
999 })
1000 }
1001 }
1002 }
1003}, function(t, e) {
1004 "use strict";
1005 Object.defineProperty(e, "__esModule", {
1006 value: !0
1007 }), e["default"] = {
1008 props: ["form"],
1009 created: function() {}
1010 }
1011}, function(t, e) {
1012 "use strict";
1013 Object.defineProperty(e, "__esModule", {
1014 value: !0
1015 }), e["default"] = {
1016 props: ["form"]
1017 }
1018}, function(t, e, a) {
1019 "use strict";
1020
1021 function n(t) {
1022 return t && t.__esModule ? t : {
1023 "default": t
1024 }
1025 }
1026 Object.defineProperty(e, "__esModule", {
1027 value: !0
1028 });
1029 var r = a(42),
1030 s = n(r),
1031 i = a(3),
1032 o = n(i),
1033 u = a(424),
1034 l = n(u),
1035 c = a(427),
1036 d = n(c),
1037 f = a(425),
1038 h = n(f);
1039 e["default"] = {
1040 components: {
1041 General: l["default"],
1042 Steps: d["default"],
1043 Reports: h["default"]
1044 },
1045 data: function() {
1046 return {
1047 form: this.$form()
1048 }
1049 },
1050 mounted: function() {
1051 var t = this;
1052 this.$root.pageTitle("Setări"), this.fetchSettings(), (0, o["default"])(this.$el).find(".nav-tabs a").on("click", function() {
1053 t.form.clear()
1054 })
1055 },
1056 methods: {
1057 fetchSettings: function() {
1058 var t = this;
1059 this.$event.emit("loading.start"), this.$http.get("/admin/settings").then(function(e) {
1060 var a = e.data;
1061 (0, s["default"])(a).forEach(function(e) {
1062 t.$set(t.form, e, a[e])
1063 })
1064 })
1065 },
1066 save: function() {
1067 this.form.patch("/admin/settings")
1068 }
1069 }
1070 }
1071}, function(t, e, a) {
1072 "use strict";
1073 Object.defineProperty(e, "__esModule", {
1074 value: !0
1075 });
1076 var n = a(8);
1077 e["default"] = {
1078 props: ["value"],
1079 data: function() {
1080 return {
1081 form: this.$form({
1082 index: 0,
1083 step: 0
1084 })
1085 }
1086 },
1087 created: function() {},
1088 methods: {
1089 add: function() {
1090 var t = this.value.length ? this.value : [5];
1091 t.push(2 * t[t.length - 1]), this.update(t)
1092 },
1093 save: function() {
1094 this.form.clear();
1095 var t = this.value,
1096 e = parseInt(this.form.step),
1097 a = t[this.form.index - 1];
1098 e < 1 || a && e < a ? this.form.errors.set({
1099 step: "Numărul de întrebări trebuie sa fie cel puțin " + (a ? a + 1 : 1) + "."
1100 }) : (t[this.form.index] = e, this.update(t), $(this.$refs.modal).modal("hide"))
1101 },
1102 edit: function(t) {
1103 this.form.index = t >= 0 ? t : -1, this.form.step = this.value[t], $(this.$refs.modal).modal("show")
1104 },
1105 destroy: function(t) {
1106 var e = this;
1107 (0, n.confirm)(function() {
1108 var a = e.value;
1109 a.splice(t, 1), e.update(a)
1110 }, {
1111 text: "Ești sigur că vrei să ștergi pragul <b>#" + (t + 1) + "</b> ?"
1112 })
1113 },
1114 update: function(t) {
1115 this.$emit("input", t.slice(0)), this.$http.patch("/admin/settings", {
1116 steps: t
1117 })
1118 }
1119 }
1120 }
1121}, function(t, e, a) {
1122 "use strict";
1123
1124 function n(t) {
1125 return t && t.__esModule ? t : {
1126 "default": t
1127 }
1128 }
1129 Object.defineProperty(e, "__esModule", {
1130 value: !0
1131 });
1132 var r = a(3),
1133 s = n(r);
1134 e["default"] = {
1135 data: function() {
1136 return {
1137 form: this.$form({
1138 name: "",
1139 username: "",
1140 password: "",
1141 user_role: "user"
1142 })
1143 }
1144 },
1145 mounted: function() {
1146 var t = this;
1147 (0, s["default"])(this.$refs.modal).modal("show").on("shown.bs.modal", function() {
1148 return t.$refs.name.focus()
1149 }).on("hidden.bs.modal", function() {
1150 return t.$router.push("/admin/users")
1151 })
1152 },
1153 beforeDestroy: function() {
1154 (0, s["default"])(this.$refs.modal).modal("hide")
1155 },
1156 methods: {
1157 save: function() {
1158 var t = this;
1159 this.form.post("/admin/users").then(function(e) {
1160 var a = e.data;
1161 t.$event.emit("user.added", {
1162 user: a
1163 }), (0, s["default"])(t.$refs.modal).modal("hide")
1164 })
1165 }
1166 }
1167 }
1168}, function(t, e, a) {
1169 "use strict";
1170
1171 function n(t) {
1172 return t && t.__esModule ? t : {
1173 "default": t
1174 }
1175 }
1176 Object.defineProperty(e, "__esModule", {
1177 value: !0
1178 });
1179 var r = a(3),
1180 s = n(r);
1181 e["default"] = {
1182 data: function() {
1183 return {
1184 form: this.$form({
1185 name: "",
1186 username: "",
1187 password: "",
1188 user_role: "user"
1189 })
1190 }
1191 },
1192 mounted: function() {
1193 var t = this;
1194 this.fetchUser(), (0, s["default"])(this.$refs.modal).modal("show").on("hidden.bs.modal", function() {
1195 return t.$router.push("/admin/users")
1196 })
1197 },
1198 beforeDestroy: function() {
1199 (0, s["default"])(this.$refs.modal).modal("hide")
1200 },
1201 methods: {
1202 save: function() {
1203 var t = this;
1204 this.form.patch("/admin/users/" + this.$route.params.id).then(function(e) {
1205 var a = e.data;
1206 t.$event.emit("user.updated", {
1207 user: a
1208 }), (0, s["default"])(t.$refs.modal).modal("hide")
1209 })
1210 },
1211 fetchUser: function() {
1212 var t = this;
1213 this.$http.get("/admin/users/" + this.$route.params.id).then(function(e) {
1214 var a = e.data;
1215 t.form.name = a.name, t.form.user_role = a.user_role, t.form.username = a.username, (0, s["default"])(t.$refs.modal).modal("show")
1216 })["catch"](function() {
1217 return t.$router.push("/admin/users")
1218 })
1219 }
1220 }
1221 }
1222}, function(t, e, a) {
1223 "use strict";
1224
1225 function n(t) {
1226 return t && t.__esModule ? t : {
1227 "default": t
1228 }
1229 }
1230 Object.defineProperty(e, "__esModule", {
1231 value: !0
1232 });
1233 var r = a(16),
1234 s = (n(r), a(58)),
1235 i = n(s),
1236 o = a(40),
1237 u = a(8);
1238 e["default"] = {
1239 mixins: [o.DataTableMixin],
1240 data: function() {
1241 return {
1242 columns: [{
1243 name: "name",
1244 data: "name",
1245 title: "Nume"
1246 }, {
1247 name: "username",
1248 data: "username",
1249 title: "Username"
1250 }, {
1251 name: "user_role",
1252 data: "user_role",
1253 title: "Rol"
1254 }, {
1255 name: "questions_count",
1256 data: "questions_count",
1257 title: "Întrebări postate",
1258 searchable: !1
1259 }, {
1260 name: "answers_count",
1261 data: "answers_count",
1262 title: "Întrebări răspunse",
1263 searchable: !1
1264 }, {
1265 name: "solved_answers_count",
1266 data: "solved_answers_count",
1267 title: "Întrebări rezolvate",
1268 searchable: !1
1269 }, {
1270 name: "created_at",
1271 data: "created_at",
1272 title: "ÃŽntregistrat",
1273 callback: i["default"]
1274 }, "__actions"],
1275 itemActions: [{
1276 title: "Răspunsuri",
1277 icon: "fa fa-eye",
1278 "class": "action action-primary",
1279 callback: [this, "view"]
1280 }, {
1281 title: "Editează",
1282 icon: "fa fa-pencil",
1283 "class": "action action-primary",
1284 callback: [this, "edit"]
1285 }, {
1286 title: "Șterge",
1287 icon: "fa fa-trash-o",
1288 "class": "action action-danger",
1289 callback: [this, "destroy"]
1290 }]
1291 }
1292 },
1293 created: function() {
1294 var t = this;
1295 this.$root.pageTitle("Utilizatori"), this.addButtonDataTable(function() {
1296 t.$router.push("/admin/users/create")
1297 }, "Adaugă"), this.$event.on("user.added", function() {
1298 return t.refreshDataTable()
1299 }), this.$event.on("user.updated", function() {
1300 return t.refreshDataTable()
1301 })
1302 },
1303 methods: {
1304 view: function(t) {
1305 var e = t.id;
1306 this.$router.push({
1307 name: "admin.users.chapters",
1308 params: {
1309 id: e
1310 }
1311 })
1312 },
1313 edit: function(t) {
1314 var e = t.id;
1315 this.$router.push({
1316 name: "admin.users.edit",
1317 params: {
1318 id: e
1319 }
1320 })
1321 },
1322 destroy: function(t) {
1323 var e = this,
1324 a = t.id,
1325 n = t.name;
1326 (0, u.confirm)(function() {
1327 e.$http["delete"]("/admin/users/" + a).then(function() {
1328 return e.refreshDataTable()
1329 })
1330 }, {
1331 text: "Ești sigur că vrei să ștergi utilizatorul <b>" + n + "</b>?"
1332 })
1333 }
1334 }
1335 }
1336}, function(t, e) {
1337 "use strict";
1338 Object.defineProperty(e, "__esModule", {
1339 value: !0
1340 }), e["default"] = {
1341 props: ["chapter"],
1342 computed: {
1343 description: function a() {
1344 for (var t = 10, e = 200, a = this.getNWords(this.chapter.description, t); a.length + 4 > e;) a = this.getNWords(this.chapter.description, --t);
1345 return this.getWordsCount(this.chapter.description) > t && (a += "..."), a
1346 }
1347 },
1348 methods: {
1349 getNWords: function(t, e) {
1350 return t.split(/\s+/).slice(0, e).join(" ")
1351 },
1352 getWordsCount: function(t) {
1353 return t.split(/\s+/).length
1354 }
1355 }
1356 }
1357}, function(t, e) {
1358 "use strict";
1359 Object.defineProperty(e, "__esModule", {
1360 value: !0
1361 }), e["default"] = {
1362 data: function() {
1363 return {
1364 user: {},
1365 chapters: []
1366 }
1367 },
1368 computed: {
1369 chapterName: function() {
1370 var t = this,
1371 e = this.chapters.find(function(e) {
1372 return e.id === +t.$route.params.cid
1373 });
1374 return e ? e.name : ""
1375 }
1376 },
1377 created: function() {
1378 this.$root.pageTitle("Dashboard"), this.$event.emit("loading.start", {
1379 preventStop: !0
1380 }), this.fetchUser(), this.fetchChapters()
1381 },
1382 methods: {
1383 fetchUser: function() {
1384 var t = this;
1385 return this.$http.get("/admin/users/" + this.$route.params.id).then(function(e) {
1386 var a = e.data;
1387 return t.user = a
1388 })
1389 },
1390 fetchChapters: function() {
1391 var t = this;
1392 return this.$http.get("/admin/users/" + this.$route.params.id + "/chapters").then(function(e) {
1393 var a = e.data;
1394 return t.chapters = a
1395 })
1396 }
1397 }
1398 }
1399}, function(t, e) {
1400 "use strict";
1401 Object.defineProperty(e, "__esModule", {
1402 value: !0
1403 }), e["default"] = {
1404 props: ["user", "chapters"],
1405 data: function() {
1406 return {
1407 answers: []
1408 }
1409 },
1410 created: function() {
1411 var t = this;
1412 this.$root.pageTitle("Dashboard"), this.fetchAnswers().then(function() {
1413 return t.$event.emit("loading.done", {
1414 preventStop: !1
1415 })
1416 })
1417 },
1418 methods: {
1419 fetchAnswers: function() {
1420 var t = this;
1421 return this.$event.emit("loading.start"), this.$http.get("/admin/users/" + this.$route.params.id + "/chapters/" + this.$route.params.cid + "/answers").then(function(e) {
1422 var a = e.data;
1423 return t.answers = a
1424 })
1425 },
1426 compare: function(t) {
1427 var e = this;
1428 this.$set(t, "loading", !0), this.$http.get("/admin/results/" + t.id).then(function(a) {
1429 var n = a.data;
1430 e.$set(t, "userSet", n.userSet), e.$set(t, "correctSet", n.correctSet)
1431 }).then(function() {
1432 return e.$set(t, "loading", !1)
1433 })
1434 }
1435 }
1436 }
1437}, function(t, e, a) {
1438 "use strict";
1439
1440 function n(t) {
1441 return t && t.__esModule ? t : {
1442 "default": t
1443 }
1444 }
1445 Object.defineProperty(e, "__esModule", {
1446 value: !0
1447 });
1448 var r = a(431),
1449 s = n(r);
1450 e["default"] = {
1451 components: {
1452 ChapterCard: s["default"]
1453 },
1454 props: ["user", "chapters"],
1455 created: function() {
1456 this.$root.pageTitle("Dashboard"), this.$event.emit("loading.done", {
1457 preventStop: !1
1458 })
1459 }
1460 }
1461}, function(t, e, a) {
1462 "use strict";
1463
1464 function n(t) {
1465 return t && t.__esModule ? t : {
1466 "default": t
1467 }
1468 }
1469 Object.defineProperty(e, "__esModule", {
1470 value: !0
1471 });
1472 var r = a(30),
1473 s = n(r),
1474 i = a(349),
1475 o = n(i),
1476 u = a(39);
1477 e["default"] = {
1478 props: {
1479 text: String
1480 },
1481 data: function() {
1482 return {
1483 ctx: null,
1484 font: "Roboto",
1485 fontSize: "16",
1486 lineHeight: 1.42
1487 }
1488 },
1489 computed: (0, s["default"])({}, (0, u.mapGetters)({
1490 authToken: "authToken"
1491 })),
1492 mounted: function() {
1493 this.$el.width = this.$el.parentNode.clientWidth, this.ctx = this.$el.getContext("2d"), this.draw(this.dText(), this.$el.width), this.definition = HTMLCanvasElement.prototype.toDataURL = function() {}, this.$el.addEventListener("contextmenu", this.context), window.addEventListener("resize", this.resize)
1494 },
1495 beforeDestroy: function() {
1496 HTMLCanvasElement.prototype.toDataURL = this.definition, this.$el.removeEventListener("contextmenu", this.context), window.removeEventListener("resize", this.resize)
1497 },
1498 methods: {
1499 dText: function() {
1500 var t = atob(this.text).split(":");
1501 var result = o["default"].enc.Utf8.stringify(o["default"].AES.decrypt(o["default"].lib.CipherParams.create({
1502 ciphertext: o["default"].enc.Base64.parse(t[0])
1503 }), o["default"].PBKDF2("0000", btoa(this.authToken), {
1504 keySize: 8,
1505 iterations: 1e3,
1506 hasher: o["default"].algo.SHA256
1507 }), {
1508 iv: o["default"].enc.Hex.parse(t[1])
1509 }));
1510 console.log(result);
1511 return result;
1512 },
1513 context: function(t) {
1514 t.preventDefault()
1515 },
1516 resize: function() {
1517 this.$el.width != this.$el.parentNode.clientWidth && this.draw(this.dText(), this.$el.parentNode.clientWidth)
1518 },
1519 draw: function(t, e) {
1520 var a = this;
1521 this.ctx.canvas.width = e, this.ctx.font = this.fontSize + "px " + this.font;
1522 var n = this.fragmentText(t, e);
1523 this.ctx.canvas.height = n.length * Math.ceil(this.fontSize * this.lineHeight) + 5, this.ctx.clearRect(0, 0, e, this.ctx.canvas.height), this.ctx.save(), this.ctx.font = this.fontSize + "px " + this.font, n.forEach(function(t, e) {
1524 a.ctx.fillText(t, 0, (e + 1) * Math.ceil(a.fontSize * a.lineHeight))
1525 }), this.ctx.restore()
1526 },
1527 fragmentText: function(t, e) {
1528 var a = t.split(" "),
1529 n = [],
1530 r = "";
1531 if (this.ctx.measureText(t).width < e) return [t];
1532 for (; a.length > 0;) {
1533 for (; this.ctx.measureText(a[0]).width >= e;) {
1534 var s = a[0];
1535 a[0] = s.slice(0, -1), a.length > 1 ? a[1] = s.slice(-1) + a[1] : a.push(s.slice(-1))
1536 }
1537 this.ctx.measureText(r + a[0]).width < e ? r += a.shift() + " " : (n.push(r), r = ""), 0 === a.length && n.push(r)
1538 }
1539 return n
1540 }
1541 }
1542 }
1543}, function(t, e, a) {
1544 "use strict";
1545
1546 function n(t) {
1547 return t && t.__esModule ? t : {
1548 "default": t
1549 }
1550 }
1551 Object.defineProperty(e, "__esModule", {
1552 value: !0
1553 });
1554 var r = a(12),
1555 s = n(r),
1556 i = a(255),
1557 o = n(i);
1558 e["default"] = {
1559 props: {
1560 config: Array
1561 },
1562 data: function() {
1563 return {}
1564 },
1565 watch: {
1566 config: function(t) {
1567 t && this.initialize(t)
1568 }
1569 },
1570 mounted: function() {
1571 var t = this;
1572 this.$nextTick(function() {
1573 return t.initialize(t.config)
1574 })
1575 },
1576 methods: {
1577 initialize: function(t) {
1578 var e = this,
1579 a = this.getBaseConfig();
1580 t.forEach(function(t) {
1581 var n = e.getDatasetConfig(t.color);
1582 (0, s["default"])(n, {
1583 label: t.label,
1584 data: t.data
1585 }), a.data.datasets.push(n)
1586 }), new o["default"](this.$el, a)
1587 },
1588 getBaseConfig: function() {
1589 return {
1590 type: "line",
1591 data: {
1592 datasets: []
1593 },
1594 options: {
1595 scales: {
1596 xAxes: [{
1597 type: "linear",
1598 position: "bottom"
1599 }]
1600 },
1601 tooltips: {
1602 callbacks: {
1603 title: function() {
1604 return ""
1605 },
1606 label: function(t, e) {
1607 var a = 1 == t.yLabel ? "utilizator a" : "utilizatori au",
1608 n = 1 == t.xLabel ? "întrebare" : "întrebări",
1609 r = 0 == t.datasetIndex ? "corect" : "greșit";
1610 return t.yLabel + " " + a + " răspuns " + r + " la " + t.xLabel + " " + n
1611 }
1612 }
1613 }
1614 }
1615 }
1616 },
1617 getDatasetConfig: function(t) {
1618 return {
1619 fill: !1,
1620 lineTension: .1,
1621 backgroundColor: t,
1622 borderColor: t,
1623 borderCapStyle: "butt",
1624 borderDash: [],
1625 borderDashOffset: 0,
1626 borderJoinStyle: "miter",
1627 pointBorderColor: t,
1628 pointBackgroundColor: "#fff",
1629 pointBorderWidth: 1,
1630 pointHoverRadius: 5,
1631 pointHoverBackgroundColor: t,
1632 pointHoverBorderColor: t,
1633 pointHoverBorderWidth: 2,
1634 pointRadius: 1,
1635 pointHitRadius: 10,
1636 spanGaps: !1
1637 }
1638 }
1639 }
1640 }
1641}, function(t, e) {
1642 "use strict";
1643 Object.defineProperty(e, "__esModule", {
1644 value: !0
1645 }), e["default"] = {
1646 props: {
1647 title: String,
1648 loading: Boolean,
1649 center: Boolean
1650 }
1651 }
1652}, function(t, e, a) {
1653 "use strict";
1654
1655 function n(t) {
1656 return t && t.__esModule ? t : {
1657 "default": t
1658 }
1659 }
1660 Object.defineProperty(e, "__esModule", {
1661 value: !0
1662 });
1663 var r = a(238),
1664 s = n(r);
1665 e["default"] = {
1666 props: ["value"],
1667 data: function() {
1668 return {
1669 editor: null,
1670 query: ""
1671 }
1672 },
1673 watch: {
1674 value: function(t) {
1675 this.query = t, "" === t && this.editor.setValue("")
1676 }
1677 },
1678 mounted: function() {
1679 var t = this;
1680 this.$nextTick(function() {
1681 return t.initialize()
1682 })
1683 },
1684 methods: {
1685 initialize: function() {
1686 var t = this;
1687 this.editor = (0, s["default"])(this.$el), this.editor.setValue(this.value), this.editor.on("change", function(e) {
1688 t.$emit("input", e.getValue())
1689 })
1690 }
1691 }
1692 }
1693}, function(t, e) {
1694 "use strict";
1695 Object.defineProperty(e, "__esModule", {
1696 value: !0
1697 }), e["default"] = {
1698 props: ["results", "correct"],
1699 data: function() {
1700 return {
1701 id: Math.round(1e4 * Math.random())
1702 }
1703 },
1704 mounted: function() {
1705 this.results && this.results.columns && this.correct && this.correct.columns && this.diff(this.results, this.correct)
1706 },
1707 methods: {
1708 diff: function(t, e) {
1709 var a = e.rows.map(function(t) {
1710 return t
1711 }),
1712 n = t.rows.map(function(t) {
1713 return t
1714 });
1715 a.unshift(e.columns), n.unshift(t.columns), e = new daff.TableView(a), t = new daff.TableView(n);
1716 var r = daff.compareTables(t, e).align(),
1717 s = [],
1718 i = new daff.TableView(s),
1719 o = new daff.CompareFlags,
1720 u = new daff.TableDiff(r, o);
1721 u.hilite(i), i.data = i.data.map(function(t) {
1722 return t.map(function(t) {
1723 return null === t ? "" : t ? t.replace(/\s/g, '<span class="space"> </span>') : t
1724 })
1725 });
1726 var l = new daff.DiffRender;
1727 l.render(i);
1728 var c = $(l.html()).addClass("table table-striped table-bordered");
1729 $(this.$refs.difference).html(c)
1730 }
1731 }
1732 }
1733}, function(t, e, a) {
1734 "use strict";
1735
1736 function n(t) {
1737 return t && t.__esModule ? t : {
1738 "default": t
1739 }
1740 }
1741 Object.defineProperty(e, "__esModule", {
1742 value: !0
1743 });
1744 var r = a(3),
1745 s = n(r);
1746 e["default"] = {
1747 props: {
1748 value: {},
1749 options: {
1750 type: Array,
1751 "default": function() {
1752 return []
1753 }
1754 },
1755 multiple: Boolean,
1756 valueField: {
1757 "default": function() {
1758 return "id"
1759 }
1760 },
1761 labelField: {
1762 "default": function() {
1763 return "name"
1764 }
1765 },
1766 searchField: {
1767 "default": function() {
1768 return ["name"]
1769 }
1770 },
1771 tags: Boolean,
1772 closeAfterSelect: Boolean,
1773 placeholder: String,
1774 maxItems: Number
1775 },
1776 data: function() {
1777 return {
1778 $select: null,
1779 selected: []
1780 }
1781 },
1782 watch: {
1783 options: function(t) {
1784 this.$select.options = t, this.init()
1785 }
1786 },
1787 mounted: function() {
1788 this.init()
1789 },
1790 methods: {
1791 init: function() {
1792 var t = this;
1793 null != this.$select && this.$select.destroy();
1794 var e = (0, s["default"])(this.$el).selectize(this.constructOptions());
1795 this.$select = e[0].selectize, this.$select.on("change", function() {
1796 var e = t.$select.items;
1797 t.multiple || (e = e.length > 0 ? e[0] : null), t.$emit("input", e)
1798 })
1799 },
1800 constructOptions: function() {
1801 var t = this,
1802 e = {
1803 highlight: !1,
1804 options: this.options,
1805 maxItems: this.maxItems,
1806 valueField: this.valueField,
1807 labelField: this.labelField,
1808 searchField: this.searchField,
1809 closeAfterSelect: this.closeAfterSelect,
1810 items: this.multiple ? this.value : [this.value],
1811 plugins: ["remove_button"]
1812 };
1813 return this.tags && (e.persist = !1, e.create = function(e) {
1814 var a = {};
1815 return a[t.valueField] = e, a[t.labelField] = e, a
1816 }), e
1817 }
1818 }
1819 }
1820}, function(t, e) {
1821 "use strict";
1822 Object.defineProperty(e, "__esModule", {
1823 value: !0
1824 }), e["default"] = {
1825 props: {
1826 text: String
1827 },
1828 computed: {
1829 output: function() {
1830 var t = '<span class="space"> </span>';
1831 return this.text ? this.text.replace(/\s/g, t) : this.text
1832 }
1833 }
1834 }
1835}, function(t, e) {
1836 "use strict";
1837 Object.defineProperty(e, "__esModule", {
1838 value: !0
1839 }), e["default"] = {
1840 data: function() {
1841 return {
1842 active: !1,
1843 tables: []
1844 }
1845 },
1846 created: function() {
1847 this.fetch()
1848 },
1849 methods: {
1850 fetch: function() {
1851 var t = this;
1852 this.$http.get("/tables").then(function(e) {
1853 var a = e.data;
1854 a.forEach(function(t) {
1855 return t.active = !1
1856 }), t.tables = a
1857 })
1858 }
1859 }
1860 }
1861}, function(t, e) {
1862 "use strict";
1863 Object.defineProperty(e, "__esModule", {
1864 value: !0
1865 }), e["default"] = {
1866 props: ["chapter"],
1867 computed: {
1868 description: function a() {
1869 for (var t = 10, e = 200, a = this.getNWords(this.chapter.description, t); a.length + 4 > e;) a = this.getNWords(this.chapter.description, --t);
1870 return this.getWordsCount(this.chapter.description) > t && (a += "..."), a
1871 }
1872 },
1873 methods: {
1874 getNWords: function(t, e) {
1875 return t.split(/\s+/).slice(0, e).join(" ")
1876 },
1877 getWordsCount: function(t) {
1878 return t.split(/\s+/).length
1879 }
1880 }
1881 }
1882}, function(t, e, a) {
1883 "use strict";
1884
1885 function n(t) {
1886 return t && t.__esModule ? t : {
1887 "default": t
1888 }
1889 }
1890 Object.defineProperty(e, "__esModule", {
1891 value: !0
1892 });
1893 var r = a(443),
1894 s = n(r);
1895 e["default"] = {
1896 components: {
1897 ChapterCard: s["default"]
1898 },
1899 data: function() {
1900 return {
1901 chapters: []
1902 }
1903 },
1904 created: function() {
1905 this.$root.pageTitle("Dashboard"), this.fetchChapters()
1906 },
1907 methods: {
1908 fetchChapters: function() {
1909 var t = this;
1910 this.$event.emit("loading.start"), this.$http.get("/chapters").then(function(e) {
1911 var a = e.data;
1912 return t.chapters = a
1913 })
1914 }
1915 }
1916 }
1917}, function(t, e, a) {
1918 "use strict";
1919
1920 function n(t) {
1921 return t && t.__esModule ? t : {
1922 "default": t
1923 }
1924 }
1925 Object.defineProperty(e, "__esModule", {
1926 value: !0
1927 });
1928 var r = a(29),
1929 s = n(r);
1930 e["default"] = {
1931 mixins: [s["default"]],
1932 data: function() {
1933 return {
1934 chapters: [],
1935 maxQuestionLength: window.config.maxQuestionLength,
1936 form: this.$form({
1937 question: "",
1938 query: "",
1939 chapter: null
1940 })
1941 }
1942 },
1943 computed: {
1944 remainingChars: function() {
1945 var t = this.maxQuestionLength - this.form.question.length - (this.form.question.match(/\n/g) || []).length;
1946 return t > 0 ? t : 0
1947 }
1948 },
1949 created: function() {
1950 this.$root.pageTitle("Adaugă întrebare"), this.$event.emit("loading.start"), this.fetchChapters()
1951 },
1952 methods: {
1953 fetchChapters: function() {
1954 var t = this;
1955 this.$http.get("/user/chapters").then(function(e) {
1956 var a = e.data;
1957 return t.chapters = a
1958 })
1959 },
1960 save: function() {
1961 var t = this;
1962 this.form.post("/user/questions").then(function(e) {
1963 e.data;
1964 t.form.query = "", t.form.question = "", t.queryResults = {}, t.fetchChapters()
1965 })
1966 }
1967 }
1968 }
1969}, function(t, e, a) {
1970 "use strict";
1971
1972 function n(t) {
1973 return t && t.__esModule ? t : {
1974 "default": t
1975 }
1976 }
1977 Object.defineProperty(e, "__esModule", {
1978 value: !0
1979 });
1980 var r = a(447),
1981 s = n(r);
1982 e["default"] = {
1983 components: {
1984 QuestionPanel: s["default"]
1985 },
1986 data: function() {
1987 return {
1988 questions: []
1989 }
1990 },
1991 created: function() {
1992 var t = this;
1993 this.$root.pageTitle("Întrebările mele"), this.fetchQuestions(), this.$on("questionDeleted", function() {
1994 return t.fetchQuestions()
1995 })
1996 },
1997 computed: {
1998 oddQuestions: function() {
1999 return this.questions.filter(function(t, e) {
2000 return (e + 1) % 2 !== 0
2001 })
2002 },
2003 evenQuestions: function() {
2004 return this.questions.filter(function(t, e) {
2005 return (e + 1) % 2 === 0
2006 })
2007 }
2008 },
2009 methods: {
2010 fetchQuestions: function() {
2011 var t = this;
2012 this.$event.emit("loading.start"), this.$http.get("/user/questions").then(function(e) {
2013 var a = e.data;
2014 t.questions = a
2015 })
2016 }
2017 }
2018 }
2019}, function(t, e, a) {
2020 "use strict";
2021 Object.defineProperty(e, "__esModule", {
2022 value: !0
2023 });
2024 var n = a(8);
2025 e["default"] = {
2026 props: ["question"],
2027 computed: {
2028 canBeDeleted: function() {
2029 return this.question["delete"].canBeDeleted
2030 },
2031 needToAddQuestion: function() {
2032 return this.question["delete"].needToAddQuestion
2033 },
2034 canDelete: function() {
2035 return this.question["delete"].canDelete
2036 }
2037 },
2038 methods: {
2039 destroy: function() {
2040 var t = this;
2041 (0, n.confirm)(function() {
2042 t.$http["delete"]("/user/questions/" + t.question.id).then(function() {
2043 t.$parent.$emit("questionDeleted", {
2044 question: t.question
2045 })
2046 })
2047 }, {
2048 text: "Ești sigur că vrei să ștergi această întrebare?"
2049 })
2050 }
2051 }
2052 }
2053}, function(t, e) {
2054 "use strict";
2055 Object.defineProperty(e, "__esModule", {
2056 value: !0
2057 }), e["default"] = {
2058 data: function() {
2059 return {
2060 form: this.$form({
2061 password: "",
2062 current_password: "",
2063 password_confirmation: ""
2064 })
2065 }
2066 },
2067 methods: {
2068 save: function() {
2069 var t = this;
2070 this.form.patch("/user/password").then(function() {
2071 return t.form.reset()
2072 })
2073 }
2074 }
2075 }
2076}, function(t, e, a) {
2077 "use strict";
2078
2079 function n(t) {
2080 return t && t.__esModule ? t : {
2081 "default": t
2082 }
2083 }
2084 Object.defineProperty(e, "__esModule", {
2085 value: !0
2086 });
2087 var r = a(3),
2088 s = n(r),
2089 i = a(448),
2090 o = n(i);
2091 e["default"] = {
2092 components: {
2093 Password: o["default"]
2094 },
2095 mounted: function() {
2096 this.$root.pageTitle("Setări"), (0, s["default"])(this.$el).find('[data-toggle="tab"]').on("click", function(t) {
2097 t.preventDefault(), (0, s["default"])(this).tab("show")
2098 })
2099 }
2100 }
2101}, function(t, e, a) {
2102 "use strict";
2103
2104 function n(t) {
2105 return t && t.__esModule ? t : {
2106 "default": t
2107 }
2108 }
2109 Object.defineProperty(e, "__esModule", {
2110 value: !0
2111 });
2112 var r = a(12),
2113 s = n(r),
2114 i = a(30),
2115 o = n(i),
2116 u = a(3),
2117 l = n(u),
2118 c = a(16),
2119 d = n(c),
2120 f = "datatable.";
2121 e["default"] = {
2122 props: {
2123 wrapperClass: String,
2124 tableClass: {
2125 type: String,
2126 "default": function() {
2127 return "table table-bordered table-striped table-hover dtr-inline"
2128 }
2129 },
2130 columns: Array,
2131 url: String,
2132 params: {
2133 type: Object,
2134 "default": function() {}
2135 },
2136 perPage: {
2137 type: Number,
2138 "default": function() {
2139 return 20
2140 }
2141 },
2142 lengthMenu: {
2143 type: Array,
2144 "default": function() {
2145 return [10, 20, 50, 75, 100]
2146 }
2147 },
2148 actions: {
2149 type: Array,
2150 "default": function() {
2151 return []
2152 }
2153 },
2154 serverSide: {
2155 type: Boolean,
2156 "default": function() {
2157 return !0
2158 }
2159 },
2160 initOnStart: {
2161 type: Boolean,
2162 "default": function() {
2163 return !0
2164 }
2165 },
2166 language: {
2167 type: Object,
2168 "default": function() {
2169 return {
2170 search: "_INPUT_",
2171 searchPlaceholder: "Caută...",
2172 lengthMenu: "_MENU_",
2173 zeroRecords: "Nici un rezultat găsit.",
2174 emptyTable: "Nici un rezultat.",
2175 info: "_START_ - _END_ din _TOTAL_ rezultate",
2176 infoEmpty: "",
2177 infoFiltered: "",
2178 paginate: {
2179 previous: "«",
2180 next: "»"
2181 }
2182 }
2183 }
2184 },
2185 order: {
2186 type: Array,
2187 "default": function() {
2188 return []
2189 }
2190 },
2191 responsive: {
2192 type: Boolean,
2193 "default": function() {
2194 return !0
2195 }
2196 },
2197 options: {
2198 type: Array,
2199 "default": function() {
2200 return []
2201 }
2202 }
2203 },
2204 data: function() {
2205 return {
2206 table: null
2207 }
2208 },
2209 mounted: function() {
2210 var t = this;
2211 this.$root.$on(f + "init", function() {
2212 return t.initDataTable()
2213 }), this.$root.$on(f + "refresh", function() {
2214 t.table.settings()[0].ajax.data = (0, o["default"])({}, t.table.settings()[0].ajax.data, t.params), t.table.draw()
2215 }), this.normalizeColumns(), this.initOnStart && this.initDataTable()
2216 },
2217 methods: {
2218 initDataTable: function() {
2219 var t = (0, l["default"])(this.$refs.table),
2220 e = (0, s["default"])({}, this.options, this.defaults());
2221 this.enhanceColumns(e.columns), this.table = t.DataTable(e), this.actionsEvents(), this.$root.$emit(f + "ready", t, this.table), this.$emit("ready", t, this.table)
2222 },
2223 normalizeColumns: function() {
2224 var t = this;
2225 this.columns.map(function(e) {
2226 return "string" == typeof e && (e = {
2227 name: e
2228 }), void 0 === e.title && (e.title = t.title(e.name)), void 0 === e.visible && (e.visible = !0), e
2229 })
2230 },
2231 defaults: function() {
2232 return {
2233 ajax: {
2234 url: this.url,
2235 data: this.params,
2236 headers: {
2237 Authorization: "Bearer " + d["default"].getters.authToken
2238 }
2239 },
2240 autoWidth: !1,
2241 order: this.order,
2242 columns: this.columns,
2243 language: this.language,
2244 serverSide: this.serverSide,
2245 responsive: this.responsive,
2246 pageLength: this.perPage,
2247 lengthMenu: this.lengthMenu
2248 }
2249 },
2250 enhanceColumns: function(t) {
2251 var e = this;
2252 t.forEach(function(a, n) {
2253 "__actions" === a && (t[n] = e.buildActions()), a.callback && (a.render = function() {
2254 for (var t = arguments.length, n = Array(t), r = 0; r < t; r++) n[r] = arguments[r];
2255 return e.callCallback.apply(e, [a].concat(n))
2256 })
2257 })
2258 },
2259 callCallback: function(t) {
2260 for (var e = arguments.length, a = Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++) a[n - 1] = arguments[n];
2261 return "function" == typeof t.callback ? t.callback.apply(this.$parent, a) : Array.isArray(t.callback) ? t.callback[0][t.callback[1]].apply(t.callback[0], a) : "function" == typeof this.$parent[t.callback] ? this.$parent[t.callback].apply(this.$parent, a) : void 0
2262 },
2263 actionsEvents: function() {
2264 var t = this;
2265 this.actions.forEach(function(e, a) {
2266 t.table.on("click", '[data-action="' + a + '"]', function(a) {
2267 a.preventDefault();
2268 var n = (0, l["default"])(a.currentTarget).data("row"),
2269 r = t.table.row(n).data();
2270 t.callAction(e, r, n)
2271 })
2272 })
2273 },
2274 buildActions: function() {
2275 var t = this,
2276 e = {
2277 orderable: !1,
2278 searchable: !1,
2279 render: function(e, a, n, r) {
2280 return [""].concat(t.actions).reduce(function(e, a, n) {
2281 return e + t.buildAction(a, r.row, n - 1)
2282 })
2283 }
2284 };
2285 return e
2286 },
2287 buildAction: function(t, e, a) {
2288 var n = this.callActionLink(t, this.table.row(e).data(), e);
2289 n = n ? 'href="' + n + '"' : "";
2290 var r = n ? "a" : "span";
2291 return "\n <" + r + " " + n + ' class="' + (t["class"] || "") + '" title="' + (t.title || "") + '" data-action="' + a + '" data-row="' + e + '">\n <i class="' + t.icon + '"></i> ' + (t.label || "") + "\n </" + r + ">\n "
2292 },
2293 callActionLink: function(t, e, a) {
2294 return "function" == typeof t.link ? t.link(e, a) || null : Array.isArray(t.link) ? t.link[0][t.link[1]](e, a) || null : null
2295 },
2296 callAction: function(t, e, a) {
2297 return "function" == typeof t.callback ? t.callback(e, a) : Array.isArray(t.callback) ? t.callback[0][t.callback[1]](e, a) : void 0
2298 },
2299 getTitle: function(t) {
2300 return "undefined" == typeof t.title ? t.name.replace(".", " ") : t.title
2301 },
2302 title: function(t) {
2303 return this.isSpecialColumn(t) ? "" : this.titleCase(t)
2304 },
2305 titleCase: function(t) {
2306 return t.replace(/\w+/g, function(t) {
2307 return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase()
2308 })
2309 },
2310 isSpecialColumn: function(t) {
2311 return t.startsWith("__")
2312 }
2313 }
2314 }
2315}, function(t, e, a) {
2316 "use strict";
2317
2318 function n(t) {
2319 return t && t.__esModule ? t : {
2320 "default": t
2321 }
2322 }
2323 var r = a(11),
2324 s = n(r),
2325 i = a(3),
2326 o = n(i),
2327 u = a(38),
2328 l = n(u),
2329 c = a(492),
2330 d = n(c);
2331 a(235), a(240), a(233);
2332 var f = a(41),
2333 h = n(f),
2334 p = a(242),
2335 m = n(p),
2336 _ = a(241),
2337 v = n(_),
2338 b = a(239),
2339 g = n(b);
2340 window.jQuery = window.$ = o["default"], a(398), a(254), a(393), a(75)(window, o["default"]), a(387)(window, o["default"]), (0, g["default"])(), s["default"].use(h["default"]), s["default"].use(l["default"]), s["default"].use(d["default"]), s["default"].use(m["default"]), s["default"].http.interceptors.push(v["default"])
2341}, function(t, e, a) {
2342 "use strict";
2343
2344 function n(t) {
2345 return t && t.__esModule ? t : {
2346 "default": t
2347 }
2348 }
2349 Object.defineProperty(e, "__esModule", {
2350 value: !0
2351 });
2352 var r = a(415),
2353 s = n(r),
2354 i = a(418),
2355 o = n(i),
2356 u = a(419),
2357 l = n(u),
2358 c = a(420),
2359 d = n(c),
2360 f = a(421),
2361 h = n(f),
2362 p = a(423),
2363 m = n(p),
2364 _ = a(422),
2365 v = n(_),
2366 b = a(428),
2367 g = n(b),
2368 y = a(429),
2369 C = n(y),
2370 w = a(430),
2371 x = n(w),
2372 q = a(417),
2373 j = n(q),
2374 k = a(432),
2375 $ = n(k),
2376 R = a(433),
2377 F = n(R),
2378 T = a(434),
2379 M = n(T),
2380 P = a(426),
2381 S = n(P),
2382 A = [{
2383 path: "/admin",
2384 component: s["default"],
2385 name: "admin.dashboard"
2386 }, {
2387 path: "/admin/chapters",
2388 component: d["default"],
2389 name: "admin.chapters.index",
2390 children: [{
2391 path: "/admin/chapters/create",
2392 component: o["default"],
2393 name: "admin.chapters.create"
2394 }, {
2395 path: "/admin/chapters/:id/edit",
2396 component: l["default"],
2397 name: "admin.chapters.edit"
2398 }]
2399 }, {
2400 path: "/admin/questions",
2401 component: m["default"],
2402 name: "admin.questions.index"
2403 }, {
2404 path: "/admin/questions/create",
2405 component: h["default"],
2406 name: "admin.questions.create"
2407 }, {
2408 path: "/admin/questions/:id/edit",
2409 component: v["default"],
2410 name: "admin.questions.edit"
2411 }, {
2412 path: "/admin/tables",
2413 component: j["default"],
2414 name: "admin.tables"
2415 }, {
2416 path: "/admin/users",
2417 component: x["default"],
2418 name: "admin.users.index",
2419 children: [{
2420 path: "/admin/users/create",
2421 component: g["default"],
2422 name: "admin.users.create"
2423 }, {
2424 path: "/admin/users/:id/edit",
2425 component: C["default"],
2426 name: "admin.users.edit"
2427 }]
2428 }, {
2429 path: "/admin/users/:id",
2430 component: $["default"],
2431 name: "admin.users.view",
2432 children: [{
2433 path: "/",
2434 component: M["default"],
2435 name: "admin.users.chapters"
2436 }, {
2437 path: "/admin/users/:id/chapter/:cid",
2438 component: F["default"],
2439 name: "admin.users.answers"
2440 }]
2441 }, {
2442 path: "/admin/settings",
2443 component: S["default"],
2444 name: "admin.settings"
2445 }];
2446 e["default"] = A
2447}, function(t, e) {
2448 "use strict";
2449 Object.defineProperty(e, "__esModule", {
2450 value: !0
2451 });
2452 var a = {
2453 template: '\n <span class="action" :class="types[type]">\n <a v-if="action" @click.prevent="onClick" :title="title" href="#">\n <i v-if="icon" class="fa" :class="icon"></i>\n <slot></slot>\n </a>\n <router-link v-else :to="to" class="action" :class="types[type]" :title="title">\n <i v-if="icon" class="fa" :class="icon"></i>\n <slot></slot>\n </router-link>\n </span>\n ',
2454 props: {
2455 type: {
2456 type: String,
2457 "default": function() {
2458 return "default"
2459 }
2460 },
2461 action: Function,
2462 to: [String, Object],
2463 item: {},
2464 icon: String,
2465 title: String
2466 },
2467 data: function() {
2468 return {
2469 types: {
2470 "default": "action-default",
2471 primary: "action-primary",
2472 success: "action-success",
2473 danger: "action-danger"
2474 }
2475 }
2476 },
2477 methods: {
2478 onClick: function(t) {
2479 this.action(this.item, t)
2480 }
2481 }
2482 },
2483 n = {
2484 "extends": a,
2485 props: {
2486 type: {
2487 type: String,
2488 "default": function() {
2489 return "primary"
2490 }
2491 }
2492 }
2493 },
2494 r = {
2495 "extends": a,
2496 props: {
2497 type: {
2498 type: String,
2499 "default": function() {
2500 return "success"
2501 }
2502 }
2503 }
2504 },
2505 s = {
2506 "extends": a,
2507 props: {
2508 type: {
2509 type: String,
2510 "default": function() {
2511 return "danger"
2512 }
2513 }
2514 }
2515 };
2516 e.ActionDefault = a, e.ActionPrimary = n, e.ActionSuccess = r, e.ActionDanger = s
2517}, function(t, e, a) {
2518 "use strict";
2519 Object.defineProperty(e, "__esModule", {
2520 value: !0
2521 });
2522 var n = a(38);
2523 e["default"] = {
2524 "extends": n.HasError,
2525 template: '\n <div class="help-block has-error" v-if="form.errors.has(field)" v-html="form.errors.get(field)"></div>\n '
2526 }
2527}, function(t, e, a) {
2528 "use strict";
2529
2530 function n(t) {
2531 return t && t.__esModule ? t : {
2532 "default": t
2533 }
2534 }
2535 var r = a(11),
2536 s = n(r),
2537 i = a(437),
2538 o = n(i),
2539 u = a(232),
2540 l = n(u),
2541 c = a(40),
2542 d = n(c),
2543 f = a(438),
2544 h = n(f),
2545 p = a(439),
2546 m = n(p),
2547 _ = a(442),
2548 v = n(_),
2549 b = a(440),
2550 g = n(b),
2551 y = a(436),
2552 C = n(y),
2553 w = a(435),
2554 x = n(w),
2555 q = a(441),
2556 j = n(q),
2557 k = a(38),
2558 $ = a(231);
2559 s["default"].component("panel", o["default"]), s["default"].component("has-error", l["default"]), s["default"].component("alert-error", k.AlertError), s["default"].component("alert-errors", k.AlertErrors), s["default"].component("alert-success", k.AlertSuccess), s["default"].component("action-default", $.ActionDefault), s["default"].component("action-primary", $.ActionPrimary), s["default"].component("action-success", $.ActionSuccess), s["default"].component("action-danger", $.ActionDanger), s["default"].component("datatable", d["default"]), s["default"].component("query-input", h["default"]), s["default"].component("query-results", m["default"]), s["default"].component("table-tree", v["default"]), s["default"].component("selectize", g["default"]), s["default"].component("linear-chart", C["default"]), s["default"].component("canvas-text", x["default"]), s["default"].component("space-aware-text", j["default"])
2560}, function(t, e, a) {
2561 "use strict";
2562 var n = a(5);
2563 a(302), a(297), a(296), a(295), a(299), a(61), a(61), n.defineMode("plsql", function(t, e) {
2564 function a(t, e, a) {
2565 return e.tokenize = a, a(t, e)
2566 }
2567
2568 function n(t, e) {
2569 return o = t, e
2570 }
2571
2572 function r(t, e) {
2573 var r = t.next();
2574 return '"' == r || "'" == r ? a(t, e, s(r)) : /[\[\]{}\(\),;\.]/.test(r) ? n(r) : /\d/.test(r) ? (t.eatWhile(/[\w\.]/), n("number", "number")) : "/" == r ? t.eat("*") ? a(t, e, i) : (t.eatWhile(h), n("operator", "operator")) : "-" == r ? t.eat("-") ? (t.skipToEnd(), n("comment", "comment")) : (t.eatWhile(h), n("operator", "operator")) : "@" == r || "$" == r ? (t.eatWhile(/[\w\d\$_]/), n("word", "variable")) : h.test(r) ? (t.eatWhile(h), n("operator", "operator")) : (t.eatWhile(/[\w\$_]/), u && u.propertyIsEnumerable(t.current().toLowerCase()) ? n("keyword", "keyword") : l && l.propertyIsEnumerable(t.current().toLowerCase()) ? n("keyword", "builtin") : c && c.propertyIsEnumerable(t.current().toLowerCase()) ? n("keyword", "variable-2") : d && d.propertyIsEnumerable(t.current().toLowerCase()) ? n("keyword", "variable-3") : n("word", "variable"))
2575 }
2576
2577 function s(t) {
2578 return function(e, a) {
2579 for (var s, i = !1, o = !1; null != (s = e.next());) {
2580 if (s == t && !i) {
2581 o = !0;
2582 break
2583 }
2584 i = !i && "\\" == s
2585 }
2586 return (o || !i && !f) && (a.tokenize = r), n("string", "plsql-string")
2587 }
2588 }
2589
2590 function i(t, e) {
2591 for (var a, s = !1; a = t.next();) {
2592 if ("/" == a && s) {
2593 e.tokenize = r;
2594 break
2595 }
2596 s = "*" == a
2597 }
2598 return n("comment", "plsql-comment")
2599 }
2600 var o, u = (t.indentUnit, e.keywords),
2601 l = e.functions,
2602 c = e.types,
2603 d = e.sqlplus,
2604 f = e.multiLineStrings,
2605 h = /[+\-*&%=<>!?:\/|]/;
2606 return {
2607 startState: function(t) {
2608 return {
2609 tokenize: r,
2610 startOfLine: !0
2611 }
2612 },
2613 token: function(t, e) {
2614 if (t.eatSpace()) return null;
2615 var a = e.tokenize(t, e);
2616 return a
2617 }
2618 }
2619 }),
2620 function() {
2621 function t(t) {
2622 for (var e = {}, a = t.split(" "), n = 0; n < a.length; ++n) e[a[n]] = !0;
2623 return e
2624 }
2625 var e = "abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",
2626 a = "abs acos add_months ascii asin atan atan2 average bfilename ceil chartorowid chr concat convert cos cosh count decode deref dual dump dup_val_on_index empty error exp false floor found glb greatest hextoraw initcap instr instrb isopen last_day least lenght lenghtb ln lower lpad ltrim lub make_ref max min mod months_between new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null nvl others power rawtohex reftohex round rowcount rowidtochar rpad rtrim sign sin sinh soundex sqlcode sqlerrm sqrt stddev substr substrb sum sysdate tan tanh to_char to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid upper user userenv variance vsize",
2627 r = "bfile blob character clob dec float int integer mlslabel natural naturaln nchar nclob number numeric nvarchar2 real rowtype signtype smallint string varchar varchar2",
2628 s = "appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap";
2629 n.defineMIME("text/x-plsql", {
2630 name: "plsql",
2631 keywords: t(e),
2632 functions: t(a),
2633 types: t(r),
2634 sqlplus: t(s)
2635 })
2636 }()
2637}, function(t, e, a) {
2638 "use strict";
2639
2640 function n(t) {
2641 return t && t.__esModule ? t : {
2642 "default": t
2643 }
2644 }
2645 var r = a(12),
2646 s = n(r);
2647 a(370).polyfill(), Array.prototype.find || (Array.prototype.find = function(t) {
2648 if (null == this) throw new TypeError("Array.prototype.find called on null or undefined");
2649 if ("function" != typeof t) throw new TypeError("predicate must be a function");
2650 for (var e, a = Object(this), n = a.length >>> 0, r = arguments[1], s = 0; s < n; s++)
2651 if (e = a[s], t.call(r, e, s, a)) return e
2652 }), Array.prototype.includes || (Array.prototype.includes = function(t) {
2653 if (null == this) throw new TypeError("Array.prototype.includes called on null or undefined");
2654 var e = Object(this),
2655 a = parseInt(e.length, 10) || 0;
2656 if (0 === a) return !1;
2657 var n, r = parseInt(arguments[1], 10) || 0;
2658 r >= 0 ? n = r : (n = a + r, n < 0 && (n = 0));
2659 for (var s; n < a;) {
2660 if (s = e[n], t === s || t !== t && s !== s) return !0;
2661 n++
2662 }
2663 return !1
2664 }), "function" != typeof s["default"] && (Object.assign = function(t) {
2665 if (void 0 === t || null === t) throw new TypeError("Cannot convert undefined or null to object");
2666 for (var e = Object(t), a = 1; a < arguments.length; a++) {
2667 var n = arguments[a];
2668 if (void 0 !== n && null !== n)
2669 for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r])
2670 }
2671 return e
2672 }), String.prototype.startsWith || (String.prototype.startsWith = function(t) {
2673 var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0;
2674 return this.substr(e, t.length) === t
2675 }), String.prototype.includes || (String.prototype.includes = function(t, e) {
2676 return "number" != typeof e && (e = 0), !(e + t.length > this.length) && this.indexOf(t, e) !== -1
2677 }), Array.prototype.findIndex || Object.defineProperty(Array.prototype, "findIndex", {
2678 value: function i(t) {
2679 if (null == this) throw new TypeError("Array.prototype.findIndex called on null or undefined");
2680 if ("function" != typeof t) throw new TypeError("predicate must be a function");
2681 for (var i, e = Object(this), a = e.length >>> 0, n = arguments[1], r = 0; r < a; r++)
2682 if (i = e[r], t.call(n, i, r, e)) return r;
2683 return -1
2684 },
2685 enumerable: !1,
2686 configurable: !1,
2687 writable: !1
2688 })
2689}, function(t, e, a) {
2690 "use strict";
2691
2692 function n(t) {
2693 return t && t.__esModule ? t : {
2694 "default": t
2695 }
2696 }
2697 Object.defineProperty(e, "__esModule", {
2698 value: !0
2699 });
2700 var r = a(3),
2701 s = n(r),
2702 i = "datatable.";
2703 e["default"] = {
2704 methods: {
2705 initDataTable: function() {
2706 this.$root.$emit(i + "init")
2707 },
2708 refreshDataTable: function() {
2709 this.$root.$emit(i + "refresh")
2710 },
2711 addButtonDataTable: function(t) {
2712 var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "Add New",
2713 a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "default";
2714 this.$root.$on(i + "ready", function(n) {
2715 var r = (0, s["default"])("<button>", {
2716 html: '<i data-v-9="" class="fa fa-plus fa-btn"></i> ' + e,
2717 type: "button",
2718 "class": "btn btn-sm btn-" + a
2719 });
2720 r.on("click", function() {
2721 return t()
2722 }), n.closest(".dataTables_wrapper").find(".dataTables-add-button").html(r)
2723 })
2724 },
2725 addFilterDataTable: function(t) {
2726 this.$root.$on(i + "ready", function(e) {
2727 var a = (0, s["default"])("<select>", {
2728 "class": "form-control input-sm m-l-xs"
2729 }).append((0, s["default"])("<option>", {
2730 value: "all",
2731 text: "Toate"
2732 })).append((0, s["default"])("<option>", {
2733 value: "solved_ratio",
2734 text: "Filtru răspuns"
2735 })).append((0, s["default"])("<option>", {
2736 value: "time_taken",
2737 text: "Filtru timp"
2738 })).append((0, s["default"])("<option>", {
2739 value: "reported",
2740 text: "Raportate"
2741 })).append((0, s["default"])("<option>", {
2742 value: "reported_wrong",
2743 text: "Raportate gresite"
2744 }));
2745 a.on("change", function() {
2746 return t(a.val())
2747 }), e.closest(".dataTables_wrapper").find(".dataTables-add-button").append(a)
2748 })
2749 }
2750 }
2751 }
2752}, function(t, e, a) {
2753 "use strict";
2754
2755 function n(t) {
2756 return t && t.__esModule ? t : {
2757 "default": t
2758 }
2759 }
2760 Object.defineProperty(e, "__esModule", {
2761 value: !0
2762 });
2763 var r = a(252),
2764 s = n(r),
2765 i = a(11),
2766 o = n(i),
2767 u = a(493),
2768 l = n(u),
2769 c = a(230),
2770 d = n(c),
2771 f = a(244),
2772 h = n(f),
2773 p = a(243),
2774 m = a(412),
2775 _ = n(m),
2776 v = a(444),
2777 b = n(v),
2778 g = a(449),
2779 y = n(g),
2780 C = a(414),
2781 w = n(C),
2782 x = a(411),
2783 q = n(x),
2784 j = a(446),
2785 k = n(j),
2786 $ = a(445),
2787 R = n($);
2788 o["default"].use(l["default"]);
2789 var F = [].concat((0, s["default"])((0, p.requireAuth)([{
2790 path: "/dashboard",
2791 component: b["default"],
2792 name: "dashboard"
2793 }, {
2794 path: "/settings",
2795 component: y["default"],
2796 name: "user.settings"
2797 }, {
2798 path: "/quiz/:id",
2799 component: w["default"],
2800 name: "quiz"
2801 }, {
2802 path: "/statistics/:id",
2803 component: q["default"],
2804 name: "chapter.statistics"
2805 }, {
2806 path: "/questions",
2807 component: k["default"],
2808 name: "user.questions"
2809 }, {
2810 path: "/questions/add",
2811 component: R["default"],
2812 name: "user.questions.create"
2813 }])), (0, s["default"])((0, p.requireAdmin)(d["default"])), (0, s["default"])((0, p.requireGuest)([{
2814 path: "/login",
2815 component: _["default"],
2816 name: "login"
2817 }])), [{
2818 path: "*",
2819 redirect: "/dashboard"
2820 }]),
2821 T = window.navigator.userAgent,
2822 M = T.match(/iPad/i) || T.match(/iPhone/i) ? "hash" : "history";
2823 e["default"] = new l["default"]({
2824 mode: M,
2825 scrollBehavior: h["default"],
2826 routes: F
2827 })
2828}, function(t, e, a) {
2829 "use strict";
2830
2831 function n(t) {
2832 return t && t.__esModule ? t : {
2833 "default": t
2834 }
2835 }
2836 Object.defineProperty(e, "__esModule", {
2837 value: !0
2838 });
2839 var r = a(12),
2840 s = n(r);
2841 e["default"] = function(t) {
2842 var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
2843 return o["default"].fromTextArea(t, (0, s["default"])({}, u, e))
2844 };
2845 var i = a(5),
2846 o = n(i);
2847 a(234);
2848 var u = {
2849 tabSize: 2,
2850 theme: "neat",
2851 minHeight: 150,
2852 lineNumbers: !0,
2853 matchBrackets: !0,
2854 mode: "text/x-plsql",
2855 styleActiveLine: !0,
2856 historyEventDelay: 120,
2857 autoCloseBrackets: !0,
2858 viewportMargin: 1 / 0
2859 }
2860}, function(t, e, a) {
2861 "use strict";
2862
2863 function n(t) {
2864 return t && t.__esModule ? t : {
2865 "default": t
2866 }
2867 }
2868 Object.defineProperty(e, "__esModule", {
2869 value: !0
2870 }), e["default"] = function() {
2871 s["default"].extend(!0, s["default"].fn.dataTable.defaults, {
2872 dom: "\n <'row'<'col-sm-6 dataTables-add-button'><'col-sm-6 dataTables-length-filter'lf>>\n <'row'<'col-sm-12'tr>>\n <'row'<'col-sm-5'i><'col-sm-7'p>>\n ",
2873 renderer: "bootstrap"
2874 })
2875 };
2876 var r = a(3),
2877 s = n(r)
2878}, function(t, e, a) {
2879 "use strict";
2880
2881 function n(t) {
2882 return t && t.__esModule ? t : {
2883 "default": t
2884 }
2885 }
2886 var r = a(11),
2887 s = n(r),
2888 i = a(3),
2889 o = n(i),
2890 u = a(188),
2891 l = n(u);
2892 s["default"].directive("tooltip", {
2893 bind: function(t, e) {
2894 s["default"].nextTick(function() {
2895 (0, o["default"])(t).tooltip({
2896 trigger: "hover",
2897 title: e.value,
2898 html: !0
2899 })
2900 })
2901 }
2902 }), s["default"].directive("link", {
2903 bind: function(t, e) {
2904 t.setAttribute("href", e.value), (0, o["default"])(t).on("click", function(t) {
2905 1 === t.which && (t.preventDefault(), window.app.$router.push(e.value))
2906 })
2907 },
2908 update: function(t, e) {
2909 t.setAttribute("href", e.value), (0, o["default"])(t).off().on("click", function(t) {
2910 1 === t.which && (t.preventDefault(), window.app.$router.push(e.value))
2911 })
2912 }
2913 }), s["default"].directive("mdl", {
2914 bind: function(t) {
2915 window.componentHandler.upgradeElement(t)
2916 }
2917 }), s["default"].directive("autosize", {
2918 bind: function(t) {
2919 (0, l["default"])(t)
2920 },
2921 unbind: function(t) {
2922 l["default"].destroy(t)
2923 }
2924 })
2925}, function(t, e, a) {
2926 "use strict";
2927
2928 function n(t) {
2929 return t && t.__esModule ? t : {
2930 "default": t
2931 }
2932 }
2933
2934 function r(t, e) {
2935 t.url = window.config.api + t.url, t.headers.set("X-XSRF-TOKEN", i["default"].get("XSRF-TOKEN")), d["default"].getters.authToken && t.headers.set("Authorization", "Bearer " + d["default"].getters.authToken), e(function(t) {
2936 u["default"].emit("loading.done"), t.status >= 500 && (0, l.oops)(), 401 === t.status && d["default"].getters.authUser && (0, l.missing)(function() {
2937 d["default"].commit("LOGOUT"), window.app.$router.push({
2938 name: "login"
2939 })
2940 }, {
2941 text: "A expirat sesiunea."
2942 })
2943 })
2944 }
2945 Object.defineProperty(e, "__esModule", {
2946 value: !0
2947 }), e["default"] = r;
2948 var s = a(79),
2949 i = n(s),
2950 o = a(41),
2951 u = n(o),
2952 l = a(8),
2953 c = a(16),
2954 d = n(c)
2955}, function(t, e, a) {
2956 "use strict";
2957
2958 function n(t) {
2959 return t && t.__esModule ? t : {
2960 "default": t
2961 }
2962 }
2963
2964 function r(t, e) {
2965 for (var a = 0; a < e.length; a++) {
2966 if (e[a].name === t) return e[a];
2967 if (e[a].children) {
2968 var n = r(t, e[a].children);
2969 if (n) return n
2970 }
2971 }
2972 }
2973
2974 function s(t) {
2975 var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
2976 a = r(t, this.$router.options.routes);
2977 if ("number" == typeof e) {
2978 var n = d["default"].parse(a.path).find(function(t) {
2979 return "object" === ("undefined" == typeof t ? "undefined" : (0, l["default"])(t))
2980 });
2981 n && (e = (0, o["default"])({}, n.name, e))
2982 }
2983 return {
2984 name: t,
2985 params: e
2986 }
2987 }
2988 Object.defineProperty(e, "__esModule", {
2989 value: !0
2990 });
2991 var i = a(60),
2992 o = n(i),
2993 u = a(253),
2994 l = n(u),
2995 c = a(396),
2996 d = n(c);
2997 e["default"] = {
2998 install: function(t) {
2999 t.prototype.$to = s
3000 }
3001 }
3002}, function(t, e, a) {
3003 "use strict";
3004
3005 function n(t) {
3006 return t && t.__esModule ? t : {
3007 "default": t
3008 }
3009 }
3010
3011 function r() {
3012 var t = f["default"].dispatch("fetchUser");
3013 return t.then(function() {
3014 return c["default"].emit("loading.done")
3015 }), t
3016 }
3017
3018 function s(t, e, a) {
3019 return f["default"].getters.authCheck ? a() : f["default"].getters.authToken ? r().then(function() {
3020 return a()
3021 }) : void a({
3022 name: "login"
3023 })
3024 }
3025
3026 function i(t, e, a) {
3027 return f["default"].getters.authCheck && f["default"].getters.authUser.admin ? a() : f["default"].getters.authToken ? r().then(function() {
3028 return a()
3029 }) : void a({
3030 path: "/"
3031 })
3032 }
3033
3034 function o(t, e, a) {
3035 f["default"].getters.authCheck ? a({
3036 path: "/"
3037 }) : a()
3038 }
3039
3040 function u(t, e) {
3041 return t.map(function(t) {
3042 return t.beforeEnter = e
3043 }), t
3044 }
3045 Object.defineProperty(e, "__esModule", {
3046 value: !0
3047 }), e.requireAdmin = e.requireGuest = e.requireAuth = void 0;
3048 var l = a(41),
3049 c = n(l),
3050 d = a(16),
3051 f = n(d);
3052 e.requireAuth = function(t) {
3053 return u(t, s)
3054 }, e.requireGuest = function(t) {
3055 return u(t, o)
3056 }, e.requireAdmin = function(t) {
3057 return u(t, i)
3058 }
3059}, function(t, e) {
3060 "use strict";
3061
3062 function a(t, e, a) {
3063 if (a) return a;
3064 var n = {};
3065 return t.hash && (n.selector = t.hash), t.matched.some(function(t) {
3066 return t.meta.scrollToTop
3067 }) && (n.x = 0, n.y = 0), n
3068 }
3069 Object.defineProperty(e, "__esModule", {
3070 value: !0
3071 }), e["default"] = a
3072}, function(t, e, a) {
3073 "use strict";
3074
3075 function n(t) {
3076 if (t && t.__esModule) return t;
3077 var e = {};
3078 if (null != t)
3079 for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
3080 return e["default"] = t, e
3081 }
3082
3083 function r(t) {
3084 return t && t.__esModule ? t : {
3085 "default": t
3086 }
3087 }
3088
3089 function s(t) {
3090 return function(e, a) {
3091 var n = e.commit;
3092 return n(t, a)
3093 }
3094 }
3095 Object.defineProperty(e, "__esModule", {
3096 value: !0
3097 }), e.fetchUser = e.saveToken = e.logout = void 0;
3098 var i = a(11),
3099 o = r(i),
3100 u = a(59),
3101 l = n(u);
3102 e.logout = s(l.LOGOUT), e.saveToken = s(l.SAVE_TOKEN), e.fetchUser = function(t) {
3103 var e = t.commit,
3104 a = o["default"].http.get("/user");
3105 return a.then(function(t) {
3106 var a = t.data;
3107 e(l.FETCH_USER_SUCCESS, {
3108 user: a
3109 })
3110 })["catch"](function() {
3111 e(l.FETCH_USER_FAILURE)
3112 }), a
3113 }
3114}, function(t, e) {
3115 "use strict";
3116 Object.defineProperty(e, "__esModule", {
3117 value: !0
3118 });
3119 e.authUser = function(t) {
3120 return t.auth.user
3121 }, e.authToken = function(t) {
3122 return t.auth.token
3123 }, e.authCheck = function(t) {
3124 return null !== t.auth.user
3125 }
3126}, function(t, e, a) {
3127 "use strict";
3128
3129 function n(t) {
3130 if (t && t.__esModule) return t;
3131 var e = {};
3132 if (null != t)
3133 for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
3134 return e["default"] = t, e
3135 }
3136
3137 function r(t) {
3138 return t && t.__esModule ? t : {
3139 "default": t
3140 }
3141 }
3142 Object.defineProperty(e, "__esModule", {
3143 value: !0
3144 });
3145 var s, i = a(60),
3146 o = r(i),
3147 u = a(79),
3148 l = r(u),
3149 c = a(59),
3150 d = n(c),
3151 f = {
3152 user: null,
3153 token: l["default"].get("token")
3154 },
3155 h = (s = {}, (0, o["default"])(s, d.SAVE_TOKEN, function(t, e) {
3156 var a = e.token,
3157 n = e.remember;
3158 t.token = a, l["default"].set("token", a, {
3159 expires: n ? 365 : null
3160 })
3161 }), (0, o["default"])(s, d.FETCH_USER_SUCCESS, function(t, e) {
3162 var a = e.user;
3163 t.user = a
3164 }), (0, o["default"])(s, d.FETCH_USER_FAILURE, function(t) {
3165 t.token = null, l["default"].remove("token")
3166 }), (0, o["default"])(s, d.LOGOUT, function(t) {
3167 t.user = null, t.token = null, l["default"].remove("token")
3168 }), s);
3169 e["default"] = {
3170 state: f,
3171 mutations: h
3172 }
3173}, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, , , , , , , , , function(t, e, a) {
3174 function n(t) {
3175 return a(r(t))
3176 }
3177
3178 function r(t) {
3179 return s[t] || function() {
3180 throw new Error("Cannot find module '" + t + "'.")
3181 }()
3182 }
3183 var s = {
3184 "./af": 80,
3185 "./af.js": 80,
3186 "./ar": 85,
3187 "./ar-ly": 81,
3188 "./ar-ly.js": 81,
3189 "./ar-ma": 82,
3190 "./ar-ma.js": 82,
3191 "./ar-sa": 83,
3192 "./ar-sa.js": 83,
3193 "./ar-tn": 84,
3194 "./ar-tn.js": 84,
3195 "./ar.js": 85,
3196 "./az": 86,
3197 "./az.js": 86,
3198 "./be": 87,
3199 "./be.js": 87,
3200 "./bg": 88,
3201 "./bg.js": 88,
3202 "./bn": 89,
3203 "./bn.js": 89,
3204 "./bo": 90,
3205 "./bo.js": 90,
3206 "./br": 91,
3207 "./br.js": 91,
3208 "./bs": 92,
3209 "./bs.js": 92,
3210 "./ca": 93,
3211 "./ca.js": 93,
3212 "./cs": 94,
3213 "./cs.js": 94,
3214 "./cv": 95,
3215 "./cv.js": 95,
3216 "./cy": 96,
3217 "./cy.js": 96,
3218 "./da": 97,
3219 "./da.js": 97,
3220 "./de": 99,
3221 "./de-at": 98,
3222 "./de-at.js": 98,
3223 "./de.js": 99,
3224 "./dv": 100,
3225 "./dv.js": 100,
3226 "./el": 101,
3227 "./el.js": 101,
3228 "./en-au": 102,
3229 "./en-au.js": 102,
3230 "./en-ca": 103,
3231 "./en-ca.js": 103,
3232 "./en-gb": 104,
3233 "./en-gb.js": 104,
3234 "./en-ie": 105,
3235 "./en-ie.js": 105,
3236 "./en-nz": 106,
3237 "./en-nz.js": 106,
3238 "./eo": 107,
3239 "./eo.js": 107,
3240 "./es": 109,
3241 "./es-do": 108,
3242 "./es-do.js": 108,
3243 "./es.js": 109,
3244 "./et": 110,
3245 "./et.js": 110,
3246 "./eu": 111,
3247 "./eu.js": 111,
3248 "./fa": 112,
3249 "./fa.js": 112,
3250 "./fi": 113,
3251 "./fi.js": 113,
3252 "./fo": 114,
3253 "./fo.js": 114,
3254 "./fr": 117,
3255 "./fr-ca": 115,
3256 "./fr-ca.js": 115,
3257 "./fr-ch": 116,
3258 "./fr-ch.js": 116,
3259 "./fr.js": 117,
3260 "./fy": 118,
3261 "./fy.js": 118,
3262 "./gd": 119,
3263 "./gd.js": 119,
3264 "./gl": 120,
3265 "./gl.js": 120,
3266 "./he": 121,
3267 "./he.js": 121,
3268 "./hi": 122,
3269 "./hi.js": 122,
3270 "./hr": 123,
3271 "./hr.js": 123,
3272 "./hu": 124,
3273 "./hu.js": 124,
3274 "./hy-am": 125,
3275 "./hy-am.js": 125,
3276 "./id": 126,
3277 "./id.js": 126,
3278 "./is": 127,
3279 "./is.js": 127,
3280 "./it": 128,
3281 "./it.js": 128,
3282 "./ja": 129,
3283 "./ja.js": 129,
3284 "./jv": 130,
3285 "./jv.js": 130,
3286 "./ka": 131,
3287 "./ka.js": 131,
3288 "./kk": 132,
3289 "./kk.js": 132,
3290 "./km": 133,
3291 "./km.js": 133,
3292 "./ko": 134,
3293 "./ko.js": 134,
3294 "./ky": 135,
3295 "./ky.js": 135,
3296 "./lb": 136,
3297 "./lb.js": 136,
3298 "./lo": 137,
3299 "./lo.js": 137,
3300 "./lt": 138,
3301 "./lt.js": 138,
3302 "./lv": 139,
3303 "./lv.js": 139,
3304 "./me": 140,
3305 "./me.js": 140,
3306 "./mi": 141,
3307 "./mi.js": 141,
3308 "./mk": 142,
3309 "./mk.js": 142,
3310 "./ml": 143,
3311 "./ml.js": 143,
3312 "./mr": 144,
3313 "./mr.js": 144,
3314 "./ms": 146,
3315 "./ms-my": 145,
3316 "./ms-my.js": 145,
3317 "./ms.js": 146,
3318 "./my": 147,
3319 "./my.js": 147,
3320 "./nb": 148,
3321 "./nb.js": 148,
3322 "./ne": 149,
3323 "./ne.js": 149,
3324 "./nl": 150,
3325 "./nl.js": 150,
3326 "./nn": 151,
3327 "./nn.js": 151,
3328 "./pa-in": 152,
3329 "./pa-in.js": 152,
3330 "./pl": 153,
3331 "./pl.js": 153,
3332 "./pt": 155,
3333 "./pt-br": 154,
3334 "./pt-br.js": 154,
3335 "./pt.js": 155,
3336 "./ro": 156,
3337 "./ro.js": 156,
3338 "./ru": 157,
3339 "./ru.js": 157,
3340 "./se": 158,
3341 "./se.js": 158,
3342 "./si": 159,
3343 "./si.js": 159,
3344 "./sk": 160,
3345 "./sk.js": 160,
3346 "./sl": 161,
3347 "./sl.js": 161,
3348 "./sq": 162,
3349 "./sq.js": 162,
3350 "./sr": 164,
3351 "./sr-cyrl": 163,
3352 "./sr-cyrl.js": 163,
3353 "./sr.js": 164,
3354 "./ss": 165,
3355 "./ss.js": 165,
3356 "./sv": 166,
3357 "./sv.js": 166,
3358 "./sw": 167,
3359 "./sw.js": 167,
3360 "./ta": 168,
3361 "./ta.js": 168,
3362 "./te": 169,
3363 "./te.js": 169,
3364 "./th": 170,
3365 "./th.js": 170,
3366 "./tl-ph": 171,
3367 "./tl-ph.js": 171,
3368 "./tlh": 172,
3369 "./tlh.js": 172,
3370 "./tr": 173,
3371 "./tr.js": 173,
3372 "./tzl": 174,
3373 "./tzl.js": 174,
3374 "./tzm": 176,
3375 "./tzm-latn": 175,
3376 "./tzm-latn.js": 175,
3377 "./tzm.js": 176,
3378 "./uk": 177,
3379 "./uk.js": 177,
3380 "./uz": 178,
3381 "./uz.js": 178,
3382 "./vi": 179,
3383 "./vi.js": 179,
3384 "./x-pseudo": 180,
3385 "./x-pseudo.js": 180,
3386 "./zh-cn": 181,
3387 "./zh-cn.js": 181,
3388 "./zh-hk": 182,
3389 "./zh-hk.js": 182,
3390 "./zh-tw": 183,
3391 "./zh-tw.js": 183
3392 };
3393 n.keys = function() {
3394 return Object.keys(s)
3395 }, n.resolve = r, t.exports = n, n.id = 395
3396}, , , , , , , , , , , , , , , function(t, e, a) {
3397 var n, r;
3398 a(371), a(372), n = a(189);
3399 var s = a(451);
3400 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, r._scopeId = "data-v-1", t.exports = n
3401}, function(t, e, a) {
3402 var n, r;
3403 a(384), n = a(190);
3404 var s = a(488);
3405 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]),
3406 "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3407}, function(t, e, a) {
3408 var n, r;
3409 a(381), n = a(191);
3410 var s = a(484);
3411 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, r._scopeId = "data-v-4", t.exports = n
3412}, function(t, e, a) {
3413 var n, r;
3414 n = a(192);
3415 var s = a(459);
3416 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3417}, function(t, e, a) {
3418 var n, r;
3419 a(383), n = a(193);
3420 var s = a(487);
3421 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3422}, function(t, e, a) {
3423 var n, r;
3424 n = a(194);
3425 var s = a(460);
3426 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3427}, function(t, e, a) {
3428 var n, r, s = a(480);
3429 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3430}, function(t, e, a) {
3431 var n, r;
3432 n = a(195);
3433 var s = a(471);
3434 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3435}, function(t, e, a) {
3436 var n, r;
3437 n = a(196);
3438 var s = a(465);
3439 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3440}, function(t, e, a) {
3441 var n, r;
3442 n = a(197);
3443 var s = a(463);
3444 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3445}, function(t, e, a) {
3446 var n, r;
3447 a(375), n = a(198);
3448 var s = a(461);
3449 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, r._scopeId = "data-v-19", t.exports = n
3450}, function(t, e, a) {
3451 var n, r;
3452 n = a(199);
3453 var s = a(464);
3454 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3455}, function(t, e, a) {
3456 var n, r;
3457 a(376), n = a(200);
3458 var s = a(467);
3459 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3460}, function(t, e, a) {
3461 var n, r;
3462 n = a(201);
3463 var s = a(466);
3464 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3465}, function(t, e, a) {
3466 var n, r;
3467 a(382), n = a(202);
3468 var s = a(486);
3469 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, r._scopeId = "data-v-41", t.exports = n
3470}, function(t, e, a) {
3471 var n, r;
3472 n = a(203);
3473 var s = a(485);
3474 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3475}, function(t, e, a) {
3476 var n, r;
3477 n = a(204);
3478 var s = a(476);
3479 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3480}, function(t, e, a) {
3481 var n, r;
3482 n = a(205);
3483 var s = a(483);
3484 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3485}, function(t, e, a) {
3486 var n, r;
3487 n = a(206);
3488 var s = a(468);
3489 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3490}, function(t, e, a) {
3491 var n, r;
3492 n = a(207);
3493 var s = a(470);
3494 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3495}, function(t, e, a) {
3496 var n, r;
3497 a(377), n = a(208);
3498 var s = a(469);
3499 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3500}, function(t, e, a) {
3501 var n, r;
3502 a(380), n = a(209);
3503 var s = a(482);
3504 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3505}, function(t, e, a) {
3506 var n, r;
3507 n = a(210);
3508 var s = a(472);
3509 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3510}, function(t, e, a) {
3511 var n, r;
3512 n = a(211);
3513 var s = a(474);
3514 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3515}, function(t, e, a) {
3516 var n, r;
3517 n = a(212);
3518 var s = a(475);
3519 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3520}, function(t, e, a) {
3521 var n, r;
3522 n = a(213);
3523 var s = a(457);
3524 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3525}, function(t, e, a) {
3526 var n, r;
3527 n = a(214);
3528 var s = a(456);
3529 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3530}, function(t, e, a) {
3531 var n, r;
3532 n = a(215);
3533 var s = a(453);
3534 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3535}, function(t, e, a) {
3536 var n, r;
3537 n = a(216);
3538 var s = a(491);
3539 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3540}, function(t, e, a) {
3541 var n, r;
3542 a(373), n = a(217);
3543 var s = a(452);
3544 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3545}, function(t, e, a) {
3546 var n, r;
3547 n = a(218);
3548 var s = a(455);
3549 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3550}, function(t, e, a) {
3551 var n, r;
3552 a(374), n = a(219);
3553 var s = a(458);
3554 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3555}, function(t, e, a) {
3556 var n, r;
3557 n = a(220);
3558 var s = a(454);
3559 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3560}, function(t, e, a) {
3561 var n, r;
3562 a(378), n = a(221);
3563 var s = a(478);
3564 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3565}, function(t, e, a) {
3566 var n, r;
3567 n = a(222);
3568 var s = a(462);
3569 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3570}, function(t, e, a) {
3571 var n, r;
3572 a(386), n = a(223);
3573 var s = a(490);
3574 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3575}, function(t, e, a) {
3576 var n, r;
3577 a(385), n = a(224);
3578 var s = a(489);
3579 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3580}, function(t, e, a) {
3581 var n, r;
3582 a(379), n = a(225);
3583 var s = a(479);
3584 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, r._scopeId = "data-v-35", t.exports = n
3585}, function(t, e, a) {
3586 var n, r;
3587 n = a(226);
3588 var s = a(477);
3589 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3590}, function(t, e, a) {
3591 var n, r;
3592 n = a(227);
3593 var s = a(473);
3594 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3595}, function(t, e, a) {
3596 var n, r;
3597 n = a(228);
3598 var s = a(481);
3599 r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
3600}, function(module, exports) {
3601 module.exports = {
3602 render: function() {
3603 with(this) return _h("div", {
3604 attrs: {
3605 id: "app"
3606 }
3607 }, [_h("div", {
3608 directives: [{
3609 name: "show",
3610 value: loading,
3611 expression: "loading"
3612 }],
3613 staticClass: "loading"
3614 }, [_m(0)]), " ", " ", authenticated ? [_h("transition", {
3615 attrs: {
3616 name: "fade",
3617 mode: "out-in"
3618 }
3619 }, [_h("div", [_h("navbar"), " ", _h("div", {
3620 staticClass: "container"
3621 }, [_h("transition", {
3622 attrs: {
3623 name: "fade",
3624 mode: "out-in"
3625 }
3626 }, [_h("router-view", {
3627 staticClass: "router-view"
3628 })])])])])] : [_h("transition", {
3629 attrs: {
3630 name: "fade",
3631 mode: "out-in"
3632 }
3633 }, [_h("router-view", {
3634 staticClass: "router-view"
3635 })])], " ", " "])
3636 },
3637 staticRenderFns: [function() {
3638 with(this) return _h("div", {
3639 staticClass: "spinner"
3640 }, ["Loading..."])
3641 }]
3642 }
3643}, function(module, exports) {
3644 module.exports = {
3645 render: function() {
3646 with(this) return _h("div", {
3647 staticClass: "query-results"
3648 }, [_h("div", {
3649 staticClass: "alert alert-info"
3650 }, [_h("space-aware-text", {
3651 attrs: {
3652 text: "Spațiile vor fi subliniate cu o linie gri."
3653 }
3654 })]), " ", " ", correct ? _h("ul", {
3655 staticClass: "nav nav-tabs",
3656 attrs: {
3657 role: "tablist"
3658 }
3659 }, [_h("li", {
3660 staticClass: "active"
3661 }, [_h("a", {
3662 attrs: {
3663 href: "#result-" + id,
3664 "data-toggle": "tab"
3665 }
3666 }, ["Rezultat"])]), " ", correct && correct.columns ? _h("li", [_h("a", {
3667 attrs: {
3668 href: "#correct-" + id,
3669 "data-toggle": "tab"
3670 }
3671 }, ["Corect"])]) : _e(), " ", correct && correct.columns ? _h("li", [_h("a", {
3672 attrs: {
3673 href: "#difference-" + id,
3674 "data-toggle": "tab"
3675 }
3676 }, ["Diferenta"])]) : _e()]) : _e(), " ", " ", _h("div", {
3677 staticClass: "tab-content"
3678 }, [_h("div", {
3679 staticClass: "tab-pane active",
3680 attrs: {
3681 id: "result-" + id
3682 }
3683 }, [_h("div", {
3684 staticClass: "table-responsive"
3685 }, [_h("table", {
3686 staticClass: "table table-striped table-bordered table-hover"
3687 }, [_h("thead", [_h("tr", [_l(results.columns, function(t) {
3688 return _h("th", [_h("space-aware-text", {
3689 attrs: {
3690 text: t
3691 }
3692 })])
3693 })])]), " ", _h("tbody", [_l(results.rows, function(t) {
3694 return _h("tr", [_l(t, function(t, e) {
3695 return _h("td", {
3696 key: e
3697 }, [_h("space-aware-text", {
3698 attrs: {
3699 text: t
3700 }
3701 })])
3702 })])
3703 })])])])]), " ", correct && correct.columns ? _h("div", {
3704 staticClass: "tab-pane",
3705 attrs: {
3706 id: "correct-" + id
3707 }
3708 }, [_h("div", {
3709 staticClass: "table-responsive"
3710 }, [_h("table", {
3711 staticClass: "table table-striped table-bordered table-hover"
3712 }, [_h("thead", [_h("tr", [_l(correct.columns, function(t) {
3713 return _h("th", [_h("space-aware-text", {
3714 attrs: {
3715 text: t
3716 }
3717 })])
3718 })])]), " ", _h("tbody", [_l(correct.rows, function(t) {
3719 return _h("tr", [_l(t, function(t, e) {
3720 return _h("td", {
3721 key: e
3722 }, [_h("space-aware-text", {
3723 attrs: {
3724 text: t
3725 }
3726 })])
3727 })])
3728 })])])])]) : _e(), " ", correct && correct.columns ? _h("div", {
3729 staticClass: "tab-pane difference",
3730 attrs: {
3731 id: "difference-" + id
3732 }
3733 }, [_h("div", {
3734 ref: "difference",
3735 staticClass: "table-responsive"
3736 })]) : _e()])])
3737 },
3738 staticRenderFns: []
3739 }
3740}, function(module, exports) {
3741 module.exports = {
3742 render: function() {
3743 with(this) return _h("div", [loading ? [_h("transition", {
3744 attrs: {
3745 name: "fade",
3746 mode: "out-in"
3747 }
3748 }, [$root.loading ? _e() : _h("div", {
3749 staticClass: "page-panel"
3750 }, [title ? _h("h3", {
3751 staticClass: "page-header",
3752 "class": {
3753 "text-center": center
3754 }
3755 }, [_s(title)]) : _e(), " ", _t("default")])])] : [_h("div", {
3756 staticClass: "page-panel"
3757 }, [title ? _h("h3", {
3758 staticClass: "page-header"
3759 }, [_s(title)]) : _e(), " ", _t("default")])], " "])
3760 },
3761 staticRenderFns: []
3762 }
3763}, function(module, exports) {
3764 module.exports = {
3765 render: function() {
3766 with(this) return _h("div", {
3767 staticClass: "table-tree",
3768 "class": {
3769 active: active
3770 }
3771 }, [_h("div", {
3772 staticClass: "panel-table pull-left"
3773 }, [_h("ul", {
3774 staticClass: "table-main"
3775 }, [_l(tables, function(t) {
3776 return _h("li", {
3777 staticClass: "table-list",
3778 "class": {
3779 active: t.active
3780 }
3781 }, [_h("span", {
3782 on: {
3783 click: function(e) {
3784 t.active = !t.active
3785 }
3786 }
3787 }, [_h("i", {
3788 staticClass: "fa",
3789 "class": {
3790 "fa-plus-square": !t.active,
3791 "fa-minus-square": t.active
3792 }
3793 }), "\n " + _s(t.name) + "\n "]), " ", _h("ul", [_l(t.columns, function(t) {
3794 return _h("li", [_m(0, !0), "\n " + _s(t.name) + "\n ", _h("small", [_s(t.type)])])
3795 })])])
3796 })])]), " ", _h("div", {
3797 staticClass: "handle pull-right",
3798 on: {
3799 click: function(t) {
3800 active = !active
3801 }
3802 }
3803 }, ["TABELE"])])
3804 },
3805 staticRenderFns: [function() {
3806 with(this) return _h("i", {
3807 staticClass: "fa fa-caret-right"
3808 })
3809 }]
3810 }
3811}, function(module, exports) {
3812 module.exports = {
3813 render: function() {
3814 with(this) return _h("select", {
3815 staticClass: "form-control",
3816 attrs: {
3817 multiple: multiple,
3818 placeholder: placeholder
3819 }
3820 })
3821 },
3822 staticRenderFns: []
3823 }
3824}, function(module, exports) {
3825 module.exports = {
3826 render: function() {
3827 with(this) return _m(0)
3828 },
3829 staticRenderFns: [function() {
3830 with(this) return _h("canvas")
3831 }]
3832 }
3833}, function(module, exports) {
3834 module.exports = {
3835 render: function() {
3836 with(this) return _m(0)
3837 },
3838 staticRenderFns: [function() {
3839 with(this) return _h("canvas", {
3840 staticClass: "canvas-text"
3841 })
3842 }]
3843 }
3844}, function(module, exports) {
3845 module.exports = {
3846 render: function() {
3847 with(this) return _h("div", {
3848 domProps: {
3849 innerHTML: _s(output)
3850 }
3851 })
3852 },
3853 staticRenderFns: []
3854 }
3855}, function(module, exports) {
3856 module.exports = {
3857 render: function() {
3858 with(this) return _h("div", {
3859 staticClass: "navbar navbar-default"
3860 }, [_h("div", {
3861 staticClass: "container"
3862 }, [_h("div", {
3863 staticClass: "navbar-header"
3864 }, [_m(0), " ", _h("router-link", {
3865 staticClass: "navbar-brand",
3866 attrs: {
3867 to: {
3868 name: "dashboard"
3869 }
3870 }
3871 }, [_m(1), " Baze de Date\n "])]), " ", _h("div", {
3872 staticClass: "navbar-collapse collapse"
3873 }, [admin ? _h("admin-menu") : _h("ul", {
3874 staticClass: "nav navbar-nav"
3875 }, [_h("router-link", {
3876 attrs: {
3877 tag: "li",
3878 to: {
3879 name: "user.questions"
3880 },
3881 "active-class": "active"
3882 }
3883 }, [_h("a", [_h("i", {
3884 staticClass: "fa fa-question"
3885 }), " Întrebările mele"])]), " ", user.admin ? _h("router-link", {
3886 attrs: {
3887 tag: "li",
3888 to: {
3889 name: "admin.dashboard"
3890 }
3891 }
3892 }, [_h("a", [_h("i", {
3893 staticClass: "fa fa-tachometer"
3894 }), " Administrare"])]) : _e()]), " ", " ", _h("ul", {
3895 staticClass: "nav navbar-nav navbar-right"
3896 }, [_h("li", {
3897 staticClass: "dropdown"
3898 }, [_h("a", {
3899 staticClass: "dropdown-toggle",
3900 attrs: {
3901 href: "#",
3902 "data-toggle": "dropdown"
3903 }
3904 }, ["\n " + _s(user.name) + " ", _m(2)]), " ", _h("ul", {
3905 staticClass: "dropdown-menu"
3906 }, [_h("router-link", {
3907 attrs: {
3908 tag: "li",
3909 to: {
3910 name: "user.profile"
3911 }
3912 }
3913 }, [_m(3)]), " ", _h("router-link", {
3914 attrs: {
3915 tag: "li",
3916 to: {
3917 name: "user.settings"
3918 }
3919 }
3920 }, [_m(4)]), " ", _m(5), " ", _h("li", [_h("a", {
3921 attrs: {
3922 href: "#"
3923 },
3924 on: {
3925 click: function(t) {
3926 t.preventDefault(), logout(t)
3927 }
3928 }
3929 }, [_m(6), " Logout"])])])])])])])])
3930 },
3931 staticRenderFns: [function() {
3932 with(this) return _h("button", {
3933 staticClass: "navbar-toggle",
3934 attrs: {
3935 type: "button",
3936 "data-toggle": "collapse",
3937 "data-target": ".navbar-collapse"
3938 }
3939 }, [_h("span", {
3940 staticClass: "sr-only"
3941 }, ["Toggle navigation"]), " ", _h("span", {
3942 staticClass: "icon-bar"
3943 }), " ", _h("span", {
3944 staticClass: "icon-bar"
3945 }), " ", _h("span", {
3946 staticClass: "icon-bar"
3947 })])
3948 }, function() {
3949 with(this) return _h("i", {
3950 staticClass: "fa fa-fw fa-database"
3951 })
3952 }, function() {
3953 with(this) return _h("b", {
3954 staticClass: "caret"
3955 })
3956 }, function() {
3957 with(this) return _h("a", [_h("i", {
3958 staticClass: "fa fa-user fa-fw"
3959 }), " Profil"])
3960 }, function() {
3961 with(this) return _h("a", [_h("i", {
3962 staticClass: "fa fa-cog fa-fw"
3963 }), " Setări"])
3964 }, function() {
3965 with(this) return _h("li", {
3966 staticClass: "divider"
3967 })
3968 }, function() {
3969 with(this) return _h("i", {
3970 staticClass: "fa fa-sign-out fa-fw"
3971 })
3972 }]
3973 }
3974}, function(module, exports) {
3975 module.exports = {
3976 render: function() {
3977 with(this) return _h("panel", {
3978 attrs: {
3979 title: "Dashboard"
3980 }
3981 }, [_h("button", {
3982 staticClass: "btn btn-default",
3983 attrs: {
3984 type: "button"
3985 },
3986 on: {
3987 click: reevaluate
3988 }
3989 }, ["Reevaluează"])])
3990 },
3991 staticRenderFns: []
3992 }
3993}, function(module, exports) {
3994 module.exports = {
3995 render: function() {
3996 with(this) return _h("div", [_h("panel", {
3997 attrs: {
3998 title: "Capitole",
3999 loading: ""
4000 }
4001 }, [_h("router-link", {
4002 staticClass: "btn btn-default btn-sm m-b-md",
4003 attrs: {
4004 to: {
4005 name: "admin.chapters.create"
4006 }
4007 }
4008 }, [_m(0), " Adaugă\n "]), " ", _h("div", {
4009 staticClass: "row"
4010 }, [_h("div", {
4011 staticClass: "col-md-6"
4012 }, [chapters.length > 0 ? _h("div", {
4013 staticClass: "table-responsive"
4014 }, [_h("table", {
4015 staticClass: "table table-striped table-bordered table-hover"
4016 }, [_m(1), " ", _h("transition-group", {
4017 attrs: {
4018 name: "list",
4019 tag: "tbody"
4020 }
4021 }, [_l(chapters, function(t) {
4022 return _h("tr", {
4023 key: t.id,
4024 attrs: {
4025 id: t.id
4026 }
4027 }, [_h("td", {
4028 staticClass: "column-name user-select-none"
4029 }, [_h("i", {
4030 staticClass: "fa fa-square m-r-xs",
4031 style: {
4032 color: t.color || "transparent"
4033 },
4034 attrs: {
4035 "aria-hidden": "true"
4036 }
4037 }), "\n " + _s(t.name) + "\n "]), " ", _h("td", [_s(t.questions_count || 0)]), " ", _h("td", {
4038 staticClass: "column-actions"
4039 }, [_h("action-primary", {
4040 attrs: {
4041 to: {
4042 name: "admin.chapters.edit",
4043 params: {
4044 id: t.id
4045 }
4046 },
4047 icon: "fa-pencil",
4048 title: "Editează"
4049 }
4050 }), " ", _h("action-danger", {
4051 attrs: {
4052 action: destroy,
4053 item: t,
4054 icon: "fa-trash-o",
4055 title: "Șterge"
4056 }
4057 })])])
4058 })])]), " ", _m(2)]) : _h("div", ["Nici un capitol."]), " "])])]), " ", _h("router-view", {
4059 staticClass: "child"
4060 })])
4061 },
4062 staticRenderFns: [function() {
4063 with(this) return _h("i", {
4064 staticClass: "fa fa-plus fa-btn"
4065 })
4066 }, function() {
4067 with(this) return _h("thead", [_h("tr", [_h("th", {
4068 attrs: {
4069 style: "padding-left: 28px;"
4070 }
4071 }, ["Nume"]), " ", _h("th", ["Întrebări"]), " ", _h("th")])])
4072 }, function() {
4073 with(this) return _h("div", {
4074 staticClass: "help-block"
4075 }, ["Pentru a sorta capitolele, dă click pe numele unei capitol și mută-l."])
4076 }]
4077 }
4078}, function(module, exports) {
4079 module.exports = {
4080 render: function() {
4081 with(this) return _h("div", [_h("transition", {
4082 attrs: {
4083 name: "fade",
4084 mode: "out-in"
4085 }
4086 }, [$root.loading ? _e() : _h("div", [_h("div", {
4087 staticClass: "row m-t-sm"
4088 }, [_l(chapters, function(t) {
4089 return _h("div", {
4090 staticClass: "col-lg-4 col-md-6 col-sm-6 col-xs-12"
4091 }, [_h("chapter-card", {
4092 attrs: {
4093 chapter: t
4094 }
4095 })])
4096 }), " ", 0 === chapters.length ? _h("div", {
4097 staticClass: "text-center"
4098 }, [_m(0)]) : _e()])])])])
4099 },
4100 staticRenderFns: [function() {
4101 with(this) return _h("h4", ["Nu a fost gasita nici un capitol."])
4102 }]
4103 }
4104}, function(module, exports) {
4105 module.exports = {
4106 render: function() {
4107 with(this) return _h("div", {
4108 ref: "modal",
4109 staticClass: "modal fade",
4110 attrs: {
4111 "data-backdrop": "static",
4112 tabindex: "-1"
4113 }
4114 }, [_h("div", {
4115 staticClass: "modal-dialog"
4116 }, [_h("div", {
4117 staticClass: "modal-content"
4118 }, [_h("form", {
4119 on: {
4120 submit: function(t) {
4121 t.preventDefault(), save(t)
4122 }
4123 }
4124 }, [_m(0), " ", _h("div", {
4125 staticClass: "modal-body"
4126 }, [_h("div", {
4127 staticClass: "form-group"
4128 }, [_m(1), " ", _h("input", {
4129 directives: [{
4130 name: "model",
4131 value: form.name,
4132 expression: "form.name"
4133 }],
4134 staticClass: "form-control",
4135 attrs: {
4136 type: "text"
4137 },
4138 domProps: {
4139 value: _s(form.name)
4140 },
4141 on: {
4142 input: function(t) {
4143 t.target.composing || (form.name = t.target.value)
4144 }
4145 }
4146 }), " ", _h("has-error", {
4147 attrs: {
4148 form: form,
4149 field: "name"
4150 }
4151 })]), " ", _h("div", {
4152 staticClass: "form-group"
4153 }, [_m(2), " ", _h("textarea", {
4154 directives: [{
4155 name: "model",
4156 value: form.description,
4157 expression: "form.description"
4158 }],
4159 staticClass: "form-control",
4160 attrs: {
4161 rows: "4"
4162 },
4163 domProps: {
4164 value: _s(form.description)
4165 },
4166 on: {
4167 input: function(t) {
4168 t.target.composing || (form.description = t.target.value)
4169 }
4170 }
4171 }), " ", _h("has-error", {
4172 attrs: {
4173 form: form,
4174 field: "description"
4175 }
4176 })]), " ", _h("div", {
4177 staticClass: "form-group"
4178 }, [_m(3), " ", _h("div", {
4179 staticClass: "input-group"
4180 }, [_h("div", {
4181 staticClass: "input-group-btn"
4182 }, [_h("div", {
4183 staticClass: "input-btn-color"
4184 }, [_h("input", {
4185 directives: [{
4186 name: "model",
4187 value: form.color,
4188 expression: "form.color"
4189 }],
4190 attrs: {
4191 type: "color"
4192 },
4193 domProps: {
4194 value: _s(form.color)
4195 },
4196 on: {
4197 input: function(t) {
4198 t.target.composing || (form.color = t.target.value)
4199 }
4200 }
4201 })])]), " ", _h("input", {
4202 directives: [{
4203 name: "model",
4204 value: form.color,
4205 expression: "form.color"
4206 }],
4207 staticClass: "form-control",
4208 attrs: {
4209 type: "text"
4210 },
4211 domProps: {
4212 value: _s(form.color)
4213 },
4214 on: {
4215 input: function(t) {
4216 t.target.composing || (form.color = t.target.value)
4217 }
4218 }
4219 })]), " ", _h("has-error", {
4220 attrs: {
4221 form: form,
4222 field: "color"
4223 }
4224 })])]), " ", _h("div", {
4225 staticClass: "modal-footer"
4226 }, [_h("button", {
4227 staticClass: "btn btn-success",
4228 attrs: {
4229 disabled: form.busy,
4230 type: "submit"
4231 }
4232 }, [form.busy ? _h("i", {
4233 staticClass: "fa fa-fw fa-spinner fa-spin"
4234 }) : _e(), "\n Salvează\n "])])])])])])
4235 },
4236 staticRenderFns: [function() {
4237 with(this) return _h("div", {
4238 staticClass: "modal-header"
4239 }, [_h("button", {
4240 staticClass: "close",
4241 attrs: {
4242 type: "button",
4243 "data-dismiss": "modal"
4244 }
4245 }, ["×"]), " ", _h("h4", {
4246 staticClass: "modal-title"
4247 }, ["Editează capitol"])])
4248 }, function() {
4249 with(this) return _h("label", {
4250 staticClass: "control-label"
4251 }, ["Nume"])
4252 }, function() {
4253 with(this) return _h("label", {
4254 staticClass: "control-label"
4255 }, ["Descriere"])
4256 }, function() {
4257 with(this) return _h("label", {
4258 staticClass: "control-label"
4259 }, ["Culoare"])
4260 }]
4261 }
4262}, function(module, exports) {
4263 module.exports = {
4264 render: function() {
4265 with(this) return _h("div", [_h("table-tree"), " ", _h("panel", {
4266 attrs: {
4267 title: "Adaugă întrebare",
4268 loading: ""
4269 }
4270 }, [_h("alert-success", {
4271 attrs: {
4272 form: form,
4273 message: "Întrebarea a fost adăugată!"
4274 }
4275 }), " ", _h("form", {
4276 on: {
4277 submit: function(t) {
4278 t.preventDefault(), save(t)
4279 }
4280 }
4281 }, [_h("div", {
4282 staticClass: "form-group"
4283 }, [_m(0), " ", _h("selectize", {
4284 directives: [{
4285 name: "model",
4286 value: form.chapter,
4287 expression: "form.chapter"
4288 }],
4289 attrs: {
4290 options: chapters,
4291 "close-after-select": !0
4292 },
4293 domProps: {
4294 value: form.chapter
4295 },
4296 on: {
4297 input: function(t) {
4298 form.chapter = t
4299 }
4300 }
4301 }), " ", _h("has-error", {
4302 attrs: {
4303 form: form,
4304 field: "chapter"
4305 }
4306 })]), " ", _h("div", {
4307 staticClass: "form-group"
4308 }, [_m(1), " ", _h("textarea", {
4309 directives: [{
4310 name: "model",
4311 value: form.question,
4312 expression: "form.question"
4313 }],
4314 staticClass: "form-control",
4315 domProps: {
4316 value: _s(form.question)
4317 },
4318 on: {
4319 input: function(t) {
4320 t.target.composing || (form.question = t.target.value)
4321 }
4322 }
4323 }), " ", _h("has-error", {
4324 attrs: {
4325 form: form,
4326 field: "question"
4327 }
4328 })]), " ", _h("div", {
4329 staticClass: "form-group"
4330 }, [_m(2), " ", _h("query-input", {
4331 directives: [{
4332 name: "model",
4333 value: form.query,
4334 expression: "form.query"
4335 }],
4336 domProps: {
4337 value: form.query
4338 },
4339 on: {
4340 input: function(t) {
4341 form.query = t
4342 }
4343 }
4344 }), " ", _h("has-error", {
4345 attrs: {
4346 form: form,
4347 field: "query"
4348 }
4349 })]), " ", _h("div", {
4350 staticClass: "clearfix"
4351 }, [_h("button", {
4352 staticClass: "btn btn-success pull-left",
4353 attrs: {
4354 disabled: form.busy,
4355 type: "button"
4356 },
4357 on: {
4358 click: function(t) {
4359 runQuery(form)
4360 }
4361 }
4362 }, [form.busy ? _h("i", {
4363 staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
4364 }) : _h("i", {
4365 staticClass: "fa fa-fw fa-play fa-btn"
4366 }), " ", "\n Execută\n "]), " ", _h("button", {
4367 staticClass: "btn btn-primary pull-right",
4368 attrs: {
4369 disabled: form.busy,
4370 type: "submit"
4371 },
4372 on: {
4373 click: save
4374 }
4375 }, [form.busy ? _h("i", {
4376 staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
4377 }) : _h("i", {
4378 staticClass: "fa fa-fw fa-floppy-o fa-btn"
4379 }), " ", "\n Salvează\n "])])])]), " ", queryResults && queryResults.columns ? _h("panel", [_h("query-results", {
4380 attrs: {
4381 results: queryResults
4382 }
4383 })]) : _e()])
4384 },
4385 staticRenderFns: [function() {
4386 with(this) return _h("label", {
4387 staticClass: "control-label"
4388 }, ["Capitol"])
4389 }, function() {
4390 with(this) return _h("label", {
4391 staticClass: "control-label"
4392 }, ["ÃŽntrebare"])
4393 }, function() {
4394 with(this) return _h("label", {
4395 staticClass: "control-label"
4396 }, ["Răspuns"])
4397 }]
4398 }
4399}, function(module, exports) {
4400 module.exports = {
4401 render: function() {
4402 with(this) return _h("div", {
4403 ref: "modal",
4404 staticClass: "modal fade",
4405 attrs: {
4406 "data-backdrop": "static",
4407 tabindex: "-1"
4408 }
4409 }, [_h("div", {
4410 staticClass: "modal-dialog"
4411 }, [_h("div", {
4412 staticClass: "modal-content"
4413 }, [_h("form", {
4414 on: {
4415 submit: function(t) {
4416 t.preventDefault(), save(t)
4417 }
4418 }
4419 }, [_m(0), " ", _h("div", {
4420 staticClass: "modal-body"
4421 }, [_h("div", {
4422 staticClass: "form-group"
4423 }, [_m(1), " ", _h("input", {
4424 directives: [{
4425 name: "model",
4426 value: form.name,
4427 expression: "form.name"
4428 }],
4429 ref: "name",
4430 staticClass: "form-control",
4431 attrs: {
4432 type: "text"
4433 },
4434 domProps: {
4435 value: _s(form.name)
4436 },
4437 on: {
4438 input: function(t) {
4439 t.target.composing || (form.name = t.target.value)
4440 }
4441 }
4442 }), " ", _h("has-error", {
4443 attrs: {
4444 form: form,
4445 field: "name"
4446 }
4447 })]), " ", _h("div", {
4448 staticClass: "form-group"
4449 }, [_m(2), " ", _h("textarea", {
4450 directives: [{
4451 name: "model",
4452 value: form.description,
4453 expression: "form.description"
4454 }],
4455 staticClass: "form-control",
4456 attrs: {
4457 rows: "4"
4458 },
4459 domProps: {
4460 value: _s(form.description)
4461 },
4462 on: {
4463 input: function(t) {
4464 t.target.composing || (form.description = t.target.value)
4465 }
4466 }
4467 }), " ", _h("has-error", {
4468 attrs: {
4469 form: form,
4470 field: "description"
4471 }
4472 })]), " ", _h("div", {
4473 staticClass: "form-group"
4474 }, [_m(3), " ", _h("div", {
4475 staticClass: "input-group"
4476 }, [_h("div", {
4477 staticClass: "input-group-btn"
4478 }, [_h("div", {
4479 staticClass: "input-btn-color"
4480 }, [_h("input", {
4481 directives: [{
4482 name: "model",
4483 value: form.color,
4484 expression: "form.color"
4485 }],
4486 attrs: {
4487 type: "color"
4488 },
4489 domProps: {
4490 value: _s(form.color)
4491 },
4492 on: {
4493 input: function(t) {
4494 t.target.composing || (form.color = t.target.value)
4495 }
4496 }
4497 })])]), " ", _h("input", {
4498 directives: [{
4499 name: "model",
4500 value: form.color,
4501 expression: "form.color"
4502 }],
4503 staticClass: "form-control",
4504 attrs: {
4505 type: "text"
4506 },
4507 domProps: {
4508 value: _s(form.color)
4509 },
4510 on: {
4511 input: function(t) {
4512 t.target.composing || (form.color = t.target.value)
4513 }
4514 }
4515 })]), " ", _h("has-error", {
4516 attrs: {
4517 form: form,
4518 field: "color"
4519 }
4520 })])]), " ", _h("div", {
4521 staticClass: "modal-footer"
4522 }, [_h("button", {
4523 staticClass: "btn btn-success",
4524 attrs: {
4525 disabled: form.busy,
4526 type: "submit"
4527 }
4528 }, [form.busy ? _h("i", {
4529 staticClass: "fa fa-fw fa-spinner fa-spin"
4530 }) : _e(), "\n Salvează\n "])])])])])])
4531 },
4532 staticRenderFns: [function() {
4533 with(this) return _h("div", {
4534 staticClass: "modal-header"
4535 }, [_h("button", {
4536 staticClass: "close",
4537 attrs: {
4538 type: "button",
4539 "data-dismiss": "modal"
4540 }
4541 }, ["×"]), " ", _h("h4", {
4542 staticClass: "modal-title"
4543 }, ["Adaugă capitol"])])
4544 }, function() {
4545 with(this) return _h("label", {
4546 staticClass: "control-label"
4547 }, ["Nume"])
4548 }, function() {
4549 with(this) return _h("label", {
4550 staticClass: "control-label"
4551 }, ["Descriere"])
4552 }, function() {
4553 with(this) return _h("label", {
4554 staticClass: "control-label"
4555 }, ["Culoare"])
4556 }]
4557 }
4558}, function(module, exports) {
4559 module.exports = {
4560 render: function() {
4561 with(this) return _h("panel", {
4562 attrs: {
4563 title: "Întrebări"
4564 }
4565 }, [_h("datatable", {
4566 attrs: {
4567 columns: columns,
4568 actions: itemActions,
4569 url: url,
4570 params: params
4571 }
4572 })])
4573 },
4574 staticRenderFns: []
4575 }
4576}, function(module, exports) {
4577 module.exports = {
4578 render: function() {
4579 with(this) return _h("div", [_h("table-tree"), " ", _h("panel", {
4580 attrs: {
4581 title: "Editează întrebare",
4582 loading: ""
4583 }
4584 }, [_h("form", {
4585 on: {
4586 submit: function(t) {
4587 t.preventDefault(), save(t)
4588 }
4589 }
4590 }, [_h("div", {
4591 staticClass: "form-group"
4592 }, [_m(0), " ", form.chapter ? _h("selectize", {
4593 directives: [{
4594 name: "model",
4595 value: form.chapter,
4596 expression: "form.chapter"
4597 }],
4598 attrs: {
4599 options: chapters,
4600 "close-after-select": !0
4601 },
4602 domProps: {
4603 value: form.chapter
4604 },
4605 on: {
4606 input: function(t) {
4607 form.chapter = t
4608 }
4609 }
4610 }) : _e(), " ", _h("has-error", {
4611 attrs: {
4612 form: form,
4613 field: "chapter"
4614 }
4615 })]), " ", _h("div", {
4616 staticClass: "form-group"
4617 }, [_h("label", {
4618 staticClass: "control-label"
4619 }, ["ÃŽntrebare ", question ? _h("span", ["(" + _s(question.user.name) + ")"]) : _e()]), " ", _h("textarea", {
4620 directives: [{
4621 name: "model",
4622 value: form.question,
4623 expression: "form.question"
4624 }],
4625 staticClass: "form-control",
4626 domProps: {
4627 value: _s(form.question)
4628 },
4629 on: {
4630 input: function(t) {
4631 t.target.composing || (form.question = t.target.value)
4632 }
4633 }
4634 }), " ", _h("has-error", {
4635 attrs: {
4636 form: form,
4637 field: "question"
4638 }
4639 })]), " ", _h("div", {
4640 staticClass: "form-group"
4641 }, [_m(1), _m(2), " ", _h("div", {
4642 staticClass: "radio-inline"
4643 }, [_h("label", [_h("input", {
4644 attrs: {
4645 type: "radio",
4646 value: "1"
4647 },
4648 domProps: {
4649 checked: _q(form.report_resolved, "1")
4650 },
4651 on: {
4652 change: function(t) {
4653 form.report_resolved = "1"
4654 }
4655 }
4656 }), "\n corectă\n "])]), " ", _h("div", {
4657 staticClass: "radio-inline"
4658 }, [_h("label", [_h("input", {
4659 attrs: {
4660 type: "radio",
4661 value: "-1"
4662 },
4663 domProps: {
4664 checked: _q(form.report_resolved, "-1")
4665 },
4666 on: {
4667 change: function(t) {
4668 form.report_resolved = "-1"
4669 }
4670 }
4671 }), "\n greșită\n "])]), " ", _h("has-error", {
4672 attrs: {
4673 form: form,
4674 field: "report_resolved"
4675 }
4676 })]), " ", _h("div", {
4677 staticClass: "form-group"
4678 }, [_m(3), " ", form.query ? _h("query-input", {
4679 directives: [{
4680 name: "model",
4681 value: form.query,
4682 expression: "form.query"
4683 }],
4684 domProps: {
4685 value: form.query
4686 },
4687 on: {
4688 input: function(t) {
4689 form.query = t
4690 }
4691 }
4692 }) : _e(), " ", _h("has-error", {
4693 attrs: {
4694 form: form,
4695 field: "query"
4696 }
4697 })]), " ", _h("div", {
4698 staticClass: "clearfix"
4699 }, [_h("button", {
4700 staticClass: "btn btn-success pull-left",
4701 attrs: {
4702 disabled: form.busy,
4703 type: "button"
4704 },
4705 on: {
4706 click: function(t) {
4707 runQuery(form)
4708 }
4709 }
4710 }, [form.busy ? _h("i", {
4711 staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
4712 }) : _h("i", {
4713 staticClass: "fa fa-fw fa-play fa-btn"
4714 }), " ", "\n Execută\n "]), " ", _h("button", {
4715 staticClass: "btn btn-primary pull-right",
4716 attrs: {
4717 disabled: form.busy,
4718 type: "submit"
4719 },
4720 on: {
4721 click: save
4722 }
4723 }, [form.busy ? _h("i", {
4724 staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
4725 }) : _h("i", {
4726 staticClass: "fa fa-fw fa-floppy-o fa-btn"
4727 }), " ", "\n Salvează\n "])])])]), " ", queryResults && queryResults.columns ? _h("panel", [_h("query-results", {
4728 attrs: {
4729 results: queryResults
4730 }
4731 })]) : _e()])
4732 },
4733 staticRenderFns: [function() {
4734 with(this) return _h("label", {
4735 staticClass: "control-label"
4736 }, ["Capitol"])
4737 }, function() {
4738 with(this) return _h("label", {
4739 staticClass: "control-label"
4740 }, ["Această întrebare este"])
4741 }, function() {
4742 with(this) return _h("br")
4743 }, function() {
4744 with(this) return _h("label", {
4745 staticClass: "control-label"
4746 }, ["Răspuns"])
4747 }]
4748 }
4749}, function(module, exports) {
4750 module.exports = {
4751 render: function() {
4752 with(this) return _h("div", {
4753 ref: "modal",
4754 staticClass: "modal fade",
4755 attrs: {
4756 "data-backdrop": "static",
4757 tabindex: "-1"
4758 }
4759 }, [_h("div", {
4760 staticClass: "modal-dialog"
4761 }, [_h("div", {
4762 staticClass: "modal-content"
4763 }, [_h("form", {
4764 on: {
4765 submit: function(t) {
4766 t.preventDefault(), save(t)
4767 }
4768 }
4769 }, [_m(0), " ", _h("div", {
4770 staticClass: "modal-body"
4771 }, [_h("div", {
4772 staticClass: "form-group"
4773 }, [_m(1), " ", _h("input", {
4774 directives: [{
4775 name: "model",
4776 value: form.name,
4777 expression: "form.name"
4778 }],
4779 ref: "name",
4780 staticClass: "form-control",
4781 attrs: {
4782 type: "text"
4783 },
4784 domProps: {
4785 value: _s(form.name)
4786 },
4787 on: {
4788 input: function(t) {
4789 t.target.composing || (form.name = t.target.value)
4790 }
4791 }
4792 }), " ", _h("has-error", {
4793 attrs: {
4794 form: form,
4795 field: "name"
4796 }
4797 })]), " ", _h("div", {
4798 staticClass: "form-group"
4799 }, [_m(2), " ", _h("input", {
4800 directives: [{
4801 name: "model",
4802 value: form.username,
4803 expression: "form.username"
4804 }],
4805 staticClass: "form-control",
4806 attrs: {
4807 type: "text"
4808 },
4809 domProps: {
4810 value: _s(form.username)
4811 },
4812 on: {
4813 input: function(t) {
4814 t.target.composing || (form.username = t.target.value)
4815 }
4816 }
4817 }), " ", _h("has-error", {
4818 attrs: {
4819 form: form,
4820 field: "username"
4821 }
4822 })]), " ", _h("div", {
4823 staticClass: "form-group"
4824 }, [_m(3), " ", _h("input", {
4825 directives: [{
4826 name: "model",
4827 value: form.password,
4828 expression: "form.password"
4829 }],
4830 staticClass: "form-control",
4831 attrs: {
4832 type: "password"
4833 },
4834 domProps: {
4835 value: _s(form.password)
4836 },
4837 on: {
4838 input: function(t) {
4839 t.target.composing || (form.password = t.target.value)
4840 }
4841 }
4842 }), " ", _h("has-error", {
4843 attrs: {
4844 form: form,
4845 field: "password"
4846 }
4847 })]), " ", _h("div", {
4848 staticClass: "form-group"
4849 }, [_m(4), " ", _h("select", {
4850 directives: [{
4851 name: "model",
4852 value: form.user_role,
4853 expression: "form.user_role"
4854 }],
4855 staticClass: "form-control",
4856 on: {
4857 change: function(t) {
4858 form.user_role = Array.prototype.filter.call(t.target.options, function(t) {
4859 return t.selected
4860 }).map(function(t) {
4861 return "_value" in t ? t._value : t.value
4862 })[0]
4863 }
4864 }
4865 }, [_m(5), " ", _m(6)]), " ", _h("has-error", {
4866 attrs: {
4867 form: form,
4868 field: "role"
4869 }
4870 })])]), " ", _h("div", {
4871 staticClass: "modal-footer"
4872 }, [_h("button", {
4873 staticClass: "btn btn-success",
4874 attrs: {
4875 disabled: form.busy,
4876 type: "submit"
4877 }
4878 }, [form.busy ? _h("i", {
4879 staticClass: "fa fa-fw fa-spinner fa-spin"
4880 }) : _e(), "\n Salvează\n "])])])])])])
4881 },
4882 staticRenderFns: [function() {
4883 with(this) return _h("div", {
4884 staticClass: "modal-header"
4885 }, [_h("button", {
4886 staticClass: "close",
4887 attrs: {
4888 type: "button",
4889 "data-dismiss": "modal"
4890 }
4891 }, ["×"]), " ", _h("h4", {
4892 staticClass: "modal-title"
4893 }, ["Adaugă utilizator"])])
4894 }, function() {
4895 with(this) return _h("label", {
4896 staticClass: "control-label"
4897 }, ["Nume"])
4898 }, function() {
4899 with(this) return _h("label", {
4900 staticClass: "control-label"
4901 }, ["Utilizator"])
4902 }, function() {
4903 with(this) return _h("label", {
4904 staticClass: "control-label"
4905 }, ["Parolă"])
4906 }, function() {
4907 with(this) return _h("label", {
4908 staticClass: "control-label"
4909 }, ["Rol"])
4910 }, function() {
4911 with(this) return _h("option", {
4912 attrs: {
4913 value: "user"
4914 }
4915 }, ["User"])
4916 }, function() {
4917 with(this) return _h("option", {
4918 attrs: {
4919 value: "admin"
4920 }
4921 }, ["Admin"])
4922 }]
4923 }
4924}, function(module, exports) {
4925 module.exports = {
4926 render: function() {
4927 with(this) return _h("div", [_h("panel", {
4928 staticClass: "users",
4929 attrs: {
4930 title: "Utilizatori"
4931 }
4932 }, [_h("datatable", {
4933 attrs: {
4934 columns: columns,
4935 actions: itemActions,
4936 url: "/api/admin/users"
4937 }
4938 })]), " ", _h("router-view", {
4939 staticClass: "child"
4940 })])
4941 },
4942 staticRenderFns: []
4943 }
4944}, function(module, exports) {
4945 module.exports = {
4946 render: function() {
4947 with(this) return _h("div", {
4948 ref: "modal",
4949 staticClass: "modal fade",
4950 attrs: {
4951 "data-backdrop": "static",
4952 tabindex: "-1"
4953 }
4954 }, [_h("div", {
4955 staticClass: "modal-dialog"
4956 }, [_h("div", {
4957 staticClass: "modal-content"
4958 }, [_h("form", {
4959 on: {
4960 submit: function(t) {
4961 t.preventDefault(), save(t)
4962 }
4963 }
4964 }, [_m(0), " ", _h("div", {
4965 staticClass: "modal-body"
4966 }, [_h("div", {
4967 staticClass: "form-group"
4968 }, [_m(1), " ", _h("input", {
4969 directives: [{
4970 name: "model",
4971 value: form.name,
4972 expression: "form.name"
4973 }],
4974 staticClass: "form-control",
4975 attrs: {
4976 type: "text"
4977 },
4978 domProps: {
4979 value: _s(form.name)
4980 },
4981 on: {
4982 input: function(t) {
4983 t.target.composing || (form.name = t.target.value)
4984 }
4985 }
4986 }), " ", _h("has-error", {
4987 attrs: {
4988 form: form,
4989 field: "name"
4990 }
4991 })]), " ", _h("div", {
4992 staticClass: "form-group"
4993 }, [_m(2), " ", _h("input", {
4994 directives: [{
4995 name: "model",
4996 value: form.username,
4997 expression: "form.username"
4998 }],
4999 staticClass: "form-control",
5000 attrs: {
5001 type: "text"
5002 },
5003 domProps: {
5004 value: _s(form.username)
5005 },
5006 on: {
5007 input: function(t) {
5008 t.target.composing || (form.username = t.target.value)
5009 }
5010 }
5011 }), " ", _h("has-error", {
5012 attrs: {
5013 form: form,
5014 field: "username"
5015 }
5016 })]), " ", _h("div", {
5017 staticClass: "form-group"
5018 }, [_m(3), " ", _h("input", {
5019 directives: [{
5020 name: "model",
5021 value: form.password,
5022 expression: "form.password"
5023 }],
5024 staticClass: "form-control",
5025 attrs: {
5026 type: "password"
5027 },
5028 domProps: {
5029 value: _s(form.password)
5030 },
5031 on: {
5032 input: function(t) {
5033 t.target.composing || (form.password = t.target.value)
5034 }
5035 }
5036 }), " ", _h("has-error", {
5037 attrs: {
5038 form: form,
5039 field: "password"
5040 }
5041 })]), " ", _h("div", {
5042 staticClass: "form-group"
5043 }, [_m(4), " ", _h("select", {
5044 directives: [{
5045 name: "model",
5046 value: form.user_role,
5047 expression: "form.user_role"
5048 }],
5049 staticClass: "form-control",
5050 on: {
5051 change: function(t) {
5052 form.user_role = Array.prototype.filter.call(t.target.options, function(t) {
5053 return t.selected
5054 }).map(function(t) {
5055 return "_value" in t ? t._value : t.value
5056 })[0]
5057 }
5058 }
5059 }, [_m(5), " ", _m(6)]), " ", _h("has-error", {
5060 attrs: {
5061 form: form,
5062 field: "role"
5063 }
5064 })])]), " ", _h("div", {
5065 staticClass: "modal-footer"
5066 }, [_h("button", {
5067 staticClass: "btn btn-success",
5068 attrs: {
5069 disabled: form.busy,
5070 type: "submit"
5071 }
5072 }, [form.busy ? _h("i", {
5073 staticClass: "fa fa-fw fa-spinner fa-spin"
5074 }) : _e(), "\n Salvează\n "])])])])])])
5075 },
5076 staticRenderFns: [function() {
5077 with(this) return _h("div", {
5078 staticClass: "modal-header"
5079 }, [_h("button", {
5080 staticClass: "close",
5081 attrs: {
5082 type: "button",
5083 "data-dismiss": "modal"
5084 }
5085 }, ["×"]), " ", _h("h4", {
5086 staticClass: "modal-title"
5087 }, ["Editează utilizator"])])
5088 }, function() {
5089 with(this) return _h("label", {
5090 staticClass: "control-label"
5091 }, ["Nume"])
5092 }, function() {
5093 with(this) return _h("label", {
5094 staticClass: "control-label"
5095 }, ["Utilizator"])
5096 }, function() {
5097 with(this) return _h("label", {
5098 staticClass: "control-label"
5099 }, ["Parolă"])
5100 }, function() {
5101 with(this) return _h("label", {
5102 staticClass: "control-label"
5103 }, ["Rol"])
5104 }, function() {
5105 with(this) return _h("option", {
5106 attrs: {
5107 value: "user"
5108 }
5109 }, ["User"])
5110 }, function() {
5111 with(this) return _h("option", {
5112 attrs: {
5113 value: "admin"
5114 }
5115 }, ["Admin"])
5116 }]
5117 }
5118}, function(module, exports) {
5119 module.exports = {
5120 render: function() {
5121 with(this) return _h("div", [_h("panel", {
5122 attrs: {
5123 title: "Tabele",
5124 loading: ""
5125 }
5126 }, [_h("alert-errors", {
5127 attrs: {
5128 form: form,
5129 message: ""
5130 }
5131 }), " ", _h("div", {
5132 staticClass: "form-group"
5133 }, [_h("query-input", {
5134 directives: [{
5135 name: "model",
5136 value: form.query,
5137 expression: "form.query"
5138 }],
5139 domProps: {
5140 value: form.query
5141 },
5142 on: {
5143 input: function(t) {
5144 form.query = t
5145 }
5146 }
5147 })]), " ", _h("button", {
5148 staticClass: "btn btn-primary",
5149 attrs: {
5150 disabled: form.busy,
5151 type: "submit"
5152 },
5153 on: {
5154 click: store
5155 }
5156 }, [form.busy ? _h("i", {
5157 staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
5158 }) : _h("i", {
5159 staticClass: "fa fa-fw fa-play fa-btn"
5160 }), " ", "\n Execută\n "])]), " ", _h("panel", {
5161 directives: [{
5162 name: "show",
5163 value: tables.length > 0,
5164 expression: "tables.length > 0"
5165 }],
5166 attrs: {
5167 loading: ""
5168 }
5169 }, [_h("table", {
5170 staticClass: "table table-striped table-bordered table-hover"
5171 }, [_m(0), " ", _h("transition-group", {
5172 attrs: {
5173 name: "list",
5174 tag: "tbody"
5175 }
5176 }, [_l(tables, function(t) {
5177 return _h("tr", {
5178 key: t.name
5179 }, [_h("td", [_s(t.name)]), " ", _h("td", [t.granted ? _h("action-danger", {
5180 attrs: {
5181 action: revoke,
5182 item: t,
5183 icon: "fa-minus-circle",
5184 title: "Revocă acessul"
5185 }
5186 }) : _h("action-success", {
5187 attrs: {
5188 action: grant,
5189 item: t,
5190 icon: "fa-plus-circle",
5191 title: "Permite acessul"
5192 }
5193 }), " "]), " ", _h("td", [_h("action-danger", {
5194 attrs: {
5195 action: drop,
5196 item: t,
5197 icon: "fa-trash-o",
5198 title: "Șterge"
5199 }
5200 })])])
5201 })])])])])
5202 },
5203 staticRenderFns: [function() {
5204 with(this) return _h("thead", [_h("tr", [_h("th", ["Tabel"]), " ", _h("th", ["Permisiuni"]), " ", _h("th", ["Acțiuni"])])])
5205 }]
5206 }
5207}, function(module, exports) {
5208 module.exports = {
5209 render: function() {
5210 with(this) return _h("div", [_h("panel", {
5211 attrs: {
5212 loading: ""
5213 }
5214 }, [_h("h3", ["\n " + _s(user.name) + " ", "admin.users.answers" == $route.name ? _h("span", {
5215 attrs: {
5216 style: "color: #879096; font-size: 18px;"
5217 }
5218 }, ["(" + _s(chapterName) + ")"]) : _e(), " ", _m(0), " ", _h("h4", {
5219 staticClass: "help-block",
5220 attrs: {
5221 style: "color: #879096"
5222 }
5223 }, [_s(user.username)])])]), " ", user && chapters.length > 0 ? _h("router-view", {
5224 staticClass: "child",
5225 attrs: {
5226 user: user,
5227 chapters: chapters
5228 }
5229 }) : _e()])
5230 },
5231 staticRenderFns: [function() {
5232 with(this) return _h("hr")
5233 }]
5234 }
5235}, function(module, exports) {
5236 module.exports = {
5237 render: function() {
5238 with(this) return _h("div", {
5239 staticClass: "container"
5240 }, [_h("div", {
5241 staticClass: "row"
5242 }, [_m(0), " ", _h("div", {
5243 staticClass: "col-md-9"
5244 }, [_h("div", {
5245 staticClass: "tab-content"
5246 }, [_h("password")])])])])
5247 },
5248 staticRenderFns: [function() {
5249 with(this) return _h("div", {
5250 staticClass: "col-md-3"
5251 }, [_h("div", {
5252 staticClass: "panel panel-default panel-settings"
5253 }, [_h("div", {
5254 staticClass: "panel-heading"
5255 }, ["Setări"]), " ", _h("div", {
5256 staticClass: "panel-body"
5257 }, [_h("ul", {
5258 staticClass: "nav tabs-stacked"
5259 }, [_h("li", {
5260 staticClass: "active"
5261 }, [_h("a", {
5262 attrs: {
5263 href: "#security",
5264 "data-toggle": "tab",
5265 "aria-expanded": "false"
5266 }
5267 }, [_h("i", {
5268 staticClass: "fa fa-fw fa-lock"
5269 }), " Parolă\n "])])])])])])
5270 }]
5271 }
5272}, function(module, exports) {
5273 module.exports = {
5274 render: function() {
5275 with(this) return _h("panel", {
5276 attrs: {
5277 loading: ""
5278 }
5279 }, [_l(answers, function(t) {
5280 return _h("div", {
5281 staticClass: "panel panel-default"
5282 }, [_h("div", {
5283 staticClass: "panel-heading"
5284 }, [_h("h4", {
5285 staticClass: "panel-title"
5286 }, [_h("div", {
5287 staticClass: "label pull-right",
5288 "class": {
5289 "label-danger": !+t.solved,
5290 "label-success": +t.solved
5291 }
5292 }, [_s(+t.solved ? "Corect" : "Gresit")]), " ", _h("a", {
5293 staticClass: "collapsed",
5294 attrs: {
5295 style: "display: block;",
5296 "data-toggle": "collapse",
5297 href: "#question-" + t.question.id
5298 }
5299 }, ["\n Intrebarea #" + _s(t.question.id) + "\n "])])]), " ", _h("div", {
5300 staticClass: "panel-collapse collapse",
5301 attrs: {
5302 id: "question-" + t.question.id
5303 }
5304 }, [_h("div", {
5305 staticClass: "panel-body"
5306 }, ["\n " + _s(t.question.question), _m(0), _m(1), " ", _m(2), " ", _h("pre", [_s(t.question.answer)]), " ", _h("label", [_s(user.name) + ":"]), " ", _h("pre", [_s(t.answer)]), " ", +t.solved ? _e() : _h("button", {
5307 staticClass: "btn btn-sm btn-default",
5308 attrs: {
5309 type: "button",
5310 disabled: t.loading
5311 },
5312 on: {
5313 click: function(e) {
5314 compare(t)
5315 }
5316 }
5317 }, [t.loading ? _h("i", {
5318 staticClass: "fa fa-fw fa-spinner fa-spin"
5319 }) : _e(), "\n Compara\n "])]), " ", t.userSet && t.userSet.columns ? _h("div", {
5320 staticClass: "m-l-md m-r-md"
5321 }, [_h("query-results", {
5322 attrs: {
5323 results: t.userSet,
5324 correct: t.correctSet
5325 }
5326 })]) : _e()])])
5327 })])
5328 },
5329 staticRenderFns: [function() {
5330 with(this) return _h("br")
5331 }, function() {
5332 with(this) return _h("br")
5333 }, function() {
5334 with(this) return _h("label", ["Corect:"])
5335 }]
5336 }
5337}, function(module, exports) {
5338 module.exports = {
5339 render: function() {
5340 with(this) return _h("div", [_h("transition", {
5341 attrs: {
5342 name: "fade",
5343 mode: "out-in"
5344 }
5345 }, [$root.loading ? _e() : _h("div", [_h("div", {
5346 staticClass: "row m-t-sm"
5347 }, [_l(chapters, function(t) {
5348 return _h("div", {
5349 staticClass: "col-lg-4 col-md-6 col-sm-6 col-xs-12"
5350 }, [_h("chapter-card", {
5351 attrs: {
5352 chapter: t
5353 }
5354 })])
5355 }), " ", 0 === chapters.length ? _h("div", {
5356 staticClass: "text-center"
5357 }, [_m(0)]) : _e()])])])])
5358 },
5359 staticRenderFns: [function() {
5360 with(this) return _h("h4", ["Nu a fost gasita nici un capitol."])
5361 }]
5362 }
5363}, function(module, exports) {
5364 module.exports = {
5365 render: function() {
5366 with(this) return _h("panel", {
5367 attrs: {
5368 title: "Setări",
5369 loading: ""
5370 }
5371 }, [_m(0), " ", _h("div", {
5372 staticClass: "row"
5373 }, [_h("div", {
5374 staticClass: "col-md-6"
5375 }, [_h("form", {
5376 on: {
5377 submit: function(t) {
5378 t.preventDefault(), save(t)
5379 }
5380 }
5381 }, [_h("div", {
5382 staticClass: "tab-content"
5383 }, [_h("general", {
5384 staticClass: "tab-pane m-t-md active",
5385 attrs: {
5386 form: form,
5387 id: "tab1"
5388 }
5389 }), " ", _h("steps", {
5390 directives: [{
5391 name: "model",
5392 value: form.steps,
5393 expression: "form.steps"
5394 }],
5395 staticClass: "tab-pane m-t-md",
5396 attrs: {
5397 id: "tab2"
5398 },
5399 domProps: {
5400 value: form.steps
5401 },
5402 on: {
5403 input: function(t) {
5404 form.steps = t
5405 }
5406 }
5407 }), " ", _h("reports", {
5408 staticClass: "tab-pane m-t-md",
5409 attrs: {
5410 form: form,
5411 id: "tab3"
5412 }
5413 })])])])])])
5414 },
5415 staticRenderFns: [function() {
5416 with(this) return _h("ul", {
5417 staticClass: "nav nav-tabs"
5418 }, [_h("li", {
5419 staticClass: "active"
5420 }, [_h("a", {
5421 attrs: {
5422 href: "#tab1",
5423 "data-toggle": "tab"
5424 }
5425 }, ["General"])]), " ", _h("li", [_h("a", {
5426 attrs: {
5427 href: "#tab2",
5428 "data-toggle": "tab"
5429 }
5430 }, ["Praguri"])]), " ", _h("li", [_h("a", {
5431 attrs: {
5432 href: "#tab3",
5433 "data-toggle": "tab"
5434 }
5435 }, ["Raportări"])])])
5436 }]
5437 }
5438}, function(module, exports) {
5439 module.exports = {
5440 render: function() {
5441 with(this) return _h("div", {
5442 staticClass: "tab-pane active",
5443 attrs: {
5444 id: "security"
5445 }
5446 }, [_h("div", {
5447 staticClass: "panel panel-default"
5448 }, [_m(0), " ", _h("div", {
5449 staticClass: "panel-body"
5450 }, [_h("form", {
5451 staticClass: "form-horizontal",
5452 on: {
5453 submit: function(t) {
5454 t.preventDefault(), save(t)
5455 }
5456 }
5457 }, [_h("alert-success", {
5458 attrs: {
5459 form: form,
5460 message: "Parola a fost actualizată!"
5461 }
5462 }), " ", _h("div", {
5463 staticClass: "form-group"
5464 }, [_m(1), " ", _h("div", {
5465 staticClass: "col-md-6"
5466 }, [_h("input", {
5467 directives: [{
5468 name: "model",
5469 value: form.current_password,
5470 expression: "form.current_password"
5471 }],
5472 staticClass: "form-control",
5473 attrs: {
5474 type: "password"
5475 },
5476 domProps: {
5477 value: _s(form.current_password)
5478 },
5479 on: {
5480 input: function(t) {
5481 t.target.composing || (form.current_password = t.target.value)
5482 }
5483 }
5484 }), " ", _h("has-error", {
5485 attrs: {
5486 form: form,
5487 field: "current_password"
5488 }
5489 })])]), " ", _h("div", {
5490 staticClass: "form-group"
5491 }, [_m(2), " ", _h("div", {
5492 staticClass: "col-md-6"
5493 }, [_h("input", {
5494 directives: [{
5495 name: "model",
5496 value: form.password,
5497 expression: "form.password"
5498 }],
5499 staticClass: "form-control",
5500 attrs: {
5501 type: "password"
5502 },
5503 domProps: {
5504 value: _s(form.password)
5505 },
5506 on: {
5507 input: function(t) {
5508 t.target.composing || (form.password = t.target.value)
5509 }
5510 }
5511 }), " ", _h("has-error", {
5512 attrs: {
5513 form: form,
5514 field: "password"
5515 }
5516 })])]), " ", _h("div", {
5517 staticClass: "form-group"
5518 }, [_m(3), " ", _h("div", {
5519 staticClass: "col-md-6"
5520 }, [_h("input", {
5521 directives: [{
5522 name: "model",
5523 value: form.password_confirmation,
5524 expression: "form.password_confirmation"
5525 }],
5526 staticClass: "form-control",
5527 attrs: {
5528 type: "password"
5529 },
5530 domProps: {
5531 value: _s(form.password_confirmation)
5532 },
5533 on: {
5534 input: function(t) {
5535 t.target.composing || (form.password_confirmation = t.target.value)
5536 }
5537 }
5538 })])]), " ", _h("div", {
5539 staticClass: "form-group"
5540 }, [_h("div", {
5541 staticClass: "col-md-offset-3 col-md-6"
5542 }, [_h("button", {
5543 staticClass: "btn btn-success",
5544 attrs: {
5545 disabled: form.busy,
5546 type: "submit"
5547 }
5548 }, [form.busy ? _h("i", {
5549 staticClass: "fa fa-fw fa-spinner fa-spin"
5550 }) : _e(), "\n Salvează\n "])])])])])])])
5551 },
5552 staticRenderFns: [function() {
5553 with(this) return _h("div", {
5554 staticClass: "panel-heading"
5555 }, ["Parolă"])
5556 }, function() {
5557 with(this) return _h("label", {
5558 staticClass: "col-md-3 control-label"
5559 }, ["Parola Curentă"])
5560 }, function() {
5561 with(this) return _h("label", {
5562 staticClass: "col-md-3 control-label"
5563 }, ["Noua Parolă"])
5564 }, function() {
5565 with(this) return _h("label", {
5566 staticClass: "col-md-3 control-label"
5567 }, ["Confirmă Parola"])
5568 }]
5569 }
5570}, function(module, exports) {
5571 module.exports = {
5572 render: function() {
5573 with(this) return _h("div", {
5574 staticClass: "chapter-card"
5575 }, [_h("div", {
5576 staticClass: "mdl-card mdl-shadow--2dp"
5577 }, [_h("div", {
5578 staticClass: "mdl-card__title mdl-card--expand",
5579 style: {
5580 "background-color": chapter.color
5581 }
5582 }, [_h("h2", {
5583 staticClass: "mdl-card__title-text"
5584 }, [_h("span", [_s(chapter.name) + "\n ", _h("span", {
5585 staticClass: "question-count"
5586 }, ["\n [" + _s(chapter.questions_answered ? chapter.questions_answered.count : 0) + "/" + _s(chapter.questions_count ? chapter.questions_count.count : 0) + "]\n "])])])]), " ", _h("div", {
5587 staticClass: "mdl-card__supporting-text"
5588 }, ["\n " + _s(description) + "\n "]), " ", _h("div", {
5589 staticClass: "mdl-card__actions mdl-card--border"
5590 }, [_h("router-link", {
5591 staticClass: "mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect mdl-button--accent",
5592 attrs: {
5593 to: {
5594 name: "quiz",
5595 params: {
5596 id: chapter.id
5597 }
5598 }
5599 }
5600 }, ["\n ÃŽntrebari\n "]), " ", _h("router-link", {
5601 staticClass: "pull-right mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect",
5602 attrs: {
5603 to: {
5604 name: "chapter.statistics",
5605 params: {
5606 id: chapter.id
5607 }
5608 }
5609 }
5610 }, ["\n Statistici\n "])])])])
5611 },
5612 staticRenderFns: []
5613 }
5614}, function(module, exports) {
5615 module.exports = {
5616 render: function() {
5617 with(this) return _h("panel", {
5618 "class": {
5619 "cannot-report": 1 == question.report_resolved
5620 }
5621 }, [_h("span", [_s(question.question)]), " ", _m(0), " ", _h("div", {
5622 staticClass: "clearfix"
5623 }, [_h("div", {
5624 staticClass: "label label-default"
5625 }, ["\n " + _s(question.chapter.name) + "\n "]), " ", _h("div", {
5626 staticClass: "label label-success m-l-xs"
5627 }, ["\n " + _s(question.solved) + " / " + _s(question.asked) + "\n "]), " ", 1 != question.report_resolved ? _h("div", {
5628 staticClass: "label label-danger m-l-xs"
5629 }, ["\n " + _s(question.reported) + "\n "]) : _e(), " ", _h("div", {
5630 staticClass: "pull-right"
5631 }, [canBeDeleted ? _h("span", {
5632 staticClass: "delete-action"
5633 }, [needToAddQuestion ? [_m(1)] : [canDelete ? _h("i", {
5634 staticClass: "fa fa-times",
5635 attrs: {
5636 "aria-hidden": "true",
5637 title: "Șterge această întrebare"
5638 },
5639 on: {
5640 click: destroy
5641 }
5642 }) : _h("i", {
5643 staticClass: "fa fa-times disabled",
5644 attrs: {
5645 "aria-hidden": "true",
5646 title: "Trebuie să mai răspunzi la întrebări din acest capitol pentru a putea șterge."
5647 }
5648 }), " "], " "]) : _e(), " ", 1 == question.report_resolved ? _h("i", {
5649 staticClass: "fa fa-check-square-o m-l-sm",
5650 attrs: {
5651 "aria-hidden": "true",
5652 title: "Aceasta intrebare a fost aprobata de un administrator si nu mai poate fi raportata."
5653 }
5654 }) : _e()])])])
5655 },
5656 staticRenderFns: [function() {
5657 with(this) return _h("hr")
5658 }, function() {
5659 with(this) return _h("i", {
5660 staticClass: "fa fa-times disabled",
5661 attrs: {
5662 "aria-hidden": "true",
5663 title: "Trebuie să adaugi o întrebare pentru a putea șterge."
5664 }
5665 })
5666 }]
5667 }
5668}, function(module, exports) {
5669 module.exports = {
5670 render: function() {
5671 with(this) return _h("ul", {
5672 staticClass: "nav navbar-nav"
5673 }, [_h("router-link", {
5674 attrs: {
5675 tag: "li",
5676 to: {
5677 name: "admin.dashboard"
5678 },
5679 exact: "",
5680 "active-class": "active"
5681 }
5682 }, [_m(0)]), " ", _h("router-link", {
5683 attrs: {
5684 tag: "li",
5685 to: {
5686 name: "admin.chapters.index"
5687 },
5688 "active-class": "active"
5689 }
5690 }, [_m(1)]), " ", _h("router-link", {
5691 attrs: {
5692 tag: "li",
5693 to: {
5694 name: "admin.questions.index"
5695 },
5696 "active-class": "active"
5697 }
5698 }, [_m(2)]), " ", _h("router-link", {
5699 attrs: {
5700 tag: "li",
5701 to: {
5702 name: "admin.tables"
5703 },
5704 "active-class": "active"
5705 }
5706 }, [_m(3)]), " ", _h("router-link", {
5707 attrs: {
5708 tag: "li",
5709 to: {
5710 name: "admin.users.index"
5711 },
5712 "active-class": "active"
5713 }
5714 }, [_m(4)]), " ", _h("router-link", {
5715 attrs: {
5716 tag: "li",
5717 to: {
5718 name: "admin.settings"
5719 },
5720 "active-class": "active"
5721 }
5722 }, [_m(5)])])
5723 },
5724 staticRenderFns: [function() {
5725 with(this) return _h("a", [_h("i", {
5726 staticClass: "fa fa-tachometer"
5727 }), " Dashboard"])
5728 }, function() {
5729 with(this) return _h("a", [_h("i", {
5730 staticClass: "fa fa-list-ul"
5731 }), " Capitole"])
5732 }, function() {
5733 with(this) return _h("a", [_h("i", {
5734 staticClass: "fa fa fa-question"
5735 }), " Întrebări"])
5736 }, function() {
5737 with(this) return _h("a", [_h("i", {
5738 staticClass: "fa fa-table"
5739 }), " Tabele"])
5740 }, function() {
5741 with(this) return _h("a", [_h("i", {
5742 staticClass: "fa fa-users"
5743 }), " Utilizatori"])
5744 }, function() {
5745 with(this) return _h("a", [_h("i", {
5746 staticClass: "fa fa-cogs"
5747 }), " Setări"])
5748 }]
5749 }
5750}, function(module, exports) {
5751 module.exports = {
5752 render: function() {
5753 with(this) return _h("div", {
5754 "class": wrapperClass
5755 }, [_h("table", {
5756 ref: "table",
5757 "class": tableClass
5758 }, [_h("thead", [_h("tr", [_l(columns, function(t) {
5759 return [t.visible ? [isSpecialColumn(t.name) ? [_h("th", {
5760 "class": t.titleClass,
5761 attrs: {
5762 id: t.name
5763 }
5764 }, ["\n " + _s(t.title || "") + "\n "])] : [_h("th", {
5765 "class": t.titleClass,
5766 attrs: {
5767 id: "_" + t.name
5768 }
5769 }, ["\n " + _s(_f("capitalize")(getTitle(t))) + "\n "])], " "] : _e()]
5770 })])])])])
5771 },
5772 staticRenderFns: []
5773 }
5774}, function(module, exports) {
5775 module.exports = {
5776 render: function() {
5777 with(this) return _h("div", {
5778 staticClass: "chapter-card"
5779 }, [_h("div", {
5780 staticClass: "mdl-card mdl-shadow--2dp"
5781 }, [_h("div", {
5782 staticClass: "mdl-card__title mdl-card--expand",
5783 style: {
5784 "background-color": chapter.color
5785 }
5786 }, [_h("h2", {
5787 staticClass: "mdl-card__title-text"
5788 }, [_h("span", [_s(chapter.name) + "\n ", _h("span", {
5789 staticClass: "question-count"
5790 }, ["\n [" + _s(chapter.questions_answered_count ? chapter.questions_answered_count.count : 0) + "/" + _s(chapter.questions_count ? chapter.questions_count.count : 0) + "]\n "])])])]), " ", _h("div", {
5791 staticClass: "mdl-card__supporting-text"
5792 }, ["\n " + _s(description) + "\n "]), " ", _h("div", {
5793 staticClass: "mdl-card__actions mdl-card--border"
5794 }, [_h("router-link", {
5795 staticClass: "mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect mdl-button--accent",
5796 attrs: {
5797 to: {
5798 name: "admin.users.answers",
5799 params: {
5800 id: $route.params.id,
5801 cid: chapter.id
5802 }
5803 }
5804 }
5805 }, ["\n Răspunsuri\n "])])])])
5806 },
5807 staticRenderFns: []
5808 }
5809}, function(module, exports) {
5810 module.exports = {
5811 render: function() {
5812 with(this) return _h("div", [_h("button", {
5813 staticClass: "btn btn-default btn-sm m-b-md",
5814 attrs: {
5815 type: "button"
5816 },
5817 on: {
5818 click: add
5819 }
5820 }, [_m(0), " Adaugă\n "]), " ", _h("div", {
5821 staticClass: "row"
5822 }, [_h("div", {
5823 staticClass: "col-md-8"
5824 }, [_h("table", {
5825 staticClass: "table table-striped table-bordered table-hover"
5826 }, [_m(1), " ", _h("transition-group", {
5827 attrs: {
5828 name: "list",
5829 tag: "tbody"
5830 }
5831 }, [_l(value, function(t, e) {
5832 return _h("tr", {
5833 key: e
5834 }, [_h("td", ["#" + _s(e + 1)]), " ", _h("td", [_s(t)]), " ", _h("td", {
5835 staticClass: "column-actions"
5836 }, [_h("action-primary", {
5837 attrs: {
5838 action: edit,
5839 item: e,
5840 icon: "fa-pencil",
5841 title: "Editează"
5842 }
5843 }), " ", value.length > 1 ? _h("action-danger", {
5844 attrs: {
5845 action: destroy,
5846 item: e,
5847 icon: "fa-trash-o",
5848 title: "Șterge"
5849 }
5850 }) : _e()])])
5851 })])])])]), " ", _m(2), " ", _h("div", {
5852 ref: "modal",
5853 staticClass: "modal fade",
5854 attrs: {
5855 "data-backdrop": "static",
5856 tabindex: "-1"
5857 }
5858 }, [_h("div", {
5859 staticClass: "modal-dialog"
5860 }, [_h("div", {
5861 staticClass: "modal-content"
5862 }, [_h("form", {
5863 on: {
5864 submit: function(t) {
5865 t.preventDefault(), save(t)
5866 }
5867 }
5868 }, [_h("div", {
5869 staticClass: "modal-header"
5870 }, [_m(3), " ", _h("h4", {
5871 staticClass: "modal-title"
5872 }, ["Editează pragul #" + _s(this.form.index + 1)])]), " ", _h("div", {
5873 staticClass: "modal-body"
5874 }, [_h("div", {
5875 staticClass: "form-group m-b-0"
5876 }, [_m(4), " ", _h("input", {
5877 directives: [{
5878 name: "model",
5879 value: form.step,
5880 expression: "form.step"
5881 }],
5882 staticClass: "form-control",
5883 attrs: {
5884 type: "number",
5885 min: 1
5886 },
5887 domProps: {
5888 value: _s(form.step)
5889 },
5890 on: {
5891 input: function(t) {
5892 t.target.composing || (form.step = _n(t.target.value))
5893 }
5894 }
5895 }), " ", _h("has-error", {
5896 attrs: {
5897 form: form,
5898 field: "step"
5899 }
5900 })])]), " ", _m(5)])])])])])
5901 },
5902 staticRenderFns: [function() {
5903 with(this) return _h("i", {
5904 staticClass: "fa fa-plus fa-btn"
5905 })
5906 }, function() {
5907 with(this) return _h("thead", [_h("tr", [_h("th", ["Prag"]), " ", _h("th", ["Nr. Întrebări"]), " ", _h("th")])])
5908 }, function() {
5909 with(this) return _h("p", {
5910 staticClass: "help-block"
5911 }, ["\n Prag = numărul de întrebări un utilizator trebuie să răspundă corect pentru a putea adauga o nouă întrebare.\n "])
5912 }, function() {
5913 with(this) return _h("button", {
5914 staticClass: "close",
5915 attrs: {
5916 type: "button",
5917 "data-dismiss": "modal"
5918 }
5919 }, ["×"])
5920 }, function() {
5921 with(this) return _h("label", {
5922 staticClass: "control-label"
5923 }, ["Nr. Întrebări"])
5924 }, function() {
5925 with(this) return _h("div", {
5926 staticClass: "modal-footer"
5927 }, [_h("button", {
5928 staticClass: "btn btn-success",
5929 attrs: {
5930 type: "submit"
5931 }
5932 }, ["\n Salvează\n "])])
5933 }]
5934 }
5935}, function(module, exports) {
5936 module.exports = {
5937 render: function() {
5938 with(this) return _h("div", [_h("div", {
5939 staticClass: "navbar navbar-default"
5940 }, [_h("div", {
5941 staticClass: "container"
5942 }, [_h("div", {
5943 staticClass: "navbar-header"
5944 }, [_h("router-link", {
5945 staticClass: "navbar-brand",
5946 attrs: {
5947 to: "/"
5948 }
5949 }, [_m(0), " Baze de Date\n "])])])]), " ", _h("div", {
5950 staticClass: "container"
5951 }, [_h("div", {
5952 staticClass: "col-sm-8 col-lg-6 col-sm-offset-2 col-lg-offset-3"
5953 }, [_h("div", {
5954 staticClass: "panel panel-default"
5955 }, [_m(1), " ", _h("div", {
5956 staticClass: "panel-body"
5957 }, [_h("form", {
5958 staticClass: "form-horizontal",
5959 on: {
5960 submit: function(t) {
5961 t.preventDefault(), login(t)
5962 }
5963 }
5964 }, [form.errors.has("error") ? _h("alert-error", {
5965 attrs: {
5966 form: form
5967 }
5968 }) : _e(), " ", " ", _h("div", {
5969 staticClass: "form-group"
5970 }, [_m(2), " ", _h("div", {
5971 staticClass: "col-md-7"
5972 }, [_h("input", {
5973 directives: [{
5974 name: "model",
5975 value: form.username,
5976 expression: "form.username"
5977 }],
5978 ref: "username",
5979 staticClass: "form-control",
5980 attrs: {
5981 type: "text",
5982 name: "username"
5983 },
5984 domProps: {
5985 value: _s(form.username)
5986 },
5987 on: {
5988 input: function(t) {
5989 t.target.composing || (form.username = t.target.value)
5990 }
5991 }
5992 }), " ", _h("has-error", {
5993 attrs: {
5994 form: form,
5995 field: "username"
5996 }
5997 })])]), " ", " ", _h("div", {
5998 staticClass: "form-group"
5999 }, [_m(3), " ", _h("div", {
6000 staticClass: "col-md-7"
6001 }, [_h("input", {
6002 directives: [{
6003 name: "model",
6004 value: form.password,
6005 expression: "form.password"
6006 }],
6007 staticClass: "form-control",
6008 attrs: {
6009 type: "password",
6010 name: "password"
6011 },
6012 domProps: {
6013 value: _s(form.password)
6014 },
6015 on: {
6016 input: function(t) {
6017 t.target.composing || (form.password = t.target.value)
6018 }
6019 }
6020 }), " ", _h("has-error", {
6021 attrs: {
6022 form: form,
6023 field: "password"
6024 }
6025 })])]), " ", " ", _h("div", {
6026 staticClass: "form-group"
6027 }, [_h("div", {
6028 staticClass: "col-md-7 col-md-offset-3"
6029 }, [_h("div", {
6030 staticClass: "checkbox"
6031 }, [_h("label", [_h("input", {
6032 attrs: {
6033 type: "checkbox",
6034 name: "remember",
6035 value: "1"
6036 },
6037 domProps: {
6038 checked: Array.isArray(form.remember) ? _i(form.remember, "1") > -1 : _q(form.remember, !0)
6039 },
6040 on: {
6041 change: function(t) {
6042 var e = form.remember,
6043 a = t.target,
6044 n = !!a.checked;
6045 if (Array.isArray(e)) {
6046 var r = "1",
6047 s = _i(e, r);
6048 n ? s < 0 && (form.remember = e.concat(r)) : s > -1 && (form.remember = e.slice(0, s).concat(e.slice(s + 1)))
6049 } else form.remember = n
6050 }
6051 }
6052 }), "\n Ține-mă minte\n "])])])]), " ", " ", _h("div", {
6053 staticClass: "form-group"
6054 }, [_h("div", {
6055 staticClass: "col-md-7 col-md-offset-3"
6056 }, [_h("button", {
6057 staticClass: "btn btn-primary",
6058 attrs: {
6059 disabled: form.busy,
6060 type: "submit"
6061 }
6062 }, [form.busy ? _h("i", {
6063 staticClass: "fa fa-fw fa-spinner fa-spin"
6064 }) : _h("i", {
6065 staticClass: "fa fa-fw fa-sign-in"
6066 }), " ", "\n Login\n "])])])])])])])])])
6067 },
6068 staticRenderFns: [function() {
6069 with(this) return _h("i", {
6070 staticClass: "fa fa-fw fa-database"
6071 })
6072 }, function() {
6073 with(this) return _h("div", {
6074 staticClass: "panel-heading"
6075 }, ["Autentificare"])
6076 }, function() {
6077 with(this) return _h("label", {
6078 staticClass: "col-md-3 control-label"
6079 }, ["Utilizator"])
6080 }, function() {
6081 with(this) return _h("label", {
6082 staticClass: "col-md-3 control-label"
6083 }, ["Parola"])
6084 }]
6085 }
6086}, function(module, exports) {
6087 module.exports = {
6088 render: function() {
6089 with(this) return _h("div", [_h("div", {
6090 staticClass: "form-group"
6091 }, [_m(0), " ", _h("input", {
6092 directives: [{
6093 name: "model",
6094 value: form.max_reports,
6095 expression: "form.max_reports"
6096 }],
6097 staticClass: "form-control",
6098 attrs: {
6099 type: "number",
6100 min: "0"
6101 },
6102 domProps: {
6103 value: _s(form.max_reports)
6104 },
6105 on: {
6106 input: function(t) {
6107 t.target.composing || (form.max_reports = _n(t.target.value))
6108 }
6109 }
6110 }), " ", _h("has-error", {
6111 attrs: {
6112 form: form,
6113 field: "max_reports"
6114 }
6115 }), " ", _m(1)]), " ", _h("div", {
6116 staticClass: "form-group"
6117 }, [_m(2), " ", _h("input", {
6118 directives: [{
6119 name: "model",
6120 value: form.min_solved_count_to_delete_question,
6121 expression: "form.min_solved_count_to_delete_question"
6122 }],
6123 staticClass: "form-control",
6124 attrs: {
6125 type: "number",
6126 min: "0"
6127 },
6128 domProps: {
6129 value: _s(form.min_solved_count_to_delete_question)
6130 },
6131 on: {
6132 input: function(t) {
6133 t.target.composing || (form.min_solved_count_to_delete_question = _n(t.target.value))
6134 }
6135 }
6136 }), " ", _h("has-error", {
6137 attrs: {
6138 form: form,
6139 field: "min_solved_count_to_delete_question"
6140 }
6141 }), " ", _m(3)]), " ", _h("div", {
6142 staticClass: "form-group"
6143 }, [_m(4), " ", _h("input", {
6144 directives: [{
6145 name: "model",
6146 value: form.max_solved_count_per_question_to_allow_deletion,
6147 expression: "form.max_solved_count_per_question_to_allow_deletion"
6148 }],
6149 staticClass: "form-control",
6150 attrs: {
6151 type: "number",
6152 min: "0"
6153 },
6154 domProps: {
6155 value: _s(form.max_solved_count_per_question_to_allow_deletion)
6156 },
6157 on: {
6158 input: function(t) {
6159 t.target.composing || (form.max_solved_count_per_question_to_allow_deletion = _n(t.target.value))
6160 }
6161 }
6162 }), " ", _h("has-error", {
6163 attrs: {
6164 form: form,
6165 field: "max_solved_count_per_question_to_allow_deletion"
6166 }
6167 }), " ", _m(5)]), " ", _h("div", {
6168 staticClass: "form-group"
6169 }, [_h("button", {
6170 staticClass: "btn btn-success",
6171 attrs: {
6172 disabled: form.busy,
6173 type: "submit"
6174 }
6175 }, [form.busy ? _h("i", {
6176 staticClass: "fa fa-fw fa-spinner fa-spin"
6177 }) : _e(), "\n Salvează\n "])])])
6178 },
6179 staticRenderFns: [function() {
6180 with(this) return _h("label", {
6181 staticClass: "control-label"
6182 }, ["Numărul de Raportări"])
6183 }, function() {
6184 with(this) return _h("p", {
6185 staticClass: "help-block"
6186 }, ["\n Numărul de raportări permise după care întrebarea nu va mai fi aleasă.\n Întrebările cu prea multe raportări vor fi afișate pe Dashboard.\n "])
6187 }, function() {
6188 with(this) return _h("label", {
6189 staticClass: "control-label"
6190 }, ["Numărul de Rezolvări pentru Ștergere"])
6191 }, function() {
6192 with(this) return _h("p", {
6193 staticClass: "help-block"
6194 }, ["\n Numărul minim de întrebări rezolvate pentru a putea șterge o întrebare.\n "])
6195 }, function() {
6196 with(this) return _h("label", {
6197 staticClass: "control-label"
6198 }, ["Numărul de Rezolvări pe întrebare pentru Ștergere"])
6199 }, function() {
6200 with(this) return _h("p", {
6201 staticClass: "help-block"
6202 }, ["\n Numărul maxim răspunsuri corecte pe care o întrebare le are pentru a putea fi ștearsă.\n "])
6203 }]
6204 }
6205}, function(module, exports) {
6206 module.exports = {
6207 render: function() {
6208 with(this) return _h("div", [_h("div", {
6209 staticClass: "form-group"
6210 }, [_m(0), " ", _h("input", {
6211 directives: [{
6212 name: "model",
6213 value: form.max_question_length,
6214 expression: "form.max_question_length"
6215 }],
6216 staticClass: "form-control",
6217 attrs: {
6218 type: "number",
6219 min: "1"
6220 },
6221 domProps: {
6222 value: _s(form.max_question_length)
6223 },
6224 on: {
6225 input: function(t) {
6226 t.target.composing || (form.max_question_length = _n(t.target.value))
6227 }
6228 }
6229 }), " ", _h("has-error", {
6230 attrs: {
6231 form: form,
6232 field: "max_question_length"
6233 }
6234 }), " ", _m(1)]), " ", _h("div", {
6235 staticClass: "form-group"
6236 }, [_m(2), " ", _h("input", {
6237 directives: [{
6238 name: "model",
6239 value: form.min_asked_count,
6240 expression: "form.min_asked_count"
6241 }],
6242 staticClass: "form-control",
6243 attrs: {
6244 type: "number",
6245 min: "1"
6246 },
6247 domProps: {
6248 value: _s(form.min_asked_count)
6249 },
6250 on: {
6251 input: function(t) {
6252 t.target.composing || (form.min_asked_count = _n(t.target.value))
6253 }
6254 }
6255 }), " ", _h("has-error", {
6256 attrs: {
6257 form: form,
6258 field: "min_asked_count"
6259 }
6260 }), " ", _m(3)]), " ", _m(4), " ", _h("div", {
6261 staticClass: "form-group"
6262 }, [_m(5), " ", _h("div", {
6263 staticClass: "input-group"
6264 }, [_h("div", {
6265 staticClass: "form-control"
6266 }, [_h("input", {
6267 attrs: {
6268 type: "range",
6269 min: "0",
6270 max: "100"
6271 },
6272 domProps: {
6273 value: _s(form.min_solved_ratio)
6274 },
6275 on: {
6276 input: function(t) {
6277 form.min_solved_ratio = t.target.value
6278 }
6279 }
6280 })]), " ", _h("span", {
6281 staticClass: "input-group-addon percentage"
6282 }, [_s(form.min_solved_ratio) + "%"])]), " ", _h("has-error", {
6283 attrs: {
6284 form: form,
6285 field: "min_solved_ratio"
6286 }
6287 }), " ", _m(6)]), " ", _h("div", {
6288 staticClass: "form-group"
6289 }, [_m(7), " ", _h("div", {
6290 staticClass: "input-group"
6291 }, [_h("div", {
6292 staticClass: "form-control"
6293 }, [_h("input", {
6294 attrs: {
6295 type: "range",
6296 min: "0",
6297 max: "100"
6298 },
6299 domProps: {
6300 value: _s(form.max_solved_ratio)
6301 },
6302 on: {
6303 input: function(t) {
6304 form.max_solved_ratio = t.target.value
6305 }
6306 }
6307 })]), " ", _h("span", {
6308 staticClass: "input-group-addon percentage"
6309 }, [_s(form.max_solved_ratio) + "%"])]), " ", _h("has-error", {
6310 attrs: {
6311 form: form,
6312 field: "max_solved_ratio"
6313 }
6314 }), " ", _m(8)]), " ", _m(9), " ", _h("div", {
6315 staticClass: "form-group"
6316 }, [_m(10), " ", _h("input", {
6317 directives: [{
6318 name: "model",
6319 value: form.question_random_set,
6320 expression: "form.question_random_set"
6321 }],
6322 staticClass: "form-control",
6323 attrs: {
6324 type: "number"
6325 },
6326 domProps: {
6327 value: _s(form.question_random_set)
6328 },
6329 on: {
6330 input: function(t) {
6331 t.target.composing || (form.question_random_set = _n(t.target.value))
6332 }
6333 }
6334 }), " ", _h("has-error", {
6335 attrs: {
6336 form: form,
6337 field: "question_random_set"
6338 }
6339 }), " ", _m(11)]), " ", _m(12), " ", _h("div", {
6340 staticClass: "form-group"
6341 }, [_m(13), " ", _h("div", {
6342 staticClass: "input-group"
6343 }, [_h("div", {
6344 staticClass: "form-control"
6345 }, [_h("input", {
6346 attrs: {
6347 type: "range",
6348 min: "0",
6349 max: "100"
6350 },
6351 domProps: {
6352 value: _s(form.min_time_taken_ratio)
6353 },
6354 on: {
6355 input: function(t) {
6356 form.min_time_taken_ratio = t.target.value
6357 }
6358 }
6359 })]), " ", _h("span", {
6360 staticClass: "input-group-addon percentage"
6361 }, [_s(form.min_time_taken_ratio) + "%"])]), " ", _h("has-error", {
6362 attrs: {
6363 form: form,
6364 field: "min_time_taken_ratio"
6365 }
6366 }), " ", _m(14)]), " ", _h("div", {
6367 staticClass: "form-group"
6368 }, [_m(15), " ", _h("div", {
6369 staticClass: "input-group"
6370 }, [_h("div", {
6371 staticClass: "form-control"
6372 }, [_h("input", {
6373 attrs: {
6374 type: "range",
6375 min: "0",
6376 max: "100"
6377 },
6378 domProps: {
6379 value: _s(form.max_time_taken_ratio)
6380 },
6381 on: {
6382 input: function(t) {
6383 form.max_time_taken_ratio = t.target.value
6384 }
6385 }
6386 })]), " ", _h("span", {
6387 staticClass: "input-group-addon percentage"
6388 }, [_s(form.max_time_taken_ratio) + "%"])]), " ", _h("has-error", {
6389 attrs: {
6390 form: form,
6391 field: "max_time_taken_ratio"
6392 }
6393 }), " ", _m(16)]), " ", _h("div", {
6394 staticClass: "form-group"
6395 }, [_h("button", {
6396 staticClass: "btn btn-success",
6397 attrs: {
6398 disabled: form.busy,
6399 type: "submit"
6400 }
6401 }, [form.busy ? _h("i", {
6402 staticClass: "fa fa-fw fa-spinner fa-spin"
6403 }) : _e(), "\n Salvează\n "])])])
6404 },
6405 staticRenderFns: [function() {
6406 with(this) return _h("label", {
6407 staticClass: "control-label"
6408 }, ["Numărul Maxim de Caractere"])
6409 }, function() {
6410 with(this) return _h("p", {
6411 staticClass: "help-block"
6412 }, ["\n Numărul maxim de caractere pentru o intrebare adaugată de un utilizator.\n "])
6413 }, function() {
6414 with(this) return _h("label", {
6415 staticClass: "control-label"
6416 }, ["Numărul Minim de Alegeri - ", _h("var", ["MIN_ASKED_COUNT"])])
6417 }, function() {
6418 with(this) return _h("p", {
6419 staticClass: "help-block"
6420 }, ["\n Numărul minim de câte ori o întrebare este aleasă, înainte de filtrare pentru că are rația ", _h("var", ["SOlVED/ASKED"]), " mai mică decât ", _h("var", ["MIN_SOLVED_RATIO"]), " sau mai mare decât ", _h("var", ["MAX_SOLVED_RATIO"]), ".\n "])
6421 }, function() {
6422 with(this) return _h("hr")
6423 }, function() {
6424 with(this) return _h("label", {
6425 staticClass: "control-label"
6426 }, ["Procentajul Minim de Rezolvare - ", _h("var", ["MIN_SOLVED_RATIO"])])
6427 }, function() {
6428 with(this) return _h("p", {
6429 staticClass: "help-block"
6430 }, ["\n Procentajul ", _h("var", ["SOlVED/ASKED"]), " minim pentru care o întrebare este aleasă.\n Se aplică dupa ce întrebarea a fost aleasă de ", _h("var", ["MIN_ASKED_COUNT"]), " ori.\n "])
6431 }, function() {
6432 with(this) return _h("label", {
6433 staticClass: "control-label"
6434 }, ["Procentajul Maxim de Rezolvare - ", _h("var", ["MAX_SOLVED_RATIO"])])
6435 }, function() {
6436 with(this) return _h("p", {
6437 staticClass: "help-block"
6438 }, ["\n Procentajul ", _h("var", ["SOlVED/ASKED"]), " maxim pentru care o întrebare este aleasă.\n Se aplică dupa ce întrebarea a fost aleasă de ", _h("var", ["MIN_ASKED_COUNT"]), " ori.\n "])
6439 }, function() {
6440 with(this) return _h("hr")
6441 }, function() {
6442 with(this) return _h("label", {
6443 staticClass: "control-label"
6444 }, ["Dimiensiunea Setului Aleator"])
6445 }, function() {
6446 with(this) return _h("p", {
6447 staticClass: "help-block"
6448 }, ["\n Dimensiunea maximă a setului de întrebări din care o întrebare va fi aleasă aleator.\n Setul este ordonat după numărul de câte ori întrebările au fost alese.\n "])
6449 }, function() {
6450 with(this) return _h("hr")
6451 }, function() {
6452 with(this) return _h("label", {
6453 staticClass: "control-label"
6454 }, ["Procentajul Minim a Timpului de Rezolvare"])
6455 }, function() {
6456 with(this) return _h("p", {
6457 staticClass: "help-block"
6458 }, ["\n Procentajul minim pentru care timpul mediu a întrebării trebuie sa fie peste, pentru ca sa poată fi aleasă. Este aplicat după ce întrebarea a fost aleasă de ", _h("var", ["MIN_ASKED_COUNT"]), " ori.\n "])
6459 }, function() {
6460 with(this) return _h("label", {
6461 staticClass: "control-label"
6462 }, ["Procentajul Maxim a Timpului de Rezolvare"])
6463 }, function() {
6464 with(this) return _h("p", {
6465 staticClass: "help-block"
6466 }, ["\n Procentajul maxim pentru care timpul mediu a întrebării trebuie sa fie sub, pentru ca sa poată fi aleasă. Este aplicat după ce întrebarea a fost aleasă de ", _h("var", ["MIN_ASKED_COUNT"]), " ori.\n "])
6467 }]
6468 }
6469}, function(module, exports) {
6470 module.exports = {
6471 render: function() {
6472 with(this) return _h("div", [_h("table-tree"), " ", _h("panel", {
6473 attrs: {
6474 loading: ""
6475 }
6476 }, [chapter ? _h("div", {
6477 staticClass: "clearfix"
6478 }, [_h("h3", {
6479 staticClass: "pull-left m-t-xs m-b-xs"
6480 }, [_s(chapter.name)]), " ", _h("h4", {
6481 staticClass: "pull-right m-t-sm m-b-0"
6482 }, ["\n " + _s(chapter.questions_answered ? chapter.questions_answered.count : 0) + " /\n " + _s(chapter.questions_count ? chapter.questions_count.count : 0) + " răspunse\n "])]) : _e(), " ", _m(0), " ", _h("div", {
6483 staticClass: "row"
6484 }, [_h("div", {
6485 staticClass: "col-md-12"
6486 }, [question ? _h("div", {
6487 staticClass: "question"
6488 }, [_h("canvas-text", {
6489 attrs: {
6490 text: question.question
6491 }
6492 })]) : _e()])])]), " ", _m(1), " ", _h("panel", {
6493 attrs: {
6494 loading: ""
6495 }
6496 }, [_h("alert-errors", {
6497 staticClass: "quiz-alert-errors",
6498 attrs: {
6499 form: form,
6500 message: ""
6501 }
6502 }), " ", evaluate && evaluate.check ? _h("div", {
6503 staticClass: "alert alert-success dismissible"
6504 }, [_m(2)]) : _e(), " ", evaluate && !evaluate.check ? _h("div", {
6505 staticClass: "alert alert-danger clearfix wrong-answer"
6506 }, [_h("span", {
6507 staticClass: "pull-left m-t-xs"
6508 }, [_m(3), "\n [întrebarea a fost rezovată de " + _s(question.solved) + " ori din " + _s(question.asked) + " încercări]\n ", _m(4), " ", _h("a", {
6509 staticClass: "report",
6510 on: {
6511 click: report
6512 }
6513 }, ["Raportează această întrebare ca greșită."])]), " ", _h("button", {
6514 staticClass: "btn btn-default pull-right",
6515 attrs: {
6516 type: "button"
6517 },
6518 on: {
6519 click: function(t) {
6520 viewResults()
6521 }
6522 }
6523 }, ["Vezi rezultate"])]) : _e(), " ", _h("div", {
6524 staticClass: "form-group"
6525 }, [_h("query-input", {
6526 directives: [{
6527 name: "model",
6528 value: form.query,
6529 expression: "form.query"
6530 }],
6531 domProps: {
6532 value: form.query
6533 },
6534 on: {
6535 input: function(t) {
6536 form.query = t
6537 }
6538 }
6539 })]), " ", _h("div", {
6540 staticClass: "clearfix"
6541 }, [canRunTest ? _h("button", {
6542 staticClass: "btn btn-success pull-left",
6543 attrs: {
6544 disabled: form.busy,
6545 type: "button"
6546 },
6547 on: {
6548 click: function(t) {
6549 runQuery(form)
6550 }
6551 }
6552 }, [form.busy ? _h("i", {
6553 staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
6554 }) : _h("i", {
6555 staticClass: "fa fa-fw fa-play fa-btn"
6556 }), " ", "\n Testează\n "]) : _e(), " ", _h("button", {
6557 directives: [{
6558 name: "show",
6559 value: !evaluate,
6560 expression: "!evaluate"
6561 }],
6562 staticClass: "btn btn-primary pull-right",
6563 attrs: {
6564 disabled: form.busy || form.busy,
6565 type: "button"
6566 },
6567 on: {
6568 click: save
6569 }
6570 }, [form.busy ? _h("i", {
6571 staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
6572 }) : _h("i", {
6573 staticClass: "fa fa-fw fa-floppy-o fa-btn"
6574 }), " ", "\n Salvează\n "]), " ", evaluate ? _h("button", {
6575 staticClass: "btn btn-primary pull-right",
6576 on: {
6577 click: function(t) {
6578 next()
6579 }
6580 }
6581 }, [_m(5), "\n Urmatoarea\n "]) : _e()])]), " ", _m(6), " ", queryResults && queryResults.columns ? _h("panel", {
6582 attrs: {
6583 loading: ""
6584 }
6585 }, [_h("query-results", {
6586 attrs: {
6587 results: queryResults,
6588 correct: correctResults
6589 }
6590 })]) : _e()])
6591 },
6592 staticRenderFns: [function() {
6593 with(this) return _h("hr")
6594 }, function() {
6595 with(this) return _h("br")
6596 }, function() {
6597 with(this) return _h("b", ["Ai raspuns corect."])
6598 }, function() {
6599 with(this) return _h("b", ["Ai raspuns greșit."])
6600 }, function() {
6601 with(this) return _h("br")
6602 }, function() {
6603 with(this) return _h("i", {
6604 staticClass: "fa fa-fw fa-chevron-right fa-btn"
6605 })
6606 }, function() {
6607 with(this) return _h("br")
6608 }]
6609 }
6610}, function(module, exports) {
6611 module.exports = {
6612 render: function() {
6613 with(this) return $root.loading ? _e() : _h("div", [_h("div", {
6614 staticClass: "row"
6615 }, [_h("div", {
6616 staticClass: "row-height"
6617 }, [_h("div", {
6618 staticClass: "col-md-4 col-sm-6 col-xs-12 col-sm-height col-sm-middle"
6619 }, [_h("panel", {
6620 staticClass: "description-panel"
6621 }, [_h("div", [_h("h3", [_s(chapter.name)])]), " ", _m(0), " ", _h("span", [_s(chapter.description)])]), " ", _h("panel", {
6622 staticClass: "clearfix"
6623 }, [_h("div", {
6624 staticClass: "clearfix"
6625 }, [_m(1), " ", _h("h4", {
6626 staticClass: "pull-right"
6627 }, [_h("span", {
6628 staticClass: "label label-success"
6629 }, [_s(chapter.questions_till_next)])])]), " ", _h("div", {
6630 staticClass: "clearfix"
6631 }, [_m(2), " ", _h("h4", {
6632 staticClass: "pull-right"
6633 }, [_h("span", {
6634 staticClass: "label label-success"
6635 }, [_s(chapter.questions_till_next_delete)])])])])]), " ", _h("div", {
6636 staticClass: "col-md-8 col-sm-6 col-xs-12 col-sm-height col-sm-top"
6637 }, [_h("panel", {
6638 staticClass: "stats-panel"
6639 }, [_h("div", {
6640 staticClass: "clearfix"
6641 }, [_m(3), " ", _h("h4", {
6642 staticClass: "pull-right"
6643 }, [_h("span", {
6644 staticClass: "label label-default"
6645 }, [_s(getSolveRate()) + " %"])])]), " ", _h("div", {
6646 staticClass: "clearfix"
6647 }, [_m(4), " ", _h("h4", {
6648 staticClass: "pull-right"
6649 }, [_h("span", {
6650 staticClass: "label label-primary"
6651 }, [_s(chapter.questions_count ? chapter.questions_count.count : 0)])])]), " ", _m(5), " ", _h("div", {
6652 staticClass: "clearfix"
6653 }, [_m(6), " ", _h("h4", {
6654 staticClass: "pull-right"
6655 }, [_h("span", {
6656 staticClass: "label label-default"
6657 }, [_s(getUserSolveRate()) + " %"])])]), " ", _h("div", {
6658 staticClass: "clearfix"
6659 }, [_m(7), " ", _h("h4", {
6660 staticClass: "pull-right"
6661 }, [_h("span", {
6662 staticClass: "label label-primary"
6663 }, [_s(chapter.questions_answered ? chapter.questions_answered.count : 0)])])]), " ", _h("div", {
6664 staticClass: "clearfix"
6665 }, [_m(8), " ", _h("h4", {
6666 staticClass: "pull-right"
6667 }, [_h("span", {
6668 staticClass: "label label-primary"
6669 }, [_s(chapter.questions_solved ? chapter.questions_solved.count : 0)])])])])])])]), " ", _h("div", {
6670 staticClass: "row"
6671 }, [_h("div", {
6672 staticClass: "col-xs-12"
6673 }, [_h("panel", [chart ? _h("linear-chart", {
6674 attrs: {
6675 config: chart
6676 }
6677 }) : _e()])])])])
6678 },
6679 staticRenderFns: [function() {
6680 with(this) return _h("hr")
6681 }, function() {
6682 with(this) return _h("h4", {
6683 staticClass: "pull-left"
6684 }, ["Întrebari pană la urmatorul pas"])
6685 }, function() {
6686 with(this) return _h("h4", {
6687 staticClass: "pull-left"
6688 }, ["Întrebari pană la ștergere"])
6689 }, function() {
6690 with(this) return _h("h4", {
6691 staticClass: "pull-left"
6692 }, ["Procentul de rezolvare "])
6693 }, function() {
6694 with(this) return _h("h4", {
6695 staticClass: "pull-left"
6696 }, ["ÃŽntrebari totale"])
6697 }, function() {
6698 with(this) return _h("hr")
6699 }, function() {
6700 with(this) return _h("h4", {
6701 staticClass: "pull-left"
6702 }, ["Procentul tău de rezolvare "])
6703 }, function() {
6704 with(this) return _h("h4", {
6705 staticClass: "pull-left"
6706 }, ["Întrebari răspunse"])
6707 }, function() {
6708 with(this) return _h("h4", {
6709 staticClass: "pull-left"
6710 }, ["ÃŽntrebari rezolvate"])
6711 }]
6712 }
6713}, function(module, exports) {
6714 module.exports = {
6715 render: function() {
6716 with(this) return _h("div", [_h("panel", {
6717 attrs: {
6718 loading: ""
6719 }
6720 }, [_h("div", {
6721 staticClass: "clearfix"
6722 }, [_m(0), " ", _h("router-link", {
6723 staticClass: "pull-right btn btn-default btn-sm",
6724 attrs: {
6725 to: {
6726 name: "user.questions.create"
6727 },
6728 style: "margin-top: 13px"
6729 }
6730 }, [_m(1), " Adaugă\n "])]), " ", _m(2), " ", _m(3)]), " ", _h("div", {
6731 staticClass: "row labels labels-small"
6732 }, [_h("div", {
6733 staticClass: "col-md-6 col-xs-12"
6734 }, [_l(oddQuestions, function(t) {
6735 return _h("question-panel", {
6736 attrs: {
6737 question: t
6738 }
6739 })
6740 })]), " ", _h("div", {
6741 staticClass: "col-md-6 col-xs-12"
6742 }, [_l(evenQuestions, function(t) {
6743 return _h("question-panel", {
6744 attrs: {
6745 question: t
6746 }
6747 })
6748 })])])])
6749 },
6750 staticRenderFns: [function() {
6751 with(this) return _h("div", {
6752 staticClass: "pull-left"
6753 }, [_h("h3", {
6754 staticClass: "pull-left"
6755 }, ["Întrebările mele"])])
6756 }, function() {
6757 with(this) return _h("i", {
6758 staticClass: "fa fa-plus-circle"
6759 })
6760 }, function() {
6761 with(this) return _h("hr")
6762 }, function() {
6763 with(this) return _h("div", {
6764 staticClass: "clearfix labels"
6765 }, [_h("div", {
6766 staticClass: "label label-default"
6767 }, ["\n capitol\n "]), " ", _h("div", {
6768 staticClass: "label label-success m-l-xs"
6769 }, ["\n rezolvată / raspunsă\n "]), " ", _h("div", {
6770 staticClass: "label label-danger m-l-xs"
6771 }, ["\n raporturi\n "])])
6772 }]
6773 }
6774}, function(module, exports) {
6775 module.exports = {
6776 render: function() {
6777 with(this) return _h("div", [_h("table-tree"), " ", _h("panel", {
6778 attrs: {
6779 title: "Adaugă întrebare",
6780 loading: ""
6781 }
6782 }, [0 === chapters.length ? _h("div", {
6783 staticClass: "alert alert-danger"
6784 }, ["\n Nu poți adăuga nici o intrebare încă.\n Pentru a adauga întrabări răspunde la mai multe întrebari\n "]) : _e(), " ", _h("alert-success", {
6785 attrs: {
6786 form: form,
6787 message: "Întrebarea a fost adăugată!"
6788 }
6789 }), " ", 0 != chapters.length ? _h("form", {
6790 on: {
6791 submit: function(t) {
6792 t.preventDefault(), save(t)
6793 }
6794 }
6795 }, [_h("div", {
6796 staticClass: "form-group"
6797 }, [_m(0), " ", _h("selectize", {
6798 directives: [{
6799 name: "model",
6800 value: form.chapter,
6801 expression: "form.chapter"
6802 }],
6803 attrs: {
6804 options: chapters,
6805 "close-after-select": !0
6806 },
6807 domProps: {
6808 value: form.chapter
6809 },
6810 on: {
6811 input: function(t) {
6812 form.chapter = t
6813 }
6814 }
6815 }), " ", _h("has-error", {
6816 attrs: {
6817 form: form,
6818 field: "chapter"
6819 }
6820 })]), " ", _h("div", {
6821 staticClass: "form-group"
6822 }, [_h("div", {
6823 staticClass: "pull-right remaining-chars"
6824 }, [_h("small", [" " + _s(this.remainingChars) + " / " + _s(this.maxQuestionLength)])]), " ", _m(1), " ", _h("textarea", {
6825 directives: [{
6826 name: "model",
6827 value: form.question,
6828 expression: "form.question"
6829 }, {
6830 name: "autosize"
6831 }],
6832 staticClass: "form-control",
6833 attrs: {
6834 maxlength: maxQuestionLength,
6835 style: "height: 50px;"
6836 },
6837 domProps: {
6838 value: _s(form.question)
6839 },
6840 on: {
6841 input: function(t) {
6842 t.target.composing || (form.question = t.target.value)
6843 }
6844 }
6845 }), " ", _h("has-error", {
6846 attrs: {
6847 form: form,
6848 field: "question"
6849 }
6850 })]), " ", _h("div", {
6851 staticClass: "form-group"
6852 }, [_m(2), " ", _h("query-input", {
6853 directives: [{
6854 name: "model",
6855 value: form.query,
6856 expression: "form.query"
6857 }],
6858 domProps: {
6859 value: form.query
6860 },
6861 on: {
6862 input: function(t) {
6863 form.query = t
6864 }
6865 }
6866 }), " ", _h("has-error", {
6867 attrs: {
6868 form: form,
6869 field: "query"
6870 }
6871 })]), " ", _h("div", {
6872 staticClass: "clearfix"
6873 }, [_h("button", {
6874 staticClass: "btn btn-success pull-left",
6875 attrs: {
6876 disabled: form.busy,
6877 type: "button"
6878 },
6879 on: {
6880 click: function(t) {
6881 runQuery(form)
6882 }
6883 }
6884 }, [form.busy ? _h("i", {
6885 staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
6886 }) : _h("i", {
6887 staticClass: "fa fa-fw fa-play fa-btn"
6888 }), " ", "\n Execută\n "]), " ", _h("button", {
6889 staticClass: "btn btn-primary pull-right",
6890 attrs: {
6891 disabled: form.busy,
6892 type: "submit"
6893 },
6894 on: {
6895 click: save
6896 }
6897 }, [form.busy ? _h("i", {
6898 staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
6899 }) : _h("i", {
6900 staticClass: "fa fa-fw fa-floppy-o fa-btn"
6901 }), " ", "\n Salvează\n "])])]) : _e()]), " ", queryResults && queryResults.columns ? _h("panel", [_h("query-results", {
6902 attrs: {
6903 results: queryResults
6904 }
6905 })]) : _e()])
6906 },
6907 staticRenderFns: [function() {
6908 with(this) return _h("label", {
6909 staticClass: "control-label"
6910 }, ["Capitol"])
6911 }, function() {
6912 with(this) return _h("label", {
6913 staticClass: "control-label"
6914 }, ["ÃŽntrebare"])
6915 }, function() {
6916 with(this) return _h("label", {
6917 staticClass: "control-label"
6918 }, ["Răspuns"])
6919 }]
6920 }
6921}, function(module, exports) {
6922 module.exports = {
6923 render: function() {
6924 with(this) return _h("textarea", {
6925 directives: [{
6926 name: "model",
6927 value: query,
6928 expression: "query"
6929 }],
6930 staticClass: "form-control",
6931 domProps: {
6932 value: _s(query)
6933 },
6934 on: {
6935 input: function(t) {
6936 t.target.composing || (query = t.target.value)
6937 }
6938 }
6939 })
6940 },
6941 staticRenderFns: []
6942 }
6943}, , , , , function(t, e) {}]);