| 1 |
/******/ (() => { // webpackBootstrap |
| 2 |
/******/ "use strict"; |
| 3 |
/******/ var __webpack_modules__ = ({ |
| 4 |
|
| 5 |
/***/ "./node_modules/@wordpress/icons/build-module/library/post-content.js" |
| 6 |
/*!****************************************************************************!*\ |
| 7 |
!*** ./node_modules/@wordpress/icons/build-module/library/post-content.js ***! |
| 8 |
\****************************************************************************/ |
| 9 |
(__unused_webpack_module, __webpack_exports__, __webpack_require__) { |
| 10 |
|
| 11 |
__webpack_require__.r(__webpack_exports__); |
| 12 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 13 |
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
| 14 |
/* harmony export */ }); |
| 15 |
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); |
| 16 |
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__); |
| 17 |
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); |
| 18 |
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); |
| 19 |
/** |
| 20 |
* WordPress dependencies |
| 21 |
*/ |
| 22 |
|
| 23 |
|
| 24 |
const postContent = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, { |
| 25 |
xmlns: "http://www.w3.org/2000/svg", |
| 26 |
viewBox: "0 0 24 24", |
| 27 |
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, { |
| 28 |
d: "M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z" |
| 29 |
}) |
| 30 |
}); |
| 31 |
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (postContent); |
| 32 |
//# sourceMappingURL=post-content.js.map |
| 33 |
|
| 34 |
/***/ }, |
| 35 |
|
| 36 |
/***/ "./assets/src/apps/js/blocks/single-course-item/item-content/edit.js" |
| 37 |
/*!***************************************************************************!*\ |
| 38 |
!*** ./assets/src/apps/js/blocks/single-course-item/item-content/edit.js ***! |
| 39 |
\***************************************************************************/ |
| 40 |
(__unused_webpack_module, __webpack_exports__, __webpack_require__) { |
| 41 |
|
| 42 |
__webpack_require__.r(__webpack_exports__); |
| 43 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 44 |
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
| 45 |
/* harmony export */ }); |
| 46 |
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); |
| 47 |
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); |
| 48 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); |
| 49 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); |
| 50 |
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); |
| 51 |
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); |
| 52 |
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); |
| 53 |
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
const Edit = props => { |
| 59 |
const blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.useBlockProps)(); |
| 60 |
return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { |
| 61 |
...blockProps |
| 62 |
}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { |
| 63 |
id: "learn-press-content-item" |
| 64 |
}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { |
| 65 |
class: "content-item-scrollable" |
| 66 |
}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { |
| 67 |
class: "content-item-wrap" |
| 68 |
}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { |
| 69 |
class: "content-item-summary" |
| 70 |
}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("h1", { |
| 71 |
class: "course-item-title lesson-title" |
| 72 |
}, "Lesson 2"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { |
| 73 |
class: "content-item-description lesson-description" |
| 74 |
}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, "Vidisse advesperascit mediocribus adulter everti fiant redderet sequens discimus hinc licentiam lectulis levares"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, "Acupenserem dicat spelunca opifices cuiusque oculis iniquus platonis littera summis miseriarum testimonium dicat hominem inventus"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, "Relinquet debuerunt tuae animoque verbis prima vitiose negotii inchoatum don sapiens postulo luci illustris amitti falli consul propter proferebas possent"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, "Necopinato crimen dempta soletis evolare democritus doleas secusne brevem pertinacem levem hieronymi periculo diem tuum"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, "Primos singulis persecuti exponere modicum aculeis relinquunt atque evolare phaedro detractus refert spectare squilla odio"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, "Concordiae mene sensim vivunt postulet quaeram quali cupit optatius praeterita disseretur potius eam augendae praesidii erunt pollicentur recusant hortandus"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, "Multarum consequentia confecimus miserrimus statui quidque liceat occultissimarum intervalla longinquum iisque"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, "Sanguine zeno artem usum summum dissensione eorum alias attinet prosunt appellamus sensitque vestra consuetudo commodaita"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, "Serpere vitae labefactare commovebat quanto dies subito qualis impedit ingredimur incontentae aderit etenim rationis malitiam audax amicitia quodsi malitiam"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, "Pietatem quibus gravior ita mentio essentne putaverunt habere nominati gravis vocant legem iocari sequens duxisse viros simonides"))))))); |
| 75 |
}; |
| 76 |
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Edit); |
| 77 |
|
| 78 |
/***/ }, |
| 79 |
|
| 80 |
/***/ "./assets/src/apps/js/blocks/single-course-item/item-content/save.js" |
| 81 |
/*!***************************************************************************!*\ |
| 82 |
!*** ./assets/src/apps/js/blocks/single-course-item/item-content/save.js ***! |
| 83 |
\***************************************************************************/ |
| 84 |
(__unused_webpack_module, __webpack_exports__, __webpack_require__) { |
| 85 |
|
| 86 |
__webpack_require__.r(__webpack_exports__); |
| 87 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 88 |
/* harmony export */ save: () => (/* binding */ save) |
| 89 |
/* harmony export */ }); |
| 90 |
const save = props => null; |
| 91 |
|
| 92 |
/***/ }, |
| 93 |
|
| 94 |
/***/ "./assets/src/apps/js/blocks/utilBlock.js" |
| 95 |
/*!************************************************!*\ |
| 96 |
!*** ./assets/src/apps/js/blocks/utilBlock.js ***! |
| 97 |
\************************************************/ |
| 98 |
(__unused_webpack_module, __webpack_exports__, __webpack_require__) { |
| 99 |
|
| 100 |
__webpack_require__.r(__webpack_exports__); |
| 101 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 102 |
/* harmony export */ checkTemplatesCanLoadBlock: () => (/* binding */ checkTemplatesCanLoadBlock) |
| 103 |
/* harmony export */ }); |
| 104 |
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); |
| 105 |
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); |
| 106 |
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); |
| 107 |
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__); |
| 108 |
/** |
| 109 |
* Check if the block can be loaded in the current template. |
| 110 |
* |
| 111 |
* @since 4.2.8.4 |
| 112 |
* @version 1.0.0 |
| 113 |
*/ |
| 114 |
|
| 115 |
|
| 116 |
let currentPostIdOld = null; |
| 117 |
const checkTemplatesCanLoadBlock = (templates, metadata, callBack) => { |
| 118 |
(0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.subscribe)(() => { |
| 119 |
const metaDataNew = { |
| 120 |
...metadata |
| 121 |
}; |
| 122 |
const store = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.select)('core/editor') || null; |
| 123 |
if (!store || typeof store.getCurrentPostId !== 'function' || !store.getCurrentPostId()) { |
| 124 |
return; |
| 125 |
} |
| 126 |
const currentPostId = store.getCurrentPostId(); |
| 127 |
if (currentPostId === null) { |
| 128 |
return; |
| 129 |
} |
| 130 |
if (currentPostIdOld === currentPostId) { |
| 131 |
return; |
| 132 |
} |
| 133 |
currentPostIdOld = currentPostId; |
| 134 |
if ((0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.getBlockType)(metaDataNew.name)) { |
| 135 |
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.unregisterBlockType)(metaDataNew.name); |
| 136 |
if (templates.includes(currentPostId)) { |
| 137 |
metaDataNew.ancestor = null; |
| 138 |
callBack(metaDataNew); |
| 139 |
} else { |
| 140 |
if (!metaDataNew.ancestor) { |
| 141 |
metaDataNew.ancestor = []; |
| 142 |
} |
| 143 |
callBack(metaDataNew); |
| 144 |
} |
| 145 |
} |
| 146 |
}); |
| 147 |
}; |
| 148 |
|
| 149 |
|
| 150 |
/***/ }, |
| 151 |
|
| 152 |
/***/ "react" |
| 153 |
/*!************************!*\ |
| 154 |
!*** external "React" ***! |
| 155 |
\************************/ |
| 156 |
(module) { |
| 157 |
|
| 158 |
module.exports = window["React"]; |
| 159 |
|
| 160 |
/***/ }, |
| 161 |
|
| 162 |
/***/ "react/jsx-runtime" |
| 163 |
/*!**********************************!*\ |
| 164 |
!*** external "ReactJSXRuntime" ***! |
| 165 |
\**********************************/ |
| 166 |
(module) { |
| 167 |
|
| 168 |
module.exports = window["ReactJSXRuntime"]; |
| 169 |
|
| 170 |
/***/ }, |
| 171 |
|
| 172 |
/***/ "@wordpress/block-editor" |
| 173 |
/*!*************************************!*\ |
| 174 |
!*** external ["wp","blockEditor"] ***! |
| 175 |
\*************************************/ |
| 176 |
(module) { |
| 177 |
|
| 178 |
module.exports = window["wp"]["blockEditor"]; |
| 179 |
|
| 180 |
/***/ }, |
| 181 |
|
| 182 |
/***/ "@wordpress/blocks" |
| 183 |
/*!********************************!*\ |
| 184 |
!*** external ["wp","blocks"] ***! |
| 185 |
\********************************/ |
| 186 |
(module) { |
| 187 |
|
| 188 |
module.exports = window["wp"]["blocks"]; |
| 189 |
|
| 190 |
/***/ }, |
| 191 |
|
| 192 |
/***/ "@wordpress/components" |
| 193 |
/*!************************************!*\ |
| 194 |
!*** external ["wp","components"] ***! |
| 195 |
\************************************/ |
| 196 |
(module) { |
| 197 |
|
| 198 |
module.exports = window["wp"]["components"]; |
| 199 |
|
| 200 |
/***/ }, |
| 201 |
|
| 202 |
/***/ "@wordpress/data" |
| 203 |
/*!******************************!*\ |
| 204 |
!*** external ["wp","data"] ***! |
| 205 |
\******************************/ |
| 206 |
(module) { |
| 207 |
|
| 208 |
module.exports = window["wp"]["data"]; |
| 209 |
|
| 210 |
/***/ }, |
| 211 |
|
| 212 |
/***/ "@wordpress/i18n" |
| 213 |
/*!******************************!*\ |
| 214 |
!*** external ["wp","i18n"] ***! |
| 215 |
\******************************/ |
| 216 |
(module) { |
| 217 |
|
| 218 |
module.exports = window["wp"]["i18n"]; |
| 219 |
|
| 220 |
/***/ }, |
| 221 |
|
| 222 |
/***/ "@wordpress/primitives" |
| 223 |
/*!************************************!*\ |
| 224 |
!*** external ["wp","primitives"] ***! |
| 225 |
\************************************/ |
| 226 |
(module) { |
| 227 |
|
| 228 |
module.exports = window["wp"]["primitives"]; |
| 229 |
|
| 230 |
/***/ }, |
| 231 |
|
| 232 |
/***/ "./assets/src/apps/js/blocks/single-course-item/item-content/block.json" |
| 233 |
/*!******************************************************************************!*\ |
| 234 |
!*** ./assets/src/apps/js/blocks/single-course-item/item-content/block.json ***! |
| 235 |
\******************************************************************************/ |
| 236 |
(module) { |
| 237 |
|
| 238 |
module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"learnpress/item-content","title":"Item Content","category":"learnpress-category","description":"Renders template Single Course Legacy PHP templates.","textdomain":"learnpress","keywords":["item content course","learnpress"],"usesContext":[],"supports":{"align":["wide","full"],"html":false,"typography":{"fontSize":true,"lineHeight":false,"fontWeight":true,"__experimentalFontFamily":false,"__experimentalTextDecoration":false,"__experimentalFontStyle":false,"__experimentalFontWeight":true,"__experimentalLetterSpacing":false,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"background":false,"text":true,"link":false,"gradients":false,"__experimentalDefaultControls":{"text":true}},"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"margin":false,"padding":false}}}}'); |
| 239 |
|
| 240 |
/***/ } |
| 241 |
|
| 242 |
/******/ }); |
| 243 |
/************************************************************************/ |
| 244 |
/******/ // The module cache |
| 245 |
/******/ const __webpack_module_cache__ = {}; |
| 246 |
/******/ |
| 247 |
/******/ // The require function |
| 248 |
/******/ function __webpack_require__(moduleId) { |
| 249 |
/******/ // Check if module is in cache |
| 250 |
/******/ const cachedModule = __webpack_module_cache__[moduleId]; |
| 251 |
/******/ if (cachedModule !== undefined) { |
| 252 |
/******/ return cachedModule.exports; |
| 253 |
/******/ } |
| 254 |
/******/ // Create a new module (and put it into the cache) |
| 255 |
/******/ const module = __webpack_module_cache__[moduleId] = { |
| 256 |
/******/ // no module.id needed |
| 257 |
/******/ // no module.loaded needed |
| 258 |
/******/ exports: {} |
| 259 |
/******/ }; |
| 260 |
/******/ |
| 261 |
/******/ // Execute the module function |
| 262 |
/******/ if (!(moduleId in __webpack_modules__)) { |
| 263 |
/******/ delete __webpack_module_cache__[moduleId]; |
| 264 |
/******/ const e = new Error("Cannot find module '" + moduleId + "'"); |
| 265 |
/******/ e.code = 'MODULE_NOT_FOUND'; |
| 266 |
/******/ throw e; |
| 267 |
/******/ } |
| 268 |
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
| 269 |
/******/ |
| 270 |
/******/ // Return the exports of the module |
| 271 |
/******/ return module.exports; |
| 272 |
/******/ } |
| 273 |
/******/ |
| 274 |
/************************************************************************/ |
| 275 |
/******/ /* webpack/runtime/compat get default export */ |
| 276 |
/******/ (() => { |
| 277 |
/******/ // getDefaultExport function for compatibility with non-harmony modules |
| 278 |
/******/ __webpack_require__.n = (module) => { |
| 279 |
/******/ const getter = module && module.__esModule ? |
| 280 |
/******/ () => (module['default']) : |
| 281 |
/******/ () => (module); |
| 282 |
/******/ __webpack_require__.d(getter, { a: getter }); |
| 283 |
/******/ return getter; |
| 284 |
/******/ }; |
| 285 |
/******/ })(); |
| 286 |
/******/ |
| 287 |
/******/ /* webpack/runtime/define property getters */ |
| 288 |
/******/ (() => { |
| 289 |
/******/ // define getter/value functions for harmony exports |
| 290 |
/******/ __webpack_require__.d = (exports, definition) => { |
| 291 |
/******/ if(Array.isArray(definition)) { |
| 292 |
/******/ var i = 0; |
| 293 |
/******/ while(i < definition.length) { |
| 294 |
/******/ var key = definition[i++]; |
| 295 |
/******/ var binding = definition[i++]; |
| 296 |
/******/ if(!__webpack_require__.o(exports, key)) { |
| 297 |
/******/ if(binding === 0) { |
| 298 |
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] }); |
| 299 |
/******/ } else { |
| 300 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding }); |
| 301 |
/******/ } |
| 302 |
/******/ } else if(binding === 0) { i++; } |
| 303 |
/******/ } |
| 304 |
/******/ } else { |
| 305 |
/******/ for(var key in definition) { |
| 306 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { |
| 307 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); |
| 308 |
/******/ } |
| 309 |
/******/ } |
| 310 |
/******/ } |
| 311 |
/******/ }; |
| 312 |
/******/ })(); |
| 313 |
/******/ |
| 314 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */ |
| 315 |
/******/ (() => { |
| 316 |
/******/ __webpack_require__.o = (obj, prop) => (Object.hasOwn(obj, prop)) |
| 317 |
/******/ })(); |
| 318 |
/******/ |
| 319 |
/******/ /* webpack/runtime/make namespace object */ |
| 320 |
/******/ (() => { |
| 321 |
/******/ // define __esModule on exports |
| 322 |
/******/ __webpack_require__.r = (exports) => { |
| 323 |
/******/ if(Symbol.toStringTag) { |
| 324 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
| 325 |
/******/ } |
| 326 |
/******/ Object.defineProperty(exports, '__esModule', { value: true }); |
| 327 |
/******/ }; |
| 328 |
/******/ })(); |
| 329 |
/******/ |
| 330 |
/************************************************************************/ |
| 331 |
let __webpack_exports__ = {}; |
| 332 |
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. |
| 333 |
(() => { |
| 334 |
/*!****************************************************************************!*\ |
| 335 |
!*** ./assets/src/apps/js/blocks/single-course-item/item-content/index.js ***! |
| 336 |
\****************************************************************************/ |
| 337 |
__webpack_require__.r(__webpack_exports__); |
| 338 |
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./edit */ "./assets/src/apps/js/blocks/single-course-item/item-content/edit.js"); |
| 339 |
/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./save */ "./assets/src/apps/js/blocks/single-course-item/item-content/save.js"); |
| 340 |
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block.json */ "./assets/src/apps/js/blocks/single-course-item/item-content/block.json"); |
| 341 |
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); |
| 342 |
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__); |
| 343 |
/* harmony import */ var _utilBlock_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utilBlock.js */ "./assets/src/apps/js/blocks/utilBlock.js"); |
| 344 |
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/post-content.js"); |
| 345 |
/** |
| 346 |
* Register block item content. |
| 347 |
*/ |
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
const templatesName = ['learnpress/learnpress//single-lp_course_item']; |
| 356 |
(0,_utilBlock_js__WEBPACK_IMPORTED_MODULE_4__.checkTemplatesCanLoadBlock)(templatesName, _block_json__WEBPACK_IMPORTED_MODULE_2__, metadataNew => { |
| 357 |
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__.registerBlockType)(metadataNew.name, { |
| 358 |
...metadataNew, |
| 359 |
icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__["default"], |
| 360 |
edit: _edit__WEBPACK_IMPORTED_MODULE_0__["default"], |
| 361 |
save: _save__WEBPACK_IMPORTED_MODULE_1__.save |
| 362 |
}); |
| 363 |
}); |
| 364 |
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_2__.name, { |
| 365 |
..._block_json__WEBPACK_IMPORTED_MODULE_2__, |
| 366 |
icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__["default"], |
| 367 |
edit: _edit__WEBPACK_IMPORTED_MODULE_0__["default"], |
| 368 |
save: _save__WEBPACK_IMPORTED_MODULE_1__.save |
| 369 |
}); |
| 370 |
})(); |
| 371 |
|
| 372 |
/******/ })() |
| 373 |
; |
| 374 |
//# sourceMappingURL=item-content.js.map |