changeset 22 | 8c2e4d02f4ef |
parent 21 | 48c4eec2b7e6 |
21:48c4eec2b7e6 | 22:8c2e4d02f4ef |
---|---|
1 /******/ (() => { // webpackBootstrap |
1 /******/ (() => { // webpackBootstrap |
2 /******/ var __webpack_modules__ = ({ |
2 /******/ var __webpack_modules__ = ({ |
3 |
|
4 /***/ 7734: |
|
5 /***/ ((module) => { |
|
6 |
|
7 "use strict"; |
|
8 |
|
9 |
|
10 // do not edit .js files directly - edit src/index.jst |
|
11 |
|
12 |
|
13 var envHasBigInt64Array = typeof BigInt64Array !== 'undefined'; |
|
14 |
|
15 |
|
16 module.exports = function equal(a, b) { |
|
17 if (a === b) return true; |
|
18 |
|
19 if (a && b && typeof a == 'object' && typeof b == 'object') { |
|
20 if (a.constructor !== b.constructor) return false; |
|
21 |
|
22 var length, i, keys; |
|
23 if (Array.isArray(a)) { |
|
24 length = a.length; |
|
25 if (length != b.length) return false; |
|
26 for (i = length; i-- !== 0;) |
|
27 if (!equal(a[i], b[i])) return false; |
|
28 return true; |
|
29 } |
|
30 |
|
31 |
|
32 if ((a instanceof Map) && (b instanceof Map)) { |
|
33 if (a.size !== b.size) return false; |
|
34 for (i of a.entries()) |
|
35 if (!b.has(i[0])) return false; |
|
36 for (i of a.entries()) |
|
37 if (!equal(i[1], b.get(i[0]))) return false; |
|
38 return true; |
|
39 } |
|
40 |
|
41 if ((a instanceof Set) && (b instanceof Set)) { |
|
42 if (a.size !== b.size) return false; |
|
43 for (i of a.entries()) |
|
44 if (!b.has(i[0])) return false; |
|
45 return true; |
|
46 } |
|
47 |
|
48 if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { |
|
49 length = a.length; |
|
50 if (length != b.length) return false; |
|
51 for (i = length; i-- !== 0;) |
|
52 if (a[i] !== b[i]) return false; |
|
53 return true; |
|
54 } |
|
55 |
|
56 |
|
57 if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; |
|
58 if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); |
|
59 if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); |
|
60 |
|
61 keys = Object.keys(a); |
|
62 length = keys.length; |
|
63 if (length !== Object.keys(b).length) return false; |
|
64 |
|
65 for (i = length; i-- !== 0;) |
|
66 if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; |
|
67 |
|
68 for (i = length; i-- !== 0;) { |
|
69 var key = keys[i]; |
|
70 |
|
71 if (!equal(a[key], b[key])) return false; |
|
72 } |
|
73 |
|
74 return true; |
|
75 } |
|
76 |
|
77 // true if both NaN, false otherwise |
|
78 return a!==a && b!==b; |
|
79 }; |
|
80 |
|
81 |
|
82 /***/ }), |
|
83 |
|
84 /***/ 5373: |
|
85 /***/ ((__unused_webpack_module, exports) => { |
|
86 |
|
87 "use strict"; |
|
88 var __webpack_unused_export__; |
|
89 /** |
|
90 * @license React |
|
91 * react-is.production.min.js |
|
92 * |
|
93 * Copyright (c) Facebook, Inc. and its affiliates. |
|
94 * |
|
95 * This source code is licensed under the MIT license found in the |
|
96 * LICENSE file in the root directory of this source tree. |
|
97 */ |
|
98 var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference"); |
|
99 function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}__webpack_unused_export__=h;__webpack_unused_export__=g;__webpack_unused_export__=b;__webpack_unused_export__=l;__webpack_unused_export__=d;__webpack_unused_export__=q;__webpack_unused_export__=p;__webpack_unused_export__=c;__webpack_unused_export__=f;__webpack_unused_export__=e;__webpack_unused_export__=m; |
|
100 __webpack_unused_export__=n;__webpack_unused_export__=function(){return!1};__webpack_unused_export__=function(){return!1};__webpack_unused_export__=function(a){return v(a)===h};__webpack_unused_export__=function(a){return v(a)===g};__webpack_unused_export__=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===b};__webpack_unused_export__=function(a){return v(a)===l};__webpack_unused_export__=function(a){return v(a)===d};__webpack_unused_export__=function(a){return v(a)===q};__webpack_unused_export__=function(a){return v(a)===p}; |
|
101 __webpack_unused_export__=function(a){return v(a)===c};__webpack_unused_export__=function(a){return v(a)===f};__webpack_unused_export__=function(a){return v(a)===e};__webpack_unused_export__=function(a){return v(a)===m};__webpack_unused_export__=function(a){return v(a)===n}; |
|
102 exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};__webpack_unused_export__=v; |
|
103 |
|
104 |
|
105 /***/ }), |
|
106 |
|
107 /***/ 8529: |
|
108 /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
|
109 |
|
110 "use strict"; |
|
111 |
|
112 |
|
113 if (true) { |
|
114 module.exports = __webpack_require__(5373); |
|
115 } else {} |
|
116 |
|
117 |
|
118 /***/ }), |
|
119 |
|
120 /***/ 9681: |
|
121 /***/ ((module) => { |
|
122 |
|
123 var characterMap = { |
|
124 "À": "A", |
|
125 "Á": "A", |
|
126 "Â": "A", |
|
127 "Ã": "A", |
|
128 "Ä": "A", |
|
129 "Å": "A", |
|
130 "Ấ": "A", |
|
131 "Ắ": "A", |
|
132 "Ẳ": "A", |
|
133 "Ẵ": "A", |
|
134 "Ặ": "A", |
|
135 "Æ": "AE", |
|
136 "Ầ": "A", |
|
137 "Ằ": "A", |
|
138 "Ȃ": "A", |
|
139 "Ả": "A", |
|
140 "Ạ": "A", |
|
141 "Ẩ": "A", |
|
142 "Ẫ": "A", |
|
143 "Ậ": "A", |
|
144 "Ç": "C", |
|
145 "Ḉ": "C", |
|
146 "È": "E", |
|
147 "É": "E", |
|
148 "Ê": "E", |
|
149 "Ë": "E", |
|
150 "Ế": "E", |
|
151 "Ḗ": "E", |
|
152 "Ề": "E", |
|
153 "Ḕ": "E", |
|
154 "Ḝ": "E", |
|
155 "Ȇ": "E", |
|
156 "Ẻ": "E", |
|
157 "Ẽ": "E", |
|
158 "Ẹ": "E", |
|
159 "Ể": "E", |
|
160 "Ễ": "E", |
|
161 "Ệ": "E", |
|
162 "Ì": "I", |
|
163 "Í": "I", |
|
164 "Î": "I", |
|
165 "Ï": "I", |
|
166 "Ḯ": "I", |
|
167 "Ȋ": "I", |
|
168 "Ỉ": "I", |
|
169 "Ị": "I", |
|
170 "Ð": "D", |
|
171 "Ñ": "N", |
|
172 "Ò": "O", |
|
173 "Ó": "O", |
|
174 "Ô": "O", |
|
175 "Õ": "O", |
|
176 "Ö": "O", |
|
177 "Ø": "O", |
|
178 "Ố": "O", |
|
179 "Ṍ": "O", |
|
180 "Ṓ": "O", |
|
181 "Ȏ": "O", |
|
182 "Ỏ": "O", |
|
183 "Ọ": "O", |
|
184 "Ổ": "O", |
|
185 "Ỗ": "O", |
|
186 "Ộ": "O", |
|
187 "Ờ": "O", |
|
188 "Ở": "O", |
|
189 "Ỡ": "O", |
|
190 "Ớ": "O", |
|
191 "Ợ": "O", |
|
192 "Ù": "U", |
|
193 "Ú": "U", |
|
194 "Û": "U", |
|
195 "Ü": "U", |
|
196 "Ủ": "U", |
|
197 "Ụ": "U", |
|
198 "Ử": "U", |
|
199 "Ữ": "U", |
|
200 "Ự": "U", |
|
201 "Ý": "Y", |
|
202 "à": "a", |
|
203 "á": "a", |
|
204 "â": "a", |
|
205 "ã": "a", |
|
206 "ä": "a", |
|
207 "å": "a", |
|
208 "ấ": "a", |
|
209 "ắ": "a", |
|
210 "ẳ": "a", |
|
211 "ẵ": "a", |
|
212 "ặ": "a", |
|
213 "æ": "ae", |
|
214 "ầ": "a", |
|
215 "ằ": "a", |
|
216 "ȃ": "a", |
|
217 "ả": "a", |
|
218 "ạ": "a", |
|
219 "ẩ": "a", |
|
220 "ẫ": "a", |
|
221 "ậ": "a", |
|
222 "ç": "c", |
|
223 "ḉ": "c", |
|
224 "è": "e", |
|
225 "é": "e", |
|
226 "ê": "e", |
|
227 "ë": "e", |
|
228 "ế": "e", |
|
229 "ḗ": "e", |
|
230 "ề": "e", |
|
231 "ḕ": "e", |
|
232 "ḝ": "e", |
|
233 "ȇ": "e", |
|
234 "ẻ": "e", |
|
235 "ẽ": "e", |
|
236 "ẹ": "e", |
|
237 "ể": "e", |
|
238 "ễ": "e", |
|
239 "ệ": "e", |
|
240 "ì": "i", |
|
241 "í": "i", |
|
242 "î": "i", |
|
243 "ï": "i", |
|
244 "ḯ": "i", |
|
245 "ȋ": "i", |
|
246 "ỉ": "i", |
|
247 "ị": "i", |
|
248 "ð": "d", |
|
249 "ñ": "n", |
|
250 "ò": "o", |
|
251 "ó": "o", |
|
252 "ô": "o", |
|
253 "õ": "o", |
|
254 "ö": "o", |
|
255 "ø": "o", |
|
256 "ố": "o", |
|
257 "ṍ": "o", |
|
258 "ṓ": "o", |
|
259 "ȏ": "o", |
|
260 "ỏ": "o", |
|
261 "ọ": "o", |
|
262 "ổ": "o", |
|
263 "ỗ": "o", |
|
264 "ộ": "o", |
|
265 "ờ": "o", |
|
266 "ở": "o", |
|
267 "ỡ": "o", |
|
268 "ớ": "o", |
|
269 "ợ": "o", |
|
270 "ù": "u", |
|
271 "ú": "u", |
|
272 "û": "u", |
|
273 "ü": "u", |
|
274 "ủ": "u", |
|
275 "ụ": "u", |
|
276 "ử": "u", |
|
277 "ữ": "u", |
|
278 "ự": "u", |
|
279 "ý": "y", |
|
280 "ÿ": "y", |
|
281 "Ā": "A", |
|
282 "ā": "a", |
|
283 "Ă": "A", |
|
284 "ă": "a", |
|
285 "Ą": "A", |
|
286 "ą": "a", |
|
287 "Ć": "C", |
|
288 "ć": "c", |
|
289 "Ĉ": "C", |
|
290 "ĉ": "c", |
|
291 "Ċ": "C", |
|
292 "ċ": "c", |
|
293 "Č": "C", |
|
294 "č": "c", |
|
295 "C̆": "C", |
|
296 "c̆": "c", |
|
297 "Ď": "D", |
|
298 "ď": "d", |
|
299 "Đ": "D", |
|
300 "đ": "d", |
|
301 "Ē": "E", |
|
302 "ē": "e", |
|
303 "Ĕ": "E", |
|
304 "ĕ": "e", |
|
305 "Ė": "E", |
|
306 "ė": "e", |
|
307 "Ę": "E", |
|
308 "ę": "e", |
|
309 "Ě": "E", |
|
310 "ě": "e", |
|
311 "Ĝ": "G", |
|
312 "Ǵ": "G", |
|
313 "ĝ": "g", |
|
314 "ǵ": "g", |
|
315 "Ğ": "G", |
|
316 "ğ": "g", |
|
317 "Ġ": "G", |
|
318 "ġ": "g", |
|
319 "Ģ": "G", |
|
320 "ģ": "g", |
|
321 "Ĥ": "H", |
|
322 "ĥ": "h", |
|
323 "Ħ": "H", |
|
324 "ħ": "h", |
|
325 "Ḫ": "H", |
|
326 "ḫ": "h", |
|
327 "Ĩ": "I", |
|
328 "ĩ": "i", |
|
329 "Ī": "I", |
|
330 "ī": "i", |
|
331 "Ĭ": "I", |
|
332 "ĭ": "i", |
|
333 "Į": "I", |
|
334 "į": "i", |
|
335 "İ": "I", |
|
336 "ı": "i", |
|
337 "IJ": "IJ", |
|
338 "ij": "ij", |
|
339 "Ĵ": "J", |
|
340 "ĵ": "j", |
|
341 "Ķ": "K", |
|
342 "ķ": "k", |
|
343 "Ḱ": "K", |
|
344 "ḱ": "k", |
|
345 "K̆": "K", |
|
346 "k̆": "k", |
|
347 "Ĺ": "L", |
|
348 "ĺ": "l", |
|
349 "Ļ": "L", |
|
350 "ļ": "l", |
|
351 "Ľ": "L", |
|
352 "ľ": "l", |
|
353 "Ŀ": "L", |
|
354 "ŀ": "l", |
|
355 "Ł": "l", |
|
356 "ł": "l", |
|
357 "Ḿ": "M", |
|
358 "ḿ": "m", |
|
359 "M̆": "M", |
|
360 "m̆": "m", |
|
361 "Ń": "N", |
|
362 "ń": "n", |
|
363 "Ņ": "N", |
|
364 "ņ": "n", |
|
365 "Ň": "N", |
|
366 "ň": "n", |
|
367 "ʼn": "n", |
|
368 "N̆": "N", |
|
369 "n̆": "n", |
|
370 "Ō": "O", |
|
371 "ō": "o", |
|
372 "Ŏ": "O", |
|
373 "ŏ": "o", |
|
374 "Ő": "O", |
|
375 "ő": "o", |
|
376 "Œ": "OE", |
|
377 "œ": "oe", |
|
378 "P̆": "P", |
|
379 "p̆": "p", |
|
380 "Ŕ": "R", |
|
381 "ŕ": "r", |
|
382 "Ŗ": "R", |
|
383 "ŗ": "r", |
|
384 "Ř": "R", |
|
385 "ř": "r", |
|
386 "R̆": "R", |
|
387 "r̆": "r", |
|
388 "Ȓ": "R", |
|
389 "ȓ": "r", |
|
390 "Ś": "S", |
|
391 "ś": "s", |
|
392 "Ŝ": "S", |
|
393 "ŝ": "s", |
|
394 "Ş": "S", |
|
395 "Ș": "S", |
|
396 "ș": "s", |
|
397 "ş": "s", |
|
398 "Š": "S", |
|
399 "š": "s", |
|
400 "Ţ": "T", |
|
401 "ţ": "t", |
|
402 "ț": "t", |
|
403 "Ț": "T", |
|
404 "Ť": "T", |
|
405 "ť": "t", |
|
406 "Ŧ": "T", |
|
407 "ŧ": "t", |
|
408 "T̆": "T", |
|
409 "t̆": "t", |
|
410 "Ũ": "U", |
|
411 "ũ": "u", |
|
412 "Ū": "U", |
|
413 "ū": "u", |
|
414 "Ŭ": "U", |
|
415 "ŭ": "u", |
|
416 "Ů": "U", |
|
417 "ů": "u", |
|
418 "Ű": "U", |
|
419 "ű": "u", |
|
420 "Ų": "U", |
|
421 "ų": "u", |
|
422 "Ȗ": "U", |
|
423 "ȗ": "u", |
|
424 "V̆": "V", |
|
425 "v̆": "v", |
|
426 "Ŵ": "W", |
|
427 "ŵ": "w", |
|
428 "Ẃ": "W", |
|
429 "ẃ": "w", |
|
430 "X̆": "X", |
|
431 "x̆": "x", |
|
432 "Ŷ": "Y", |
|
433 "ŷ": "y", |
|
434 "Ÿ": "Y", |
|
435 "Y̆": "Y", |
|
436 "y̆": "y", |
|
437 "Ź": "Z", |
|
438 "ź": "z", |
|
439 "Ż": "Z", |
|
440 "ż": "z", |
|
441 "Ž": "Z", |
|
442 "ž": "z", |
|
443 "ſ": "s", |
|
444 "ƒ": "f", |
|
445 "Ơ": "O", |
|
446 "ơ": "o", |
|
447 "Ư": "U", |
|
448 "ư": "u", |
|
449 "Ǎ": "A", |
|
450 "ǎ": "a", |
|
451 "Ǐ": "I", |
|
452 "ǐ": "i", |
|
453 "Ǒ": "O", |
|
454 "ǒ": "o", |
|
455 "Ǔ": "U", |
|
456 "ǔ": "u", |
|
457 "Ǖ": "U", |
|
458 "ǖ": "u", |
|
459 "Ǘ": "U", |
|
460 "ǘ": "u", |
|
461 "Ǚ": "U", |
|
462 "ǚ": "u", |
|
463 "Ǜ": "U", |
|
464 "ǜ": "u", |
|
465 "Ứ": "U", |
|
466 "ứ": "u", |
|
467 "Ṹ": "U", |
|
468 "ṹ": "u", |
|
469 "Ǻ": "A", |
|
470 "ǻ": "a", |
|
471 "Ǽ": "AE", |
|
472 "ǽ": "ae", |
|
473 "Ǿ": "O", |
|
474 "ǿ": "o", |
|
475 "Þ": "TH", |
|
476 "þ": "th", |
|
477 "Ṕ": "P", |
|
478 "ṕ": "p", |
|
479 "Ṥ": "S", |
|
480 "ṥ": "s", |
|
481 "X́": "X", |
|
482 "x́": "x", |
|
483 "Ѓ": "Г", |
|
484 "ѓ": "г", |
|
485 "Ќ": "К", |
|
486 "ќ": "к", |
|
487 "A̋": "A", |
|
488 "a̋": "a", |
|
489 "E̋": "E", |
|
490 "e̋": "e", |
|
491 "I̋": "I", |
|
492 "i̋": "i", |
|
493 "Ǹ": "N", |
|
494 "ǹ": "n", |
|
495 "Ồ": "O", |
|
496 "ồ": "o", |
|
497 "Ṑ": "O", |
|
498 "ṑ": "o", |
|
499 "Ừ": "U", |
|
500 "ừ": "u", |
|
501 "Ẁ": "W", |
|
502 "ẁ": "w", |
|
503 "Ỳ": "Y", |
|
504 "ỳ": "y", |
|
505 "Ȁ": "A", |
|
506 "ȁ": "a", |
|
507 "Ȅ": "E", |
|
508 "ȅ": "e", |
|
509 "Ȉ": "I", |
|
510 "ȉ": "i", |
|
511 "Ȍ": "O", |
|
512 "ȍ": "o", |
|
513 "Ȑ": "R", |
|
514 "ȑ": "r", |
|
515 "Ȕ": "U", |
|
516 "ȕ": "u", |
|
517 "B̌": "B", |
|
518 "b̌": "b", |
|
519 "Č̣": "C", |
|
520 "č̣": "c", |
|
521 "Ê̌": "E", |
|
522 "ê̌": "e", |
|
523 "F̌": "F", |
|
524 "f̌": "f", |
|
525 "Ǧ": "G", |
|
526 "ǧ": "g", |
|
527 "Ȟ": "H", |
|
528 "ȟ": "h", |
|
529 "J̌": "J", |
|
530 "ǰ": "j", |
|
531 "Ǩ": "K", |
|
532 "ǩ": "k", |
|
533 "M̌": "M", |
|
534 "m̌": "m", |
|
535 "P̌": "P", |
|
536 "p̌": "p", |
|
537 "Q̌": "Q", |
|
538 "q̌": "q", |
|
539 "Ř̩": "R", |
|
540 "ř̩": "r", |
|
541 "Ṧ": "S", |
|
542 "ṧ": "s", |
|
543 "V̌": "V", |
|
544 "v̌": "v", |
|
545 "W̌": "W", |
|
546 "w̌": "w", |
|
547 "X̌": "X", |
|
548 "x̌": "x", |
|
549 "Y̌": "Y", |
|
550 "y̌": "y", |
|
551 "A̧": "A", |
|
552 "a̧": "a", |
|
553 "B̧": "B", |
|
554 "b̧": "b", |
|
555 "Ḑ": "D", |
|
556 "ḑ": "d", |
|
557 "Ȩ": "E", |
|
558 "ȩ": "e", |
|
559 "Ɛ̧": "E", |
|
560 "ɛ̧": "e", |
|
561 "Ḩ": "H", |
|
562 "ḩ": "h", |
|
563 "I̧": "I", |
|
564 "i̧": "i", |
|
565 "Ɨ̧": "I", |
|
566 "ɨ̧": "i", |
|
567 "M̧": "M", |
|
568 "m̧": "m", |
|
569 "O̧": "O", |
|
570 "o̧": "o", |
|
571 "Q̧": "Q", |
|
572 "q̧": "q", |
|
573 "U̧": "U", |
|
574 "u̧": "u", |
|
575 "X̧": "X", |
|
576 "x̧": "x", |
|
577 "Z̧": "Z", |
|
578 "z̧": "z", |
|
579 "й":"и", |
|
580 "Й":"И", |
|
581 "ё":"е", |
|
582 "Ё":"Е", |
|
583 }; |
|
584 |
|
585 var chars = Object.keys(characterMap).join('|'); |
|
586 var allAccents = new RegExp(chars, 'g'); |
|
587 var firstAccent = new RegExp(chars, ''); |
|
588 |
|
589 function matcher(match) { |
|
590 return characterMap[match]; |
|
591 } |
|
592 |
|
593 var removeAccents = function(string) { |
|
594 return string.replace(allAccents, matcher); |
|
595 }; |
|
596 |
|
597 var hasAccents = function(string) { |
|
598 return !!string.match(firstAccent); |
|
599 }; |
|
600 |
|
601 module.exports = removeAccents; |
|
602 module.exports.has = hasAccents; |
|
603 module.exports.remove = removeAccents; |
|
604 |
|
605 |
|
606 /***/ }), |
|
607 |
3 |
608 /***/ 1030: |
4 /***/ 1030: |
609 /***/ (function(module, exports, __webpack_require__) { |
5 /***/ (function(module, exports, __webpack_require__) { |
610 |
6 |
611 var __WEBPACK_AMD_DEFINE_RESULT__;;/*! showdown v 1.9.1 - 02-11-2019 */ |
7 var __WEBPACK_AMD_DEFINE_RESULT__;;/*! showdown v 1.9.1 - 02-11-2019 */ |
5746 }).call(this); |
5142 }).call(this); |
5747 |
5143 |
5748 |
5144 |
5749 |
5145 |
5750 |
5146 |
5147 /***/ }), |
|
5148 |
|
5149 /***/ 5373: |
|
5150 /***/ ((__unused_webpack_module, exports) => { |
|
5151 |
|
5152 "use strict"; |
|
5153 var __webpack_unused_export__; |
|
5154 /** |
|
5155 * @license React |
|
5156 * react-is.production.min.js |
|
5157 * |
|
5158 * Copyright (c) Facebook, Inc. and its affiliates. |
|
5159 * |
|
5160 * This source code is licensed under the MIT license found in the |
|
5161 * LICENSE file in the root directory of this source tree. |
|
5162 */ |
|
5163 var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference"); |
|
5164 function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}__webpack_unused_export__=h;__webpack_unused_export__=g;__webpack_unused_export__=b;__webpack_unused_export__=l;__webpack_unused_export__=d;__webpack_unused_export__=q;__webpack_unused_export__=p;__webpack_unused_export__=c;__webpack_unused_export__=f;__webpack_unused_export__=e;__webpack_unused_export__=m; |
|
5165 __webpack_unused_export__=n;__webpack_unused_export__=function(){return!1};__webpack_unused_export__=function(){return!1};__webpack_unused_export__=function(a){return v(a)===h};__webpack_unused_export__=function(a){return v(a)===g};__webpack_unused_export__=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===b};__webpack_unused_export__=function(a){return v(a)===l};__webpack_unused_export__=function(a){return v(a)===d};__webpack_unused_export__=function(a){return v(a)===q};__webpack_unused_export__=function(a){return v(a)===p}; |
|
5166 __webpack_unused_export__=function(a){return v(a)===c};__webpack_unused_export__=function(a){return v(a)===f};__webpack_unused_export__=function(a){return v(a)===e};__webpack_unused_export__=function(a){return v(a)===m};__webpack_unused_export__=function(a){return v(a)===n}; |
|
5167 exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};__webpack_unused_export__=v; |
|
5168 |
|
5169 |
|
5170 /***/ }), |
|
5171 |
|
5172 /***/ 7734: |
|
5173 /***/ ((module) => { |
|
5174 |
|
5175 "use strict"; |
|
5176 |
|
5177 |
|
5178 // do not edit .js files directly - edit src/index.jst |
|
5179 |
|
5180 |
|
5181 var envHasBigInt64Array = typeof BigInt64Array !== 'undefined'; |
|
5182 |
|
5183 |
|
5184 module.exports = function equal(a, b) { |
|
5185 if (a === b) return true; |
|
5186 |
|
5187 if (a && b && typeof a == 'object' && typeof b == 'object') { |
|
5188 if (a.constructor !== b.constructor) return false; |
|
5189 |
|
5190 var length, i, keys; |
|
5191 if (Array.isArray(a)) { |
|
5192 length = a.length; |
|
5193 if (length != b.length) return false; |
|
5194 for (i = length; i-- !== 0;) |
|
5195 if (!equal(a[i], b[i])) return false; |
|
5196 return true; |
|
5197 } |
|
5198 |
|
5199 |
|
5200 if ((a instanceof Map) && (b instanceof Map)) { |
|
5201 if (a.size !== b.size) return false; |
|
5202 for (i of a.entries()) |
|
5203 if (!b.has(i[0])) return false; |
|
5204 for (i of a.entries()) |
|
5205 if (!equal(i[1], b.get(i[0]))) return false; |
|
5206 return true; |
|
5207 } |
|
5208 |
|
5209 if ((a instanceof Set) && (b instanceof Set)) { |
|
5210 if (a.size !== b.size) return false; |
|
5211 for (i of a.entries()) |
|
5212 if (!b.has(i[0])) return false; |
|
5213 return true; |
|
5214 } |
|
5215 |
|
5216 if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { |
|
5217 length = a.length; |
|
5218 if (length != b.length) return false; |
|
5219 for (i = length; i-- !== 0;) |
|
5220 if (a[i] !== b[i]) return false; |
|
5221 return true; |
|
5222 } |
|
5223 |
|
5224 |
|
5225 if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; |
|
5226 if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); |
|
5227 if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); |
|
5228 |
|
5229 keys = Object.keys(a); |
|
5230 length = keys.length; |
|
5231 if (length !== Object.keys(b).length) return false; |
|
5232 |
|
5233 for (i = length; i-- !== 0;) |
|
5234 if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; |
|
5235 |
|
5236 for (i = length; i-- !== 0;) { |
|
5237 var key = keys[i]; |
|
5238 |
|
5239 if (!equal(a[key], b[key])) return false; |
|
5240 } |
|
5241 |
|
5242 return true; |
|
5243 } |
|
5244 |
|
5245 // true if both NaN, false otherwise |
|
5246 return a!==a && b!==b; |
|
5247 }; |
|
5248 |
|
5249 |
|
5250 /***/ }), |
|
5251 |
|
5252 /***/ 8529: |
|
5253 /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
|
5254 |
|
5255 "use strict"; |
|
5256 |
|
5257 |
|
5258 if (true) { |
|
5259 module.exports = __webpack_require__(5373); |
|
5260 } else {} |
|
5261 |
|
5262 |
|
5263 /***/ }), |
|
5264 |
|
5265 /***/ 9681: |
|
5266 /***/ ((module) => { |
|
5267 |
|
5268 var characterMap = { |
|
5269 "À": "A", |
|
5270 "Á": "A", |
|
5271 "Â": "A", |
|
5272 "Ã": "A", |
|
5273 "Ä": "A", |
|
5274 "Å": "A", |
|
5275 "Ấ": "A", |
|
5276 "Ắ": "A", |
|
5277 "Ẳ": "A", |
|
5278 "Ẵ": "A", |
|
5279 "Ặ": "A", |
|
5280 "Æ": "AE", |
|
5281 "Ầ": "A", |
|
5282 "Ằ": "A", |
|
5283 "Ȃ": "A", |
|
5284 "Ả": "A", |
|
5285 "Ạ": "A", |
|
5286 "Ẩ": "A", |
|
5287 "Ẫ": "A", |
|
5288 "Ậ": "A", |
|
5289 "Ç": "C", |
|
5290 "Ḉ": "C", |
|
5291 "È": "E", |
|
5292 "É": "E", |
|
5293 "Ê": "E", |
|
5294 "Ë": "E", |
|
5295 "Ế": "E", |
|
5296 "Ḗ": "E", |
|
5297 "Ề": "E", |
|
5298 "Ḕ": "E", |
|
5299 "Ḝ": "E", |
|
5300 "Ȇ": "E", |
|
5301 "Ẻ": "E", |
|
5302 "Ẽ": "E", |
|
5303 "Ẹ": "E", |
|
5304 "Ể": "E", |
|
5305 "Ễ": "E", |
|
5306 "Ệ": "E", |
|
5307 "Ì": "I", |
|
5308 "Í": "I", |
|
5309 "Î": "I", |
|
5310 "Ï": "I", |
|
5311 "Ḯ": "I", |
|
5312 "Ȋ": "I", |
|
5313 "Ỉ": "I", |
|
5314 "Ị": "I", |
|
5315 "Ð": "D", |
|
5316 "Ñ": "N", |
|
5317 "Ò": "O", |
|
5318 "Ó": "O", |
|
5319 "Ô": "O", |
|
5320 "Õ": "O", |
|
5321 "Ö": "O", |
|
5322 "Ø": "O", |
|
5323 "Ố": "O", |
|
5324 "Ṍ": "O", |
|
5325 "Ṓ": "O", |
|
5326 "Ȏ": "O", |
|
5327 "Ỏ": "O", |
|
5328 "Ọ": "O", |
|
5329 "Ổ": "O", |
|
5330 "Ỗ": "O", |
|
5331 "Ộ": "O", |
|
5332 "Ờ": "O", |
|
5333 "Ở": "O", |
|
5334 "Ỡ": "O", |
|
5335 "Ớ": "O", |
|
5336 "Ợ": "O", |
|
5337 "Ù": "U", |
|
5338 "Ú": "U", |
|
5339 "Û": "U", |
|
5340 "Ü": "U", |
|
5341 "Ủ": "U", |
|
5342 "Ụ": "U", |
|
5343 "Ử": "U", |
|
5344 "Ữ": "U", |
|
5345 "Ự": "U", |
|
5346 "Ý": "Y", |
|
5347 "à": "a", |
|
5348 "á": "a", |
|
5349 "â": "a", |
|
5350 "ã": "a", |
|
5351 "ä": "a", |
|
5352 "å": "a", |
|
5353 "ấ": "a", |
|
5354 "ắ": "a", |
|
5355 "ẳ": "a", |
|
5356 "ẵ": "a", |
|
5357 "ặ": "a", |
|
5358 "æ": "ae", |
|
5359 "ầ": "a", |
|
5360 "ằ": "a", |
|
5361 "ȃ": "a", |
|
5362 "ả": "a", |
|
5363 "ạ": "a", |
|
5364 "ẩ": "a", |
|
5365 "ẫ": "a", |
|
5366 "ậ": "a", |
|
5367 "ç": "c", |
|
5368 "ḉ": "c", |
|
5369 "è": "e", |
|
5370 "é": "e", |
|
5371 "ê": "e", |
|
5372 "ë": "e", |
|
5373 "ế": "e", |
|
5374 "ḗ": "e", |
|
5375 "ề": "e", |
|
5376 "ḕ": "e", |
|
5377 "ḝ": "e", |
|
5378 "ȇ": "e", |
|
5379 "ẻ": "e", |
|
5380 "ẽ": "e", |
|
5381 "ẹ": "e", |
|
5382 "ể": "e", |
|
5383 "ễ": "e", |
|
5384 "ệ": "e", |
|
5385 "ì": "i", |
|
5386 "í": "i", |
|
5387 "î": "i", |
|
5388 "ï": "i", |
|
5389 "ḯ": "i", |
|
5390 "ȋ": "i", |
|
5391 "ỉ": "i", |
|
5392 "ị": "i", |
|
5393 "ð": "d", |
|
5394 "ñ": "n", |
|
5395 "ò": "o", |
|
5396 "ó": "o", |
|
5397 "ô": "o", |
|
5398 "õ": "o", |
|
5399 "ö": "o", |
|
5400 "ø": "o", |
|
5401 "ố": "o", |
|
5402 "ṍ": "o", |
|
5403 "ṓ": "o", |
|
5404 "ȏ": "o", |
|
5405 "ỏ": "o", |
|
5406 "ọ": "o", |
|
5407 "ổ": "o", |
|
5408 "ỗ": "o", |
|
5409 "ộ": "o", |
|
5410 "ờ": "o", |
|
5411 "ở": "o", |
|
5412 "ỡ": "o", |
|
5413 "ớ": "o", |
|
5414 "ợ": "o", |
|
5415 "ù": "u", |
|
5416 "ú": "u", |
|
5417 "û": "u", |
|
5418 "ü": "u", |
|
5419 "ủ": "u", |
|
5420 "ụ": "u", |
|
5421 "ử": "u", |
|
5422 "ữ": "u", |
|
5423 "ự": "u", |
|
5424 "ý": "y", |
|
5425 "ÿ": "y", |
|
5426 "Ā": "A", |
|
5427 "ā": "a", |
|
5428 "Ă": "A", |
|
5429 "ă": "a", |
|
5430 "Ą": "A", |
|
5431 "ą": "a", |
|
5432 "Ć": "C", |
|
5433 "ć": "c", |
|
5434 "Ĉ": "C", |
|
5435 "ĉ": "c", |
|
5436 "Ċ": "C", |
|
5437 "ċ": "c", |
|
5438 "Č": "C", |
|
5439 "č": "c", |
|
5440 "C̆": "C", |
|
5441 "c̆": "c", |
|
5442 "Ď": "D", |
|
5443 "ď": "d", |
|
5444 "Đ": "D", |
|
5445 "đ": "d", |
|
5446 "Ē": "E", |
|
5447 "ē": "e", |
|
5448 "Ĕ": "E", |
|
5449 "ĕ": "e", |
|
5450 "Ė": "E", |
|
5451 "ė": "e", |
|
5452 "Ę": "E", |
|
5453 "ę": "e", |
|
5454 "Ě": "E", |
|
5455 "ě": "e", |
|
5456 "Ĝ": "G", |
|
5457 "Ǵ": "G", |
|
5458 "ĝ": "g", |
|
5459 "ǵ": "g", |
|
5460 "Ğ": "G", |
|
5461 "ğ": "g", |
|
5462 "Ġ": "G", |
|
5463 "ġ": "g", |
|
5464 "Ģ": "G", |
|
5465 "ģ": "g", |
|
5466 "Ĥ": "H", |
|
5467 "ĥ": "h", |
|
5468 "Ħ": "H", |
|
5469 "ħ": "h", |
|
5470 "Ḫ": "H", |
|
5471 "ḫ": "h", |
|
5472 "Ĩ": "I", |
|
5473 "ĩ": "i", |
|
5474 "Ī": "I", |
|
5475 "ī": "i", |
|
5476 "Ĭ": "I", |
|
5477 "ĭ": "i", |
|
5478 "Į": "I", |
|
5479 "į": "i", |
|
5480 "İ": "I", |
|
5481 "ı": "i", |
|
5482 "IJ": "IJ", |
|
5483 "ij": "ij", |
|
5484 "Ĵ": "J", |
|
5485 "ĵ": "j", |
|
5486 "Ķ": "K", |
|
5487 "ķ": "k", |
|
5488 "Ḱ": "K", |
|
5489 "ḱ": "k", |
|
5490 "K̆": "K", |
|
5491 "k̆": "k", |
|
5492 "Ĺ": "L", |
|
5493 "ĺ": "l", |
|
5494 "Ļ": "L", |
|
5495 "ļ": "l", |
|
5496 "Ľ": "L", |
|
5497 "ľ": "l", |
|
5498 "Ŀ": "L", |
|
5499 "ŀ": "l", |
|
5500 "Ł": "l", |
|
5501 "ł": "l", |
|
5502 "Ḿ": "M", |
|
5503 "ḿ": "m", |
|
5504 "M̆": "M", |
|
5505 "m̆": "m", |
|
5506 "Ń": "N", |
|
5507 "ń": "n", |
|
5508 "Ņ": "N", |
|
5509 "ņ": "n", |
|
5510 "Ň": "N", |
|
5511 "ň": "n", |
|
5512 "ʼn": "n", |
|
5513 "N̆": "N", |
|
5514 "n̆": "n", |
|
5515 "Ō": "O", |
|
5516 "ō": "o", |
|
5517 "Ŏ": "O", |
|
5518 "ŏ": "o", |
|
5519 "Ő": "O", |
|
5520 "ő": "o", |
|
5521 "Œ": "OE", |
|
5522 "œ": "oe", |
|
5523 "P̆": "P", |
|
5524 "p̆": "p", |
|
5525 "Ŕ": "R", |
|
5526 "ŕ": "r", |
|
5527 "Ŗ": "R", |
|
5528 "ŗ": "r", |
|
5529 "Ř": "R", |
|
5530 "ř": "r", |
|
5531 "R̆": "R", |
|
5532 "r̆": "r", |
|
5533 "Ȓ": "R", |
|
5534 "ȓ": "r", |
|
5535 "Ś": "S", |
|
5536 "ś": "s", |
|
5537 "Ŝ": "S", |
|
5538 "ŝ": "s", |
|
5539 "Ş": "S", |
|
5540 "Ș": "S", |
|
5541 "ș": "s", |
|
5542 "ş": "s", |
|
5543 "Š": "S", |
|
5544 "š": "s", |
|
5545 "Ţ": "T", |
|
5546 "ţ": "t", |
|
5547 "ț": "t", |
|
5548 "Ț": "T", |
|
5549 "Ť": "T", |
|
5550 "ť": "t", |
|
5551 "Ŧ": "T", |
|
5552 "ŧ": "t", |
|
5553 "T̆": "T", |
|
5554 "t̆": "t", |
|
5555 "Ũ": "U", |
|
5556 "ũ": "u", |
|
5557 "Ū": "U", |
|
5558 "ū": "u", |
|
5559 "Ŭ": "U", |
|
5560 "ŭ": "u", |
|
5561 "Ů": "U", |
|
5562 "ů": "u", |
|
5563 "Ű": "U", |
|
5564 "ű": "u", |
|
5565 "Ų": "U", |
|
5566 "ų": "u", |
|
5567 "Ȗ": "U", |
|
5568 "ȗ": "u", |
|
5569 "V̆": "V", |
|
5570 "v̆": "v", |
|
5571 "Ŵ": "W", |
|
5572 "ŵ": "w", |
|
5573 "Ẃ": "W", |
|
5574 "ẃ": "w", |
|
5575 "X̆": "X", |
|
5576 "x̆": "x", |
|
5577 "Ŷ": "Y", |
|
5578 "ŷ": "y", |
|
5579 "Ÿ": "Y", |
|
5580 "Y̆": "Y", |
|
5581 "y̆": "y", |
|
5582 "Ź": "Z", |
|
5583 "ź": "z", |
|
5584 "Ż": "Z", |
|
5585 "ż": "z", |
|
5586 "Ž": "Z", |
|
5587 "ž": "z", |
|
5588 "ſ": "s", |
|
5589 "ƒ": "f", |
|
5590 "Ơ": "O", |
|
5591 "ơ": "o", |
|
5592 "Ư": "U", |
|
5593 "ư": "u", |
|
5594 "Ǎ": "A", |
|
5595 "ǎ": "a", |
|
5596 "Ǐ": "I", |
|
5597 "ǐ": "i", |
|
5598 "Ǒ": "O", |
|
5599 "ǒ": "o", |
|
5600 "Ǔ": "U", |
|
5601 "ǔ": "u", |
|
5602 "Ǖ": "U", |
|
5603 "ǖ": "u", |
|
5604 "Ǘ": "U", |
|
5605 "ǘ": "u", |
|
5606 "Ǚ": "U", |
|
5607 "ǚ": "u", |
|
5608 "Ǜ": "U", |
|
5609 "ǜ": "u", |
|
5610 "Ứ": "U", |
|
5611 "ứ": "u", |
|
5612 "Ṹ": "U", |
|
5613 "ṹ": "u", |
|
5614 "Ǻ": "A", |
|
5615 "ǻ": "a", |
|
5616 "Ǽ": "AE", |
|
5617 "ǽ": "ae", |
|
5618 "Ǿ": "O", |
|
5619 "ǿ": "o", |
|
5620 "Þ": "TH", |
|
5621 "þ": "th", |
|
5622 "Ṕ": "P", |
|
5623 "ṕ": "p", |
|
5624 "Ṥ": "S", |
|
5625 "ṥ": "s", |
|
5626 "X́": "X", |
|
5627 "x́": "x", |
|
5628 "Ѓ": "Г", |
|
5629 "ѓ": "г", |
|
5630 "Ќ": "К", |
|
5631 "ќ": "к", |
|
5632 "A̋": "A", |
|
5633 "a̋": "a", |
|
5634 "E̋": "E", |
|
5635 "e̋": "e", |
|
5636 "I̋": "I", |
|
5637 "i̋": "i", |
|
5638 "Ǹ": "N", |
|
5639 "ǹ": "n", |
|
5640 "Ồ": "O", |
|
5641 "ồ": "o", |
|
5642 "Ṑ": "O", |
|
5643 "ṑ": "o", |
|
5644 "Ừ": "U", |
|
5645 "ừ": "u", |
|
5646 "Ẁ": "W", |
|
5647 "ẁ": "w", |
|
5648 "Ỳ": "Y", |
|
5649 "ỳ": "y", |
|
5650 "Ȁ": "A", |
|
5651 "ȁ": "a", |
|
5652 "Ȅ": "E", |
|
5653 "ȅ": "e", |
|
5654 "Ȉ": "I", |
|
5655 "ȉ": "i", |
|
5656 "Ȍ": "O", |
|
5657 "ȍ": "o", |
|
5658 "Ȑ": "R", |
|
5659 "ȑ": "r", |
|
5660 "Ȕ": "U", |
|
5661 "ȕ": "u", |
|
5662 "B̌": "B", |
|
5663 "b̌": "b", |
|
5664 "Č̣": "C", |
|
5665 "č̣": "c", |
|
5666 "Ê̌": "E", |
|
5667 "ê̌": "e", |
|
5668 "F̌": "F", |
|
5669 "f̌": "f", |
|
5670 "Ǧ": "G", |
|
5671 "ǧ": "g", |
|
5672 "Ȟ": "H", |
|
5673 "ȟ": "h", |
|
5674 "J̌": "J", |
|
5675 "ǰ": "j", |
|
5676 "Ǩ": "K", |
|
5677 "ǩ": "k", |
|
5678 "M̌": "M", |
|
5679 "m̌": "m", |
|
5680 "P̌": "P", |
|
5681 "p̌": "p", |
|
5682 "Q̌": "Q", |
|
5683 "q̌": "q", |
|
5684 "Ř̩": "R", |
|
5685 "ř̩": "r", |
|
5686 "Ṧ": "S", |
|
5687 "ṧ": "s", |
|
5688 "V̌": "V", |
|
5689 "v̌": "v", |
|
5690 "W̌": "W", |
|
5691 "w̌": "w", |
|
5692 "X̌": "X", |
|
5693 "x̌": "x", |
|
5694 "Y̌": "Y", |
|
5695 "y̌": "y", |
|
5696 "A̧": "A", |
|
5697 "a̧": "a", |
|
5698 "B̧": "B", |
|
5699 "b̧": "b", |
|
5700 "Ḑ": "D", |
|
5701 "ḑ": "d", |
|
5702 "Ȩ": "E", |
|
5703 "ȩ": "e", |
|
5704 "Ɛ̧": "E", |
|
5705 "ɛ̧": "e", |
|
5706 "Ḩ": "H", |
|
5707 "ḩ": "h", |
|
5708 "I̧": "I", |
|
5709 "i̧": "i", |
|
5710 "Ɨ̧": "I", |
|
5711 "ɨ̧": "i", |
|
5712 "M̧": "M", |
|
5713 "m̧": "m", |
|
5714 "O̧": "O", |
|
5715 "o̧": "o", |
|
5716 "Q̧": "Q", |
|
5717 "q̧": "q", |
|
5718 "U̧": "U", |
|
5719 "u̧": "u", |
|
5720 "X̧": "X", |
|
5721 "x̧": "x", |
|
5722 "Z̧": "Z", |
|
5723 "z̧": "z", |
|
5724 "й":"и", |
|
5725 "Й":"И", |
|
5726 "ё":"е", |
|
5727 "Ё":"Е", |
|
5728 }; |
|
5729 |
|
5730 var chars = Object.keys(characterMap).join('|'); |
|
5731 var allAccents = new RegExp(chars, 'g'); |
|
5732 var firstAccent = new RegExp(chars, ''); |
|
5733 |
|
5734 function matcher(match) { |
|
5735 return characterMap[match]; |
|
5736 } |
|
5737 |
|
5738 var removeAccents = function(string) { |
|
5739 return string.replace(allAccents, matcher); |
|
5740 }; |
|
5741 |
|
5742 var hasAccents = function(string) { |
|
5743 return !!string.match(firstAccent); |
|
5744 }; |
|
5745 |
|
5746 module.exports = removeAccents; |
|
5747 module.exports.has = hasAccents; |
|
5748 module.exports.remove = removeAccents; |
|
5749 |
|
5750 |
|
5751 /***/ }) |
5751 /***/ }) |
5752 |
5752 |
5753 /******/ }); |
5753 /******/ }); |
5754 /************************************************************************/ |
5754 /************************************************************************/ |
5755 /******/ // The module cache |
5755 /******/ // The module cache |
5817 /******/ }; |
5817 /******/ }; |
5818 /******/ })(); |
5818 /******/ })(); |
5819 /******/ |
5819 /******/ |
5820 /************************************************************************/ |
5820 /************************************************************************/ |
5821 var __webpack_exports__ = {}; |
5821 var __webpack_exports__ = {}; |
5822 // This entry need to be wrapped in an IIFE because it need to be in strict mode. |
5822 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode. |
5823 (() => { |
5823 (() => { |
5824 "use strict"; |
5824 "use strict"; |
5825 // ESM COMPAT FLAG |
5825 // ESM COMPAT FLAG |
5826 __webpack_require__.r(__webpack_exports__); |
5826 __webpack_require__.r(__webpack_exports__); |
5827 |
5827 |
5843 createBlock: () => (/* reexport */ createBlock), |
5843 createBlock: () => (/* reexport */ createBlock), |
5844 createBlocksFromInnerBlocksTemplate: () => (/* reexport */ createBlocksFromInnerBlocksTemplate), |
5844 createBlocksFromInnerBlocksTemplate: () => (/* reexport */ createBlocksFromInnerBlocksTemplate), |
5845 doBlocksMatchTemplate: () => (/* reexport */ doBlocksMatchTemplate), |
5845 doBlocksMatchTemplate: () => (/* reexport */ doBlocksMatchTemplate), |
5846 findTransform: () => (/* reexport */ findTransform), |
5846 findTransform: () => (/* reexport */ findTransform), |
5847 getBlockAttributes: () => (/* reexport */ getBlockAttributes), |
5847 getBlockAttributes: () => (/* reexport */ getBlockAttributes), |
5848 getBlockAttributesNamesByRole: () => (/* reexport */ getBlockAttributesNamesByRole), |
|
5849 getBlockBindingsSource: () => (/* reexport */ getBlockBindingsSource), |
|
5850 getBlockBindingsSources: () => (/* reexport */ getBlockBindingsSources), |
|
5848 getBlockContent: () => (/* reexport */ getBlockInnerHTML), |
5851 getBlockContent: () => (/* reexport */ getBlockInnerHTML), |
5849 getBlockDefaultClassName: () => (/* reexport */ getBlockDefaultClassName), |
5852 getBlockDefaultClassName: () => (/* reexport */ getBlockDefaultClassName), |
5850 getBlockFromExample: () => (/* reexport */ getBlockFromExample), |
5853 getBlockFromExample: () => (/* reexport */ getBlockFromExample), |
5851 getBlockMenuDefaultClassName: () => (/* reexport */ getBlockMenuDefaultClassName), |
5854 getBlockMenuDefaultClassName: () => (/* reexport */ getBlockMenuDefaultClassName), |
5852 getBlockSupport: () => (/* reexport */ getBlockSupport), |
5855 getBlockSupport: () => (/* reexport */ getBlockSupport), |
5876 node: () => (/* reexport */ node), |
5879 node: () => (/* reexport */ node), |
5877 normalizeIconObject: () => (/* reexport */ normalizeIconObject), |
5880 normalizeIconObject: () => (/* reexport */ normalizeIconObject), |
5878 parse: () => (/* reexport */ parser_parse), |
5881 parse: () => (/* reexport */ parser_parse), |
5879 parseWithAttributeSchema: () => (/* reexport */ parseWithAttributeSchema), |
5882 parseWithAttributeSchema: () => (/* reexport */ parseWithAttributeSchema), |
5880 pasteHandler: () => (/* reexport */ pasteHandler), |
5883 pasteHandler: () => (/* reexport */ pasteHandler), |
5884 privateApis: () => (/* reexport */ privateApis), |
|
5881 rawHandler: () => (/* reexport */ rawHandler), |
5885 rawHandler: () => (/* reexport */ rawHandler), |
5886 registerBlockBindingsSource: () => (/* reexport */ registerBlockBindingsSource), |
|
5882 registerBlockCollection: () => (/* reexport */ registerBlockCollection), |
5887 registerBlockCollection: () => (/* reexport */ registerBlockCollection), |
5883 registerBlockStyle: () => (/* reexport */ registerBlockStyle), |
5888 registerBlockStyle: () => (/* reexport */ registerBlockStyle), |
5884 registerBlockType: () => (/* reexport */ registerBlockType), |
5889 registerBlockType: () => (/* reexport */ registerBlockType), |
5885 registerBlockVariation: () => (/* reexport */ registerBlockVariation), |
5890 registerBlockVariation: () => (/* reexport */ registerBlockVariation), |
5886 serialize: () => (/* reexport */ serialize), |
5891 serialize: () => (/* reexport */ serialize), |
5891 setGroupingBlockName: () => (/* reexport */ setGroupingBlockName), |
5896 setGroupingBlockName: () => (/* reexport */ setGroupingBlockName), |
5892 setUnregisteredTypeHandlerName: () => (/* reexport */ setUnregisteredTypeHandlerName), |
5897 setUnregisteredTypeHandlerName: () => (/* reexport */ setUnregisteredTypeHandlerName), |
5893 store: () => (/* reexport */ store), |
5898 store: () => (/* reexport */ store), |
5894 switchToBlockType: () => (/* reexport */ switchToBlockType), |
5899 switchToBlockType: () => (/* reexport */ switchToBlockType), |
5895 synchronizeBlocksWithTemplate: () => (/* reexport */ synchronizeBlocksWithTemplate), |
5900 synchronizeBlocksWithTemplate: () => (/* reexport */ synchronizeBlocksWithTemplate), |
5901 unregisterBlockBindingsSource: () => (/* reexport */ unregisterBlockBindingsSource), |
|
5896 unregisterBlockStyle: () => (/* reexport */ unregisterBlockStyle), |
5902 unregisterBlockStyle: () => (/* reexport */ unregisterBlockStyle), |
5897 unregisterBlockType: () => (/* reexport */ unregisterBlockType), |
5903 unregisterBlockType: () => (/* reexport */ unregisterBlockType), |
5898 unregisterBlockVariation: () => (/* reexport */ unregisterBlockVariation), |
5904 unregisterBlockVariation: () => (/* reexport */ unregisterBlockVariation), |
5899 unstable__bootstrapServerSideBlockDefinitions: () => (/* reexport */ unstable__bootstrapServerSideBlockDefinitions), |
5905 unstable__bootstrapServerSideBlockDefinitions: () => (/* reexport */ unstable__bootstrapServerSideBlockDefinitions), |
5900 updateCategory: () => (/* reexport */ categories_updateCategory), |
5906 updateCategory: () => (/* reexport */ categories_updateCategory), |
5901 validateBlock: () => (/* reexport */ validateBlock), |
5907 validateBlock: () => (/* reexport */ validateBlock), |
5902 withBlockContentContext: () => (/* reexport */ withBlockContentContext) |
5908 withBlockContentContext: () => (/* reexport */ withBlockContentContext) |
5909 }); |
|
5910 |
|
5911 // NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/private-selectors.js |
|
5912 var private_selectors_namespaceObject = {}; |
|
5913 __webpack_require__.r(private_selectors_namespaceObject); |
|
5914 __webpack_require__.d(private_selectors_namespaceObject, { |
|
5915 getAllBlockBindingsSources: () => (getAllBlockBindingsSources), |
|
5916 getBlockBindingsSource: () => (private_selectors_getBlockBindingsSource), |
|
5917 getBootstrappedBlockType: () => (getBootstrappedBlockType), |
|
5918 getSupportedStyles: () => (getSupportedStyles), |
|
5919 getUnprocessedBlockTypes: () => (getUnprocessedBlockTypes), |
|
5920 hasContentRoleAttribute: () => (hasContentRoleAttribute) |
|
5903 }); |
5921 }); |
5904 |
5922 |
5905 // NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/selectors.js |
5923 // NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/selectors.js |
5906 var selectors_namespaceObject = {}; |
5924 var selectors_namespaceObject = {}; |
5907 __webpack_require__.r(selectors_namespaceObject); |
5925 __webpack_require__.r(selectors_namespaceObject); |
5925 hasChildBlocks: () => (selectors_hasChildBlocks), |
5943 hasChildBlocks: () => (selectors_hasChildBlocks), |
5926 hasChildBlocksWithInserterSupport: () => (selectors_hasChildBlocksWithInserterSupport), |
5944 hasChildBlocksWithInserterSupport: () => (selectors_hasChildBlocksWithInserterSupport), |
5927 isMatchingSearchTerm: () => (isMatchingSearchTerm) |
5945 isMatchingSearchTerm: () => (isMatchingSearchTerm) |
5928 }); |
5946 }); |
5929 |
5947 |
5930 // NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/private-selectors.js |
|
5931 var private_selectors_namespaceObject = {}; |
|
5932 __webpack_require__.r(private_selectors_namespaceObject); |
|
5933 __webpack_require__.d(private_selectors_namespaceObject, { |
|
5934 getAllBlockBindingsSources: () => (getAllBlockBindingsSources), |
|
5935 getBlockBindingsSource: () => (getBlockBindingsSource), |
|
5936 getBootstrappedBlockType: () => (getBootstrappedBlockType), |
|
5937 getSupportedStyles: () => (getSupportedStyles), |
|
5938 getUnprocessedBlockTypes: () => (getUnprocessedBlockTypes) |
|
5939 }); |
|
5940 |
|
5941 // NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/actions.js |
5948 // NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/actions.js |
5942 var actions_namespaceObject = {}; |
5949 var actions_namespaceObject = {}; |
5943 __webpack_require__.r(actions_namespaceObject); |
5950 __webpack_require__.r(actions_namespaceObject); |
5944 __webpack_require__.d(actions_namespaceObject, { |
5951 __webpack_require__.d(actions_namespaceObject, { |
5945 __experimentalReapplyBlockFilters: () => (__experimentalReapplyBlockFilters), |
5952 __experimentalReapplyBlockFilters: () => (__experimentalReapplyBlockFilters), |
5962 |
5969 |
5963 // NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/private-actions.js |
5970 // NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/private-actions.js |
5964 var private_actions_namespaceObject = {}; |
5971 var private_actions_namespaceObject = {}; |
5965 __webpack_require__.r(private_actions_namespaceObject); |
5972 __webpack_require__.r(private_actions_namespaceObject); |
5966 __webpack_require__.d(private_actions_namespaceObject, { |
5973 __webpack_require__.d(private_actions_namespaceObject, { |
5974 addBlockBindingsSource: () => (addBlockBindingsSource), |
|
5967 addBootstrappedBlockType: () => (addBootstrappedBlockType), |
5975 addBootstrappedBlockType: () => (addBootstrappedBlockType), |
5968 addUnprocessedBlockType: () => (addUnprocessedBlockType), |
5976 addUnprocessedBlockType: () => (addUnprocessedBlockType), |
5969 registerBlockBindingsSource: () => (registerBlockBindingsSource) |
5977 removeBlockBindingsSource: () => (removeBlockBindingsSource) |
5970 }); |
5978 }); |
5971 |
5979 |
5972 ;// CONCATENATED MODULE: external ["wp","data"] |
5980 ;// external ["wp","data"] |
5973 const external_wp_data_namespaceObject = window["wp"]["data"]; |
5981 const external_wp_data_namespaceObject = window["wp"]["data"]; |
5974 ;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs |
5982 ;// ./node_modules/tslib/tslib.es6.mjs |
5975 /****************************************************************************** |
5983 /****************************************************************************** |
5976 Copyright (c) Microsoft Corporation. |
5984 Copyright (c) Microsoft Corporation. |
5977 |
5985 |
5978 Permission to use, copy, modify, and/or distribute this software for any |
5986 Permission to use, copy, modify, and/or distribute this software for any |
5979 purpose with or without fee is hereby granted. |
5987 purpose with or without fee is hereby granted. |
5984 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
5992 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
5985 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
5993 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
5986 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
5994 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
5987 PERFORMANCE OF THIS SOFTWARE. |
5995 PERFORMANCE OF THIS SOFTWARE. |
5988 ***************************************************************************** */ |
5996 ***************************************************************************** */ |
5989 /* global Reflect, Promise, SuppressedError, Symbol */ |
5997 /* global Reflect, Promise, SuppressedError, Symbol, Iterator */ |
5990 |
5998 |
5991 var extendStatics = function(d, b) { |
5999 var extendStatics = function(d, b) { |
5992 extendStatics = Object.setPrototypeOf || |
6000 extendStatics = Object.setPrototypeOf || |
5993 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || |
6001 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || |
5994 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; |
6002 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; |
6095 step((generator = generator.apply(thisArg, _arguments || [])).next()); |
6103 step((generator = generator.apply(thisArg, _arguments || [])).next()); |
6096 }); |
6104 }); |
6097 } |
6105 } |
6098 |
6106 |
6099 function __generator(thisArg, body) { |
6107 function __generator(thisArg, body) { |
6100 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; |
6108 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); |
6101 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; |
6109 return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; |
6102 function verb(n) { return function (v) { return step([n, v]); }; } |
6110 function verb(n) { return function (v) { return step([n, v]); }; } |
6103 function step(op) { |
6111 function step(op) { |
6104 if (f) throw new TypeError("Generator is already executing."); |
6112 if (f) throw new TypeError("Generator is already executing."); |
6105 while (g && (g = 0, op[0] && (_ = 0)), _) try { |
6113 while (g && (g = 0, op[0] && (_ = 0)), _) try { |
6106 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; |
6114 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; |
6200 } |
6208 } |
6201 |
6209 |
6202 function __asyncGenerator(thisArg, _arguments, generator) { |
6210 function __asyncGenerator(thisArg, _arguments, generator) { |
6203 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); |
6211 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); |
6204 var g = generator.apply(thisArg, _arguments || []), i, q = []; |
6212 var g = generator.apply(thisArg, _arguments || []), i, q = []; |
6205 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; |
6213 return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; |
6206 function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } |
6214 function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } |
6215 function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } |
|
6207 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } |
6216 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } |
6208 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } |
6217 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } |
6209 function fulfill(value) { resume("next", value); } |
6218 function fulfill(value) { resume("next", value); } |
6210 function reject(value) { resume("throw", value); } |
6219 function reject(value) { resume("throw", value); } |
6211 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } |
6220 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } |
6234 Object.defineProperty(o, "default", { enumerable: true, value: v }); |
6243 Object.defineProperty(o, "default", { enumerable: true, value: v }); |
6235 }) : function(o, v) { |
6244 }) : function(o, v) { |
6236 o["default"] = v; |
6245 o["default"] = v; |
6237 }; |
6246 }; |
6238 |
6247 |
6248 var ownKeys = function(o) { |
|
6249 ownKeys = Object.getOwnPropertyNames || function (o) { |
|
6250 var ar = []; |
|
6251 for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; |
|
6252 return ar; |
|
6253 }; |
|
6254 return ownKeys(o); |
|
6255 }; |
|
6256 |
|
6239 function __importStar(mod) { |
6257 function __importStar(mod) { |
6240 if (mod && mod.__esModule) return mod; |
6258 if (mod && mod.__esModule) return mod; |
6241 var result = {}; |
6259 var result = {}; |
6242 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |
6260 if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); |
6243 __setModuleDefault(result, mod); |
6261 __setModuleDefault(result, mod); |
6244 return result; |
6262 return result; |
6245 } |
6263 } |
6246 |
6264 |
6247 function __importDefault(mod) { |
6265 function __importDefault(mod) { |
6267 } |
6285 } |
6268 |
6286 |
6269 function __addDisposableResource(env, value, async) { |
6287 function __addDisposableResource(env, value, async) { |
6270 if (value !== null && value !== void 0) { |
6288 if (value !== null && value !== void 0) { |
6271 if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); |
6289 if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); |
6272 var dispose; |
6290 var dispose, inner; |
6273 if (async) { |
6291 if (async) { |
6274 if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); |
6292 if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); |
6275 dispose = value[Symbol.asyncDispose]; |
6293 dispose = value[Symbol.asyncDispose]; |
6276 } |
6294 } |
6277 if (dispose === void 0) { |
6295 if (dispose === void 0) { |
6278 if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); |
6296 if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); |
6279 dispose = value[Symbol.dispose]; |
6297 dispose = value[Symbol.dispose]; |
6298 if (async) inner = dispose; |
|
6280 } |
6299 } |
6281 if (typeof dispose !== "function") throw new TypeError("Object not disposable."); |
6300 if (typeof dispose !== "function") throw new TypeError("Object not disposable."); |
6301 if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; |
|
6282 env.stack.push({ value: value, dispose: dispose, async: async }); |
6302 env.stack.push({ value: value, dispose: dispose, async: async }); |
6283 } |
6303 } |
6284 else if (async) { |
6304 else if (async) { |
6285 env.stack.push({ async: true }); |
6305 env.stack.push({ async: true }); |
6286 } |
6306 } |
6295 function __disposeResources(env) { |
6315 function __disposeResources(env) { |
6296 function fail(e) { |
6316 function fail(e) { |
6297 env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; |
6317 env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; |
6298 env.hasError = true; |
6318 env.hasError = true; |
6299 } |
6319 } |
6320 var r, s = 0; |
|
6300 function next() { |
6321 function next() { |
6301 while (env.stack.length) { |
6322 while (r = env.stack.pop()) { |
6302 var rec = env.stack.pop(); |
|
6303 try { |
6323 try { |
6304 var result = rec.dispose && rec.dispose.call(rec.value); |
6324 if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); |
6305 if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); |
6325 if (r.dispose) { |
6326 var result = r.dispose.call(r.value); |
|
6327 if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); |
|
6328 } |
|
6329 else s |= 1; |
|
6306 } |
6330 } |
6307 catch (e) { |
6331 catch (e) { |
6308 fail(e); |
6332 fail(e); |
6309 } |
6333 } |
6310 } |
6334 } |
6335 if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); |
|
6311 if (env.hasError) throw env.error; |
6336 if (env.hasError) throw env.error; |
6312 } |
6337 } |
6313 return next(); |
6338 return next(); |
6339 } |
|
6340 |
|
6341 function __rewriteRelativeImportExtension(path, preserveJsx) { |
|
6342 if (typeof path === "string" && /^\.\.?\//.test(path)) { |
|
6343 return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { |
|
6344 return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); |
|
6345 }); |
|
6346 } |
|
6347 return path; |
|
6314 } |
6348 } |
6315 |
6349 |
6316 /* harmony default export */ const tslib_es6 = ({ |
6350 /* harmony default export */ const tslib_es6 = ({ |
6317 __extends, |
6351 __extends, |
6318 __assign, |
6352 __assign, |
6319 __rest, |
6353 __rest, |
6320 __decorate, |
6354 __decorate, |
6321 __param, |
6355 __param, |
6356 __esDecorate, |
|
6357 __runInitializers, |
|
6358 __propKey, |
|
6359 __setFunctionName, |
|
6322 __metadata, |
6360 __metadata, |
6323 __awaiter, |
6361 __awaiter, |
6324 __generator, |
6362 __generator, |
6325 __createBinding, |
6363 __createBinding, |
6326 __exportStar, |
6364 __exportStar, |
6339 __classPrivateFieldGet, |
6377 __classPrivateFieldGet, |
6340 __classPrivateFieldSet, |
6378 __classPrivateFieldSet, |
6341 __classPrivateFieldIn, |
6379 __classPrivateFieldIn, |
6342 __addDisposableResource, |
6380 __addDisposableResource, |
6343 __disposeResources, |
6381 __disposeResources, |
6382 __rewriteRelativeImportExtension, |
|
6344 }); |
6383 }); |
6345 |
6384 |
6346 ;// CONCATENATED MODULE: ./node_modules/lower-case/dist.es2015/index.js |
6385 ;// ./node_modules/lower-case/dist.es2015/index.js |
6347 /** |
6386 /** |
6348 * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt |
6387 * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt |
6349 */ |
6388 */ |
6350 var SUPPORTED_LOCALE = { |
6389 var SUPPORTED_LOCALE = { |
6351 tr: { |
6390 tr: { |
6390 */ |
6429 */ |
6391 function lowerCase(str) { |
6430 function lowerCase(str) { |
6392 return str.toLowerCase(); |
6431 return str.toLowerCase(); |
6393 } |
6432 } |
6394 |
6433 |
6395 ;// CONCATENATED MODULE: ./node_modules/no-case/dist.es2015/index.js |
6434 ;// ./node_modules/no-case/dist.es2015/index.js |
6396 |
6435 |
6397 // Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case"). |
6436 // Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case"). |
6398 var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]; |
6437 var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]; |
6399 // Remove all non-word characters. |
6438 // Remove all non-word characters. |
6400 var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi; |
6439 var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi; |
6422 if (re instanceof RegExp) |
6461 if (re instanceof RegExp) |
6423 return input.replace(re, value); |
6462 return input.replace(re, value); |
6424 return re.reduce(function (input, re) { return input.replace(re, value); }, input); |
6463 return re.reduce(function (input, re) { return input.replace(re, value); }, input); |
6425 } |
6464 } |
6426 |
6465 |
6427 ;// CONCATENATED MODULE: ./node_modules/pascal-case/dist.es2015/index.js |
6466 ;// ./node_modules/pascal-case/dist.es2015/index.js |
6428 |
6467 |
6429 |
6468 |
6430 function pascalCaseTransform(input, index) { |
6469 function pascalCaseTransform(input, index) { |
6431 var firstChar = input.charAt(0); |
6470 var firstChar = input.charAt(0); |
6432 var lowerChars = input.substr(1).toLowerCase(); |
6471 var lowerChars = input.substr(1).toLowerCase(); |
6441 function pascalCase(input, options) { |
6480 function pascalCase(input, options) { |
6442 if (options === void 0) { options = {}; } |
6481 if (options === void 0) { options = {}; } |
6443 return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options)); |
6482 return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options)); |
6444 } |
6483 } |
6445 |
6484 |
6446 ;// CONCATENATED MODULE: ./node_modules/camel-case/dist.es2015/index.js |
6485 ;// ./node_modules/camel-case/dist.es2015/index.js |
6447 |
6486 |
6448 |
6487 |
6449 function camelCaseTransform(input, index) { |
6488 function camelCaseTransform(input, index) { |
6450 if (index === 0) |
6489 if (index === 0) |
6451 return input.toLowerCase(); |
6490 return input.toLowerCase(); |
6459 function camelCase(input, options) { |
6498 function camelCase(input, options) { |
6460 if (options === void 0) { options = {}; } |
6499 if (options === void 0) { options = {}; } |
6461 return pascalCase(input, __assign({ transform: camelCaseTransform }, options)); |
6500 return pascalCase(input, __assign({ transform: camelCaseTransform }, options)); |
6462 } |
6501 } |
6463 |
6502 |
6464 ;// CONCATENATED MODULE: external ["wp","i18n"] |
6503 ;// external ["wp","i18n"] |
6465 const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; |
6504 const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; |
6466 ;// CONCATENATED MODULE: ./node_modules/colord/index.mjs |
6505 ;// ./node_modules/colord/index.mjs |
6467 var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})}; |
6506 var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})}; |
6468 |
6507 |
6469 ;// CONCATENATED MODULE: ./node_modules/colord/plugins/names.mjs |
6508 ;// ./node_modules/colord/plugins/names.mjs |
6470 /* harmony default export */ function names(e,f){var a={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var d in a)r[a[d]]=d;var l={};e.prototype.toName=function(f){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,i,n=r[this.toHex()];if(n)return n;if(null==f?void 0:f.closest){var o=this.toRgb(),t=1/0,b="black";if(!l.length)for(var c in a)l[c]=new e(a[c]).toRgb();for(var g in a){var u=(d=o,i=l[g],Math.pow(d.r-i.r,2)+Math.pow(d.g-i.g,2)+Math.pow(d.b-i.b,2));u<t&&(t=u,b=g)}return b}};f.string.push([function(f){var r=f.toLowerCase(),d="transparent"===r?"#0000":a[r];return d?new e(d).toRgb():null},"name"])} |
6509 /* harmony default export */ function names(e,f){var a={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var d in a)r[a[d]]=d;var l={};e.prototype.toName=function(f){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,i,n=r[this.toHex()];if(n)return n;if(null==f?void 0:f.closest){var o=this.toRgb(),t=1/0,b="black";if(!l.length)for(var c in a)l[c]=new e(a[c]).toRgb();for(var g in a){var u=(d=o,i=l[g],Math.pow(d.r-i.r,2)+Math.pow(d.g-i.g,2)+Math.pow(d.b-i.b,2));u<t&&(t=u,b=g)}return b}};f.string.push([function(f){var r=f.toLowerCase(),d="transparent"===r?"#0000":a[r];return d?new e(d).toRgb():null},"name"])} |
6471 |
6510 |
6472 ;// CONCATENATED MODULE: ./node_modules/colord/plugins/a11y.mjs |
6511 ;// ./node_modules/colord/plugins/a11y.mjs |
6473 var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},a11y_t=function(t){return.2126*a11y_o(t.r)+.7152*a11y_o(t.g)+.0722*a11y_o(t.b)};/* harmony default export */ function a11y(o){o.prototype.luminance=function(){return o=a11y_t(this.rgba),void 0===(r=2)&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*o)/n+0;var o,r,n},o.prototype.contrast=function(r){void 0===r&&(r="#FFF");var n,a,i,e,v,u,d,c=r instanceof o?r:new o(r);return e=this.rgba,v=c.toRgb(),u=a11y_t(e),d=a11y_t(v),n=u>d?(u+.05)/(d+.05):(d+.05)/(u+.05),void 0===(a=2)&&(a=0),void 0===i&&(i=Math.pow(10,a)),Math.floor(i*n)/i+0},o.prototype.isReadable=function(o,t){return void 0===o&&(o="#FFF"),void 0===t&&(t={}),this.contrast(o)>=(e=void 0===(i=(r=t).size)?"normal":i,"AAA"===(a=void 0===(n=r.level)?"AA":n)&&"normal"===e?7:"AA"===a&&"large"===e?3:4.5);var r,n,a,i,e}} |
6512 var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},a11y_t=function(t){return.2126*a11y_o(t.r)+.7152*a11y_o(t.g)+.0722*a11y_o(t.b)};/* harmony default export */ function a11y(o){o.prototype.luminance=function(){return o=a11y_t(this.rgba),void 0===(r=2)&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*o)/n+0;var o,r,n},o.prototype.contrast=function(r){void 0===r&&(r="#FFF");var n,a,i,e,v,u,d,c=r instanceof o?r:new o(r);return e=this.rgba,v=c.toRgb(),u=a11y_t(e),d=a11y_t(v),n=u>d?(u+.05)/(d+.05):(d+.05)/(u+.05),void 0===(a=2)&&(a=0),void 0===i&&(i=Math.pow(10,a)),Math.floor(i*n)/i+0},o.prototype.isReadable=function(o,t){return void 0===o&&(o="#FFF"),void 0===t&&(t={}),this.contrast(o)>=(e=void 0===(i=(r=t).size)?"normal":i,"AAA"===(a=void 0===(n=r.level)?"AA":n)&&"normal"===e?7:"AA"===a&&"large"===e?3:4.5);var r,n,a,i,e}} |
6474 |
6513 |
6475 ;// CONCATENATED MODULE: external ["wp","element"] |
6514 ;// external ["wp","element"] |
6476 const external_wp_element_namespaceObject = window["wp"]["element"]; |
6515 const external_wp_element_namespaceObject = window["wp"]["element"]; |
6477 ;// CONCATENATED MODULE: external ["wp","dom"] |
6516 ;// external ["wp","dom"] |
6478 const external_wp_dom_namespaceObject = window["wp"]["dom"]; |
6517 const external_wp_dom_namespaceObject = window["wp"]["dom"]; |
6479 ;// CONCATENATED MODULE: external ["wp","richText"] |
6518 ;// external ["wp","richText"] |
6480 const external_wp_richText_namespaceObject = window["wp"]["richText"]; |
6519 const external_wp_richText_namespaceObject = window["wp"]["richText"]; |
6481 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/constants.js |
6520 ;// external ["wp","deprecated"] |
6521 const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"]; |
|
6522 var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject); |
|
6523 ;// ./node_modules/@wordpress/blocks/build-module/api/constants.js |
|
6482 const BLOCK_ICON_DEFAULT = 'block-default'; |
6524 const BLOCK_ICON_DEFAULT = 'block-default'; |
6483 |
6525 |
6484 /** |
6526 /** |
6485 * Array of valid keys in a block type settings deprecation object. |
6527 * Array of valid keys in a block type settings deprecation object. |
6486 * |
6528 * |
6767 'dimensions.aspectRatios': true, |
6809 'dimensions.aspectRatios': true, |
6768 'typography.fontSizes': true, |
6810 'typography.fontSizes': true, |
6769 'spacing.spacingSizes': true |
6811 'spacing.spacingSizes': true |
6770 }; |
6812 }; |
6771 |
6813 |
6772 ;// CONCATENATED MODULE: external ["wp","privateApis"] |
6814 ;// external ["wp","warning"] |
6815 const external_wp_warning_namespaceObject = window["wp"]["warning"]; |
|
6816 var external_wp_warning_default = /*#__PURE__*/__webpack_require__.n(external_wp_warning_namespaceObject); |
|
6817 ;// external ["wp","privateApis"] |
|
6773 const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"]; |
6818 const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"]; |
6774 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/lock-unlock.js |
6819 ;// ./node_modules/@wordpress/blocks/build-module/lock-unlock.js |
6775 /** |
6820 /** |
6776 * WordPress dependencies |
6821 * WordPress dependencies |
6777 */ |
6822 */ |
6778 |
6823 |
6779 const { |
6824 const { |
6780 lock, |
6825 lock, |
6781 unlock |
6826 unlock |
6782 } = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/blocks'); |
6827 } = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/blocks'); |
6783 |
6828 |
6784 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/registration.js |
6829 ;// ./node_modules/@wordpress/blocks/build-module/api/registration.js |
6785 /* eslint no-console: [ 'error', { allow: [ 'error', 'warn' ] } ] */ |
|
6786 |
|
6787 /** |
6830 /** |
6788 * WordPress dependencies |
6831 * WordPress dependencies |
6789 */ |
6832 */ |
6833 |
|
6790 |
6834 |
6791 |
6835 |
6792 |
6836 |
6793 /** |
6837 /** |
6794 * Internal dependencies |
6838 * Internal dependencies |
6925 } |
6969 } |
6926 |
6970 |
6927 /** |
6971 /** |
6928 * Sets the server side block definition of blocks. |
6972 * Sets the server side block definition of blocks. |
6929 * |
6973 * |
6974 * Ignored from documentation due to being marked as unstable. |
|
6975 * |
|
6976 * @ignore |
|
6977 * |
|
6930 * @param {Object} definitions Server-side block definitions |
6978 * @param {Object} definitions Server-side block definitions |
6931 */ |
6979 */ |
6932 // eslint-disable-next-line camelcase |
6980 // eslint-disable-next-line camelcase |
6933 function unstable__bootstrapServerSideBlockDefinitions(definitions) { |
6981 function unstable__bootstrapServerSideBlockDefinitions(definitions) { |
6934 const { |
6982 const { |
6938 addBootstrappedBlockType(name, blockType); |
6986 addBootstrappedBlockType(name, blockType); |
6939 } |
6987 } |
6940 } |
6988 } |
6941 |
6989 |
6942 /** |
6990 /** |
6943 * Gets block settings from metadata loaded from `block.json` file. |
6991 * Gets block settings from metadata loaded from `block.json` file |
6944 * |
6992 * |
6945 * @param {Object} metadata Block metadata loaded from `block.json`. |
6993 * @param {Object} metadata Block metadata loaded from `block.json`. |
6946 * @param {string} metadata.textdomain Textdomain to use with translations. |
6994 * @param {string} metadata.textdomain Textdomain to use with translations. |
6947 * |
6995 * |
6948 * @return {Object} Block settings. |
6996 * @return {Object} Block settings. |
6991 * otherwise `undefined`. |
7039 * otherwise `undefined`. |
6992 */ |
7040 */ |
6993 function registerBlockType(blockNameOrMetadata, settings) { |
7041 function registerBlockType(blockNameOrMetadata, settings) { |
6994 const name = isObject(blockNameOrMetadata) ? blockNameOrMetadata.name : blockNameOrMetadata; |
7042 const name = isObject(blockNameOrMetadata) ? blockNameOrMetadata.name : blockNameOrMetadata; |
6995 if (typeof name !== 'string') { |
7043 if (typeof name !== 'string') { |
6996 console.error('Block names must be strings.'); |
7044 true ? external_wp_warning_default()('Block names must be strings.') : 0; |
6997 return; |
7045 return; |
6998 } |
7046 } |
6999 if (!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(name)) { |
7047 if (!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(name)) { |
7000 console.error('Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block'); |
7048 true ? external_wp_warning_default()('Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block') : 0; |
7001 return; |
7049 return; |
7002 } |
7050 } |
7003 if ((0,external_wp_data_namespaceObject.select)(store).getBlockType(name)) { |
7051 if ((0,external_wp_data_namespaceObject.select)(store).getBlockType(name)) { |
7004 console.error('Block "' + name + '" is already registered.'); |
7052 true ? external_wp_warning_default()('Block "' + name + '" is already registered.') : 0; |
7005 return; |
7053 return; |
7006 } |
7054 } |
7007 const { |
7055 const { |
7008 addBootstrappedBlockType, |
7056 addBootstrappedBlockType, |
7009 addUnprocessedBlockType |
7057 addUnprocessedBlockType |
7122 * unregistered; otherwise `undefined`. |
7170 * unregistered; otherwise `undefined`. |
7123 */ |
7171 */ |
7124 function unregisterBlockType(name) { |
7172 function unregisterBlockType(name) { |
7125 const oldBlock = (0,external_wp_data_namespaceObject.select)(store).getBlockType(name); |
7173 const oldBlock = (0,external_wp_data_namespaceObject.select)(store).getBlockType(name); |
7126 if (!oldBlock) { |
7174 if (!oldBlock) { |
7127 console.error('Block "' + name + '" is not registered.'); |
7175 true ? external_wp_warning_default()('Block "' + name + '" is not registered.') : 0; |
7128 return; |
7176 return; |
7129 } |
7177 } |
7130 (0,external_wp_data_namespaceObject.dispatch)(store).removeBlockTypes(name); |
7178 (0,external_wp_data_namespaceObject.dispatch)(store).removeBlockTypes(name); |
7131 return oldBlock; |
7179 return oldBlock; |
7132 } |
7180 } |
7457 * }; |
7505 * }; |
7458 * ``` |
7506 * ``` |
7459 */ |
7507 */ |
7460 const registerBlockVariation = (blockName, variation) => { |
7508 const registerBlockVariation = (blockName, variation) => { |
7461 if (typeof variation.name !== 'string') { |
7509 if (typeof variation.name !== 'string') { |
7462 console.warn('Variation names must be unique strings.'); |
7510 true ? external_wp_warning_default()('Variation names must be unique strings.') : 0; |
7463 } |
7511 } |
7464 (0,external_wp_data_namespaceObject.dispatch)(store).addBlockVariations(blockName, variation); |
7512 (0,external_wp_data_namespaceObject.dispatch)(store).addBlockVariations(blockName, variation); |
7465 }; |
7513 }; |
7466 |
7514 |
7467 /** |
7515 /** |
7491 */ |
7539 */ |
7492 const unregisterBlockVariation = (blockName, variationName) => { |
7540 const unregisterBlockVariation = (blockName, variationName) => { |
7493 (0,external_wp_data_namespaceObject.dispatch)(store).removeBlockVariations(blockName, variationName); |
7541 (0,external_wp_data_namespaceObject.dispatch)(store).removeBlockVariations(blockName, variationName); |
7494 }; |
7542 }; |
7495 |
7543 |
7496 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/utils.js |
7544 /** |
7545 * Registers a new block bindings source with an object defining its |
|
7546 * behavior. Once registered, the source is available to be connected |
|
7547 * to the supported block attributes. |
|
7548 * |
|
7549 * @since 6.7.0 Introduced in WordPress core. |
|
7550 * |
|
7551 * @param {Object} source Properties of the source to be registered. |
|
7552 * @param {string} source.name The unique and machine-readable name. |
|
7553 * @param {string} [source.label] Human-readable label. Optional when it is defined in the server. |
|
7554 * @param {Array} [source.usesContext] Optional array of context needed by the source only in the editor. |
|
7555 * @param {Function} [source.getValues] Optional function to get the values from the source. |
|
7556 * @param {Function} [source.setValues] Optional function to update multiple values connected to the source. |
|
7557 * @param {Function} [source.canUserEditValue] Optional function to determine if the user can edit the value. |
|
7558 * |
|
7559 * @example |
|
7560 * ```js |
|
7561 * import { _x } from '@wordpress/i18n'; |
|
7562 * import { registerBlockBindingsSource } from '@wordpress/blocks' |
|
7563 * |
|
7564 * registerBlockBindingsSource( { |
|
7565 * name: 'plugin/my-custom-source', |
|
7566 * label: _x( 'My Custom Source', 'block bindings source' ), |
|
7567 * usesContext: [ 'postType' ], |
|
7568 * getValues: getSourceValues, |
|
7569 * setValues: updateMyCustomValuesInBatch, |
|
7570 * canUserEditValue: () => true, |
|
7571 * } ); |
|
7572 * ``` |
|
7573 */ |
|
7574 const registerBlockBindingsSource = source => { |
|
7575 const { |
|
7576 name, |
|
7577 label, |
|
7578 usesContext, |
|
7579 getValues, |
|
7580 setValues, |
|
7581 canUserEditValue, |
|
7582 getFieldsList |
|
7583 } = source; |
|
7584 const existingSource = unlock((0,external_wp_data_namespaceObject.select)(store)).getBlockBindingsSource(name); |
|
7585 |
|
7586 /* |
|
7587 * Check if the source has been already registered on the client. |
|
7588 * If any property expected to be "client-only" is defined, return a warning. |
|
7589 */ |
|
7590 const serverProps = ['label', 'usesContext']; |
|
7591 for (const prop in existingSource) { |
|
7592 if (!serverProps.includes(prop) && existingSource[prop]) { |
|
7593 true ? external_wp_warning_default()('Block bindings source "' + name + '" is already registered.') : 0; |
|
7594 return; |
|
7595 } |
|
7596 } |
|
7597 |
|
7598 // Check the `name` property is correct. |
|
7599 if (!name) { |
|
7600 true ? external_wp_warning_default()('Block bindings source must contain a name.') : 0; |
|
7601 return; |
|
7602 } |
|
7603 if (typeof name !== 'string') { |
|
7604 true ? external_wp_warning_default()('Block bindings source name must be a string.') : 0; |
|
7605 return; |
|
7606 } |
|
7607 if (/[A-Z]+/.test(name)) { |
|
7608 true ? external_wp_warning_default()('Block bindings source name must not contain uppercase characters.') : 0; |
|
7609 return; |
|
7610 } |
|
7611 if (!/^[a-z0-9/-]+$/.test(name)) { |
|
7612 true ? external_wp_warning_default()('Block bindings source name must contain only valid characters: lowercase characters, hyphens, or digits. Example: my-plugin/my-custom-source.') : 0; |
|
7613 return; |
|
7614 } |
|
7615 if (!/^[a-z0-9-]+\/[a-z0-9-]+$/.test(name)) { |
|
7616 true ? external_wp_warning_default()('Block bindings source name must contain a namespace and valid characters. Example: my-plugin/my-custom-source.') : 0; |
|
7617 return; |
|
7618 } |
|
7619 |
|
7620 // Check the `label` property is correct. |
|
7621 |
|
7622 if (!label && !existingSource?.label) { |
|
7623 true ? external_wp_warning_default()('Block bindings source must contain a label.') : 0; |
|
7624 return; |
|
7625 } |
|
7626 if (label && typeof label !== 'string') { |
|
7627 true ? external_wp_warning_default()('Block bindings source label must be a string.') : 0; |
|
7628 return; |
|
7629 } |
|
7630 if (label && existingSource?.label && label !== existingSource?.label) { |
|
7631 true ? external_wp_warning_default()('Block bindings "' + name + '" source label was overridden.') : 0; |
|
7632 } |
|
7633 |
|
7634 // Check the `usesContext` property is correct. |
|
7635 if (usesContext && !Array.isArray(usesContext)) { |
|
7636 true ? external_wp_warning_default()('Block bindings source usesContext must be an array.') : 0; |
|
7637 return; |
|
7638 } |
|
7639 |
|
7640 // Check the `getValues` property is correct. |
|
7641 if (getValues && typeof getValues !== 'function') { |
|
7642 true ? external_wp_warning_default()('Block bindings source getValues must be a function.') : 0; |
|
7643 return; |
|
7644 } |
|
7645 |
|
7646 // Check the `setValues` property is correct. |
|
7647 if (setValues && typeof setValues !== 'function') { |
|
7648 true ? external_wp_warning_default()('Block bindings source setValues must be a function.') : 0; |
|
7649 return; |
|
7650 } |
|
7651 |
|
7652 // Check the `canUserEditValue` property is correct. |
|
7653 if (canUserEditValue && typeof canUserEditValue !== 'function') { |
|
7654 true ? external_wp_warning_default()('Block bindings source canUserEditValue must be a function.') : 0; |
|
7655 return; |
|
7656 } |
|
7657 |
|
7658 // Check the `getFieldsList` property is correct. |
|
7659 if (getFieldsList && typeof getFieldsList !== 'function') { |
|
7660 // eslint-disable-next-line no-console |
|
7661 true ? external_wp_warning_default()('Block bindings source getFieldsList must be a function.') : 0; |
|
7662 return; |
|
7663 } |
|
7664 return unlock((0,external_wp_data_namespaceObject.dispatch)(store)).addBlockBindingsSource(source); |
|
7665 }; |
|
7666 |
|
7667 /** |
|
7668 * Unregisters a block bindings source by providing its name. |
|
7669 * |
|
7670 * @since 6.7.0 Introduced in WordPress core. |
|
7671 * |
|
7672 * @param {string} name The name of the block bindings source to unregister. |
|
7673 * |
|
7674 * @example |
|
7675 * ```js |
|
7676 * import { unregisterBlockBindingsSource } from '@wordpress/blocks'; |
|
7677 * |
|
7678 * unregisterBlockBindingsSource( 'plugin/my-custom-source' ); |
|
7679 * ``` |
|
7680 */ |
|
7681 function unregisterBlockBindingsSource(name) { |
|
7682 const oldSource = getBlockBindingsSource(name); |
|
7683 if (!oldSource) { |
|
7684 true ? external_wp_warning_default()('Block bindings source "' + name + '" is not registered.') : 0; |
|
7685 return; |
|
7686 } |
|
7687 unlock((0,external_wp_data_namespaceObject.dispatch)(store)).removeBlockBindingsSource(name); |
|
7688 } |
|
7689 |
|
7690 /** |
|
7691 * Returns a registered block bindings source by its name. |
|
7692 * |
|
7693 * @since 6.7.0 Introduced in WordPress core. |
|
7694 * |
|
7695 * @param {string} name Block bindings source name. |
|
7696 * |
|
7697 * @return {?Object} Block bindings source. |
|
7698 */ |
|
7699 function getBlockBindingsSource(name) { |
|
7700 return unlock((0,external_wp_data_namespaceObject.select)(store)).getBlockBindingsSource(name); |
|
7701 } |
|
7702 |
|
7703 /** |
|
7704 * Returns all registered block bindings sources. |
|
7705 * |
|
7706 * @since 6.7.0 Introduced in WordPress core. |
|
7707 * |
|
7708 * @return {Array} Block bindings sources. |
|
7709 */ |
|
7710 function getBlockBindingsSources() { |
|
7711 return unlock((0,external_wp_data_namespaceObject.select)(store)).getAllBlockBindingsSources(); |
|
7712 } |
|
7713 |
|
7714 ;// ./node_modules/@wordpress/blocks/build-module/api/utils.js |
|
7497 /** |
7715 /** |
7498 * External dependencies |
7716 * External dependencies |
7499 */ |
7717 */ |
7500 |
7718 |
7501 |
7719 |
7502 |
7720 |
7503 |
7721 |
7504 /** |
7722 /** |
7505 * WordPress dependencies |
7723 * WordPress dependencies |
7506 */ |
7724 */ |
7725 |
|
7507 |
7726 |
7508 |
7727 |
7509 |
7728 |
7510 |
7729 |
7511 |
7730 |
7677 // title twice within the accessible label. Use this `hasLabel` boolean to |
7896 // title twice within the accessible label. Use this `hasLabel` boolean to |
7678 // handle that. |
7897 // handle that. |
7679 const hasLabel = label && label !== title; |
7898 const hasLabel = label && label !== title; |
7680 if (hasPosition && direction === 'vertical') { |
7899 if (hasPosition && direction === 'vertical') { |
7681 if (hasLabel) { |
7900 if (hasLabel) { |
7682 return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: accessibility text. 1: The block title. 2: The block row number. 3: The block label.. */ |
7901 return (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: accessibility text. 1: The block title. 2: The block row number. 3: The block label.. */ |
7683 (0,external_wp_i18n_namespaceObject.__)('%1$s Block. Row %2$d. %3$s'), title, position, label); |
7902 (0,external_wp_i18n_namespaceObject.__)('%1$s Block. Row %2$d. %3$s'), title, position, label); |
7684 } |
7903 } |
7685 return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: accessibility text. 1: The block title. 2: The block row number. */ |
7904 return (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: accessibility text. 1: The block title. 2: The block row number. */ |
7686 (0,external_wp_i18n_namespaceObject.__)('%1$s Block. Row %2$d'), title, position); |
7905 (0,external_wp_i18n_namespaceObject.__)('%1$s Block. Row %2$d'), title, position); |
7687 } else if (hasPosition && direction === 'horizontal') { |
7906 } else if (hasPosition && direction === 'horizontal') { |
7688 if (hasLabel) { |
7907 if (hasLabel) { |
7689 return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: accessibility text. 1: The block title. 2: The block column number. 3: The block label.. */ |
7908 return (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: accessibility text. 1: The block title. 2: The block column number. 3: The block label.. */ |
7690 (0,external_wp_i18n_namespaceObject.__)('%1$s Block. Column %2$d. %3$s'), title, position, label); |
7909 (0,external_wp_i18n_namespaceObject.__)('%1$s Block. Column %2$d. %3$s'), title, position, label); |
7691 } |
7910 } |
7692 return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: accessibility text. 1: The block title. 2: The block column number. */ |
7911 return (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: accessibility text. 1: The block title. 2: The block column number. */ |
7693 (0,external_wp_i18n_namespaceObject.__)('%1$s Block. Column %2$d'), title, position); |
7912 (0,external_wp_i18n_namespaceObject.__)('%1$s Block. Column %2$d'), title, position); |
7694 } |
7913 } |
7695 if (hasLabel) { |
7914 if (hasLabel) { |
7696 return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: accessibility text. %1: The block title. %2: The block label. */ |
7915 return (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: accessibility text. %1: The block title. %2: The block label. */ |
7697 (0,external_wp_i18n_namespaceObject.__)('%1$s Block. %2$s'), title, label); |
7916 (0,external_wp_i18n_namespaceObject.__)('%1$s Block. %2$s'), title, label); |
7698 } |
7917 } |
7699 return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: accessibility text. %s: The block title. */ |
7918 return (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: accessibility text. %s: The block title. */ |
7700 (0,external_wp_i18n_namespaceObject.__)('%s Block'), title); |
7919 (0,external_wp_i18n_namespaceObject.__)('%s Block'), title); |
7701 } |
7920 } |
7702 function getDefault(attributeSchema) { |
7921 function getDefault(attributeSchema) { |
7703 if (attributeSchema.default !== undefined) { |
7922 if (attributeSchema.default !== undefined) { |
7704 return attributeSchema.default; |
7923 return attributeSchema.default; |
7705 } |
7924 } |
7706 if (attributeSchema.type === 'rich-text') { |
7925 if (attributeSchema.type === 'rich-text') { |
7707 return new external_wp_richText_namespaceObject.RichTextData(); |
7926 return new external_wp_richText_namespaceObject.RichTextData(); |
7708 } |
7927 } |
7928 } |
|
7929 |
|
7930 /** |
|
7931 * Check if a block is registered. |
|
7932 * |
|
7933 * @param {string} name The block's name. |
|
7934 * |
|
7935 * @return {boolean} Whether the block is registered. |
|
7936 */ |
|
7937 function isBlockRegistered(name) { |
|
7938 return getBlockType(name) !== undefined; |
|
7709 } |
7939 } |
7710 |
7940 |
7711 /** |
7941 /** |
7712 * Ensure attributes contains only values defined by block type, and merge |
7942 * Ensure attributes contains only values defined by block type, and merge |
7713 * default values for missing attributes. |
7943 * default values for missing attributes. |
7761 * @param {string} name Block attribute's name. |
7991 * @param {string} name Block attribute's name. |
7762 * @param {string} role The role of a block attribute. |
7992 * @param {string} role The role of a block attribute. |
7763 * |
7993 * |
7764 * @return {string[]} The attribute names that have the provided role. |
7994 * @return {string[]} The attribute names that have the provided role. |
7765 */ |
7995 */ |
7766 function __experimentalGetBlockAttributesNamesByRole(name, role) { |
7996 function getBlockAttributesNamesByRole(name, role) { |
7767 const attributes = getBlockType(name)?.attributes; |
7997 const attributes = getBlockType(name)?.attributes; |
7768 if (!attributes) { |
7998 if (!attributes) { |
7769 return []; |
7999 return []; |
7770 } |
8000 } |
7771 const attributesNames = Object.keys(attributes); |
8001 const attributesNames = Object.keys(attributes); |
7772 if (!role) { |
8002 if (!role) { |
7773 return attributesNames; |
8003 return attributesNames; |
7774 } |
8004 } |
7775 return attributesNames.filter(attributeName => attributes[attributeName]?.__experimentalRole === role); |
8005 return attributesNames.filter(attributeName => { |
8006 const attribute = attributes[attributeName]; |
|
8007 if (attribute?.role === role) { |
|
8008 return true; |
|
8009 } |
|
8010 if (attribute?.__experimentalRole === role) { |
|
8011 external_wp_deprecated_default()('__experimentalRole attribute', { |
|
8012 since: '6.7', |
|
8013 version: '6.8', |
|
8014 alternative: 'role attribute', |
|
8015 hint: `Check the block.json of the ${name} block.` |
|
8016 }); |
|
8017 return true; |
|
8018 } |
|
8019 return false; |
|
8020 }); |
|
8021 } |
|
8022 const __experimentalGetBlockAttributesNamesByRole = (...args) => { |
|
8023 external_wp_deprecated_default()('__experimentalGetBlockAttributesNamesByRole', { |
|
8024 since: '6.7', |
|
8025 version: '6.8', |
|
8026 alternative: 'getBlockAttributesNamesByRole' |
|
8027 }); |
|
8028 return getBlockAttributesNamesByRole(...args); |
|
8029 }; |
|
8030 |
|
8031 /** |
|
8032 * Checks if a block is a content block by examining its attributes. |
|
8033 * A block is considered a content block if it has at least one attribute |
|
8034 * with a role of 'content'. |
|
8035 * |
|
8036 * @param {string} name The name of the block to check. |
|
8037 * @return {boolean} Whether the block is a content block. |
|
8038 */ |
|
8039 function isContentBlock(name) { |
|
8040 const attributes = getBlockType(name)?.attributes; |
|
8041 if (!attributes) { |
|
8042 return false; |
|
8043 } |
|
8044 return !!Object.keys(attributes)?.some(attributeKey => { |
|
8045 const attribute = attributes[attributeKey]; |
|
8046 return attribute?.role === 'content' || attribute?.__experimentalRole === 'content'; |
|
8047 }); |
|
7776 } |
8048 } |
7777 |
8049 |
7778 /** |
8050 /** |
7779 * Return a new object with the specified keys omitted. |
8051 * Return a new object with the specified keys omitted. |
7780 * |
8052 * |
7785 */ |
8057 */ |
7786 function omit(object, keys) { |
8058 function omit(object, keys) { |
7787 return Object.fromEntries(Object.entries(object).filter(([key]) => !keys.includes(key))); |
8059 return Object.fromEntries(Object.entries(object).filter(([key]) => !keys.includes(key))); |
7788 } |
8060 } |
7789 |
8061 |
7790 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/reducer.js |
8062 ;// ./node_modules/@wordpress/blocks/build-module/store/reducer.js |
7791 /** |
8063 /** |
7792 * External dependencies |
8064 * External dependencies |
7793 */ |
8065 */ |
7794 |
8066 |
7795 |
8067 |
8067 * @return {WPBlockCategory[]} Updated state. |
8339 * @return {WPBlockCategory[]} Updated state. |
8068 */ |
8340 */ |
8069 function categories(state = DEFAULT_CATEGORIES, action) { |
8341 function categories(state = DEFAULT_CATEGORIES, action) { |
8070 switch (action.type) { |
8342 switch (action.type) { |
8071 case 'SET_CATEGORIES': |
8343 case 'SET_CATEGORIES': |
8072 return action.categories || []; |
8344 // Ensure, that categories are unique by slug. |
8345 const uniqueCategories = new Map(); |
|
8346 (action.categories || []).forEach(category => { |
|
8347 uniqueCategories.set(category.slug, category); |
|
8348 }); |
|
8349 return [...uniqueCategories.values()]; |
|
8073 case 'UPDATE_CATEGORY': |
8350 case 'UPDATE_CATEGORY': |
8074 { |
8351 { |
8075 if (!action.category || !Object.keys(action.category).length) { |
8352 if (!action.category || !Object.keys(action.category).length) { |
8076 return state; |
8353 return state; |
8077 } |
8354 } |
8106 case 'REMOVE_BLOCK_COLLECTION': |
8383 case 'REMOVE_BLOCK_COLLECTION': |
8107 return omit(state, action.namespace); |
8384 return omit(state, action.namespace); |
8108 } |
8385 } |
8109 return state; |
8386 return state; |
8110 } |
8387 } |
8388 |
|
8389 /** |
|
8390 * Merges usesContext with existing values, potentially defined in the server registration. |
|
8391 * |
|
8392 * @param {string[]} existingUsesContext Existing `usesContext`. |
|
8393 * @param {string[]} newUsesContext Newly added `usesContext`. |
|
8394 * @return {string[]|undefined} Merged `usesContext`. |
|
8395 */ |
|
8396 function getMergedUsesContext(existingUsesContext = [], newUsesContext = []) { |
|
8397 const mergedArrays = Array.from(new Set(existingUsesContext.concat(newUsesContext))); |
|
8398 return mergedArrays.length > 0 ? mergedArrays : undefined; |
|
8399 } |
|
8111 function blockBindingsSources(state = {}, action) { |
8400 function blockBindingsSources(state = {}, action) { |
8112 if (action.type === 'REGISTER_BLOCK_BINDINGS_SOURCE') { |
8401 switch (action.type) { |
8113 return { |
8402 case 'ADD_BLOCK_BINDINGS_SOURCE': |
8114 ...state, |
8403 // Only open this API in Gutenberg and for `core/post-meta` for the moment. |
8115 [action.sourceName]: { |
8404 let getFieldsList; |
8116 label: action.sourceLabel, |
8405 if (false) {} else if (action.name === 'core/post-meta') { |
8117 getValue: action.getValue, |
8406 getFieldsList = action.getFieldsList; |
8118 setValue: action.setValue, |
|
8119 setValues: action.setValues, |
|
8120 getPlaceholder: action.getPlaceholder, |
|
8121 canUserEditValue: action.canUserEditValue || (() => false) |
|
8122 } |
8407 } |
8123 }; |
8408 return { |
8409 ...state, |
|
8410 [action.name]: { |
|
8411 label: action.label || state[action.name]?.label, |
|
8412 usesContext: getMergedUsesContext(state[action.name]?.usesContext, action.usesContext), |
|
8413 getValues: action.getValues, |
|
8414 setValues: action.setValues, |
|
8415 // Only set `canUserEditValue` if `setValues` is also defined. |
|
8416 canUserEditValue: action.setValues && action.canUserEditValue, |
|
8417 getFieldsList |
|
8418 } |
|
8419 }; |
|
8420 case 'REMOVE_BLOCK_BINDINGS_SOURCE': |
|
8421 return omit(state, action.name); |
|
8124 } |
8422 } |
8125 return state; |
8423 return state; |
8126 } |
8424 } |
8127 /* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({ |
8425 /* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({ |
8128 bootstrappedBlockTypes, |
8426 bootstrappedBlockTypes, |
8140 })); |
8438 })); |
8141 |
8439 |
8142 // EXTERNAL MODULE: ./node_modules/remove-accents/index.js |
8440 // EXTERNAL MODULE: ./node_modules/remove-accents/index.js |
8143 var remove_accents = __webpack_require__(9681); |
8441 var remove_accents = __webpack_require__(9681); |
8144 var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents); |
8442 var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents); |
8145 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/utils.js |
8443 ;// ./node_modules/@wordpress/blocks/build-module/store/utils.js |
8146 /** |
8444 /** |
8147 * Helper util to return a value from a certain path of the object. |
8445 * Helper util to return a value from a certain path of the object. |
8148 * Path is specified as either: |
8446 * Path is specified as either: |
8149 * - a string of properties, separated by dots, for example: "x.y". |
8447 * - a string of properties, separated by dots, for example: "x.y". |
8150 * - an array of properties, for example `[ 'x', 'y' ]`. |
8448 * - an array of properties, for example `[ 'x', 'y' ]`. |
8184 return Object.entries(variationAttributes).every(([key, value]) => matchesAttributes(blockAttributes?.[key], value)); |
8482 return Object.entries(variationAttributes).every(([key, value]) => matchesAttributes(blockAttributes?.[key], value)); |
8185 } |
8483 } |
8186 return blockAttributes === variationAttributes; |
8484 return blockAttributes === variationAttributes; |
8187 } |
8485 } |
8188 |
8486 |
8189 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/selectors.js |
8487 ;// ./node_modules/@wordpress/blocks/build-module/store/private-selectors.js |
8488 /** |
|
8489 * WordPress dependencies |
|
8490 */ |
|
8491 |
|
8492 |
|
8493 |
|
8494 /** |
|
8495 * Internal dependencies |
|
8496 */ |
|
8497 |
|
8498 |
|
8499 |
|
8500 const ROOT_BLOCK_SUPPORTS = ['background', 'backgroundColor', 'color', 'linkColor', 'captionColor', 'buttonColor', 'headingColor', 'fontFamily', 'fontSize', 'fontStyle', 'fontWeight', 'lineHeight', 'padding', 'contentSize', 'wideSize', 'blockGap', 'textDecoration', 'textTransform', 'letterSpacing']; |
|
8501 |
|
8502 /** |
|
8503 * Filters the list of supported styles for a given element. |
|
8504 * |
|
8505 * @param {string[]} blockSupports list of supported styles. |
|
8506 * @param {string|undefined} name block name. |
|
8507 * @param {string|undefined} element element name. |
|
8508 * |
|
8509 * @return {string[]} filtered list of supported styles. |
|
8510 */ |
|
8511 function filterElementBlockSupports(blockSupports, name, element) { |
|
8512 return blockSupports.filter(support => { |
|
8513 if (support === 'fontSize' && element === 'heading') { |
|
8514 return false; |
|
8515 } |
|
8516 |
|
8517 // This is only available for links |
|
8518 if (support === 'textDecoration' && !name && element !== 'link') { |
|
8519 return false; |
|
8520 } |
|
8521 |
|
8522 // This is only available for heading, button, caption and text |
|
8523 if (support === 'textTransform' && !name && !(['heading', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(element) || element === 'button' || element === 'caption' || element === 'text')) { |
|
8524 return false; |
|
8525 } |
|
8526 |
|
8527 // This is only available for heading, button, caption and text |
|
8528 if (support === 'letterSpacing' && !name && !(['heading', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(element) || element === 'button' || element === 'caption' || element === 'text')) { |
|
8529 return false; |
|
8530 } |
|
8531 |
|
8532 // Text columns is only available for blocks. |
|
8533 if (support === 'textColumns' && !name) { |
|
8534 return false; |
|
8535 } |
|
8536 return true; |
|
8537 }); |
|
8538 } |
|
8539 |
|
8540 /** |
|
8541 * Returns the list of supported styles for a given block name and element. |
|
8542 */ |
|
8543 const getSupportedStyles = (0,external_wp_data_namespaceObject.createSelector)((state, name, element) => { |
|
8544 if (!name) { |
|
8545 return filterElementBlockSupports(ROOT_BLOCK_SUPPORTS, name, element); |
|
8546 } |
|
8547 const blockType = selectors_getBlockType(state, name); |
|
8548 if (!blockType) { |
|
8549 return []; |
|
8550 } |
|
8551 const supportKeys = []; |
|
8552 |
|
8553 // Check for blockGap support. |
|
8554 // Block spacing support doesn't map directly to a single style property, so needs to be handled separately. |
|
8555 if (blockType?.supports?.spacing?.blockGap) { |
|
8556 supportKeys.push('blockGap'); |
|
8557 } |
|
8558 |
|
8559 // check for shadow support |
|
8560 if (blockType?.supports?.shadow) { |
|
8561 supportKeys.push('shadow'); |
|
8562 } |
|
8563 Object.keys(__EXPERIMENTAL_STYLE_PROPERTY).forEach(styleName => { |
|
8564 if (!__EXPERIMENTAL_STYLE_PROPERTY[styleName].support) { |
|
8565 return; |
|
8566 } |
|
8567 |
|
8568 // Opting out means that, for certain support keys like background color, |
|
8569 // blocks have to explicitly set the support value false. If the key is |
|
8570 // unset, we still enable it. |
|
8571 if (__EXPERIMENTAL_STYLE_PROPERTY[styleName].requiresOptOut) { |
|
8572 if (__EXPERIMENTAL_STYLE_PROPERTY[styleName].support[0] in blockType.supports && getValueFromObjectPath(blockType.supports, __EXPERIMENTAL_STYLE_PROPERTY[styleName].support) !== false) { |
|
8573 supportKeys.push(styleName); |
|
8574 return; |
|
8575 } |
|
8576 } |
|
8577 if (getValueFromObjectPath(blockType.supports, __EXPERIMENTAL_STYLE_PROPERTY[styleName].support, false)) { |
|
8578 supportKeys.push(styleName); |
|
8579 } |
|
8580 }); |
|
8581 return filterElementBlockSupports(supportKeys, name, element); |
|
8582 }, (state, name) => [state.blockTypes[name]]); |
|
8583 |
|
8584 /** |
|
8585 * Returns the bootstrapped block type metadata for a give block name. |
|
8586 * |
|
8587 * @param {Object} state Data state. |
|
8588 * @param {string} name Block name. |
|
8589 * |
|
8590 * @return {Object} Bootstrapped block type metadata for a block. |
|
8591 */ |
|
8592 function getBootstrappedBlockType(state, name) { |
|
8593 return state.bootstrappedBlockTypes[name]; |
|
8594 } |
|
8595 |
|
8596 /** |
|
8597 * Returns all the unprocessed (before applying the `registerBlockType` filter) |
|
8598 * block type settings as passed during block registration. |
|
8599 * |
|
8600 * @param {Object} state Data state. |
|
8601 * |
|
8602 * @return {Array} Unprocessed block type settings for all blocks. |
|
8603 */ |
|
8604 function getUnprocessedBlockTypes(state) { |
|
8605 return state.unprocessedBlockTypes; |
|
8606 } |
|
8607 |
|
8608 /** |
|
8609 * Returns all the block bindings sources registered. |
|
8610 * |
|
8611 * @param {Object} state Data state. |
|
8612 * |
|
8613 * @return {Object} All the registered sources and their properties. |
|
8614 */ |
|
8615 function getAllBlockBindingsSources(state) { |
|
8616 return state.blockBindingsSources; |
|
8617 } |
|
8618 |
|
8619 /** |
|
8620 * Returns a specific block bindings source. |
|
8621 * |
|
8622 * @param {Object} state Data state. |
|
8623 * @param {string} sourceName Name of the source to get. |
|
8624 * |
|
8625 * @return {Object} The specific block binding source and its properties. |
|
8626 */ |
|
8627 function private_selectors_getBlockBindingsSource(state, sourceName) { |
|
8628 return state.blockBindingsSources[sourceName]; |
|
8629 } |
|
8630 |
|
8631 /** |
|
8632 * Determines if any of the block type's attributes have |
|
8633 * the content role attribute. |
|
8634 * |
|
8635 * @param {Object} state Data state. |
|
8636 * @param {string} blockTypeName Block type name. |
|
8637 * @return {boolean} Whether block type has content role attribute. |
|
8638 */ |
|
8639 const hasContentRoleAttribute = (state, blockTypeName) => { |
|
8640 const blockType = selectors_getBlockType(state, blockTypeName); |
|
8641 if (!blockType) { |
|
8642 return false; |
|
8643 } |
|
8644 return Object.values(blockType.attributes).some(({ |
|
8645 role, |
|
8646 __experimentalRole |
|
8647 }) => { |
|
8648 if (role === 'content') { |
|
8649 return true; |
|
8650 } |
|
8651 if (__experimentalRole === 'content') { |
|
8652 external_wp_deprecated_default()('__experimentalRole attribute', { |
|
8653 since: '6.7', |
|
8654 version: '6.8', |
|
8655 alternative: 'role attribute', |
|
8656 hint: `Check the block.json of the ${blockTypeName} block.` |
|
8657 }); |
|
8658 return true; |
|
8659 } |
|
8660 return false; |
|
8661 }); |
|
8662 }; |
|
8663 |
|
8664 ;// ./node_modules/@wordpress/blocks/build-module/store/selectors.js |
|
8190 /** |
8665 /** |
8191 * External dependencies |
8666 * External dependencies |
8192 */ |
8667 */ |
8193 |
8668 |
8194 |
8669 |
8196 * WordPress dependencies |
8671 * WordPress dependencies |
8197 */ |
8672 */ |
8198 |
8673 |
8199 |
8674 |
8200 |
8675 |
8676 |
|
8201 /** |
8677 /** |
8202 * Internal dependencies |
8678 * Internal dependencies |
8203 */ |
8679 */ |
8680 |
|
8204 |
8681 |
8205 |
8682 |
8206 /** @typedef {import('../api/registration').WPBlockVariation} WPBlockVariation */ |
8683 /** @typedef {import('../api/registration').WPBlockVariation} WPBlockVariation */ |
8207 /** @typedef {import('../api/registration').WPBlockVariationScope} WPBlockVariationScope */ |
8684 /** @typedef {import('../api/registration').WPBlockVariationScope} WPBlockVariationScope */ |
8208 /** @typedef {import('./reducer').WPBlockCategory} WPBlockCategory */ |
8685 /** @typedef {import('./reducer').WPBlockCategory} WPBlockCategory */ |
8281 * </ul> |
8758 * </ul> |
8282 * ); |
8759 * ); |
8283 * }; |
8760 * }; |
8284 * ``` |
8761 * ``` |
8285 * |
8762 * |
8286 * @return {Object?} Block Type. |
8763 * @return {?Object} Block Type. |
8287 */ |
8764 */ |
8288 function selectors_getBlockType(state, name) { |
8765 function selectors_getBlockType(state, name) { |
8289 return state.blockTypes[name]; |
8766 return state.blockTypes[name]; |
8290 } |
8767 } |
8291 |
8768 |
8595 * ) |
9072 * ) |
8596 * ); |
9073 * ); |
8597 * }; |
9074 * }; |
8598 * ``` |
9075 * ``` |
8599 * |
9076 * |
8600 * @return {string?} Default block name. |
9077 * @return {?string} Default block name. |
8601 */ |
9078 */ |
8602 function selectors_getDefaultBlockName(state) { |
9079 function selectors_getDefaultBlockName(state) { |
8603 return state.defaultBlockName; |
9080 return state.defaultBlockName; |
8604 } |
9081 } |
8605 |
9082 |
8631 * ) |
9108 * ) |
8632 * ); |
9109 * ); |
8633 * }; |
9110 * }; |
8634 * ``` |
9111 * ``` |
8635 * |
9112 * |
8636 * @return {string?} Name of the block for handling non-block content. |
9113 * @return {?string} Name of the block for handling non-block content. |
8637 */ |
9114 */ |
8638 function getFreeformFallbackBlockName(state) { |
9115 function getFreeformFallbackBlockName(state) { |
8639 return state.freeformFallbackBlockName; |
9116 return state.freeformFallbackBlockName; |
8640 } |
9117 } |
8641 |
9118 |
8667 * ) |
9144 * ) |
8668 * ); |
9145 * ); |
8669 * }; |
9146 * }; |
8670 * ``` |
9147 * ``` |
8671 * |
9148 * |
8672 * @return {string?} Name of the block for handling unregistered blocks. |
9149 * @return {?string} Name of the block for handling unregistered blocks. |
8673 */ |
9150 */ |
8674 function getUnregisteredFallbackBlockName(state) { |
9151 function getUnregisteredFallbackBlockName(state) { |
8675 return state.unregisteredFallbackBlockName; |
9152 return state.unregisteredFallbackBlockName; |
8676 } |
9153 } |
8677 |
9154 |
8703 * ) |
9180 * ) |
8704 * ); |
9181 * ); |
8705 * }; |
9182 * }; |
8706 * ``` |
9183 * ``` |
8707 * |
9184 * |
8708 * @return {string?} Name of the block for handling the grouping of blocks. |
9185 * @return {?string} Name of the block for handling the grouping of blocks. |
8709 */ |
9186 */ |
8710 function selectors_getGroupingBlockName(state) { |
9187 function selectors_getGroupingBlockName(state) { |
8711 return state.groupingBlockName; |
9188 return state.groupingBlockName; |
8712 } |
9189 } |
8713 |
9190 |
8957 const selectors_hasChildBlocksWithInserterSupport = (state, blockName) => { |
9434 const selectors_hasChildBlocksWithInserterSupport = (state, blockName) => { |
8958 return selectors_getChildBlockNames(state, blockName).some(childBlockName => { |
9435 return selectors_getChildBlockNames(state, blockName).some(childBlockName => { |
8959 return selectors_hasBlockSupport(state, childBlockName, 'inserter', true); |
9436 return selectors_hasBlockSupport(state, childBlockName, 'inserter', true); |
8960 }); |
9437 }); |
8961 }; |
9438 }; |
8962 |
9439 const __experimentalHasContentRoleAttribute = (...args) => { |
8963 /** |
9440 external_wp_deprecated_default()('__experimentalHasContentRoleAttribute', { |
8964 * DO-NOT-USE in production. |
9441 since: '6.7', |
8965 * This selector is created for internal/experimental only usage and may be |
9442 version: '6.8', |
8966 * removed anytime without any warning, causing breakage on any plugin or theme invoking it. |
9443 hint: 'This is a private selector.' |
8967 */ |
|
8968 const __experimentalHasContentRoleAttribute = (0,external_wp_data_namespaceObject.createSelector)((state, blockTypeName) => { |
|
8969 const blockType = selectors_getBlockType(state, blockTypeName); |
|
8970 if (!blockType) { |
|
8971 return false; |
|
8972 } |
|
8973 return Object.entries(blockType.attributes).some(([, { |
|
8974 __experimentalRole |
|
8975 }]) => __experimentalRole === 'content'); |
|
8976 }, (state, blockTypeName) => [state.blockTypes[blockTypeName]?.attributes]); |
|
8977 |
|
8978 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/private-selectors.js |
|
8979 /** |
|
8980 * WordPress dependencies |
|
8981 */ |
|
8982 |
|
8983 |
|
8984 /** |
|
8985 * Internal dependencies |
|
8986 */ |
|
8987 |
|
8988 |
|
8989 |
|
8990 const ROOT_BLOCK_SUPPORTS = ['background', 'backgroundColor', 'color', 'linkColor', 'captionColor', 'buttonColor', 'headingColor', 'fontFamily', 'fontSize', 'fontStyle', 'fontWeight', 'lineHeight', 'padding', 'contentSize', 'wideSize', 'blockGap', 'textDecoration', 'textTransform', 'letterSpacing']; |
|
8991 |
|
8992 /** |
|
8993 * Filters the list of supported styles for a given element. |
|
8994 * |
|
8995 * @param {string[]} blockSupports list of supported styles. |
|
8996 * @param {string|undefined} name block name. |
|
8997 * @param {string|undefined} element element name. |
|
8998 * |
|
8999 * @return {string[]} filtered list of supported styles. |
|
9000 */ |
|
9001 function filterElementBlockSupports(blockSupports, name, element) { |
|
9002 return blockSupports.filter(support => { |
|
9003 if (support === 'fontSize' && element === 'heading') { |
|
9004 return false; |
|
9005 } |
|
9006 |
|
9007 // This is only available for links |
|
9008 if (support === 'textDecoration' && !name && element !== 'link') { |
|
9009 return false; |
|
9010 } |
|
9011 |
|
9012 // This is only available for heading, button, caption and text |
|
9013 if (support === 'textTransform' && !name && !(['heading', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(element) || element === 'button' || element === 'caption' || element === 'text')) { |
|
9014 return false; |
|
9015 } |
|
9016 |
|
9017 // This is only available for heading, button, caption and text |
|
9018 if (support === 'letterSpacing' && !name && !(['heading', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(element) || element === 'button' || element === 'caption' || element === 'text')) { |
|
9019 return false; |
|
9020 } |
|
9021 |
|
9022 // Text columns is only available for blocks. |
|
9023 if (support === 'textColumns' && !name) { |
|
9024 return false; |
|
9025 } |
|
9026 return true; |
|
9027 }); |
9444 }); |
9028 } |
9445 return hasContentRoleAttribute(...args); |
9029 |
9446 }; |
9030 /** |
9447 |
9031 * Returns the list of supported styles for a given block name and element. |
9448 ;// ./node_modules/is-plain-object/dist/is-plain-object.mjs |
9032 */ |
|
9033 const getSupportedStyles = (0,external_wp_data_namespaceObject.createSelector)((state, name, element) => { |
|
9034 if (!name) { |
|
9035 return filterElementBlockSupports(ROOT_BLOCK_SUPPORTS, name, element); |
|
9036 } |
|
9037 const blockType = selectors_getBlockType(state, name); |
|
9038 if (!blockType) { |
|
9039 return []; |
|
9040 } |
|
9041 const supportKeys = []; |
|
9042 |
|
9043 // Check for blockGap support. |
|
9044 // Block spacing support doesn't map directly to a single style property, so needs to be handled separately. |
|
9045 if (blockType?.supports?.spacing?.blockGap) { |
|
9046 supportKeys.push('blockGap'); |
|
9047 } |
|
9048 |
|
9049 // check for shadow support |
|
9050 if (blockType?.supports?.shadow) { |
|
9051 supportKeys.push('shadow'); |
|
9052 } |
|
9053 Object.keys(__EXPERIMENTAL_STYLE_PROPERTY).forEach(styleName => { |
|
9054 if (!__EXPERIMENTAL_STYLE_PROPERTY[styleName].support) { |
|
9055 return; |
|
9056 } |
|
9057 |
|
9058 // Opting out means that, for certain support keys like background color, |
|
9059 // blocks have to explicitly set the support value false. If the key is |
|
9060 // unset, we still enable it. |
|
9061 if (__EXPERIMENTAL_STYLE_PROPERTY[styleName].requiresOptOut) { |
|
9062 if (__EXPERIMENTAL_STYLE_PROPERTY[styleName].support[0] in blockType.supports && getValueFromObjectPath(blockType.supports, __EXPERIMENTAL_STYLE_PROPERTY[styleName].support) !== false) { |
|
9063 supportKeys.push(styleName); |
|
9064 return; |
|
9065 } |
|
9066 } |
|
9067 if (getValueFromObjectPath(blockType.supports, __EXPERIMENTAL_STYLE_PROPERTY[styleName].support, false)) { |
|
9068 supportKeys.push(styleName); |
|
9069 } |
|
9070 }); |
|
9071 return filterElementBlockSupports(supportKeys, name, element); |
|
9072 }, (state, name) => [state.blockTypes[name]]); |
|
9073 |
|
9074 /** |
|
9075 * Returns the bootstrapped block type metadata for a give block name. |
|
9076 * |
|
9077 * @param {Object} state Data state. |
|
9078 * @param {string} name Block name. |
|
9079 * |
|
9080 * @return {Object} Bootstrapped block type metadata for a block. |
|
9081 */ |
|
9082 function getBootstrappedBlockType(state, name) { |
|
9083 return state.bootstrappedBlockTypes[name]; |
|
9084 } |
|
9085 |
|
9086 /** |
|
9087 * Returns all the unprocessed (before applying the `registerBlockType` filter) |
|
9088 * block type settings as passed during block registration. |
|
9089 * |
|
9090 * @param {Object} state Data state. |
|
9091 * |
|
9092 * @return {Array} Unprocessed block type settings for all blocks. |
|
9093 */ |
|
9094 function getUnprocessedBlockTypes(state) { |
|
9095 return state.unprocessedBlockTypes; |
|
9096 } |
|
9097 |
|
9098 /** |
|
9099 * Returns all the block bindings sources registered. |
|
9100 * |
|
9101 * @param {Object} state Data state. |
|
9102 * |
|
9103 * @return {Object} All the registered sources and their properties. |
|
9104 */ |
|
9105 function getAllBlockBindingsSources(state) { |
|
9106 return state.blockBindingsSources; |
|
9107 } |
|
9108 |
|
9109 /** |
|
9110 * Returns a specific block bindings source. |
|
9111 * |
|
9112 * @param {Object} state Data state. |
|
9113 * @param {string} sourceName Name of the source to get. |
|
9114 * |
|
9115 * @return {Object} The specific block binding source and its properties. |
|
9116 */ |
|
9117 function getBlockBindingsSource(state, sourceName) { |
|
9118 return state.blockBindingsSources[sourceName]; |
|
9119 } |
|
9120 |
|
9121 ;// CONCATENATED MODULE: external ["wp","deprecated"] |
|
9122 const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"]; |
|
9123 var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject); |
|
9124 ;// CONCATENATED MODULE: ./node_modules/is-plain-object/dist/is-plain-object.mjs |
|
9125 /*! |
9449 /*! |
9126 * is-plain-object <https://github.com/jonschlinkert/is-plain-object> |
9450 * is-plain-object <https://github.com/jonschlinkert/is-plain-object> |
9127 * |
9451 * |
9128 * Copyright (c) 2014-2017, Jon Schlinkert. |
9452 * Copyright (c) 2014-2017, Jon Schlinkert. |
9129 * Released under the MIT License. |
9453 * Released under the MIT License. |
9157 |
9481 |
9158 |
9482 |
9159 |
9483 |
9160 // EXTERNAL MODULE: ./node_modules/react-is/index.js |
9484 // EXTERNAL MODULE: ./node_modules/react-is/index.js |
9161 var react_is = __webpack_require__(8529); |
9485 var react_is = __webpack_require__(8529); |
9162 ;// CONCATENATED MODULE: external ["wp","hooks"] |
9486 ;// external ["wp","hooks"] |
9163 const external_wp_hooks_namespaceObject = window["wp"]["hooks"]; |
9487 const external_wp_hooks_namespaceObject = window["wp"]["hooks"]; |
9164 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/process-block-type.js |
9488 ;// ./node_modules/@wordpress/blocks/build-module/store/process-block-type.js |
9165 /** |
9489 /** |
9166 * External dependencies |
9490 * External dependencies |
9167 */ |
9491 */ |
9168 |
9492 |
9169 |
9493 |
9172 * WordPress dependencies |
9496 * WordPress dependencies |
9173 */ |
9497 */ |
9174 |
9498 |
9175 |
9499 |
9176 |
9500 |
9501 |
|
9177 /** |
9502 /** |
9178 * Internal dependencies |
9503 * Internal dependencies |
9179 */ |
9504 */ |
9180 |
9505 |
9181 |
9506 |
9182 |
9507 |
9183 /** @typedef {import('../api/registration').WPBlockType} WPBlockType */ |
9508 /** @typedef {import('../api/registration').WPBlockType} WPBlockType */ |
9184 |
|
9185 const error = (...args) => window?.console?.error?.(...args); |
|
9186 const warn = (...args) => window?.console?.warn?.(...args); |
|
9187 |
9509 |
9188 /** |
9510 /** |
9189 * Mapping of legacy category slugs to their latest normal values, used to |
9511 * Mapping of legacy category slugs to their latest normal values, used to |
9190 * accommodate updates of the default set of block categories. |
9512 * accommodate updates of the default set of block categories. |
9191 * |
9513 * |
9248 styles: [], |
9570 styles: [], |
9249 blockHooks: {}, |
9571 blockHooks: {}, |
9250 save: () => null, |
9572 save: () => null, |
9251 ...bootstrappedBlockType, |
9573 ...bootstrappedBlockType, |
9252 ...blockSettings, |
9574 ...blockSettings, |
9253 variations: mergeBlockVariations(bootstrappedBlockType?.variations, blockSettings?.variations) |
9575 // blockType.variations can be defined as a filePath. |
9576 variations: mergeBlockVariations(Array.isArray(bootstrappedBlockType?.variations) ? bootstrappedBlockType.variations : [], Array.isArray(blockSettings?.variations) ? blockSettings.variations : []) |
|
9254 }; |
9577 }; |
9255 const settings = (0,external_wp_hooks_namespaceObject.applyFilters)('blocks.registerBlockType', blockType, name, null); |
9578 const settings = (0,external_wp_hooks_namespaceObject.applyFilters)('blocks.registerBlockType', blockType, name, null); |
9256 if (settings.description && typeof settings.description !== 'string') { |
9579 if (settings.description && typeof settings.description !== 'string') { |
9257 external_wp_deprecated_default()('Declaring non-string block descriptions', { |
9580 external_wp_deprecated_default()('Declaring non-string block descriptions', { |
9258 since: '6.2' |
9581 since: '6.2' |
9271 ...omit(blockType, DEPRECATED_ENTRY_KEYS), |
9594 ...omit(blockType, DEPRECATED_ENTRY_KEYS), |
9272 ...deprecation |
9595 ...deprecation |
9273 }, blockType.name, deprecation)).filter(([key]) => DEPRECATED_ENTRY_KEYS.includes(key)))); |
9596 }, blockType.name, deprecation)).filter(([key]) => DEPRECATED_ENTRY_KEYS.includes(key)))); |
9274 } |
9597 } |
9275 if (!isPlainObject(settings)) { |
9598 if (!isPlainObject(settings)) { |
9276 error('Block settings must be a valid object.'); |
9599 true ? external_wp_warning_default()('Block settings must be a valid object.') : 0; |
9277 return; |
9600 return; |
9278 } |
9601 } |
9279 if (typeof settings.save !== 'function') { |
9602 if (typeof settings.save !== 'function') { |
9280 error('The "save" property must be a valid function.'); |
9603 true ? external_wp_warning_default()('The "save" property must be a valid function.') : 0; |
9281 return; |
9604 return; |
9282 } |
9605 } |
9283 if ('edit' in settings && !(0,react_is.isValidElementType)(settings.edit)) { |
9606 if ('edit' in settings && !(0,react_is.isValidElementType)(settings.edit)) { |
9284 error('The "edit" property must be a valid component.'); |
9607 true ? external_wp_warning_default()('The "edit" property must be a valid component.') : 0; |
9285 return; |
9608 return; |
9286 } |
9609 } |
9287 |
9610 |
9288 // Canonicalize legacy categories to equivalent fallback. |
9611 // Canonicalize legacy categories to equivalent fallback. |
9289 if (LEGACY_CATEGORY_MAPPING.hasOwnProperty(settings.category)) { |
9612 if (LEGACY_CATEGORY_MAPPING.hasOwnProperty(settings.category)) { |
9290 settings.category = LEGACY_CATEGORY_MAPPING[settings.category]; |
9613 settings.category = LEGACY_CATEGORY_MAPPING[settings.category]; |
9291 } |
9614 } |
9292 if ('category' in settings && !select.getCategories().some(({ |
9615 if ('category' in settings && !select.getCategories().some(({ |
9293 slug |
9616 slug |
9294 }) => slug === settings.category)) { |
9617 }) => slug === settings.category)) { |
9295 warn('The block "' + name + '" is registered with an invalid category "' + settings.category + '".'); |
9618 true ? external_wp_warning_default()('The block "' + name + '" is registered with an invalid category "' + settings.category + '".') : 0; |
9296 delete settings.category; |
9619 delete settings.category; |
9297 } |
9620 } |
9298 if (!('title' in settings) || settings.title === '') { |
9621 if (!('title' in settings) || settings.title === '') { |
9299 error('The block "' + name + '" must have a title.'); |
9622 true ? external_wp_warning_default()('The block "' + name + '" must have a title.') : 0; |
9300 return; |
9623 return; |
9301 } |
9624 } |
9302 if (typeof settings.title !== 'string') { |
9625 if (typeof settings.title !== 'string') { |
9303 error('Block titles must be strings.'); |
9626 true ? external_wp_warning_default()('Block titles must be strings.') : 0; |
9304 return; |
9627 return; |
9305 } |
9628 } |
9306 settings.icon = normalizeIconObject(settings.icon); |
9629 settings.icon = normalizeIconObject(settings.icon); |
9307 if (!isValidIcon(settings.icon.src)) { |
9630 if (!isValidIcon(settings.icon.src)) { |
9308 error('The icon passed is invalid. ' + 'The icon should be a string, an element, a function, or an object following the specifications documented in https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#icon-optional'); |
9631 true ? external_wp_warning_default()('The icon passed is invalid. ' + 'The icon should be a string, an element, a function, or an object following the specifications documented in https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#icon-optional') : 0; |
9632 return; |
|
9633 } |
|
9634 if (typeof settings?.parent === 'string' || settings?.parent instanceof String) { |
|
9635 settings.parent = [settings.parent]; |
|
9636 true ? external_wp_warning_default()('Parent must be undefined or an array of strings (block types), but it is a string.') : 0; |
|
9637 // Intentionally continue: |
|
9638 // |
|
9639 // While string values were never supported, they appeared to work with some unintended side-effects |
|
9640 // that have been fixed by [#66250](https://github.com/WordPress/gutenberg/pull/66250). |
|
9641 // |
|
9642 // To be backwards-compatible, this code that automatically migrates strings to arrays. |
|
9643 } |
|
9644 if (!Array.isArray(settings?.parent) && settings?.parent !== undefined) { |
|
9645 true ? external_wp_warning_default()('Parent must be undefined or an array of block types, but it is ', settings.parent) : 0; |
|
9646 return; |
|
9647 } |
|
9648 if (1 === settings?.parent?.length && name === settings.parent[0]) { |
|
9649 true ? external_wp_warning_default()('Block "' + name + '" cannot be a parent of itself. Please remove the block name from the parent list.') : 0; |
|
9309 return; |
9650 return; |
9310 } |
9651 } |
9311 return settings; |
9652 return settings; |
9312 }; |
9653 }; |
9313 |
9654 |
9314 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/actions.js |
9655 ;// ./node_modules/@wordpress/blocks/build-module/store/actions.js |
9315 /** |
9656 /** |
9316 * WordPress dependencies |
9657 * WordPress dependencies |
9317 */ |
9658 */ |
9318 |
9659 |
9319 |
9660 |
9622 type: 'REMOVE_BLOCK_COLLECTION', |
9963 type: 'REMOVE_BLOCK_COLLECTION', |
9623 namespace |
9964 namespace |
9624 }; |
9965 }; |
9625 } |
9966 } |
9626 |
9967 |
9627 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/private-actions.js |
9968 ;// ./node_modules/@wordpress/blocks/build-module/store/private-actions.js |
9628 /** |
9969 /** |
9629 * Internal dependencies |
9970 * Internal dependencies |
9630 */ |
9971 */ |
9631 |
9972 |
9632 |
9973 |
9633 /** @typedef {import('../api/registration').WPBlockType} WPBlockType */ |
9974 /** @typedef {import('../api/registration').WPBlockType} WPBlockType */ |
9634 |
9975 |
9635 /** |
9976 /** |
9636 * Add bootstrapped block type metadata to the store. These metadata usually come from |
9977 * Add bootstrapped block type metadata to the store. These metadata usually come from |
9637 * the `block.json` file and are either statically boostrapped from the server, or |
9978 * the `block.json` file and are either statically bootstrapped from the server, or |
9638 * passed as the `metadata` parameter to the `registerBlockType` function. |
9979 * passed as the `metadata` parameter to the `registerBlockType` function. |
9639 * |
9980 * |
9640 * @param {string} name Block name. |
9981 * @param {string} name Block name. |
9641 * @param {WPBlockType} blockType Block type metadata. |
9982 * @param {WPBlockType} blockType Block type metadata. |
9642 */ |
9983 */ |
9671 dispatch.addBlockTypes(processedBlockType); |
10012 dispatch.addBlockTypes(processedBlockType); |
9672 }; |
10013 }; |
9673 } |
10014 } |
9674 |
10015 |
9675 /** |
10016 /** |
9676 * Register new block bindings source. |
10017 * Adds new block bindings source. |
9677 * |
10018 * |
9678 * @param {string} source Name of the source to register. |
10019 * @param {string} source Name of the source to register. |
9679 */ |
10020 */ |
9680 function registerBlockBindingsSource(source) { |
10021 function addBlockBindingsSource(source) { |
9681 return { |
10022 return { |
9682 type: 'REGISTER_BLOCK_BINDINGS_SOURCE', |
10023 type: 'ADD_BLOCK_BINDINGS_SOURCE', |
9683 sourceName: source.name, |
10024 name: source.name, |
9684 sourceLabel: source.label, |
10025 label: source.label, |
9685 getValue: source.getValue, |
10026 usesContext: source.usesContext, |
9686 setValue: source.setValue, |
10027 getValues: source.getValues, |
9687 setValues: source.setValues, |
10028 setValues: source.setValues, |
9688 getPlaceholder: source.getPlaceholder, |
10029 canUserEditValue: source.canUserEditValue, |
9689 canUserEditValue: source.canUserEditValue |
10030 getFieldsList: source.getFieldsList |
9690 }; |
10031 }; |
9691 } |
10032 } |
9692 |
10033 |
9693 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/constants.js |
10034 /** |
10035 * Removes existing block bindings source. |
|
10036 * |
|
10037 * @param {string} name Name of the source to remove. |
|
10038 */ |
|
10039 function removeBlockBindingsSource(name) { |
|
10040 return { |
|
10041 type: 'REMOVE_BLOCK_BINDINGS_SOURCE', |
|
10042 name |
|
10043 }; |
|
10044 } |
|
10045 |
|
10046 ;// ./node_modules/@wordpress/blocks/build-module/store/constants.js |
|
9694 const STORE_NAME = 'core/blocks'; |
10047 const STORE_NAME = 'core/blocks'; |
9695 |
10048 |
9696 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/index.js |
10049 ;// ./node_modules/@wordpress/blocks/build-module/store/index.js |
9697 /** |
10050 /** |
9698 * WordPress dependencies |
10051 * WordPress dependencies |
9699 */ |
10052 */ |
9700 |
10053 |
9701 |
10054 |
9724 }); |
10077 }); |
9725 (0,external_wp_data_namespaceObject.register)(store); |
10078 (0,external_wp_data_namespaceObject.register)(store); |
9726 unlock(store).registerPrivateSelectors(private_selectors_namespaceObject); |
10079 unlock(store).registerPrivateSelectors(private_selectors_namespaceObject); |
9727 unlock(store).registerPrivateActions(private_actions_namespaceObject); |
10080 unlock(store).registerPrivateActions(private_actions_namespaceObject); |
9728 |
10081 |
9729 ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js |
10082 ;// ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/native.js |
9730 const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); |
10083 const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); |
9731 /* harmony default export */ const esm_browser_native = ({ |
10084 /* harmony default export */ const esm_browser_native = ({ |
9732 randomUUID |
10085 randomUUID |
9733 }); |
10086 }); |
9734 ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js |
10087 ;// ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/rng.js |
9735 // Unique ID creation requires a high quality random # generator. In the browser we therefore |
10088 // Unique ID creation requires a high quality random # generator. In the browser we therefore |
9736 // require the crypto API and do not support built-in fallback to lower quality random number |
10089 // require the crypto API and do not support built-in fallback to lower quality random number |
9737 // generators (like Math.random()). |
10090 // generators (like Math.random()). |
9738 let getRandomValues; |
10091 let getRandomValues; |
9739 const rnds8 = new Uint8Array(16); |
10092 const rnds8 = new Uint8Array(16); |
9748 } |
10101 } |
9749 } |
10102 } |
9750 |
10103 |
9751 return getRandomValues(rnds8); |
10104 return getRandomValues(rnds8); |
9752 } |
10105 } |
9753 ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js |
10106 ;// ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/stringify.js |
9754 |
10107 |
9755 /** |
10108 /** |
9756 * Convert array of 16 byte values to UUID string format of the form: |
10109 * Convert array of 16 byte values to UUID string format of the form: |
9757 * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX |
10110 * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX |
9758 */ |
10111 */ |
9782 |
10135 |
9783 return uuid; |
10136 return uuid; |
9784 } |
10137 } |
9785 |
10138 |
9786 /* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify))); |
10139 /* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify))); |
9787 ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js |
10140 ;// ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/v4.js |
9788 |
10141 |
9789 |
10142 |
9790 |
10143 |
9791 |
10144 |
9792 function v4(options, buf, offset) { |
10145 function v4(options, buf, offset) { |
9812 |
10165 |
9813 return unsafeStringify(rnds); |
10166 return unsafeStringify(rnds); |
9814 } |
10167 } |
9815 |
10168 |
9816 /* harmony default export */ const esm_browser_v4 = (v4); |
10169 /* harmony default export */ const esm_browser_v4 = (v4); |
9817 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/factory.js |
10170 ;// ./node_modules/@wordpress/blocks/build-module/api/factory.js |
9818 /** |
10171 /** |
9819 * External dependencies |
10172 * External dependencies |
9820 */ |
10173 */ |
9821 |
10174 |
9822 |
10175 |
9839 * @param {?Array} innerBlocks Nested blocks. |
10192 * @param {?Array} innerBlocks Nested blocks. |
9840 * |
10193 * |
9841 * @return {Object} Block object. |
10194 * @return {Object} Block object. |
9842 */ |
10195 */ |
9843 function createBlock(name, attributes = {}, innerBlocks = []) { |
10196 function createBlock(name, attributes = {}, innerBlocks = []) { |
10197 if (!isBlockRegistered(name)) { |
|
10198 return createBlock('core/missing', { |
|
10199 originalName: name, |
|
10200 originalContent: '', |
|
10201 originalUndelimitedContent: '' |
|
10202 }); |
|
10203 } |
|
9844 const sanitizedAttributes = __experimentalSanitizeBlockAttributes(name, attributes); |
10204 const sanitizedAttributes = __experimentalSanitizeBlockAttributes(name, attributes); |
9845 const clientId = esm_browser_v4(); |
10205 const clientId = esm_browser_v4(); |
9846 |
10206 |
9847 // Blocks are stored with a unique ID, the assigned type name, the block |
10207 // Blocks are stored with a unique ID, the assigned type name, the block |
9848 // attributes, and their inner blocks. |
10208 // attributes, and their inner blocks. |
9882 * @param {?Array} newInnerBlocks Nested blocks. |
10242 * @param {?Array} newInnerBlocks Nested blocks. |
9883 * |
10243 * |
9884 * @return {Object} A cloned block. |
10244 * @return {Object} A cloned block. |
9885 */ |
10245 */ |
9886 function __experimentalCloneSanitizedBlock(block, mergeAttributes = {}, newInnerBlocks) { |
10246 function __experimentalCloneSanitizedBlock(block, mergeAttributes = {}, newInnerBlocks) { |
10247 const { |
|
10248 name |
|
10249 } = block; |
|
10250 if (!isBlockRegistered(name)) { |
|
10251 return createBlock('core/missing', { |
|
10252 originalName: name, |
|
10253 originalContent: '', |
|
10254 originalUndelimitedContent: '' |
|
10255 }); |
|
10256 } |
|
9887 const clientId = esm_browser_v4(); |
10257 const clientId = esm_browser_v4(); |
9888 const sanitizedAttributes = __experimentalSanitizeBlockAttributes(block.name, { |
10258 const sanitizedAttributes = __experimentalSanitizeBlockAttributes(name, { |
9889 ...block.attributes, |
10259 ...block.attributes, |
9890 ...mergeAttributes |
10260 ...mergeAttributes |
9891 }); |
10261 }); |
9892 return { |
10262 return { |
9893 ...block, |
10263 ...block, |
10124 return []; |
10494 return []; |
10125 } |
10495 } |
10126 const usingMobileTransformations = transforms.supportedMobileTransforms && Array.isArray(transforms.supportedMobileTransforms); |
10496 const usingMobileTransformations = transforms.supportedMobileTransforms && Array.isArray(transforms.supportedMobileTransforms); |
10127 const filteredTransforms = usingMobileTransformations ? transforms[direction].filter(t => { |
10497 const filteredTransforms = usingMobileTransformations ? transforms[direction].filter(t => { |
10128 if (t.type === 'raw') { |
10498 if (t.type === 'raw') { |
10499 return true; |
|
10500 } |
|
10501 if (t.type === 'prefix') { |
|
10129 return true; |
10502 return true; |
10130 } |
10503 } |
10131 if (!t.blocks || !t.blocks.length) { |
10504 if (!t.blocks || !t.blocks.length) { |
10132 return false; |
10505 return false; |
10133 } |
10506 } |
10245 * @param {Object} example |
10618 * @param {Object} example |
10246 * |
10619 * |
10247 * @return {Object} block. |
10620 * @return {Object} block. |
10248 */ |
10621 */ |
10249 const getBlockFromExample = (name, example) => { |
10622 const getBlockFromExample = (name, example) => { |
10250 try { |
10623 var _example$innerBlocks; |
10251 var _example$innerBlocks; |
10624 return createBlock(name, example.attributes, ((_example$innerBlocks = example.innerBlocks) !== null && _example$innerBlocks !== void 0 ? _example$innerBlocks : []).map(innerBlock => getBlockFromExample(innerBlock.name, innerBlock))); |
10252 return createBlock(name, example.attributes, ((_example$innerBlocks = example.innerBlocks) !== null && _example$innerBlocks !== void 0 ? _example$innerBlocks : []).map(innerBlock => getBlockFromExample(innerBlock.name, innerBlock))); |
|
10253 } catch { |
|
10254 return createBlock('core/missing', { |
|
10255 originalName: name, |
|
10256 originalContent: '', |
|
10257 originalUndelimitedContent: '' |
|
10258 }); |
|
10259 } |
|
10260 }; |
10625 }; |
10261 |
10626 |
10262 ;// CONCATENATED MODULE: external ["wp","blockSerializationDefaultParser"] |
10627 ;// external ["wp","blockSerializationDefaultParser"] |
10263 const external_wp_blockSerializationDefaultParser_namespaceObject = window["wp"]["blockSerializationDefaultParser"]; |
10628 const external_wp_blockSerializationDefaultParser_namespaceObject = window["wp"]["blockSerializationDefaultParser"]; |
10264 ;// CONCATENATED MODULE: external ["wp","autop"] |
10629 ;// external ["wp","autop"] |
10265 const external_wp_autop_namespaceObject = window["wp"]["autop"]; |
10630 const external_wp_autop_namespaceObject = window["wp"]["autop"]; |
10266 ;// CONCATENATED MODULE: external ["wp","isShallowEqual"] |
10631 ;// external ["wp","isShallowEqual"] |
10267 const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"]; |
10632 const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"]; |
10268 var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject); |
10633 var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject); |
10269 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/parser/serialize-raw-block.js |
10634 ;// ./node_modules/@wordpress/blocks/build-module/api/parser/serialize-raw-block.js |
10270 /** |
10635 /** |
10271 * Internal dependencies |
10636 * Internal dependencies |
10272 */ |
10637 */ |
10273 |
10638 |
10274 |
10639 |
10314 // `null` denotes a nested block, otherwise we have an HTML fragment. |
10679 // `null` denotes a nested block, otherwise we have an HTML fragment. |
10315 item !== null ? item : serializeRawBlock(innerBlocks[childIndex++], options)).join('\n').replace(/\n+/g, '\n').trim(); |
10680 item !== null ? item : serializeRawBlock(innerBlocks[childIndex++], options)).join('\n').replace(/\n+/g, '\n').trim(); |
10316 return isCommentDelimited ? getCommentDelimitedContent(blockName, attrs, content) : content; |
10681 return isCommentDelimited ? getCommentDelimitedContent(blockName, attrs, content) : content; |
10317 } |
10682 } |
10318 |
10683 |
10319 ;// CONCATENATED MODULE: external "ReactJSXRuntime" |
10684 ;// external "ReactJSXRuntime" |
10320 const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"]; |
10685 const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"]; |
10321 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/serializer.js |
10686 ;// ./node_modules/@wordpress/blocks/build-module/api/serializer.js |
10322 /** |
10687 /** |
10323 * WordPress dependencies |
10688 * WordPress dependencies |
10324 */ |
10689 */ |
10690 |
|
10325 |
10691 |
10326 |
10692 |
10327 |
10693 |
10328 |
10694 |
10329 |
10695 |
10524 // "undefined" source refers to attributes saved in the block comment. |
10890 // "undefined" source refers to attributes saved in the block comment. |
10525 if (attributeSchema.source !== undefined) { |
10891 if (attributeSchema.source !== undefined) { |
10526 return accumulator; |
10892 return accumulator; |
10527 } |
10893 } |
10528 |
10894 |
10895 // Ignore all local attributes |
|
10896 if (attributeSchema.role === 'local') { |
|
10897 return accumulator; |
|
10898 } |
|
10899 if (attributeSchema.__experimentalRole === 'local') { |
|
10900 external_wp_deprecated_default()('__experimentalRole attribute', { |
|
10901 since: '6.7', |
|
10902 version: '6.8', |
|
10903 alternative: 'role attribute', |
|
10904 hint: `Check the block.json of the ${blockType?.name} block.` |
|
10905 }); |
|
10906 return accumulator; |
|
10907 } |
|
10908 |
|
10529 // Ignore default value. |
10909 // Ignore default value. |
10530 if ('default' in attributeSchema && JSON.stringify(attributeSchema.default) === JSON.stringify(value)) { |
10910 if ('default' in attributeSchema && JSON.stringify(attributeSchema.default) === JSON.stringify(value)) { |
10531 return accumulator; |
10911 return accumulator; |
10532 } |
10912 } |
10533 |
10913 |
10660 function serialize(blocks, options) { |
11040 function serialize(blocks, options) { |
10661 const blocksArray = Array.isArray(blocks) ? blocks : [blocks]; |
11041 const blocksArray = Array.isArray(blocks) ? blocks : [blocks]; |
10662 return blocksArray.map(block => serializeBlock(block, options)).join('\n\n'); |
11042 return blocksArray.map(block => serializeBlock(block, options)).join('\n\n'); |
10663 } |
11043 } |
10664 |
11044 |
10665 ;// CONCATENATED MODULE: ./node_modules/simple-html-tokenizer/dist/es6/index.js |
11045 ;// ./node_modules/simple-html-tokenizer/dist/es6/index.js |
10666 /** |
11046 /** |
10667 * generated from https://raw.githubusercontent.com/w3c/html/26b5126f96f736f796b9e29718138919dd513744/entities.json |
11047 * generated from https://raw.githubusercontent.com/w3c/html/26b5126f96f736f796b9e29718138919dd513744/entities.json |
10668 * do not edit |
11048 * do not edit |
10669 */ |
11049 */ |
10670 var namedCharRefs = { |
11050 var namedCharRefs = { |
11564 |
11944 |
11565 |
11945 |
11566 // EXTERNAL MODULE: ./node_modules/fast-deep-equal/es6/index.js |
11946 // EXTERNAL MODULE: ./node_modules/fast-deep-equal/es6/index.js |
11567 var es6 = __webpack_require__(7734); |
11947 var es6 = __webpack_require__(7734); |
11568 var es6_default = /*#__PURE__*/__webpack_require__.n(es6); |
11948 var es6_default = /*#__PURE__*/__webpack_require__.n(es6); |
11569 ;// CONCATENATED MODULE: external ["wp","htmlEntities"] |
11949 ;// external ["wp","htmlEntities"] |
11570 const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"]; |
11950 const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"]; |
11571 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/validation/logger.js |
11951 ;// ./node_modules/@wordpress/blocks/build-module/api/validation/logger.js |
11572 /** |
11952 /** |
11573 * @typedef LoggerItem |
11953 * @typedef LoggerItem |
11574 * @property {Function} log Which logger recorded the message |
11954 * @property {Function} log Which logger recorded the message |
11575 * @property {Array<any>} args White arguments were supplied to the logger |
11955 * @property {Array<any>} args White arguments were supplied to the logger |
11576 */ |
11956 */ |
11628 return queue; |
12008 return queue; |
11629 } |
12009 } |
11630 }; |
12010 }; |
11631 } |
12011 } |
11632 |
12012 |
11633 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/validation/index.js |
12013 ;// ./node_modules/@wordpress/blocks/build-module/api/validation/index.js |
11634 /** |
12014 /** |
11635 * External dependencies |
12015 * External dependencies |
11636 */ |
12016 */ |
11637 |
12017 |
11638 |
12018 |
11736 * positively against the full set. |
12116 * positively against the full set. |
11737 * |
12117 * |
11738 * "The ampersand must be followed by one of the names given in the named |
12118 * "The ampersand must be followed by one of the names given in the named |
11739 * character references section, using the same case." |
12119 * character references section, using the same case." |
11740 * |
12120 * |
11741 * Tested aginst "12.5 Named character references": |
12121 * Tested against "12.5 Named character references": |
11742 * |
12122 * |
11743 * ``` |
12123 * ``` |
11744 * const references = Array.from( document.querySelectorAll( |
12124 * const references = Array.from( document.querySelectorAll( |
11745 * '#named-character-references-table tr[id^=entity-] td:first-child' |
12125 * '#named-character-references-table tr[id^=entity-] td:first-child' |
11746 * ) ).map( ( code ) => code.textContent ) |
12126 * ) ).map( ( code ) => code.textContent ) |
11791 function isValidCharacterReference(text) { |
12171 function isValidCharacterReference(text) { |
11792 return REGEXP_NAMED_CHARACTER_REFERENCE.test(text) || REGEXP_DECIMAL_CHARACTER_REFERENCE.test(text) || REGEXP_HEXADECIMAL_CHARACTER_REFERENCE.test(text); |
12172 return REGEXP_NAMED_CHARACTER_REFERENCE.test(text) || REGEXP_DECIMAL_CHARACTER_REFERENCE.test(text) || REGEXP_HEXADECIMAL_CHARACTER_REFERENCE.test(text); |
11793 } |
12173 } |
11794 |
12174 |
11795 /** |
12175 /** |
11796 * Subsitute EntityParser class for `simple-html-tokenizer` which uses the |
12176 * Substitute EntityParser class for `simple-html-tokenizer` which uses the |
11797 * implementation of `decodeEntities` from `html-entities`, in order to avoid |
12177 * implementation of `decodeEntities` from `html-entities`, in order to avoid |
11798 * bundling a massive named character reference. |
12178 * bundling a massive named character reference. |
11799 * |
12179 * |
11800 * @see https://github.com/tildeio/simple-html-tokenizer/tree/HEAD/src/entity-parser.ts |
12180 * @see https://github.com/tildeio/simple-html-tokenizer/tree/HEAD/src/entity-parser.ts |
11801 */ |
12181 */ |
12251 }; |
12631 }; |
12252 const [isValid] = validateBlock(block, blockType); |
12632 const [isValid] = validateBlock(block, blockType); |
12253 return isValid; |
12633 return isValid; |
12254 } |
12634 } |
12255 |
12635 |
12256 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/parser/convert-legacy-block.js |
12636 ;// ./node_modules/@wordpress/blocks/build-module/api/parser/convert-legacy-block.js |
12257 /** |
12637 /** |
12258 * Convert legacy blocks to their canonical form. This function is used |
12638 * Convert legacy blocks to their canonical form. This function is used |
12259 * both in the parser level for previous content and to convert such blocks |
12639 * both in the parser level for previous content and to convert such blocks |
12260 * used in Custom Post Types templates. |
12640 * used in Custom Post Types templates. |
12261 * |
12641 * |
12329 if (name === 'core/post-comments') { |
12709 if (name === 'core/post-comments') { |
12330 name = 'core/comments'; |
12710 name = 'core/comments'; |
12331 newAttributes.legacy = true; |
12711 newAttributes.legacy = true; |
12332 } |
12712 } |
12333 |
12713 |
12714 // Column count was stored as a string from WP 6.3-6.6. Convert it to a number. |
|
12715 if (attributes.layout?.type === 'grid' && typeof attributes.layout?.columnCount === 'string') { |
|
12716 newAttributes.layout = { |
|
12717 ...newAttributes.layout, |
|
12718 columnCount: parseInt(attributes.layout.columnCount, 10) |
|
12719 }; |
|
12720 } |
|
12721 |
|
12722 // Column span and row span were stored as strings in WP 6.6. Convert them to numbers. |
|
12723 if (typeof attributes.style?.layout?.columnSpan === 'string') { |
|
12724 const columnSpanNumber = parseInt(attributes.style.layout.columnSpan, 10); |
|
12725 newAttributes.style = { |
|
12726 ...newAttributes.style, |
|
12727 layout: { |
|
12728 ...newAttributes.style.layout, |
|
12729 columnSpan: isNaN(columnSpanNumber) ? undefined : columnSpanNumber |
|
12730 } |
|
12731 }; |
|
12732 } |
|
12733 if (typeof attributes.style?.layout?.rowSpan === 'string') { |
|
12734 const rowSpanNumber = parseInt(attributes.style.layout.rowSpan, 10); |
|
12735 newAttributes.style = { |
|
12736 ...newAttributes.style, |
|
12737 layout: { |
|
12738 ...newAttributes.style.layout, |
|
12739 rowSpan: isNaN(rowSpanNumber) ? undefined : rowSpanNumber |
|
12740 } |
|
12741 }; |
|
12742 } |
|
12743 |
|
12334 // The following code is only relevant for the Gutenberg plugin. |
12744 // The following code is only relevant for the Gutenberg plugin. |
12335 // It's a stand-alone if statement for dead-code elimination. |
12745 // It's a stand-alone if statement for dead-code elimination. |
12336 if (false) {} |
12746 if (false) {} |
12337 return [name, newAttributes]; |
12747 return [name, newAttributes]; |
12338 } |
12748 } |
12339 |
12749 |
12340 ;// CONCATENATED MODULE: ./node_modules/hpq/es/get-path.js |
12750 ;// ./node_modules/hpq/es/get-path.js |
12341 /** |
12751 /** |
12342 * Given object and string of dot-delimited path segments, returns value at |
12752 * Given object and string of dot-delimited path segments, returns value at |
12343 * path or undefined if path cannot be resolved. |
12753 * path or undefined if path cannot be resolved. |
12344 * |
12754 * |
12345 * @param {Object} object Lookup object |
12755 * @param {Object} object Lookup object |
12358 object = object[segment]; |
12768 object = object[segment]; |
12359 } |
12769 } |
12360 |
12770 |
12361 return object; |
12771 return object; |
12362 } |
12772 } |
12363 ;// CONCATENATED MODULE: ./node_modules/hpq/es/index.js |
12773 ;// ./node_modules/hpq/es/index.js |
12364 /** |
12774 /** |
12365 * Internal dependencies |
12775 * Internal dependencies |
12366 */ |
12776 */ |
12367 |
12777 |
12368 /** |
12778 /** |
12514 return [].map.call(matches, function (match) { |
12924 return [].map.call(matches, function (match) { |
12515 return parse(match, matchers); |
12925 return parse(match, matchers); |
12516 }); |
12926 }); |
12517 }; |
12927 }; |
12518 } |
12928 } |
12519 ;// CONCATENATED MODULE: ./node_modules/memize/dist/index.js |
12929 ;// ./node_modules/memize/dist/index.js |
12520 /** |
12930 /** |
12521 * Memize options object. |
12931 * Memize options object. |
12522 * |
12932 * |
12523 * @typedef MemizeOptions |
12933 * @typedef MemizeOptions |
12524 * |
12934 * |
12676 return memoized; |
13086 return memoized; |
12677 } |
13087 } |
12678 |
13088 |
12679 |
13089 |
12680 |
13090 |
12681 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/matchers.js |
13091 ;// ./node_modules/@wordpress/blocks/build-module/api/matchers.js |
12682 /** |
13092 /** |
12683 * External dependencies |
13093 * External dependencies |
12684 */ |
13094 */ |
12685 |
13095 |
12686 |
13096 |
12723 return target ? external_wp_richText_namespaceObject.RichTextData.fromHTMLElement(target, { |
13133 return target ? external_wp_richText_namespaceObject.RichTextData.fromHTMLElement(target, { |
12724 preserveWhiteSpace |
13134 preserveWhiteSpace |
12725 }) : external_wp_richText_namespaceObject.RichTextData.empty(); |
13135 }) : external_wp_richText_namespaceObject.RichTextData.empty(); |
12726 }; |
13136 }; |
12727 |
13137 |
12728 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/node.js |
13138 ;// ./node_modules/@wordpress/blocks/build-module/api/node.js |
12729 /** |
13139 /** |
12730 * WordPress dependencies |
13140 * WordPress dependencies |
12731 */ |
13141 */ |
12732 |
13142 |
12733 |
13143 |
12880 fromDOM, |
13290 fromDOM, |
12881 toHTML, |
13291 toHTML, |
12882 matcher |
13292 matcher |
12883 }); |
13293 }); |
12884 |
13294 |
12885 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/children.js |
13295 ;// ./node_modules/@wordpress/blocks/build-module/api/children.js |
12886 /** |
13296 /** |
12887 * WordPress dependencies |
13297 * WordPress dependencies |
12888 */ |
13298 */ |
12889 |
13299 |
12890 |
13300 |
13056 fromDOM: children_fromDOM, |
13466 fromDOM: children_fromDOM, |
13057 toHTML: children_toHTML, |
13467 toHTML: children_toHTML, |
13058 matcher: children_matcher |
13468 matcher: children_matcher |
13059 }); |
13469 }); |
13060 |
13470 |
13061 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/parser/get-block-attributes.js |
13471 ;// ./node_modules/@wordpress/blocks/build-module/api/parser/get-block-attributes.js |
13062 /** |
13472 /** |
13063 * External dependencies |
13473 * External dependencies |
13064 */ |
13474 */ |
13065 |
13475 |
13066 |
13476 |
13294 const blockType = normalizeBlockType(blockTypeOrName); |
13704 const blockType = normalizeBlockType(blockTypeOrName); |
13295 const blockAttributes = Object.fromEntries(Object.entries((_blockType$attributes = blockType.attributes) !== null && _blockType$attributes !== void 0 ? _blockType$attributes : {}).map(([key, schema]) => [key, getBlockAttribute(key, schema, doc, attributes, innerHTML)])); |
13705 const blockAttributes = Object.fromEntries(Object.entries((_blockType$attributes = blockType.attributes) !== null && _blockType$attributes !== void 0 ? _blockType$attributes : {}).map(([key, schema]) => [key, getBlockAttribute(key, schema, doc, attributes, innerHTML)])); |
13296 return (0,external_wp_hooks_namespaceObject.applyFilters)('blocks.getBlockAttributes', blockAttributes, blockType, innerHTML, attributes); |
13706 return (0,external_wp_hooks_namespaceObject.applyFilters)('blocks.getBlockAttributes', blockAttributes, blockType, innerHTML, attributes); |
13297 } |
13707 } |
13298 |
13708 |
13299 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/parser/fix-custom-classname.js |
13709 ;// ./node_modules/@wordpress/blocks/build-module/api/parser/fix-custom-classname.js |
13300 /** |
13710 /** |
13301 * Internal dependencies |
13711 * Internal dependencies |
13302 */ |
13712 */ |
13303 |
13713 |
13304 |
13714 |
13334 * @param {string} innerHTML Original block markup. |
13744 * @param {string} innerHTML Original block markup. |
13335 * |
13745 * |
13336 * @return {Object} Filtered block attributes. |
13746 * @return {Object} Filtered block attributes. |
13337 */ |
13747 */ |
13338 function fixCustomClassname(blockAttributes, blockType, innerHTML) { |
13748 function fixCustomClassname(blockAttributes, blockType, innerHTML) { |
13339 if (hasBlockSupport(blockType, 'customClassName', true)) { |
13749 if (!hasBlockSupport(blockType, 'customClassName', true)) { |
13340 // To determine difference, serialize block given the known set of |
13750 return blockAttributes; |
13341 // attributes, with the exception of `className`. This will determine |
13751 } |
13342 // the default set of classes. From there, any difference in innerHTML |
13752 const modifiedBlockAttributes = { |
13343 // can be considered as custom classes. |
13753 ...blockAttributes |
13344 const { |
13754 }; |
13345 className: omittedClassName, |
13755 // To determine difference, serialize block given the known set of |
13346 ...attributesSansClassName |
13756 // attributes, with the exception of `className`. This will determine |
13347 } = blockAttributes; |
13757 // the default set of classes. From there, any difference in innerHTML |
13348 const serialized = getSaveContent(blockType, attributesSansClassName); |
13758 // can be considered as custom classes. |
13349 const defaultClasses = getHTMLRootElementClasses(serialized); |
13759 const { |
13350 const actualClasses = getHTMLRootElementClasses(innerHTML); |
13760 className: omittedClassName, |
13351 const customClasses = actualClasses.filter(className => !defaultClasses.includes(className)); |
13761 ...attributesSansClassName |
13352 if (customClasses.length) { |
13762 } = modifiedBlockAttributes; |
13353 blockAttributes.className = customClasses.join(' '); |
13763 const serialized = getSaveContent(blockType, attributesSansClassName); |
13354 } else if (serialized) { |
13764 const defaultClasses = getHTMLRootElementClasses(serialized); |
13355 delete blockAttributes.className; |
13765 const actualClasses = getHTMLRootElementClasses(innerHTML); |
13356 } |
13766 const customClasses = actualClasses.filter(className => !defaultClasses.includes(className)); |
13357 } |
13767 if (customClasses.length) { |
13358 return blockAttributes; |
13768 modifiedBlockAttributes.className = customClasses.join(' '); |
13359 } |
13769 } else if (serialized) { |
13360 |
13770 delete modifiedBlockAttributes.className; |
13361 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/parser/apply-built-in-validation-fixes.js |
13771 } |
13772 return modifiedBlockAttributes; |
|
13773 } |
|
13774 |
|
13775 ;// ./node_modules/@wordpress/blocks/build-module/api/parser/fix-aria-label.js |
|
13362 /** |
13776 /** |
13363 * Internal dependencies |
13777 * Internal dependencies |
13364 */ |
13778 */ |
13779 |
|
13780 |
|
13781 const ARIA_LABEL_ATTR_SCHEMA = { |
|
13782 type: 'string', |
|
13783 source: 'attribute', |
|
13784 selector: '[data-aria-label] > *', |
|
13785 attribute: 'aria-label' |
|
13786 }; |
|
13787 |
|
13788 /** |
|
13789 * Given an HTML string, returns the aria-label attribute assigned to |
|
13790 * the root element in the markup. |
|
13791 * |
|
13792 * @param {string} innerHTML Markup string from which to extract the aria-label. |
|
13793 * |
|
13794 * @return {string} The aria-label assigned to the root element. |
|
13795 */ |
|
13796 function getHTMLRootElementAriaLabel(innerHTML) { |
|
13797 const parsed = parseWithAttributeSchema(`<div data-aria-label>${innerHTML}</div>`, ARIA_LABEL_ATTR_SCHEMA); |
|
13798 return parsed; |
|
13799 } |
|
13800 |
|
13801 /** |
|
13802 * Given a parsed set of block attributes, if the block supports ariaLabel |
|
13803 * and an aria-label attribute is found, the aria-label attribute is assigned |
|
13804 * to the block attributes. |
|
13805 * |
|
13806 * @param {Object} blockAttributes Original block attributes. |
|
13807 * @param {Object} blockType Block type settings. |
|
13808 * @param {string} innerHTML Original block markup. |
|
13809 * |
|
13810 * @return {Object} Filtered block attributes. |
|
13811 */ |
|
13812 function fixAriaLabel(blockAttributes, blockType, innerHTML) { |
|
13813 if (!hasBlockSupport(blockType, 'ariaLabel', false)) { |
|
13814 return blockAttributes; |
|
13815 } |
|
13816 const modifiedBlockAttributes = { |
|
13817 ...blockAttributes |
|
13818 }; |
|
13819 const ariaLabel = getHTMLRootElementAriaLabel(innerHTML); |
|
13820 if (ariaLabel) { |
|
13821 modifiedBlockAttributes.ariaLabel = ariaLabel; |
|
13822 } |
|
13823 return modifiedBlockAttributes; |
|
13824 } |
|
13825 |
|
13826 ;// ./node_modules/@wordpress/blocks/build-module/api/parser/apply-built-in-validation-fixes.js |
|
13827 /** |
|
13828 * Internal dependencies |
|
13829 */ |
|
13830 |
|
13365 |
13831 |
13366 |
13832 |
13367 /** |
13833 /** |
13368 * Attempts to fix block invalidation by applying build-in validation fixes |
13834 * Attempts to fix block invalidation by applying build-in validation fixes |
13369 * like moving all extra classNames to the className attribute. |
13835 * like moving all extra classNames to the className attribute. |
13374 * but it's here for performance reasons. |
13840 * but it's here for performance reasons. |
13375 * |
13841 * |
13376 * @return {WPBlock} Fixed block object |
13842 * @return {WPBlock} Fixed block object |
13377 */ |
13843 */ |
13378 function applyBuiltInValidationFixes(block, blockType) { |
13844 function applyBuiltInValidationFixes(block, blockType) { |
13379 const updatedBlockAttributes = fixCustomClassname(block.attributes, blockType, block.originalContent); |
13845 const { |
13846 attributes, |
|
13847 originalContent |
|
13848 } = block; |
|
13849 let updatedBlockAttributes = attributes; |
|
13850 |
|
13851 // Fix block invalidation for className attribute. |
|
13852 updatedBlockAttributes = fixCustomClassname(attributes, blockType, originalContent); |
|
13853 // Fix block invalidation for ariaLabel attribute. |
|
13854 updatedBlockAttributes = fixAriaLabel(updatedBlockAttributes, blockType, originalContent); |
|
13380 return { |
13855 return { |
13381 ...block, |
13856 ...block, |
13382 attributes: updatedBlockAttributes |
13857 attributes: updatedBlockAttributes |
13383 }; |
13858 }; |
13384 } |
13859 } |
13385 |
13860 |
13386 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/parser/apply-block-deprecated-versions.js |
13861 ;// ./node_modules/@wordpress/blocks/build-module/api/parser/apply-block-deprecated-versions.js |
13387 /** |
13862 /** |
13388 * Internal dependencies |
13863 * Internal dependencies |
13389 */ |
13864 */ |
13390 |
13865 |
13391 |
13866 |
13492 }; |
13967 }; |
13493 } |
13968 } |
13494 return block; |
13969 return block; |
13495 } |
13970 } |
13496 |
13971 |
13497 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/parser/index.js |
13972 ;// ./node_modules/@wordpress/blocks/build-module/api/parser/index.js |
13498 /** |
13973 /** |
13499 * WordPress dependencies |
13974 * WordPress dependencies |
13500 */ |
13975 */ |
13501 |
13976 |
13502 |
13977 |
13657 |
14132 |
13658 // If the block is invalid, attempt some built-in fixes |
14133 // If the block is invalid, attempt some built-in fixes |
13659 // like custom classNames handling. |
14134 // like custom classNames handling. |
13660 const fixedBlock = applyBuiltInValidationFixes(unvalidatedBlock, blockType); |
14135 const fixedBlock = applyBuiltInValidationFixes(unvalidatedBlock, blockType); |
13661 // Attempt to validate the block once again after the built-in fixes. |
14136 // Attempt to validate the block once again after the built-in fixes. |
13662 const [isFixedValid, validationIssues] = validateBlock(unvalidatedBlock, blockType); |
14137 const [isFixedValid, validationIssues] = validateBlock(fixedBlock, blockType); |
13663 return { |
14138 return { |
13664 ...fixedBlock, |
14139 ...fixedBlock, |
13665 isValid: isFixedValid, |
14140 isValid: isFixedValid, |
13666 validationIssues |
14141 validationIssues |
13667 }; |
14142 }; |
13684 normalizedBlock = convertLegacyBlocks(normalizedBlock); |
14159 normalizedBlock = convertLegacyBlocks(normalizedBlock); |
13685 |
14160 |
13686 // Try finding the type for known block name. |
14161 // Try finding the type for known block name. |
13687 let blockType = getBlockType(normalizedBlock.blockName); |
14162 let blockType = getBlockType(normalizedBlock.blockName); |
13688 |
14163 |
13689 // If not blockType is found for the specified name, fallback to the "unregistedBlockType". |
14164 // If not blockType is found for the specified name, fallback to the "unregisteredBlockType". |
13690 if (!blockType) { |
14165 if (!blockType) { |
13691 normalizedBlock = createMissingBlockType(normalizedBlock); |
14166 normalizedBlock = createMissingBlockType(normalizedBlock); |
13692 blockType = getBlockType(normalizedBlock.blockName); |
14167 blockType = getBlockType(normalizedBlock.blockName); |
13693 } |
14168 } |
13694 |
14169 |
13773 } |
14248 } |
13774 return accumulator; |
14249 return accumulator; |
13775 }, []); |
14250 }, []); |
13776 } |
14251 } |
13777 |
14252 |
13778 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/get-raw-transforms.js |
14253 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/get-raw-transforms.js |
13779 /** |
14254 /** |
13780 * Internal dependencies |
14255 * Internal dependencies |
13781 */ |
14256 */ |
13782 |
14257 |
13783 function getRawTransforms() { |
14258 function getRawTransforms() { |
13789 isMatch: node => transform.selector && node.matches(transform.selector) |
14264 isMatch: node => transform.selector && node.matches(transform.selector) |
13790 }; |
14265 }; |
13791 }); |
14266 }); |
13792 } |
14267 } |
13793 |
14268 |
13794 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/html-to-blocks.js |
14269 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/html-to-blocks.js |
13795 /** |
14270 /** |
13796 * WordPress dependencies |
14271 * WordPress dependencies |
13797 */ |
14272 */ |
13798 |
14273 |
13799 |
14274 |
13846 } |
14321 } |
13847 return createBlock(blockName, getBlockAttributes(blockName, node.outerHTML)); |
14322 return createBlock(blockName, getBlockAttributes(blockName, node.outerHTML)); |
13848 }); |
14323 }); |
13849 } |
14324 } |
13850 |
14325 |
13851 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/normalise-blocks.js |
14326 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/normalise-blocks.js |
13852 /** |
14327 /** |
13853 * WordPress dependencies |
14328 * WordPress dependencies |
13854 */ |
14329 */ |
13855 |
14330 |
13856 function normaliseBlocks(HTML, options = {}) { |
14331 function normaliseBlocks(HTML, options = {}) { |
13907 } |
14382 } |
13908 } |
14383 } |
13909 return accu.innerHTML; |
14384 return accu.innerHTML; |
13910 } |
14385 } |
13911 |
14386 |
13912 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/special-comment-converter.js |
14387 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/special-comment-converter.js |
13913 /** |
14388 /** |
13914 * WordPress dependencies |
14389 * WordPress dependencies |
13915 */ |
14390 */ |
13916 |
14391 |
13917 |
14392 |
14005 const node = doc.createElement('wp-block'); |
14480 const node = doc.createElement('wp-block'); |
14006 node.dataset.block = 'core/nextpage'; |
14481 node.dataset.block = 'core/nextpage'; |
14007 return node; |
14482 return node; |
14008 } |
14483 } |
14009 |
14484 |
14010 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/list-reducer.js |
14485 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/list-reducer.js |
14011 /** |
14486 /** |
14012 * WordPress dependencies |
14487 * WordPress dependencies |
14013 */ |
14488 */ |
14014 |
14489 |
14015 function isList(node) { |
14490 function isList(node) { |
14059 (0,external_wp_dom_namespaceObject.unwrap)(node); |
14534 (0,external_wp_dom_namespaceObject.unwrap)(node); |
14060 } |
14535 } |
14061 } |
14536 } |
14062 } |
14537 } |
14063 |
14538 |
14064 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/blockquote-normaliser.js |
14539 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/blockquote-normaliser.js |
14065 /** |
14540 /** |
14066 * Internal dependencies |
14541 * Internal dependencies |
14067 */ |
14542 */ |
14068 |
14543 |
14069 function blockquoteNormaliser(options) { |
14544 function blockquoteNormaliser(options) { |
14073 } |
14548 } |
14074 node.innerHTML = normaliseBlocks(node.innerHTML, options); |
14549 node.innerHTML = normaliseBlocks(node.innerHTML, options); |
14075 }; |
14550 }; |
14076 } |
14551 } |
14077 |
14552 |
14078 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/figure-content-reducer.js |
14553 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/figure-content-reducer.js |
14079 /** |
14554 /** |
14080 * WordPress dependencies |
14555 * WordPress dependencies |
14081 */ |
14556 */ |
14082 |
14557 |
14083 |
14558 |
14160 if (!node.classList) { |
14635 if (!node.classList) { |
14161 wrapFigureContent(nodeToInsert, wrapper); |
14636 wrapFigureContent(nodeToInsert, wrapper); |
14162 } else if (node.classList.contains('alignright') || node.classList.contains('alignleft') || node.classList.contains('aligncenter') || !wrapper.textContent.trim()) { |
14637 } else if (node.classList.contains('alignright') || node.classList.contains('alignleft') || node.classList.contains('aligncenter') || !wrapper.textContent.trim()) { |
14163 wrapFigureContent(nodeToInsert, wrapper); |
14638 wrapFigureContent(nodeToInsert, wrapper); |
14164 } |
14639 } |
14165 } else if (nodeToInsert.parentNode.nodeName === 'BODY') { |
14640 } else { |
14166 wrapFigureContent(nodeToInsert); |
14641 wrapFigureContent(nodeToInsert); |
14167 } |
14642 } |
14168 } |
14643 } |
14169 |
14644 |
14170 ;// CONCATENATED MODULE: external ["wp","shortcode"] |
14645 ;// external ["wp","shortcode"] |
14171 const external_wp_shortcode_namespaceObject = window["wp"]["shortcode"]; |
14646 const external_wp_shortcode_namespaceObject = window["wp"]["shortcode"]; |
14172 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/shortcode-converter.js |
14647 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/shortcode-converter.js |
14173 /** |
14648 /** |
14174 * WordPress dependencies |
14649 * WordPress dependencies |
14175 */ |
14650 */ |
14176 |
14651 |
14177 |
14652 |
14259 } |
14734 } |
14260 return [HTML]; |
14735 return [HTML]; |
14261 } |
14736 } |
14262 /* harmony default export */ const shortcode_converter = (segmentHTMLToShortcodeBlock); |
14737 /* harmony default export */ const shortcode_converter = (segmentHTMLToShortcodeBlock); |
14263 |
14738 |
14264 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/utils.js |
14739 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/utils.js |
14265 /** |
14740 /** |
14266 * WordPress dependencies |
14741 * WordPress dependencies |
14267 */ |
14742 */ |
14268 |
14743 |
14269 |
14744 |
14363 return schemas.reduce(mergeSchemas, {}); |
14838 return schemas.reduce(mergeSchemas, {}); |
14364 } |
14839 } |
14365 |
14840 |
14366 /** |
14841 /** |
14367 * Gets the block content schema, which is extracted and merged from all |
14842 * Gets the block content schema, which is extracted and merged from all |
14368 * registered blocks with raw transfroms. |
14843 * registered blocks with raw transforms. |
14369 * |
14844 * |
14370 * @param {string} context Set to "paste" when in paste context, where the |
14845 * @param {string} context Set to "paste" when in paste context, where the |
14371 * schema is more strict. |
14846 * schema is more strict. |
14372 * |
14847 * |
14373 * @return {Object} A complete block content schema. |
14848 * @return {Object} A complete block content schema. |
14444 return; |
14919 return; |
14445 } |
14920 } |
14446 return getSibling(parentNode, which); |
14921 return getSibling(parentNode, which); |
14447 } |
14922 } |
14448 |
14923 |
14449 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/index.js |
14924 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/index.js |
14450 /** |
14925 /** |
14451 * WordPress dependencies |
14926 * WordPress dependencies |
14452 */ |
14927 */ |
14453 |
14928 |
14454 |
14929 |
14525 }); |
15000 }); |
14526 return htmlToBlocks(piece, rawHandler); |
15001 return htmlToBlocks(piece, rawHandler); |
14527 }).flat().filter(Boolean); |
15002 }).flat().filter(Boolean); |
14528 } |
15003 } |
14529 |
15004 |
14530 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/comment-remover.js |
15005 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/comment-remover.js |
14531 /** |
15006 /** |
14532 * WordPress dependencies |
15007 * WordPress dependencies |
14533 */ |
15008 */ |
14534 |
15009 |
14535 |
15010 |
14543 if (node.nodeType === node.COMMENT_NODE) { |
15018 if (node.nodeType === node.COMMENT_NODE) { |
14544 (0,external_wp_dom_namespaceObject.remove)(node); |
15019 (0,external_wp_dom_namespaceObject.remove)(node); |
14545 } |
15020 } |
14546 } |
15021 } |
14547 |
15022 |
14548 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/is-inline-content.js |
15023 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/is-inline-content.js |
14549 /** |
15024 /** |
14550 * WordPress dependencies |
15025 * WordPress dependencies |
14551 */ |
15026 */ |
14552 |
15027 |
14553 |
15028 |
14582 doc.body.innerHTML = HTML; |
15057 doc.body.innerHTML = HTML; |
14583 const nodes = Array.from(doc.body.children); |
15058 const nodes = Array.from(doc.body.children); |
14584 return !nodes.some(isDoubleBR) && deepCheck(nodes, contextTag); |
15059 return !nodes.some(isDoubleBR) && deepCheck(nodes, contextTag); |
14585 } |
15060 } |
14586 |
15061 |
14587 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/phrasing-content-reducer.js |
15062 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/phrasing-content-reducer.js |
14588 /** |
15063 /** |
14589 * WordPress dependencies |
15064 * WordPress dependencies |
14590 */ |
15065 */ |
14591 |
15066 |
14592 function phrasingContentReducer(node, doc) { |
15067 function phrasingContentReducer(node, doc) { |
14642 node.removeAttribute('id'); |
15117 node.removeAttribute('id'); |
14643 } |
15118 } |
14644 } |
15119 } |
14645 } |
15120 } |
14646 |
15121 |
14647 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/head-remover.js |
15122 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/head-remover.js |
14648 function headRemover(node) { |
15123 function headRemover(node) { |
14649 if (node.nodeName !== 'SCRIPT' && node.nodeName !== 'NOSCRIPT' && node.nodeName !== 'TEMPLATE' && node.nodeName !== 'STYLE') { |
15124 if (node.nodeName !== 'SCRIPT' && node.nodeName !== 'NOSCRIPT' && node.nodeName !== 'TEMPLATE' && node.nodeName !== 'STYLE') { |
14650 return; |
15125 return; |
14651 } |
15126 } |
14652 node.parentNode.removeChild(node); |
15127 node.parentNode.removeChild(node); |
14653 } |
15128 } |
14654 |
15129 |
14655 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/ms-list-ignore.js |
15130 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/ms-list-ignore.js |
14656 /** |
15131 /** |
14657 * Looks for comments, and removes them. |
15132 * Looks for comments, and removes them. |
14658 * |
15133 * |
14659 * @param {Node} node The node to be processed. |
15134 * @param {Node} node The node to be processed. |
14660 * @return {void} |
15135 * @return {void} |
14677 if (rules['mso-list'] === 'ignore') { |
15152 if (rules['mso-list'] === 'ignore') { |
14678 node.remove(); |
15153 node.remove(); |
14679 } |
15154 } |
14680 } |
15155 } |
14681 |
15156 |
14682 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/ms-list-converter.js |
15157 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/ms-list-converter.js |
14683 /** |
15158 /** |
14684 * Internal dependencies |
15159 * Internal dependencies |
14685 */ |
15160 */ |
14686 |
15161 |
14687 |
15162 |
14739 |
15214 |
14740 // Remove the wrapper paragraph. |
15215 // Remove the wrapper paragraph. |
14741 node.parentNode.removeChild(node); |
15216 node.parentNode.removeChild(node); |
14742 } |
15217 } |
14743 |
15218 |
14744 ;// CONCATENATED MODULE: external ["wp","blob"] |
15219 ;// external ["wp","blob"] |
14745 const external_wp_blob_namespaceObject = window["wp"]["blob"]; |
15220 const external_wp_blob_namespaceObject = window["wp"]["blob"]; |
14746 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/image-corrector.js |
15221 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/image-corrector.js |
15222 /* wp:polyfill */ |
|
14747 /** |
15223 /** |
14748 * WordPress dependencies |
15224 * WordPress dependencies |
14749 */ |
15225 */ |
14750 |
15226 |
14751 function imageCorrector(node) { |
15227 function imageCorrector(node) { |
14788 if (node.height === 1 || node.width === 1) { |
15264 if (node.height === 1 || node.width === 1) { |
14789 node.parentNode.removeChild(node); |
15265 node.parentNode.removeChild(node); |
14790 } |
15266 } |
14791 } |
15267 } |
14792 |
15268 |
14793 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/div-normaliser.js |
15269 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/div-normaliser.js |
14794 /** |
15270 /** |
14795 * Internal dependencies |
15271 * Internal dependencies |
14796 */ |
15272 */ |
14797 |
15273 |
14798 function divNormaliser(node) { |
15274 function divNormaliser(node) { |
14803 } |
15279 } |
14804 |
15280 |
14805 // EXTERNAL MODULE: ./node_modules/showdown/dist/showdown.js |
15281 // EXTERNAL MODULE: ./node_modules/showdown/dist/showdown.js |
14806 var showdown = __webpack_require__(1030); |
15282 var showdown = __webpack_require__(1030); |
14807 var showdown_default = /*#__PURE__*/__webpack_require__.n(showdown); |
15283 var showdown_default = /*#__PURE__*/__webpack_require__.n(showdown); |
14808 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/markdown-converter.js |
15284 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/markdown-converter.js |
14809 /** |
15285 /** |
14810 * External dependencies |
15286 * External dependencies |
14811 */ |
15287 */ |
14812 |
15288 |
14813 |
15289 |
14848 */ |
15324 */ |
14849 function markdownConverter(text) { |
15325 function markdownConverter(text) { |
14850 return converter.makeHtml(slackMarkdownVariantCorrector(bulletsToAsterisks(text))); |
15326 return converter.makeHtml(slackMarkdownVariantCorrector(bulletsToAsterisks(text))); |
14851 } |
15327 } |
14852 |
15328 |
14853 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/iframe-remover.js |
15329 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/iframe-remover.js |
14854 /** |
15330 /** |
14855 * Removes iframes. |
15331 * Removes iframes. |
14856 * |
15332 * |
14857 * @param {Node} node The node to check. |
15333 * @param {Node} node The node to check. |
14858 * |
15334 * |
14863 const text = node.ownerDocument.createTextNode(node.src); |
15339 const text = node.ownerDocument.createTextNode(node.src); |
14864 node.parentNode.replaceChild(text, node); |
15340 node.parentNode.replaceChild(text, node); |
14865 } |
15341 } |
14866 } |
15342 } |
14867 |
15343 |
14868 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/google-docs-uid-remover.js |
15344 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/google-docs-uid-remover.js |
14869 /** |
15345 /** |
14870 * WordPress dependencies |
15346 * WordPress dependencies |
14871 */ |
15347 */ |
14872 |
15348 |
14873 function googleDocsUIdRemover(node) { |
15349 function googleDocsUIdRemover(node) { |
14882 } else { |
15358 } else { |
14883 node.removeAttribute('id'); |
15359 node.removeAttribute('id'); |
14884 } |
15360 } |
14885 } |
15361 } |
14886 |
15362 |
14887 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/html-formatting-remover.js |
15363 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/html-formatting-remover.js |
14888 /** |
15364 /** |
14889 * Internal dependencies |
15365 * Internal dependencies |
14890 */ |
15366 */ |
14891 |
15367 |
14892 function isFormattingSpace(character) { |
15368 function isFormattingSpace(character) { |
14932 newData = newData.slice(1); |
15408 newData = newData.slice(1); |
14933 } |
15409 } |
14934 } |
15410 } |
14935 |
15411 |
14936 // Remove the trailing space if the text element is at the end of a block, |
15412 // Remove the trailing space if the text element is at the end of a block, |
14937 // is succeded by a line break element, or has a space in the next text |
15413 // is succeeded by a line break element, or has a space in the next text |
14938 // node. |
15414 // node. |
14939 if (newData[newData.length - 1] === ' ') { |
15415 if (newData[newData.length - 1] === ' ') { |
14940 const nextSibling = getSibling(node, 'next'); |
15416 const nextSibling = getSibling(node, 'next'); |
14941 if (!nextSibling || nextSibling.nodeName === 'BR' || nextSibling.nodeType === nextSibling.TEXT_NODE && isFormattingSpace(nextSibling.textContent[0])) { |
15417 if (!nextSibling || nextSibling.nodeName === 'BR' || nextSibling.nodeType === nextSibling.TEXT_NODE && isFormattingSpace(nextSibling.textContent[0])) { |
14942 newData = newData.slice(0, -1); |
15418 newData = newData.slice(0, -1); |
14950 } else { |
15426 } else { |
14951 node.data = newData; |
15427 node.data = newData; |
14952 } |
15428 } |
14953 } |
15429 } |
14954 |
15430 |
14955 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/br-remover.js |
15431 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/br-remover.js |
14956 /** |
15432 /** |
14957 * Internal dependencies |
15433 * Internal dependencies |
14958 */ |
15434 */ |
14959 |
15435 |
14960 |
15436 |
14971 return; |
15447 return; |
14972 } |
15448 } |
14973 node.parentNode.removeChild(node); |
15449 node.parentNode.removeChild(node); |
14974 } |
15450 } |
14975 |
15451 |
14976 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/empty-paragraph-remover.js |
15452 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/empty-paragraph-remover.js |
14977 /** |
15453 /** |
14978 * Removes empty paragraph elements. |
15454 * Removes empty paragraph elements. |
14979 * |
15455 * |
14980 * @param {Element} node Node to check. |
15456 * @param {Element} node Node to check. |
14981 */ |
15457 */ |
14987 return; |
15463 return; |
14988 } |
15464 } |
14989 node.parentNode.removeChild(node); |
15465 node.parentNode.removeChild(node); |
14990 } |
15466 } |
14991 |
15467 |
14992 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/slack-paragraph-corrector.js |
15468 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/slack-paragraph-corrector.js |
14993 /** |
15469 /** |
14994 * Replaces Slack paragraph markup with a double line break (later converted to |
15470 * Replaces Slack paragraph markup with a double line break (later converted to |
14995 * a proper paragraph). |
15471 * a proper paragraph). |
14996 * |
15472 * |
14997 * @param {Element} node Node to check. |
15473 * @param {Element} node Node to check. |
15009 parentNode.insertBefore(node.ownerDocument.createElement('br'), node); |
15485 parentNode.insertBefore(node.ownerDocument.createElement('br'), node); |
15010 parentNode.insertBefore(node.ownerDocument.createElement('br'), node); |
15486 parentNode.insertBefore(node.ownerDocument.createElement('br'), node); |
15011 parentNode.removeChild(node); |
15487 parentNode.removeChild(node); |
15012 } |
15488 } |
15013 |
15489 |
15014 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/paste-handler.js |
15490 ;// ./node_modules/@wordpress/blocks/build-module/api/raw-handling/paste-handler.js |
15015 /** |
15491 /** |
15016 * WordPress dependencies |
15492 * WordPress dependencies |
15017 */ |
15493 */ |
15018 |
15494 |
15019 |
15495 |
15105 } |
15581 } |
15106 } |
15582 } |
15107 } |
15583 } |
15108 |
15584 |
15109 // Normalize unicode to use composed characters. |
15585 // Normalize unicode to use composed characters. |
15110 // This is unsupported in IE 11 but it's a nice-to-have feature, not mandatory. |
|
15111 // Not normalizing the content will only affect older browsers and won't |
15586 // Not normalizing the content will only affect older browsers and won't |
15112 // entirely break the app. |
15587 // entirely break the app. |
15113 // See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize |
15588 // See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize |
15114 // See: https://core.trac.wordpress.org/ticket/30130 |
15589 // See: https://core.trac.wordpress.org/ticket/30130 |
15115 // See: https://github.com/WordPress/gutenberg/pull/6983#pullrequestreview-125151075 |
15590 // See: https://github.com/WordPress/gutenberg/pull/6983#pullrequestreview-125151075 |
15194 } |
15669 } |
15195 } |
15670 } |
15196 return blocks; |
15671 return blocks; |
15197 } |
15672 } |
15198 |
15673 |
15199 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/categories.js |
15674 ;// ./node_modules/@wordpress/blocks/build-module/api/categories.js |
15200 /** |
15675 /** |
15201 * WordPress dependencies |
15676 * WordPress dependencies |
15202 */ |
15677 */ |
15203 |
15678 |
15204 |
15679 |
15288 */ |
15763 */ |
15289 function categories_updateCategory(slug, category) { |
15764 function categories_updateCategory(slug, category) { |
15290 (0,external_wp_data_namespaceObject.dispatch)(store).updateCategory(slug, category); |
15765 (0,external_wp_data_namespaceObject.dispatch)(store).updateCategory(slug, category); |
15291 } |
15766 } |
15292 |
15767 |
15293 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/templates.js |
15768 ;// ./node_modules/@wordpress/blocks/build-module/api/templates.js |
15294 /** |
15769 /** |
15295 * WordPress dependencies |
15770 * WordPress dependencies |
15296 */ |
15771 */ |
15297 |
15772 |
15298 |
15773 |
15373 // for the attributes using "html" strings now, we normalize the template attributes |
15848 // for the attributes using "html" strings now, we normalize the template attributes |
15374 // before creating the blocks. |
15849 // before creating the blocks. |
15375 |
15850 |
15376 const blockType = getBlockType(name); |
15851 const blockType = getBlockType(name); |
15377 const normalizedAttributes = normalizeAttributes((_blockType$attributes = blockType?.attributes) !== null && _blockType$attributes !== void 0 ? _blockType$attributes : {}, attributes); |
15852 const normalizedAttributes = normalizeAttributes((_blockType$attributes = blockType?.attributes) !== null && _blockType$attributes !== void 0 ? _blockType$attributes : {}, attributes); |
15378 let [blockName, blockAttributes] = convertLegacyBlockNameAndAttributes(name, normalizedAttributes); |
15853 const [blockName, blockAttributes] = convertLegacyBlockNameAndAttributes(name, normalizedAttributes); |
15379 |
|
15380 // If a Block is undefined at this point, use the core/missing block as |
|
15381 // a placeholder for a better user experience. |
|
15382 if (undefined === getBlockType(blockName)) { |
|
15383 blockAttributes = { |
|
15384 originalName: name, |
|
15385 originalContent: '', |
|
15386 originalUndelimitedContent: '' |
|
15387 }; |
|
15388 blockName = 'core/missing'; |
|
15389 } |
|
15390 return createBlock(blockName, blockAttributes, synchronizeBlocksWithTemplate([], innerBlocksTemplate)); |
15854 return createBlock(blockName, blockAttributes, synchronizeBlocksWithTemplate([], innerBlocksTemplate)); |
15391 }); |
15855 }); |
15392 } |
15856 } |
15393 |
15857 |
15394 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/index.js |
15858 ;// ./node_modules/@wordpress/blocks/build-module/api/index.js |
15859 /** |
|
15860 * Internal dependencies |
|
15861 */ |
|
15862 |
|
15863 |
|
15864 |
|
15395 // The blocktype is the most important concept within the block API. It defines |
15865 // The blocktype is the most important concept within the block API. It defines |
15396 // all aspects of the block configuration and its interfaces, including `edit` |
15866 // all aspects of the block configuration and its interfaces, including `edit` |
15397 // and `save`. The transforms specification allows converting one blocktype to |
15867 // and `save`. The transforms specification allows converting one blocktype to |
15398 // another through formulas defined by either the source or the destination. |
15868 // another through formulas defined by either the source or the destination. |
15399 // Switching a blocktype is to be considered a one-way operation implying a |
15869 // Switching a blocktype is to be considered a one-way operation implying a |
15405 // consideration is that inner blocks are -- conceptually -- not part of the |
15875 // consideration is that inner blocks are -- conceptually -- not part of the |
15406 // territory established by the parent block that contains them. |
15876 // territory established by the parent block that contains them. |
15407 // |
15877 // |
15408 // This has multiple practical implications: when parsing, we can safely dispose |
15878 // This has multiple practical implications: when parsing, we can safely dispose |
15409 // of any block boundary found within a block from the innerHTML property when |
15879 // of any block boundary found within a block from the innerHTML property when |
15410 // transfering to state. Not doing so would have a compounding effect on memory |
15880 // transferring to state. Not doing so would have a compounding effect on memory |
15411 // and uncertainty over the source of truth. This can be illustrated in how, |
15881 // and uncertainty over the source of truth. This can be illustrated in how, |
15412 // given a tree of `n` nested blocks, the entry node would have to contain the |
15882 // given a tree of `n` nested blocks, the entry node would have to contain the |
15413 // actual content of each block while each subsequent block node in the state |
15883 // actual content of each block while each subsequent block node in the state |
15414 // tree would replicate the entire chain `n-1`, meaning the extreme end node |
15884 // tree would replicate the entire chain `n-1`, meaning the extreme end node |
15415 // would have been replicated `n` times as the tree is traversed and would |
15885 // would have been replicated `n` times as the tree is traversed and would |
15421 |
15891 |
15422 |
15892 |
15423 |
15893 |
15424 // While block transformations account for a specific surface of the API, there |
15894 // While block transformations account for a specific surface of the API, there |
15425 // are also raw transformations which handle arbitrary sources not made out of |
15895 // are also raw transformations which handle arbitrary sources not made out of |
15426 // blocks but producing block basaed on various heursitics. This includes |
15896 // blocks but producing block basaed on various heuristics. This includes |
15427 // pasting rich text or HTML data. |
15897 // pasting rich text or HTML data. |
15428 |
15898 |
15429 |
15899 |
15430 // The process of serialization aims to deflate the internal memory of the block |
15900 // The process of serialization aims to deflate the internal memory of the block |
15431 // editor and its state representation back into an HTML valid string. This |
15901 // editor and its state representation back into an HTML valid string. This |
15486 // implementation within a specific block. |
15956 // implementation within a specific block. |
15487 |
15957 |
15488 |
15958 |
15489 |
15959 |
15490 |
15960 |
15491 |
15961 const privateApis = {}; |
15492 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/deprecated.js |
15962 lock(privateApis, { |
15963 isContentBlock: isContentBlock |
|
15964 }); |
|
15965 |
|
15966 ;// ./node_modules/@wordpress/blocks/build-module/deprecated.js |
|
15493 /** |
15967 /** |
15494 * WordPress dependencies |
15968 * WordPress dependencies |
15495 */ |
15969 */ |
15496 |
15970 |
15497 |
15971 |
15509 since: '6.1' |
15983 since: '6.1' |
15510 }); |
15984 }); |
15511 return OriginalComponent; |
15985 return OriginalComponent; |
15512 } |
15986 } |
15513 |
15987 |
15514 ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/index.js |
15988 ;// ./node_modules/@wordpress/blocks/build-module/index.js |
15515 // A "block" is the abstract term used to describe units of markup that, |
15989 // A "block" is the abstract term used to describe units of markup that, |
15516 // when composed together, form the content or layout of a page. |
15990 // when composed together, form the content or layout of a page. |
15517 // The API for blocks is exposed via `wp.blocks`. |
15991 // The API for blocks is exposed via `wp.blocks`. |
15518 // |
15992 // |
15519 // Supported blocks are registered by calling `registerBlockType`. Once registered, |
15993 // Supported blocks are registered by calling `registerBlockType`. Once registered, |