PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.5
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.5
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
learnpress / assets / js / dist / blocks / course-search.js

course-search.js in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.5, at assets/js/dist/blocks/course-search.js

228 lines 9.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /******/ (() => { // webpackBootstrap
2 /******/ "use strict";
3 /******/ var __webpack_modules__ = ({
4
5 /***/ "./assets/src/apps/js/blocks/courses/course-search/edit.js"
6 /*!*****************************************************************!*\
7 !*** ./assets/src/apps/js/blocks/courses/course-search/edit.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 */ edit: () => (/* binding */ edit)
14 /* harmony export */ });
15 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
16 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
17 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
18 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
19 /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
20 /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__);
21
22
23
24 const edit = props => {
25 const blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps)();
26 return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
27 ...blockProps
28 }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("form", {
29 className: "block-search-courses"
30 }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("input", {
31 type: "search",
32 placeholder: "Search courses...",
33 name: "c_search",
34 value: ""
35 }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
36 type: "submit",
37 disabled: true,
38 name: "lp-btn-search-courses"
39 }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
40 className: "lp-icon-search"
41 })))));
42 };
43
44 /***/ },
45
46 /***/ "./assets/src/apps/js/blocks/courses/course-search/save.js"
47 /*!*****************************************************************!*\
48 !*** ./assets/src/apps/js/blocks/courses/course-search/save.js ***!
49 \*****************************************************************/
50 (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
51
52 __webpack_require__.r(__webpack_exports__);
53 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
54 /* harmony export */ save: () => (/* binding */ save)
55 /* harmony export */ });
56 const save = props => null;
57
58 /***/ },
59
60 /***/ "react"
61 /*!************************!*\
62 !*** external "React" ***!
63 \************************/
64 (module) {
65
66 module.exports = window["React"];
67
68 /***/ },
69
70 /***/ "@wordpress/block-editor"
71 /*!*************************************!*\
72 !*** external ["wp","blockEditor"] ***!
73 \*************************************/
74 (module) {
75
76 module.exports = window["wp"]["blockEditor"];
77
78 /***/ },
79
80 /***/ "@wordpress/blocks"
81 /*!********************************!*\
82 !*** external ["wp","blocks"] ***!
83 \********************************/
84 (module) {
85
86 module.exports = window["wp"]["blocks"];
87
88 /***/ },
89
90 /***/ "@wordpress/i18n"
91 /*!******************************!*\
92 !*** external ["wp","i18n"] ***!
93 \******************************/
94 (module) {
95
96 module.exports = window["wp"]["i18n"];
97
98 /***/ },
99
100 /***/ "./assets/src/apps/js/blocks/courses/course-search/block.json"
101 /*!********************************************************************!*\
102 !*** ./assets/src/apps/js/blocks/courses/course-search/block.json ***!
103 \********************************************************************/
104 (module) {
105
106 module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"learnpress/course-search","title":"Course Search","category":"learnpress-course-elements","icon":"search","description":"Show Search Course.","textdomain":"learnpress","keywords":["search","learnpress"],"ancestor":["learnpress/list-courses"],"usesContext":[],"supports":{"multiple":true,"align":["wide","full"],"html":false,"typography":{"fontSize":true,"lineHeight":false,"fontWeight":true,"__experimentalFontFamily":false,"__experimentalTextDecoration":false,"__experimentalFontStyle":false,"__experimentalFontWeight":true,"__experimentalLetterSpacing":false,"__experimentalTextTransform":false,"__experimentalDefaultControls":{"fontSize":true}},"color":{"background":false,"text":true,"link":false,"gradients":false,"__experimentalDefaultControls":{"text":true}}}}');
107
108 /***/ }
109
110 /******/ });
111 /************************************************************************/
112 /******/ // The module cache
113 /******/ const __webpack_module_cache__ = {};
114 /******/
115 /******/ // The require function
116 /******/ function __webpack_require__(moduleId) {
117 /******/ // Check if module is in cache
118 /******/ const cachedModule = __webpack_module_cache__[moduleId];
119 /******/ if (cachedModule !== undefined) {
120 /******/ return cachedModule.exports;
121 /******/ }
122 /******/ // Create a new module (and put it into the cache)
123 /******/ const module = __webpack_module_cache__[moduleId] = {
124 /******/ // no module.id needed
125 /******/ // no module.loaded needed
126 /******/ exports: {}
127 /******/ };
128 /******/
129 /******/ // Execute the module function
130 /******/ if (!(moduleId in __webpack_modules__)) {
131 /******/ delete __webpack_module_cache__[moduleId];
132 /******/ const e = new Error("Cannot find module '" + moduleId + "'");
133 /******/ e.code = 'MODULE_NOT_FOUND';
134 /******/ throw e;
135 /******/ }
136 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
137 /******/
138 /******/ // Return the exports of the module
139 /******/ return module.exports;
140 /******/ }
141 /******/
142 /************************************************************************/
143 /******/ /* webpack/runtime/compat get default export */
144 /******/ (() => {
145 /******/ // getDefaultExport function for compatibility with non-harmony modules
146 /******/ __webpack_require__.n = (module) => {
147 /******/ const getter = module && module.__esModule ?
148 /******/ () => (module['default']) :
149 /******/ () => (module);
150 /******/ __webpack_require__.d(getter, { a: getter });
151 /******/ return getter;
152 /******/ };
153 /******/ })();
154 /******/
155 /******/ /* webpack/runtime/define property getters */
156 /******/ (() => {
157 /******/ // define getter/value functions for harmony exports
158 /******/ __webpack_require__.d = (exports, definition) => {
159 /******/ if(Array.isArray(definition)) {
160 /******/ var i = 0;
161 /******/ while(i < definition.length) {
162 /******/ var key = definition[i++];
163 /******/ var binding = definition[i++];
164 /******/ if(!__webpack_require__.o(exports, key)) {
165 /******/ if(binding === 0) {
166 /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
167 /******/ } else {
168 /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
169 /******/ }
170 /******/ } else if(binding === 0) { i++; }
171 /******/ }
172 /******/ } else {
173 /******/ for(var key in definition) {
174 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
175 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
176 /******/ }
177 /******/ }
178 /******/ }
179 /******/ };
180 /******/ })();
181 /******/
182 /******/ /* webpack/runtime/hasOwnProperty shorthand */
183 /******/ (() => {
184 /******/ __webpack_require__.o = (obj, prop) => (Object.hasOwn(obj, prop))
185 /******/ })();
186 /******/
187 /******/ /* webpack/runtime/make namespace object */
188 /******/ (() => {
189 /******/ // define __esModule on exports
190 /******/ __webpack_require__.r = (exports) => {
191 /******/ if(Symbol.toStringTag) {
192 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
193 /******/ }
194 /******/ Object.defineProperty(exports, '__esModule', { value: true });
195 /******/ };
196 /******/ })();
197 /******/
198 /************************************************************************/
199 let __webpack_exports__ = {};
200 // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
201 (() => {
202 /*!******************************************************************!*\
203 !*** ./assets/src/apps/js/blocks/courses/course-search/index.js ***!
204 \******************************************************************/
205 __webpack_require__.r(__webpack_exports__);
206 /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./edit */ "./assets/src/apps/js/blocks/courses/course-search/edit.js");
207 /* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./save */ "./assets/src/apps/js/blocks/courses/course-search/save.js");
208 /* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block.json */ "./assets/src/apps/js/blocks/courses/course-search/block.json");
209 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
210 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
211 /**
212 * Register block course search.
213 */
214
215
216
217
218
219 (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_2__.name, {
220 ..._block_json__WEBPACK_IMPORTED_MODULE_2__,
221 edit: _edit__WEBPACK_IMPORTED_MODULE_0__.edit,
222 save: _save__WEBPACK_IMPORTED_MODULE_1__.save
223 });
224 })();
225
226 /******/ })()
227 ;
228 //# sourceMappingURL=course-search.js.map