PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
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 4.1.7.3.2 4.2.0 All 139 releases
← All changes | assets/js/dist/utils.js +82 -49 4.2.04.4.8 View file →
@@ -1,12 +1,12 @@
1 1 /******/ (() => { // webpackBootstrap
2 2 /******/ var __webpack_modules__ = ({
3 3
4 -/***/ "./assets/src/js/utils/cookies.js":
4 +/***/ "./assets/src/js/utils/cookies.js"
5 5 /*!****************************************!*\
6 6 !*** ./assets/src/js/utils/cookies.js ***!
7 7 \****************************************/
8 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8 +(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9 9
10 10 "use strict";
11 11 __webpack_require__.r(__webpack_exports__);
12 12 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -63,15 +63,15 @@
63 63 }
64 64 };
65 65 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Cookies);
66 66
67 -/***/ }),
67 +/***/ },
68 68
69 -/***/ "./assets/src/js/utils/event-callback.js":
69 +/***/ "./assets/src/js/utils/event-callback.js"
70 70 /*!***********************************************!*\
71 71 !*** ./assets/src/js/utils/event-callback.js ***!
72 72 \***********************************************/
73 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
73 +(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
74 74
75 75 "use strict";
76 76 __webpack_require__.r(__webpack_exports__);
77 77 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -163,15 +163,15 @@
163 163 };
164 164 };
165 165 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Event_Callback);
166 166
167 -/***/ }),
167 +/***/ },
168 168
169 -/***/ "./assets/src/js/utils/extend.js":
169 +/***/ "./assets/src/js/utils/extend.js"
170 170 /*!***************************************!*\
171 171 !*** ./assets/src/js/utils/extend.js ***!
172 172 \***************************************/
173 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
173 +(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
174 174
175 175 "use strict";
176 176 __webpack_require__.r(__webpack_exports__);
177 177 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -176,8 +176,9 @@
176 176 __webpack_require__.r(__webpack_exports__);
177 177 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
178 178 /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
179 179 /* harmony export */ });
180 +__webpack_require__.dn(__WEBPACK_DEFAULT_EXPORT__);
180 181 /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
181 182 window.LP = window.LP || {};
182 183 if (typeof arguments[0] === 'string') {
183 184 LP[arguments[0]] = LP[arguments[0]] || {};
@@ -186,15 +187,15 @@
186 187 LP = jQuery.extend(LP, arguments[0]);
187 188 }
188 189 }
189 190
190 -/***/ }),
191 +/***/ },
191 192
192 -/***/ "./assets/src/js/utils/fn.js":
193 +/***/ "./assets/src/js/utils/fn.js"
193 194 /*!***********************************!*\
194 195 !*** ./assets/src/js/utils/fn.js ***!
195 196 \***********************************/
196 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
197 +(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
197 198
198 199 "use strict";
199 200 __webpack_require__.r(__webpack_exports__);
200 201 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -231,15 +232,15 @@
231 232 };
232 233 })();
233 234 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (exp);
234 235
235 -/***/ }),
236 +/***/ },
236 237
237 -/***/ "./assets/src/js/utils/hook.js":
238 +/***/ "./assets/src/js/utils/hook.js"
238 239 /*!*************************************!*\
239 240 !*** ./assets/src/js/utils/hook.js ***!
240 241 \*************************************/
241 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
242 +(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
242 243
243 244 "use strict";
244 245 __webpack_require__.r(__webpack_exports__);
245 246 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -325,15 +326,15 @@
325 326 }
326 327 };
327 328 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Hook);
328 329
329 -/***/ }),
330 +/***/ },
330 331
331 -/***/ "./assets/src/js/utils/iframe-submit.js":
332 +/***/ "./assets/src/js/utils/iframe-submit.js"
332 333 /*!**********************************************!*\
333 334 !*** ./assets/src/js/utils/iframe-submit.js ***!
334 335 \**********************************************/
335 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
336 +(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
336 337
337 338 "use strict";
338 339 __webpack_require__.r(__webpack_exports__);
339 340 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -359,15 +360,15 @@
359 360 iframeCounter++;
360 361 };
361 362 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (IframeSubmit);
362 363
363 -/***/ }),
364 +/***/ },
364 365
365 -/***/ "./assets/src/js/utils/jquery.plugins.js":
366 +/***/ "./assets/src/js/utils/jquery.plugins.js"
366 367 /*!***********************************************!*\
367 368 !*** ./assets/src/js/utils/jquery.plugins.js ***!
368 369 \***********************************************/
369 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
370 +(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
370 371
371 372 "use strict";
372 373 __webpack_require__.r(__webpack_exports__);
373 374 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -559,15 +560,15 @@
559 560 findPrev,
560 561 progress
561 562 });
562 563
563 -/***/ }),
564 +/***/ },
564 565
565 -/***/ "./assets/src/js/utils/local-storage.js":
566 +/***/ "./assets/src/js/utils/local-storage.js"
566 567 /*!**********************************************!*\
567 568 !*** ./assets/src/js/utils/local-storage.js ***!
568 569 \**********************************************/
569 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
570 +(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
570 571
571 572 "use strict";
572 573 __webpack_require__.r(__webpack_exports__);
573 574 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -610,15 +611,15 @@
610 611 }
611 612 };
612 613 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_localStorage);
613 614
614 -/***/ }),
615 +/***/ },
615 616
616 -/***/ "./assets/src/js/utils/message-box.js":
617 +/***/ "./assets/src/js/utils/message-box.js"
617 618 /*!********************************************!*\
618 619 !*** ./assets/src/js/utils/message-box.js ***!
619 620 \********************************************/
620 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
621 +(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
621 622
622 623 "use strict";
623 624 __webpack_require__.r(__webpack_exports__);
624 625 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -867,15 +868,15 @@
867 868 }
868 869 };
869 870 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MessageBox);
870 871
871 -/***/ }),
872 +/***/ },
872 873
873 -/***/ "./assets/src/js/utils/quick-tip.js":
874 +/***/ "./assets/src/js/utils/quick-tip.js"
874 875 /*!******************************************!*\
875 876 !*** ./assets/src/js/utils/quick-tip.js ***!
876 877 \******************************************/
877 -/***/ (() => {
878 +() {
878 879
879 880 (function ($) {
880 881 function QuickTip(el, options) {
881 882 const $el = $(el),
@@ -984,15 +985,15 @@
984 985 });
985 986 });
986 987 })(jQuery);
987 988
988 -/***/ }),
989 +/***/ },
989 990
990 -/***/ "./assets/src/js/utils/show-password.js":
991 +/***/ "./assets/src/js/utils/show-password.js"
991 992 /*!**********************************************!*\
992 993 !*** ./assets/src/js/utils/show-password.js ***!
993 994 \**********************************************/
994 -/***/ (() => {
995 +() {
995 996
996 997 const $ = jQuery;
997 998 $(function () {
998 999 $('.form-field input[type="password"]').wrap('<span class="lp-password-input"></span>');
@@ -1006,24 +1007,24 @@
1006 1007 }
1007 1008 });
1008 1009 });
1009 1010
1010 -/***/ })
1011 +/***/ }
1011 1012
1012 1013 /******/ });
1013 1014 /************************************************************************/
1014 1015 /******/ // The module cache
1015 -/******/ var __webpack_module_cache__ = {};
1016 +/******/ const __webpack_module_cache__ = {};
1016 1017 /******/
1017 1018 /******/ // The require function
1018 1019 /******/ function __webpack_require__(moduleId) {
1019 1020 /******/ // Check if module is in cache
1020 -/******/ var cachedModule = __webpack_module_cache__[moduleId];
1021 +/******/ const cachedModule = __webpack_module_cache__[moduleId];
1021 1022 /******/ if (cachedModule !== undefined) {
1022 1023 /******/ return cachedModule.exports;
1023 1024 /******/ }
1024 1025 /******/ // Create a new module (and put it into the cache)
1025 -/******/ var module = __webpack_module_cache__[moduleId] = {
1026 +/******/ const module = __webpack_module_cache__[moduleId] = {
1026 1027 /******/ // no module.id needed
1027 1028 /******/ // no module.loaded needed
1028 1029 /******/ exports: {}
1029 1030 /******/ };
@@ -1028,8 +1029,14 @@
1028 1029 /******/ exports: {}
1029 1030 /******/ };
1030 1031 /******/
1031 1032 /******/ // Execute the module function
1033 +/******/ if (!(moduleId in __webpack_modules__)) {
1034 +/******/ delete __webpack_module_cache__[moduleId];
1035 +/******/ const e = new Error("Cannot find module '" + moduleId + "'");
1036 +/******/ e.code = 'MODULE_NOT_FOUND';
1037 +/******/ throw e;
1038 +/******/ }
1032 1039 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1033 1040 /******/
1034 1041 /******/ // Return the exports of the module
1035 1042 /******/ return module.exports;
@@ -1039,9 +1046,9 @@
1039 1046 /******/ /* webpack/runtime/compat get default export */
1040 1047 /******/ (() => {
1041 1048 /******/ // getDefaultExport function for compatibility with non-harmony modules
1042 1049 /******/ __webpack_require__.n = (module) => {
1043 -/******/ var getter = module && module.__esModule ?
1050 +/******/ const getter = module && module.__esModule ?
1044 1051 /******/ () => (module['default']) :
1045 1052 /******/ () => (module);
1046 1053 /******/ __webpack_require__.d(getter, { a: getter });
1047 1054 /******/ return getter;
@@ -1049,14 +1056,29 @@
1049 1056 /******/ })();
1050 1057 /******/
1051 1058 /******/ /* webpack/runtime/define property getters */
1052 1059 /******/ (() => {
1053 -/******/ // define getter functions for harmony exports
1060 +/******/ // define getter/value functions for harmony exports
1054 1061 /******/ __webpack_require__.d = (exports, definition) => {
1055 -/******/ for(var key in definition) {
1056 -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1057 -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1062 +/******/ if(Array.isArray(definition)) {
1063 +/******/ var i = 0;
1064 +/******/ while(i < definition.length) {
1065 +/******/ var key = definition[i++];
1066 +/******/ var binding = definition[i++];
1067 +/******/ if(!__webpack_require__.o(exports, key)) {
1068 +/******/ if(binding === 0) {
1069 +/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
1070 +/******/ } else {
1071 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
1072 +/******/ }
1073 +/******/ } else if(binding === 0) { i++; }
1058 1074 /******/ }
1075 +/******/ } else {
1076 +/******/ for(var key in definition) {
1077 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1078 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1079 +/******/ }
1080 +/******/ }
1059 1081 /******/ }
1060 1082 /******/ };
1061 1083 /******/ })();
1062 1084 /******/
@@ -1061,9 +1083,9 @@
1061 1083 /******/ })();
1062 1084 /******/
1063 1085 /******/ /* webpack/runtime/hasOwnProperty shorthand */
1064 1086 /******/ (() => {
1065 -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1087 +/******/ __webpack_require__.o = (obj, prop) => (Object.hasOwn(obj, prop))
1066 1088 /******/ })();
1067 1089 /******/
1068 1090 /******/ /* webpack/runtime/make namespace object */
1069 1091 /******/ (() => {
@@ -1068,9 +1090,9 @@
1068 1090 /******/ /* webpack/runtime/make namespace object */
1069 1091 /******/ (() => {
1070 1092 /******/ // define __esModule on exports
1071 1093 /******/ __webpack_require__.r = (exports) => {
1072 -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1094 +/******/ if(Symbol.toStringTag) {
1073 1095 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1074 1096 /******/ }
1075 1097 /******/ Object.defineProperty(exports, '__esModule', { value: true });
1076 1098 /******/ };
@@ -1075,11 +1097,22 @@
1075 1097 /******/ Object.defineProperty(exports, '__esModule', { value: true });
1076 1098 /******/ };
1077 1099 /******/ })();
1078 1100 /******/
1101 +/******/ /* webpack/runtime/set anonymous default export name */
1102 +/******/ (() => {
1103 +/******/ // set .name for anonymous default exports per ES spec
1104 +/******/ // skipped when the property is non-configurable (pre-ES2015 engines),
1105 +/******/ // where Object.defineProperty would throw
1106 +/******/ __webpack_require__.dn = (x) => {
1107 +/******/ var descriptor = Object.getOwnPropertyDescriptor(x, "name");
1108 +/******/ if (!descriptor || (!descriptor.writable && descriptor.configurable)) Object.defineProperty(x, "name", { value: "default", configurable: true });
1109 +/******/ };
1110 +/******/ })();
1111 +/******/
1079 1112 /************************************************************************/
1080 -var __webpack_exports__ = {};
1081 -// This entry need to be wrapped in an IIFE because it need to be in strict mode.
1113 +let __webpack_exports__ = {};
1114 +// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
1082 1115 (() => {
1083 1116 "use strict";
1084 1117 /*!**************************************!*\
1085 1118 !*** ./assets/src/js/utils/index.js ***!
@@ -1394,9 +1427,8 @@
1394 1427 console.log(arguments[i]);
1395 1428 }
1396 1429 //}
1397 1430 },
1398 -
1399 1431 blockContent() {
1400 1432 if ($('#learn-press-block-content').length === 0) {
1401 1433 $(LP.template('learn-press-template-block-content', {})).appendTo($('body'));
1402 1434 }
@@ -1528,10 +1560,9 @@
1528 1560 }
1529 1561 }
1530 1562 LP.Hook.doAction('learn_press_receive_message', data, target);
1531 1563 },
1532 - camelCaseDashObjectKeys(obj) {
1533 - let deep = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1564 + camelCaseDashObjectKeys(obj, deep = true) {
1534 1565 const self = LP;
1535 1566 const isArray = function (a) {
1536 1567 return Array.isArray(a);
1537 1568 };
@@ -1583,9 +1614,11 @@
1583 1614 });
1584 1615 setTimeout(function () {
1585 1616 $('.learn-press-nav-tabs li.active:not(.default) a').trigger('click');
1586 1617 }, 300);
1587 - $('body.course-item-popup').parent().css('overflow', 'hidden');
1618 +
1619 + //$( 'body.course-item-popup' ).parent().css( 'overflow', 'hidden' );
1620 +
1588 1621 (function () {
1589 1622 let timer = null,
1590 1623 callback = function () {
1591 1624 $('.auto-check-lines').checkLines(function (r) {