PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.7
4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 All 141 releases
learnpress / assets / js / dist / frontend / lp-configs.js

lp-configs.js in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.7, at assets/js/dist/frontend/lp-configs.js

118 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /******/ (() => { // webpackBootstrap
2 /******/ "use strict";
3 /******/ // The require scope
4 /******/ const __webpack_require__ = {};
5 /******/
6 /************************************************************************/
7 /******/ /* webpack/runtime/define property getters */
8 /******/ (() => {
9 /******/ // define getter/value functions for harmony exports
10 /******/ __webpack_require__.d = (exports, definition) => {
11 /******/ if(Array.isArray(definition)) {
12 /******/ var i = 0;
13 /******/ while(i < definition.length) {
14 /******/ var key = definition[i++];
15 /******/ var binding = definition[i++];
16 /******/ if(!__webpack_require__.o(exports, key)) {
17 /******/ if(binding === 0) {
18 /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
19 /******/ } else {
20 /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
21 /******/ }
22 /******/ } else if(binding === 0) { i++; }
23 /******/ }
24 /******/ } else {
25 /******/ for(var key in definition) {
26 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
27 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
28 /******/ }
29 /******/ }
30 /******/ }
31 /******/ };
32 /******/ })();
33 /******/
34 /******/ /* webpack/runtime/hasOwnProperty shorthand */
35 /******/ (() => {
36 /******/ __webpack_require__.o = (obj, prop) => (Object.hasOwn(obj, prop))
37 /******/ })();
38 /******/
39 /******/ /* webpack/runtime/make namespace object */
40 /******/ (() => {
41 /******/ // define __esModule on exports
42 /******/ __webpack_require__.r = (exports) => {
43 /******/ if(Symbol.toStringTag) {
44 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
45 /******/ }
46 /******/ Object.defineProperty(exports, '__esModule', { value: true });
47 /******/ };
48 /******/ })();
49 /******/
50 /************************************************************************/
51 let __webpack_exports__ = {};
52 /*!***************************************************!*\
53 !*** ./assets/src/apps/js/frontend/lp-configs.js ***!
54 \***************************************************/
55 __webpack_require__.r(__webpack_exports__);
56 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
57 /* harmony export */ classNames: () => (/* binding */ classNames),
58 /* harmony export */ isQuestionCorrect: () => (/* binding */ isQuestionCorrect),
59 /* harmony export */ questionBlocks: () => (/* binding */ questionBlocks),
60 /* harmony export */ questionChecker: () => (/* binding */ questionChecker),
61 /* harmony export */ questionFooterButtons: () => (/* binding */ questionFooterButtons),
62 /* harmony export */ questionTitleParts: () => (/* binding */ questionTitleParts),
63 /* harmony export */ quizStartBlocks: () => (/* binding */ quizStartBlocks)
64 /* harmony export */ });
65 const {
66 Hook
67 } = LP;
68 const classNames = {
69 Quiz: {
70 Result: ['quiz-result'],
71 Content: ['quiz-content'],
72 Questions: ['quiz-questions'],
73 Buttons: ['quiz-buttons'],
74 Attempts: ['quiz-attempts']
75 }
76 };
77 const questionCheckers = {
78 single_choice() {},
79 multi_choice() {},
80 true_or_false() {}
81 };
82 const isQuestionCorrect = {
83 fill_in_blank() {
84 return true;
85 }
86 };
87
88 /**
89 * Question blocks.
90 *
91 * Allow to sort the blocks of question
92 */
93 const questionBlocks = function () {
94 return LP.Hook.applyFilters('question-blocks', ['title', 'content', 'answer-options', 'explanation', 'hint', 'buttons']);
95 };
96 const questionFooterButtons = function () {
97 return LP.Hook.applyFilters('question-footer-buttons', ['instant-check']);
98 };
99 const questionTitleParts = function () {
100 return LP.Hook.applyFilters('question-title-parts', ['index', 'title', 'hint', 'edit-permalink']);
101 };
102 const questionChecker = function (type) {
103 const c = LP.Hook.applyFilters('question-checkers', questionCheckers);
104 return type && c[type] ? c[type] : function () {
105 return {};
106 };
107 };
108 const quizStartBlocks = function () {
109 const blocks = Hook.applyFilters('quiz-start-blocks', {
110 meta: true,
111 description: true,
112 custom: 'Hello'
113 });
114 };
115 (window.LP = window.LP || {}).config = __webpack_exports__;
116 /******/ })()
117 ;
118 //# sourceMappingURL=lp-configs.js.map