| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | /******/ (() => { // webpackBootstrap |
| 2 | 2 | /******/ "use strict"; |
| 3 | 3 | /******/ var __webpack_modules__ = ({ |
| 4 | 4 | |
| @@ -50,23 +50,22 @@ | ||
| 50 | 50 | } |
| 51 | 51 | }, 1); |
| 52 | 52 | |
| 53 | 53 | // For case multiple ul list instructors on a page. |
| 54 | - /*document.addEventListener( 'DOMContentLoaded', function( event ) { | |
| 55 | - const elListInstructors = document.querySelectorAll( '.lp-list-instructors:not(.detected)' ); | |
| 56 | - if ( elListInstructors.length > 0 ) { | |
| 57 | - elListInstructors.forEach( function( el ) { | |
| 58 | - const elUlListInstructors = el.querySelector( '.ul-list-instructors' ); | |
| 59 | - query = { paged: 1 }; | |
| 60 | - getInstructors( query, true, function( res ) { | |
| 61 | - elUlListInstructors.innerHTML = res.data.content; | |
| 62 | - | |
| 63 | - if ( res.data.pagination !== undefined ) { | |
| 64 | - el.insertAdjacentHTML( 'beforeend', res.data.pagination ); | |
| 65 | - } | |
| 66 | - } ); | |
| 67 | - } ); | |
| 68 | - } | |
| 54 | + /*document.addEventListener( 'DOMContentLoaded', function( event ) { | |
| 55 | + const elListInstructors = document.querySelectorAll( '.lp-list-instructors:not(.detected)' ); | |
| 56 | + if ( elListInstructors.length > 0 ) { | |
| 57 | + elListInstructors.forEach( function( el ) { | |
| 58 | + const elUlListInstructors = el.querySelector( '.ul-list-instructors' ); | |
| 59 | + query = { paged: 1 }; | |
| 60 | + getInstructors( query, true, function( res ) { | |
| 61 | + elUlListInstructors.innerHTML = res.data.content; | |
| 62 | + if ( res.data.pagination !== undefined ) { | |
| 63 | + el.insertAdjacentHTML( 'beforeend', res.data.pagination ); | |
| 64 | + } | |
| 65 | + } ); | |
| 66 | + } ); | |
| 67 | + } | |
| 69 | 68 | } );*/ |
| 70 | 69 | |
| 71 | 70 | pagination(); |
| 72 | 71 | } |
| @@ -156,16 +155,16 @@ | ||
| 156 | 155 | /* harmony export */ lpSetLoadingEl: () => (/* binding */ lpSetLoadingEl), |
| 157 | 156 | /* harmony export */ lpShowHideEl: () => (/* binding */ lpShowHideEl), |
| 158 | 157 | /* harmony export */ toggleCollapse: () => (/* binding */ toggleCollapse) |
| 159 | 158 | /* harmony export */ }); |
| 160 | -/** | |
| 161 | - * Utils functions | |
| 162 | - * | |
| 163 | - * @param url | |
| 164 | - * @param data | |
| 165 | - * @param functions | |
| 166 | - * @since 4.2.5.1 | |
| 167 | - * @version 1.0.3 | |
| 159 | +/** | |
| 160 | + * Utils functions | |
| 161 | + * | |
| 162 | + * @param url | |
| 163 | + * @param data | |
| 164 | + * @param functions | |
| 165 | + * @since 4.2.5.1 | |
| 166 | + * @version 1.0.3 | |
| 168 | 167 | */ |
| 169 | 168 | const lpClassName = { |
| 170 | 169 | hidden: 'lp-hidden', |
| 171 | 170 | loading: 'loading', |
| @@ -194,12 +193,12 @@ | ||
| 194 | 193 | } |
| 195 | 194 | }); |
| 196 | 195 | }; |
| 197 | 196 | |
| 198 | -/** | |
| 199 | - * Get current URL without params. | |
| 200 | - * | |
| 201 | - * @since 4.2.5.1 | |
| 197 | +/** | |
| 198 | + * Get current URL without params. | |
| 199 | + * | |
| 200 | + * @since 4.2.5.1 | |
| 202 | 201 | */ |
| 203 | 202 | const lpGetCurrentURLNoParam = () => { |
| 204 | 203 | let currentUrl = window.location.href; |
| 205 | 204 | const hasParams = currentUrl.includes('?'); |
| @@ -215,14 +214,14 @@ | ||
| 215 | 214 | }); |
| 216 | 215 | return url; |
| 217 | 216 | }; |
| 218 | 217 | |
| 219 | -/** | |
| 220 | - * Listen element viewed. | |
| 221 | - * | |
| 222 | - * @param el | |
| 223 | - * @param callback | |
| 224 | - * @since 4.2.5.8 | |
| 218 | +/** | |
| 219 | + * Listen element viewed. | |
| 220 | + * | |
| 221 | + * @param el | |
| 222 | + * @param callback | |
| 223 | + * @since 4.2.5.8 | |
| 225 | 224 | */ |
| 226 | 225 | const listenElementViewed = (el, callback) => { |
| 227 | 226 | const observerSeeItem = new IntersectionObserver(function (entries) { |
| 228 | 227 | for (const entry of entries) { |
| @@ -233,13 +232,13 @@ | ||
| 233 | 232 | }); |
| 234 | 233 | observerSeeItem.observe(el); |
| 235 | 234 | }; |
| 236 | 235 | |
| 237 | -/** | |
| 238 | - * Listen element created. | |
| 239 | - * | |
| 240 | - * @param callback | |
| 241 | - * @since 4.2.5.8 | |
| 236 | +/** | |
| 237 | + * Listen element created. | |
| 238 | + * | |
| 239 | + * @param callback | |
| 240 | + * @since 4.2.5.8 | |
| 242 | 241 | */ |
| 243 | 242 | const listenElementCreated = callback => { |
| 244 | 243 | const observerCreateItem = new MutationObserver(function (mutations) { |
| 245 | 244 | mutations.forEach(function (mutation) { |
| @@ -258,14 +257,14 @@ | ||
| 258 | 257 | }); |
| 259 | 258 | // End. |
| 260 | 259 | }; |
| 261 | 260 | |
| 262 | -/** | |
| 263 | - * Listen element created. | |
| 264 | - * | |
| 265 | - * @param selector | |
| 266 | - * @param callback | |
| 267 | - * @since 4.2.7.1 | |
| 261 | +/** | |
| 262 | + * Listen element created. | |
| 263 | + * | |
| 264 | + * @param selector | |
| 265 | + * @param callback | |
| 266 | + * @since 4.2.7.1 | |
| 268 | 267 | */ |
| 269 | 268 | const lpOnElementReady = (selector, callback) => { |
| 270 | 269 | const element = document.querySelector(selector); |
| 271 | 270 | if (element) { |
| @@ -362,19 +361,19 @@ | ||
| 362 | 361 | |
| 363 | 362 | /******/ }); |
| 364 | 363 | /************************************************************************/ |
| 365 | 364 | /******/ // The module cache |
| 366 | -/******/ var __webpack_module_cache__ = {}; | |
| 365 | +/******/ const __webpack_module_cache__ = {}; | |
| 367 | 366 | /******/ |
| 368 | 367 | /******/ // The require function |
| 369 | 368 | /******/ function __webpack_require__(moduleId) { |
| 370 | 369 | /******/ // Check if module is in cache |
| 371 | -/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 370 | +/******/ const cachedModule = __webpack_module_cache__[moduleId]; | |
| 372 | 371 | /******/ if (cachedModule !== undefined) { |
| 373 | 372 | /******/ return cachedModule.exports; |
| 374 | 373 | /******/ } |
| 375 | 374 | /******/ // Create a new module (and put it into the cache) |
| 376 | -/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 375 | +/******/ const module = __webpack_module_cache__[moduleId] = { | |
| 377 | 376 | /******/ // no module.id needed |
| 378 | 377 | /******/ // no module.loaded needed |
| 379 | 378 | /******/ exports: {} |
| 380 | 379 | /******/ }; |
| @@ -381,9 +380,9 @@ | ||
| 381 | 380 | /******/ |
| 382 | 381 | /******/ // Execute the module function |
| 383 | 382 | /******/ if (!(moduleId in __webpack_modules__)) { |
| 384 | 383 | /******/ delete __webpack_module_cache__[moduleId]; |
| 385 | -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); | |
| 384 | +/******/ const e = new Error("Cannot find module '" + moduleId + "'"); | |
| 386 | 385 | /******/ e.code = 'MODULE_NOT_FOUND'; |
| 387 | 386 | /******/ throw e; |
| 388 | 387 | /******/ } |
| 389 | 388 | /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
| @@ -394,14 +393,29 @@ | ||
| 394 | 393 | /******/ |
| 395 | 394 | /************************************************************************/ |
| 396 | 395 | /******/ /* webpack/runtime/define property getters */ |
| 397 | 396 | /******/ (() => { |
| 398 | -/******/ // define getter functions for harmony exports | |
| 397 | +/******/ // define getter/value functions for harmony exports | |
| 399 | 398 | /******/ __webpack_require__.d = (exports, definition) => { |
| 400 | -/******/ for(var key in definition) { | |
| 401 | -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | |
| 402 | -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | |
| 399 | +/******/ if(Array.isArray(definition)) { | |
| 400 | +/******/ var i = 0; | |
| 401 | +/******/ while(i < definition.length) { | |
| 402 | +/******/ var key = definition[i++]; | |
| 403 | +/******/ var binding = definition[i++]; | |
| 404 | +/******/ if(!__webpack_require__.o(exports, key)) { | |
| 405 | +/******/ if(binding === 0) { | |
| 406 | +/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] }); | |
| 407 | +/******/ } else { | |
| 408 | +/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding }); | |
| 409 | +/******/ } | |
| 410 | +/******/ } else if(binding === 0) { i++; } | |
| 403 | 411 | /******/ } |
| 412 | +/******/ } else { | |
| 413 | +/******/ for(var key in definition) { | |
| 414 | +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | |
| 415 | +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | |
| 416 | +/******/ } | |
| 417 | +/******/ } | |
| 404 | 418 | /******/ } |
| 405 | 419 | /******/ }; |
| 406 | 420 | /******/ })(); |
| 407 | 421 | /******/ |
| @@ -406,9 +420,9 @@ | ||
| 406 | 420 | /******/ })(); |
| 407 | 421 | /******/ |
| 408 | 422 | /******/ /* webpack/runtime/hasOwnProperty shorthand */ |
| 409 | 423 | /******/ (() => { |
| 410 | -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) | |
| 424 | +/******/ __webpack_require__.o = (obj, prop) => (Object.hasOwn(obj, prop)) | |
| 411 | 425 | /******/ })(); |
| 412 | 426 | /******/ |
| 413 | 427 | /******/ /* webpack/runtime/make namespace object */ |
| 414 | 428 | /******/ (() => { |
| @@ -413,9 +427,9 @@ | ||
| 413 | 427 | /******/ /* webpack/runtime/make namespace object */ |
| 414 | 428 | /******/ (() => { |
| 415 | 429 | /******/ // define __esModule on exports |
| 416 | 430 | /******/ __webpack_require__.r = (exports) => { |
| 417 | -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| 431 | +/******/ if(Symbol.toStringTag) { | |
| 418 | 432 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
| 419 | 433 | /******/ } |
| 420 | 434 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); |
| 421 | 435 | /******/ }; |
| @@ -421,9 +435,9 @@ | ||
| 421 | 435 | /******/ }; |
| 422 | 436 | /******/ })(); |
| 423 | 437 | /******/ |
| 424 | 438 | /************************************************************************/ |
| 425 | -var __webpack_exports__ = {}; | |
| 439 | +let __webpack_exports__ = {}; | |
| 426 | 440 | // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. |
| 427 | 441 | (() => { |
| 428 | 442 | /*!****************************************************!*\ |
| 429 | 443 | !*** ./assets/src/apps/js/frontend/instructors.js ***! |