PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 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 All 142 releases
← All changes | assets/js/dist/blocks/course-featured.js +37 -22 4.3.8 → 4.4.10 View file →
@@ -1,4 +1,4 @@
1 1 /******/ (() => { // webpackBootstrap
2 2 /******/ "use strict";
3 3 /******/ var __webpack_modules__ = ({
4 4
@@ -71,13 +71,13 @@
71 71 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
72 72 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);
73 73 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
74 74 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);
75 -/**
76 - * Check if the block can be loaded in the current template.
77 - *
78 - * @since 4.2.8.4
79 - * @version 1.0.0
75 +/**
76 + * Check if the block can be loaded in the current template.
77 + *
78 + * @since 4.2.8.4
79 + * @version 1.0.0
80 80 */
81 81
82 82
83 83 let currentPostIdOld = null;
@@ -178,19 +178,19 @@
178 178
179 179 /******/ });
180 180 /************************************************************************/
181 181 /******/ // The module cache
182 -/******/ var __webpack_module_cache__ = {};
182 +/******/ const __webpack_module_cache__ = {};
183 183 /******/
184 184 /******/ // The require function
185 185 /******/ function __webpack_require__(moduleId) {
186 186 /******/ // Check if module is in cache
187 -/******/ var cachedModule = __webpack_module_cache__[moduleId];
187 +/******/ const cachedModule = __webpack_module_cache__[moduleId];
188 188 /******/ if (cachedModule !== undefined) {
189 189 /******/ return cachedModule.exports;
190 190 /******/ }
191 191 /******/ // Create a new module (and put it into the cache)
192 -/******/ var module = __webpack_module_cache__[moduleId] = {
192 +/******/ const module = __webpack_module_cache__[moduleId] = {
193 193 /******/ // no module.id needed
194 194 /******/ // no module.loaded needed
195 195 /******/ exports: {}
196 196 /******/ };
@@ -197,9 +197,9 @@
197 197 /******/
198 198 /******/ // Execute the module function
199 199 /******/ if (!(moduleId in __webpack_modules__)) {
200 200 /******/ delete __webpack_module_cache__[moduleId];
201 -/******/ var e = new Error("Cannot find module '" + moduleId + "'");
201 +/******/ const e = new Error("Cannot find module '" + moduleId + "'");
202 202 /******/ e.code = 'MODULE_NOT_FOUND';
203 203 /******/ throw e;
204 204 /******/ }
205 205 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
@@ -212,9 +212,9 @@
212 212 /******/ /* webpack/runtime/compat get default export */
213 213 /******/ (() => {
214 214 /******/ // getDefaultExport function for compatibility with non-harmony modules
215 215 /******/ __webpack_require__.n = (module) => {
216 -/******/ var getter = module && module.__esModule ?
216 +/******/ const getter = module && module.__esModule ?
217 217 /******/ () => (module['default']) :
218 218 /******/ () => (module);
219 219 /******/ __webpack_require__.d(getter, { a: getter });
220 220 /******/ return getter;
@@ -222,14 +222,29 @@
222 222 /******/ })();
223 223 /******/
224 224 /******/ /* webpack/runtime/define property getters */
225 225 /******/ (() => {
226 -/******/ // define getter functions for harmony exports
226 +/******/ // define getter/value functions for harmony exports
227 227 /******/ __webpack_require__.d = (exports, definition) => {
228 -/******/ for(var key in definition) {
229 -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
230 -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
228 +/******/ if(Array.isArray(definition)) {
229 +/******/ var i = 0;
230 +/******/ while(i < definition.length) {
231 +/******/ var key = definition[i++];
232 +/******/ var binding = definition[i++];
233 +/******/ if(!__webpack_require__.o(exports, key)) {
234 +/******/ if(binding === 0) {
235 +/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
236 +/******/ } else {
237 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
238 +/******/ }
239 +/******/ } else if(binding === 0) { i++; }
231 240 /******/ }
241 +/******/ } else {
242 +/******/ for(var key in definition) {
243 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
244 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
245 +/******/ }
246 +/******/ }
232 247 /******/ }
233 248 /******/ };
234 249 /******/ })();
235 250 /******/
@@ -234,9 +249,9 @@
234 249 /******/ })();
235 250 /******/
236 251 /******/ /* webpack/runtime/hasOwnProperty shorthand */
237 252 /******/ (() => {
238 -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
253 +/******/ __webpack_require__.o = (obj, prop) => (Object.hasOwn(obj, prop))
239 254 /******/ })();
240 255 /******/
241 256 /******/ /* webpack/runtime/make namespace object */
242 257 /******/ (() => {
@@ -241,9 +256,9 @@
241 256 /******/ /* webpack/runtime/make namespace object */
242 257 /******/ (() => {
243 258 /******/ // define __esModule on exports
244 259 /******/ __webpack_require__.r = (exports) => {
245 -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
260 +/******/ if(Symbol.toStringTag) {
246 261 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
247 262 /******/ }
248 263 /******/ Object.defineProperty(exports, '__esModule', { value: true });
249 264 /******/ };
@@ -249,9 +264,9 @@
249 264 /******/ };
250 265 /******/ })();
251 266 /******/
252 267 /************************************************************************/
253 -var __webpack_exports__ = {};
268 +let __webpack_exports__ = {};
254 269 // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
255 270 (() => {
256 271 /*!****************************************************************************!*\
257 272 !*** ./assets/src/apps/js/blocks/course-elements/course-featured/index.js ***!
@@ -262,10 +277,10 @@
262 277 /* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block.json */ "./assets/src/apps/js/blocks/course-elements/course-featured/block.json");
263 278 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
264 279 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
265 280 /* harmony import */ var _utilBlock_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utilBlock.js */ "./assets/src/apps/js/blocks/utilBlock.js");
266 -/**
267 - * Register block course featured.
281 +/**
282 + * Register block course featured.
268 283 */
269 284
270 285
271 286
@@ -272,11 +287,11 @@
272 287
273 288
274 289 const templatesName = ['learnpress/learnpress//single-lp_course', 'learnpress/learnpress//single-lp_course-offline'];
275 290
276 -/**
277 - * Check if the block can load in the template editor: single-lp_course.
278 - * if it is editing on this template, set ancestor to null
291 +/**
292 + * Check if the block can load in the template editor: single-lp_course.
293 + * if it is editing on this template, set ancestor to null
279 294 */
280 295 (0,_utilBlock_js__WEBPACK_IMPORTED_MODULE_4__.checkTemplatesCanLoadBlock)(templatesName, _block_json__WEBPACK_IMPORTED_MODULE_2__, metadataNew => {
281 296 (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__.registerBlockType)(metadataNew.name, {
282 297 ...metadataNew,