Version Description
Download this release
Release Info
Developer | gutenbergplugin |
Plugin | Gutenberg |
Version | 14.7.0 |
Comparing to | |
See all releases |
Code changes from version 14.6.1 to 14.7.0
- build/a11y/index.js +19 -19
- build/a11y/index.min.asset.php +1 -1
- build/a11y/index.min.js +1 -1
- build/a11y/index.min.js.map +1 -1
- build/annotations/index.js +28 -28
- build/annotations/index.min.asset.php +1 -1
- build/annotations/index.min.js +1 -1
- build/annotations/index.min.js.map +1 -1
- build/api-fetch/index.js +19 -19
- build/api-fetch/index.min.asset.php +1 -1
- build/api-fetch/index.min.js +1 -1
- build/api-fetch/index.min.js.map +1 -1
- build/autop/index.js +12 -12
- build/autop/index.min.asset.php +1 -1
- build/autop/index.min.js +1 -1
- build/autop/index.min.js.map +1 -1
- build/blob/index.js +15 -15
- build/blob/index.min.asset.php +1 -1
- build/blob/index.min.js +1 -1
- build/blob/index.min.js.map +1 -1
- build/block-directory/index.js +76 -72
- build/block-directory/index.min.asset.php +1 -1
- build/block-directory/index.min.js +11 -11
- build/block-directory/index.min.js.map +1 -1
- build/block-directory/style-rtl.css +1 -1
- build/block-directory/style.css +1 -1
- build/block-editor/content-rtl.css +1 -0
- build/block-editor/content.css +1 -0
- build/block-editor/default-editor-styles-rtl.css +1 -1
- build/block-editor/default-editor-styles.css +1 -1
- build/block-editor/index.js +2621 -968
- build/block-editor/index.min.asset.php +1 -1
- build/block-editor/index.min.js +3 -4
build/a11y/index.js
CHANGED
@@ -1,48 +1,48 @@
|
|
1 |
-
/******/ (()
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/compat get default export */
|
8 |
-
/******/ (
|
9 |
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
10 |
-
/******/ __webpack_require__.n = (module)
|
11 |
/******/ var getter = module && module.__esModule ?
|
12 |
-
/******/ ()
|
13 |
-
/******/ ()
|
14 |
/******/ __webpack_require__.d(getter, { a: getter });
|
15 |
/******/ return getter;
|
16 |
/******/ };
|
17 |
-
/******/ }
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/define property getters */
|
20 |
-
/******/ (
|
21 |
/******/ // define getter functions for harmony exports
|
22 |
-
/******/ __webpack_require__.d = (exports, definition)
|
23 |
/******/ for(var key in definition) {
|
24 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
25 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
26 |
/******/ }
|
27 |
/******/ }
|
28 |
/******/ };
|
29 |
-
/******/ }
|
30 |
/******/
|
31 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
32 |
-
/******/ (
|
33 |
-
/******/ __webpack_require__.o = (obj, prop)
|
34 |
-
/******/ }
|
35 |
/******/
|
36 |
/******/ /* webpack/runtime/make namespace object */
|
37 |
-
/******/ (
|
38 |
/******/ // define __esModule on exports
|
39 |
-
/******/ __webpack_require__.r = (exports)
|
40 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
41 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
42 |
/******/ }
|
43 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
44 |
/******/ };
|
45 |
-
/******/ }
|
46 |
/******/
|
47 |
/************************************************************************/
|
48 |
var __webpack_exports__ = {};
|
@@ -51,15 +51,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
51 |
|
52 |
// EXPORTS
|
53 |
__webpack_require__.d(__webpack_exports__, {
|
54 |
-
"setup": ()
|
55 |
-
"speak": ()
|
56 |
});
|
57 |
|
58 |
;// CONCATENATED MODULE: external ["wp","domReady"]
|
59 |
-
|
60 |
var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_namespaceObject);
|
61 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
62 |
-
|
63 |
;// CONCATENATED MODULE: ./packages/a11y/build-module/add-intro-text.js
|
64 |
/**
|
65 |
* WordPress dependencies
|
1 |
+
/******/ (function() { // webpackBootstrap
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/compat get default export */
|
8 |
+
/******/ !function() {
|
9 |
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
10 |
+
/******/ __webpack_require__.n = function(module) {
|
11 |
/******/ var getter = module && module.__esModule ?
|
12 |
+
/******/ function() { return module['default']; } :
|
13 |
+
/******/ function() { return module; };
|
14 |
/******/ __webpack_require__.d(getter, { a: getter });
|
15 |
/******/ return getter;
|
16 |
/******/ };
|
17 |
+
/******/ }();
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/define property getters */
|
20 |
+
/******/ !function() {
|
21 |
/******/ // define getter functions for harmony exports
|
22 |
+
/******/ __webpack_require__.d = function(exports, definition) {
|
23 |
/******/ for(var key in definition) {
|
24 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
25 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
26 |
/******/ }
|
27 |
/******/ }
|
28 |
/******/ };
|
29 |
+
/******/ }();
|
30 |
/******/
|
31 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
32 |
+
/******/ !function() {
|
33 |
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
34 |
+
/******/ }();
|
35 |
/******/
|
36 |
/******/ /* webpack/runtime/make namespace object */
|
37 |
+
/******/ !function() {
|
38 |
/******/ // define __esModule on exports
|
39 |
+
/******/ __webpack_require__.r = function(exports) {
|
40 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
41 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
42 |
/******/ }
|
43 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
44 |
/******/ };
|
45 |
+
/******/ }();
|
46 |
/******/
|
47 |
/************************************************************************/
|
48 |
var __webpack_exports__ = {};
|
51 |
|
52 |
// EXPORTS
|
53 |
__webpack_require__.d(__webpack_exports__, {
|
54 |
+
"setup": function() { return /* binding */ setup; },
|
55 |
+
"speak": function() { return /* binding */ speak; }
|
56 |
});
|
57 |
|
58 |
;// CONCATENATED MODULE: external ["wp","domReady"]
|
59 |
+
var external_wp_domReady_namespaceObject = window["wp"]["domReady"];
|
60 |
var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_namespaceObject);
|
61 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
62 |
+
var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
63 |
;// CONCATENATED MODULE: ./packages/a11y/build-module/add-intro-text.js
|
64 |
/**
|
65 |
* WordPress dependencies
|
build/a11y/index.min.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '1aab97509efa281a9d62');
|
build/a11y/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
(
|
2 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
!function(){"use strict";var t={n:function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},d:function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{setup:function(){return d},speak:function(){return p}});var n=window.wp.domReady,i=t.n(n),o=window.wp.i18n;function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite";const e=document.createElement("div");e.id=`a11y-speak-${t}`,e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(e),e}let a="";function d(){const t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){const t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=(0,o.__)("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");const{body:e}=document;e&&e.appendChild(t)}(),null===e&&r("assertive"),null===n&&r("polite")}function p(t,e){!function(){const t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text");for(let e=0;e<t.length;e++)t[e].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),a===t&&(t+=" "),a=t,t}(t);const n=document.getElementById("a11y-speak-intro-text"),i=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");i&&"assertive"===e?i.textContent=t:o&&(o.textContent=t),n&&n.removeAttribute("hidden")}i()(d),(window.wp=window.wp||{}).a11y=e}();
|
2 |
//# sourceMappingURL=index.min.js.map
|
build/a11y/index.min.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"./build/a11y/index.min.js","mappings":"mBACA,IAAIA,EAAsB,CCA1BA,EAAyBC,IACxB,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,IAAOF,EAAiB,QACxB,IAAM,EAEP,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdF,EAAwB,CAACM,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDR,EAAwB,CAACc,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFf,EAAyBM,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GAAO,G,6CCL9D,MAAM,EAA+BC,OAAW,GAAY,S,aCA5D,MAAM,EAA+BA,OAAW,GAAQ,KCOzC,SAASC,IAAoC,IAAtBC,EAAsB,uDAAX,SAChD,MAAMC,EAAYC,SAASC,cAAe,OAC1CF,EAAUG,GAAM,cAAcJ,IAC9BC,EAAUI,UAAY,oBAEtBJ,EAAUK,aACT,QACA,iNAYDL,EAAUK,aAAc,YAAaN,GACrCC,EAAUK,aAAc,gBAAiB,kBACzCL,EAAUK,aAAc,cAAe,QAEvC,MAAM,KAAEC,GAASL,SAKjB,OAJKK,GACJA,EAAKC,YAAaP,GAGZA,CACP,CCpCD,IAAIQ,EAAkB,GCgBf,SAASC,IACf,MAAMC,EAAYT,SAASU,eAAgB,yBACrCC,EAAqBX,SAASU,eACnC,wBAEKE,EAAkBZ,SAASU,eAAgB,qBAE9B,OAAdD,GCVS,WACd,MAAMA,EAAYT,SAASC,cAAe,KAE1CQ,EAAUP,GAAK,wBACfO,EAAUN,UAAY,wBACtBM,EAAUI,aAAcC,EAAAA,EAAAA,IAAI,iBAE5BL,EAAUL,aACT,QACA,iNAYDK,EAAUL,aAAc,SAAU,UAElC,MAAM,KAAEC,GAASL,SACZK,GACJA,EAAKC,YAAaG,EAInB,CDlBCM,GAG2B,OAAvBJ,GACJd,EAAc,aAGU,OAApBe,GACJf,EAAc,SAEf,CAyBM,SAASmB,EAAOC,EAASnB,IExDjB,WACd,MAAMoB,EAAUlB,SAASmB,uBAAwB,qBAC3CV,EAAYT,SAASU,eAAgB,yBAE3C,IAAM,IAAIU,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IACpCF,EAASE,GAAIP,YAAc,GAIvBJ,GACJA,EAAUL,aAAc,SAAU,SAEnC,CFiDAkB,GAEAL,EDzDc,SAAwBA,GAoBtC,OAZAA,EAAUA,EAAQM,QAAS,YAAa,KAMnChB,IAAoBU,IACxBA,GAAW,KAGZV,EAAkBU,EAEXA,CACP,CCoCUO,CAAeP,GAEzB,MAAMR,EAAYT,SAASU,eAAgB,yBACrCC,EAAqBX,SAASU,eACnC,wBAEKE,EAAkBZ,SAASU,eAAgB,qBAE5CC,GAAmC,cAAbb,EAC1Ba,EAAmBE,YAAcI,EACtBL,IACXA,EAAgBC,YAAcI,GAO1BR,GACJA,EAAUgB,gBAAiB,SAE5B,CAhDDC,IAAUlB,I","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/compat get default export","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"domReady\"]","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/add-container.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/filter-message.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/index.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/add-intro-text.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/clear.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"domReady\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * Build the live regions markup.\n *\n * @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'.\n *\n * @return {HTMLDivElement} The ARIA live region HTML element.\n */\nexport default function addContainer( ariaLive = 'polite' ) {\n\tconst container = document.createElement( 'div' );\n\tcontainer.id = `a11y-speak-${ ariaLive }`;\n\tcontainer.className = 'a11y-speak-region';\n\n\tcontainer.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tcontainer.setAttribute( 'aria-live', ariaLive );\n\tcontainer.setAttribute( 'aria-relevant', 'additions text' );\n\tcontainer.setAttribute( 'aria-atomic', 'true' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( container );\n\t}\n\n\treturn container;\n}\n","let previousMessage = '';\n\n/**\n * Filter the message to be announced to the screenreader.\n *\n * @param {string} message The message to be announced.\n *\n * @return {string} The filtered message.\n */\nexport default function filterMessage( message ) {\n\t/*\n\t * Strip HTML tags (if any) from the message string. Ideally, messages should\n\t * be simple strings, carefully crafted for specific use with A11ySpeak.\n\t * When re-using already existing strings this will ensure simple HTML to be\n\t * stripped out and replaced with a space. Browsers will collapse multiple\n\t * spaces natively.\n\t */\n\tmessage = message.replace( /<[^<>]+>/g, ' ' );\n\n\t/*\n\t * Safari + VoiceOver don't announce repeated, identical strings. We use\n\t * a `no-break space` to force them to think identical strings are different.\n\t */\n\tif ( previousMessage === message ) {\n\t\tmessage += '\\u00A0';\n\t}\n\n\tpreviousMessage = message;\n\n\treturn message;\n}\n","/**\n * WordPress dependencies\n */\nimport domReady from '@wordpress/dom-ready';\n\n/**\n * Internal dependencies\n */\nimport addIntroText from './add-intro-text';\nimport addContainer from './add-container';\nimport clear from './clear';\nimport filterMessage from './filter-message';\n\n/**\n * Create the live regions.\n */\nexport function setup() {\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( introText === null ) {\n\t\taddIntroText();\n\t}\n\n\tif ( containerAssertive === null ) {\n\t\taddContainer( 'assertive' );\n\t}\n\n\tif ( containerPolite === null ) {\n\t\taddContainer( 'polite' );\n\t}\n}\n\n/**\n * Run setup on domReady.\n */\ndomReady( setup );\n\n/**\n * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.\n * This module is inspired by the `speak` function in `wp-a11y.js`.\n *\n * @param {string} message The message to be announced by assistive technologies.\n * @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'.\n *\n * @example\n * ```js\n * import { speak } from '@wordpress/a11y';\n *\n * // For polite messages that shouldn't interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region' );\n *\n * // For assertive messages that should interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region', 'assertive' );\n * ```\n */\nexport function speak( message, ariaLive ) {\n\t/*\n\t * Clear previous messages to allow repeated strings being read out and hide\n\t * the explanatory text from assistive technologies.\n\t */\n\tclear();\n\n\tmessage = filterMessage( message );\n\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( containerAssertive && ariaLive === 'assertive' ) {\n\t\tcontainerAssertive.textContent = message;\n\t} else if ( containerPolite ) {\n\t\tcontainerPolite.textContent = message;\n\t}\n\n\t/*\n\t * Make the explanatory text available to assistive technologies by removing\n\t * the 'hidden' HTML attribute.\n\t */\n\tif ( introText ) {\n\t\tintroText.removeAttribute( 'hidden' );\n\t}\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Build the explanatory text to be placed before the aria live regions.\n *\n * This text is initially hidden from assistive technologies by using a `hidden`\n * HTML attribute which is then removed once a message fills the aria-live regions.\n *\n * @return {HTMLParagraphElement} The explanatory text HTML element.\n */\nexport default function addIntroText() {\n\tconst introText = document.createElement( 'p' );\n\n\tintroText.id = 'a11y-speak-intro-text';\n\tintroText.className = 'a11y-speak-intro-text';\n\tintroText.textContent = __( 'Notifications' );\n\n\tintroText.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tintroText.setAttribute( 'hidden', 'hidden' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( introText );\n\t}\n\n\treturn introText;\n}\n","/**\n * Clears the a11y-speak-region elements and hides the explanatory text.\n */\nexport default function clear() {\n\tconst regions = document.getElementsByClassName( 'a11y-speak-region' );\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\n\tfor ( let i = 0; i < regions.length; i++ ) {\n\t\tregions[ i ].textContent = '';\n\t}\n\n\t// Make sure the explanatory text is hidden from assistive technologies.\n\tif ( introText ) {\n\t\tintroText.setAttribute( 'hidden', 'hidden' );\n\t}\n}\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","addContainer","ariaLive","container","document","createElement","id","className","setAttribute","body","appendChild","previousMessage","setup","introText","getElementById","containerAssertive","containerPolite","textContent","__","addIntroText","speak","message","regions","getElementsByClassName","i","length","clear","replace","filterMessage","removeAttribute","domReady"],"sourceRoot":""}
|
1 |
+
{"version":3,"file":"./build/a11y/index.min.js","mappings":"yBACA,IAAIA,EAAsB,CCA1BA,EAAwB,SAASC,GAChC,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,WAAa,OAAOF,EAAgB,OAAG,EACvC,WAAa,OAAOA,CAAQ,EAE7B,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CACR,ECNAF,EAAwB,SAASM,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,ECPAR,EAAwB,SAASc,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,ECCtGf,EAAwB,SAASM,GACX,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GACvD,G,2ECNA,IAAI,EAA+BC,OAAW,GAAY,S,SCAtD,EAA+BA,OAAW,GAAQ,KCOvC,SAASC,IAAoC,IAAtBC,EAAsB,uDAAX,SAChD,MAAMC,EAAYC,SAASC,cAAe,OAC1CF,EAAUG,GAAM,cAAcJ,IAC9BC,EAAUI,UAAY,oBAEtBJ,EAAUK,aACT,QACA,iNAYDL,EAAUK,aAAc,YAAaN,GACrCC,EAAUK,aAAc,gBAAiB,kBACzCL,EAAUK,aAAc,cAAe,QAEvC,MAAM,KAAEC,GAASL,SAKjB,OAJKK,GACJA,EAAKC,YAAaP,GAGZA,CACP,CCpCD,IAAIQ,EAAkB,GCgBf,SAASC,IACf,MAAMC,EAAYT,SAASU,eAAgB,yBACrCC,EAAqBX,SAASU,eACnC,wBAEKE,EAAkBZ,SAASU,eAAgB,qBAE9B,OAAdD,GCVS,WACd,MAAMA,EAAYT,SAASC,cAAe,KAE1CQ,EAAUP,GAAK,wBACfO,EAAUN,UAAY,wBACtBM,EAAUI,aAAcC,EAAAA,EAAAA,IAAI,iBAE5BL,EAAUL,aACT,QACA,iNAYDK,EAAUL,aAAc,SAAU,UAElC,MAAM,KAAEC,GAASL,SACZK,GACJA,EAAKC,YAAaG,EAInB,CDlBCM,GAG2B,OAAvBJ,GACJd,EAAc,aAGU,OAApBe,GACJf,EAAc,SAEf,CAyBM,SAASmB,EAAOC,EAASnB,IExDjB,WACd,MAAMoB,EAAUlB,SAASmB,uBAAwB,qBAC3CV,EAAYT,SAASU,eAAgB,yBAE3C,IAAM,IAAIU,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IACpCF,EAASE,GAAIP,YAAc,GAIvBJ,GACJA,EAAUL,aAAc,SAAU,SAEnC,CFiDAkB,GAEAL,EDzDc,SAAwBA,GAoBtC,OAZAA,EAAUA,EAAQM,QAAS,YAAa,KAMnChB,IAAoBU,IACxBA,GAAW,KAGZV,EAAkBU,EAEXA,CACP,CCoCUO,CAAeP,GAEzB,MAAMR,EAAYT,SAASU,eAAgB,yBACrCC,EAAqBX,SAASU,eACnC,wBAEKE,EAAkBZ,SAASU,eAAgB,qBAE5CC,GAAmC,cAAbb,EAC1Ba,EAAmBE,YAAcI,EACtBL,IACXA,EAAgBC,YAAcI,GAO1BR,GACJA,EAAUgB,gBAAiB,SAE5B,CAhDDC,IAAUlB,I","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/compat get default export","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"domReady\"]","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/add-container.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/filter-message.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/index.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/add-intro-text.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/clear.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"domReady\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * Build the live regions markup.\n *\n * @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'.\n *\n * @return {HTMLDivElement} The ARIA live region HTML element.\n */\nexport default function addContainer( ariaLive = 'polite' ) {\n\tconst container = document.createElement( 'div' );\n\tcontainer.id = `a11y-speak-${ ariaLive }`;\n\tcontainer.className = 'a11y-speak-region';\n\n\tcontainer.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tcontainer.setAttribute( 'aria-live', ariaLive );\n\tcontainer.setAttribute( 'aria-relevant', 'additions text' );\n\tcontainer.setAttribute( 'aria-atomic', 'true' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( container );\n\t}\n\n\treturn container;\n}\n","let previousMessage = '';\n\n/**\n * Filter the message to be announced to the screenreader.\n *\n * @param {string} message The message to be announced.\n *\n * @return {string} The filtered message.\n */\nexport default function filterMessage( message ) {\n\t/*\n\t * Strip HTML tags (if any) from the message string. Ideally, messages should\n\t * be simple strings, carefully crafted for specific use with A11ySpeak.\n\t * When re-using already existing strings this will ensure simple HTML to be\n\t * stripped out and replaced with a space. Browsers will collapse multiple\n\t * spaces natively.\n\t */\n\tmessage = message.replace( /<[^<>]+>/g, ' ' );\n\n\t/*\n\t * Safari + VoiceOver don't announce repeated, identical strings. We use\n\t * a `no-break space` to force them to think identical strings are different.\n\t */\n\tif ( previousMessage === message ) {\n\t\tmessage += '\\u00A0';\n\t}\n\n\tpreviousMessage = message;\n\n\treturn message;\n}\n","/**\n * WordPress dependencies\n */\nimport domReady from '@wordpress/dom-ready';\n\n/**\n * Internal dependencies\n */\nimport addIntroText from './add-intro-text';\nimport addContainer from './add-container';\nimport clear from './clear';\nimport filterMessage from './filter-message';\n\n/**\n * Create the live regions.\n */\nexport function setup() {\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( introText === null ) {\n\t\taddIntroText();\n\t}\n\n\tif ( containerAssertive === null ) {\n\t\taddContainer( 'assertive' );\n\t}\n\n\tif ( containerPolite === null ) {\n\t\taddContainer( 'polite' );\n\t}\n}\n\n/**\n * Run setup on domReady.\n */\ndomReady( setup );\n\n/**\n * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.\n * This module is inspired by the `speak` function in `wp-a11y.js`.\n *\n * @param {string} message The message to be announced by assistive technologies.\n * @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'.\n *\n * @example\n * ```js\n * import { speak } from '@wordpress/a11y';\n *\n * // For polite messages that shouldn't interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region' );\n *\n * // For assertive messages that should interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region', 'assertive' );\n * ```\n */\nexport function speak( message, ariaLive ) {\n\t/*\n\t * Clear previous messages to allow repeated strings being read out and hide\n\t * the explanatory text from assistive technologies.\n\t */\n\tclear();\n\n\tmessage = filterMessage( message );\n\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( containerAssertive && ariaLive === 'assertive' ) {\n\t\tcontainerAssertive.textContent = message;\n\t} else if ( containerPolite ) {\n\t\tcontainerPolite.textContent = message;\n\t}\n\n\t/*\n\t * Make the explanatory text available to assistive technologies by removing\n\t * the 'hidden' HTML attribute.\n\t */\n\tif ( introText ) {\n\t\tintroText.removeAttribute( 'hidden' );\n\t}\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Build the explanatory text to be placed before the aria live regions.\n *\n * This text is initially hidden from assistive technologies by using a `hidden`\n * HTML attribute which is then removed once a message fills the aria-live regions.\n *\n * @return {HTMLParagraphElement} The explanatory text HTML element.\n */\nexport default function addIntroText() {\n\tconst introText = document.createElement( 'p' );\n\n\tintroText.id = 'a11y-speak-intro-text';\n\tintroText.className = 'a11y-speak-intro-text';\n\tintroText.textContent = __( 'Notifications' );\n\n\tintroText.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tintroText.setAttribute( 'hidden', 'hidden' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( introText );\n\t}\n\n\treturn introText;\n}\n","/**\n * Clears the a11y-speak-region elements and hides the explanatory text.\n */\nexport default function clear() {\n\tconst regions = document.getElementsByClassName( 'a11y-speak-region' );\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\n\tfor ( let i = 0; i < regions.length; i++ ) {\n\t\tregions[ i ].textContent = '';\n\t}\n\n\t// Make sure the explanatory text is hidden from assistive technologies.\n\tif ( introText ) {\n\t\tintroText.setAttribute( 'hidden', 'hidden' );\n\t}\n}\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","addContainer","ariaLive","container","document","createElement","id","className","setAttribute","body","appendChild","previousMessage","setup","introText","getElementById","containerAssertive","containerPolite","textContent","__","addIntroText","speak","message","regions","getElementsByClassName","i","length","clear","replace","filterMessage","removeAttribute","domReady"],"sourceRoot":""}
|
build/annotations/index.js
CHANGED
@@ -1,36 +1,36 @@
|
|
1 |
-
/******/ (()
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/define property getters */
|
8 |
-
/******/ (
|
9 |
/******/ // define getter functions for harmony exports
|
10 |
-
/******/ __webpack_require__.d = (exports, definition)
|
11 |
/******/ for(var key in definition) {
|
12 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14 |
/******/ }
|
15 |
/******/ }
|
16 |
/******/ };
|
17 |
-
/******/ }
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20 |
-
/******/ (
|
21 |
-
/******/ __webpack_require__.o = (obj, prop)
|
22 |
-
/******/ }
|
23 |
/******/
|
24 |
/******/ /* webpack/runtime/make namespace object */
|
25 |
-
/******/ (
|
26 |
/******/ // define __esModule on exports
|
27 |
-
/******/ __webpack_require__.r = (exports)
|
28 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
29 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
30 |
/******/ }
|
31 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
32 |
/******/ };
|
33 |
-
/******/ }
|
34 |
/******/
|
35 |
/************************************************************************/
|
36 |
var __webpack_exports__ = {};
|
@@ -39,33 +39,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
39 |
|
40 |
// EXPORTS
|
41 |
__webpack_require__.d(__webpack_exports__, {
|
42 |
-
"store": ()
|
43 |
});
|
44 |
|
45 |
// NAMESPACE OBJECT: ./packages/annotations/build-module/store/selectors.js
|
46 |
var selectors_namespaceObject = {};
|
47 |
__webpack_require__.r(selectors_namespaceObject);
|
48 |
__webpack_require__.d(selectors_namespaceObject, {
|
49 |
-
"__experimentalGetAllAnnotationsForBlock": ()
|
50 |
-
"__experimentalGetAnnotations": ()
|
51 |
-
"__experimentalGetAnnotationsForBlock": ()
|
52 |
-
"__experimentalGetAnnotationsForRichText": ()
|
53 |
});
|
54 |
|
55 |
// NAMESPACE OBJECT: ./packages/annotations/build-module/store/actions.js
|
56 |
var actions_namespaceObject = {};
|
57 |
__webpack_require__.r(actions_namespaceObject);
|
58 |
__webpack_require__.d(actions_namespaceObject, {
|
59 |
-
"__experimentalAddAnnotation": ()
|
60 |
-
"__experimentalRemoveAnnotation": ()
|
61 |
-
"__experimentalRemoveAnnotationsBySource": ()
|
62 |
-
"__experimentalUpdateAnnotationRange": ()
|
63 |
});
|
64 |
|
65 |
;// CONCATENATED MODULE: external ["wp","richText"]
|
66 |
-
|
67 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
68 |
-
|
69 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/store/constants.js
|
70 |
/**
|
71 |
* The identifier for the data store.
|
@@ -285,9 +285,9 @@ const {
|
|
285 |
(0,external_wp_richText_namespaceObject.registerFormatType)(format_name, settings);
|
286 |
|
287 |
;// CONCATENATED MODULE: external ["wp","hooks"]
|
288 |
-
|
289 |
;// CONCATENATED MODULE: external ["wp","data"]
|
290 |
-
|
291 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/block/index.js
|
292 |
/**
|
293 |
* WordPress dependencies
|
@@ -439,7 +439,7 @@ function annotations() {
|
|
439 |
|
440 |
return state;
|
441 |
}
|
442 |
-
/* harmony default export */
|
443 |
|
444 |
;// CONCATENATED MODULE: ./node_modules/rememo/es/rememo.js
|
445 |
|
@@ -839,7 +839,7 @@ function rng() {
|
|
839 |
return getRandomValues(rnds8);
|
840 |
}
|
841 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/regex.js
|
842 |
-
/* harmony default export */
|
843 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/validate.js
|
844 |
|
845 |
|
@@ -847,7 +847,7 @@ function validate(uuid) {
|
|
847 |
return typeof uuid === 'string' && regex.test(uuid);
|
848 |
}
|
849 |
|
850 |
-
/* harmony default export */
|
851 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
|
852 |
|
853 |
/**
|
@@ -878,7 +878,7 @@ function stringify(arr) {
|
|
878 |
return uuid;
|
879 |
}
|
880 |
|
881 |
-
/* harmony default export */
|
882 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
|
883 |
|
884 |
|
@@ -903,7 +903,7 @@ function v4(options, buf, offset) {
|
|
903 |
return esm_browser_stringify(rnds);
|
904 |
}
|
905 |
|
906 |
-
/* harmony default export */
|
907 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/store/actions.js
|
908 |
/**
|
909 |
* External dependencies
|
1 |
+
/******/ (function() { // webpackBootstrap
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/define property getters */
|
8 |
+
/******/ !function() {
|
9 |
/******/ // define getter functions for harmony exports
|
10 |
+
/******/ __webpack_require__.d = function(exports, definition) {
|
11 |
/******/ for(var key in definition) {
|
12 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14 |
/******/ }
|
15 |
/******/ }
|
16 |
/******/ };
|
17 |
+
/******/ }();
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20 |
+
/******/ !function() {
|
21 |
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
22 |
+
/******/ }();
|
23 |
/******/
|
24 |
/******/ /* webpack/runtime/make namespace object */
|
25 |
+
/******/ !function() {
|
26 |
/******/ // define __esModule on exports
|
27 |
+
/******/ __webpack_require__.r = function(exports) {
|
28 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
29 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
30 |
/******/ }
|
31 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
32 |
/******/ };
|
33 |
+
/******/ }();
|
34 |
/******/
|
35 |
/************************************************************************/
|
36 |
var __webpack_exports__ = {};
|
39 |
|
40 |
// EXPORTS
|
41 |
__webpack_require__.d(__webpack_exports__, {
|
42 |
+
"store": function() { return /* reexport */ store; }
|
43 |
});
|
44 |
|
45 |
// NAMESPACE OBJECT: ./packages/annotations/build-module/store/selectors.js
|
46 |
var selectors_namespaceObject = {};
|
47 |
__webpack_require__.r(selectors_namespaceObject);
|
48 |
__webpack_require__.d(selectors_namespaceObject, {
|
49 |
+
"__experimentalGetAllAnnotationsForBlock": function() { return __experimentalGetAllAnnotationsForBlock; },
|
50 |
+
"__experimentalGetAnnotations": function() { return __experimentalGetAnnotations; },
|
51 |
+
"__experimentalGetAnnotationsForBlock": function() { return __experimentalGetAnnotationsForBlock; },
|
52 |
+
"__experimentalGetAnnotationsForRichText": function() { return __experimentalGetAnnotationsForRichText; }
|
53 |
});
|
54 |
|
55 |
// NAMESPACE OBJECT: ./packages/annotations/build-module/store/actions.js
|
56 |
var actions_namespaceObject = {};
|
57 |
__webpack_require__.r(actions_namespaceObject);
|
58 |
__webpack_require__.d(actions_namespaceObject, {
|
59 |
+
"__experimentalAddAnnotation": function() { return __experimentalAddAnnotation; },
|
60 |
+
"__experimentalRemoveAnnotation": function() { return __experimentalRemoveAnnotation; },
|
61 |
+
"__experimentalRemoveAnnotationsBySource": function() { return __experimentalRemoveAnnotationsBySource; },
|
62 |
+
"__experimentalUpdateAnnotationRange": function() { return __experimentalUpdateAnnotationRange; }
|
63 |
});
|
64 |
|
65 |
;// CONCATENATED MODULE: external ["wp","richText"]
|
66 |
+
var external_wp_richText_namespaceObject = window["wp"]["richText"];
|
67 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
68 |
+
var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
69 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/store/constants.js
|
70 |
/**
|
71 |
* The identifier for the data store.
|
285 |
(0,external_wp_richText_namespaceObject.registerFormatType)(format_name, settings);
|
286 |
|
287 |
;// CONCATENATED MODULE: external ["wp","hooks"]
|
288 |
+
var external_wp_hooks_namespaceObject = window["wp"]["hooks"];
|
289 |
;// CONCATENATED MODULE: external ["wp","data"]
|
290 |
+
var external_wp_data_namespaceObject = window["wp"]["data"];
|
291 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/block/index.js
|
292 |
/**
|
293 |
* WordPress dependencies
|
439 |
|
440 |
return state;
|
441 |
}
|
442 |
+
/* harmony default export */ var reducer = (annotations);
|
443 |
|
444 |
;// CONCATENATED MODULE: ./node_modules/rememo/es/rememo.js
|
445 |
|
839 |
return getRandomValues(rnds8);
|
840 |
}
|
841 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/regex.js
|
842 |
+
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
|
843 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/validate.js
|
844 |
|
845 |
|
847 |
return typeof uuid === 'string' && regex.test(uuid);
|
848 |
}
|
849 |
|
850 |
+
/* harmony default export */ var esm_browser_validate = (validate);
|
851 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
|
852 |
|
853 |
/**
|
878 |
return uuid;
|
879 |
}
|
880 |
|
881 |
+
/* harmony default export */ var esm_browser_stringify = (stringify);
|
882 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
|
883 |
|
884 |
|
903 |
return esm_browser_stringify(rnds);
|
904 |
}
|
905 |
|
906 |
+
/* harmony default export */ var esm_browser_v4 = (v4);
|
907 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/store/actions.js
|
908 |
/**
|
909 |
* External dependencies
|
build/annotations/index.min.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'decae643d330d3d19cfb');
|
build/annotations/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
(
|
2 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:function(){return V}});var n={};e.r(n),e.d(n,{__experimentalGetAllAnnotationsForBlock:function(){return b},__experimentalGetAnnotations:function(){return O},__experimentalGetAnnotationsForBlock:function(){return T},__experimentalGetAnnotationsForRichText:function(){return N}});var r={};e.r(r),e.d(r,{__experimentalAddAnnotation:function(){return P},__experimentalRemoveAnnotation:function(){return U},__experimentalRemoveAnnotationsBySource:function(){return G},__experimentalUpdateAnnotationRange:function(){return F}});var o=window.wp.richText,a=window.wp.i18n;const i="core/annotations",l="core/annotation",u="annotation-text-",c={name:l,title:(0,a.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:()=>null,__experimentalGetPropsForEditableTreePreparation(e,t){let{richTextIdentifier:n,blockClientId:r}=t;return{annotations:e(i).__experimentalGetAnnotationsForRichText(r,n)}},__experimentalCreatePrepareEditableTree(e){let{annotations:t}=e;return(e,n)=>{if(0===t.length)return e;let r={formats:e,text:n};return r=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((t=>{let{start:n,end:r}=t;n>e.text.length&&(n=e.text.length),r>e.text.length&&(r=e.text.length);const a=u+t.source,i=u+t.id;e=(0,o.applyFormat)(e,{type:l,attributes:{className:a,id:i}},n,r)})),e}(r,t),r.formats}},__experimentalGetPropsForEditableTreeChangeHandler:e=>({removeAnnotation:e(i).__experimentalRemoveAnnotation,updateAnnotationRange:e(i).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:e=>t=>{const n=function(e){const t={};return e.forEach(((e,n)=>{(e=(e=e||[]).filter((e=>e.type===l))).forEach((e=>{let{id:r}=e.attributes;r=r.replace(u,""),t.hasOwnProperty(r)||(t[r]={start:n}),t[r].end=n+1}))})),t}(t),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=e;!function(e,t,n){let{removeAnnotation:r,updateAnnotationRange:o}=n;e.forEach((e=>{const n=t[e.id];if(!n)return void r(e.id);const{start:a,end:i}=e;a===n.start&&i===n.end||o(e.id,n.start,n.end)}))}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}},{name:s,...d}=c;(0,o.registerFormatType)(s,d);var p=window.wp.hooks,f=window.wp.data;function v(e,t){const n=e.filter(t);return e.length===n.length?e:n}(0,p.addFilter)("editor.BlockListBlock","core/annotations",(e=>(0,f.withSelect)(((e,t)=>{let{clientId:n,className:r}=t;return{className:e(i).__experimentalGetAnnotationsForBlock(n).map((e=>"is-annotated-by-"+e.source)).concat(r).filter(Boolean).join(" ")}}))(e)));const g=(e,t)=>Object.entries(e).reduce(((e,n)=>{let[r,o]=n;return{...e,[r]:t(o)}}),{});function m(e){return"number"==typeof e.start&&"number"==typeof e.end&&e.start<=e.end}var h={};function _(e){return[e]}function A(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function y(e,t){var n,r=t||_;function o(e){var t,r,o,a,i,l=n,u=!0;for(t=0;t<e.length;t++){if(!(i=r=e[t])||"object"!=typeof i){u=!1;break}l.has(r)?l=l.get(r):(o=new WeakMap,l.set(r,o),l=o)}return l.has(h)||((a=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=u,l.set(h,a)),l.get(h)}function a(){n=new WeakMap}function i(){var t,n,a,i,l,u=arguments.length;for(i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];for((t=o(l=r.apply(null,i))).isUniqueByDependants||(t.lastDependants&&!A(l,t.lastDependants,0)&&t.clear(),t.lastDependants=l),n=t.head;n;){if(A(n.args,i,1))return n!==t.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=t.head,n.prev=null,t.head.prev=n,t.head=n),n.val;n=n.next}return n={val:e.apply(null,i)},i[0]=null,n.args=i,t.head&&(t.head.prev=n,n.next=t.head),t.head=n,n.val}return i.getDependants=r,i.clear=a,a(),i}const x=[],T=y(((e,t)=>{var n;return(null!==(n=null==e?void 0:e[t])&&void 0!==n?n:[]).filter((e=>"block"===e.selector))}),((e,t)=>{var n;return[null!==(n=null==e?void 0:e[t])&&void 0!==n?n:x]}));function b(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:x}const N=y(((e,t,n)=>{var r;return(null!==(r=null==e?void 0:e[t])&&void 0!==r?r:[]).filter((e=>"range"===e.selector&&n===e.richTextIdentifier)).map((e=>{const{range:t,...n}=e;return{...t,...n}}))}),((e,t)=>{var n;return[null!==(n=null==e?void 0:e[t])&&void 0!==n?n:x]}));function O(e){return Object.values(e).flat()}var w="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),I=new Uint8Array(16);function R(){if(!w)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w(I)}for(var E=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,k=function(e){return"string"==typeof e&&E.test(e)},C=[],D=0;D<256;++D)C.push((D+256).toString(16).substr(1));var S=function(e,t,n){var r=(e=e||{}).random||(e.rng||R)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(C[e[t+0]]+C[e[t+1]]+C[e[t+2]]+C[e[t+3]]+"-"+C[e[t+4]]+C[e[t+5]]+"-"+C[e[t+6]]+C[e[t+7]]+"-"+C[e[t+8]]+C[e[t+9]]+"-"+C[e[t+10]]+C[e[t+11]]+C[e[t+12]]+C[e[t+13]]+C[e[t+14]]+C[e[t+15]]).toLowerCase();if(!k(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function P(e){let{blockClientId:t,richTextIdentifier:n=null,range:r=null,selector:o="range",source:a="default",id:i=S()}=e;const l={type:"ANNOTATION_ADD",id:i,blockClientId:t,richTextIdentifier:n,source:a,selector:o};return"range"===o&&(l.range=r),l}function U(e){return{type:"ANNOTATION_REMOVE",annotationId:e}}function F(e,t,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:e,start:t,end:n}}function G(e){return{type:"ANNOTATION_REMOVE_SOURCE",source:e}}const V=(0,f.createReduxStore)(i,{reducer:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"ANNOTATION_ADD":const r=n.blockClientId,o={id:n.id,blockClientId:r,richTextIdentifier:n.richTextIdentifier,source:n.source,selector:n.selector,range:n.range};if("range"===o.selector&&!m(o.range))return t;const a=null!==(e=null==t?void 0:t[r])&&void 0!==e?e:[];return{...t,[r]:[...a,o]};case"ANNOTATION_REMOVE":return g(t,(e=>v(e,(e=>e.id!==n.annotationId))));case"ANNOTATION_UPDATE_RANGE":return g(t,(e=>{let t=!1;const r=e.map((e=>e.id===n.annotationId?(t=!0,{...e,range:{start:n.start,end:n.end}}):e));return t?r:e}));case"ANNOTATION_REMOVE_SOURCE":return g(t,(e=>v(e,(e=>e.source!==n.source))))}return t},selectors:n,actions:r});(0,f.register)(V),(window.wp=window.wp||{}).annotations=t}();
|
2 |
//# sourceMappingURL=index.min.js.map
|
build/annotations/index.min.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"./build/annotations/index.min.js","mappings":"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","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"richText\"]","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/constants.js","webpack://wp/./packages/annotations/build-module/format/@wordpress/annotations/src/format/annotation.js","webpack://wp/./packages/annotations/build-module/format/@wordpress/annotations/src/format/index.js","webpack://wp/external window [\"wp\",\"hooks\"]","webpack://wp/external window [\"wp\",\"data\"]","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/reducer.js","webpack://wp/./packages/annotations/build-module/block/@wordpress/annotations/src/block/index.js","webpack://wp/./node_modules/rememo/es/rememo.js","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/selectors.js","webpack://wp/./node_modules/uuid/dist/esm-browser/rng.js","webpack://wp/./node_modules/uuid/dist/esm-browser/regex.js","webpack://wp/./node_modules/uuid/dist/esm-browser/validate.js","webpack://wp/./node_modules/uuid/dist/esm-browser/stringify.js","webpack://wp/./node_modules/uuid/dist/esm-browser/v4.js","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/actions.js","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"richText\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * The identifier for the data store.\n *\n * @type {string}\n */\nexport const STORE_NAME = 'core/annotations';\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { applyFormat, removeFormat } from '@wordpress/rich-text';\n\nconst FORMAT_NAME = 'core/annotation';\n\nconst ANNOTATION_ATTRIBUTE_PREFIX = 'annotation-text-';\n/**\n * Internal dependencies\n */\nimport { STORE_NAME } from '../store/constants';\n\n/**\n * Applies given annotations to the given record.\n *\n * @param {Object} record The record to apply annotations to.\n * @param {Array} annotations The annotation to apply.\n * @return {Object} A record with the annotations applied.\n */\nexport function applyAnnotations( record, annotations = [] ) {\n\tannotations.forEach( ( annotation ) => {\n\t\tlet { start, end } = annotation;\n\n\t\tif ( start > record.text.length ) {\n\t\t\tstart = record.text.length;\n\t\t}\n\n\t\tif ( end > record.text.length ) {\n\t\t\tend = record.text.length;\n\t\t}\n\n\t\tconst className = ANNOTATION_ATTRIBUTE_PREFIX + annotation.source;\n\t\tconst id = ANNOTATION_ATTRIBUTE_PREFIX + annotation.id;\n\n\t\trecord = applyFormat(\n\t\t\trecord,\n\t\t\t{\n\t\t\t\ttype: FORMAT_NAME,\n\t\t\t\tattributes: {\n\t\t\t\t\tclassName,\n\t\t\t\t\tid,\n\t\t\t\t},\n\t\t\t},\n\t\t\tstart,\n\t\t\tend\n\t\t);\n\t} );\n\n\treturn record;\n}\n\n/**\n * Removes annotations from the given record.\n *\n * @param {Object} record Record to remove annotations from.\n * @return {Object} The cleaned record.\n */\nexport function removeAnnotations( record ) {\n\treturn removeFormat( record, 'core/annotation', 0, record.text.length );\n}\n\n/**\n * Retrieves the positions of annotations inside an array of formats.\n *\n * @param {Array} formats Formats with annotations in there.\n * @return {Object} ID keyed positions of annotations.\n */\nfunction retrieveAnnotationPositions( formats ) {\n\tconst positions = {};\n\n\tformats.forEach( ( characterFormats, i ) => {\n\t\tcharacterFormats = characterFormats || [];\n\t\tcharacterFormats = characterFormats.filter(\n\t\t\t( format ) => format.type === FORMAT_NAME\n\t\t);\n\t\tcharacterFormats.forEach( ( format ) => {\n\t\t\tlet { id } = format.attributes;\n\t\t\tid = id.replace( ANNOTATION_ATTRIBUTE_PREFIX, '' );\n\n\t\t\tif ( ! positions.hasOwnProperty( id ) ) {\n\t\t\t\tpositions[ id ] = {\n\t\t\t\t\tstart: i,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Annotations refer to positions between characters.\n\t\t\t// Formats refer to the character themselves.\n\t\t\t// So we need to adjust for that here.\n\t\t\tpositions[ id ].end = i + 1;\n\t\t} );\n\t} );\n\n\treturn positions;\n}\n\n/**\n * Updates annotations in the state based on positions retrieved from RichText.\n *\n * @param {Array} annotations The annotations that are currently applied.\n * @param {Array} positions The current positions of the given annotations.\n * @param {Object} actions\n * @param {Function} actions.removeAnnotation Function to remove an annotation from the state.\n * @param {Function} actions.updateAnnotationRange Function to update an annotation range in the state.\n */\nfunction updateAnnotationsWithPositions(\n\tannotations,\n\tpositions,\n\t{ removeAnnotation, updateAnnotationRange }\n) {\n\tannotations.forEach( ( currentAnnotation ) => {\n\t\tconst position = positions[ currentAnnotation.id ];\n\t\t// If we cannot find an annotation, delete it.\n\t\tif ( ! position ) {\n\t\t\t// Apparently the annotation has been removed, so remove it from the state:\n\t\t\t// Remove...\n\t\t\tremoveAnnotation( currentAnnotation.id );\n\t\t\treturn;\n\t\t}\n\n\t\tconst { start, end } = currentAnnotation;\n\t\tif ( start !== position.start || end !== position.end ) {\n\t\t\tupdateAnnotationRange(\n\t\t\t\tcurrentAnnotation.id,\n\t\t\t\tposition.start,\n\t\t\t\tposition.end\n\t\t\t);\n\t\t}\n\t} );\n}\n\nexport const annotation = {\n\tname: FORMAT_NAME,\n\ttitle: __( 'Annotation' ),\n\ttagName: 'mark',\n\tclassName: 'annotation-text',\n\tattributes: {\n\t\tclassName: 'class',\n\t\tid: 'id',\n\t},\n\tedit() {\n\t\treturn null;\n\t},\n\t__experimentalGetPropsForEditableTreePreparation(\n\t\tselect,\n\t\t{ richTextIdentifier, blockClientId }\n\t) {\n\t\treturn {\n\t\t\tannotations: select(\n\t\t\t\tSTORE_NAME\n\t\t\t).__experimentalGetAnnotationsForRichText(\n\t\t\t\tblockClientId,\n\t\t\t\trichTextIdentifier\n\t\t\t),\n\t\t};\n\t},\n\t__experimentalCreatePrepareEditableTree( { annotations } ) {\n\t\treturn ( formats, text ) => {\n\t\t\tif ( annotations.length === 0 ) {\n\t\t\t\treturn formats;\n\t\t\t}\n\n\t\t\tlet record = { formats, text };\n\t\t\trecord = applyAnnotations( record, annotations );\n\t\t\treturn record.formats;\n\t\t};\n\t},\n\t__experimentalGetPropsForEditableTreeChangeHandler( dispatch ) {\n\t\treturn {\n\t\t\tremoveAnnotation:\n\t\t\t\tdispatch( STORE_NAME ).__experimentalRemoveAnnotation,\n\t\t\tupdateAnnotationRange:\n\t\t\t\tdispatch( STORE_NAME ).__experimentalUpdateAnnotationRange,\n\t\t};\n\t},\n\t__experimentalCreateOnChangeEditableValue( props ) {\n\t\treturn ( formats ) => {\n\t\t\tconst positions = retrieveAnnotationPositions( formats );\n\t\t\tconst { removeAnnotation, updateAnnotationRange, annotations } =\n\t\t\t\tprops;\n\n\t\t\tupdateAnnotationsWithPositions( annotations, positions, {\n\t\t\t\tremoveAnnotation,\n\t\t\t\tupdateAnnotationRange,\n\t\t\t} );\n\t\t};\n\t},\n};\n","/**\n * WordPress dependencies\n */\nimport { registerFormatType } from '@wordpress/rich-text';\n\n/**\n * Internal dependencies\n */\nimport { annotation } from './annotation';\n\nconst { name, ...settings } = annotation;\n\nregisterFormatType( name, settings );\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"hooks\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","/**\n * Filters an array based on the predicate, but keeps the reference the same if\n * the array hasn't changed.\n *\n * @param {Array} collection The collection to filter.\n * @param {Function} predicate Function that determines if the item should stay\n * in the array.\n * @return {Array} Filtered array.\n */\nfunction filterWithReference( collection, predicate ) {\n\tconst filteredCollection = collection.filter( predicate );\n\n\treturn collection.length === filteredCollection.length\n\t\t? collection\n\t\t: filteredCollection;\n}\n\n/**\n * Creates a new object with the same keys, but with `callback()` called as\n * a transformer function on each of the values.\n *\n * @param {Object} obj The object to transform.\n * @param {Function} callback The function to transform each object value.\n * @return {Array} Transformed object.\n */\nconst mapValues = ( obj, callback ) =>\n\tObject.entries( obj ).reduce(\n\t\t( acc, [ key, value ] ) => ( {\n\t\t\t...acc,\n\t\t\t[ key ]: callback( value ),\n\t\t} ),\n\t\t{}\n\t);\n\n/**\n * Verifies whether the given annotations is a valid annotation.\n *\n * @param {Object} annotation The annotation to verify.\n * @return {boolean} Whether the given annotation is valid.\n */\nfunction isValidAnnotationRange( annotation ) {\n\treturn (\n\t\ttypeof annotation.start === 'number' &&\n\t\ttypeof annotation.end === 'number' &&\n\t\tannotation.start <= annotation.end\n\t);\n}\n\n/**\n * Reducer managing annotations.\n *\n * @param {Object} state The annotations currently shown in the editor.\n * @param {Object} action Dispatched action.\n *\n * @return {Array} Updated state.\n */\nexport function annotations( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'ANNOTATION_ADD':\n\t\t\tconst blockClientId = action.blockClientId;\n\t\t\tconst newAnnotation = {\n\t\t\t\tid: action.id,\n\t\t\t\tblockClientId,\n\t\t\t\trichTextIdentifier: action.richTextIdentifier,\n\t\t\t\tsource: action.source,\n\t\t\t\tselector: action.selector,\n\t\t\t\trange: action.range,\n\t\t\t};\n\n\t\t\tif (\n\t\t\t\tnewAnnotation.selector === 'range' &&\n\t\t\t\t! isValidAnnotationRange( newAnnotation.range )\n\t\t\t) {\n\t\t\t\treturn state;\n\t\t\t}\n\n\t\t\tconst previousAnnotationsForBlock = state?.[ blockClientId ] ?? [];\n\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ blockClientId ]: [\n\t\t\t\t\t...previousAnnotationsForBlock,\n\t\t\t\t\tnewAnnotation,\n\t\t\t\t],\n\t\t\t};\n\n\t\tcase 'ANNOTATION_REMOVE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\treturn filterWithReference(\n\t\t\t\t\tannotationsForBlock,\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\treturn annotation.id !== action.annotationId;\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} );\n\n\t\tcase 'ANNOTATION_UPDATE_RANGE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\tlet hasChangedRange = false;\n\n\t\t\t\tconst newAnnotations = annotationsForBlock.map(\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\tif ( annotation.id === action.annotationId ) {\n\t\t\t\t\t\t\thasChangedRange = true;\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...annotation,\n\t\t\t\t\t\t\t\trange: {\n\t\t\t\t\t\t\t\t\tstart: action.start,\n\t\t\t\t\t\t\t\t\tend: action.end,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn annotation;\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\treturn hasChangedRange ? newAnnotations : annotationsForBlock;\n\t\t\t} );\n\n\t\tcase 'ANNOTATION_REMOVE_SOURCE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\treturn filterWithReference(\n\t\t\t\t\tannotationsForBlock,\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\treturn annotation.source !== action.source;\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} );\n\t}\n\n\treturn state;\n}\n\nexport default annotations;\n","/**\n * WordPress dependencies\n */\nimport { addFilter } from '@wordpress/hooks';\nimport { withSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { STORE_NAME } from '../store/constants';\n/**\n * Adds annotation className to the block-list-block component.\n *\n * @param {Object} OriginalComponent The original BlockListBlock component.\n * @return {Object} The enhanced component.\n */\nconst addAnnotationClassName = ( OriginalComponent ) => {\n\treturn withSelect( ( select, { clientId, className } ) => {\n\t\tconst annotations =\n\t\t\tselect( STORE_NAME ).__experimentalGetAnnotationsForBlock(\n\t\t\t\tclientId\n\t\t\t);\n\n\t\treturn {\n\t\t\tclassName: annotations\n\t\t\t\t.map( ( annotation ) => {\n\t\t\t\t\treturn 'is-annotated-by-' + annotation.source;\n\t\t\t\t} )\n\t\t\t\t.concat( className )\n\t\t\t\t.filter( Boolean )\n\t\t\t\t.join( ' ' ),\n\t\t};\n\t} )( OriginalComponent );\n};\n\naddFilter(\n\t'editor.BlockListBlock',\n\t'core/annotations',\n\taddAnnotationClassName\n);\n","'use strict';\n\n/** @typedef {(...args: any[]) => *[]} GetDependants */\n\n/** @typedef {() => void} Clear */\n\n/**\n * @typedef {{\n * getDependants: GetDependants,\n * clear: Clear\n * }} EnhancedSelector\n */\n\n/**\n * Internal cache entry.\n *\n * @typedef CacheNode\n *\n * @property {?CacheNode|undefined} [prev] Previous node.\n * @property {?CacheNode|undefined} [next] Next node.\n * @property {*[]} args Function arguments for cache entry.\n * @property {*} val Function result.\n */\n\n/**\n * @typedef Cache\n *\n * @property {Clear} clear Function to clear cache.\n * @property {boolean} [isUniqueByDependants] Whether dependants are valid in\n * considering cache uniqueness. A cache is unique if dependents are all arrays\n * or objects.\n * @property {CacheNode?} [head] Cache head.\n * @property {*[]} [lastDependants] Dependants from previous invocation.\n */\n\n/**\n * Arbitrary value used as key for referencing cache object in WeakMap tree.\n *\n * @type {{}}\n */\nvar LEAF_KEY = {};\n\n/**\n * Returns the first argument as the sole entry in an array.\n *\n * @template T\n *\n * @param {T} value Value to return.\n *\n * @return {[T]} Value returned as entry in array.\n */\nfunction arrayOf(value) {\n\treturn [value];\n}\n\n/**\n * Returns true if the value passed is object-like, or false otherwise. A value\n * is object-like if it can support property assignment, e.g. object or array.\n *\n * @param {*} value Value to test.\n *\n * @return {boolean} Whether value is object-like.\n */\nfunction isObjectLike(value) {\n\treturn !!value && 'object' === typeof value;\n}\n\n/**\n * Creates and returns a new cache object.\n *\n * @return {Cache} Cache object.\n */\nfunction createCache() {\n\t/** @type {Cache} */\n\tvar cache = {\n\t\tclear: function () {\n\t\t\tcache.head = null;\n\t\t},\n\t};\n\n\treturn cache;\n}\n\n/**\n * Returns true if entries within the two arrays are strictly equal by\n * reference from a starting index.\n *\n * @param {*[]} a First array.\n * @param {*[]} b Second array.\n * @param {number} fromIndex Index from which to start comparison.\n *\n * @return {boolean} Whether arrays are shallowly equal.\n */\nfunction isShallowEqual(a, b, fromIndex) {\n\tvar i;\n\n\tif (a.length !== b.length) {\n\t\treturn false;\n\t}\n\n\tfor (i = fromIndex; i < a.length; i++) {\n\t\tif (a[i] !== b[i]) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n\n/**\n * Returns a memoized selector function. The getDependants function argument is\n * called before the memoized selector and is expected to return an immutable\n * reference or array of references on which the selector depends for computing\n * its own return value. The memoize cache is preserved only as long as those\n * dependant references remain the same. If getDependants returns a different\n * reference(s), the cache is cleared and the selector value regenerated.\n *\n * @template {(...args: *[]) => *} S\n *\n * @param {S} selector Selector function.\n * @param {GetDependants=} getDependants Dependant getter returning an array of\n * references used in cache bust consideration.\n */\nexport default function (selector, getDependants) {\n\t/** @type {WeakMap<*,*>} */\n\tvar rootCache;\n\n\t/** @type {GetDependants} */\n\tvar normalizedGetDependants = getDependants ? getDependants : arrayOf;\n\n\t/**\n\t * Returns the cache for a given dependants array. When possible, a WeakMap\n\t * will be used to create a unique cache for each set of dependants. This\n\t * is feasible due to the nature of WeakMap in allowing garbage collection\n\t * to occur on entries where the key object is no longer referenced. Since\n\t * WeakMap requires the key to be an object, this is only possible when the\n\t * dependant is object-like. The root cache is created as a hierarchy where\n\t * each top-level key is the first entry in a dependants set, the value a\n\t * WeakMap where each key is the next dependant, and so on. This continues\n\t * so long as the dependants are object-like. If no dependants are object-\n\t * like, then the cache is shared across all invocations.\n\t *\n\t * @see isObjectLike\n\t *\n\t * @param {*[]} dependants Selector dependants.\n\t *\n\t * @return {Cache} Cache object.\n\t */\n\tfunction getCache(dependants) {\n\t\tvar caches = rootCache,\n\t\t\tisUniqueByDependants = true,\n\t\t\ti,\n\t\t\tdependant,\n\t\t\tmap,\n\t\t\tcache;\n\n\t\tfor (i = 0; i < dependants.length; i++) {\n\t\t\tdependant = dependants[i];\n\n\t\t\t// Can only compose WeakMap from object-like key.\n\t\t\tif (!isObjectLike(dependant)) {\n\t\t\t\tisUniqueByDependants = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Does current segment of cache already have a WeakMap?\n\t\t\tif (caches.has(dependant)) {\n\t\t\t\t// Traverse into nested WeakMap.\n\t\t\t\tcaches = caches.get(dependant);\n\t\t\t} else {\n\t\t\t\t// Create, set, and traverse into a new one.\n\t\t\t\tmap = new WeakMap();\n\t\t\t\tcaches.set(dependant, map);\n\t\t\t\tcaches = map;\n\t\t\t}\n\t\t}\n\n\t\t// We use an arbitrary (but consistent) object as key for the last item\n\t\t// in the WeakMap to serve as our running cache.\n\t\tif (!caches.has(LEAF_KEY)) {\n\t\t\tcache = createCache();\n\t\t\tcache.isUniqueByDependants = isUniqueByDependants;\n\t\t\tcaches.set(LEAF_KEY, cache);\n\t\t}\n\n\t\treturn caches.get(LEAF_KEY);\n\t}\n\n\t/**\n\t * Resets root memoization cache.\n\t */\n\tfunction clear() {\n\t\trootCache = new WeakMap();\n\t}\n\n\t/* eslint-disable jsdoc/check-param-names */\n\t/**\n\t * The augmented selector call, considering first whether dependants have\n\t * changed before passing it to underlying memoize function.\n\t *\n\t * @param {*} source Source object for derivation.\n\t * @param {...*} extraArgs Additional arguments to pass to selector.\n\t *\n\t * @return {*} Selector result.\n\t */\n\t/* eslint-enable jsdoc/check-param-names */\n\tfunction callSelector(/* source, ...extraArgs */) {\n\t\tvar len = arguments.length,\n\t\t\tcache,\n\t\t\tnode,\n\t\t\ti,\n\t\t\targs,\n\t\t\tdependants;\n\n\t\t// Create copy of arguments (avoid leaking deoptimization).\n\t\targs = new Array(len);\n\t\tfor (i = 0; i < len; i++) {\n\t\t\targs[i] = arguments[i];\n\t\t}\n\n\t\tdependants = normalizedGetDependants.apply(null, args);\n\t\tcache = getCache(dependants);\n\n\t\t// If not guaranteed uniqueness by dependants (primitive type), shallow\n\t\t// compare against last dependants and, if references have changed,\n\t\t// destroy cache to recalculate result.\n\t\tif (!cache.isUniqueByDependants) {\n\t\t\tif (\n\t\t\t\tcache.lastDependants &&\n\t\t\t\t!isShallowEqual(dependants, cache.lastDependants, 0)\n\t\t\t) {\n\t\t\t\tcache.clear();\n\t\t\t}\n\n\t\t\tcache.lastDependants = dependants;\n\t\t}\n\n\t\tnode = cache.head;\n\t\twhile (node) {\n\t\t\t// Check whether node arguments match arguments\n\t\t\tif (!isShallowEqual(node.args, args, 1)) {\n\t\t\t\tnode = node.next;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// At this point we can assume we've found a match\n\n\t\t\t// Surface matched node to head if not already\n\t\t\tif (node !== cache.head) {\n\t\t\t\t// Adjust siblings to point to each other.\n\t\t\t\t/** @type {CacheNode} */ (node.prev).next = node.next;\n\t\t\t\tif (node.next) {\n\t\t\t\t\tnode.next.prev = node.prev;\n\t\t\t\t}\n\n\t\t\t\tnode.next = cache.head;\n\t\t\t\tnode.prev = null;\n\t\t\t\t/** @type {CacheNode} */ (cache.head).prev = node;\n\t\t\t\tcache.head = node;\n\t\t\t}\n\n\t\t\t// Return immediately\n\t\t\treturn node.val;\n\t\t}\n\n\t\t// No cached value found. Continue to insertion phase:\n\n\t\tnode = /** @type {CacheNode} */ ({\n\t\t\t// Generate the result from original function\n\t\t\tval: selector.apply(null, args),\n\t\t});\n\n\t\t// Avoid including the source object in the cache.\n\t\targs[0] = null;\n\t\tnode.args = args;\n\n\t\t// Don't need to check whether node is already head, since it would\n\t\t// have been returned above already if it was\n\n\t\t// Shift existing head down list\n\t\tif (cache.head) {\n\t\t\tcache.head.prev = node;\n\t\t\tnode.next = cache.head;\n\t\t}\n\n\t\tcache.head = node;\n\n\t\treturn node.val;\n\t}\n\n\tcallSelector.getDependants = normalizedGetDependants;\n\tcallSelector.clear = clear;\n\tclear();\n\n\treturn /** @type {S & EnhancedSelector} */ (callSelector);\n}\n","/**\n * External dependencies\n */\nimport createSelector from 'rememo';\n\n/**\n * Shared reference to an empty array for cases where it is important to avoid\n * returning a new array reference on every invocation, as in a connected or\n * other pure component which performs `shouldComponentUpdate` check on props.\n * This should be used as a last resort, since the normalized data should be\n * maintained by the reducer result in state.\n *\n * @type {Array}\n */\nconst EMPTY_ARRAY = [];\n\n/**\n * Returns the annotations for a specific client ID.\n *\n * @param {Object} state Editor state.\n * @param {string} clientId The ID of the block to get the annotations for.\n *\n * @return {Array} The annotations applicable to this block.\n */\nexport const __experimentalGetAnnotationsForBlock = createSelector(\n\t( state, blockClientId ) => {\n\t\treturn ( state?.[ blockClientId ] ?? [] ).filter( ( annotation ) => {\n\t\t\treturn annotation.selector === 'block';\n\t\t} );\n\t},\n\t( state, blockClientId ) => [ state?.[ blockClientId ] ?? EMPTY_ARRAY ]\n);\n\nexport function __experimentalGetAllAnnotationsForBlock(\n\tstate,\n\tblockClientId\n) {\n\treturn state?.[ blockClientId ] ?? EMPTY_ARRAY;\n}\n\n/**\n * Returns the annotations that apply to the given RichText instance.\n *\n * Both a blockClientId and a richTextIdentifier are required. This is because\n * a block might have multiple `RichText` components. This does mean that every\n * block needs to implement annotations itself.\n *\n * @param {Object} state Editor state.\n * @param {string} blockClientId The client ID for the block.\n * @param {string} richTextIdentifier Unique identifier that identifies the given RichText.\n * @return {Array} All the annotations relevant for the `RichText`.\n */\nexport const __experimentalGetAnnotationsForRichText = createSelector(\n\t( state, blockClientId, richTextIdentifier ) => {\n\t\treturn ( state?.[ blockClientId ] ?? [] )\n\t\t\t.filter( ( annotation ) => {\n\t\t\t\treturn (\n\t\t\t\t\tannotation.selector === 'range' &&\n\t\t\t\t\trichTextIdentifier === annotation.richTextIdentifier\n\t\t\t\t);\n\t\t\t} )\n\t\t\t.map( ( annotation ) => {\n\t\t\t\tconst { range, ...other } = annotation;\n\n\t\t\t\treturn {\n\t\t\t\t\t...range,\n\t\t\t\t\t...other,\n\t\t\t\t};\n\t\t\t} );\n\t},\n\t( state, blockClientId ) => [ state?.[ blockClientId ] ?? EMPTY_ARRAY ]\n);\n\n/**\n * Returns all annotations in the editor state.\n *\n * @param {Object} state Editor state.\n * @return {Array} All annotations currently applied.\n */\nexport function __experimentalGetAnnotations( state ) {\n\treturn Object.values( state ).flat();\n}\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n// find the complete implementation of crypto (msCrypto) on IE11.\nvar getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","/**\n * External dependencies\n */\nimport { v4 as uuid } from 'uuid';\n\n/**\n * @typedef WPAnnotationRange\n *\n * @property {number} start The offset where the annotation should start.\n * @property {number} end The offset where the annotation should end.\n */\n\n/**\n * Adds an annotation to a block.\n *\n * The `block` attribute refers to a block ID that needs to be annotated.\n * `isBlockAnnotation` controls whether or not the annotation is a block\n * annotation. The `source` is the source of the annotation, this will be used\n * to identity groups of annotations.\n *\n * The `range` property is only relevant if the selector is 'range'.\n *\n * @param {Object} annotation The annotation to add.\n * @param {string} annotation.blockClientId The blockClientId to add the annotation to.\n * @param {string} annotation.richTextIdentifier Identifier for the RichText instance the annotation applies to.\n * @param {WPAnnotationRange} annotation.range The range at which to apply this annotation.\n * @param {string} [annotation.selector=\"range\"] The way to apply this annotation.\n * @param {string} [annotation.source=\"default\"] The source that added the annotation.\n * @param {string} [annotation.id] The ID the annotation should have. Generates a UUID by default.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalAddAnnotation( {\n\tblockClientId,\n\trichTextIdentifier = null,\n\trange = null,\n\tselector = 'range',\n\tsource = 'default',\n\tid = uuid(),\n} ) {\n\tconst action = {\n\t\ttype: 'ANNOTATION_ADD',\n\t\tid,\n\t\tblockClientId,\n\t\trichTextIdentifier,\n\t\tsource,\n\t\tselector,\n\t};\n\n\tif ( selector === 'range' ) {\n\t\taction.range = range;\n\t}\n\n\treturn action;\n}\n\n/**\n * Removes an annotation with a specific ID.\n *\n * @param {string} annotationId The annotation to remove.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalRemoveAnnotation( annotationId ) {\n\treturn {\n\t\ttype: 'ANNOTATION_REMOVE',\n\t\tannotationId,\n\t};\n}\n\n/**\n * Updates the range of an annotation.\n *\n * @param {string} annotationId ID of the annotation to update.\n * @param {number} start The start of the new range.\n * @param {number} end The end of the new range.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalUpdateAnnotationRange(\n\tannotationId,\n\tstart,\n\tend\n) {\n\treturn {\n\t\ttype: 'ANNOTATION_UPDATE_RANGE',\n\t\tannotationId,\n\t\tstart,\n\t\tend,\n\t};\n}\n\n/**\n * Removes all annotations of a specific source.\n *\n * @param {string} source The source to remove.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalRemoveAnnotationsBySource( source ) {\n\treturn {\n\t\ttype: 'ANNOTATION_REMOVE_SOURCE',\n\t\tsource,\n\t};\n}\n","/**\n * WordPress dependencies\n */\nimport { register, createReduxStore } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as selectors from './selectors';\nimport * as actions from './actions';\n\n/**\n * Module Constants\n */\nimport { STORE_NAME } from './constants';\n\n/**\n * Store definition for the annotations namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, {\n\treducer,\n\tselectors,\n\tactions,\n} );\n\nregister( store );\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","STORE_NAME","FORMAT_NAME","ANNOTATION_ATTRIBUTE_PREFIX","annotation","name","title","__","tagName","className","attributes","id","edit","__experimentalGetPropsForEditableTreePreparation","select","richTextIdentifier","blockClientId","annotations","__experimentalGetAnnotationsForRichText","__experimentalCreatePrepareEditableTree","formats","text","length","record","forEach","start","end","source","applyFormat","type","applyAnnotations","__experimentalGetPropsForEditableTreeChangeHandler","dispatch","removeAnnotation","__experimentalRemoveAnnotation","updateAnnotationRange","__experimentalUpdateAnnotationRange","__experimentalCreateOnChangeEditableValue","props","positions","characterFormats","i","filter","format","replace","retrieveAnnotationPositions","currentAnnotation","position","updateAnnotationsWithPositions","settings","registerFormatType","filterWithReference","collection","predicate","filteredCollection","addFilter","OriginalComponent","withSelect","clientId","__experimentalGetAnnotationsForBlock","map","concat","Boolean","join","mapValues","callback","entries","reduce","acc","isValidAnnotationRange","LEAF_KEY","arrayOf","isShallowEqual","a","b","fromIndex","selector","getDependants","rootCache","normalizedGetDependants","getCache","dependants","dependant","cache","caches","isUniqueByDependants","has","WeakMap","set","clear","head","createCache","callSelector","node","args","len","arguments","Array","apply","lastDependants","next","prev","val","EMPTY_ARRAY","createSelector","state","__experimentalGetAllAnnotationsForBlock","range","other","__experimentalGetAnnotations","values","flat","getRandomValues","crypto","bind","msCrypto","rnds8","Uint8Array","rng","Error","uuid","byteToHex","push","toString","substr","options","buf","offset","rnds","random","arr","undefined","toLowerCase","TypeError","__experimentalAddAnnotation","action","annotationId","__experimentalRemoveAnnotationsBySource","store","createReduxStore","reducer","newAnnotation","previousAnnotationsForBlock","annotationsForBlock","hasChangedRange","newAnnotations","selectors","actions","register"],"sourceRoot":""}
|
1 |
+
{"version":3,"file":"./build/annotations/index.min.js","mappings":"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","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"richText\"]","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/constants.js","webpack://wp/./packages/annotations/build-module/format/@wordpress/annotations/src/format/annotation.js","webpack://wp/./packages/annotations/build-module/format/@wordpress/annotations/src/format/index.js","webpack://wp/external window [\"wp\",\"hooks\"]","webpack://wp/external window [\"wp\",\"data\"]","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/reducer.js","webpack://wp/./packages/annotations/build-module/block/@wordpress/annotations/src/block/index.js","webpack://wp/./node_modules/rememo/es/rememo.js","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/selectors.js","webpack://wp/./node_modules/uuid/dist/esm-browser/rng.js","webpack://wp/./node_modules/uuid/dist/esm-browser/stringify.js","webpack://wp/./node_modules/uuid/dist/esm-browser/regex.js","webpack://wp/./node_modules/uuid/dist/esm-browser/validate.js","webpack://wp/./node_modules/uuid/dist/esm-browser/v4.js","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/actions.js","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"richText\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * The identifier for the data store.\n *\n * @type {string}\n */\nexport const STORE_NAME = 'core/annotations';\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { applyFormat, removeFormat } from '@wordpress/rich-text';\n\nconst FORMAT_NAME = 'core/annotation';\n\nconst ANNOTATION_ATTRIBUTE_PREFIX = 'annotation-text-';\n/**\n * Internal dependencies\n */\nimport { STORE_NAME } from '../store/constants';\n\n/**\n * Applies given annotations to the given record.\n *\n * @param {Object} record The record to apply annotations to.\n * @param {Array} annotations The annotation to apply.\n * @return {Object} A record with the annotations applied.\n */\nexport function applyAnnotations( record, annotations = [] ) {\n\tannotations.forEach( ( annotation ) => {\n\t\tlet { start, end } = annotation;\n\n\t\tif ( start > record.text.length ) {\n\t\t\tstart = record.text.length;\n\t\t}\n\n\t\tif ( end > record.text.length ) {\n\t\t\tend = record.text.length;\n\t\t}\n\n\t\tconst className = ANNOTATION_ATTRIBUTE_PREFIX + annotation.source;\n\t\tconst id = ANNOTATION_ATTRIBUTE_PREFIX + annotation.id;\n\n\t\trecord = applyFormat(\n\t\t\trecord,\n\t\t\t{\n\t\t\t\ttype: FORMAT_NAME,\n\t\t\t\tattributes: {\n\t\t\t\t\tclassName,\n\t\t\t\t\tid,\n\t\t\t\t},\n\t\t\t},\n\t\t\tstart,\n\t\t\tend\n\t\t);\n\t} );\n\n\treturn record;\n}\n\n/**\n * Removes annotations from the given record.\n *\n * @param {Object} record Record to remove annotations from.\n * @return {Object} The cleaned record.\n */\nexport function removeAnnotations( record ) {\n\treturn removeFormat( record, 'core/annotation', 0, record.text.length );\n}\n\n/**\n * Retrieves the positions of annotations inside an array of formats.\n *\n * @param {Array} formats Formats with annotations in there.\n * @return {Object} ID keyed positions of annotations.\n */\nfunction retrieveAnnotationPositions( formats ) {\n\tconst positions = {};\n\n\tformats.forEach( ( characterFormats, i ) => {\n\t\tcharacterFormats = characterFormats || [];\n\t\tcharacterFormats = characterFormats.filter(\n\t\t\t( format ) => format.type === FORMAT_NAME\n\t\t);\n\t\tcharacterFormats.forEach( ( format ) => {\n\t\t\tlet { id } = format.attributes;\n\t\t\tid = id.replace( ANNOTATION_ATTRIBUTE_PREFIX, '' );\n\n\t\t\tif ( ! positions.hasOwnProperty( id ) ) {\n\t\t\t\tpositions[ id ] = {\n\t\t\t\t\tstart: i,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Annotations refer to positions between characters.\n\t\t\t// Formats refer to the character themselves.\n\t\t\t// So we need to adjust for that here.\n\t\t\tpositions[ id ].end = i + 1;\n\t\t} );\n\t} );\n\n\treturn positions;\n}\n\n/**\n * Updates annotations in the state based on positions retrieved from RichText.\n *\n * @param {Array} annotations The annotations that are currently applied.\n * @param {Array} positions The current positions of the given annotations.\n * @param {Object} actions\n * @param {Function} actions.removeAnnotation Function to remove an annotation from the state.\n * @param {Function} actions.updateAnnotationRange Function to update an annotation range in the state.\n */\nfunction updateAnnotationsWithPositions(\n\tannotations,\n\tpositions,\n\t{ removeAnnotation, updateAnnotationRange }\n) {\n\tannotations.forEach( ( currentAnnotation ) => {\n\t\tconst position = positions[ currentAnnotation.id ];\n\t\t// If we cannot find an annotation, delete it.\n\t\tif ( ! position ) {\n\t\t\t// Apparently the annotation has been removed, so remove it from the state:\n\t\t\t// Remove...\n\t\t\tremoveAnnotation( currentAnnotation.id );\n\t\t\treturn;\n\t\t}\n\n\t\tconst { start, end } = currentAnnotation;\n\t\tif ( start !== position.start || end !== position.end ) {\n\t\t\tupdateAnnotationRange(\n\t\t\t\tcurrentAnnotation.id,\n\t\t\t\tposition.start,\n\t\t\t\tposition.end\n\t\t\t);\n\t\t}\n\t} );\n}\n\nexport const annotation = {\n\tname: FORMAT_NAME,\n\ttitle: __( 'Annotation' ),\n\ttagName: 'mark',\n\tclassName: 'annotation-text',\n\tattributes: {\n\t\tclassName: 'class',\n\t\tid: 'id',\n\t},\n\tedit() {\n\t\treturn null;\n\t},\n\t__experimentalGetPropsForEditableTreePreparation(\n\t\tselect,\n\t\t{ richTextIdentifier, blockClientId }\n\t) {\n\t\treturn {\n\t\t\tannotations: select(\n\t\t\t\tSTORE_NAME\n\t\t\t).__experimentalGetAnnotationsForRichText(\n\t\t\t\tblockClientId,\n\t\t\t\trichTextIdentifier\n\t\t\t),\n\t\t};\n\t},\n\t__experimentalCreatePrepareEditableTree( { annotations } ) {\n\t\treturn ( formats, text ) => {\n\t\t\tif ( annotations.length === 0 ) {\n\t\t\t\treturn formats;\n\t\t\t}\n\n\t\t\tlet record = { formats, text };\n\t\t\trecord = applyAnnotations( record, annotations );\n\t\t\treturn record.formats;\n\t\t};\n\t},\n\t__experimentalGetPropsForEditableTreeChangeHandler( dispatch ) {\n\t\treturn {\n\t\t\tremoveAnnotation:\n\t\t\t\tdispatch( STORE_NAME ).__experimentalRemoveAnnotation,\n\t\t\tupdateAnnotationRange:\n\t\t\t\tdispatch( STORE_NAME ).__experimentalUpdateAnnotationRange,\n\t\t};\n\t},\n\t__experimentalCreateOnChangeEditableValue( props ) {\n\t\treturn ( formats ) => {\n\t\t\tconst positions = retrieveAnnotationPositions( formats );\n\t\t\tconst { removeAnnotation, updateAnnotationRange, annotations } =\n\t\t\t\tprops;\n\n\t\t\tupdateAnnotationsWithPositions( annotations, positions, {\n\t\t\t\tremoveAnnotation,\n\t\t\t\tupdateAnnotationRange,\n\t\t\t} );\n\t\t};\n\t},\n};\n","/**\n * WordPress dependencies\n */\nimport { registerFormatType } from '@wordpress/rich-text';\n\n/**\n * Internal dependencies\n */\nimport { annotation } from './annotation';\n\nconst { name, ...settings } = annotation;\n\nregisterFormatType( name, settings );\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"hooks\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","/**\n * Filters an array based on the predicate, but keeps the reference the same if\n * the array hasn't changed.\n *\n * @param {Array} collection The collection to filter.\n * @param {Function} predicate Function that determines if the item should stay\n * in the array.\n * @return {Array} Filtered array.\n */\nfunction filterWithReference( collection, predicate ) {\n\tconst filteredCollection = collection.filter( predicate );\n\n\treturn collection.length === filteredCollection.length\n\t\t? collection\n\t\t: filteredCollection;\n}\n\n/**\n * Creates a new object with the same keys, but with `callback()` called as\n * a transformer function on each of the values.\n *\n * @param {Object} obj The object to transform.\n * @param {Function} callback The function to transform each object value.\n * @return {Array} Transformed object.\n */\nconst mapValues = ( obj, callback ) =>\n\tObject.entries( obj ).reduce(\n\t\t( acc, [ key, value ] ) => ( {\n\t\t\t...acc,\n\t\t\t[ key ]: callback( value ),\n\t\t} ),\n\t\t{}\n\t);\n\n/**\n * Verifies whether the given annotations is a valid annotation.\n *\n * @param {Object} annotation The annotation to verify.\n * @return {boolean} Whether the given annotation is valid.\n */\nfunction isValidAnnotationRange( annotation ) {\n\treturn (\n\t\ttypeof annotation.start === 'number' &&\n\t\ttypeof annotation.end === 'number' &&\n\t\tannotation.start <= annotation.end\n\t);\n}\n\n/**\n * Reducer managing annotations.\n *\n * @param {Object} state The annotations currently shown in the editor.\n * @param {Object} action Dispatched action.\n *\n * @return {Array} Updated state.\n */\nexport function annotations( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'ANNOTATION_ADD':\n\t\t\tconst blockClientId = action.blockClientId;\n\t\t\tconst newAnnotation = {\n\t\t\t\tid: action.id,\n\t\t\t\tblockClientId,\n\t\t\t\trichTextIdentifier: action.richTextIdentifier,\n\t\t\t\tsource: action.source,\n\t\t\t\tselector: action.selector,\n\t\t\t\trange: action.range,\n\t\t\t};\n\n\t\t\tif (\n\t\t\t\tnewAnnotation.selector === 'range' &&\n\t\t\t\t! isValidAnnotationRange( newAnnotation.range )\n\t\t\t) {\n\t\t\t\treturn state;\n\t\t\t}\n\n\t\t\tconst previousAnnotationsForBlock = state?.[ blockClientId ] ?? [];\n\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ blockClientId ]: [\n\t\t\t\t\t...previousAnnotationsForBlock,\n\t\t\t\t\tnewAnnotation,\n\t\t\t\t],\n\t\t\t};\n\n\t\tcase 'ANNOTATION_REMOVE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\treturn filterWithReference(\n\t\t\t\t\tannotationsForBlock,\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\treturn annotation.id !== action.annotationId;\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} );\n\n\t\tcase 'ANNOTATION_UPDATE_RANGE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\tlet hasChangedRange = false;\n\n\t\t\t\tconst newAnnotations = annotationsForBlock.map(\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\tif ( annotation.id === action.annotationId ) {\n\t\t\t\t\t\t\thasChangedRange = true;\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...annotation,\n\t\t\t\t\t\t\t\trange: {\n\t\t\t\t\t\t\t\t\tstart: action.start,\n\t\t\t\t\t\t\t\t\tend: action.end,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn annotation;\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\treturn hasChangedRange ? newAnnotations : annotationsForBlock;\n\t\t\t} );\n\n\t\tcase 'ANNOTATION_REMOVE_SOURCE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\treturn filterWithReference(\n\t\t\t\t\tannotationsForBlock,\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\treturn annotation.source !== action.source;\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} );\n\t}\n\n\treturn state;\n}\n\nexport default annotations;\n","/**\n * WordPress dependencies\n */\nimport { addFilter } from '@wordpress/hooks';\nimport { withSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { STORE_NAME } from '../store/constants';\n/**\n * Adds annotation className to the block-list-block component.\n *\n * @param {Object} OriginalComponent The original BlockListBlock component.\n * @return {Object} The enhanced component.\n */\nconst addAnnotationClassName = ( OriginalComponent ) => {\n\treturn withSelect( ( select, { clientId, className } ) => {\n\t\tconst annotations =\n\t\t\tselect( STORE_NAME ).__experimentalGetAnnotationsForBlock(\n\t\t\t\tclientId\n\t\t\t);\n\n\t\treturn {\n\t\t\tclassName: annotations\n\t\t\t\t.map( ( annotation ) => {\n\t\t\t\t\treturn 'is-annotated-by-' + annotation.source;\n\t\t\t\t} )\n\t\t\t\t.concat( className )\n\t\t\t\t.filter( Boolean )\n\t\t\t\t.join( ' ' ),\n\t\t};\n\t} )( OriginalComponent );\n};\n\naddFilter(\n\t'editor.BlockListBlock',\n\t'core/annotations',\n\taddAnnotationClassName\n);\n","'use strict';\n\n/** @typedef {(...args: any[]) => *[]} GetDependants */\n\n/** @typedef {() => void} Clear */\n\n/**\n * @typedef {{\n * getDependants: GetDependants,\n * clear: Clear\n * }} EnhancedSelector\n */\n\n/**\n * Internal cache entry.\n *\n * @typedef CacheNode\n *\n * @property {?CacheNode|undefined} [prev] Previous node.\n * @property {?CacheNode|undefined} [next] Next node.\n * @property {*[]} args Function arguments for cache entry.\n * @property {*} val Function result.\n */\n\n/**\n * @typedef Cache\n *\n * @property {Clear} clear Function to clear cache.\n * @property {boolean} [isUniqueByDependants] Whether dependants are valid in\n * considering cache uniqueness. A cache is unique if dependents are all arrays\n * or objects.\n * @property {CacheNode?} [head] Cache head.\n * @property {*[]} [lastDependants] Dependants from previous invocation.\n */\n\n/**\n * Arbitrary value used as key for referencing cache object in WeakMap tree.\n *\n * @type {{}}\n */\nvar LEAF_KEY = {};\n\n/**\n * Returns the first argument as the sole entry in an array.\n *\n * @template T\n *\n * @param {T} value Value to return.\n *\n * @return {[T]} Value returned as entry in array.\n */\nfunction arrayOf(value) {\n\treturn [value];\n}\n\n/**\n * Returns true if the value passed is object-like, or false otherwise. A value\n * is object-like if it can support property assignment, e.g. object or array.\n *\n * @param {*} value Value to test.\n *\n * @return {boolean} Whether value is object-like.\n */\nfunction isObjectLike(value) {\n\treturn !!value && 'object' === typeof value;\n}\n\n/**\n * Creates and returns a new cache object.\n *\n * @return {Cache} Cache object.\n */\nfunction createCache() {\n\t/** @type {Cache} */\n\tvar cache = {\n\t\tclear: function () {\n\t\t\tcache.head = null;\n\t\t},\n\t};\n\n\treturn cache;\n}\n\n/**\n * Returns true if entries within the two arrays are strictly equal by\n * reference from a starting index.\n *\n * @param {*[]} a First array.\n * @param {*[]} b Second array.\n * @param {number} fromIndex Index from which to start comparison.\n *\n * @return {boolean} Whether arrays are shallowly equal.\n */\nfunction isShallowEqual(a, b, fromIndex) {\n\tvar i;\n\n\tif (a.length !== b.length) {\n\t\treturn false;\n\t}\n\n\tfor (i = fromIndex; i < a.length; i++) {\n\t\tif (a[i] !== b[i]) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n\n/**\n * Returns a memoized selector function. The getDependants function argument is\n * called before the memoized selector and is expected to return an immutable\n * reference or array of references on which the selector depends for computing\n * its own return value. The memoize cache is preserved only as long as those\n * dependant references remain the same. If getDependants returns a different\n * reference(s), the cache is cleared and the selector value regenerated.\n *\n * @template {(...args: *[]) => *} S\n *\n * @param {S} selector Selector function.\n * @param {GetDependants=} getDependants Dependant getter returning an array of\n * references used in cache bust consideration.\n */\nexport default function (selector, getDependants) {\n\t/** @type {WeakMap<*,*>} */\n\tvar rootCache;\n\n\t/** @type {GetDependants} */\n\tvar normalizedGetDependants = getDependants ? getDependants : arrayOf;\n\n\t/**\n\t * Returns the cache for a given dependants array. When possible, a WeakMap\n\t * will be used to create a unique cache for each set of dependants. This\n\t * is feasible due to the nature of WeakMap in allowing garbage collection\n\t * to occur on entries where the key object is no longer referenced. Since\n\t * WeakMap requires the key to be an object, this is only possible when the\n\t * dependant is object-like. The root cache is created as a hierarchy where\n\t * each top-level key is the first entry in a dependants set, the value a\n\t * WeakMap where each key is the next dependant, and so on. This continues\n\t * so long as the dependants are object-like. If no dependants are object-\n\t * like, then the cache is shared across all invocations.\n\t *\n\t * @see isObjectLike\n\t *\n\t * @param {*[]} dependants Selector dependants.\n\t *\n\t * @return {Cache} Cache object.\n\t */\n\tfunction getCache(dependants) {\n\t\tvar caches = rootCache,\n\t\t\tisUniqueByDependants = true,\n\t\t\ti,\n\t\t\tdependant,\n\t\t\tmap,\n\t\t\tcache;\n\n\t\tfor (i = 0; i < dependants.length; i++) {\n\t\t\tdependant = dependants[i];\n\n\t\t\t// Can only compose WeakMap from object-like key.\n\t\t\tif (!isObjectLike(dependant)) {\n\t\t\t\tisUniqueByDependants = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Does current segment of cache already have a WeakMap?\n\t\t\tif (caches.has(dependant)) {\n\t\t\t\t// Traverse into nested WeakMap.\n\t\t\t\tcaches = caches.get(dependant);\n\t\t\t} else {\n\t\t\t\t// Create, set, and traverse into a new one.\n\t\t\t\tmap = new WeakMap();\n\t\t\t\tcaches.set(dependant, map);\n\t\t\t\tcaches = map;\n\t\t\t}\n\t\t}\n\n\t\t// We use an arbitrary (but consistent) object as key for the last item\n\t\t// in the WeakMap to serve as our running cache.\n\t\tif (!caches.has(LEAF_KEY)) {\n\t\t\tcache = createCache();\n\t\t\tcache.isUniqueByDependants = isUniqueByDependants;\n\t\t\tcaches.set(LEAF_KEY, cache);\n\t\t}\n\n\t\treturn caches.get(LEAF_KEY);\n\t}\n\n\t/**\n\t * Resets root memoization cache.\n\t */\n\tfunction clear() {\n\t\trootCache = new WeakMap();\n\t}\n\n\t/* eslint-disable jsdoc/check-param-names */\n\t/**\n\t * The augmented selector call, considering first whether dependants have\n\t * changed before passing it to underlying memoize function.\n\t *\n\t * @param {*} source Source object for derivation.\n\t * @param {...*} extraArgs Additional arguments to pass to selector.\n\t *\n\t * @return {*} Selector result.\n\t */\n\t/* eslint-enable jsdoc/check-param-names */\n\tfunction callSelector(/* source, ...extraArgs */) {\n\t\tvar len = arguments.length,\n\t\t\tcache,\n\t\t\tnode,\n\t\t\ti,\n\t\t\targs,\n\t\t\tdependants;\n\n\t\t// Create copy of arguments (avoid leaking deoptimization).\n\t\targs = new Array(len);\n\t\tfor (i = 0; i < len; i++) {\n\t\t\targs[i] = arguments[i];\n\t\t}\n\n\t\tdependants = normalizedGetDependants.apply(null, args);\n\t\tcache = getCache(dependants);\n\n\t\t// If not guaranteed uniqueness by dependants (primitive type), shallow\n\t\t// compare against last dependants and, if references have changed,\n\t\t// destroy cache to recalculate result.\n\t\tif (!cache.isUniqueByDependants) {\n\t\t\tif (\n\t\t\t\tcache.lastDependants &&\n\t\t\t\t!isShallowEqual(dependants, cache.lastDependants, 0)\n\t\t\t) {\n\t\t\t\tcache.clear();\n\t\t\t}\n\n\t\t\tcache.lastDependants = dependants;\n\t\t}\n\n\t\tnode = cache.head;\n\t\twhile (node) {\n\t\t\t// Check whether node arguments match arguments\n\t\t\tif (!isShallowEqual(node.args, args, 1)) {\n\t\t\t\tnode = node.next;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// At this point we can assume we've found a match\n\n\t\t\t// Surface matched node to head if not already\n\t\t\tif (node !== cache.head) {\n\t\t\t\t// Adjust siblings to point to each other.\n\t\t\t\t/** @type {CacheNode} */ (node.prev).next = node.next;\n\t\t\t\tif (node.next) {\n\t\t\t\t\tnode.next.prev = node.prev;\n\t\t\t\t}\n\n\t\t\t\tnode.next = cache.head;\n\t\t\t\tnode.prev = null;\n\t\t\t\t/** @type {CacheNode} */ (cache.head).prev = node;\n\t\t\t\tcache.head = node;\n\t\t\t}\n\n\t\t\t// Return immediately\n\t\t\treturn node.val;\n\t\t}\n\n\t\t// No cached value found. Continue to insertion phase:\n\n\t\tnode = /** @type {CacheNode} */ ({\n\t\t\t// Generate the result from original function\n\t\t\tval: selector.apply(null, args),\n\t\t});\n\n\t\t// Avoid including the source object in the cache.\n\t\targs[0] = null;\n\t\tnode.args = args;\n\n\t\t// Don't need to check whether node is already head, since it would\n\t\t// have been returned above already if it was\n\n\t\t// Shift existing head down list\n\t\tif (cache.head) {\n\t\t\tcache.head.prev = node;\n\t\t\tnode.next = cache.head;\n\t\t}\n\n\t\tcache.head = node;\n\n\t\treturn node.val;\n\t}\n\n\tcallSelector.getDependants = normalizedGetDependants;\n\tcallSelector.clear = clear;\n\tclear();\n\n\treturn /** @type {S & EnhancedSelector} */ (callSelector);\n}\n","/**\n * External dependencies\n */\nimport createSelector from 'rememo';\n\n/**\n * Shared reference to an empty array for cases where it is important to avoid\n * returning a new array reference on every invocation, as in a connected or\n * other pure component which performs `shouldComponentUpdate` check on props.\n * This should be used as a last resort, since the normalized data should be\n * maintained by the reducer result in state.\n *\n * @type {Array}\n */\nconst EMPTY_ARRAY = [];\n\n/**\n * Returns the annotations for a specific client ID.\n *\n * @param {Object} state Editor state.\n * @param {string} clientId The ID of the block to get the annotations for.\n *\n * @return {Array} The annotations applicable to this block.\n */\nexport const __experimentalGetAnnotationsForBlock = createSelector(\n\t( state, blockClientId ) => {\n\t\treturn ( state?.[ blockClientId ] ?? [] ).filter( ( annotation ) => {\n\t\t\treturn annotation.selector === 'block';\n\t\t} );\n\t},\n\t( state, blockClientId ) => [ state?.[ blockClientId ] ?? EMPTY_ARRAY ]\n);\n\nexport function __experimentalGetAllAnnotationsForBlock(\n\tstate,\n\tblockClientId\n) {\n\treturn state?.[ blockClientId ] ?? EMPTY_ARRAY;\n}\n\n/**\n * Returns the annotations that apply to the given RichText instance.\n *\n * Both a blockClientId and a richTextIdentifier are required. This is because\n * a block might have multiple `RichText` components. This does mean that every\n * block needs to implement annotations itself.\n *\n * @param {Object} state Editor state.\n * @param {string} blockClientId The client ID for the block.\n * @param {string} richTextIdentifier Unique identifier that identifies the given RichText.\n * @return {Array} All the annotations relevant for the `RichText`.\n */\nexport const __experimentalGetAnnotationsForRichText = createSelector(\n\t( state, blockClientId, richTextIdentifier ) => {\n\t\treturn ( state?.[ blockClientId ] ?? [] )\n\t\t\t.filter( ( annotation ) => {\n\t\t\t\treturn (\n\t\t\t\t\tannotation.selector === 'range' &&\n\t\t\t\t\trichTextIdentifier === annotation.richTextIdentifier\n\t\t\t\t);\n\t\t\t} )\n\t\t\t.map( ( annotation ) => {\n\t\t\t\tconst { range, ...other } = annotation;\n\n\t\t\t\treturn {\n\t\t\t\t\t...range,\n\t\t\t\t\t...other,\n\t\t\t\t};\n\t\t\t} );\n\t},\n\t( state, blockClientId ) => [ state?.[ blockClientId ] ?? EMPTY_ARRAY ]\n);\n\n/**\n * Returns all annotations in the editor state.\n *\n * @param {Object} state Editor state.\n * @return {Array} All annotations currently applied.\n */\nexport function __experimentalGetAnnotations( state ) {\n\treturn Object.values( state ).flat();\n}\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n// find the complete implementation of crypto (msCrypto) on IE11.\nvar getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","/**\n * External dependencies\n */\nimport { v4 as uuid } from 'uuid';\n\n/**\n * @typedef WPAnnotationRange\n *\n * @property {number} start The offset where the annotation should start.\n * @property {number} end The offset where the annotation should end.\n */\n\n/**\n * Adds an annotation to a block.\n *\n * The `block` attribute refers to a block ID that needs to be annotated.\n * `isBlockAnnotation` controls whether or not the annotation is a block\n * annotation. The `source` is the source of the annotation, this will be used\n * to identity groups of annotations.\n *\n * The `range` property is only relevant if the selector is 'range'.\n *\n * @param {Object} annotation The annotation to add.\n * @param {string} annotation.blockClientId The blockClientId to add the annotation to.\n * @param {string} annotation.richTextIdentifier Identifier for the RichText instance the annotation applies to.\n * @param {WPAnnotationRange} annotation.range The range at which to apply this annotation.\n * @param {string} [annotation.selector=\"range\"] The way to apply this annotation.\n * @param {string} [annotation.source=\"default\"] The source that added the annotation.\n * @param {string} [annotation.id] The ID the annotation should have. Generates a UUID by default.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalAddAnnotation( {\n\tblockClientId,\n\trichTextIdentifier = null,\n\trange = null,\n\tselector = 'range',\n\tsource = 'default',\n\tid = uuid(),\n} ) {\n\tconst action = {\n\t\ttype: 'ANNOTATION_ADD',\n\t\tid,\n\t\tblockClientId,\n\t\trichTextIdentifier,\n\t\tsource,\n\t\tselector,\n\t};\n\n\tif ( selector === 'range' ) {\n\t\taction.range = range;\n\t}\n\n\treturn action;\n}\n\n/**\n * Removes an annotation with a specific ID.\n *\n * @param {string} annotationId The annotation to remove.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalRemoveAnnotation( annotationId ) {\n\treturn {\n\t\ttype: 'ANNOTATION_REMOVE',\n\t\tannotationId,\n\t};\n}\n\n/**\n * Updates the range of an annotation.\n *\n * @param {string} annotationId ID of the annotation to update.\n * @param {number} start The start of the new range.\n * @param {number} end The end of the new range.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalUpdateAnnotationRange(\n\tannotationId,\n\tstart,\n\tend\n) {\n\treturn {\n\t\ttype: 'ANNOTATION_UPDATE_RANGE',\n\t\tannotationId,\n\t\tstart,\n\t\tend,\n\t};\n}\n\n/**\n * Removes all annotations of a specific source.\n *\n * @param {string} source The source to remove.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalRemoveAnnotationsBySource( source ) {\n\treturn {\n\t\ttype: 'ANNOTATION_REMOVE_SOURCE',\n\t\tsource,\n\t};\n}\n","/**\n * WordPress dependencies\n */\nimport { register, createReduxStore } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as selectors from './selectors';\nimport * as actions from './actions';\n\n/**\n * Module Constants\n */\nimport { STORE_NAME } from './constants';\n\n/**\n * Store definition for the annotations namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, {\n\treducer,\n\tselectors,\n\tactions,\n} );\n\nregister( store );\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","STORE_NAME","FORMAT_NAME","ANNOTATION_ATTRIBUTE_PREFIX","annotation","name","title","__","tagName","className","attributes","id","edit","__experimentalGetPropsForEditableTreePreparation","select","richTextIdentifier","blockClientId","annotations","__experimentalGetAnnotationsForRichText","__experimentalCreatePrepareEditableTree","formats","text","length","record","forEach","start","end","source","applyFormat","type","applyAnnotations","__experimentalGetPropsForEditableTreeChangeHandler","dispatch","removeAnnotation","__experimentalRemoveAnnotation","updateAnnotationRange","__experimentalUpdateAnnotationRange","__experimentalCreateOnChangeEditableValue","props","positions","characterFormats","i","filter","format","replace","retrieveAnnotationPositions","currentAnnotation","position","updateAnnotationsWithPositions","settings","registerFormatType","filterWithReference","collection","predicate","filteredCollection","addFilter","OriginalComponent","withSelect","clientId","__experimentalGetAnnotationsForBlock","map","concat","Boolean","join","mapValues","callback","entries","reduce","acc","isValidAnnotationRange","LEAF_KEY","arrayOf","isShallowEqual","a","b","fromIndex","selector","getDependants","rootCache","normalizedGetDependants","getCache","dependants","dependant","cache","caches","isUniqueByDependants","has","WeakMap","set","clear","head","createCache","callSelector","node","args","len","arguments","Array","apply","lastDependants","next","prev","val","EMPTY_ARRAY","createSelector","state","__experimentalGetAllAnnotationsForBlock","range","other","__experimentalGetAnnotations","values","flat","getRandomValues","crypto","bind","msCrypto","rnds8","Uint8Array","rng","Error","uuid","byteToHex","push","toString","substr","options","buf","offset","rnds","random","arr","undefined","toLowerCase","TypeError","__experimentalAddAnnotation","action","annotationId","__experimentalRemoveAnnotationsBySource","store","createReduxStore","reducer","newAnnotation","previousAnnotationsForBlock","annotationsForBlock","hasChangedRange","newAnnotations","selectors","actions","register"],"sourceRoot":""}
|
build/api-fetch/index.js
CHANGED
@@ -1,36 +1,36 @@
|
|
1 |
-
/******/ (()
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/define property getters */
|
8 |
-
/******/ (
|
9 |
/******/ // define getter functions for harmony exports
|
10 |
-
/******/ __webpack_require__.d = (exports, definition)
|
11 |
/******/ for(var key in definition) {
|
12 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14 |
/******/ }
|
15 |
/******/ }
|
16 |
/******/ };
|
17 |
-
/******/ }
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20 |
-
/******/ (
|
21 |
-
/******/ __webpack_require__.o = (obj, prop)
|
22 |
-
/******/ }
|
23 |
/******/
|
24 |
/************************************************************************/
|
25 |
var __webpack_exports__ = {};
|
26 |
|
27 |
// EXPORTS
|
28 |
__webpack_require__.d(__webpack_exports__, {
|
29 |
-
"default": ()
|
30 |
});
|
31 |
|
32 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
33 |
-
|
34 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/nonce.js
|
35 |
/**
|
36 |
* @param {string} nonce
|
@@ -63,7 +63,7 @@ function createNonceMiddleware(nonce) {
|
|
63 |
return middleware;
|
64 |
}
|
65 |
|
66 |
-
/* harmony default export */
|
67 |
|
68 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/namespace-endpoint.js
|
69 |
/**
|
@@ -91,7 +91,7 @@ const namespaceAndEndpointMiddleware = (options, next) => {
|
|
91 |
});
|
92 |
};
|
93 |
|
94 |
-
/* harmony default export */
|
95 |
|
96 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/root-url.js
|
97 |
/**
|
@@ -132,10 +132,10 @@ const createRootURLMiddleware = rootURL => (options, next) => {
|
|
132 |
});
|
133 |
};
|
134 |
|
135 |
-
/* harmony default export */
|
136 |
|
137 |
;// CONCATENATED MODULE: external ["wp","url"]
|
138 |
-
|
139 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/preloading.js
|
140 |
/**
|
141 |
* WordPress dependencies
|
@@ -209,7 +209,7 @@ function prepareResponse(responseData, parse) {
|
|
209 |
}));
|
210 |
}
|
211 |
|
212 |
-
/* harmony default export */
|
213 |
|
214 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/fetch-all-middleware.js
|
215 |
/**
|
@@ -350,7 +350,7 @@ const fetchAllMiddleware = async (options, next) => {
|
|
350 |
return mergedResults;
|
351 |
};
|
352 |
|
353 |
-
/* harmony default export */
|
354 |
|
355 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/http-v1.js
|
356 |
/**
|
@@ -396,7 +396,7 @@ const httpV1Middleware = (options, next) => {
|
|
396 |
return next(options);
|
397 |
};
|
398 |
|
399 |
-
/* harmony default export */
|
400 |
|
401 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/user-locale.js
|
402 |
/**
|
@@ -423,7 +423,7 @@ const userLocaleMiddleware = (options, next) => {
|
|
423 |
return next(options);
|
424 |
};
|
425 |
|
426 |
-
/* harmony default export */
|
427 |
|
428 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/utils/response.js
|
429 |
/**
|
@@ -596,7 +596,7 @@ const mediaUploadMiddleware = (options, next) => {
|
|
596 |
}).then(response => parseResponseAndNormalizeError(response, options.parse));
|
597 |
};
|
598 |
|
599 |
-
/* harmony default export */
|
600 |
|
601 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/index.js
|
602 |
/**
|
@@ -777,7 +777,7 @@ apiFetch.createPreloadingMiddleware = preloading;
|
|
777 |
apiFetch.createRootURLMiddleware = root_url;
|
778 |
apiFetch.fetchAllMiddleware = fetch_all_middleware;
|
779 |
apiFetch.mediaUploadMiddleware = media_upload;
|
780 |
-
/* harmony default export */
|
781 |
|
782 |
(window.wp = window.wp || {}).apiFetch = __webpack_exports__["default"];
|
783 |
/******/ })()
|
1 |
+
/******/ (function() { // webpackBootstrap
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/define property getters */
|
8 |
+
/******/ !function() {
|
9 |
/******/ // define getter functions for harmony exports
|
10 |
+
/******/ __webpack_require__.d = function(exports, definition) {
|
11 |
/******/ for(var key in definition) {
|
12 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14 |
/******/ }
|
15 |
/******/ }
|
16 |
/******/ };
|
17 |
+
/******/ }();
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20 |
+
/******/ !function() {
|
21 |
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
22 |
+
/******/ }();
|
23 |
/******/
|
24 |
/************************************************************************/
|
25 |
var __webpack_exports__ = {};
|
26 |
|
27 |
// EXPORTS
|
28 |
__webpack_require__.d(__webpack_exports__, {
|
29 |
+
"default": function() { return /* binding */ build_module; }
|
30 |
});
|
31 |
|
32 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
33 |
+
var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
34 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/nonce.js
|
35 |
/**
|
36 |
* @param {string} nonce
|
63 |
return middleware;
|
64 |
}
|
65 |
|
66 |
+
/* harmony default export */ var nonce = (createNonceMiddleware);
|
67 |
|
68 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/namespace-endpoint.js
|
69 |
/**
|
91 |
});
|
92 |
};
|
93 |
|
94 |
+
/* harmony default export */ var namespace_endpoint = (namespaceAndEndpointMiddleware);
|
95 |
|
96 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/root-url.js
|
97 |
/**
|
132 |
});
|
133 |
};
|
134 |
|
135 |
+
/* harmony default export */ var root_url = (createRootURLMiddleware);
|
136 |
|
137 |
;// CONCATENATED MODULE: external ["wp","url"]
|
138 |
+
var external_wp_url_namespaceObject = window["wp"]["url"];
|
139 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/preloading.js
|
140 |
/**
|
141 |
* WordPress dependencies
|
209 |
}));
|
210 |
}
|
211 |
|
212 |
+
/* harmony default export */ var preloading = (createPreloadingMiddleware);
|
213 |
|
214 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/fetch-all-middleware.js
|
215 |
/**
|
350 |
return mergedResults;
|
351 |
};
|
352 |
|
353 |
+
/* harmony default export */ var fetch_all_middleware = (fetchAllMiddleware);
|
354 |
|
355 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/http-v1.js
|
356 |
/**
|
396 |
return next(options);
|
397 |
};
|
398 |
|
399 |
+
/* harmony default export */ var http_v1 = (httpV1Middleware);
|
400 |
|
401 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/user-locale.js
|
402 |
/**
|
423 |
return next(options);
|
424 |
};
|
425 |
|
426 |
+
/* harmony default export */ var user_locale = (userLocaleMiddleware);
|
427 |
|
428 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/utils/response.js
|
429 |
/**
|
596 |
}).then(response => parseResponseAndNormalizeError(response, options.parse));
|
597 |
};
|
598 |
|
599 |
+
/* harmony default export */ var media_upload = (mediaUploadMiddleware);
|
600 |
|
601 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/index.js
|
602 |
/**
|
777 |
apiFetch.createRootURLMiddleware = root_url;
|
778 |
apiFetch.fetchAllMiddleware = fetch_all_middleware;
|
779 |
apiFetch.mediaUploadMiddleware = media_upload;
|
780 |
+
/* harmony default export */ var build_module = (apiFetch);
|
781 |
|
782 |
(window.wp = window.wp || {}).apiFetch = __webpack_exports__["default"];
|
783 |
/******/ })()
|
build/api-fetch/index.min.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'f75179140c48ef2500cf');
|
build/api-fetch/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
(
|
2 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
!function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return j}});var r=window.wp.i18n,n=(e,t)=>{let r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:o})},o=window.wp.url;function a(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const s=(e,t)=>{let{path:r,url:n,...a}=e;return{...a,url:n&&(0,o.addQueryArgs)(n,t),path:r&&(0,o.addQueryArgs)(r,t)}},i=e=>e.json?e.json():Promise.reject(e),c=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t};var d=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await j({...s(e,{per_page:100}),parse:!1}),n=await i(r);if(!Array.isArray(n))return n;let o=c(r);if(!o)return n;let a=[].concat(n);for(;o;){const t=await j({...e,path:void 0,url:o,parse:!1}),r=await i(t);a=a.concat(r),o=c(t)}return a};const u=new Set(["PATCH","PUT","DELETE"]),p="GET",l=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},h=e=>{const t={code:"invalid_json",message:(0,r.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))},f=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(l(e,t)).catch((e=>w(e,t)))};function w(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return h(e).then((e=>{const t={code:"unknown_error",message:(0,r.__)("An unknown error occurred.")};throw e||t}))}const g={Accept:"application/json, */*;q=0.1"},m={credentials:"include"},y=[(e,t)=>("string"!=typeof e.url||(0,o.hasQueryArg)(e.url,"_locale")||(e.url=(0,o.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||(0,o.hasQueryArg)(e.path,"_locale")||(e.path=(0,o.addQueryArgs)(e.path,{_locale:"user"})),t(e)),n,(e,t)=>{const{method:r=p}=e;return u.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},d],_=e=>{if(e.status>=200&&e.status<300)return e;throw e};let P=e=>{const{url:t,path:n,data:o,parse:a=!0,...s}=e;let{body:i,headers:c}=e;return c={...g,...c},o&&(i=JSON.stringify(o),c["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...m,...s,body:i,headers:c}).then((e=>Promise.resolve(e).then(_).catch((e=>w(e,a))).then((e=>f(e,a)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:(0,r.__)("You are probably offline.")}}))};function O(e){return y.reduceRight(((e,t)=>r=>t(r,e)),P)(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(O.nonceEndpoint).then(_).then((e=>e.text())).then((t=>(O.nonceMiddleware.nonce=t,O(e))))))}O.use=function(e){y.unshift(e)},O.setFetchHandler=function(e){P=e},O.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const o in n)if("x-wp-nonce"===o.toLowerCase()&&n[o]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},O.createPreloadingMiddleware=function(e){const t=Object.fromEntries(Object.entries(e).map((e=>{let[t,r]=e;return[(0,o.normalizePath)(t),r]})));return(e,r)=>{const{parse:n=!0}=e;let s=e.path;if(!s&&e.url){const{rest_route:t,...r}=(0,o.getQueryArgs)(e.url);"string"==typeof t&&(s=(0,o.addQueryArgs)(t,r))}if("string"!=typeof s)return r(e);const i=e.method||"GET",c=(0,o.normalizePath)(s);if("GET"===i&&t[c]){const e=t[c];return delete t[c],a(e,!!n)}if("OPTIONS"===i&&t[i]&&t[i][c]){const e=t[i][c];return delete t[i][c],a(e,!!n)}return r(e)}},O.createRootURLMiddleware=e=>(t,r)=>n(t,(t=>{let n,o=t.url,a=t.path;return"string"==typeof a&&(n=e,-1!==e.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(a=a.replace("?","&")),o=n+a),r({...t,url:o})})),O.fetchAllMiddleware=d,O.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let n=0;const o=e=>(n++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>n<5?o(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{const n=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&n?o(n).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:(0,r.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):w(t,e.parse)})).then((t=>f(t,e.parse)))};var j=O;(window.wp=window.wp||{}).apiFetch=t.default}();
|
2 |
//# sourceMappingURL=index.min.js.map
|
build/api-fetch/index.min.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"./build/api-fetch/index.min.js","mappings":"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","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/namespace-endpoint.js","webpack://wp/external window [\"wp\",\"url\"]","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/preloading.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/fetch-all-middleware.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/http-v1.js","webpack://wp/./packages/api-fetch/build-module/utils/@wordpress/api-fetch/src/utils/response.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/media-upload.js","webpack://wp/./packages/api-fetch/build-module/@wordpress/api-fetch/src/index.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/user-locale.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/nonce.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/root-url.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * @type {import('../types').APIFetchMiddleware}\n */\nconst namespaceAndEndpointMiddleware = ( options, next ) => {\n\tlet path = options.path;\n\tlet namespaceTrimmed, endpointTrimmed;\n\n\tif (\n\t\ttypeof options.namespace === 'string' &&\n\t\ttypeof options.endpoint === 'string'\n\t) {\n\t\tnamespaceTrimmed = options.namespace.replace( /^\\/|\\/$/g, '' );\n\t\tendpointTrimmed = options.endpoint.replace( /^\\//, '' );\n\t\tif ( endpointTrimmed ) {\n\t\t\tpath = namespaceTrimmed + '/' + endpointTrimmed;\n\t\t} else {\n\t\t\tpath = namespaceTrimmed;\n\t\t}\n\t}\n\n\tdelete options.namespace;\n\tdelete options.endpoint;\n\n\treturn next( {\n\t\t...options,\n\t\tpath,\n\t} );\n};\n\nexport default namespaceAndEndpointMiddleware;\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"url\"];","/**\n * WordPress dependencies\n */\nimport { addQueryArgs, getQueryArgs, normalizePath } from '@wordpress/url';\n\n/**\n * @param {Record<string, any>} preloadedData\n * @return {import('../types').APIFetchMiddleware} Preloading middleware.\n */\nfunction createPreloadingMiddleware( preloadedData ) {\n\tconst cache = Object.fromEntries(\n\t\tObject.entries( preloadedData ).map( ( [ path, data ] ) => [\n\t\t\tnormalizePath( path ),\n\t\t\tdata,\n\t\t] )\n\t);\n\n\treturn ( options, next ) => {\n\t\tconst { parse = true } = options;\n\t\t/** @type {string | void} */\n\t\tlet rawPath = options.path;\n\t\tif ( ! rawPath && options.url ) {\n\t\t\tconst { rest_route: pathFromQuery, ...queryArgs } = getQueryArgs(\n\t\t\t\toptions.url\n\t\t\t);\n\n\t\t\tif ( typeof pathFromQuery === 'string' ) {\n\t\t\t\trawPath = addQueryArgs( pathFromQuery, queryArgs );\n\t\t\t}\n\t\t}\n\n\t\tif ( typeof rawPath !== 'string' ) {\n\t\t\treturn next( options );\n\t\t}\n\n\t\tconst method = options.method || 'GET';\n\t\tconst path = normalizePath( rawPath );\n\n\t\tif ( 'GET' === method && cache[ path ] ) {\n\t\t\tconst cacheData = cache[ path ];\n\n\t\t\t// Unsetting the cache key ensures that the data is only used a single time.\n\t\t\tdelete cache[ path ];\n\n\t\t\treturn prepareResponse( cacheData, !! parse );\n\t\t} else if (\n\t\t\t'OPTIONS' === method &&\n\t\t\tcache[ method ] &&\n\t\t\tcache[ method ][ path ]\n\t\t) {\n\t\t\tconst cacheData = cache[ method ][ path ];\n\n\t\t\t// Unsetting the cache key ensures that the data is only used a single time.\n\t\t\tdelete cache[ method ][ path ];\n\n\t\t\treturn prepareResponse( cacheData, !! parse );\n\t\t}\n\n\t\treturn next( options );\n\t};\n}\n\n/**\n * This is a helper function that sends a success response.\n *\n * @param {Record<string, any>} responseData\n * @param {boolean} parse\n * @return {Promise<any>} Promise with the response.\n */\nfunction prepareResponse( responseData, parse ) {\n\treturn Promise.resolve(\n\t\tparse\n\t\t\t? responseData.body\n\t\t\t: new window.Response( JSON.stringify( responseData.body ), {\n\t\t\t\t\tstatus: 200,\n\t\t\t\t\tstatusText: 'OK',\n\t\t\t\t\theaders: responseData.headers,\n\t\t\t } )\n\t);\n}\n\nexport default createPreloadingMiddleware;\n","/**\n * WordPress dependencies\n */\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport apiFetch from '..';\n\n/**\n * Apply query arguments to both URL and Path, whichever is present.\n *\n * @param {import('../types').APIFetchOptions} props\n * @param {Record<string, string | number>} queryArgs\n * @return {import('../types').APIFetchOptions} The request with the modified query args\n */\nconst modifyQuery = ( { path, url, ...options }, queryArgs ) => ( {\n\t...options,\n\turl: url && addQueryArgs( url, queryArgs ),\n\tpath: path && addQueryArgs( path, queryArgs ),\n} );\n\n/**\n * Duplicates parsing functionality from apiFetch.\n *\n * @param {Response} response\n * @return {Promise<any>} Parsed response json.\n */\nconst parseResponse = ( response ) =>\n\tresponse.json ? response.json() : Promise.reject( response );\n\n/**\n * @param {string | null} linkHeader\n * @return {{ next?: string }} The parsed link header.\n */\nconst parseLinkHeader = ( linkHeader ) => {\n\tif ( ! linkHeader ) {\n\t\treturn {};\n\t}\n\tconst match = linkHeader.match( /<([^>]+)>; rel=\"next\"/ );\n\treturn match\n\t\t? {\n\t\t\t\tnext: match[ 1 ],\n\t\t }\n\t\t: {};\n};\n\n/**\n * @param {Response} response\n * @return {string | undefined} The next page URL.\n */\nconst getNextPageUrl = ( response ) => {\n\tconst { next } = parseLinkHeader( response.headers.get( 'link' ) );\n\treturn next;\n};\n\n/**\n * @param {import('../types').APIFetchOptions} options\n * @return {boolean} True if the request contains an unbounded query.\n */\nconst requestContainsUnboundedQuery = ( options ) => {\n\tconst pathIsUnbounded =\n\t\t!! options.path && options.path.indexOf( 'per_page=-1' ) !== -1;\n\tconst urlIsUnbounded =\n\t\t!! options.url && options.url.indexOf( 'per_page=-1' ) !== -1;\n\treturn pathIsUnbounded || urlIsUnbounded;\n};\n\n/**\n * The REST API enforces an upper limit on the per_page option. To handle large\n * collections, apiFetch consumers can pass `per_page=-1`; this middleware will\n * then recursively assemble a full response array from all available pages.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst fetchAllMiddleware = async ( options, next ) => {\n\tif ( options.parse === false ) {\n\t\t// If a consumer has opted out of parsing, do not apply middleware.\n\t\treturn next( options );\n\t}\n\tif ( ! requestContainsUnboundedQuery( options ) ) {\n\t\t// If neither url nor path is requesting all items, do not apply middleware.\n\t\treturn next( options );\n\t}\n\n\t// Retrieve requested page of results.\n\tconst response = await apiFetch( {\n\t\t...modifyQuery( options, {\n\t\t\tper_page: 100,\n\t\t} ),\n\t\t// Ensure headers are returned for page 1.\n\t\tparse: false,\n\t} );\n\n\tconst results = await parseResponse( response );\n\n\tif ( ! Array.isArray( results ) ) {\n\t\t// We have no reliable way of merging non-array results.\n\t\treturn results;\n\t}\n\n\tlet nextPage = getNextPageUrl( response );\n\n\tif ( ! nextPage ) {\n\t\t// There are no further pages to request.\n\t\treturn results;\n\t}\n\n\t// Iteratively fetch all remaining pages until no \"next\" header is found.\n\tlet mergedResults = /** @type {any[]} */ ( [] ).concat( results );\n\twhile ( nextPage ) {\n\t\tconst nextResponse = await apiFetch( {\n\t\t\t...options,\n\t\t\t// Ensure the URL for the next page is used instead of any provided path.\n\t\t\tpath: undefined,\n\t\t\turl: nextPage,\n\t\t\t// Ensure we still get headers so we can identify the next page.\n\t\t\tparse: false,\n\t\t} );\n\t\tconst nextResults = await parseResponse( nextResponse );\n\t\tmergedResults = mergedResults.concat( nextResults );\n\t\tnextPage = getNextPageUrl( nextResponse );\n\t}\n\treturn mergedResults;\n};\n\nexport default fetchAllMiddleware;\n","/**\n * Set of HTTP methods which are eligible to be overridden.\n *\n * @type {Set<string>}\n */\nconst OVERRIDE_METHODS = new Set( [ 'PATCH', 'PUT', 'DELETE' ] );\n\n/**\n * Default request method.\n *\n * \"A request has an associated method (a method). Unless stated otherwise it\n * is `GET`.\"\n *\n * @see https://fetch.spec.whatwg.org/#requests\n *\n * @type {string}\n */\nconst DEFAULT_METHOD = 'GET';\n\n/**\n * API Fetch middleware which overrides the request method for HTTP v1\n * compatibility leveraging the REST API X-HTTP-Method-Override header.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst httpV1Middleware = ( options, next ) => {\n\tconst { method = DEFAULT_METHOD } = options;\n\tif ( OVERRIDE_METHODS.has( method.toUpperCase() ) ) {\n\t\toptions = {\n\t\t\t...options,\n\t\t\theaders: {\n\t\t\t\t...options.headers,\n\t\t\t\t'X-HTTP-Method-Override': method,\n\t\t\t\t'Content-Type': 'application/json',\n\t\t\t},\n\t\t\tmethod: 'POST',\n\t\t};\n\t}\n\n\treturn next( options );\n};\n\nexport default httpV1Middleware;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Parses the apiFetch response.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n *\n * @return {Promise<any> | null | Response} Parsed response.\n */\nconst parseResponse = ( response, shouldParseResponse = true ) => {\n\tif ( shouldParseResponse ) {\n\t\tif ( response.status === 204 ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn response.json ? response.json() : Promise.reject( response );\n\t}\n\n\treturn response;\n};\n\n/**\n * Calls the `json` function on the Response, throwing an error if the response\n * doesn't have a json function or if parsing the json itself fails.\n *\n * @param {Response} response\n * @return {Promise<any>} Parsed response.\n */\nconst parseJsonAndNormalizeError = ( response ) => {\n\tconst invalidJsonError = {\n\t\tcode: 'invalid_json',\n\t\tmessage: __( 'The response is not a valid JSON response.' ),\n\t};\n\n\tif ( ! response || ! response.json ) {\n\t\tthrow invalidJsonError;\n\t}\n\n\treturn response.json().catch( () => {\n\t\tthrow invalidJsonError;\n\t} );\n};\n\n/**\n * Parses the apiFetch response properly and normalize response errors.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n *\n * @return {Promise<any>} Parsed response.\n */\nexport const parseResponseAndNormalizeError = (\n\tresponse,\n\tshouldParseResponse = true\n) => {\n\treturn Promise.resolve(\n\t\tparseResponse( response, shouldParseResponse )\n\t).catch( ( res ) => parseAndThrowError( res, shouldParseResponse ) );\n};\n\n/**\n * Parses a response, throwing an error if parsing the response fails.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n * @return {Promise<any>} Parsed response.\n */\nexport function parseAndThrowError( response, shouldParseResponse = true ) {\n\tif ( ! shouldParseResponse ) {\n\t\tthrow response;\n\t}\n\n\treturn parseJsonAndNormalizeError( response ).then( ( error ) => {\n\t\tconst unknownError = {\n\t\t\tcode: 'unknown_error',\n\t\t\tmessage: __( 'An unknown error occurred.' ),\n\t\t};\n\n\t\tthrow error || unknownError;\n\t} );\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport {\n\tparseAndThrowError,\n\tparseResponseAndNormalizeError,\n} from '../utils/response';\n\n/**\n * @param {import('../types').APIFetchOptions} options\n * @return {boolean} True if the request is for media upload.\n */\nfunction isMediaUploadRequest( options ) {\n\tconst isCreateMethod = !! options.method && options.method === 'POST';\n\tconst isMediaEndpoint =\n\t\t( !! options.path && options.path.indexOf( '/wp/v2/media' ) !== -1 ) ||\n\t\t( !! options.url && options.url.indexOf( '/wp/v2/media' ) !== -1 );\n\n\treturn isMediaEndpoint && isCreateMethod;\n}\n\n/**\n * Middleware handling media upload failures and retries.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst mediaUploadMiddleware = ( options, next ) => {\n\tif ( ! isMediaUploadRequest( options ) ) {\n\t\treturn next( options );\n\t}\n\n\tlet retries = 0;\n\tconst maxRetries = 5;\n\n\t/**\n\t * @param {string} attachmentId\n\t * @return {Promise<any>} Processed post response.\n\t */\n\tconst postProcess = ( attachmentId ) => {\n\t\tretries++;\n\t\treturn next( {\n\t\t\tpath: `/wp/v2/media/${ attachmentId }/post-process`,\n\t\t\tmethod: 'POST',\n\t\t\tdata: { action: 'create-image-subsizes' },\n\t\t\tparse: false,\n\t\t} ).catch( () => {\n\t\t\tif ( retries < maxRetries ) {\n\t\t\t\treturn postProcess( attachmentId );\n\t\t\t}\n\t\t\tnext( {\n\t\t\t\tpath: `/wp/v2/media/${ attachmentId }?force=true`,\n\t\t\t\tmethod: 'DELETE',\n\t\t\t} );\n\n\t\t\treturn Promise.reject();\n\t\t} );\n\t};\n\n\treturn next( { ...options, parse: false } )\n\t\t.catch( ( response ) => {\n\t\t\tconst attachmentId = response.headers.get(\n\t\t\t\t'x-wp-upload-attachment-id'\n\t\t\t);\n\t\t\tif (\n\t\t\t\tresponse.status >= 500 &&\n\t\t\t\tresponse.status < 600 &&\n\t\t\t\tattachmentId\n\t\t\t) {\n\t\t\t\treturn postProcess( attachmentId ).catch( () => {\n\t\t\t\t\tif ( options.parse !== false ) {\n\t\t\t\t\t\treturn Promise.reject( {\n\t\t\t\t\t\t\tcode: 'post_process',\n\t\t\t\t\t\t\tmessage: __(\n\t\t\t\t\t\t\t\t'Media upload failed. If this is a photo or a large image, please scale it down and try again.'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Promise.reject( response );\n\t\t\t\t} );\n\t\t\t}\n\t\t\treturn parseAndThrowError( response, options.parse );\n\t\t} )\n\t\t.then( ( response ) =>\n\t\t\tparseResponseAndNormalizeError( response, options.parse )\n\t\t);\n};\n\nexport default mediaUploadMiddleware;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport createNonceMiddleware from './middlewares/nonce';\nimport createRootURLMiddleware from './middlewares/root-url';\nimport createPreloadingMiddleware from './middlewares/preloading';\nimport fetchAllMiddleware from './middlewares/fetch-all-middleware';\nimport namespaceEndpointMiddleware from './middlewares/namespace-endpoint';\nimport httpV1Middleware from './middlewares/http-v1';\nimport userLocaleMiddleware from './middlewares/user-locale';\nimport mediaUploadMiddleware from './middlewares/media-upload';\nimport {\n\tparseResponseAndNormalizeError,\n\tparseAndThrowError,\n} from './utils/response';\n\n/**\n * Default set of header values which should be sent with every request unless\n * explicitly provided through apiFetch options.\n *\n * @type {Record<string, string>}\n */\nconst DEFAULT_HEADERS = {\n\t// The backend uses the Accept header as a condition for considering an\n\t// incoming request as a REST request.\n\t//\n\t// See: https://core.trac.wordpress.org/ticket/44534\n\tAccept: 'application/json, */*;q=0.1',\n};\n\n/**\n * Default set of fetch option values which should be sent with every request\n * unless explicitly provided through apiFetch options.\n *\n * @type {Object}\n */\nconst DEFAULT_OPTIONS = {\n\tcredentials: 'include',\n};\n\n/** @typedef {import('./types').APIFetchMiddleware} APIFetchMiddleware */\n/** @typedef {import('./types').APIFetchOptions} APIFetchOptions */\n\n/**\n * @type {import('./types').APIFetchMiddleware[]}\n */\nconst middlewares = [\n\tuserLocaleMiddleware,\n\tnamespaceEndpointMiddleware,\n\thttpV1Middleware,\n\tfetchAllMiddleware,\n];\n\n/**\n * Register a middleware\n *\n * @param {import('./types').APIFetchMiddleware} middleware\n */\nfunction registerMiddleware( middleware ) {\n\tmiddlewares.unshift( middleware );\n}\n\n/**\n * Checks the status of a response, throwing the Response as an error if\n * it is outside the 200 range.\n *\n * @param {Response} response\n * @return {Response} The response if the status is in the 200 range.\n */\nconst checkStatus = ( response ) => {\n\tif ( response.status >= 200 && response.status < 300 ) {\n\t\treturn response;\n\t}\n\n\tthrow response;\n};\n\n/** @typedef {(options: import('./types').APIFetchOptions) => Promise<any>} FetchHandler*/\n\n/**\n * @type {FetchHandler}\n */\nconst defaultFetchHandler = ( nextOptions ) => {\n\tconst { url, path, data, parse = true, ...remainingOptions } = nextOptions;\n\tlet { body, headers } = nextOptions;\n\n\t// Merge explicitly-provided headers with default values.\n\theaders = { ...DEFAULT_HEADERS, ...headers };\n\n\t// The `data` property is a shorthand for sending a JSON body.\n\tif ( data ) {\n\t\tbody = JSON.stringify( data );\n\t\theaders[ 'Content-Type' ] = 'application/json';\n\t}\n\n\tconst responsePromise = window.fetch(\n\t\t// Fall back to explicitly passing `window.location` which is the behavior if `undefined` is passed.\n\t\turl || path || window.location.href,\n\t\t{\n\t\t\t...DEFAULT_OPTIONS,\n\t\t\t...remainingOptions,\n\t\t\tbody,\n\t\t\theaders,\n\t\t}\n\t);\n\n\treturn responsePromise.then(\n\t\t( value ) =>\n\t\t\tPromise.resolve( value )\n\t\t\t\t.then( checkStatus )\n\t\t\t\t.catch( ( response ) => parseAndThrowError( response, parse ) )\n\t\t\t\t.then( ( response ) =>\n\t\t\t\t\tparseResponseAndNormalizeError( response, parse )\n\t\t\t\t),\n\t\t( err ) => {\n\t\t\t// Re-throw AbortError for the users to handle it themselves.\n\t\t\tif ( err && err.name === 'AbortError' ) {\n\t\t\t\tthrow err;\n\t\t\t}\n\n\t\t\t// Otherwise, there is most likely no network connection.\n\t\t\t// Unfortunately the message might depend on the browser.\n\t\t\tthrow {\n\t\t\t\tcode: 'fetch_error',\n\t\t\t\tmessage: __( 'You are probably offline.' ),\n\t\t\t};\n\t\t}\n\t);\n};\n\n/** @type {FetchHandler} */\nlet fetchHandler = defaultFetchHandler;\n\n/**\n * Defines a custom fetch handler for making the requests that will override\n * the default one using window.fetch\n *\n * @param {FetchHandler} newFetchHandler The new fetch handler\n */\nfunction setFetchHandler( newFetchHandler ) {\n\tfetchHandler = newFetchHandler;\n}\n\n/**\n * @template T\n * @param {import('./types').APIFetchOptions} options\n * @return {Promise<T>} A promise representing the request processed via the registered middlewares.\n */\nfunction apiFetch( options ) {\n\t// creates a nested function chain that calls all middlewares and finally the `fetchHandler`,\n\t// converting `middlewares = [ m1, m2, m3 ]` into:\n\t// ```\n\t// opts1 => m1( opts1, opts2 => m2( opts2, opts3 => m3( opts3, fetchHandler ) ) );\n\t// ```\n\tconst enhancedHandler = middlewares.reduceRight(\n\t\t( /** @type {FetchHandler} */ next, middleware ) => {\n\t\t\treturn ( workingOptions ) => middleware( workingOptions, next );\n\t\t},\n\t\tfetchHandler\n\t);\n\n\treturn enhancedHandler( options ).catch( ( error ) => {\n\t\tif ( error.code !== 'rest_cookie_invalid_nonce' ) {\n\t\t\treturn Promise.reject( error );\n\t\t}\n\n\t\t// If the nonce is invalid, refresh it and try again.\n\t\treturn (\n\t\t\twindow\n\t\t\t\t// @ts-ignore\n\t\t\t\t.fetch( apiFetch.nonceEndpoint )\n\t\t\t\t.then( checkStatus )\n\t\t\t\t.then( ( data ) => data.text() )\n\t\t\t\t.then( ( text ) => {\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tapiFetch.nonceMiddleware.nonce = text;\n\t\t\t\t\treturn apiFetch( options );\n\t\t\t\t} )\n\t\t);\n\t} );\n}\n\napiFetch.use = registerMiddleware;\napiFetch.setFetchHandler = setFetchHandler;\n\napiFetch.createNonceMiddleware = createNonceMiddleware;\napiFetch.createPreloadingMiddleware = createPreloadingMiddleware;\napiFetch.createRootURLMiddleware = createRootURLMiddleware;\napiFetch.fetchAllMiddleware = fetchAllMiddleware;\napiFetch.mediaUploadMiddleware = mediaUploadMiddleware;\n\nexport default apiFetch;\n","/**\n * WordPress dependencies\n */\nimport { addQueryArgs, hasQueryArg } from '@wordpress/url';\n\n/**\n * @type {import('../types').APIFetchMiddleware}\n */\nconst userLocaleMiddleware = ( options, next ) => {\n\tif (\n\t\ttypeof options.url === 'string' &&\n\t\t! hasQueryArg( options.url, '_locale' )\n\t) {\n\t\toptions.url = addQueryArgs( options.url, { _locale: 'user' } );\n\t}\n\n\tif (\n\t\ttypeof options.path === 'string' &&\n\t\t! hasQueryArg( options.path, '_locale' )\n\t) {\n\t\toptions.path = addQueryArgs( options.path, { _locale: 'user' } );\n\t}\n\n\treturn next( options );\n};\n\nexport default userLocaleMiddleware;\n","/**\n * @param {string} nonce\n * @return {import('../types').APIFetchMiddleware & { nonce: string }} A middleware to enhance a request with a nonce.\n */\nfunction createNonceMiddleware( nonce ) {\n\t/**\n\t * @type {import('../types').APIFetchMiddleware & { nonce: string }}\n\t */\n\tconst middleware = ( options, next ) => {\n\t\tconst { headers = {} } = options;\n\n\t\t// If an 'X-WP-Nonce' header (or any case-insensitive variation\n\t\t// thereof) was specified, no need to add a nonce header.\n\t\tfor ( const headerName in headers ) {\n\t\t\tif (\n\t\t\t\theaderName.toLowerCase() === 'x-wp-nonce' &&\n\t\t\t\theaders[ headerName ] === middleware.nonce\n\t\t\t) {\n\t\t\t\treturn next( options );\n\t\t\t}\n\t\t}\n\n\t\treturn next( {\n\t\t\t...options,\n\t\t\theaders: {\n\t\t\t\t...headers,\n\t\t\t\t'X-WP-Nonce': middleware.nonce,\n\t\t\t},\n\t\t} );\n\t};\n\n\tmiddleware.nonce = nonce;\n\n\treturn middleware;\n}\n\nexport default createNonceMiddleware;\n","/**\n * Internal dependencies\n */\nimport namespaceAndEndpointMiddleware from './namespace-endpoint';\n\n/**\n * @param {string} rootURL\n * @return {import('../types').APIFetchMiddleware} Root URL middleware.\n */\nconst createRootURLMiddleware = ( rootURL ) => ( options, next ) => {\n\treturn namespaceAndEndpointMiddleware( options, ( optionsWithPath ) => {\n\t\tlet url = optionsWithPath.url;\n\t\tlet path = optionsWithPath.path;\n\t\tlet apiRoot;\n\n\t\tif ( typeof path === 'string' ) {\n\t\t\tapiRoot = rootURL;\n\n\t\t\tif ( -1 !== rootURL.indexOf( '?' ) ) {\n\t\t\t\tpath = path.replace( '?', '&' );\n\t\t\t}\n\n\t\t\tpath = path.replace( /^\\//, '' );\n\n\t\t\t// API root may already include query parameter prefix if site is\n\t\t\t// configured to use plain permalinks.\n\t\t\tif (\n\t\t\t\t'string' === typeof apiRoot &&\n\t\t\t\t-1 !== apiRoot.indexOf( '?' )\n\t\t\t) {\n\t\t\t\tpath = path.replace( '?', '&' );\n\t\t\t}\n\n\t\t\turl = apiRoot + path;\n\t\t}\n\n\t\treturn next( {\n\t\t\t...optionsWithPath,\n\t\t\turl,\n\t\t} );\n\t} );\n};\n\nexport default createRootURLMiddleware;\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","window","options","next","namespaceTrimmed","endpointTrimmed","path","namespace","endpoint","replace","prepareResponse","responseData","parse","Promise","resolve","body","Response","JSON","stringify","status","statusText","headers","modifyQuery","queryArgs","url","addQueryArgs","parseResponse","response","json","reject","getNextPageUrl","linkHeader","match","parseLinkHeader","async","pathIsUnbounded","indexOf","urlIsUnbounded","requestContainsUnboundedQuery","apiFetch","per_page","results","Array","isArray","nextPage","mergedResults","concat","nextResponse","undefined","nextResults","OVERRIDE_METHODS","Set","DEFAULT_METHOD","shouldParseResponse","parseJsonAndNormalizeError","invalidJsonError","code","message","__","catch","parseResponseAndNormalizeError","res","parseAndThrowError","then","error","unknownError","DEFAULT_HEADERS","Accept","DEFAULT_OPTIONS","credentials","middlewares","hasQueryArg","_locale","namespaceEndpointMiddleware","method","has","toUpperCase","fetchAllMiddleware","checkStatus","fetchHandler","nextOptions","data","remainingOptions","fetch","location","href","value","err","name","reduceRight","middleware","workingOptions","enhancedHandler","nonceEndpoint","text","nonceMiddleware","nonce","use","unshift","setFetchHandler","newFetchHandler","createNonceMiddleware","headerName","toLowerCase","createPreloadingMiddleware","preloadedData","cache","fromEntries","entries","map","normalizePath","rawPath","rest_route","pathFromQuery","getQueryArgs","cacheData","createRootURLMiddleware","rootURL","namespaceAndEndpointMiddleware","optionsWithPath","apiRoot","mediaUploadMiddleware","isCreateMethod","isMediaUploadRequest","retries","postProcess","attachmentId","action"],"sourceRoot":""}
|
1 |
+
{"version":3,"file":"./build/api-fetch/index.min.js","mappings":"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","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/namespace-endpoint.js","webpack://wp/external window [\"wp\",\"url\"]","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/preloading.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/fetch-all-middleware.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/http-v1.js","webpack://wp/./packages/api-fetch/build-module/utils/@wordpress/api-fetch/src/utils/response.js","webpack://wp/./packages/api-fetch/build-module/@wordpress/api-fetch/src/index.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/user-locale.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/nonce.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/root-url.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/media-upload.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * @type {import('../types').APIFetchMiddleware}\n */\nconst namespaceAndEndpointMiddleware = ( options, next ) => {\n\tlet path = options.path;\n\tlet namespaceTrimmed, endpointTrimmed;\n\n\tif (\n\t\ttypeof options.namespace === 'string' &&\n\t\ttypeof options.endpoint === 'string'\n\t) {\n\t\tnamespaceTrimmed = options.namespace.replace( /^\\/|\\/$/g, '' );\n\t\tendpointTrimmed = options.endpoint.replace( /^\\//, '' );\n\t\tif ( endpointTrimmed ) {\n\t\t\tpath = namespaceTrimmed + '/' + endpointTrimmed;\n\t\t} else {\n\t\t\tpath = namespaceTrimmed;\n\t\t}\n\t}\n\n\tdelete options.namespace;\n\tdelete options.endpoint;\n\n\treturn next( {\n\t\t...options,\n\t\tpath,\n\t} );\n};\n\nexport default namespaceAndEndpointMiddleware;\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"url\"];","/**\n * WordPress dependencies\n */\nimport { addQueryArgs, getQueryArgs, normalizePath } from '@wordpress/url';\n\n/**\n * @param {Record<string, any>} preloadedData\n * @return {import('../types').APIFetchMiddleware} Preloading middleware.\n */\nfunction createPreloadingMiddleware( preloadedData ) {\n\tconst cache = Object.fromEntries(\n\t\tObject.entries( preloadedData ).map( ( [ path, data ] ) => [\n\t\t\tnormalizePath( path ),\n\t\t\tdata,\n\t\t] )\n\t);\n\n\treturn ( options, next ) => {\n\t\tconst { parse = true } = options;\n\t\t/** @type {string | void} */\n\t\tlet rawPath = options.path;\n\t\tif ( ! rawPath && options.url ) {\n\t\t\tconst { rest_route: pathFromQuery, ...queryArgs } = getQueryArgs(\n\t\t\t\toptions.url\n\t\t\t);\n\n\t\t\tif ( typeof pathFromQuery === 'string' ) {\n\t\t\t\trawPath = addQueryArgs( pathFromQuery, queryArgs );\n\t\t\t}\n\t\t}\n\n\t\tif ( typeof rawPath !== 'string' ) {\n\t\t\treturn next( options );\n\t\t}\n\n\t\tconst method = options.method || 'GET';\n\t\tconst path = normalizePath( rawPath );\n\n\t\tif ( 'GET' === method && cache[ path ] ) {\n\t\t\tconst cacheData = cache[ path ];\n\n\t\t\t// Unsetting the cache key ensures that the data is only used a single time.\n\t\t\tdelete cache[ path ];\n\n\t\t\treturn prepareResponse( cacheData, !! parse );\n\t\t} else if (\n\t\t\t'OPTIONS' === method &&\n\t\t\tcache[ method ] &&\n\t\t\tcache[ method ][ path ]\n\t\t) {\n\t\t\tconst cacheData = cache[ method ][ path ];\n\n\t\t\t// Unsetting the cache key ensures that the data is only used a single time.\n\t\t\tdelete cache[ method ][ path ];\n\n\t\t\treturn prepareResponse( cacheData, !! parse );\n\t\t}\n\n\t\treturn next( options );\n\t};\n}\n\n/**\n * This is a helper function that sends a success response.\n *\n * @param {Record<string, any>} responseData\n * @param {boolean} parse\n * @return {Promise<any>} Promise with the response.\n */\nfunction prepareResponse( responseData, parse ) {\n\treturn Promise.resolve(\n\t\tparse\n\t\t\t? responseData.body\n\t\t\t: new window.Response( JSON.stringify( responseData.body ), {\n\t\t\t\t\tstatus: 200,\n\t\t\t\t\tstatusText: 'OK',\n\t\t\t\t\theaders: responseData.headers,\n\t\t\t } )\n\t);\n}\n\nexport default createPreloadingMiddleware;\n","/**\n * WordPress dependencies\n */\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport apiFetch from '..';\n\n/**\n * Apply query arguments to both URL and Path, whichever is present.\n *\n * @param {import('../types').APIFetchOptions} props\n * @param {Record<string, string | number>} queryArgs\n * @return {import('../types').APIFetchOptions} The request with the modified query args\n */\nconst modifyQuery = ( { path, url, ...options }, queryArgs ) => ( {\n\t...options,\n\turl: url && addQueryArgs( url, queryArgs ),\n\tpath: path && addQueryArgs( path, queryArgs ),\n} );\n\n/**\n * Duplicates parsing functionality from apiFetch.\n *\n * @param {Response} response\n * @return {Promise<any>} Parsed response json.\n */\nconst parseResponse = ( response ) =>\n\tresponse.json ? response.json() : Promise.reject( response );\n\n/**\n * @param {string | null} linkHeader\n * @return {{ next?: string }} The parsed link header.\n */\nconst parseLinkHeader = ( linkHeader ) => {\n\tif ( ! linkHeader ) {\n\t\treturn {};\n\t}\n\tconst match = linkHeader.match( /<([^>]+)>; rel=\"next\"/ );\n\treturn match\n\t\t? {\n\t\t\t\tnext: match[ 1 ],\n\t\t }\n\t\t: {};\n};\n\n/**\n * @param {Response} response\n * @return {string | undefined} The next page URL.\n */\nconst getNextPageUrl = ( response ) => {\n\tconst { next } = parseLinkHeader( response.headers.get( 'link' ) );\n\treturn next;\n};\n\n/**\n * @param {import('../types').APIFetchOptions} options\n * @return {boolean} True if the request contains an unbounded query.\n */\nconst requestContainsUnboundedQuery = ( options ) => {\n\tconst pathIsUnbounded =\n\t\t!! options.path && options.path.indexOf( 'per_page=-1' ) !== -1;\n\tconst urlIsUnbounded =\n\t\t!! options.url && options.url.indexOf( 'per_page=-1' ) !== -1;\n\treturn pathIsUnbounded || urlIsUnbounded;\n};\n\n/**\n * The REST API enforces an upper limit on the per_page option. To handle large\n * collections, apiFetch consumers can pass `per_page=-1`; this middleware will\n * then recursively assemble a full response array from all available pages.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst fetchAllMiddleware = async ( options, next ) => {\n\tif ( options.parse === false ) {\n\t\t// If a consumer has opted out of parsing, do not apply middleware.\n\t\treturn next( options );\n\t}\n\tif ( ! requestContainsUnboundedQuery( options ) ) {\n\t\t// If neither url nor path is requesting all items, do not apply middleware.\n\t\treturn next( options );\n\t}\n\n\t// Retrieve requested page of results.\n\tconst response = await apiFetch( {\n\t\t...modifyQuery( options, {\n\t\t\tper_page: 100,\n\t\t} ),\n\t\t// Ensure headers are returned for page 1.\n\t\tparse: false,\n\t} );\n\n\tconst results = await parseResponse( response );\n\n\tif ( ! Array.isArray( results ) ) {\n\t\t// We have no reliable way of merging non-array results.\n\t\treturn results;\n\t}\n\n\tlet nextPage = getNextPageUrl( response );\n\n\tif ( ! nextPage ) {\n\t\t// There are no further pages to request.\n\t\treturn results;\n\t}\n\n\t// Iteratively fetch all remaining pages until no \"next\" header is found.\n\tlet mergedResults = /** @type {any[]} */ ( [] ).concat( results );\n\twhile ( nextPage ) {\n\t\tconst nextResponse = await apiFetch( {\n\t\t\t...options,\n\t\t\t// Ensure the URL for the next page is used instead of any provided path.\n\t\t\tpath: undefined,\n\t\t\turl: nextPage,\n\t\t\t// Ensure we still get headers so we can identify the next page.\n\t\t\tparse: false,\n\t\t} );\n\t\tconst nextResults = await parseResponse( nextResponse );\n\t\tmergedResults = mergedResults.concat( nextResults );\n\t\tnextPage = getNextPageUrl( nextResponse );\n\t}\n\treturn mergedResults;\n};\n\nexport default fetchAllMiddleware;\n","/**\n * Set of HTTP methods which are eligible to be overridden.\n *\n * @type {Set<string>}\n */\nconst OVERRIDE_METHODS = new Set( [ 'PATCH', 'PUT', 'DELETE' ] );\n\n/**\n * Default request method.\n *\n * \"A request has an associated method (a method). Unless stated otherwise it\n * is `GET`.\"\n *\n * @see https://fetch.spec.whatwg.org/#requests\n *\n * @type {string}\n */\nconst DEFAULT_METHOD = 'GET';\n\n/**\n * API Fetch middleware which overrides the request method for HTTP v1\n * compatibility leveraging the REST API X-HTTP-Method-Override header.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst httpV1Middleware = ( options, next ) => {\n\tconst { method = DEFAULT_METHOD } = options;\n\tif ( OVERRIDE_METHODS.has( method.toUpperCase() ) ) {\n\t\toptions = {\n\t\t\t...options,\n\t\t\theaders: {\n\t\t\t\t...options.headers,\n\t\t\t\t'X-HTTP-Method-Override': method,\n\t\t\t\t'Content-Type': 'application/json',\n\t\t\t},\n\t\t\tmethod: 'POST',\n\t\t};\n\t}\n\n\treturn next( options );\n};\n\nexport default httpV1Middleware;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Parses the apiFetch response.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n *\n * @return {Promise<any> | null | Response} Parsed response.\n */\nconst parseResponse = ( response, shouldParseResponse = true ) => {\n\tif ( shouldParseResponse ) {\n\t\tif ( response.status === 204 ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn response.json ? response.json() : Promise.reject( response );\n\t}\n\n\treturn response;\n};\n\n/**\n * Calls the `json` function on the Response, throwing an error if the response\n * doesn't have a json function or if parsing the json itself fails.\n *\n * @param {Response} response\n * @return {Promise<any>} Parsed response.\n */\nconst parseJsonAndNormalizeError = ( response ) => {\n\tconst invalidJsonError = {\n\t\tcode: 'invalid_json',\n\t\tmessage: __( 'The response is not a valid JSON response.' ),\n\t};\n\n\tif ( ! response || ! response.json ) {\n\t\tthrow invalidJsonError;\n\t}\n\n\treturn response.json().catch( () => {\n\t\tthrow invalidJsonError;\n\t} );\n};\n\n/**\n * Parses the apiFetch response properly and normalize response errors.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n *\n * @return {Promise<any>} Parsed response.\n */\nexport const parseResponseAndNormalizeError = (\n\tresponse,\n\tshouldParseResponse = true\n) => {\n\treturn Promise.resolve(\n\t\tparseResponse( response, shouldParseResponse )\n\t).catch( ( res ) => parseAndThrowError( res, shouldParseResponse ) );\n};\n\n/**\n * Parses a response, throwing an error if parsing the response fails.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n * @return {Promise<any>} Parsed response.\n */\nexport function parseAndThrowError( response, shouldParseResponse = true ) {\n\tif ( ! shouldParseResponse ) {\n\t\tthrow response;\n\t}\n\n\treturn parseJsonAndNormalizeError( response ).then( ( error ) => {\n\t\tconst unknownError = {\n\t\t\tcode: 'unknown_error',\n\t\t\tmessage: __( 'An unknown error occurred.' ),\n\t\t};\n\n\t\tthrow error || unknownError;\n\t} );\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport createNonceMiddleware from './middlewares/nonce';\nimport createRootURLMiddleware from './middlewares/root-url';\nimport createPreloadingMiddleware from './middlewares/preloading';\nimport fetchAllMiddleware from './middlewares/fetch-all-middleware';\nimport namespaceEndpointMiddleware from './middlewares/namespace-endpoint';\nimport httpV1Middleware from './middlewares/http-v1';\nimport userLocaleMiddleware from './middlewares/user-locale';\nimport mediaUploadMiddleware from './middlewares/media-upload';\nimport {\n\tparseResponseAndNormalizeError,\n\tparseAndThrowError,\n} from './utils/response';\n\n/**\n * Default set of header values which should be sent with every request unless\n * explicitly provided through apiFetch options.\n *\n * @type {Record<string, string>}\n */\nconst DEFAULT_HEADERS = {\n\t// The backend uses the Accept header as a condition for considering an\n\t// incoming request as a REST request.\n\t//\n\t// See: https://core.trac.wordpress.org/ticket/44534\n\tAccept: 'application/json, */*;q=0.1',\n};\n\n/**\n * Default set of fetch option values which should be sent with every request\n * unless explicitly provided through apiFetch options.\n *\n * @type {Object}\n */\nconst DEFAULT_OPTIONS = {\n\tcredentials: 'include',\n};\n\n/** @typedef {import('./types').APIFetchMiddleware} APIFetchMiddleware */\n/** @typedef {import('./types').APIFetchOptions} APIFetchOptions */\n\n/**\n * @type {import('./types').APIFetchMiddleware[]}\n */\nconst middlewares = [\n\tuserLocaleMiddleware,\n\tnamespaceEndpointMiddleware,\n\thttpV1Middleware,\n\tfetchAllMiddleware,\n];\n\n/**\n * Register a middleware\n *\n * @param {import('./types').APIFetchMiddleware} middleware\n */\nfunction registerMiddleware( middleware ) {\n\tmiddlewares.unshift( middleware );\n}\n\n/**\n * Checks the status of a response, throwing the Response as an error if\n * it is outside the 200 range.\n *\n * @param {Response} response\n * @return {Response} The response if the status is in the 200 range.\n */\nconst checkStatus = ( response ) => {\n\tif ( response.status >= 200 && response.status < 300 ) {\n\t\treturn response;\n\t}\n\n\tthrow response;\n};\n\n/** @typedef {(options: import('./types').APIFetchOptions) => Promise<any>} FetchHandler*/\n\n/**\n * @type {FetchHandler}\n */\nconst defaultFetchHandler = ( nextOptions ) => {\n\tconst { url, path, data, parse = true, ...remainingOptions } = nextOptions;\n\tlet { body, headers } = nextOptions;\n\n\t// Merge explicitly-provided headers with default values.\n\theaders = { ...DEFAULT_HEADERS, ...headers };\n\n\t// The `data` property is a shorthand for sending a JSON body.\n\tif ( data ) {\n\t\tbody = JSON.stringify( data );\n\t\theaders[ 'Content-Type' ] = 'application/json';\n\t}\n\n\tconst responsePromise = window.fetch(\n\t\t// Fall back to explicitly passing `window.location` which is the behavior if `undefined` is passed.\n\t\turl || path || window.location.href,\n\t\t{\n\t\t\t...DEFAULT_OPTIONS,\n\t\t\t...remainingOptions,\n\t\t\tbody,\n\t\t\theaders,\n\t\t}\n\t);\n\n\treturn responsePromise.then(\n\t\t( value ) =>\n\t\t\tPromise.resolve( value )\n\t\t\t\t.then( checkStatus )\n\t\t\t\t.catch( ( response ) => parseAndThrowError( response, parse ) )\n\t\t\t\t.then( ( response ) =>\n\t\t\t\t\tparseResponseAndNormalizeError( response, parse )\n\t\t\t\t),\n\t\t( err ) => {\n\t\t\t// Re-throw AbortError for the users to handle it themselves.\n\t\t\tif ( err && err.name === 'AbortError' ) {\n\t\t\t\tthrow err;\n\t\t\t}\n\n\t\t\t// Otherwise, there is most likely no network connection.\n\t\t\t// Unfortunately the message might depend on the browser.\n\t\t\tthrow {\n\t\t\t\tcode: 'fetch_error',\n\t\t\t\tmessage: __( 'You are probably offline.' ),\n\t\t\t};\n\t\t}\n\t);\n};\n\n/** @type {FetchHandler} */\nlet fetchHandler = defaultFetchHandler;\n\n/**\n * Defines a custom fetch handler for making the requests that will override\n * the default one using window.fetch\n *\n * @param {FetchHandler} newFetchHandler The new fetch handler\n */\nfunction setFetchHandler( newFetchHandler ) {\n\tfetchHandler = newFetchHandler;\n}\n\n/**\n * @template T\n * @param {import('./types').APIFetchOptions} options\n * @return {Promise<T>} A promise representing the request processed via the registered middlewares.\n */\nfunction apiFetch( options ) {\n\t// creates a nested function chain that calls all middlewares and finally the `fetchHandler`,\n\t// converting `middlewares = [ m1, m2, m3 ]` into:\n\t// ```\n\t// opts1 => m1( opts1, opts2 => m2( opts2, opts3 => m3( opts3, fetchHandler ) ) );\n\t// ```\n\tconst enhancedHandler = middlewares.reduceRight(\n\t\t( /** @type {FetchHandler} */ next, middleware ) => {\n\t\t\treturn ( workingOptions ) => middleware( workingOptions, next );\n\t\t},\n\t\tfetchHandler\n\t);\n\n\treturn enhancedHandler( options ).catch( ( error ) => {\n\t\tif ( error.code !== 'rest_cookie_invalid_nonce' ) {\n\t\t\treturn Promise.reject( error );\n\t\t}\n\n\t\t// If the nonce is invalid, refresh it and try again.\n\t\treturn (\n\t\t\twindow\n\t\t\t\t// @ts-ignore\n\t\t\t\t.fetch( apiFetch.nonceEndpoint )\n\t\t\t\t.then( checkStatus )\n\t\t\t\t.then( ( data ) => data.text() )\n\t\t\t\t.then( ( text ) => {\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tapiFetch.nonceMiddleware.nonce = text;\n\t\t\t\t\treturn apiFetch( options );\n\t\t\t\t} )\n\t\t);\n\t} );\n}\n\napiFetch.use = registerMiddleware;\napiFetch.setFetchHandler = setFetchHandler;\n\napiFetch.createNonceMiddleware = createNonceMiddleware;\napiFetch.createPreloadingMiddleware = createPreloadingMiddleware;\napiFetch.createRootURLMiddleware = createRootURLMiddleware;\napiFetch.fetchAllMiddleware = fetchAllMiddleware;\napiFetch.mediaUploadMiddleware = mediaUploadMiddleware;\n\nexport default apiFetch;\n","/**\n * WordPress dependencies\n */\nimport { addQueryArgs, hasQueryArg } from '@wordpress/url';\n\n/**\n * @type {import('../types').APIFetchMiddleware}\n */\nconst userLocaleMiddleware = ( options, next ) => {\n\tif (\n\t\ttypeof options.url === 'string' &&\n\t\t! hasQueryArg( options.url, '_locale' )\n\t) {\n\t\toptions.url = addQueryArgs( options.url, { _locale: 'user' } );\n\t}\n\n\tif (\n\t\ttypeof options.path === 'string' &&\n\t\t! hasQueryArg( options.path, '_locale' )\n\t) {\n\t\toptions.path = addQueryArgs( options.path, { _locale: 'user' } );\n\t}\n\n\treturn next( options );\n};\n\nexport default userLocaleMiddleware;\n","/**\n * @param {string} nonce\n * @return {import('../types').APIFetchMiddleware & { nonce: string }} A middleware to enhance a request with a nonce.\n */\nfunction createNonceMiddleware( nonce ) {\n\t/**\n\t * @type {import('../types').APIFetchMiddleware & { nonce: string }}\n\t */\n\tconst middleware = ( options, next ) => {\n\t\tconst { headers = {} } = options;\n\n\t\t// If an 'X-WP-Nonce' header (or any case-insensitive variation\n\t\t// thereof) was specified, no need to add a nonce header.\n\t\tfor ( const headerName in headers ) {\n\t\t\tif (\n\t\t\t\theaderName.toLowerCase() === 'x-wp-nonce' &&\n\t\t\t\theaders[ headerName ] === middleware.nonce\n\t\t\t) {\n\t\t\t\treturn next( options );\n\t\t\t}\n\t\t}\n\n\t\treturn next( {\n\t\t\t...options,\n\t\t\theaders: {\n\t\t\t\t...headers,\n\t\t\t\t'X-WP-Nonce': middleware.nonce,\n\t\t\t},\n\t\t} );\n\t};\n\n\tmiddleware.nonce = nonce;\n\n\treturn middleware;\n}\n\nexport default createNonceMiddleware;\n","/**\n * Internal dependencies\n */\nimport namespaceAndEndpointMiddleware from './namespace-endpoint';\n\n/**\n * @param {string} rootURL\n * @return {import('../types').APIFetchMiddleware} Root URL middleware.\n */\nconst createRootURLMiddleware = ( rootURL ) => ( options, next ) => {\n\treturn namespaceAndEndpointMiddleware( options, ( optionsWithPath ) => {\n\t\tlet url = optionsWithPath.url;\n\t\tlet path = optionsWithPath.path;\n\t\tlet apiRoot;\n\n\t\tif ( typeof path === 'string' ) {\n\t\t\tapiRoot = rootURL;\n\n\t\t\tif ( -1 !== rootURL.indexOf( '?' ) ) {\n\t\t\t\tpath = path.replace( '?', '&' );\n\t\t\t}\n\n\t\t\tpath = path.replace( /^\\//, '' );\n\n\t\t\t// API root may already include query parameter prefix if site is\n\t\t\t// configured to use plain permalinks.\n\t\t\tif (\n\t\t\t\t'string' === typeof apiRoot &&\n\t\t\t\t-1 !== apiRoot.indexOf( '?' )\n\t\t\t) {\n\t\t\t\tpath = path.replace( '?', '&' );\n\t\t\t}\n\n\t\t\turl = apiRoot + path;\n\t\t}\n\n\t\treturn next( {\n\t\t\t...optionsWithPath,\n\t\t\turl,\n\t\t} );\n\t} );\n};\n\nexport default createRootURLMiddleware;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport {\n\tparseAndThrowError,\n\tparseResponseAndNormalizeError,\n} from '../utils/response';\n\n/**\n * @param {import('../types').APIFetchOptions} options\n * @return {boolean} True if the request is for media upload.\n */\nfunction isMediaUploadRequest( options ) {\n\tconst isCreateMethod = !! options.method && options.method === 'POST';\n\tconst isMediaEndpoint =\n\t\t( !! options.path && options.path.indexOf( '/wp/v2/media' ) !== -1 ) ||\n\t\t( !! options.url && options.url.indexOf( '/wp/v2/media' ) !== -1 );\n\n\treturn isMediaEndpoint && isCreateMethod;\n}\n\n/**\n * Middleware handling media upload failures and retries.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst mediaUploadMiddleware = ( options, next ) => {\n\tif ( ! isMediaUploadRequest( options ) ) {\n\t\treturn next( options );\n\t}\n\n\tlet retries = 0;\n\tconst maxRetries = 5;\n\n\t/**\n\t * @param {string} attachmentId\n\t * @return {Promise<any>} Processed post response.\n\t */\n\tconst postProcess = ( attachmentId ) => {\n\t\tretries++;\n\t\treturn next( {\n\t\t\tpath: `/wp/v2/media/${ attachmentId }/post-process`,\n\t\t\tmethod: 'POST',\n\t\t\tdata: { action: 'create-image-subsizes' },\n\t\t\tparse: false,\n\t\t} ).catch( () => {\n\t\t\tif ( retries < maxRetries ) {\n\t\t\t\treturn postProcess( attachmentId );\n\t\t\t}\n\t\t\tnext( {\n\t\t\t\tpath: `/wp/v2/media/${ attachmentId }?force=true`,\n\t\t\t\tmethod: 'DELETE',\n\t\t\t} );\n\n\t\t\treturn Promise.reject();\n\t\t} );\n\t};\n\n\treturn next( { ...options, parse: false } )\n\t\t.catch( ( response ) => {\n\t\t\tconst attachmentId = response.headers.get(\n\t\t\t\t'x-wp-upload-attachment-id'\n\t\t\t);\n\t\t\tif (\n\t\t\t\tresponse.status >= 500 &&\n\t\t\t\tresponse.status < 600 &&\n\t\t\t\tattachmentId\n\t\t\t) {\n\t\t\t\treturn postProcess( attachmentId ).catch( () => {\n\t\t\t\t\tif ( options.parse !== false ) {\n\t\t\t\t\t\treturn Promise.reject( {\n\t\t\t\t\t\t\tcode: 'post_process',\n\t\t\t\t\t\t\tmessage: __(\n\t\t\t\t\t\t\t\t'Media upload failed. If this is a photo or a large image, please scale it down and try again.'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Promise.reject( response );\n\t\t\t\t} );\n\t\t\t}\n\t\t\treturn parseAndThrowError( response, options.parse );\n\t\t} )\n\t\t.then( ( response ) =>\n\t\t\tparseResponseAndNormalizeError( response, options.parse )\n\t\t);\n};\n\nexport default mediaUploadMiddleware;\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","window","options","next","namespaceTrimmed","endpointTrimmed","path","namespace","endpoint","replace","prepareResponse","responseData","parse","Promise","resolve","body","Response","JSON","stringify","status","statusText","headers","modifyQuery","queryArgs","url","addQueryArgs","parseResponse","response","json","reject","getNextPageUrl","linkHeader","match","parseLinkHeader","async","pathIsUnbounded","indexOf","urlIsUnbounded","requestContainsUnboundedQuery","apiFetch","per_page","results","Array","isArray","nextPage","mergedResults","concat","nextResponse","undefined","nextResults","OVERRIDE_METHODS","Set","DEFAULT_METHOD","shouldParseResponse","parseJsonAndNormalizeError","invalidJsonError","code","message","__","catch","parseResponseAndNormalizeError","res","parseAndThrowError","then","error","unknownError","DEFAULT_HEADERS","Accept","DEFAULT_OPTIONS","credentials","middlewares","hasQueryArg","_locale","namespaceEndpointMiddleware","method","has","toUpperCase","fetchAllMiddleware","checkStatus","fetchHandler","nextOptions","data","remainingOptions","fetch","location","href","value","err","name","reduceRight","middleware","workingOptions","enhancedHandler","nonceEndpoint","text","nonceMiddleware","nonce","use","unshift","setFetchHandler","newFetchHandler","createNonceMiddleware","headerName","toLowerCase","createPreloadingMiddleware","preloadedData","cache","fromEntries","entries","map","normalizePath","rawPath","rest_route","pathFromQuery","getQueryArgs","cacheData","createRootURLMiddleware","rootURL","namespaceAndEndpointMiddleware","optionsWithPath","apiRoot","mediaUploadMiddleware","isCreateMethod","isMediaUploadRequest","retries","postProcess","attachmentId","action"],"sourceRoot":""}
|
build/autop/index.js
CHANGED
@@ -1,43 +1,43 @@
|
|
1 |
-
/******/ (()
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/define property getters */
|
8 |
-
/******/ (
|
9 |
/******/ // define getter functions for harmony exports
|
10 |
-
/******/ __webpack_require__.d = (exports, definition)
|
11 |
/******/ for(var key in definition) {
|
12 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14 |
/******/ }
|
15 |
/******/ }
|
16 |
/******/ };
|
17 |
-
/******/ }
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20 |
-
/******/ (
|
21 |
-
/******/ __webpack_require__.o = (obj, prop)
|
22 |
-
/******/ }
|
23 |
/******/
|
24 |
/******/ /* webpack/runtime/make namespace object */
|
25 |
-
/******/ (
|
26 |
/******/ // define __esModule on exports
|
27 |
-
/******/ __webpack_require__.r = (exports)
|
28 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
29 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
30 |
/******/ }
|
31 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
32 |
/******/ };
|
33 |
-
/******/ }
|
34 |
/******/
|
35 |
/************************************************************************/
|
36 |
var __webpack_exports__ = {};
|
37 |
__webpack_require__.r(__webpack_exports__);
|
38 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39 |
-
/* harmony export */ "autop": ()
|
40 |
-
/* harmony export */ "removep": ()
|
41 |
/* harmony export */ });
|
42 |
/**
|
43 |
* The regular expression for an HTML element.
|
1 |
+
/******/ (function() { // webpackBootstrap
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/define property getters */
|
8 |
+
/******/ !function() {
|
9 |
/******/ // define getter functions for harmony exports
|
10 |
+
/******/ __webpack_require__.d = function(exports, definition) {
|
11 |
/******/ for(var key in definition) {
|
12 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14 |
/******/ }
|
15 |
/******/ }
|
16 |
/******/ };
|
17 |
+
/******/ }();
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20 |
+
/******/ !function() {
|
21 |
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
22 |
+
/******/ }();
|
23 |
/******/
|
24 |
/******/ /* webpack/runtime/make namespace object */
|
25 |
+
/******/ !function() {
|
26 |
/******/ // define __esModule on exports
|
27 |
+
/******/ __webpack_require__.r = function(exports) {
|
28 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
29 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
30 |
/******/ }
|
31 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
32 |
/******/ };
|
33 |
+
/******/ }();
|
34 |
/******/
|
35 |
/************************************************************************/
|
36 |
var __webpack_exports__ = {};
|
37 |
__webpack_require__.r(__webpack_exports__);
|
38 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39 |
+
/* harmony export */ "autop": function() { return /* binding */ autop; },
|
40 |
+
/* harmony export */ "removep": function() { return /* binding */ removep; }
|
41 |
/* harmony export */ });
|
42 |
/**
|
43 |
* The regular expression for an HTML element.
|
build/autop/index.min.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'b92217e7dca37ef355dd');
|
build/autop/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
(
|
2 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
!function(){"use strict";var e={d:function(n,p){for(var r in p)e.o(p,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:p[r]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{autop:function(){return t},removep:function(){return c}});const p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function r(e,n){const r=function(e){const n=[];let r,t=e;for(;r=t.match(p);){const e=r.index;n.push(t.slice(0,e)),n.push(r[0]),t=t.slice(e+r[0].length)}return t.length&&n.push(t),n}(e);let t=!1;const c=Object.keys(n);for(let e=1;e<r.length;e+=2)for(let p=0;p<c.length;p++){const l=c[p];if(-1!==r[e].indexOf(l)){r[e]=r[e].replace(new RegExp(l,"g"),n[l]),t=!0;break}}return t&&(e=r.join("")),e}function t(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const p=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){const n=e.split("</pre>"),r=n.pop();e="";for(let r=0;r<n.length;r++){const t=n[r],c=t.indexOf("<pre");if(-1===c){e+=t;continue}const l="<pre wp-pre-tag-"+r+"></pre>";p.push([l,t.substr(c)+"</pre>"]),e+=t.substr(0,c)+l}e+=r}const t="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=r(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+t+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+t+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));const c=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",c.forEach((n=>{e+="<p>"+n.replace(/^\n*|\n*$/g,"")+"</p>\n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(new RegExp("<p>\\s*(</?"+t+"[^>]*>)\\s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(new RegExp("<p>\\s*(</?"+t+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+t+"[^>]*>)\\s*</p>","g"),"$1"),n&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(e=>e[0].replace(/\n/g,"<WPPreserveNewline />")))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,((e,n)=>n?e:"<br />\n"))).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+t+"[^>]*>)\\s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),p.forEach((n=>{const[p,r]=n;e=e.replace(p,r)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function c(e){const n="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",p=n+"|div|p",r=n+"|pre",t=[];let c=!1,l=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,(e=>(t.push(e),"<wp-preserve>")))),-1!==e.indexOf("<pre")&&(c=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,(e=>(e=(e=e.replace(/<br ?\/?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/\r?\n/g,"<wp-line-break>")))),-1!==e.indexOf("[caption")&&(l=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(e=>e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>").replace(/[\r\n\t]+/,"")))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*</("+p+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+p+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(<p [^>]+>[\s\S]*?)<\/p>/g,"$1</p#>")).replace(/<div( [^>]*)?>\s*<p>/gi,"<div$1>\n\n")).replace(/\s*<p>/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)<br ?\/?>\s*/gi,((e,n)=>n&&-1!==n.indexOf("\n")?"\n\n":"\n"))).replace(/\s*<div/g,"\n<div")).replace(/<\/div>\s*/g,"</div>\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+r+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+r+")>\\s*","g"),"</$1>\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"\n<option")).replace(/\s*<\/select>/g,"\n</select>")),-1!==e.indexOf("<hr")&&(e=e.replace(/\s*<hr( [^>]*)?>\s*/g,"\n\n<hr$1>\n\n")),-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,(e=>e.replace(/[\r\n]+/g,"")))),e=(e=(e=(e=e.replace(/<\/p#>/g,"</p>\n")).replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(/<wp-line-break>/g,"\n")),l&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),t.length&&(e=e.replace(/<wp-preserve>/g,(()=>t.shift()))),e):""}(window.wp=window.wp||{}).autop=n}();
|
2 |
//# sourceMappingURL=index.min.js.map
|
build/autop/index.min.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"./build/autop/index.min.js","mappings":"mBACA,IAAIA,EAAsB,CCA1BA,EAAwB,CAACC,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDH,EAAwB,CAACS,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFV,EAAyBC,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GAAO,G,+CCA9D,MAAMC,EAyCE,IAAIC,OATV,4HAoDF,SAASC,EAAmBC,EAAUC,GAErC,MAAMC,EAlCP,SAAoBC,GACnB,MAAMC,EAAQ,GACd,IAEIC,EAFAC,EAAeH,EAGnB,KAAUE,EAAQC,EAAaD,MAAOR,IAAqB,CAK1D,MAAMU,EAAgCF,EAAME,MAE5CH,EAAMI,KAAMF,EAAaG,MAAO,EAAGF,IACnCH,EAAMI,KAAMH,EAAO,IACnBC,EAAeA,EAAaG,MAAOF,EAAQF,EAAO,GAAIK,OACtD,CAMD,OAJKJ,EAAaI,QACjBN,EAAMI,KAAMF,GAGNF,CACP,CAYgBO,CAAWX,GAC3B,IAAIY,GAAU,EAGd,MAAMC,EAAU5B,OAAO6B,KAAMb,GAG7B,IAAM,IAAIc,EAAI,EAAGA,EAAIb,EAAQQ,OAAQK,GAAK,EACzC,IAAM,IAAIC,EAAI,EAAGA,EAAIH,EAAQH,OAAQM,IAAM,CAC1C,MAAMC,EAASJ,EAASG,GACxB,IAAM,IAAMd,EAASa,GAAIG,QAASD,GAAW,CAC5Cf,EAASa,GAAMb,EAASa,GAAII,QAC3B,IAAIrB,OAAQmB,EAAQ,KACpBhB,EAAcgB,IAEfL,GAAU,EAEV,KACA,CACD,CAOF,OAJKA,IACJZ,EAAWE,EAAQkB,KAAM,KAGnBpB,CACP,CAqBM,SAASqB,EAAOC,GAAkB,IAAZC,IAAY,yDACxC,MAAMC,EAAU,GAEhB,GAAqB,KAAhBF,EAAKG,OACT,MAAO,GAUR,IAAiC,KANjCH,GAAc,MAMJJ,QAAS,QAAkB,CACpC,MAAMQ,EAAYJ,EAAKK,MAAO,UACxBC,EAAWF,EAAUG,MAC3BP,EAAO,GAEP,IAAM,IAAIP,EAAI,EAAGA,EAAIW,EAAUhB,OAAQK,IAAM,CAC5C,MAAMe,EAAWJ,EAAWX,GACtBgB,EAAQD,EAASZ,QAAS,QAGhC,IAAgB,IAAXa,EAAe,CACnBT,GAAQQ,EACR,QACA,CAED,MAAME,EAAO,mBAAqBjB,EAAI,UACtCS,EAAQhB,KAAM,CAAEwB,EAAMF,EAASG,OAAQF,GAAU,WAEjDT,GAAQQ,EAASG,OAAQ,EAAGF,GAAUC,CACtC,CAEDV,GAAQM,CACR,CAID,MAAMM,EACL,qPAqBmC,KAHpCZ,EAAOvB,EAHPuB,GANAA,GANAA,GANAA,EAAOA,EAAKH,QAAS,2BAA4B,SAMrCA,QACX,IAAIrB,OAAQ,KAAOoC,EAAY,WAAY,KAC3C,WAIWf,QACX,IAAIrB,OAAQ,MAAQoC,EAAY,KAAM,KACtC,WAIWf,QAAS,WAAY,MAGD,CAAE,KAAM,2BAG9BD,QAAS,aAElBI,GADAA,EAAOA,EAAKH,QAAS,cAAe,YACxBA,QAAS,iBAAkB,eAOF,IAAjCG,EAAKJ,QAAS,eAGlBI,GADAA,GADAA,EAAOA,EAAKH,QAAS,sBAAuB,OAChCA,QAAS,iBAAkB,cAC3BA,QAAS,qCAAsC,QAOxB,IAA/BG,EAAKJ,QAAS,aAAoD,IAA9BI,EAAKJ,QAAS,YAGtDI,GADAA,GADAA,EAAOA,EAAKH,QAAS,yCAA0C,OACnDA,QAAS,oCAAqC,OAC9CA,QAAS,mCAAoC,QAIlB,IAAnCG,EAAKJ,QAAS,iBAElBI,GADAA,EAAOA,EAAKH,QAAS,yBAA0B,OACnCA,QAAS,oBAAqB,kBAO3C,MAAMgB,GAHNb,EAAOA,EAAKH,QAAS,SAAU,SAGZQ,MAAO,WAAYS,OAAQC,SAuF9C,OApFAf,EAAO,GAGPa,EAAMG,SAAWC,IAChBjB,GAAQ,MAAQiB,EAAUpB,QAAS,aAAc,IAAO,QAAxD,IAgCDG,GANAA,GAHAA,GADAA,GAHAA,GANAA,GANAA,GAHAA,EAAOA,EAAKH,QAAS,eAAgB,KAGzBA,QACX,oCACA,mBAIWA,QACX,IAAIrB,OAAQ,cAAgBoC,EAAY,kBAAmB,KAC3D,OAIWf,QAAS,oBAAqB,OAG9BA,QAAS,2BAA4B,sBACrCA,QAAS,uBAAwB,sBAGjCA,QACX,IAAIrB,OAAQ,cAAgBoC,EAAY,UAAW,KACnD,OAIWf,QACX,IAAIrB,OAAQ,OAASoC,EAAY,kBAAmB,KACpD,MAIIX,IAeJD,GALAA,GAHAA,GALAA,EAAOA,EAAKH,QAAS,8BAAgCd,GACpDA,EAAO,GAAIc,QAAS,MAAO,4BAIhBA,QAAS,eAAgB,WAGzBA,QAAS,oBAAoB,CAAEqB,EAAGC,IAC7CA,EAAID,EAAI,cAIGrB,QAAS,0BAA2B,OAcjDG,GAJAA,GANAA,EAAOA,EAAKH,QACX,IAAIrB,OAAQ,OAASoC,EAAY,oBAAqB,KACtD,OAIWf,QACX,+DACA,OAEWA,QAAS,YAAa,QAGlCK,EAAQc,SAAWI,IAClB,MAAQV,EAAMW,GAAaD,EAC3BpB,EAAOA,EAAKH,QAASa,EAAMW,EAA3B,KAIK,IAAMrB,EAAKJ,QAAS,yBACzBI,EAAOA,EAAKH,QAAS,uBAAwB,OAGvCG,CACP,CAkBM,SAASsB,EAASC,GACxB,MAAMC,EACL,uFACKC,EAAaD,EAAY,SACzBE,EAAaF,EAAY,OAEzBG,EAAW,GACjB,IAAIC,GAAqB,EACrBC,GAAa,EAEjB,OAAON,IAK6B,IAA/BA,EAAK3B,QAAS,aAAoD,IAA9B2B,EAAK3B,QAAS,YACtD2B,EAAOA,EAAK1B,QACX,wCACEd,IACD4C,EAASzC,KAAMH,GACR,qBAMuB,IAA5BwC,EAAK3B,QAAS,UAClBgC,GAAqB,EACrBL,EAAOA,EAAK1B,QAAS,8BAAgCqB,IAEpDA,GADAA,EAAIA,EAAErB,QAAS,uBAAwB,oBACjCA,QAAS,6BAA8B,oBACpCA,QAAS,SAAU,uBAKO,IAAhC0B,EAAK3B,QAAS,cAClBiC,GAAa,EACbN,EAAOA,EAAK1B,QAAS,mCAAqCqB,GAClDA,EACLrB,QAAS,eAAgB,kBACzBA,QAAS,YAAa,QA6DU,KAHpC0B,GANAA,GAJAA,GAHAA,GAJAA,GAHAA,GADAA,GATAA,GAHAA,GAHAA,GADAA,GAHAA,GAHAA,GANAA,GAJAA,EAAOA,EAAK1B,QACX,IAAIrB,OAAQ,UAAYiD,EAAa,SAAU,KAC/C,YAEW5B,QACX,IAAIrB,OAAQ,YAAciD,EAAa,iBAAkB,KACzD,WAIW5B,QAAS,4BAA6B,YAGtCA,QAAS,yBAA0B,gBAGnCA,QAAS,WAAY,KACrBA,QAAS,gBAAiB,SAG1BA,QAAS,mBAAoB,SAG7BA,QAAS,uBAAuB,CAAEiC,EAAGC,IAC3CA,IAAoC,IAA3BA,EAAMnC,QAAS,MACrB,OAGD,QAIIC,QAAS,WAAY,WACrBA,QAAS,cAAe,aAGxBA,QACX,yCACA,iCAEWA,QAAS,2BAA4B,yBAGrCA,QACX,IAAIrB,OAAQ,YAAckD,EAAa,qBAAsB,KAC7D,WAEW7B,QACX,IAAIrB,OAAQ,UAAYkD,EAAa,SAAU,KAC/C,YAIW7B,QAAS,uBAAwB,YAGnCD,QAAS,aAElB2B,GADAA,EAAOA,EAAK1B,QAAS,cAAe,cACxBA,QAAS,iBAAkB,iBAIR,IAA3B0B,EAAK3B,QAAS,SAClB2B,EAAOA,EAAK1B,QAAS,uBAAwB,oBAIV,IAA/B0B,EAAK3B,QAAS,aAClB2B,EAAOA,EAAK1B,QAAS,8BAAgCqB,GAC7CA,EAAErB,QAAS,WAAY,OAYhC0B,GADAA,GAHAA,GAHAA,EAAOA,EAAK1B,QAAS,UAAW,WAGpBA,QAAS,+BAAgC,SAGzCA,QAAS,OAAQ,KACjBA,QAAS,eAAgB,IAEhC+B,IACJL,EAAOA,EAAK1B,QAAS,mBAAoB,OAGrCgC,IACJN,EAAOA,EAAK1B,QAAS,uBAAwB,WAIzC8B,EAASvC,SACbmC,EAAOA,EAAK1B,QAAS,kBAAkB,IACP8B,EAASK,WAInCT,GArIC,EAsIR,E","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/./packages/autop/build-module/@wordpress/autop/src/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * The regular expression for an HTML element.\n *\n * @type {RegExp}\n */\nconst htmlSplitRegex = ( () => {\n\t/* eslint-disable no-multi-spaces */\n\tconst comments =\n\t\t'!' + // Start of comment, after the <.\n\t\t'(?:' + // Unroll the loop: Consume everything until --> is found.\n\t\t'-(?!->)' + // Dash not followed by end of comment.\n\t\t'[^\\\\-]*' + // Consume non-dashes.\n\t\t')*' + // Loop possessively.\n\t\t'(?:-->)?'; // End of comment. If not found, match all input.\n\n\tconst cdata =\n\t\t'!\\\\[CDATA\\\\[' + // Start of comment, after the <.\n\t\t'[^\\\\]]*' + // Consume non-].\n\t\t'(?:' + // Unroll the loop: Consume everything until ]]> is found.\n\t\t'](?!]>)' + // One ] not followed by end of comment.\n\t\t'[^\\\\]]*' + // Consume non-].\n\t\t')*?' + // Loop possessively.\n\t\t'(?:]]>)?'; // End of comment. If not found, match all input.\n\n\tconst escaped =\n\t\t'(?=' + // Is the element escaped?\n\t\t'!--' +\n\t\t'|' +\n\t\t'!\\\\[CDATA\\\\[' +\n\t\t')' +\n\t\t'((?=!-)' + // If yes, which type?\n\t\tcomments +\n\t\t'|' +\n\t\tcdata +\n\t\t')';\n\n\tconst regex =\n\t\t'(' + // Capture the entire match.\n\t\t'<' + // Find start of element.\n\t\t'(' + // Conditional expression follows.\n\t\tescaped + // Find end of escaped element.\n\t\t'|' + // ... else ...\n\t\t'[^>]*>?' + // Find end of normal element.\n\t\t')' +\n\t\t')';\n\n\treturn new RegExp( regex );\n\t/* eslint-enable no-multi-spaces */\n} )();\n\n/**\n * Separate HTML elements and comments from the text.\n *\n * @param {string} input The text which has to be formatted.\n *\n * @return {string[]} The formatted text.\n */\nfunction htmlSplit( input ) {\n\tconst parts = [];\n\tlet workingInput = input;\n\n\tlet match;\n\twhile ( ( match = workingInput.match( htmlSplitRegex ) ) ) {\n\t\t// The `match` result, when invoked on a RegExp with the `g` flag (`/foo/g`) will not include `index`.\n\t\t// If the `g` flag is omitted, `index` is included.\n\t\t// `htmlSplitRegex` does not have the `g` flag so we can assert it will have an index number.\n\t\t// Assert `match.index` is a number.\n\t\tconst index = /** @type {number} */ ( match.index );\n\n\t\tparts.push( workingInput.slice( 0, index ) );\n\t\tparts.push( match[ 0 ] );\n\t\tworkingInput = workingInput.slice( index + match[ 0 ].length );\n\t}\n\n\tif ( workingInput.length ) {\n\t\tparts.push( workingInput );\n\t}\n\n\treturn parts;\n}\n\n/**\n * Replace characters or phrases within HTML elements only.\n *\n * @param {string} haystack The text which has to be formatted.\n * @param {Record<string,string>} replacePairs In the form {from: 'to', …}.\n *\n * @return {string} The formatted text.\n */\nfunction replaceInHtmlTags( haystack, replacePairs ) {\n\t// Find all elements.\n\tconst textArr = htmlSplit( haystack );\n\tlet changed = false;\n\n\t// Extract all needles.\n\tconst needles = Object.keys( replacePairs );\n\n\t// Loop through delimiters (elements) only.\n\tfor ( let i = 1; i < textArr.length; i += 2 ) {\n\t\tfor ( let j = 0; j < needles.length; j++ ) {\n\t\t\tconst needle = needles[ j ];\n\t\t\tif ( -1 !== textArr[ i ].indexOf( needle ) ) {\n\t\t\t\ttextArr[ i ] = textArr[ i ].replace(\n\t\t\t\t\tnew RegExp( needle, 'g' ),\n\t\t\t\t\treplacePairs[ needle ]\n\t\t\t\t);\n\t\t\t\tchanged = true;\n\t\t\t\t// After one strtr() break out of the foreach loop and look at next element.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( changed ) {\n\t\thaystack = textArr.join( '' );\n\t}\n\n\treturn haystack;\n}\n\n/**\n * Replaces double line-breaks with paragraph elements.\n *\n * A group of regex replaces used to identify text formatted with newlines and\n * replace double line-breaks with HTML paragraph tags. The remaining line-\n * breaks after conversion become `<br />` tags, unless br is set to 'false'.\n *\n * @param {string} text The text which has to be formatted.\n * @param {boolean} br Optional. If set, will convert all remaining line-\n * breaks after paragraphing. Default true.\n *\n * @example\n *```js\n * import { autop } from '@wordpress/autop';\n * autop( 'my text' ); // \"<p>my text</p>\"\n * ```\n *\n * @return {string} Text which has been converted into paragraph tags.\n */\nexport function autop( text, br = true ) {\n\tconst preTags = [];\n\n\tif ( text.trim() === '' ) {\n\t\treturn '';\n\t}\n\n\t// Just to make things a little easier, pad the end.\n\ttext = text + '\\n';\n\n\t/*\n\t * Pre tags shouldn't be touched by autop.\n\t * Replace pre tags with placeholders and bring them back after autop.\n\t */\n\tif ( text.indexOf( '<pre' ) !== -1 ) {\n\t\tconst textParts = text.split( '</pre>' );\n\t\tconst lastText = textParts.pop();\n\t\ttext = '';\n\n\t\tfor ( let i = 0; i < textParts.length; i++ ) {\n\t\t\tconst textPart = textParts[ i ];\n\t\t\tconst start = textPart.indexOf( '<pre' );\n\n\t\t\t// Malformed html?\n\t\t\tif ( start === -1 ) {\n\t\t\t\ttext += textPart;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst name = '<pre wp-pre-tag-' + i + '></pre>';\n\t\t\tpreTags.push( [ name, textPart.substr( start ) + '</pre>' ] );\n\n\t\t\ttext += textPart.substr( 0, start ) + name;\n\t\t}\n\n\t\ttext += lastText;\n\t}\n\t// Change multiple <br>s into two line breaks, which will turn into paragraphs.\n\ttext = text.replace( /<br\\s*\\/?>\\s*<br\\s*\\/?>/g, '\\n\\n' );\n\n\tconst allBlocks =\n\t\t'(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)';\n\n\t// Add a double line break above block-level opening tags.\n\ttext = text.replace(\n\t\tnew RegExp( '(<' + allBlocks + '[\\\\s/>])', 'g' ),\n\t\t'\\n\\n$1'\n\t);\n\n\t// Add a double line break below block-level closing tags.\n\ttext = text.replace(\n\t\tnew RegExp( '(</' + allBlocks + '>)', 'g' ),\n\t\t'$1\\n\\n'\n\t);\n\n\t// Standardize newline characters to \"\\n\".\n\ttext = text.replace( /\\r\\n|\\r/g, '\\n' );\n\n\t// Find newlines in all elements and add placeholders.\n\ttext = replaceInHtmlTags( text, { '\\n': ' <!-- wpnl --> ' } );\n\n\t// Collapse line breaks before and after <option> elements so they don't get autop'd.\n\tif ( text.indexOf( '<option' ) !== -1 ) {\n\t\ttext = text.replace( /\\s*<option/g, '<option' );\n\t\ttext = text.replace( /<\\/option>\\s*/g, '</option>' );\n\t}\n\n\t/*\n\t * Collapse line breaks inside <object> elements, before <param> and <embed> elements\n\t * so they don't get autop'd.\n\t */\n\tif ( text.indexOf( '</object>' ) !== -1 ) {\n\t\ttext = text.replace( /(<object[^>]*>)\\s*/g, '$1' );\n\t\ttext = text.replace( /\\s*<\\/object>/g, '</object>' );\n\t\ttext = text.replace( /\\s*(<\\/?(?:param|embed)[^>]*>)\\s*/g, '$1' );\n\t}\n\n\t/*\n\t * Collapse line breaks inside <audio> and <video> elements,\n\t * before and after <source> and <track> elements.\n\t */\n\tif ( text.indexOf( '<source' ) !== -1 || text.indexOf( '<track' ) !== -1 ) {\n\t\ttext = text.replace( /([<\\[](?:audio|video)[^>\\]]*[>\\]])\\s*/g, '$1' );\n\t\ttext = text.replace( /\\s*([<\\[]\\/(?:audio|video)[>\\]])/g, '$1' );\n\t\ttext = text.replace( /\\s*(<(?:source|track)[^>]*>)\\s*/g, '$1' );\n\t}\n\n\t// Collapse line breaks before and after <figcaption> elements.\n\tif ( text.indexOf( '<figcaption' ) !== -1 ) {\n\t\ttext = text.replace( /\\s*(<figcaption[^>]*>)/, '$1' );\n\t\ttext = text.replace( /<\\/figcaption>\\s*/, '</figcaption>' );\n\t}\n\n\t// Remove more than two contiguous line breaks.\n\ttext = text.replace( /\\n\\n+/g, '\\n\\n' );\n\n\t// Split up the contents into an array of strings, separated by double line breaks.\n\tconst texts = text.split( /\\n\\s*\\n/ ).filter( Boolean );\n\n\t// Reset text prior to rebuilding.\n\ttext = '';\n\n\t// Rebuild the content as a string, wrapping every bit with a <p>.\n\ttexts.forEach( ( textPiece ) => {\n\t\ttext += '<p>' + textPiece.replace( /^\\n*|\\n*$/g, '' ) + '</p>\\n';\n\t} );\n\n\t// Under certain strange conditions it could create a P of entirely whitespace.\n\ttext = text.replace( /<p>\\s*<\\/p>/g, '' );\n\n\t// Add a closing <p> inside <div>, <address>, or <form> tag if missing.\n\ttext = text.replace(\n\t\t/<p>([^<]+)<\\/(div|address|form)>/g,\n\t\t'<p>$1</p></$2>'\n\t);\n\n\t// If an opening or closing block element tag is wrapped in a <p>, unwrap it.\n\ttext = text.replace(\n\t\tnew RegExp( '<p>\\\\s*(</?' + allBlocks + '[^>]*>)\\\\s*</p>', 'g' ),\n\t\t'$1'\n\t);\n\n\t// In some cases <li> may get wrapped in <p>, fix them.\n\ttext = text.replace( /<p>(<li.+?)<\\/p>/g, '$1' );\n\n\t// If a <blockquote> is wrapped with a <p>, move it inside the <blockquote>.\n\ttext = text.replace( /<p><blockquote([^>]*)>/gi, '<blockquote$1><p>' );\n\ttext = text.replace( /<\\/blockquote><\\/p>/g, '</p></blockquote>' );\n\n\t// If an opening or closing block element tag is preceded by an opening <p> tag, remove it.\n\ttext = text.replace(\n\t\tnew RegExp( '<p>\\\\s*(</?' + allBlocks + '[^>]*>)', 'g' ),\n\t\t'$1'\n\t);\n\n\t// If an opening or closing block element tag is followed by a closing <p> tag, remove it.\n\ttext = text.replace(\n\t\tnew RegExp( '(</?' + allBlocks + '[^>]*>)\\\\s*</p>', 'g' ),\n\t\t'$1'\n\t);\n\n\t// Optionally insert line breaks.\n\tif ( br ) {\n\t\t// Replace newlines that shouldn't be touched with a placeholder.\n\t\ttext = text.replace( /<(script|style).*?<\\/\\\\1>/g, ( match ) =>\n\t\t\tmatch[ 0 ].replace( /\\n/g, '<WPPreserveNewline />' )\n\t\t);\n\n\t\t// Normalize <br>\n\t\ttext = text.replace( /<br>|<br\\/>/g, '<br />' );\n\n\t\t// Replace any new line characters that aren't preceded by a <br /> with a <br />.\n\t\ttext = text.replace( /(<br \\/>)?\\s*\\n/g, ( a, b ) =>\n\t\t\tb ? a : '<br />\\n'\n\t\t);\n\n\t\t// Replace newline placeholders with newlines.\n\t\ttext = text.replace( /<WPPreserveNewline \\/>/g, '\\n' );\n\t}\n\n\t// If a <br /> tag is after an opening or closing block tag, remove it.\n\ttext = text.replace(\n\t\tnew RegExp( '(</?' + allBlocks + '[^>]*>)\\\\s*<br />', 'g' ),\n\t\t'$1'\n\t);\n\n\t// If a <br /> tag is before a subset of opening or closing block tags, remove it.\n\ttext = text.replace(\n\t\t/<br \\/>(\\s*<\\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,\n\t\t'$1'\n\t);\n\ttext = text.replace( /\\n<\\/p>$/g, '</p>' );\n\n\t// Replace placeholder <pre> tags with their original content.\n\tpreTags.forEach( ( preTag ) => {\n\t\tconst [ name, original ] = preTag;\n\t\ttext = text.replace( name, original );\n\t} );\n\n\t// Restore newlines in all elements.\n\tif ( -1 !== text.indexOf( '<!-- wpnl -->' ) ) {\n\t\ttext = text.replace( /\\s?<!-- wpnl -->\\s?/g, '\\n' );\n\t}\n\n\treturn text;\n}\n\n/**\n * Replaces `<p>` tags with two line breaks. \"Opposite\" of autop().\n *\n * Replaces `<p>` tags with two line breaks except where the `<p>` has attributes.\n * Unifies whitespace. Indents `<li>`, `<dt>` and `<dd>` for better readability.\n *\n * @param {string} html The content from the editor.\n *\n * @example\n * ```js\n * import { removep } from '@wordpress/autop';\n * removep( '<p>my text</p>' ); // \"my text\"\n * ```\n *\n * @return {string} The content with stripped paragraph tags.\n */\nexport function removep( html ) {\n\tconst blocklist =\n\t\t'blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure';\n\tconst blocklist1 = blocklist + '|div|p';\n\tconst blocklist2 = blocklist + '|pre';\n\t/** @type {string[]} */\n\tconst preserve = [];\n\tlet preserveLinebreaks = false;\n\tlet preserveBr = false;\n\n\tif ( ! html ) {\n\t\treturn '';\n\t}\n\n\t// Protect script and style tags.\n\tif ( html.indexOf( '<script' ) !== -1 || html.indexOf( '<style' ) !== -1 ) {\n\t\thtml = html.replace(\n\t\t\t/<(script|style)[^>]*>[\\s\\S]*?<\\/\\1>/g,\n\t\t\t( match ) => {\n\t\t\t\tpreserve.push( match );\n\t\t\t\treturn '<wp-preserve>';\n\t\t\t}\n\t\t);\n\t}\n\n\t// Protect pre tags.\n\tif ( html.indexOf( '<pre' ) !== -1 ) {\n\t\tpreserveLinebreaks = true;\n\t\thtml = html.replace( /<pre[^>]*>[\\s\\S]+?<\\/pre>/g, ( a ) => {\n\t\t\ta = a.replace( /<br ?\\/?>(\\r\\n|\\n)?/g, '<wp-line-break>' );\n\t\t\ta = a.replace( /<\\/?p( [^>]*)?>(\\r\\n|\\n)?/g, '<wp-line-break>' );\n\t\t\treturn a.replace( /\\r?\\n/g, '<wp-line-break>' );\n\t\t} );\n\t}\n\n\t// Remove line breaks but keep <br> tags inside image captions.\n\tif ( html.indexOf( '[caption' ) !== -1 ) {\n\t\tpreserveBr = true;\n\t\thtml = html.replace( /\\[caption[\\s\\S]+?\\[\\/caption\\]/g, ( a ) => {\n\t\t\treturn a\n\t\t\t\t.replace( /<br([^>]*)>/g, '<wp-temp-br$1>' )\n\t\t\t\t.replace( /[\\r\\n\\t]+/, '' );\n\t\t} );\n\t}\n\n\t// Normalize white space characters before and after block tags.\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*</(' + blocklist1 + ')>\\\\s*', 'g' ),\n\t\t'</$1>\\n'\n\t);\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*<((?:' + blocklist1 + ')(?: [^>]*)?)>', 'g' ),\n\t\t'\\n<$1>'\n\t);\n\n\t// Mark </p> if it has any attributes.\n\thtml = html.replace( /(<p [^>]+>[\\s\\S]*?)<\\/p>/g, '$1</p#>' );\n\n\t// Preserve the first <p> inside a <div>.\n\thtml = html.replace( /<div( [^>]*)?>\\s*<p>/gi, '<div$1>\\n\\n' );\n\n\t// Remove paragraph tags.\n\thtml = html.replace( /\\s*<p>/gi, '' );\n\thtml = html.replace( /\\s*<\\/p>\\s*/gi, '\\n\\n' );\n\n\t// Normalize white space chars and remove multiple line breaks.\n\thtml = html.replace( /\\n[\\s\\u00a0]+\\n/g, '\\n\\n' );\n\n\t// Replace <br> tags with line breaks.\n\thtml = html.replace( /(\\s*)<br ?\\/?>\\s*/gi, ( _, space ) => {\n\t\tif ( space && space.indexOf( '\\n' ) !== -1 ) {\n\t\t\treturn '\\n\\n';\n\t\t}\n\n\t\treturn '\\n';\n\t} );\n\n\t// Fix line breaks around <div>.\n\thtml = html.replace( /\\s*<div/g, '\\n<div' );\n\thtml = html.replace( /<\\/div>\\s*/g, '</div>\\n' );\n\n\t// Fix line breaks around caption shortcodes.\n\thtml = html.replace(\n\t\t/\\s*\\[caption([^\\[]+)\\[\\/caption\\]\\s*/gi,\n\t\t'\\n\\n[caption$1[/caption]\\n\\n'\n\t);\n\thtml = html.replace( /caption\\]\\n\\n+\\[caption/g, 'caption]\\n\\n[caption' );\n\n\t// Pad block elements tags with a line break.\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*<((?:' + blocklist2 + ')(?: [^>]*)?)\\\\s*>', 'g' ),\n\t\t'\\n<$1>'\n\t);\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*</(' + blocklist2 + ')>\\\\s*', 'g' ),\n\t\t'</$1>\\n'\n\t);\n\n\t// Indent <li>, <dt> and <dd> tags.\n\thtml = html.replace( /<((li|dt|dd)[^>]*)>/g, ' \\t<$1>' );\n\n\t// Fix line breaks around <select> and <option>.\n\tif ( html.indexOf( '<option' ) !== -1 ) {\n\t\thtml = html.replace( /\\s*<option/g, '\\n<option' );\n\t\thtml = html.replace( /\\s*<\\/select>/g, '\\n</select>' );\n\t}\n\n\t// Pad <hr> with two line breaks.\n\tif ( html.indexOf( '<hr' ) !== -1 ) {\n\t\thtml = html.replace( /\\s*<hr( [^>]*)?>\\s*/g, '\\n\\n<hr$1>\\n\\n' );\n\t}\n\n\t// Remove line breaks in <object> tags.\n\tif ( html.indexOf( '<object' ) !== -1 ) {\n\t\thtml = html.replace( /<object[\\s\\S]+?<\\/object>/g, ( a ) => {\n\t\t\treturn a.replace( /[\\r\\n]+/g, '' );\n\t\t} );\n\t}\n\n\t// Unmark special paragraph closing tags.\n\thtml = html.replace( /<\\/p#>/g, '</p>\\n' );\n\n\t// Pad remaining <p> tags whit a line break.\n\thtml = html.replace( /\\s*(<p [^>]+>[\\s\\S]*?<\\/p>)/g, '\\n$1' );\n\n\t// Trim.\n\thtml = html.replace( /^\\s+/, '' );\n\thtml = html.replace( /[\\s\\u00a0]+$/, '' );\n\n\tif ( preserveLinebreaks ) {\n\t\thtml = html.replace( /<wp-line-break>/g, '\\n' );\n\t}\n\n\tif ( preserveBr ) {\n\t\thtml = html.replace( /<wp-temp-br([^>]*)>/g, '<br$1>' );\n\t}\n\n\t// Restore preserved tags.\n\tif ( preserve.length ) {\n\t\thtml = html.replace( /<wp-preserve>/g, () => {\n\t\t\treturn /** @type {string} */ ( preserve.shift() );\n\t\t} );\n\t}\n\n\treturn html;\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","htmlSplitRegex","RegExp","replaceInHtmlTags","haystack","replacePairs","textArr","input","parts","match","workingInput","index","push","slice","length","htmlSplit","changed","needles","keys","i","j","needle","indexOf","replace","join","autop","text","br","preTags","trim","textParts","split","lastText","pop","textPart","start","name","substr","allBlocks","texts","filter","Boolean","forEach","textPiece","a","b","preTag","original","removep","html","blocklist","blocklist1","blocklist2","preserve","preserveLinebreaks","preserveBr","_","space","shift"],"sourceRoot":""}
|
1 |
+
{"version":3,"file":"./build/autop/index.min.js","mappings":"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","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/./packages/autop/build-module/@wordpress/autop/src/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * The regular expression for an HTML element.\n *\n * @type {RegExp}\n */\nconst htmlSplitRegex = ( () => {\n\t/* eslint-disable no-multi-spaces */\n\tconst comments =\n\t\t'!' + // Start of comment, after the <.\n\t\t'(?:' + // Unroll the loop: Consume everything until --> is found.\n\t\t'-(?!->)' + // Dash not followed by end of comment.\n\t\t'[^\\\\-]*' + // Consume non-dashes.\n\t\t')*' + // Loop possessively.\n\t\t'(?:-->)?'; // End of comment. If not found, match all input.\n\n\tconst cdata =\n\t\t'!\\\\[CDATA\\\\[' + // Start of comment, after the <.\n\t\t'[^\\\\]]*' + // Consume non-].\n\t\t'(?:' + // Unroll the loop: Consume everything until ]]> is found.\n\t\t'](?!]>)' + // One ] not followed by end of comment.\n\t\t'[^\\\\]]*' + // Consume non-].\n\t\t')*?' + // Loop possessively.\n\t\t'(?:]]>)?'; // End of comment. If not found, match all input.\n\n\tconst escaped =\n\t\t'(?=' + // Is the element escaped?\n\t\t'!--' +\n\t\t'|' +\n\t\t'!\\\\[CDATA\\\\[' +\n\t\t')' +\n\t\t'((?=!-)' + // If yes, which type?\n\t\tcomments +\n\t\t'|' +\n\t\tcdata +\n\t\t')';\n\n\tconst regex =\n\t\t'(' + // Capture the entire match.\n\t\t'<' + // Find start of element.\n\t\t'(' + // Conditional expression follows.\n\t\tescaped + // Find end of escaped element.\n\t\t'|' + // ... else ...\n\t\t'[^>]*>?' + // Find end of normal element.\n\t\t')' +\n\t\t')';\n\n\treturn new RegExp( regex );\n\t/* eslint-enable no-multi-spaces */\n} )();\n\n/**\n * Separate HTML elements and comments from the text.\n *\n * @param {string} input The text which has to be formatted.\n *\n * @return {string[]} The formatted text.\n */\nfunction htmlSplit( input ) {\n\tconst parts = [];\n\tlet workingInput = input;\n\n\tlet match;\n\twhile ( ( match = workingInput.match( htmlSplitRegex ) ) ) {\n\t\t// The `match` result, when invoked on a RegExp with the `g` flag (`/foo/g`) will not include `index`.\n\t\t// If the `g` flag is omitted, `index` is included.\n\t\t// `htmlSplitRegex` does not have the `g` flag so we can assert it will have an index number.\n\t\t// Assert `match.index` is a number.\n\t\tconst index = /** @type {number} */ ( match.index );\n\n\t\tparts.push( workingInput.slice( 0, index ) );\n\t\tparts.push( match[ 0 ] );\n\t\tworkingInput = workingInput.slice( index + match[ 0 ].length );\n\t}\n\n\tif ( workingInput.length ) {\n\t\tparts.push( workingInput );\n\t}\n\n\treturn parts;\n}\n\n/**\n * Replace characters or phrases within HTML elements only.\n *\n * @param {string} haystack The text which has to be formatted.\n * @param {Record<string,string>} replacePairs In the form {from: 'to', …}.\n *\n * @return {string} The formatted text.\n */\nfunction replaceInHtmlTags( haystack, replacePairs ) {\n\t// Find all elements.\n\tconst textArr = htmlSplit( haystack );\n\tlet changed = false;\n\n\t// Extract all needles.\n\tconst needles = Object.keys( replacePairs );\n\n\t// Loop through delimiters (elements) only.\n\tfor ( let i = 1; i < textArr.length; i += 2 ) {\n\t\tfor ( let j = 0; j < needles.length; j++ ) {\n\t\t\tconst needle = needles[ j ];\n\t\t\tif ( -1 !== textArr[ i ].indexOf( needle ) ) {\n\t\t\t\ttextArr[ i ] = textArr[ i ].replace(\n\t\t\t\t\tnew RegExp( needle, 'g' ),\n\t\t\t\t\treplacePairs[ needle ]\n\t\t\t\t);\n\t\t\t\tchanged = true;\n\t\t\t\t// After one strtr() break out of the foreach loop and look at next element.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( changed ) {\n\t\thaystack = textArr.join( '' );\n\t}\n\n\treturn haystack;\n}\n\n/**\n * Replaces double line-breaks with paragraph elements.\n *\n * A group of regex replaces used to identify text formatted with newlines and\n * replace double line-breaks with HTML paragraph tags. The remaining line-\n * breaks after conversion become `<br />` tags, unless br is set to 'false'.\n *\n * @param {string} text The text which has to be formatted.\n * @param {boolean} br Optional. If set, will convert all remaining line-\n * breaks after paragraphing. Default true.\n *\n * @example\n *```js\n * import { autop } from '@wordpress/autop';\n * autop( 'my text' ); // \"<p>my text</p>\"\n * ```\n *\n * @return {string} Text which has been converted into paragraph tags.\n */\nexport function autop( text, br = true ) {\n\tconst preTags = [];\n\n\tif ( text.trim() === '' ) {\n\t\treturn '';\n\t}\n\n\t// Just to make things a little easier, pad the end.\n\ttext = text + '\\n';\n\n\t/*\n\t * Pre tags shouldn't be touched by autop.\n\t * Replace pre tags with placeholders and bring them back after autop.\n\t */\n\tif ( text.indexOf( '<pre' ) !== -1 ) {\n\t\tconst textParts = text.split( '</pre>' );\n\t\tconst lastText = textParts.pop();\n\t\ttext = '';\n\n\t\tfor ( let i = 0; i < textParts.length; i++ ) {\n\t\t\tconst textPart = textParts[ i ];\n\t\t\tconst start = textPart.indexOf( '<pre' );\n\n\t\t\t// Malformed html?\n\t\t\tif ( start === -1 ) {\n\t\t\t\ttext += textPart;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst name = '<pre wp-pre-tag-' + i + '></pre>';\n\t\t\tpreTags.push( [ name, textPart.substr( start ) + '</pre>' ] );\n\n\t\t\ttext += textPart.substr( 0, start ) + name;\n\t\t}\n\n\t\ttext += lastText;\n\t}\n\t// Change multiple <br>s into two line breaks, which will turn into paragraphs.\n\ttext = text.replace( /<br\\s*\\/?>\\s*<br\\s*\\/?>/g, '\\n\\n' );\n\n\tconst allBlocks =\n\t\t'(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)';\n\n\t// Add a double line break above block-level opening tags.\n\ttext = text.replace(\n\t\tnew RegExp( '(<' + allBlocks + '[\\\\s/>])', 'g' ),\n\t\t'\\n\\n$1'\n\t);\n\n\t// Add a double line break below block-level closing tags.\n\ttext = text.replace(\n\t\tnew RegExp( '(</' + allBlocks + '>)', 'g' ),\n\t\t'$1\\n\\n'\n\t);\n\n\t// Standardize newline characters to \"\\n\".\n\ttext = text.replace( /\\r\\n|\\r/g, '\\n' );\n\n\t// Find newlines in all elements and add placeholders.\n\ttext = replaceInHtmlTags( text, { '\\n': ' <!-- wpnl --> ' } );\n\n\t// Collapse line breaks before and after <option> elements so they don't get autop'd.\n\tif ( text.indexOf( '<option' ) !== -1 ) {\n\t\ttext = text.replace( /\\s*<option/g, '<option' );\n\t\ttext = text.replace( /<\\/option>\\s*/g, '</option>' );\n\t}\n\n\t/*\n\t * Collapse line breaks inside <object> elements, before <param> and <embed> elements\n\t * so they don't get autop'd.\n\t */\n\tif ( text.indexOf( '</object>' ) !== -1 ) {\n\t\ttext = text.replace( /(<object[^>]*>)\\s*/g, '$1' );\n\t\ttext = text.replace( /\\s*<\\/object>/g, '</object>' );\n\t\ttext = text.replace( /\\s*(<\\/?(?:param|embed)[^>]*>)\\s*/g, '$1' );\n\t}\n\n\t/*\n\t * Collapse line breaks inside <audio> and <video> elements,\n\t * before and after <source> and <track> elements.\n\t */\n\tif ( text.indexOf( '<source' ) !== -1 || text.indexOf( '<track' ) !== -1 ) {\n\t\ttext = text.replace( /([<\\[](?:audio|video)[^>\\]]*[>\\]])\\s*/g, '$1' );\n\t\ttext = text.replace( /\\s*([<\\[]\\/(?:audio|video)[>\\]])/g, '$1' );\n\t\ttext = text.replace( /\\s*(<(?:source|track)[^>]*>)\\s*/g, '$1' );\n\t}\n\n\t// Collapse line breaks before and after <figcaption> elements.\n\tif ( text.indexOf( '<figcaption' ) !== -1 ) {\n\t\ttext = text.replace( /\\s*(<figcaption[^>]*>)/, '$1' );\n\t\ttext = text.replace( /<\\/figcaption>\\s*/, '</figcaption>' );\n\t}\n\n\t// Remove more than two contiguous line breaks.\n\ttext = text.replace( /\\n\\n+/g, '\\n\\n' );\n\n\t// Split up the contents into an array of strings, separated by double line breaks.\n\tconst texts = text.split( /\\n\\s*\\n/ ).filter( Boolean );\n\n\t// Reset text prior to rebuilding.\n\ttext = '';\n\n\t// Rebuild the content as a string, wrapping every bit with a <p>.\n\ttexts.forEach( ( textPiece ) => {\n\t\ttext += '<p>' + textPiece.replace( /^\\n*|\\n*$/g, '' ) + '</p>\\n';\n\t} );\n\n\t// Under certain strange conditions it could create a P of entirely whitespace.\n\ttext = text.replace( /<p>\\s*<\\/p>/g, '' );\n\n\t// Add a closing <p> inside <div>, <address>, or <form> tag if missing.\n\ttext = text.replace(\n\t\t/<p>([^<]+)<\\/(div|address|form)>/g,\n\t\t'<p>$1</p></$2>'\n\t);\n\n\t// If an opening or closing block element tag is wrapped in a <p>, unwrap it.\n\ttext = text.replace(\n\t\tnew RegExp( '<p>\\\\s*(</?' + allBlocks + '[^>]*>)\\\\s*</p>', 'g' ),\n\t\t'$1'\n\t);\n\n\t// In some cases <li> may get wrapped in <p>, fix them.\n\ttext = text.replace( /<p>(<li.+?)<\\/p>/g, '$1' );\n\n\t// If a <blockquote> is wrapped with a <p>, move it inside the <blockquote>.\n\ttext = text.replace( /<p><blockquote([^>]*)>/gi, '<blockquote$1><p>' );\n\ttext = text.replace( /<\\/blockquote><\\/p>/g, '</p></blockquote>' );\n\n\t// If an opening or closing block element tag is preceded by an opening <p> tag, remove it.\n\ttext = text.replace(\n\t\tnew RegExp( '<p>\\\\s*(</?' + allBlocks + '[^>]*>)', 'g' ),\n\t\t'$1'\n\t);\n\n\t// If an opening or closing block element tag is followed by a closing <p> tag, remove it.\n\ttext = text.replace(\n\t\tnew RegExp( '(</?' + allBlocks + '[^>]*>)\\\\s*</p>', 'g' ),\n\t\t'$1'\n\t);\n\n\t// Optionally insert line breaks.\n\tif ( br ) {\n\t\t// Replace newlines that shouldn't be touched with a placeholder.\n\t\ttext = text.replace( /<(script|style).*?<\\/\\\\1>/g, ( match ) =>\n\t\t\tmatch[ 0 ].replace( /\\n/g, '<WPPreserveNewline />' )\n\t\t);\n\n\t\t// Normalize <br>\n\t\ttext = text.replace( /<br>|<br\\/>/g, '<br />' );\n\n\t\t// Replace any new line characters that aren't preceded by a <br /> with a <br />.\n\t\ttext = text.replace( /(<br \\/>)?\\s*\\n/g, ( a, b ) =>\n\t\t\tb ? a : '<br />\\n'\n\t\t);\n\n\t\t// Replace newline placeholders with newlines.\n\t\ttext = text.replace( /<WPPreserveNewline \\/>/g, '\\n' );\n\t}\n\n\t// If a <br /> tag is after an opening or closing block tag, remove it.\n\ttext = text.replace(\n\t\tnew RegExp( '(</?' + allBlocks + '[^>]*>)\\\\s*<br />', 'g' ),\n\t\t'$1'\n\t);\n\n\t// If a <br /> tag is before a subset of opening or closing block tags, remove it.\n\ttext = text.replace(\n\t\t/<br \\/>(\\s*<\\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,\n\t\t'$1'\n\t);\n\ttext = text.replace( /\\n<\\/p>$/g, '</p>' );\n\n\t// Replace placeholder <pre> tags with their original content.\n\tpreTags.forEach( ( preTag ) => {\n\t\tconst [ name, original ] = preTag;\n\t\ttext = text.replace( name, original );\n\t} );\n\n\t// Restore newlines in all elements.\n\tif ( -1 !== text.indexOf( '<!-- wpnl -->' ) ) {\n\t\ttext = text.replace( /\\s?<!-- wpnl -->\\s?/g, '\\n' );\n\t}\n\n\treturn text;\n}\n\n/**\n * Replaces `<p>` tags with two line breaks. \"Opposite\" of autop().\n *\n * Replaces `<p>` tags with two line breaks except where the `<p>` has attributes.\n * Unifies whitespace. Indents `<li>`, `<dt>` and `<dd>` for better readability.\n *\n * @param {string} html The content from the editor.\n *\n * @example\n * ```js\n * import { removep } from '@wordpress/autop';\n * removep( '<p>my text</p>' ); // \"my text\"\n * ```\n *\n * @return {string} The content with stripped paragraph tags.\n */\nexport function removep( html ) {\n\tconst blocklist =\n\t\t'blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure';\n\tconst blocklist1 = blocklist + '|div|p';\n\tconst blocklist2 = blocklist + '|pre';\n\t/** @type {string[]} */\n\tconst preserve = [];\n\tlet preserveLinebreaks = false;\n\tlet preserveBr = false;\n\n\tif ( ! html ) {\n\t\treturn '';\n\t}\n\n\t// Protect script and style tags.\n\tif ( html.indexOf( '<script' ) !== -1 || html.indexOf( '<style' ) !== -1 ) {\n\t\thtml = html.replace(\n\t\t\t/<(script|style)[^>]*>[\\s\\S]*?<\\/\\1>/g,\n\t\t\t( match ) => {\n\t\t\t\tpreserve.push( match );\n\t\t\t\treturn '<wp-preserve>';\n\t\t\t}\n\t\t);\n\t}\n\n\t// Protect pre tags.\n\tif ( html.indexOf( '<pre' ) !== -1 ) {\n\t\tpreserveLinebreaks = true;\n\t\thtml = html.replace( /<pre[^>]*>[\\s\\S]+?<\\/pre>/g, ( a ) => {\n\t\t\ta = a.replace( /<br ?\\/?>(\\r\\n|\\n)?/g, '<wp-line-break>' );\n\t\t\ta = a.replace( /<\\/?p( [^>]*)?>(\\r\\n|\\n)?/g, '<wp-line-break>' );\n\t\t\treturn a.replace( /\\r?\\n/g, '<wp-line-break>' );\n\t\t} );\n\t}\n\n\t// Remove line breaks but keep <br> tags inside image captions.\n\tif ( html.indexOf( '[caption' ) !== -1 ) {\n\t\tpreserveBr = true;\n\t\thtml = html.replace( /\\[caption[\\s\\S]+?\\[\\/caption\\]/g, ( a ) => {\n\t\t\treturn a\n\t\t\t\t.replace( /<br([^>]*)>/g, '<wp-temp-br$1>' )\n\t\t\t\t.replace( /[\\r\\n\\t]+/, '' );\n\t\t} );\n\t}\n\n\t// Normalize white space characters before and after block tags.\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*</(' + blocklist1 + ')>\\\\s*', 'g' ),\n\t\t'</$1>\\n'\n\t);\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*<((?:' + blocklist1 + ')(?: [^>]*)?)>', 'g' ),\n\t\t'\\n<$1>'\n\t);\n\n\t// Mark </p> if it has any attributes.\n\thtml = html.replace( /(<p [^>]+>[\\s\\S]*?)<\\/p>/g, '$1</p#>' );\n\n\t// Preserve the first <p> inside a <div>.\n\thtml = html.replace( /<div( [^>]*)?>\\s*<p>/gi, '<div$1>\\n\\n' );\n\n\t// Remove paragraph tags.\n\thtml = html.replace( /\\s*<p>/gi, '' );\n\thtml = html.replace( /\\s*<\\/p>\\s*/gi, '\\n\\n' );\n\n\t// Normalize white space chars and remove multiple line breaks.\n\thtml = html.replace( /\\n[\\s\\u00a0]+\\n/g, '\\n\\n' );\n\n\t// Replace <br> tags with line breaks.\n\thtml = html.replace( /(\\s*)<br ?\\/?>\\s*/gi, ( _, space ) => {\n\t\tif ( space && space.indexOf( '\\n' ) !== -1 ) {\n\t\t\treturn '\\n\\n';\n\t\t}\n\n\t\treturn '\\n';\n\t} );\n\n\t// Fix line breaks around <div>.\n\thtml = html.replace( /\\s*<div/g, '\\n<div' );\n\thtml = html.replace( /<\\/div>\\s*/g, '</div>\\n' );\n\n\t// Fix line breaks around caption shortcodes.\n\thtml = html.replace(\n\t\t/\\s*\\[caption([^\\[]+)\\[\\/caption\\]\\s*/gi,\n\t\t'\\n\\n[caption$1[/caption]\\n\\n'\n\t);\n\thtml = html.replace( /caption\\]\\n\\n+\\[caption/g, 'caption]\\n\\n[caption' );\n\n\t// Pad block elements tags with a line break.\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*<((?:' + blocklist2 + ')(?: [^>]*)?)\\\\s*>', 'g' ),\n\t\t'\\n<$1>'\n\t);\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*</(' + blocklist2 + ')>\\\\s*', 'g' ),\n\t\t'</$1>\\n'\n\t);\n\n\t// Indent <li>, <dt> and <dd> tags.\n\thtml = html.replace( /<((li|dt|dd)[^>]*)>/g, ' \\t<$1>' );\n\n\t// Fix line breaks around <select> and <option>.\n\tif ( html.indexOf( '<option' ) !== -1 ) {\n\t\thtml = html.replace( /\\s*<option/g, '\\n<option' );\n\t\thtml = html.replace( /\\s*<\\/select>/g, '\\n</select>' );\n\t}\n\n\t// Pad <hr> with two line breaks.\n\tif ( html.indexOf( '<hr' ) !== -1 ) {\n\t\thtml = html.replace( /\\s*<hr( [^>]*)?>\\s*/g, '\\n\\n<hr$1>\\n\\n' );\n\t}\n\n\t// Remove line breaks in <object> tags.\n\tif ( html.indexOf( '<object' ) !== -1 ) {\n\t\thtml = html.replace( /<object[\\s\\S]+?<\\/object>/g, ( a ) => {\n\t\t\treturn a.replace( /[\\r\\n]+/g, '' );\n\t\t} );\n\t}\n\n\t// Unmark special paragraph closing tags.\n\thtml = html.replace( /<\\/p#>/g, '</p>\\n' );\n\n\t// Pad remaining <p> tags whit a line break.\n\thtml = html.replace( /\\s*(<p [^>]+>[\\s\\S]*?<\\/p>)/g, '\\n$1' );\n\n\t// Trim.\n\thtml = html.replace( /^\\s+/, '' );\n\thtml = html.replace( /[\\s\\u00a0]+$/, '' );\n\n\tif ( preserveLinebreaks ) {\n\t\thtml = html.replace( /<wp-line-break>/g, '\\n' );\n\t}\n\n\tif ( preserveBr ) {\n\t\thtml = html.replace( /<wp-temp-br([^>]*)>/g, '<br$1>' );\n\t}\n\n\t// Restore preserved tags.\n\tif ( preserve.length ) {\n\t\thtml = html.replace( /<wp-preserve>/g, () => {\n\t\t\treturn /** @type {string} */ ( preserve.shift() );\n\t\t} );\n\t}\n\n\treturn html;\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","htmlSplitRegex","RegExp","replaceInHtmlTags","haystack","replacePairs","textArr","input","parts","match","workingInput","index","push","slice","length","htmlSplit","changed","needles","keys","i","j","needle","indexOf","replace","join","autop","text","br","preTags","trim","textParts","split","lastText","pop","textPart","start","name","substr","allBlocks","texts","filter","Boolean","forEach","textPiece","a","b","preTag","original","removep","html","blocklist","blocklist1","blocklist2","preserve","preserveLinebreaks","preserveBr","_","space","shift"],"sourceRoot":""}
|
build/blob/index.js
CHANGED
@@ -1,46 +1,46 @@
|
|
1 |
-
/******/ (()
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/define property getters */
|
8 |
-
/******/ (
|
9 |
/******/ // define getter functions for harmony exports
|
10 |
-
/******/ __webpack_require__.d = (exports, definition)
|
11 |
/******/ for(var key in definition) {
|
12 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14 |
/******/ }
|
15 |
/******/ }
|
16 |
/******/ };
|
17 |
-
/******/ }
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20 |
-
/******/ (
|
21 |
-
/******/ __webpack_require__.o = (obj, prop)
|
22 |
-
/******/ }
|
23 |
/******/
|
24 |
/******/ /* webpack/runtime/make namespace object */
|
25 |
-
/******/ (
|
26 |
/******/ // define __esModule on exports
|
27 |
-
/******/ __webpack_require__.r = (exports)
|
28 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
29 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
30 |
/******/ }
|
31 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
32 |
/******/ };
|
33 |
-
/******/ }
|
34 |
/******/
|
35 |
/************************************************************************/
|
36 |
var __webpack_exports__ = {};
|
37 |
__webpack_require__.r(__webpack_exports__);
|
38 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39 |
-
/* harmony export */ "createBlobURL": ()
|
40 |
-
/* harmony export */ "getBlobByURL": ()
|
41 |
-
/* harmony export */ "getBlobTypeByURL": ()
|
42 |
-
/* harmony export */ "revokeBlobURL": ()
|
43 |
-
/* harmony export */ "isBlobURL": ()
|
44 |
/* harmony export */ });
|
45 |
/**
|
46 |
* Browser dependencies
|
1 |
+
/******/ (function() { // webpackBootstrap
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/define property getters */
|
8 |
+
/******/ !function() {
|
9 |
/******/ // define getter functions for harmony exports
|
10 |
+
/******/ __webpack_require__.d = function(exports, definition) {
|
11 |
/******/ for(var key in definition) {
|
12 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14 |
/******/ }
|
15 |
/******/ }
|
16 |
/******/ };
|
17 |
+
/******/ }();
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20 |
+
/******/ !function() {
|
21 |
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
22 |
+
/******/ }();
|
23 |
/******/
|
24 |
/******/ /* webpack/runtime/make namespace object */
|
25 |
+
/******/ !function() {
|
26 |
/******/ // define __esModule on exports
|
27 |
+
/******/ __webpack_require__.r = function(exports) {
|
28 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
29 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
30 |
/******/ }
|
31 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
32 |
/******/ };
|
33 |
+
/******/ }();
|
34 |
/******/
|
35 |
/************************************************************************/
|
36 |
var __webpack_exports__ = {};
|
37 |
__webpack_require__.r(__webpack_exports__);
|
38 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39 |
+
/* harmony export */ "createBlobURL": function() { return /* binding */ createBlobURL; },
|
40 |
+
/* harmony export */ "getBlobByURL": function() { return /* binding */ getBlobByURL; },
|
41 |
+
/* harmony export */ "getBlobTypeByURL": function() { return /* binding */ getBlobTypeByURL; },
|
42 |
+
/* harmony export */ "revokeBlobURL": function() { return /* binding */ revokeBlobURL; },
|
43 |
+
/* harmony export */ "isBlobURL": function() { return /* binding */ isBlobURL; }
|
44 |
/* harmony export */ });
|
45 |
/**
|
46 |
* Browser dependencies
|
build/blob/index.min.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '3993472dce14defb304e');
|
build/blob/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
(
|
2 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
!function(){"use strict";var e={d:function(n,t){for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{createBlobURL:function(){return u},getBlobByURL:function(){return i},getBlobTypeByURL:function(){return c},revokeBlobURL:function(){return f},isBlobURL:function(){return l}});const{createObjectURL:t,revokeObjectURL:o}=window.URL,r={};function u(e){const n=t(e);return r[n]=e,n}function i(e){return r[e]}function c(e){var n;return null===(n=i(e))||void 0===n?void 0:n.type.split("/")[0]}function f(e){r[e]&&o(e),delete r[e]}function l(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}(window.wp=window.wp||{}).blob=n}();
|
2 |
//# sourceMappingURL=index.min.js.map
|
build/blob/index.min.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"./build/blob/index.min.js","mappings":"
|
1 |
+
{"version":3,"file":"./build/blob/index.min.js","mappings":"yBACA,IAAIA,EAAsB,CCA1BA,EAAwB,SAASC,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,ECPAH,EAAwB,SAASS,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,ECCtGV,EAAwB,SAASC,GACX,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GACvD,G,kMCHA,MAAM,gBAAEC,EAAF,gBAAmBC,GAAoBC,OAAOC,IAK9CC,EAAQ,CAAC,EASR,SAASC,EAAeC,GAC9B,MAAMC,EAAMP,EAAiBM,GAI7B,OAFAF,EAAOG,GAAQD,EAERC,CACP,CAWM,SAASC,EAAcD,GAC7B,OAAOH,EAAOG,EACd,CAWM,SAASE,EAAkBF,GAAM,MACvC,iBAAOC,EAAcD,UAArB,aAAO,EAAqBG,KAAKC,MAAO,KAAO,EAC/C,CAOM,SAASC,EAAeL,GACzBH,EAAOG,IACXN,EAAiBM,UAGXH,EAAOG,EACd,CASM,SAASM,EAAWN,GAC1B,SAAOA,IAASA,EAAIO,UAGc,IAA3BP,EAAIO,QAAS,QACpB,E","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/./packages/blob/build-module/@wordpress/blob/src/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Browser dependencies\n */\nconst { createObjectURL, revokeObjectURL } = window.URL;\n\n/**\n * @type {Record<string, File|undefined>}\n */\nconst cache = {};\n\n/**\n * Create a blob URL from a file.\n *\n * @param {File} file The file to create a blob URL for.\n *\n * @return {string} The blob URL.\n */\nexport function createBlobURL( file ) {\n\tconst url = createObjectURL( file );\n\n\tcache[ url ] = file;\n\n\treturn url;\n}\n\n/**\n * Retrieve a file based on a blob URL. The file must have been created by\n * `createBlobURL` and not removed by `revokeBlobURL`, otherwise it will return\n * `undefined`.\n *\n * @param {string} url The blob URL.\n *\n * @return {File|undefined} The file for the blob URL.\n */\nexport function getBlobByURL( url ) {\n\treturn cache[ url ];\n}\n\n/**\n * Retrieve a blob type based on URL. The file must have been created by\n * `createBlobURL` and not removed by `revokeBlobURL`, otherwise it will return\n * `undefined`.\n *\n * @param {string} url The blob URL.\n *\n * @return {string|undefined} The blob type.\n */\nexport function getBlobTypeByURL( url ) {\n\treturn getBlobByURL( url )?.type.split( '/' )[ 0 ]; // 0: media type , 1: file extension eg ( type: 'image/jpeg' ).\n}\n\n/**\n * Remove the resource and file cache from memory.\n *\n * @param {string} url The blob URL.\n */\nexport function revokeBlobURL( url ) {\n\tif ( cache[ url ] ) {\n\t\trevokeObjectURL( url );\n\t}\n\n\tdelete cache[ url ];\n}\n\n/**\n * Check whether a url is a blob url.\n *\n * @param {string} url The URL.\n *\n * @return {boolean} Is the url a blob url?\n */\nexport function isBlobURL( url ) {\n\tif ( ! url || ! url.indexOf ) {\n\t\treturn false;\n\t}\n\treturn url.indexOf( 'blob:' ) === 0;\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","createObjectURL","revokeObjectURL","window","URL","cache","createBlobURL","file","url","getBlobByURL","getBlobTypeByURL","type","split","revokeBlobURL","isBlobURL","indexOf"],"sourceRoot":""}
|
build/block-directory/index.js
CHANGED
@@ -1,48 +1,48 @@
|
|
1 |
-
/******/ (()
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/compat get default export */
|
8 |
-
/******/ (
|
9 |
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
10 |
-
/******/ __webpack_require__.n = (module)
|
11 |
/******/ var getter = module && module.__esModule ?
|
12 |
-
/******/ ()
|
13 |
-
/******/ ()
|
14 |
/******/ __webpack_require__.d(getter, { a: getter });
|
15 |
/******/ return getter;
|
16 |
/******/ };
|
17 |
-
/******/ }
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/define property getters */
|
20 |
-
/******/ (
|
21 |
/******/ // define getter functions for harmony exports
|
22 |
-
/******/ __webpack_require__.d = (exports, definition)
|
23 |
/******/ for(var key in definition) {
|
24 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
25 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
26 |
/******/ }
|
27 |
/******/ }
|
28 |
/******/ };
|
29 |
-
/******/ }
|
30 |
/******/
|
31 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
32 |
-
/******/ (
|
33 |
-
/******/ __webpack_require__.o = (obj, prop)
|
34 |
-
/******/ }
|
35 |
/******/
|
36 |
/******/ /* webpack/runtime/make namespace object */
|
37 |
-
/******/ (
|
38 |
/******/ // define __esModule on exports
|
39 |
-
/******/ __webpack_require__.r = (exports)
|
40 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
41 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
42 |
/******/ }
|
43 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
44 |
/******/ };
|
45 |
-
/******/ }
|
46 |
/******/
|
47 |
/************************************************************************/
|
48 |
var __webpack_exports__ = {};
|
@@ -51,57 +51,57 @@ __webpack_require__.r(__webpack_exports__);
|
|
51 |
|
52 |
// EXPORTS
|
53 |
__webpack_require__.d(__webpack_exports__, {
|
54 |
-
"store": ()
|
55 |
});
|
56 |
|
57 |
// NAMESPACE OBJECT: ./packages/block-directory/build-module/store/selectors.js
|
58 |
var selectors_namespaceObject = {};
|
59 |
__webpack_require__.r(selectors_namespaceObject);
|
60 |
__webpack_require__.d(selectors_namespaceObject, {
|
61 |
-
"getDownloadableBlocks": ()
|
62 |
-
"getErrorNoticeForBlock": ()
|
63 |
-
"getErrorNotices": ()
|
64 |
-
"getInstalledBlockTypes": ()
|
65 |
-
"getNewBlockTypes": ()
|
66 |
-
"getUnusedBlockTypes": ()
|
67 |
-
"isInstalling": ()
|
68 |
-
"isRequestingDownloadableBlocks": ()
|
69 |
});
|
70 |
|
71 |
// NAMESPACE OBJECT: ./packages/block-directory/build-module/store/actions.js
|
72 |
var actions_namespaceObject = {};
|
73 |
__webpack_require__.r(actions_namespaceObject);
|
74 |
__webpack_require__.d(actions_namespaceObject, {
|
75 |
-
"addInstalledBlockType": ()
|
76 |
-
"clearErrorNotice": ()
|
77 |
-
"fetchDownloadableBlocks": ()
|
78 |
-
"installBlockType": ()
|
79 |
-
"receiveDownloadableBlocks": ()
|
80 |
-
"removeInstalledBlockType": ()
|
81 |
-
"setErrorNotice": ()
|
82 |
-
"setIsInstalling": ()
|
83 |
-
"uninstallBlockType": ()
|
84 |
});
|
85 |
|
86 |
// NAMESPACE OBJECT: ./packages/block-directory/build-module/store/resolvers.js
|
87 |
var resolvers_namespaceObject = {};
|
88 |
__webpack_require__.r(resolvers_namespaceObject);
|
89 |
__webpack_require__.d(resolvers_namespaceObject, {
|
90 |
-
"getDownloadableBlocks": ()
|
91 |
});
|
92 |
|
93 |
;// CONCATENATED MODULE: external ["wp","element"]
|
94 |
-
|
95 |
;// CONCATENATED MODULE: external ["wp","plugins"]
|
96 |
-
|
97 |
;// CONCATENATED MODULE: external ["wp","hooks"]
|
98 |
-
|
99 |
;// CONCATENATED MODULE: external ["wp","blocks"]
|
100 |
-
|
101 |
;// CONCATENATED MODULE: external ["wp","data"]
|
102 |
-
|
103 |
;// CONCATENATED MODULE: external ["wp","editor"]
|
104 |
-
|
105 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/reducer.js
|
106 |
/**
|
107 |
* WordPress dependencies
|
@@ -208,14 +208,14 @@ const errorNotices = function () {
|
|
208 |
|
209 |
return state;
|
210 |
};
|
211 |
-
/* harmony default export */
|
212 |
downloadableBlocks,
|
213 |
blockManagement,
|
214 |
errorNotices
|
215 |
}));
|
216 |
|
217 |
;// CONCATENATED MODULE: external ["wp","blockEditor"]
|
218 |
-
|
219 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/utils/has-block-type.js
|
220 |
/**
|
221 |
* Check if a block list contains a specific block type. Recursively searches
|
@@ -367,14 +367,14 @@ function getErrorNoticeForBlock(state, blockId) {
|
|
367 |
}
|
368 |
|
369 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
370 |
-
|
371 |
;// CONCATENATED MODULE: external ["wp","apiFetch"]
|
372 |
-
|
373 |
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
|
374 |
;// CONCATENATED MODULE: external ["wp","notices"]
|
375 |
-
|
376 |
;// CONCATENATED MODULE: external ["wp","url"]
|
377 |
-
|
378 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/load-assets.js
|
379 |
/**
|
380 |
* WordPress dependencies
|
@@ -1213,11 +1213,11 @@ function AutoBlockUninstaller() {
|
|
1213 |
}
|
1214 |
|
1215 |
;// CONCATENATED MODULE: external ["wp","compose"]
|
1216 |
-
|
1217 |
;// CONCATENATED MODULE: external ["wp","components"]
|
1218 |
-
|
1219 |
;// CONCATENATED MODULE: external ["wp","coreData"]
|
1220 |
-
|
1221 |
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
1222 |
function _extends() {
|
1223 |
_extends = Object.assign || function (target) {
|
@@ -1237,7 +1237,7 @@ function _extends() {
|
|
1237 |
return _extends.apply(this, arguments);
|
1238 |
}
|
1239 |
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
|
1240 |
-
|
1241 |
;// CONCATENATED MODULE: ./packages/icons/build-module/icon/index.js
|
1242 |
/**
|
1243 |
* WordPress dependencies
|
@@ -1268,10 +1268,10 @@ function Icon(_ref) {
|
|
1268 |
});
|
1269 |
}
|
1270 |
|
1271 |
-
/* harmony default export */
|
1272 |
|
1273 |
;// CONCATENATED MODULE: external ["wp","primitives"]
|
1274 |
-
|
1275 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-filled.js
|
1276 |
|
1277 |
|
@@ -1285,7 +1285,7 @@ const starFilled = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
1285 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
1286 |
d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
|
1287 |
}));
|
1288 |
-
/* harmony default export */
|
1289 |
|
1290 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-half.js
|
1291 |
|
@@ -1300,7 +1300,7 @@ const starHalf = (0,external_wp_element_namespaceObject.createElement)(external_
|
|
1300 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
1301 |
d: "M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"
|
1302 |
}));
|
1303 |
-
/* harmony default export */
|
1304 |
|
1305 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-empty.js
|
1306 |
|
@@ -1317,7 +1317,7 @@ const starEmpty = (0,external_wp_element_namespaceObject.createElement)(external
|
|
1317 |
d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
|
1318 |
clipRule: "evenodd"
|
1319 |
}));
|
1320 |
-
/* harmony default export */
|
1321 |
|
1322 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/stars.js
|
1323 |
|
@@ -1364,7 +1364,7 @@ function Stars(_ref) {
|
|
1364 |
})));
|
1365 |
}
|
1366 |
|
1367 |
-
/* harmony default export */
|
1368 |
|
1369 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/index.js
|
1370 |
|
@@ -1383,7 +1383,7 @@ const BlockRatings = _ref => {
|
|
1383 |
rating: rating
|
1384 |
}));
|
1385 |
};
|
1386 |
-
/* harmony default export */
|
1387 |
|
1388 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-icon/index.js
|
1389 |
|
@@ -1409,7 +1409,7 @@ function DownloadableBlockIcon(_ref) {
|
|
1409 |
});
|
1410 |
}
|
1411 |
|
1412 |
-
/* harmony default export */
|
1413 |
|
1414 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-notice/index.js
|
1415 |
|
@@ -1440,7 +1440,7 @@ const DownloadableBlockNotice = _ref => {
|
|
1440 |
className: "block-directory-downloadable-block-notice__content"
|
1441 |
}, errorNotice.message, errorNotice.isFatal ? ' ' + (0,external_wp_i18n_namespaceObject.__)('Try reloading the page.') : null));
|
1442 |
};
|
1443 |
-
/* harmony default export */
|
1444 |
|
1445 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-list-item/index.js
|
1446 |
|
@@ -1588,7 +1588,7 @@ function DownloadableBlockListItem(_ref3) {
|
|
1588 |
}, !!statusText ? statusText : (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(description)), isInstallable && !(isInstalled || isInstalling) && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_wp_i18n_namespaceObject.__)('Install block')))));
|
1589 |
}
|
1590 |
|
1591 |
-
/* harmony default export */
|
1592 |
|
1593 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-list/index.js
|
1594 |
|
@@ -1655,10 +1655,10 @@ function DownloadableBlocksList(_ref) {
|
|
1655 |
}));
|
1656 |
}
|
1657 |
|
1658 |
-
/* harmony default export */
|
1659 |
|
1660 |
;// CONCATENATED MODULE: external ["wp","a11y"]
|
1661 |
-
|
1662 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.js
|
1663 |
|
1664 |
|
@@ -1696,7 +1696,7 @@ function DownloadableBlocksInserterPanel(_ref) {
|
|
1696 |
}, (0,external_wp_i18n_namespaceObject.__)('Select a block to install and add it to your post.'))), children));
|
1697 |
}
|
1698 |
|
1699 |
-
/* harmony default export */
|
1700 |
|
1701 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
|
1702 |
|
@@ -1711,7 +1711,7 @@ const blockDefault = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
1711 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
1712 |
d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
|
1713 |
}));
|
1714 |
-
/* harmony default export */
|
1715 |
|
1716 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
|
1717 |
|
@@ -1736,7 +1736,7 @@ function DownloadableBlocksNoResults() {
|
|
1736 |
}, (0,external_wp_i18n_namespaceObject.__)('Get started here'), "."))));
|
1737 |
}
|
1738 |
|
1739 |
-
/* harmony default export */
|
1740 |
|
1741 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/index.js
|
1742 |
|
@@ -1798,7 +1798,7 @@ function DownloadableBlocksPanel(_ref) {
|
|
1798 |
})) : !hasLocalBlocks && (0,external_wp_element_namespaceObject.createElement)(no_results, null);
|
1799 |
}
|
1800 |
|
1801 |
-
/* harmony default export */
|
1802 |
let {
|
1803 |
filterValue,
|
1804 |
rootClientId = null
|
@@ -1871,10 +1871,8 @@ function InserterMenuDownloadableBlocksPanel() {
|
|
1871 |
});
|
1872 |
}
|
1873 |
|
1874 |
-
/* harmony default export */
|
1875 |
|
1876 |
-
;// CONCATENATED MODULE: external ["wp","editPost"]
|
1877 |
-
const external_wp_editPost_namespaceObject = window["wp"]["editPost"];
|
1878 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/compact-list/index.js
|
1879 |
|
1880 |
|
@@ -1924,6 +1922,8 @@ function CompactList(_ref) {
|
|
1924 |
}
|
1925 |
|
1926 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/index.js
|
|
|
|
|
1927 |
|
1928 |
|
1929 |
/**
|
@@ -1932,13 +1932,17 @@ function CompactList(_ref) {
|
|
1932 |
|
1933 |
|
1934 |
|
1935 |
-
|
1936 |
/**
|
1937 |
* Internal dependencies
|
1938 |
*/
|
1939 |
|
1940 |
|
|
|
|
|
1941 |
|
|
|
|
|
|
|
1942 |
function InstalledBlocksPrePublishPanel() {
|
1943 |
const newBlockTypes = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getNewBlockTypes(), []);
|
1944 |
|
@@ -1946,7 +1950,7 @@ function InstalledBlocksPrePublishPanel() {
|
|
1946 |
return null;
|
1947 |
}
|
1948 |
|
1949 |
-
return (0,external_wp_element_namespaceObject.createElement)(
|
1950 |
icon: block_default,
|
1951 |
title: (0,external_wp_i18n_namespaceObject.sprintf)( // translators: %d: number of blocks (number).
|
1952 |
(0,external_wp_i18n_namespaceObject._n)('Added: %d block', 'Added: %d blocks', newBlockTypes.length), newBlockTypes.length),
|
@@ -2115,7 +2119,7 @@ const ModifiedWarning = _ref2 => {
|
|
2115 |
}, messageHTML), (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, originalUndelimitedContent));
|
2116 |
};
|
2117 |
|
2118 |
-
/* harmony default export */
|
2119 |
|
2120 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/index.js
|
2121 |
|
1 |
+
/******/ (function() { // webpackBootstrap
|
2 |
/******/ "use strict";
|
3 |
/******/ // The require scope
|
4 |
/******/ var __webpack_require__ = {};
|
5 |
/******/
|
6 |
/************************************************************************/
|
7 |
/******/ /* webpack/runtime/compat get default export */
|
8 |
+
/******/ !function() {
|
9 |
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
10 |
+
/******/ __webpack_require__.n = function(module) {
|
11 |
/******/ var getter = module && module.__esModule ?
|
12 |
+
/******/ function() { return module['default']; } :
|
13 |
+
/******/ function() { return module; };
|
14 |
/******/ __webpack_require__.d(getter, { a: getter });
|
15 |
/******/ return getter;
|
16 |
/******/ };
|
17 |
+
/******/ }();
|
18 |
/******/
|
19 |
/******/ /* webpack/runtime/define property getters */
|
20 |
+
/******/ !function() {
|
21 |
/******/ // define getter functions for harmony exports
|
22 |
+
/******/ __webpack_require__.d = function(exports, definition) {
|
23 |
/******/ for(var key in definition) {
|
24 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
25 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
26 |
/******/ }
|
27 |
/******/ }
|
28 |
/******/ };
|
29 |
+
/******/ }();
|
30 |
/******/
|
31 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
32 |
+
/******/ !function() {
|
33 |
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
34 |
+
/******/ }();
|
35 |
/******/
|
36 |
/******/ /* webpack/runtime/make namespace object */
|
37 |
+
/******/ !function() {
|
38 |
/******/ // define __esModule on exports
|
39 |
+
/******/ __webpack_require__.r = function(exports) {
|
40 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
41 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
42 |
/******/ }
|
43 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
44 |
/******/ };
|
45 |
+
/******/ }();
|
46 |
/******/
|
47 |
/************************************************************************/
|
48 |
var __webpack_exports__ = {};
|
51 |
|
52 |
// EXPORTS
|
53 |
__webpack_require__.d(__webpack_exports__, {
|
54 |
+
"store": function() { return /* reexport */ store; }
|
55 |
});
|
56 |
|
57 |
// NAMESPACE OBJECT: ./packages/block-directory/build-module/store/selectors.js
|
58 |
var selectors_namespaceObject = {};
|
59 |
__webpack_require__.r(selectors_namespaceObject);
|
60 |
__webpack_require__.d(selectors_namespaceObject, {
|
61 |
+
"getDownloadableBlocks": function() { return getDownloadableBlocks; },
|
62 |
+
"getErrorNoticeForBlock": function() { return getErrorNoticeForBlock; },
|
63 |
+
"getErrorNotices": function() { return getErrorNotices; },
|
64 |
+
"getInstalledBlockTypes": function() { return getInstalledBlockTypes; },
|
65 |
+
"getNewBlockTypes": function() { return getNewBlockTypes; },
|
66 |
+
"getUnusedBlockTypes": function() { return getUnusedBlockTypes; },
|
67 |
+
"isInstalling": function() { return isInstalling; },
|
68 |
+
"isRequestingDownloadableBlocks": function() { return isRequestingDownloadableBlocks; }
|
69 |
});
|
70 |
|
71 |
// NAMESPACE OBJECT: ./packages/block-directory/build-module/store/actions.js
|
72 |
var actions_namespaceObject = {};
|
73 |
__webpack_require__.r(actions_namespaceObject);
|
74 |
__webpack_require__.d(actions_namespaceObject, {
|
75 |
+
"addInstalledBlockType": function() { return addInstalledBlockType; },
|
76 |
+
"clearErrorNotice": function() { return clearErrorNotice; },
|
77 |
+
"fetchDownloadableBlocks": function() { return fetchDownloadableBlocks; },
|
78 |
+
"installBlockType": function() { return installBlockType; },
|
79 |
+
"receiveDownloadableBlocks": function() { return receiveDownloadableBlocks; },
|
80 |
+
"removeInstalledBlockType": function() { return removeInstalledBlockType; },
|
81 |
+
"setErrorNotice": function() { return setErrorNotice; },
|
82 |
+
"setIsInstalling": function() { return setIsInstalling; },
|
83 |
+
"uninstallBlockType": function() { return uninstallBlockType; }
|
84 |
});
|
85 |
|
86 |
// NAMESPACE OBJECT: ./packages/block-directory/build-module/store/resolvers.js
|
87 |
var resolvers_namespaceObject = {};
|
88 |
__webpack_require__.r(resolvers_namespaceObject);
|
89 |
__webpack_require__.d(resolvers_namespaceObject, {
|
90 |
+
"getDownloadableBlocks": function() { return resolvers_getDownloadableBlocks; }
|
91 |
});
|
92 |
|
93 |
;// CONCATENATED MODULE: external ["wp","element"]
|
94 |
+
var external_wp_element_namespaceObject = window["wp"]["element"];
|
95 |
;// CONCATENATED MODULE: external ["wp","plugins"]
|
96 |
+
var external_wp_plugins_namespaceObject = window["wp"]["plugins"];
|
97 |
;// CONCATENATED MODULE: external ["wp","hooks"]
|
98 |
+
var external_wp_hooks_namespaceObject = window["wp"]["hooks"];
|
99 |
;// CONCATENATED MODULE: external ["wp","blocks"]
|
100 |
+
var external_wp_blocks_namespaceObject = window["wp"]["blocks"];
|
101 |
;// CONCATENATED MODULE: external ["wp","data"]
|
102 |
+
var external_wp_data_namespaceObject = window["wp"]["data"];
|
103 |
;// CONCATENATED MODULE: external ["wp","editor"]
|
104 |
+
var external_wp_editor_namespaceObject = window["wp"]["editor"];
|
105 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/reducer.js
|
106 |
/**
|
107 |
* WordPress dependencies
|
208 |
|
209 |
return state;
|
210 |
};
|
211 |
+
/* harmony default export */ var reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
|
212 |
downloadableBlocks,
|
213 |
blockManagement,
|
214 |
errorNotices
|
215 |
}));
|
216 |
|
217 |
;// CONCATENATED MODULE: external ["wp","blockEditor"]
|
218 |
+
var external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
|
219 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/utils/has-block-type.js
|
220 |
/**
|
221 |
* Check if a block list contains a specific block type. Recursively searches
|
367 |
}
|
368 |
|
369 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
370 |
+
var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
371 |
;// CONCATENATED MODULE: external ["wp","apiFetch"]
|
372 |
+
var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
|
373 |
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
|
374 |
;// CONCATENATED MODULE: external ["wp","notices"]
|
375 |
+
var external_wp_notices_namespaceObject = window["wp"]["notices"];
|
376 |
;// CONCATENATED MODULE: external ["wp","url"]
|
377 |
+
var external_wp_url_namespaceObject = window["wp"]["url"];
|
378 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/load-assets.js
|
379 |
/**
|
380 |
* WordPress dependencies
|
1213 |
}
|
1214 |
|
1215 |
;// CONCATENATED MODULE: external ["wp","compose"]
|
1216 |
+
var external_wp_compose_namespaceObject = window["wp"]["compose"];
|
1217 |
;// CONCATENATED MODULE: external ["wp","components"]
|
1218 |
+
var external_wp_components_namespaceObject = window["wp"]["components"];
|
1219 |
;// CONCATENATED MODULE: external ["wp","coreData"]
|
1220 |
+
var external_wp_coreData_namespaceObject = window["wp"]["coreData"];
|
1221 |
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
1222 |
function _extends() {
|
1223 |
_extends = Object.assign || function (target) {
|
1237 |
return _extends.apply(this, arguments);
|
1238 |
}
|
1239 |
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
|
1240 |
+
var external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
|
1241 |
;// CONCATENATED MODULE: ./packages/icons/build-module/icon/index.js
|
1242 |
/**
|
1243 |
* WordPress dependencies
|
1268 |
});
|
1269 |
}
|
1270 |
|
1271 |
+
/* harmony default export */ var icon = (Icon);
|
1272 |
|
1273 |
;// CONCATENATED MODULE: external ["wp","primitives"]
|
1274 |
+
var external_wp_primitives_namespaceObject = window["wp"]["primitives"];
|
1275 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-filled.js
|
1276 |
|
1277 |
|
1285 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
1286 |
d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
|
1287 |
}));
|
1288 |
+
/* harmony default export */ var star_filled = (starFilled);
|
1289 |
|
1290 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-half.js
|
1291 |
|
1300 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
1301 |
d: "M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"
|
1302 |
}));
|
1303 |
+
/* harmony default export */ var star_half = (starHalf);
|
1304 |
|
1305 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-empty.js
|
1306 |
|
1317 |
d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
|
1318 |
clipRule: "evenodd"
|
1319 |
}));
|
1320 |
+
/* harmony default export */ var star_empty = (starEmpty);
|
1321 |
|
1322 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/stars.js
|
1323 |
|
1364 |
})));
|
1365 |
}
|
1366 |
|
1367 |
+
/* harmony default export */ var stars = (Stars);
|
1368 |
|
1369 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/index.js
|
1370 |
|
1383 |
rating: rating
|
1384 |
}));
|
1385 |
};
|
1386 |
+
/* harmony default export */ var block_ratings = (BlockRatings);
|
1387 |
|
1388 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-icon/index.js
|
1389 |
|
1409 |
});
|
1410 |
}
|
1411 |
|
1412 |
+
/* harmony default export */ var downloadable_block_icon = (DownloadableBlockIcon);
|
1413 |
|
1414 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-notice/index.js
|
1415 |
|
1440 |
className: "block-directory-downloadable-block-notice__content"
|
1441 |
}, errorNotice.message, errorNotice.isFatal ? ' ' + (0,external_wp_i18n_namespaceObject.__)('Try reloading the page.') : null));
|
1442 |
};
|
1443 |
+
/* harmony default export */ var downloadable_block_notice = (DownloadableBlockNotice);
|
1444 |
|
1445 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-list-item/index.js
|
1446 |
|
1588 |
}, !!statusText ? statusText : (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(description)), isInstallable && !(isInstalled || isInstalling) && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_wp_i18n_namespaceObject.__)('Install block')))));
|
1589 |
}
|
1590 |
|
1591 |
+
/* harmony default export */ var downloadable_block_list_item = (DownloadableBlockListItem);
|
1592 |
|
1593 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-list/index.js
|
1594 |
|
1655 |
}));
|
1656 |
}
|
1657 |
|
1658 |
+
/* harmony default export */ var downloadable_blocks_list = (DownloadableBlocksList);
|
1659 |
|
1660 |
;// CONCATENATED MODULE: external ["wp","a11y"]
|
1661 |
+
var external_wp_a11y_namespaceObject = window["wp"]["a11y"];
|
1662 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.js
|
1663 |
|
1664 |
|
1696 |
}, (0,external_wp_i18n_namespaceObject.__)('Select a block to install and add it to your post.'))), children));
|
1697 |
}
|
1698 |
|
1699 |
+
/* harmony default export */ var inserter_panel = (DownloadableBlocksInserterPanel);
|
1700 |
|
1701 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
|
1702 |
|
1711 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
1712 |
d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
|
1713 |
}));
|
1714 |
+
/* harmony default export */ var block_default = (blockDefault);
|
1715 |
|
1716 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
|
1717 |
|
1736 |
}, (0,external_wp_i18n_namespaceObject.__)('Get started here'), "."))));
|
1737 |
}
|
1738 |
|
1739 |
+
/* harmony default export */ var no_results = (DownloadableBlocksNoResults);
|
1740 |
|
1741 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/index.js
|
1742 |
|
1798 |
})) : !hasLocalBlocks && (0,external_wp_element_namespaceObject.createElement)(no_results, null);
|
1799 |
}
|
1800 |
|
1801 |
+
/* harmony default export */ var downloadable_blocks_panel = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)((select, _ref2) => {
|
1802 |
let {
|
1803 |
filterValue,
|
1804 |
rootClientId = null
|
1871 |
});
|
1872 |
}
|
1873 |
|
1874 |
+
/* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
|
1875 |
|
|
|
|
|
1876 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/compact-list/index.js
|
1877 |
|
1878 |
|
1922 |
}
|
1923 |
|
1924 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/index.js
|
1925 |
+
var _window$wp$editPost, _window, _window$wp;
|
1926 |
+
|
1927 |
|
1928 |
|
1929 |
/**
|
1932 |
|
1933 |
|
1934 |
|
|
|
1935 |
/**
|
1936 |
* Internal dependencies
|
1937 |
*/
|
1938 |
|
1939 |
|
1940 |
+
// We shouldn't import the edit-post package directly
|
1941 |
+
// because it would include the wp-edit-post in all pages loading the block-directory script.
|
1942 |
|
1943 |
+
const {
|
1944 |
+
PluginPrePublishPanel
|
1945 |
+
} = (_window$wp$editPost = (_window = window) === null || _window === void 0 ? void 0 : (_window$wp = _window.wp) === null || _window$wp === void 0 ? void 0 : _window$wp.editPost) !== null && _window$wp$editPost !== void 0 ? _window$wp$editPost : {};
|
1946 |
function InstalledBlocksPrePublishPanel() {
|
1947 |
const newBlockTypes = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getNewBlockTypes(), []);
|
1948 |
|
1950 |
return null;
|
1951 |
}
|
1952 |
|
1953 |
+
return (0,external_wp_element_namespaceObject.createElement)(PluginPrePublishPanel, {
|
1954 |
icon: block_default,
|
1955 |
title: (0,external_wp_i18n_namespaceObject.sprintf)( // translators: %d: number of blocks (number).
|
1956 |
(0,external_wp_i18n_namespaceObject._n)('Added: %d block', 'Added: %d blocks', newBlockTypes.length), newBlockTypes.length),
|
2119 |
}, messageHTML), (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, originalUndelimitedContent));
|
2120 |
};
|
2121 |
|
2122 |
+
/* harmony default export */ var get_install_missing = (getInstallMissing);
|
2123 |
|
2124 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/index.js
|
2125 |
|
build/block-directory/index.min.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-
|
1 |
+
<?php return array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '094197b418971eae50fb');
|
build/block-directory/index.min.js
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
-
(
|
2 |
-
(0,
|
3 |
/* translators: %s: number of stars. */
|
4 |
-
(0,
|
5 |
/* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
|
6 |
-
(0,
|
7 |
/* translators: %1$s: block title, %2$s: author name. */
|
8 |
-
(0,
|
9 |
/* translators: %d: number of available blocks. */
|
10 |
-
(0,
|
11 |
/* translators: %s: Name of the block author. */
|
12 |
-
(0,
|
13 |
-
(0,
|
14 |
/* translators: %s: block name */
|
15 |
-
(0,
|
16 |
/* translators: %s: block name */
|
17 |
-
(0,
|
18 |
/* translators: %s: block name */
|
19 |
-
(0,
|
20 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
!function(){"use strict";var e={n:function(t){var l=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(l,{a:l}),l},d:function(t,l){for(var n in l)e.o(l,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:l[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:function(){return G}});var l={};e.r(l),e.d(l,{getDownloadableBlocks:function(){return k},getErrorNoticeForBlock:function(){return h},getErrorNotices:function(){return E},getInstalledBlockTypes:function(){return g},getNewBlockTypes:function(){return _},getUnusedBlockTypes:function(){return f},isInstalling:function(){return w},isRequestingDownloadableBlocks:function(){return b}});var n={};e.r(n),e.d(n,{addInstalledBlockType:function(){return D},clearErrorNotice:function(){return x},fetchDownloadableBlocks:function(){return S},installBlockType:function(){return C},receiveDownloadableBlocks:function(){return O},removeInstalledBlockType:function(){return R},setErrorNotice:function(){return M},setIsInstalling:function(){return P},uninstallBlockType:function(){return A}});var r={};e.r(r),e.d(r,{getDownloadableBlocks:function(){return Y}});var o=window.wp.element,a=window.wp.plugins,i=window.wp.hooks,c=window.wp.blocks,s=window.wp.data,d=window.wp.editor,u=(0,s.combineReducers)({downloadableBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},blockManagement:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:[...e.installedBlockTypes,t.item]};case"REMOVE_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:e.installedBlockTypes.filter((e=>e.name!==t.item.name))};case"SET_INSTALLING_BLOCK":return{...e,isInstalling:{...e.isInstalling,[t.blockId]:t.isInstalling}}}return e},errorNotices:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":const{[t.blockId]:l,...n}=e;return n}return e}}),m=window.wp.blockEditor;function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;if(t.some((t=>{let{name:l}=t;return l===e.name})))return!0;for(let l=0;l<t.length;l++)if(p(e,t[l].innerBlocks))return!0;return!1}function b(e,t){var l,n;return null!==(l=null===(n=e.downloadableBlocks[t])||void 0===n?void 0:n.isRequesting)&&void 0!==l&&l}function k(e,t){var l,n;return null!==(l=null===(n=e.downloadableBlocks[t])||void 0===n?void 0:n.results)&&void 0!==l?l:[]}function g(e){return e.blockManagement.installedBlockTypes}const _=(0,s.createRegistrySelector)((e=>t=>{const l=e(m.store).getBlocks();return g(t).filter((e=>p(e,l)))})),f=(0,s.createRegistrySelector)((e=>t=>{const l=e(m.store).getBlocks();return g(t).filter((e=>!p(e,l)))}));function w(e,t){return e.blockManagement.isInstalling[t]||!1}function E(e){return e.errorNotices}function h(e,t){return e.errorNotices[t]}var y=window.wp.i18n,v=window.wp.apiFetch,B=e.n(v),I=window.wp.notices,N=window.wp.url;const T=e=>new Promise(((t,l)=>{const n=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach((t=>{e[t]&&(n[t]=e[t])})),e.innerHTML&&n.appendChild(document.createTextNode(e.innerHTML)),n.onload=()=>t(!0),n.onerror=()=>l(new Error("Error loading asset.")),document.body.appendChild(n),("link"===n.nodeName.toLowerCase()||"script"===n.nodeName.toLowerCase()&&!n.src)&&t()}));function L(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function S(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function O(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}const C=e=>async t=>{let{registry:l,dispatch:n}=t;const{id:r,name:o}=e;let a=!1;n.clearErrorNotice(r);try{n.setIsInstalling(r,!0);const t=L(e);let i={};t?await B()({method:"PUT",url:t,data:{status:"active"}}):i=(await B()({method:"POST",path:"wp/v2/plugins",data:{slug:r,status:"active"}}))._links,n.addInstalledBlockType({...e,links:{...e.links,...i}});const s=["api_version","title","category","parent","icon","description","keywords","attributes","provides_context","uses_context","supports","styles","example","variations"];if(await B()({path:(0,N.addQueryArgs)(`/wp/v2/block-types/${o}`,{_fields:s})}).catch((()=>{})).then((e=>{e&&(0,c.unstable__bootstrapServerSideBlockDefinitions)({[o]:Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return s.includes(t)})))})})),await async function(){const e=await B()({url:document.location.href,parse:!1}),t=await e.text(),l=(new window.DOMParser).parseFromString(t,"text/html"),n=Array.from(l.querySelectorAll('link[rel="stylesheet"],script')).filter((e=>e.id&&!document.getElementById(e.id)));for(const e of n)await T(e)}(),!l.select(c.store).getBlockTypes().some((e=>e.name===o)))throw new Error((0,y.__)("Error registering block. Try reloading the page."));l.dispatch(I.store).createInfoNotice((0,y.sprintf)(// translators: %s is the block title.
|
2 |
+
(0,y.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),a=!0}catch(e){let t=e.message||(0,y.__)("An error occurred."),o=e instanceof Error;const a={folder_exists:(0,y.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:(0,y.__)("Error installing block. You can reload the page and try again.")};a[e.code]&&(o=!0,t=a[e.code]),n.setErrorNotice(r,t,o),l.dispatch(I.store).createErrorNotice(t,{speak:!0,isDismissible:!0})}return n.setIsInstalling(r,!1),a},A=e=>async t=>{let{registry:l,dispatch:n}=t;try{const t=L(e);await B()({method:"PUT",url:t,data:{status:"inactive"}}),await B()({method:"DELETE",url:t}),n.removeInstalledBlockType(e)}catch(e){l.dispatch(I.store).createErrorNotice(e.message||(0,y.__)("An error occurred."))}};function D(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function R(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function P(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function M(e,t){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:l}}function x(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var F=function(){return F=Object.assign||function(e){for(var t,l=1,n=arguments.length;l<n;l++)for(var r in t=arguments[l])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},F.apply(this,arguments)};function V(e){return e.toLowerCase()}Object.create,Object.create;var j=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],H=/[^A-Z0-9]+/gi;function $(e,t,l){return t instanceof RegExp?e.replace(t,l):t.reduce((function(e,t){return e.replace(t,l)}),e)}function z(e,t){var l=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&l>="0"&&l<="9"?"_"+l+n:""+l.toUpperCase()+n}function K(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var l=t.splitRegexp,n=void 0===l?j:l,r=t.stripRegexp,o=void 0===r?H:r,a=t.transform,i=void 0===a?V:a,c=t.delimiter,s=void 0===c?" ":c,d=$($(e,n,"$1\0$2"),o,"\0"),u=0,m=d.length;"\0"===d.charAt(u);)u++;for(;"\0"===d.charAt(m-1);)m--;return d.slice(u,m).split("\0").map(i).join(s)}(e,F({delimiter:"",transform:z},t))}function U(e,t){return 0===t?e.toLowerCase():z(e,t)}const Y=e=>async t=>{let{dispatch:l}=t;if(e)try{l(S(e));l(O((await B()({path:`wp/v2/block-directory/search?term=${e}`})).map((e=>Object.fromEntries(Object.entries(e).map((e=>{let[t,l]=e;return[(n=t,void 0===r&&(r={}),K(n,F({transform:U},r))),l];var n,r}))))),e))}catch{}},q={reducer:u,selectors:l,actions:n,resolvers:r},G=(0,s.createReduxStore)("core/block-directory",q);function W(){const{uninstallBlockType:e}=(0,s.useDispatch)(G),t=(0,s.useSelect)((e=>{const{isAutosavingPost:t,isSavingPost:l}=e(d.store);return l()&&!t()}),[]),l=(0,s.useSelect)((e=>e(G).getUnusedBlockTypes()),[]);return(0,o.useEffect)((()=>{t&&l.length&&l.forEach((t=>{e(t),(0,c.unregisterBlockType)(t.name)}))}),[t]),null}(0,s.register)(G);var Z=window.wp.compose,Q=window.wp.components,J=window.wp.coreData;function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},X.apply(this,arguments)}var ee=window.wp.htmlEntities,te=function(e){let{icon:t,size:l=24,...n}=e;return(0,o.cloneElement)(t,{width:l,height:l,...n})},le=window.wp.primitives,ne=(0,o.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(le.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})),re=(0,o.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(le.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})),oe=(0,o.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(le.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),ae=function(e){let{rating:t}=e;const l=.5*Math.round(t/.5),n=Math.floor(t),r=Math.ceil(t-n),a=5-(n+r);return(0,o.createElement)("span",{"aria-label":(0,y.sprintf)(
|
3 |
/* translators: %s: number of stars. */
|
4 |
+
(0,y.__)("%s out of 5 stars"),l)},Array.from({length:n}).map(((e,t)=>(0,o.createElement)(te,{key:`full_stars_${t}`,className:"block-directory-block-ratings__star-full",icon:ne,size:16}))),Array.from({length:r}).map(((e,t)=>(0,o.createElement)(te,{key:`half_stars_${t}`,className:"block-directory-block-ratings__star-half-full",icon:re,size:16}))),Array.from({length:a}).map(((e,t)=>(0,o.createElement)(te,{key:`empty_stars_${t}`,className:"block-directory-block-ratings__star-empty",icon:oe,size:16}))))},ie=e=>{let{rating:t}=e;return(0,o.createElement)("span",{className:"block-directory-block-ratings"},(0,o.createElement)(ae,{rating:t}))},ce=function(e){let{icon:t}=e;const l="block-directory-downloadable-block-icon";return null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?(0,o.createElement)("img",{className:l,src:t,alt:""}):(0,o.createElement)(m.BlockIcon,{className:l,icon:t,showColors:!0})},se=e=>{let{block:t}=e;const l=(0,s.useSelect)((e=>e(G).getErrorNoticeForBlock(t.id)),[t]);return l?(0,o.createElement)("div",{className:"block-directory-downloadable-block-notice"},(0,o.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},l.message,l.isFatal?" "+(0,y.__)("Try reloading the page."):null)):null};function de(e,t){let{title:l,rating:n,ratingCount:r}=e,{hasNotice:o,isInstalled:a,isInstalling:i}=t;const c=.5*Math.round(n/.5);return!a&&o?(0,y.sprintf)("Retry installing %s.",(0,ee.decodeEntities)(l)):a?(0,y.sprintf)("Add %s.",(0,ee.decodeEntities)(l)):i?(0,y.sprintf)("Installing %s.",(0,ee.decodeEntities)(l)):r<1?(0,y.sprintf)("Install %s.",(0,ee.decodeEntities)(l)):(0,y.sprintf)(
|
5 |
/* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
|
6 |
+
(0,y._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",r),(0,ee.decodeEntities)(l),c,r)}var ue=function(e){let{composite:t,item:l,onClick:n}=e;const{author:r,description:a,icon:i,rating:d,title:u}=l,m=!!(0,c.getBlockType)(l.name),{hasNotice:p,isInstalling:b,isInstallable:k}=(0,s.useSelect)((e=>{const{getErrorNoticeForBlock:t,isInstalling:n}=e(G),r=t(l.id),o=r&&r.isFatal;return{hasNotice:!!r,isInstalling:n(l.id),isInstallable:!o}}),[l]);let g="";return m?g=(0,y.__)("Installed!"):b&&(g=(0,y.__)("Installing…")),(0,o.createElement)(Q.__unstableCompositeItem,X({__experimentalIsFocusable:!0,role:"option",as:Q.Button},t,{className:"block-directory-downloadable-block-list-item",onClick:e=>{e.preventDefault(),n()},isBusy:b,disabled:b||!k,label:de(l,{hasNotice:p,isInstalled:m,isInstalling:b}),showTooltip:!0,tooltipPosition:"top center"}),(0,o.createElement)("div",{className:"block-directory-downloadable-block-list-item__icon"},(0,o.createElement)(ce,{icon:i,title:u}),b?(0,o.createElement)("span",{className:"block-directory-downloadable-block-list-item__spinner"},(0,o.createElement)(Q.Spinner,null)):(0,o.createElement)(ie,{rating:d})),(0,o.createElement)("span",{className:"block-directory-downloadable-block-list-item__details"},(0,o.createElement)("span",{className:"block-directory-downloadable-block-list-item__title"},(0,o.createInterpolateElement)((0,y.sprintf)(
|
7 |
/* translators: %1$s: block title, %2$s: author name. */
|
8 |
+
(0,y.__)("%1$s <span>by %2$s</span>"),(0,ee.decodeEntities)(u),r),{span:(0,o.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),p?(0,o.createElement)(se,{block:l}):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},g||(0,ee.decodeEntities)(a)),k&&!(m||b)&&(0,o.createElement)(Q.VisuallyHidden,null,(0,y.__)("Install block")))))};const me=()=>{};var pe,be,ke,ge=function(e){let{items:t,onHover:l=me,onSelect:n}=e;const r=(0,Q.__unstableUseCompositeState)(),{installBlockType:a}=(0,s.useDispatch)(G);return t.length?(0,o.createElement)(Q.__unstableComposite,X({},r,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":(0,y.__)("Blocks available for install")}),t.map((e=>(0,o.createElement)(ue,{key:e.id,composite:r,onClick:()=>{(0,c.getBlockType)(e.name)?n(e):a(e).then((t=>{t&&n(e)})),l(null)},onHover:l,item:e})))):null},_e=window.wp.a11y,fe=function(e){let{children:t,downloadableItems:l,hasLocalBlocks:n}=e;const r=l.length;return(0,o.useEffect)((()=>{(0,_e.speak)((0,y.sprintf)(
|
9 |
/* translators: %d: number of available blocks. */
|
10 |
+
(0,y._n)("%d additional block is available to install.","%d additional blocks are available to install.",r),r))}),[r]),(0,o.createElement)(o.Fragment,null,!n&&(0,o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},(0,y.__)("No results available from your installed blocks.")),(0,o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),(0,o.createElement)("div",{className:"block-directory-downloadable-blocks-panel"},(0,o.createElement)("div",{className:"block-directory-downloadable-blocks-panel__header"},(0,o.createElement)("h2",{className:"block-directory-downloadable-blocks-panel__title"},(0,y.__)("Available to install")),(0,o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},(0,y.__)("Select a block to install and add it to your post."))),t))},we=(0,o.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(le.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),Ee=function(){return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"block-editor-inserter__no-results"},(0,o.createElement)(te,{className:"block-editor-inserter__no-results-icon",icon:we}),(0,o.createElement)("p",null,(0,y.__)("No results found."))),(0,o.createElement)("div",{className:"block-editor-inserter__tips"},(0,o.createElement)(Q.Tip,null,(0,y.__)("Interested in creating your own block?"),(0,o.createElement)("br",null),(0,o.createElement)(Q.ExternalLink,{href:"https://developer.wordpress.org/block-editor/"},(0,y.__)("Get started here"),"."))))},he=(0,Z.compose)([(0,s.withSelect)(((e,t)=>{let{filterValue:l,rootClientId:n=null}=t;const{getDownloadableBlocks:r,isRequestingDownloadableBlocks:o}=e(G),{canInsertBlockType:a}=e(m.store),i=e(J.store).canUser("read","block-directory/search");return{downloadableItems:i?r(l).filter((e=>a(e,n,!0))):[],hasPermission:i,isLoading:o(l)}}))])((function(e){let{downloadableItems:t,onSelect:l,onHover:n,hasLocalBlocks:r,hasPermission:a,isLoading:i,isTyping:c}=e;return void 0===a||i||c?(0,o.createElement)(o.Fragment,null,a&&!r&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},(0,y.__)("No results available from your installed blocks.")),(0,o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"})),(0,o.createElement)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading"},(0,o.createElement)(Q.Spinner,null))):!1===a?r?null:(0,o.createElement)(Ee,null):t.length?(0,o.createElement)(fe,{downloadableItems:t,hasLocalBlocks:r},(0,o.createElement)(ge,{items:t,onSelect:l,onHover:n})):!r&&(0,o.createElement)(Ee,null)})),ye=function(){const[e,t]=(0,o.useState)(""),l=(0,Z.debounce)(t,400);return(0,o.createElement)(m.__unstableInserterMenuExtension,null,(t=>{let{onSelect:n,onHover:r,filterValue:a,hasItems:i,rootClientId:c}=t;return e!==a&&l(a),e?(0,o.createElement)(he,{onSelect:n,onHover:r,rootClientId:c,filterValue:e,hasLocalBlocks:i,isTyping:a!==e}):null}))};function ve(e){let{items:t}=e;return t.length?(0,o.createElement)("ul",{className:"block-directory-compact-list"},t.map((e=>{let{icon:t,id:l,title:n,author:r}=e;return(0,o.createElement)("li",{key:l,className:"block-directory-compact-list__item"},(0,o.createElement)(ce,{icon:t,title:n}),(0,o.createElement)("div",{className:"block-directory-compact-list__item-details"},(0,o.createElement)("div",{className:"block-directory-compact-list__item-title"},n),(0,o.createElement)("div",{className:"block-directory-compact-list__item-author"},(0,y.sprintf)(
|
11 |
/* translators: %s: Name of the block author. */
|
12 |
+
(0,y.__)("By %s"),r))))}))):null}const{PluginPrePublishPanel:Be}=null!==(pe=null===(be=window)||void 0===be||null===(ke=be.wp)||void 0===ke?void 0:ke.editPost)&&void 0!==pe?pe:{};function Ie(){const e=(0,s.useSelect)((e=>e(G).getNewBlockTypes()),[]);return e.length?(0,o.createElement)(Be,{icon:we,title:(0,y.sprintf)(// translators: %d: number of blocks (number).
|
13 |
+
(0,y._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},(0,o.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},(0,y._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),(0,o.createElement)(ve,{items:e})):null}function Ne(e){let{attributes:t,block:l,clientId:n}=e;const r=(0,s.useSelect)((e=>e(G).isInstalling(l.id)),[l.id]),{installBlockType:a}=(0,s.useDispatch)(G),{replaceBlock:i}=(0,s.useDispatch)(m.store);return(0,o.createElement)(Q.Button,{onClick:()=>a(l).then((e=>{if(e){const e=(0,c.getBlockType)(l.name),[r]=(0,c.parse)(t.originalContent);r&&e&&i(n,(0,c.createBlock)(e.name,r.attributes,r.innerBlocks))}})),disabled:r,isBusy:r,variant:"primary"},(0,y.sprintf)(
|
14 |
/* translators: %s: block name */
|
15 |
+
(0,y.__)("Install %s"),l.title))}const Te=e=>{let{originalBlock:t,...l}=e;const{originalName:n,originalUndelimitedContent:r,clientId:a}=l.attributes,{replaceBlock:i}=(0,s.useDispatch)(m.store),d=!!r,u=(0,s.useSelect)((e=>{const{canInsertBlockType:t,getBlockRootClientId:l}=e(m.store);return t("core/html",l(a))}),[a]);let p=(0,y.sprintf)(
|
16 |
/* translators: %s: block name */
|
17 |
+
(0,y.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),t.title||n);const b=[(0,o.createElement)(Ne,{key:"install",block:t,attributes:l.attributes,clientId:l.clientId})];return d&&u&&(p=(0,y.sprintf)(
|
18 |
/* translators: %s: block name */
|
19 |
+
(0,y.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),t.title||n),b.push((0,o.createElement)(Q.Button,{key:"convert",onClick:()=>{i(l.clientId,(0,c.createBlock)("core/html",{content:r}))},variant:"tertiary"},(0,y.__)("Keep as HTML")))),(0,o.createElement)("div",(0,m.useBlockProps)(),(0,o.createElement)(m.Warning,{actions:b},p),(0,o.createElement)(o.RawHTML,null,r))};(0,a.registerPlugin)("block-directory",{render:()=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(W,null),(0,o.createElement)(ye,null),(0,o.createElement)(Ie,null))}),(0,i.addFilter)("blocks.registerBlockType","block-directory/fallback",((e,t)=>{return"core/missing"!==t||(e.edit=(l=e.edit,e=>{const{originalName:t}=e.attributes,{block:n,hasPermission:r}=(0,s.useSelect)((e=>{const{getDownloadableBlocks:l}=e(G),n=l("block:"+t).filter((e=>{let{name:l}=e;return t===l}));return{hasPermission:e(J.store).canUser("read","block-directory/search"),block:n.length&&n[0]}}),[t]);return r&&n?(0,o.createElement)(Te,X({},e,{originalBlock:n})):(0,o.createElement)(l,e)})),e;var l})),(window.wp=window.wp||{}).blockDirectory=t}();
|
20 |
//# sourceMappingURL=index.min.js.map
|
build/block-directory/index.min.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"./build/block-directory/index.min.js","mappings":"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","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/compat get default export","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"element\"]","webpack://wp/external window [\"wp\",\"plugins\"]","webpack://wp/external window [\"wp\",\"hooks\"]","webpack://wp/external window [\"wp\",\"blocks\"]","webpack://wp/external window [\"wp\",\"data\"]","webpack://wp/external window [\"wp\",\"editor\"]","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/reducer.js","webpack://wp/external window [\"wp\",\"blockEditor\"]","webpack://wp/./packages/block-directory/build-module/store/utils/@wordpress/block-directory/src/store/utils/has-block-type.js","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/selectors.js","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/external window [\"wp\",\"apiFetch\"]","webpack://wp/external window [\"wp\",\"notices\"]","webpack://wp/external window [\"wp\",\"url\"]","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/load-assets.js","webpack://wp/./packages/block-directory/build-module/store/utils/@wordpress/block-directory/src/store/utils/get-plugin-url.js","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/actions.js","webpack://wp/./node_modules/tslib/tslib.es6.js","webpack://wp/./node_modules/lower-case/src/index.ts","webpack://wp/./node_modules/no-case/src/index.ts","webpack://wp/./node_modules/pascal-case/src/index.ts","webpack://wp/./node_modules/camel-case/src/index.ts","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/resolvers.js","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/index.js","webpack://wp/./packages/block-directory/build-module/components/auto-block-uninstaller/@wordpress/block-directory/src/components/auto-block-uninstaller/index.js","webpack://wp/external window [\"wp\",\"compose\"]","webpack://wp/external window [\"wp\",\"components\"]","webpack://wp/external window [\"wp\",\"coreData\"]","webpack://wp/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://wp/external window [\"wp\",\"htmlEntities\"]","webpack://wp/./packages/icons/build-module/icon/@wordpress/icons/src/icon/index.js","webpack://wp/external window [\"wp\",\"primitives\"]","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/star-filled.js","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/star-half.js","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/star-empty.js","webpack://wp/./packages/block-directory/build-module/components/block-ratings/@wordpress/block-directory/src/components/block-ratings/stars.js","webpack://wp/./packages/block-directory/build-module/components/block-ratings/@wordpress/block-directory/src/components/block-ratings/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-block-icon/@wordpress/block-directory/src/components/downloadable-block-icon/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-block-notice/@wordpress/block-directory/src/components/downloadable-block-notice/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-block-list-item/@wordpress/block-directory/src/components/downloadable-block-list-item/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-list/@wordpress/block-directory/src/components/downloadable-blocks-list/index.js","webpack://wp/external window [\"wp\",\"a11y\"]","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-panel/@wordpress/block-directory/src/components/downloadable-blocks-panel/inserter-panel.js","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/block-default.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-panel/@wordpress/block-directory/src/components/downloadable-blocks-panel/no-results.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-panel/@wordpress/block-directory/src/components/downloadable-blocks-panel/index.js","webpack://wp/./packages/block-directory/build-module/plugins/inserter-menu-downloadable-blocks-panel/@wordpress/block-directory/src/plugins/inserter-menu-downloadable-blocks-panel/index.js","webpack://wp/external window [\"wp\",\"editPost\"]","webpack://wp/./packages/block-directory/build-module/components/compact-list/@wordpress/block-directory/src/components/compact-list/index.js","webpack://wp/./packages/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/@wordpress/block-directory/src/plugins/installed-blocks-pre-publish-panel/index.js","webpack://wp/./packages/block-directory/build-module/plugins/get-install-missing/@wordpress/block-directory/src/plugins/get-install-missing/install-button.js","webpack://wp/./packages/block-directory/build-module/plugins/get-install-missing/@wordpress/block-directory/src/plugins/get-install-missing/index.js","webpack://wp/./packages/block-directory/build-module/plugins/@wordpress/block-directory/src/plugins/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"plugins\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"hooks\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blocks\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"editor\"];","/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\n\n/**\n * Reducer returning an array of downloadable blocks.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const downloadableBlocks = ( state = {}, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'FETCH_DOWNLOADABLE_BLOCKS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.filterValue ]: {\n\t\t\t\t\tisRequesting: true,\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'RECEIVE_DOWNLOADABLE_BLOCKS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.filterValue ]: {\n\t\t\t\t\tresults: action.downloadableBlocks,\n\t\t\t\t\tisRequesting: false,\n\t\t\t\t},\n\t\t\t};\n\t}\n\treturn state;\n};\n\n/**\n * Reducer managing the installation and deletion of blocks.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const blockManagement = (\n\tstate = {\n\t\tinstalledBlockTypes: [],\n\t\tisInstalling: {},\n\t},\n\taction\n) => {\n\tswitch ( action.type ) {\n\t\tcase 'ADD_INSTALLED_BLOCK_TYPE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tinstalledBlockTypes: [\n\t\t\t\t\t...state.installedBlockTypes,\n\t\t\t\t\taction.item,\n\t\t\t\t],\n\t\t\t};\n\t\tcase 'REMOVE_INSTALLED_BLOCK_TYPE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tinstalledBlockTypes: state.installedBlockTypes.filter(\n\t\t\t\t\t( blockType ) => blockType.name !== action.item.name\n\t\t\t\t),\n\t\t\t};\n\t\tcase 'SET_INSTALLING_BLOCK':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisInstalling: {\n\t\t\t\t\t...state.isInstalling,\n\t\t\t\t\t[ action.blockId ]: action.isInstalling,\n\t\t\t\t},\n\t\t\t};\n\t}\n\treturn state;\n};\n\n/**\n * Reducer returning an object of error notices.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const errorNotices = ( state = {}, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'SET_ERROR_NOTICE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.blockId ]: {\n\t\t\t\t\tmessage: action.message,\n\t\t\t\t\tisFatal: action.isFatal,\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'CLEAR_ERROR_NOTICE':\n\t\t\tconst { [ action.blockId ]: blockId, ...restState } = state;\n\t\t\treturn restState;\n\t}\n\treturn state;\n};\n\nexport default combineReducers( {\n\tdownloadableBlocks,\n\tblockManagement,\n\terrorNotices,\n} );\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blockEditor\"];","/**\n * Check if a block list contains a specific block type. Recursively searches\n * through `innerBlocks` if they exist.\n *\n * @param {Object} blockType A block object to search for.\n * @param {Object[]} blocks The list of blocks to look through.\n *\n * @return {boolean} Whether the blockType is found.\n */\nexport default function hasBlockType( blockType, blocks = [] ) {\n\tif ( ! blocks.length ) {\n\t\treturn false;\n\t}\n\tif ( blocks.some( ( { name } ) => name === blockType.name ) ) {\n\t\treturn true;\n\t}\n\tfor ( let i = 0; i < blocks.length; i++ ) {\n\t\tif ( hasBlockType( blockType, blocks[ i ].innerBlocks ) ) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n","/**\n * WordPress dependencies\n */\nimport { createRegistrySelector } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport hasBlockType from './utils/has-block-type';\n\n/**\n * Returns true if application is requesting for downloadable blocks.\n *\n * @param {Object} state Global application state.\n * @param {string} filterValue Search string.\n *\n * @return {boolean} Whether a request is in progress for the blocks list.\n */\nexport function isRequestingDownloadableBlocks( state, filterValue ) {\n\treturn state.downloadableBlocks[ filterValue ]?.isRequesting ?? false;\n}\n\n/**\n * Returns the available uninstalled blocks.\n *\n * @param {Object} state Global application state.\n * @param {string} filterValue Search string.\n *\n * @return {Array} Downloadable blocks.\n */\nexport function getDownloadableBlocks( state, filterValue ) {\n\treturn state.downloadableBlocks[ filterValue ]?.results ?? [];\n}\n\n/**\n * Returns the block types that have been installed on the server in this\n * session.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} Block type items\n */\nexport function getInstalledBlockTypes( state ) {\n\treturn state.blockManagement.installedBlockTypes;\n}\n\n/**\n * Returns block types that have been installed on the server and used in the\n * current post.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} Block type items.\n */\nexport const getNewBlockTypes = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst usedBlockTree = select( blockEditorStore ).getBlocks();\n\t\tconst installedBlockTypes = getInstalledBlockTypes( state );\n\n\t\treturn installedBlockTypes.filter( ( blockType ) =>\n\t\t\thasBlockType( blockType, usedBlockTree )\n\t\t);\n\t}\n);\n\n/**\n * Returns the block types that have been installed on the server but are not\n * used in the current post.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} Block type items.\n */\nexport const getUnusedBlockTypes = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst usedBlockTree = select( blockEditorStore ).getBlocks();\n\t\tconst installedBlockTypes = getInstalledBlockTypes( state );\n\n\t\treturn installedBlockTypes.filter(\n\t\t\t( blockType ) => ! hasBlockType( blockType, usedBlockTree )\n\t\t);\n\t}\n);\n\n/**\n * Returns true if a block plugin install is in progress.\n *\n * @param {Object} state Global application state.\n * @param {string} blockId Id of the block.\n *\n * @return {boolean} Whether this block is currently being installed.\n */\nexport function isInstalling( state, blockId ) {\n\treturn state.blockManagement.isInstalling[ blockId ] || false;\n}\n\n/**\n * Returns all block error notices.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Object with error notices.\n */\nexport function getErrorNotices( state ) {\n\treturn state.errorNotices;\n}\n\n/**\n * Returns the error notice for a given block.\n *\n * @param {Object} state Global application state.\n * @param {string} blockId The ID of the block plugin. eg: my-block\n *\n * @return {string|boolean} The error text, or false if no error.\n */\nexport function getErrorNoticeForBlock( state, blockId ) {\n\treturn state.errorNotices[ blockId ];\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"apiFetch\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"notices\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"url\"];","/**\n * WordPress dependencies\n */\nimport apiFetch from '@wordpress/api-fetch';\n\n/**\n * Load an asset for a block.\n *\n * This function returns a Promise that will resolve once the asset is loaded,\n * or in the case of Stylesheets and Inline JavaScript, will resolve immediately.\n *\n * @param {HTMLElement} el A HTML Element asset to inject.\n *\n * @return {Promise} Promise which will resolve when the asset is loaded.\n */\nexport const loadAsset = ( el ) => {\n\treturn new Promise( ( resolve, reject ) => {\n\t\t/*\n\t\t * Reconstruct the passed element, this is required as inserting the Node directly\n\t\t * won't always fire the required onload events, even if the asset wasn't already loaded.\n\t\t */\n\t\tconst newNode = document.createElement( el.nodeName );\n\n\t\t[ 'id', 'rel', 'src', 'href', 'type' ].forEach( ( attr ) => {\n\t\t\tif ( el[ attr ] ) {\n\t\t\t\tnewNode[ attr ] = el[ attr ];\n\t\t\t}\n\t\t} );\n\n\t\t// Append inline <script> contents.\n\t\tif ( el.innerHTML ) {\n\t\t\tnewNode.appendChild( document.createTextNode( el.innerHTML ) );\n\t\t}\n\n\t\tnewNode.onload = () => resolve( true );\n\t\tnewNode.onerror = () => reject( new Error( 'Error loading asset.' ) );\n\n\t\tdocument.body.appendChild( newNode );\n\n\t\t// Resolve Stylesheets and Inline JavaScript immediately.\n\t\tif (\n\t\t\t'link' === newNode.nodeName.toLowerCase() ||\n\t\t\t( 'script' === newNode.nodeName.toLowerCase() && ! newNode.src )\n\t\t) {\n\t\t\tresolve();\n\t\t}\n\t} );\n};\n\n/**\n * Load the asset files for a block\n */\nexport async function loadAssets() {\n\t/*\n\t * Fetch the current URL (post-new.php, or post.php?post=1&action=edit) and compare the\n\t * JavaScript and CSS assets loaded between the pages. This imports the required assets\n\t * for the block into the current page while not requiring that we know them up-front.\n\t * In the future this can be improved by reliance upon block.json and/or a script-loader\n\t * dependency API.\n\t */\n\tconst response = await apiFetch( {\n\t\turl: document.location.href,\n\t\tparse: false,\n\t} );\n\n\tconst data = await response.text();\n\n\tconst doc = new window.DOMParser().parseFromString( data, 'text/html' );\n\n\tconst newAssets = Array.from(\n\t\tdoc.querySelectorAll( 'link[rel=\"stylesheet\"],script' )\n\t).filter( ( asset ) => asset.id && ! document.getElementById( asset.id ) );\n\n\t/*\n\t * Load each asset in order, as they may depend upon an earlier loaded script.\n\t * Stylesheets and Inline Scripts will resolve immediately upon insertion.\n\t */\n\tfor ( const newAsset of newAssets ) {\n\t\tawait loadAsset( newAsset );\n\t}\n}\n","/**\n * Get the plugin's direct API link out of a block-directory response.\n *\n * @param {Object} block The block object\n *\n * @return {string} The plugin URL, if exists.\n */\nexport default function getPluginUrl( block ) {\n\tif ( ! block ) {\n\t\treturn false;\n\t}\n\tconst link = block.links[ 'wp:plugin' ] || block.links.self;\n\tif ( link && link.length ) {\n\t\treturn link[ 0 ].href;\n\t}\n\treturn false;\n}\n","/**\n * WordPress dependencies\n */\nimport {\n\tstore as blocksStore,\n\tunstable__bootstrapServerSideBlockDefinitions, // eslint-disable-line camelcase\n} from '@wordpress/blocks';\nimport { __, sprintf } from '@wordpress/i18n';\nimport apiFetch from '@wordpress/api-fetch';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport { loadAssets } from './load-assets';\nimport getPluginUrl from './utils/get-plugin-url';\n\n/**\n * Returns an action object used in signalling that the downloadable blocks\n * have been requested and are loading.\n *\n * @param {string} filterValue Search string.\n *\n * @return {Object} Action object.\n */\nexport function fetchDownloadableBlocks( filterValue ) {\n\treturn { type: 'FETCH_DOWNLOADABLE_BLOCKS', filterValue };\n}\n\n/**\n * Returns an action object used in signalling that the downloadable blocks\n * have been updated.\n *\n * @param {Array} downloadableBlocks Downloadable blocks.\n * @param {string} filterValue Search string.\n *\n * @return {Object} Action object.\n */\nexport function receiveDownloadableBlocks( downloadableBlocks, filterValue ) {\n\treturn {\n\t\ttype: 'RECEIVE_DOWNLOADABLE_BLOCKS',\n\t\tdownloadableBlocks,\n\t\tfilterValue,\n\t};\n}\n\n/**\n * Action triggered to install a block plugin.\n *\n * @param {Object} block The block item returned by search.\n *\n * @return {boolean} Whether the block was successfully installed & loaded.\n */\nexport const installBlockType =\n\t( block ) =>\n\tasync ( { registry, dispatch } ) => {\n\t\tconst { id, name } = block;\n\t\tlet success = false;\n\t\tdispatch.clearErrorNotice( id );\n\t\ttry {\n\t\t\tdispatch.setIsInstalling( id, true );\n\n\t\t\t// If we have a wp:plugin link, the plugin is installed but inactive.\n\t\t\tconst url = getPluginUrl( block );\n\t\t\tlet links = {};\n\t\t\tif ( url ) {\n\t\t\t\tawait apiFetch( {\n\t\t\t\t\tmethod: 'PUT',\n\t\t\t\t\turl,\n\t\t\t\t\tdata: { status: 'active' },\n\t\t\t\t} );\n\t\t\t} else {\n\t\t\t\tconst response = await apiFetch( {\n\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\tpath: 'wp/v2/plugins',\n\t\t\t\t\tdata: { slug: id, status: 'active' },\n\t\t\t\t} );\n\t\t\t\t// Add the `self` link for newly-installed blocks.\n\t\t\t\tlinks = response._links;\n\t\t\t}\n\n\t\t\tdispatch.addInstalledBlockType( {\n\t\t\t\t...block,\n\t\t\t\tlinks: { ...block.links, ...links },\n\t\t\t} );\n\n\t\t\t// Ensures that the block metadata is propagated to the editor when registered on the server.\n\t\t\tconst metadataFields = [\n\t\t\t\t'api_version',\n\t\t\t\t'title',\n\t\t\t\t'category',\n\t\t\t\t'parent',\n\t\t\t\t'icon',\n\t\t\t\t'description',\n\t\t\t\t'keywords',\n\t\t\t\t'attributes',\n\t\t\t\t'provides_context',\n\t\t\t\t'uses_context',\n\t\t\t\t'supports',\n\t\t\t\t'styles',\n\t\t\t\t'example',\n\t\t\t\t'variations',\n\t\t\t];\n\t\t\tawait apiFetch( {\n\t\t\t\tpath: addQueryArgs( `/wp/v2/block-types/${ name }`, {\n\t\t\t\t\t_fields: metadataFields,\n\t\t\t\t} ),\n\t\t\t} )\n\t\t\t\t// Ignore when the block is not registered on the server.\n\t\t\t\t.catch( () => {} )\n\t\t\t\t.then( ( response ) => {\n\t\t\t\t\tif ( ! response ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tunstable__bootstrapServerSideBlockDefinitions( {\n\t\t\t\t\t\t[ name ]: Object.fromEntries(\n\t\t\t\t\t\t\tObject.entries( response ).filter( ( [ key ] ) =>\n\t\t\t\t\t\t\t\tmetadataFields.includes( key )\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t),\n\t\t\t\t\t} );\n\t\t\t\t} );\n\n\t\t\tawait loadAssets();\n\t\t\tconst registeredBlocks = registry\n\t\t\t\t.select( blocksStore )\n\t\t\t\t.getBlockTypes();\n\t\t\tif ( ! registeredBlocks.some( ( i ) => i.name === name ) ) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t__( 'Error registering block. Try reloading the page.' )\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tregistry.dispatch( noticesStore ).createInfoNotice(\n\t\t\t\tsprintf(\n\t\t\t\t\t// translators: %s is the block title.\n\t\t\t\t\t__( 'Block %s installed and added.' ),\n\t\t\t\t\tblock.title\n\t\t\t\t),\n\t\t\t\t{\n\t\t\t\t\tspeak: true,\n\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t}\n\t\t\t);\n\t\t\tsuccess = true;\n\t\t} catch ( error ) {\n\t\t\tlet message = error.message || __( 'An error occurred.' );\n\n\t\t\t// Errors we throw are fatal.\n\t\t\tlet isFatal = error instanceof Error;\n\n\t\t\t// Specific API errors that are fatal.\n\t\t\tconst fatalAPIErrors = {\n\t\t\t\tfolder_exists: __(\n\t\t\t\t\t'This block is already installed. Try reloading the page.'\n\t\t\t\t),\n\t\t\t\tunable_to_connect_to_filesystem: __(\n\t\t\t\t\t'Error installing block. You can reload the page and try again.'\n\t\t\t\t),\n\t\t\t};\n\n\t\t\tif ( fatalAPIErrors[ error.code ] ) {\n\t\t\t\tisFatal = true;\n\t\t\t\tmessage = fatalAPIErrors[ error.code ];\n\t\t\t}\n\n\t\t\tdispatch.setErrorNotice( id, message, isFatal );\n\t\t\tregistry.dispatch( noticesStore ).createErrorNotice( message, {\n\t\t\t\tspeak: true,\n\t\t\t\tisDismissible: true,\n\t\t\t} );\n\t\t}\n\t\tdispatch.setIsInstalling( id, false );\n\t\treturn success;\n\t};\n\n/**\n * Action triggered to uninstall a block plugin.\n *\n * @param {Object} block The blockType object.\n */\nexport const uninstallBlockType =\n\t( block ) =>\n\tasync ( { registry, dispatch } ) => {\n\t\ttry {\n\t\t\tconst url = getPluginUrl( block );\n\t\t\tawait apiFetch( {\n\t\t\t\tmethod: 'PUT',\n\t\t\t\turl,\n\t\t\t\tdata: { status: 'inactive' },\n\t\t\t} );\n\t\t\tawait apiFetch( {\n\t\t\t\tmethod: 'DELETE',\n\t\t\t\turl,\n\t\t\t} );\n\t\t\tdispatch.removeInstalledBlockType( block );\n\t\t} catch ( error ) {\n\t\t\tregistry\n\t\t\t\t.dispatch( noticesStore )\n\t\t\t\t.createErrorNotice(\n\t\t\t\t\terror.message || __( 'An error occurred.' )\n\t\t\t\t);\n\t\t}\n\t};\n\n/**\n * Returns an action object used to add a block type to the \"newly installed\"\n * tracking list.\n *\n * @param {Object} item The block item with the block id and name.\n *\n * @return {Object} Action object.\n */\nexport function addInstalledBlockType( item ) {\n\treturn {\n\t\ttype: 'ADD_INSTALLED_BLOCK_TYPE',\n\t\titem,\n\t};\n}\n\n/**\n * Returns an action object used to remove a block type from the \"newly installed\"\n * tracking list.\n *\n * @param {string} item The block item with the block id and name.\n *\n * @return {Object} Action object.\n */\nexport function removeInstalledBlockType( item ) {\n\treturn {\n\t\ttype: 'REMOVE_INSTALLED_BLOCK_TYPE',\n\t\titem,\n\t};\n}\n\n/**\n * Returns an action object used to indicate install in progress.\n *\n * @param {string} blockId\n * @param {boolean} isInstalling\n *\n * @return {Object} Action object.\n */\nexport function setIsInstalling( blockId, isInstalling ) {\n\treturn {\n\t\ttype: 'SET_INSTALLING_BLOCK',\n\t\tblockId,\n\t\tisInstalling,\n\t};\n}\n\n/**\n * Sets an error notice to be displayed to the user for a given block.\n *\n * @param {string} blockId The ID of the block plugin. eg: my-block\n * @param {string} message The message shown in the notice.\n * @param {boolean} isFatal Whether the user can recover from the error.\n *\n * @return {Object} Action object.\n */\nexport function setErrorNotice( blockId, message, isFatal = false ) {\n\treturn {\n\t\ttype: 'SET_ERROR_NOTICE',\n\t\tblockId,\n\t\tmessage,\n\t\tisFatal,\n\t};\n}\n\n/**\n * Sets the error notice to empty for specific block.\n *\n * @param {string} blockId The ID of the block plugin. eg: my-block\n *\n * @return {Object} Action object.\n */\nexport function clearErrorNotice( blockId ) {\n\treturn {\n\t\ttype: 'CLEAR_ERROR_NOTICE',\n\t\tblockId,\n\t};\n}\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || from);\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n 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); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","/**\n * Locale character mapping rules.\n */\ninterface Locale {\n regexp: RegExp;\n map: Record<string, string>;\n}\n\n/**\n * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt\n */\nconst SUPPORTED_LOCALE: Record<string, Locale> = {\n tr: {\n regexp: /\\u0130|\\u0049|\\u0049\\u0307/g,\n map: {\n İ: \"\\u0069\",\n I: \"\\u0131\",\n İ: \"\\u0069\",\n },\n },\n az: {\n regexp: /\\u0130/g,\n map: {\n İ: \"\\u0069\",\n I: \"\\u0131\",\n İ: \"\\u0069\",\n },\n },\n lt: {\n regexp: /\\u0049|\\u004A|\\u012E|\\u00CC|\\u00CD|\\u0128/g,\n map: {\n I: \"\\u0069\\u0307\",\n J: \"\\u006A\\u0307\",\n Į: \"\\u012F\\u0307\",\n Ì: \"\\u0069\\u0307\\u0300\",\n Í: \"\\u0069\\u0307\\u0301\",\n Ĩ: \"\\u0069\\u0307\\u0303\",\n },\n },\n};\n\n/**\n * Localized lower case.\n */\nexport function localeLowerCase(str: string, locale: string) {\n const lang = SUPPORTED_LOCALE[locale.toLowerCase()];\n if (lang) return lowerCase(str.replace(lang.regexp, (m) => lang.map[m]));\n return lowerCase(str);\n}\n\n/**\n * Lower case as a function.\n */\nexport function lowerCase(str: string) {\n return str.toLowerCase();\n}\n","import { lowerCase } from \"lower-case\";\n\nexport interface Options {\n splitRegexp?: RegExp | RegExp[];\n stripRegexp?: RegExp | RegExp[];\n delimiter?: string;\n transform?: (part: string, index: number, parts: string[]) => string;\n}\n\n// Support camel case (\"camelCase\" -> \"camel Case\" and \"CAMELCase\" -> \"CAMEL Case\").\nconst DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];\n\n// Remove all non-word characters.\nconst DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;\n\n/**\n * Normalize the string into something other libraries can manipulate easier.\n */\nexport function noCase(input: string, options: Options = {}) {\n const {\n splitRegexp = DEFAULT_SPLIT_REGEXP,\n stripRegexp = DEFAULT_STRIP_REGEXP,\n transform = lowerCase,\n delimiter = \" \",\n } = options;\n\n let result = replace(\n replace(input, splitRegexp, \"$1\\0$2\"),\n stripRegexp,\n \"\\0\"\n );\n let start = 0;\n let end = result.length;\n\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === \"\\0\") start++;\n while (result.charAt(end - 1) === \"\\0\") end--;\n\n // Transform each token independently.\n return result.slice(start, end).split(\"\\0\").map(transform).join(delimiter);\n}\n\n/**\n * Replace `re` in the input string with the replacement value.\n */\nfunction replace(input: string, re: RegExp | RegExp[], value: string) {\n if (re instanceof RegExp) return input.replace(re, value);\n return re.reduce((input, re) => input.replace(re, value), input);\n}\n","import { noCase, Options } from \"no-case\";\n\nexport { Options };\n\nexport function pascalCaseTransform(input: string, index: number) {\n const firstChar = input.charAt(0);\n const lowerChars = input.substr(1).toLowerCase();\n if (index > 0 && firstChar >= \"0\" && firstChar <= \"9\") {\n return `_${firstChar}${lowerChars}`;\n }\n return `${firstChar.toUpperCase()}${lowerChars}`;\n}\n\nexport function pascalCaseTransformMerge(input: string) {\n return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase();\n}\n\nexport function pascalCase(input: string, options: Options = {}) {\n return noCase(input, {\n delimiter: \"\",\n transform: pascalCaseTransform,\n ...options,\n });\n}\n","import {\n pascalCase,\n pascalCaseTransform,\n pascalCaseTransformMerge,\n Options,\n} from \"pascal-case\";\n\nexport { Options };\n\nexport function camelCaseTransform(input: string, index: number) {\n if (index === 0) return input.toLowerCase();\n return pascalCaseTransform(input, index);\n}\n\nexport function camelCaseTransformMerge(input: string, index: number) {\n if (index === 0) return input.toLowerCase();\n return pascalCaseTransformMerge(input);\n}\n\nexport function camelCase(input: string, options: Options = {}) {\n return pascalCase(input, {\n transform: camelCaseTransform,\n ...options,\n });\n}\n","/**\n * External dependencies\n */\nimport { camelCase } from 'change-case';\n\n/**\n * WordPress dependencies\n */\nimport apiFetch from '@wordpress/api-fetch';\n\n/**\n * Internal dependencies\n */\nimport { fetchDownloadableBlocks, receiveDownloadableBlocks } from './actions';\n\nexport const getDownloadableBlocks =\n\t( filterValue ) =>\n\tasync ( { dispatch } ) => {\n\t\tif ( ! filterValue ) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tdispatch( fetchDownloadableBlocks( filterValue ) );\n\t\t\tconst results = await apiFetch( {\n\t\t\t\tpath: `wp/v2/block-directory/search?term=${ filterValue }`,\n\t\t\t} );\n\t\t\tconst blocks = results.map( ( result ) =>\n\t\t\t\tObject.fromEntries(\n\t\t\t\t\tObject.entries( result ).map( ( [ key, value ] ) => [\n\t\t\t\t\t\tcamelCase( key ),\n\t\t\t\t\t\tvalue,\n\t\t\t\t\t] )\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tdispatch( receiveDownloadableBlocks( blocks, filterValue ) );\n\t\t} catch {}\n\t};\n","/**\n * WordPress dependencies\n */\nimport { createReduxStore, register } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as selectors from './selectors';\nimport * as actions from './actions';\nimport * as resolvers from './resolvers';\n\n/**\n * Module Constants\n */\nconst STORE_NAME = 'core/block-directory';\n\n/**\n * Block editor data store configuration.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore\n *\n * @type {Object}\n */\nexport const storeConfig = {\n\treducer,\n\tselectors,\n\tactions,\n\tresolvers,\n};\n\n/**\n * Store definition for the block directory namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, storeConfig );\n\nregister( store );\n","/**\n * WordPress dependencies\n */\nimport { unregisterBlockType } from '@wordpress/blocks';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { useEffect } from '@wordpress/element';\nimport { store as editorStore } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { store as blockDirectoryStore } from '../../store';\n\nexport default function AutoBlockUninstaller() {\n\tconst { uninstallBlockType } = useDispatch( blockDirectoryStore );\n\n\tconst shouldRemoveBlockTypes = useSelect( ( select ) => {\n\t\tconst { isAutosavingPost, isSavingPost } = select( editorStore );\n\t\treturn isSavingPost() && ! isAutosavingPost();\n\t}, [] );\n\n\tconst unusedBlockTypes = useSelect(\n\t\t( select ) => select( blockDirectoryStore ).getUnusedBlockTypes(),\n\t\t[]\n\t);\n\n\tuseEffect( () => {\n\t\tif ( shouldRemoveBlockTypes && unusedBlockTypes.length ) {\n\t\t\tunusedBlockTypes.forEach( ( blockType ) => {\n\t\t\t\tuninstallBlockType( blockType );\n\t\t\t\tunregisterBlockType( blockType.name );\n\t\t\t} );\n\t\t}\n\t}, [ shouldRemoveBlockTypes ] );\n\n\treturn null;\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"compose\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"coreData\"];","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"htmlEntities\"];","/**\n * WordPress dependencies\n */\nimport { cloneElement } from '@wordpress/element';\n\n/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */\n\n/**\n * Return an SVG icon.\n *\n * @param {IconProps} props icon is the SVG component to render\n * size is a number specifiying the icon size in pixels\n * Other props will be passed to wrapped SVG component\n *\n * @return {JSX.Element} Icon component\n */\nfunction Icon( { icon, size = 24, ...props } ) {\n\treturn cloneElement( icon, {\n\t\twidth: size,\n\t\theight: size,\n\t\t...props,\n\t} );\n}\n\nexport default Icon;\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"primitives\"];","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst starFilled = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z\" />\n\t</SVG>\n);\n\nexport default starFilled;\n","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst starHalf = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z\" />\n\t</SVG>\n);\n\nexport default starHalf;\n","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst starEmpty = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path\n\t\t\tfillRule=\"evenodd\"\n\t\t\td=\"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z\"\n\t\t\tclipRule=\"evenodd\"\n\t\t/>\n\t</SVG>\n);\n\nexport default starEmpty;\n","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { Icon, starEmpty, starFilled, starHalf } from '@wordpress/icons';\n\nfunction Stars( { rating } ) {\n\tconst stars = Math.round( rating / 0.5 ) * 0.5;\n\n\tconst fullStarCount = Math.floor( rating );\n\tconst halfStarCount = Math.ceil( rating - fullStarCount );\n\tconst emptyStarCount = 5 - ( fullStarCount + halfStarCount );\n\n\treturn (\n\t\t<span\n\t\t\taria-label={ sprintf(\n\t\t\t\t/* translators: %s: number of stars. */\n\t\t\t\t__( '%s out of 5 stars' ),\n\t\t\t\tstars\n\t\t\t) }\n\t\t>\n\t\t\t{ Array.from( { length: fullStarCount } ).map( ( _, i ) => (\n\t\t\t\t<Icon\n\t\t\t\t\tkey={ `full_stars_${ i }` }\n\t\t\t\t\tclassName=\"block-directory-block-ratings__star-full\"\n\t\t\t\t\ticon={ starFilled }\n\t\t\t\t\tsize={ 16 }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t\t{ Array.from( { length: halfStarCount } ).map( ( _, i ) => (\n\t\t\t\t<Icon\n\t\t\t\t\tkey={ `half_stars_${ i }` }\n\t\t\t\t\tclassName=\"block-directory-block-ratings__star-half-full\"\n\t\t\t\t\ticon={ starHalf }\n\t\t\t\t\tsize={ 16 }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t\t{ Array.from( { length: emptyStarCount } ).map( ( _, i ) => (\n\t\t\t\t<Icon\n\t\t\t\t\tkey={ `empty_stars_${ i }` }\n\t\t\t\t\tclassName=\"block-directory-block-ratings__star-empty\"\n\t\t\t\t\ticon={ starEmpty }\n\t\t\t\t\tsize={ 16 }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t</span>\n\t);\n}\n\nexport default Stars;\n","/**\n * Internal dependencies\n */\nimport Stars from './stars';\n\nexport const BlockRatings = ( { rating } ) => (\n\t<span className=\"block-directory-block-ratings\">\n\t\t<Stars rating={ rating } />\n\t</span>\n);\n\nexport default BlockRatings;\n","/**\n * WordPress dependencies\n */\nimport { BlockIcon } from '@wordpress/block-editor';\n\nfunction DownloadableBlockIcon( { icon } ) {\n\tconst className = 'block-directory-downloadable-block-icon';\n\treturn icon.match( /\\.(jpeg|jpg|gif|png|svg)(?:\\?.*)?$/ ) !== null ? (\n\t\t<img className={ className } src={ icon } alt=\"\" />\n\t) : (\n\t\t<BlockIcon className={ className } icon={ icon } showColors />\n\t);\n}\n\nexport default DownloadableBlockIcon;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as blockDirectoryStore } from '../../store';\n\nexport const DownloadableBlockNotice = ( { block } ) => {\n\tconst errorNotice = useSelect(\n\t\t( select ) =>\n\t\t\tselect( blockDirectoryStore ).getErrorNoticeForBlock( block.id ),\n\t\t[ block ]\n\t);\n\n\tif ( ! errorNotice ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className=\"block-directory-downloadable-block-notice\">\n\t\t\t<div className=\"block-directory-downloadable-block-notice__content\">\n\t\t\t\t{ errorNotice.message }\n\t\t\t\t{ errorNotice.isFatal\n\t\t\t\t\t? ' ' + __( 'Try reloading the page.' )\n\t\t\t\t\t: null }\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DownloadableBlockNotice;\n","/**\n * WordPress dependencies\n */\nimport { __, _n, sprintf } from '@wordpress/i18n';\nimport {\n\tButton,\n\tSpinner,\n\tVisuallyHidden,\n\t__unstableCompositeItem as CompositeItem,\n} from '@wordpress/components';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { getBlockType } from '@wordpress/blocks';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport BlockRatings from '../block-ratings';\nimport DownloadableBlockIcon from '../downloadable-block-icon';\nimport DownloadableBlockNotice from '../downloadable-block-notice';\nimport { store as blockDirectoryStore } from '../../store';\n\n// Return the appropriate block item label, given the block data and status.\nfunction getDownloadableBlockLabel(\n\t{ title, rating, ratingCount },\n\t{ hasNotice, isInstalled, isInstalling }\n) {\n\tconst stars = Math.round( rating / 0.5 ) * 0.5;\n\n\tif ( ! isInstalled && hasNotice ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Retry installing %s.', decodeEntities( title ) );\n\t}\n\n\tif ( isInstalled ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Add %s.', decodeEntities( title ) );\n\t}\n\n\tif ( isInstalling ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Installing %s.', decodeEntities( title ) );\n\t}\n\n\t// No ratings yet, just use the title.\n\tif ( ratingCount < 1 ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Install %s.', decodeEntities( title ) );\n\t}\n\n\treturn sprintf(\n\t\t/* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */\n\t\t_n(\n\t\t\t'Install %1$s. %2$s stars with %3$s review.',\n\t\t\t'Install %1$s. %2$s stars with %3$s reviews.',\n\t\t\tratingCount\n\t\t),\n\t\tdecodeEntities( title ),\n\t\tstars,\n\t\tratingCount\n\t);\n}\n\nfunction DownloadableBlockListItem( { composite, item, onClick } ) {\n\tconst { author, description, icon, rating, title } = item;\n\t// getBlockType returns a block object if this block exists, or null if not.\n\tconst isInstalled = !! getBlockType( item.name );\n\n\tconst { hasNotice, isInstalling, isInstallable } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getErrorNoticeForBlock, isInstalling: isBlockInstalling } =\n\t\t\t\tselect( blockDirectoryStore );\n\t\t\tconst notice = getErrorNoticeForBlock( item.id );\n\t\t\tconst hasFatal = notice && notice.isFatal;\n\t\t\treturn {\n\t\t\t\thasNotice: !! notice,\n\t\t\t\tisInstalling: isBlockInstalling( item.id ),\n\t\t\t\tisInstallable: ! hasFatal,\n\t\t\t};\n\t\t},\n\t\t[ item ]\n\t);\n\n\tlet statusText = '';\n\tif ( isInstalled ) {\n\t\tstatusText = __( 'Installed!' );\n\t} else if ( isInstalling ) {\n\t\tstatusText = __( 'Installing…' );\n\t}\n\n\treturn (\n\t\t<CompositeItem\n\t\t\t__experimentalIsFocusable\n\t\t\trole=\"option\"\n\t\t\tas={ Button }\n\t\t\t{ ...composite }\n\t\t\tclassName=\"block-directory-downloadable-block-list-item\"\n\t\t\tonClick={ ( event ) => {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tonClick();\n\t\t\t} }\n\t\t\tisBusy={ isInstalling }\n\t\t\tdisabled={ isInstalling || ! isInstallable }\n\t\t\tlabel={ getDownloadableBlockLabel( item, {\n\t\t\t\thasNotice,\n\t\t\t\tisInstalled,\n\t\t\t\tisInstalling,\n\t\t\t} ) }\n\t\t\tshowTooltip={ true }\n\t\t\ttooltipPosition=\"top center\"\n\t\t>\n\t\t\t<div className=\"block-directory-downloadable-block-list-item__icon\">\n\t\t\t\t<DownloadableBlockIcon icon={ icon } title={ title } />\n\t\t\t\t{ isInstalling ? (\n\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__spinner\">\n\t\t\t\t\t\t<Spinner />\n\t\t\t\t\t</span>\n\t\t\t\t) : (\n\t\t\t\t\t<BlockRatings rating={ rating } />\n\t\t\t\t) }\n\t\t\t</div>\n\t\t\t<span className=\"block-directory-downloadable-block-list-item__details\">\n\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__title\">\n\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\tsprintf(\n\t\t\t\t\t\t\t/* translators: %1$s: block title, %2$s: author name. */\n\t\t\t\t\t\t\t__( '%1$s <span>by %2$s</span>' ),\n\t\t\t\t\t\t\tdecodeEntities( title ),\n\t\t\t\t\t\t\tauthor\n\t\t\t\t\t\t),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tspan: (\n\t\t\t\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__author\" />\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t}\n\t\t\t\t\t) }\n\t\t\t\t</span>\n\t\t\t\t{ hasNotice ? (\n\t\t\t\t\t<DownloadableBlockNotice block={ item } />\n\t\t\t\t) : (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__desc\">\n\t\t\t\t\t\t\t{ !! statusText\n\t\t\t\t\t\t\t\t? statusText\n\t\t\t\t\t\t\t\t: decodeEntities( description ) }\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{ isInstallable &&\n\t\t\t\t\t\t\t! ( isInstalled || isInstalling ) && (\n\t\t\t\t\t\t\t\t<VisuallyHidden>\n\t\t\t\t\t\t\t\t\t{ __( 'Install block' ) }\n\t\t\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</span>\n\t\t</CompositeItem>\n\t);\n}\n\nexport default DownloadableBlockListItem;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\t__unstableComposite as Composite,\n\t__unstableUseCompositeState as useCompositeState,\n} from '@wordpress/components';\nimport { getBlockType } from '@wordpress/blocks';\nimport { useDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlockListItem from '../downloadable-block-list-item';\nimport { store as blockDirectoryStore } from '../../store';\n\nconst noop = () => {};\n\nfunction DownloadableBlocksList( { items, onHover = noop, onSelect } ) {\n\tconst composite = useCompositeState();\n\tconst { installBlockType } = useDispatch( blockDirectoryStore );\n\n\tif ( ! items.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Composite\n\t\t\t{ ...composite }\n\t\t\trole=\"listbox\"\n\t\t\tclassName=\"block-directory-downloadable-blocks-list\"\n\t\t\taria-label={ __( 'Blocks available for install' ) }\n\t\t>\n\t\t\t{ items.map( ( item ) => {\n\t\t\t\treturn (\n\t\t\t\t\t<DownloadableBlockListItem\n\t\t\t\t\t\tkey={ item.id }\n\t\t\t\t\t\tcomposite={ composite }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t// Check if the block is registered (`getBlockType`\n\t\t\t\t\t\t\t// will return an object). If so, insert the block.\n\t\t\t\t\t\t\t// This prevents installing existing plugins.\n\t\t\t\t\t\t\tif ( getBlockType( item.name ) ) {\n\t\t\t\t\t\t\t\tonSelect( item );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tinstallBlockType( item ).then( ( success ) => {\n\t\t\t\t\t\t\t\t\tif ( success ) {\n\t\t\t\t\t\t\t\t\t\tonSelect( item );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonHover( null );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tonHover={ onHover }\n\t\t\t\t\t\titem={ item }\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t} ) }\n\t\t</Composite>\n\t);\n}\n\nexport default DownloadableBlocksList;\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"a11y\"];","/**\n * WordPress dependencies\n */\nimport { __, _n, sprintf } from '@wordpress/i18n';\nimport { useEffect } from '@wordpress/element';\nimport { speak } from '@wordpress/a11y';\n\nfunction DownloadableBlocksInserterPanel( {\n\tchildren,\n\tdownloadableItems,\n\thasLocalBlocks,\n} ) {\n\tconst count = downloadableItems.length;\n\tuseEffect( () => {\n\t\tspeak(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %d: number of available blocks. */\n\t\t\t\t_n(\n\t\t\t\t\t'%d additional block is available to install.',\n\t\t\t\t\t'%d additional blocks are available to install.',\n\t\t\t\t\tcount\n\t\t\t\t),\n\t\t\t\tcount\n\t\t\t)\n\t\t);\n\t}, [ count ] );\n\n\treturn (\n\t\t<>\n\t\t\t{ ! hasLocalBlocks && (\n\t\t\t\t<p className=\"block-directory-downloadable-blocks-panel__no-local\">\n\t\t\t\t\t{ __( 'No results available from your installed blocks.' ) }\n\t\t\t\t</p>\n\t\t\t) }\n\n\t\t\t<div className=\"block-editor-inserter__quick-inserter-separator\" />\n\n\t\t\t<div className=\"block-directory-downloadable-blocks-panel\">\n\t\t\t\t<div className=\"block-directory-downloadable-blocks-panel__header\">\n\t\t\t\t\t<h2 className=\"block-directory-downloadable-blocks-panel__title\">\n\t\t\t\t\t\t{ __( 'Available to install' ) }\n\t\t\t\t\t</h2>\n\t\t\t\t\t<p className=\"block-directory-downloadable-blocks-panel__description\">\n\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t'Select a block to install and add it to your post.'\n\t\t\t\t\t\t) }\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t{ children }\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default DownloadableBlocksInserterPanel;\n","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst blockDefault = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z\" />\n\t</SVG>\n);\n\nexport default blockDefault;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Icon, blockDefault } from '@wordpress/icons';\nimport { Tip, ExternalLink } from '@wordpress/components';\n\nfunction DownloadableBlocksNoResults() {\n\treturn (\n\t\t<>\n\t\t\t<div className=\"block-editor-inserter__no-results\">\n\t\t\t\t<Icon\n\t\t\t\t\tclassName=\"block-editor-inserter__no-results-icon\"\n\t\t\t\t\ticon={ blockDefault }\n\t\t\t\t/>\n\t\t\t\t<p>{ __( 'No results found.' ) }</p>\n\t\t\t</div>\n\t\t\t<div className=\"block-editor-inserter__tips\">\n\t\t\t\t<Tip>\n\t\t\t\t\t{ __( 'Interested in creating your own block?' ) }\n\t\t\t\t\t<br />\n\t\t\t\t\t<ExternalLink href=\"https://developer.wordpress.org/block-editor/\">\n\t\t\t\t\t\t{ __( 'Get started here' ) }.\n\t\t\t\t\t</ExternalLink>\n\t\t\t\t</Tip>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default DownloadableBlocksNoResults;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Spinner } from '@wordpress/components';\nimport { compose } from '@wordpress/compose';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { withSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlocksList from '../downloadable-blocks-list';\nimport DownloadableBlocksInserterPanel from './inserter-panel';\nimport DownloadableBlocksNoResults from './no-results';\nimport { store as blockDirectoryStore } from '../../store';\n\nfunction DownloadableBlocksPanel( {\n\tdownloadableItems,\n\tonSelect,\n\tonHover,\n\thasLocalBlocks,\n\thasPermission,\n\tisLoading,\n\tisTyping,\n} ) {\n\tif ( typeof hasPermission === 'undefined' || isLoading || isTyping ) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{ hasPermission && ! hasLocalBlocks && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<p className=\"block-directory-downloadable-blocks-panel__no-local\">\n\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t'No results available from your installed blocks.'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<div className=\"block-editor-inserter__quick-inserter-separator\" />\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t\t<div className=\"block-directory-downloadable-blocks-panel has-blocks-loading\">\n\t\t\t\t\t<Spinner />\n\t\t\t\t</div>\n\t\t\t</>\n\t\t);\n\t}\n\n\tif ( false === hasPermission ) {\n\t\tif ( ! hasLocalBlocks ) {\n\t\t\treturn <DownloadableBlocksNoResults />;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\treturn !! downloadableItems.length ? (\n\t\t<DownloadableBlocksInserterPanel\n\t\t\tdownloadableItems={ downloadableItems }\n\t\t\thasLocalBlocks={ hasLocalBlocks }\n\t\t>\n\t\t\t<DownloadableBlocksList\n\t\t\t\titems={ downloadableItems }\n\t\t\t\tonSelect={ onSelect }\n\t\t\t\tonHover={ onHover }\n\t\t\t/>\n\t\t</DownloadableBlocksInserterPanel>\n\t) : (\n\t\t! hasLocalBlocks && <DownloadableBlocksNoResults />\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select, { filterValue, rootClientId = null } ) => {\n\t\tconst { getDownloadableBlocks, isRequestingDownloadableBlocks } =\n\t\t\tselect( blockDirectoryStore );\n\t\tconst { canInsertBlockType } = select( blockEditorStore );\n\n\t\tconst hasPermission = select( coreStore ).canUser(\n\t\t\t'read',\n\t\t\t'block-directory/search'\n\t\t);\n\n\t\tfunction getInstallableBlocks( term ) {\n\t\t\treturn getDownloadableBlocks( term ).filter( ( block ) =>\n\t\t\t\tcanInsertBlockType( block, rootClientId, true )\n\t\t\t);\n\t\t}\n\n\t\tconst downloadableItems = hasPermission\n\t\t\t? getInstallableBlocks( filterValue )\n\t\t\t: [];\n\t\tconst isLoading = isRequestingDownloadableBlocks( filterValue );\n\n\t\treturn {\n\t\t\tdownloadableItems,\n\t\t\thasPermission,\n\t\t\tisLoading,\n\t\t};\n\t} ),\n] )( DownloadableBlocksPanel );\n","/**\n * WordPress dependencies\n */\nimport { __unstableInserterMenuExtension } from '@wordpress/block-editor';\nimport { debounce } from '@wordpress/compose';\nimport { useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlocksPanel from '../../components/downloadable-blocks-panel';\n\nfunction InserterMenuDownloadableBlocksPanel() {\n\tconst [ debouncedFilterValue, setFilterValue ] = useState( '' );\n\tconst debouncedSetFilterValue = debounce( setFilterValue, 400 );\n\n\treturn (\n\t\t<__unstableInserterMenuExtension>\n\t\t\t{ ( {\n\t\t\t\tonSelect,\n\t\t\t\tonHover,\n\t\t\t\tfilterValue,\n\t\t\t\thasItems,\n\t\t\t\trootClientId,\n\t\t\t} ) => {\n\t\t\t\tif ( debouncedFilterValue !== filterValue ) {\n\t\t\t\t\tdebouncedSetFilterValue( filterValue );\n\t\t\t\t}\n\n\t\t\t\tif ( ! debouncedFilterValue ) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\treturn (\n\t\t\t\t\t<DownloadableBlocksPanel\n\t\t\t\t\t\tonSelect={ onSelect }\n\t\t\t\t\t\tonHover={ onHover }\n\t\t\t\t\t\trootClientId={ rootClientId }\n\t\t\t\t\t\tfilterValue={ debouncedFilterValue }\n\t\t\t\t\t\thasLocalBlocks={ hasItems }\n\t\t\t\t\t\tisTyping={ filterValue !== debouncedFilterValue }\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t} }\n\t\t</__unstableInserterMenuExtension>\n\t);\n}\n\nexport default InserterMenuDownloadableBlocksPanel;\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"editPost\"];","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlockIcon from '../downloadable-block-icon';\n\nexport default function CompactList( { items } ) {\n\tif ( ! items.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<ul className=\"block-directory-compact-list\">\n\t\t\t{ items.map( ( { icon, id, title, author } ) => (\n\t\t\t\t<li key={ id } className=\"block-directory-compact-list__item\">\n\t\t\t\t\t<DownloadableBlockIcon icon={ icon } title={ title } />\n\n\t\t\t\t\t<div className=\"block-directory-compact-list__item-details\">\n\t\t\t\t\t\t<div className=\"block-directory-compact-list__item-title\">\n\t\t\t\t\t\t\t{ title }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"block-directory-compact-list__item-author\">\n\t\t\t\t\t\t\t{ sprintf(\n\t\t\t\t\t\t\t\t/* translators: %s: Name of the block author. */\n\t\t\t\t\t\t\t\t__( 'By %s' ),\n\t\t\t\t\t\t\t\tauthor\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t) ) }\n\t\t</ul>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { _n, sprintf } from '@wordpress/i18n';\nimport { PluginPrePublishPanel } from '@wordpress/edit-post';\nimport { useSelect } from '@wordpress/data';\nimport { blockDefault } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport CompactList from '../../components/compact-list';\nimport { store as blockDirectoryStore } from '../../store';\n\nexport default function InstalledBlocksPrePublishPanel() {\n\tconst newBlockTypes = useSelect(\n\t\t( select ) => select( blockDirectoryStore ).getNewBlockTypes(),\n\t\t[]\n\t);\n\n\tif ( ! newBlockTypes.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PluginPrePublishPanel\n\t\t\ticon={ blockDefault }\n\t\t\ttitle={ sprintf(\n\t\t\t\t// translators: %d: number of blocks (number).\n\t\t\t\t_n(\n\t\t\t\t\t'Added: %d block',\n\t\t\t\t\t'Added: %d blocks',\n\t\t\t\t\tnewBlockTypes.length\n\t\t\t\t),\n\t\t\t\tnewBlockTypes.length\n\t\t\t) }\n\t\t\tinitialOpen={ true }\n\t\t>\n\t\t\t<p className=\"installed-blocks-pre-publish-panel__copy\">\n\t\t\t\t{ _n(\n\t\t\t\t\t'The following block has been added to your site.',\n\t\t\t\t\t'The following blocks have been added to your site.',\n\t\t\t\t\tnewBlockTypes.length\n\t\t\t\t) }\n\t\t\t</p>\n\t\t\t<CompactList items={ newBlockTypes } />\n\t\t</PluginPrePublishPanel>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { createBlock, getBlockType, parse } from '@wordpress/blocks';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport { store as blockDirectoryStore } from '../../store';\n\nexport default function InstallButton( { attributes, block, clientId } ) {\n\tconst isInstallingBlock = useSelect(\n\t\t( select ) => select( blockDirectoryStore ).isInstalling( block.id ),\n\t\t[ block.id ]\n\t);\n\tconst { installBlockType } = useDispatch( blockDirectoryStore );\n\tconst { replaceBlock } = useDispatch( blockEditorStore );\n\n\treturn (\n\t\t<Button\n\t\t\tonClick={ () =>\n\t\t\t\tinstallBlockType( block ).then( ( success ) => {\n\t\t\t\t\tif ( success ) {\n\t\t\t\t\t\tconst blockType = getBlockType( block.name );\n\t\t\t\t\t\tconst [ originalBlock ] = parse(\n\t\t\t\t\t\t\tattributes.originalContent\n\t\t\t\t\t\t);\n\t\t\t\t\t\tif ( originalBlock && blockType ) {\n\t\t\t\t\t\t\treplaceBlock(\n\t\t\t\t\t\t\t\tclientId,\n\t\t\t\t\t\t\t\tcreateBlock(\n\t\t\t\t\t\t\t\t\tblockType.name,\n\t\t\t\t\t\t\t\t\toriginalBlock.attributes,\n\t\t\t\t\t\t\t\t\toriginalBlock.innerBlocks\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} )\n\t\t\t}\n\t\t\tdisabled={ isInstallingBlock }\n\t\t\tisBusy={ isInstallingBlock }\n\t\t\tvariant=\"primary\"\n\t\t>\n\t\t\t{ sprintf(\n\t\t\t\t/* translators: %s: block name */\n\t\t\t\t__( 'Install %s' ),\n\t\t\t\tblock.title\n\t\t\t) }\n\t\t</Button>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { createBlock } from '@wordpress/blocks';\nimport { RawHTML } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport {\n\tWarning,\n\tuseBlockProps,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport InstallButton from './install-button';\nimport { store as blockDirectoryStore } from '../../store';\n\nconst getInstallMissing = ( OriginalComponent ) => ( props ) => {\n\tconst { originalName } = props.attributes;\n\t// Disable reason: This is a valid component, but it's mistaken for a callback.\n\t// eslint-disable-next-line react-hooks/rules-of-hooks\n\tconst { block, hasPermission } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getDownloadableBlocks } = select( blockDirectoryStore );\n\t\t\tconst blocks = getDownloadableBlocks(\n\t\t\t\t'block:' + originalName\n\t\t\t).filter( ( { name } ) => originalName === name );\n\t\t\treturn {\n\t\t\t\thasPermission: select( coreStore ).canUser(\n\t\t\t\t\t'read',\n\t\t\t\t\t'block-directory/search'\n\t\t\t\t),\n\t\t\t\tblock: blocks.length && blocks[ 0 ],\n\t\t\t};\n\t\t},\n\t\t[ originalName ]\n\t);\n\n\t// The user can't install blocks, or the block isn't available for download.\n\tif ( ! hasPermission || ! block ) {\n\t\treturn <OriginalComponent { ...props } />;\n\t}\n\n\treturn <ModifiedWarning { ...props } originalBlock={ block } />;\n};\n\nconst ModifiedWarning = ( { originalBlock, ...props } ) => {\n\tconst { originalName, originalUndelimitedContent, clientId } =\n\t\tprops.attributes;\n\tconst { replaceBlock } = useDispatch( blockEditorStore );\n\tconst convertToHTML = () => {\n\t\treplaceBlock(\n\t\t\tprops.clientId,\n\t\t\tcreateBlock( 'core/html', {\n\t\t\t\tcontent: originalUndelimitedContent,\n\t\t\t} )\n\t\t);\n\t};\n\n\tconst hasContent = !! originalUndelimitedContent;\n\tconst hasHTMLBlock = useSelect(\n\t\t( select ) => {\n\t\t\tconst { canInsertBlockType, getBlockRootClientId } =\n\t\t\t\tselect( blockEditorStore );\n\n\t\t\treturn canInsertBlockType(\n\t\t\t\t'core/html',\n\t\t\t\tgetBlockRootClientId( clientId )\n\t\t\t);\n\t\t},\n\t\t[ clientId ]\n\t);\n\n\tlet messageHTML = sprintf(\n\t\t/* translators: %s: block name */\n\t\t__(\n\t\t\t'Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely.'\n\t\t),\n\t\toriginalBlock.title || originalName\n\t);\n\tconst actions = [\n\t\t<InstallButton\n\t\t\tkey=\"install\"\n\t\t\tblock={ originalBlock }\n\t\t\tattributes={ props.attributes }\n\t\t\tclientId={ props.clientId }\n\t\t/>,\n\t];\n\n\tif ( hasContent && hasHTMLBlock ) {\n\t\tmessageHTML = sprintf(\n\t\t\t/* translators: %s: block name */\n\t\t\t__(\n\t\t\t\t'Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.'\n\t\t\t),\n\t\t\toriginalBlock.title || originalName\n\t\t);\n\t\tactions.push(\n\t\t\t<Button key=\"convert\" onClick={ convertToHTML } variant=\"tertiary\">\n\t\t\t\t{ __( 'Keep as HTML' ) }\n\t\t\t</Button>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div { ...useBlockProps() }>\n\t\t\t<Warning actions={ actions }>{ messageHTML }</Warning>\n\t\t\t<RawHTML>{ originalUndelimitedContent }</RawHTML>\n\t\t</div>\n\t);\n};\n\nexport default getInstallMissing;\n","/**\n * WordPress dependencies\n */\nimport { registerPlugin } from '@wordpress/plugins';\nimport { addFilter } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport AutoBlockUninstaller from '../components/auto-block-uninstaller';\nimport InserterMenuDownloadableBlocksPanel from './inserter-menu-downloadable-blocks-panel';\nimport InstalledBlocksPrePublishPanel from './installed-blocks-pre-publish-panel';\nimport getInstallMissing from './get-install-missing';\n\nregisterPlugin( 'block-directory', {\n\trender() {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<AutoBlockUninstaller />\n\t\t\t\t<InserterMenuDownloadableBlocksPanel />\n\t\t\t\t<InstalledBlocksPrePublishPanel />\n\t\t\t</>\n\t\t);\n\t},\n} );\n\naddFilter(\n\t'blocks.registerBlockType',\n\t'block-directory/fallback',\n\t( settings, name ) => {\n\t\tif ( name !== 'core/missing' ) {\n\t\t\treturn settings;\n\t\t}\n\t\tsettings.edit = getInstallMissing( settings.edit );\n\n\t\treturn settings;\n\t}\n);\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","combineReducers","downloadableBlocks","state","action","type","filterValue","isRequesting","results","blockManagement","installedBlockTypes","isInstalling","item","filter","blockType","name","blockId","errorNotices","message","isFatal","restState","hasBlockType","blocks","length","some","i","innerBlocks","isRequestingDownloadableBlocks","getDownloadableBlocks","getInstalledBlockTypes","getNewBlockTypes","createRegistrySelector","select","usedBlockTree","blockEditorStore","getBlocks","getUnusedBlockTypes","getErrorNotices","getErrorNoticeForBlock","loadAsset","el","Promise","resolve","reject","newNode","document","createElement","nodeName","forEach","attr","innerHTML","appendChild","createTextNode","onload","onerror","Error","body","toLowerCase","src","getPluginUrl","block","link","links","self","href","fetchDownloadableBlocks","receiveDownloadableBlocks","installBlockType","async","registry","dispatch","id","success","clearErrorNotice","setIsInstalling","url","apiFetch","method","data","status","path","slug","_links","addInstalledBlockType","metadataFields","addQueryArgs","_fields","catch","then","response","unstable__bootstrapServerSideBlockDefinitions","fromEntries","entries","includes","location","parse","text","doc","DOMParser","parseFromString","newAssets","Array","from","querySelectorAll","asset","getElementById","newAsset","loadAssets","blocksStore","getBlockTypes","__","noticesStore","createInfoNotice","sprintf","title","speak","error","fatalAPIErrors","folder_exists","unable_to_connect_to_filesystem","code","setErrorNotice","createErrorNotice","isDismissible","uninstallBlockType","removeInstalledBlockType","__assign","assign","t","s","n","arguments","p","apply","this","lowerCase","str","create","DEFAULT_SPLIT_REGEXP","DEFAULT_STRIP_REGEXP","replace","input","re","RegExp","reduce","pascalCaseTransform","index","firstChar","charAt","lowerChars","substr","toUpperCase","pascalCase","options","splitRegexp","stripRegexp","transform","delimiter","result","start","end","slice","split","map","join","noCase","camelCaseTransform","storeConfig","reducer","selectors","actions","resolvers","store","createReduxStore","AutoBlockUninstaller","useDispatch","blockDirectoryStore","shouldRemoveBlockTypes","useSelect","isAutosavingPost","isSavingPost","editorStore","unusedBlockTypes","useEffect","unregisterBlockType","register","_extends","target","source","icon","size","props","cloneElement","width","height","SVG","xmlns","viewBox","Path","fillRule","clipRule","rating","stars","Math","round","fullStarCount","floor","halfStarCount","ceil","emptyStarCount","_","className","starFilled","starHalf","starEmpty","match","alt","BlockIcon","showColors","errorNotice","getDownloadableBlockLabel","ratingCount","hasNotice","isInstalled","decodeEntities","_n","composite","onClick","author","description","getBlockType","isInstallable","isBlockInstalling","notice","hasFatal","statusText","__experimentalIsFocusable","role","as","Button","event","preventDefault","isBusy","disabled","label","showTooltip","tooltipPosition","Spinner","createInterpolateElement","span","VisuallyHidden","noop","items","onHover","onSelect","useCompositeState","children","downloadableItems","hasLocalBlocks","count","blockDefault","Tip","ExternalLink","compose","withSelect","rootClientId","canInsertBlockType","hasPermission","coreStore","canUser","isLoading","isTyping","debouncedFilterValue","setFilterValue","useState","debouncedSetFilterValue","debounce","__unstableInserterMenuExtension","hasItems","CompactList","InstalledBlocksPrePublishPanel","newBlockTypes","PluginPrePublishPanel","initialOpen","InstallButton","attributes","clientId","isInstallingBlock","replaceBlock","originalBlock","originalContent","createBlock","variant","ModifiedWarning","originalName","originalUndelimitedContent","hasContent","hasHTMLBlock","getBlockRootClientId","messageHTML","push","content","useBlockProps","Warning","RawHTML","registerPlugin","render","addFilter","settings","edit","OriginalComponent"],"sourceRoot":""}
|
1 |
+
{"version":3,"file":"./build/block-directory/index.min.js","mappings":"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","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/compat get default export","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"element\"]","webpack://wp/external window [\"wp\",\"plugins\"]","webpack://wp/external window [\"wp\",\"hooks\"]","webpack://wp/external window [\"wp\",\"blocks\"]","webpack://wp/external window [\"wp\",\"data\"]","webpack://wp/external window [\"wp\",\"editor\"]","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/reducer.js","webpack://wp/external window [\"wp\",\"blockEditor\"]","webpack://wp/./packages/block-directory/build-module/store/utils/@wordpress/block-directory/src/store/utils/has-block-type.js","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/selectors.js","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/external window [\"wp\",\"apiFetch\"]","webpack://wp/external window [\"wp\",\"notices\"]","webpack://wp/external window [\"wp\",\"url\"]","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/load-assets.js","webpack://wp/./packages/block-directory/build-module/store/utils/@wordpress/block-directory/src/store/utils/get-plugin-url.js","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/actions.js","webpack://wp/./node_modules/tslib/tslib.es6.js","webpack://wp/./node_modules/lower-case/src/index.ts","webpack://wp/./node_modules/no-case/src/index.ts","webpack://wp/./node_modules/pascal-case/src/index.ts","webpack://wp/./node_modules/camel-case/src/index.ts","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/resolvers.js","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/index.js","webpack://wp/./packages/block-directory/build-module/components/auto-block-uninstaller/@wordpress/block-directory/src/components/auto-block-uninstaller/index.js","webpack://wp/external window [\"wp\",\"compose\"]","webpack://wp/external window [\"wp\",\"components\"]","webpack://wp/external window [\"wp\",\"coreData\"]","webpack://wp/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://wp/external window [\"wp\",\"htmlEntities\"]","webpack://wp/./packages/icons/build-module/icon/@wordpress/icons/src/icon/index.js","webpack://wp/external window [\"wp\",\"primitives\"]","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/star-filled.js","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/star-half.js","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/star-empty.js","webpack://wp/./packages/block-directory/build-module/components/block-ratings/@wordpress/block-directory/src/components/block-ratings/stars.js","webpack://wp/./packages/block-directory/build-module/components/block-ratings/@wordpress/block-directory/src/components/block-ratings/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-block-icon/@wordpress/block-directory/src/components/downloadable-block-icon/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-block-notice/@wordpress/block-directory/src/components/downloadable-block-notice/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-block-list-item/@wordpress/block-directory/src/components/downloadable-block-list-item/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-list/@wordpress/block-directory/src/components/downloadable-blocks-list/index.js","webpack://wp/external window [\"wp\",\"a11y\"]","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-panel/@wordpress/block-directory/src/components/downloadable-blocks-panel/inserter-panel.js","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/block-default.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-panel/@wordpress/block-directory/src/components/downloadable-blocks-panel/no-results.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-panel/@wordpress/block-directory/src/components/downloadable-blocks-panel/index.js","webpack://wp/./packages/block-directory/build-module/plugins/inserter-menu-downloadable-blocks-panel/@wordpress/block-directory/src/plugins/inserter-menu-downloadable-blocks-panel/index.js","webpack://wp/./packages/block-directory/build-module/components/compact-list/@wordpress/block-directory/src/components/compact-list/index.js","webpack://wp/./packages/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/@wordpress/block-directory/src/plugins/installed-blocks-pre-publish-panel/index.js","webpack://wp/./packages/block-directory/build-module/plugins/get-install-missing/@wordpress/block-directory/src/plugins/get-install-missing/install-button.js","webpack://wp/./packages/block-directory/build-module/plugins/get-install-missing/@wordpress/block-directory/src/plugins/get-install-missing/index.js","webpack://wp/./packages/block-directory/build-module/plugins/@wordpress/block-directory/src/plugins/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"plugins\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"hooks\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blocks\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"editor\"];","/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\n\n/**\n * Reducer returning an array of downloadable blocks.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const downloadableBlocks = ( state = {}, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'FETCH_DOWNLOADABLE_BLOCKS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.filterValue ]: {\n\t\t\t\t\tisRequesting: true,\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'RECEIVE_DOWNLOADABLE_BLOCKS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.filterValue ]: {\n\t\t\t\t\tresults: action.downloadableBlocks,\n\t\t\t\t\tisRequesting: false,\n\t\t\t\t},\n\t\t\t};\n\t}\n\treturn state;\n};\n\n/**\n * Reducer managing the installation and deletion of blocks.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const blockManagement = (\n\tstate = {\n\t\tinstalledBlockTypes: [],\n\t\tisInstalling: {},\n\t},\n\taction\n) => {\n\tswitch ( action.type ) {\n\t\tcase 'ADD_INSTALLED_BLOCK_TYPE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tinstalledBlockTypes: [\n\t\t\t\t\t...state.installedBlockTypes,\n\t\t\t\t\taction.item,\n\t\t\t\t],\n\t\t\t};\n\t\tcase 'REMOVE_INSTALLED_BLOCK_TYPE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tinstalledBlockTypes: state.installedBlockTypes.filter(\n\t\t\t\t\t( blockType ) => blockType.name !== action.item.name\n\t\t\t\t),\n\t\t\t};\n\t\tcase 'SET_INSTALLING_BLOCK':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisInstalling: {\n\t\t\t\t\t...state.isInstalling,\n\t\t\t\t\t[ action.blockId ]: action.isInstalling,\n\t\t\t\t},\n\t\t\t};\n\t}\n\treturn state;\n};\n\n/**\n * Reducer returning an object of error notices.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const errorNotices = ( state = {}, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'SET_ERROR_NOTICE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.blockId ]: {\n\t\t\t\t\tmessage: action.message,\n\t\t\t\t\tisFatal: action.isFatal,\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'CLEAR_ERROR_NOTICE':\n\t\t\tconst { [ action.blockId ]: blockId, ...restState } = state;\n\t\t\treturn restState;\n\t}\n\treturn state;\n};\n\nexport default combineReducers( {\n\tdownloadableBlocks,\n\tblockManagement,\n\terrorNotices,\n} );\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blockEditor\"];","/**\n * Check if a block list contains a specific block type. Recursively searches\n * through `innerBlocks` if they exist.\n *\n * @param {Object} blockType A block object to search for.\n * @param {Object[]} blocks The list of blocks to look through.\n *\n * @return {boolean} Whether the blockType is found.\n */\nexport default function hasBlockType( blockType, blocks = [] ) {\n\tif ( ! blocks.length ) {\n\t\treturn false;\n\t}\n\tif ( blocks.some( ( { name } ) => name === blockType.name ) ) {\n\t\treturn true;\n\t}\n\tfor ( let i = 0; i < blocks.length; i++ ) {\n\t\tif ( hasBlockType( blockType, blocks[ i ].innerBlocks ) ) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n","/**\n * WordPress dependencies\n */\nimport { createRegistrySelector } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport hasBlockType from './utils/has-block-type';\n\n/**\n * Returns true if application is requesting for downloadable blocks.\n *\n * @param {Object} state Global application state.\n * @param {string} filterValue Search string.\n *\n * @return {boolean} Whether a request is in progress for the blocks list.\n */\nexport function isRequestingDownloadableBlocks( state, filterValue ) {\n\treturn state.downloadableBlocks[ filterValue ]?.isRequesting ?? false;\n}\n\n/**\n * Returns the available uninstalled blocks.\n *\n * @param {Object} state Global application state.\n * @param {string} filterValue Search string.\n *\n * @return {Array} Downloadable blocks.\n */\nexport function getDownloadableBlocks( state, filterValue ) {\n\treturn state.downloadableBlocks[ filterValue ]?.results ?? [];\n}\n\n/**\n * Returns the block types that have been installed on the server in this\n * session.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} Block type items\n */\nexport function getInstalledBlockTypes( state ) {\n\treturn state.blockManagement.installedBlockTypes;\n}\n\n/**\n * Returns block types that have been installed on the server and used in the\n * current post.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} Block type items.\n */\nexport const getNewBlockTypes = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst usedBlockTree = select( blockEditorStore ).getBlocks();\n\t\tconst installedBlockTypes = getInstalledBlockTypes( state );\n\n\t\treturn installedBlockTypes.filter( ( blockType ) =>\n\t\t\thasBlockType( blockType, usedBlockTree )\n\t\t);\n\t}\n);\n\n/**\n * Returns the block types that have been installed on the server but are not\n * used in the current post.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} Block type items.\n */\nexport const getUnusedBlockTypes = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst usedBlockTree = select( blockEditorStore ).getBlocks();\n\t\tconst installedBlockTypes = getInstalledBlockTypes( state );\n\n\t\treturn installedBlockTypes.filter(\n\t\t\t( blockType ) => ! hasBlockType( blockType, usedBlockTree )\n\t\t);\n\t}\n);\n\n/**\n * Returns true if a block plugin install is in progress.\n *\n * @param {Object} state Global application state.\n * @param {string} blockId Id of the block.\n *\n * @return {boolean} Whether this block is currently being installed.\n */\nexport function isInstalling( state, blockId ) {\n\treturn state.blockManagement.isInstalling[ blockId ] || false;\n}\n\n/**\n * Returns all block error notices.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Object with error notices.\n */\nexport function getErrorNotices( state ) {\n\treturn state.errorNotices;\n}\n\n/**\n * Returns the error notice for a given block.\n *\n * @param {Object} state Global application state.\n * @param {string} blockId The ID of the block plugin. eg: my-block\n *\n * @return {string|boolean} The error text, or false if no error.\n */\nexport function getErrorNoticeForBlock( state, blockId ) {\n\treturn state.errorNotices[ blockId ];\n}\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"apiFetch\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"notices\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"url\"];","/**\n * WordPress dependencies\n */\nimport apiFetch from '@wordpress/api-fetch';\n\n/**\n * Load an asset for a block.\n *\n * This function returns a Promise that will resolve once the asset is loaded,\n * or in the case of Stylesheets and Inline JavaScript, will resolve immediately.\n *\n * @param {HTMLElement} el A HTML Element asset to inject.\n *\n * @return {Promise} Promise which will resolve when the asset is loaded.\n */\nexport const loadAsset = ( el ) => {\n\treturn new Promise( ( resolve, reject ) => {\n\t\t/*\n\t\t * Reconstruct the passed element, this is required as inserting the Node directly\n\t\t * won't always fire the required onload events, even if the asset wasn't already loaded.\n\t\t */\n\t\tconst newNode = document.createElement( el.nodeName );\n\n\t\t[ 'id', 'rel', 'src', 'href', 'type' ].forEach( ( attr ) => {\n\t\t\tif ( el[ attr ] ) {\n\t\t\t\tnewNode[ attr ] = el[ attr ];\n\t\t\t}\n\t\t} );\n\n\t\t// Append inline <script> contents.\n\t\tif ( el.innerHTML ) {\n\t\t\tnewNode.appendChild( document.createTextNode( el.innerHTML ) );\n\t\t}\n\n\t\tnewNode.onload = () => resolve( true );\n\t\tnewNode.onerror = () => reject( new Error( 'Error loading asset.' ) );\n\n\t\tdocument.body.appendChild( newNode );\n\n\t\t// Resolve Stylesheets and Inline JavaScript immediately.\n\t\tif (\n\t\t\t'link' === newNode.nodeName.toLowerCase() ||\n\t\t\t( 'script' === newNode.nodeName.toLowerCase() && ! newNode.src )\n\t\t) {\n\t\t\tresolve();\n\t\t}\n\t} );\n};\n\n/**\n * Load the asset files for a block\n */\nexport async function loadAssets() {\n\t/*\n\t * Fetch the current URL (post-new.php, or post.php?post=1&action=edit) and compare the\n\t * JavaScript and CSS assets loaded between the pages. This imports the required assets\n\t * for the block into the current page while not requiring that we know them up-front.\n\t * In the future this can be improved by reliance upon block.json and/or a script-loader\n\t * dependency API.\n\t */\n\tconst response = await apiFetch( {\n\t\turl: document.location.href,\n\t\tparse: false,\n\t} );\n\n\tconst data = await response.text();\n\n\tconst doc = new window.DOMParser().parseFromString( data, 'text/html' );\n\n\tconst newAssets = Array.from(\n\t\tdoc.querySelectorAll( 'link[rel=\"stylesheet\"],script' )\n\t).filter( ( asset ) => asset.id && ! document.getElementById( asset.id ) );\n\n\t/*\n\t * Load each asset in order, as they may depend upon an earlier loaded script.\n\t * Stylesheets and Inline Scripts will resolve immediately upon insertion.\n\t */\n\tfor ( const newAsset of newAssets ) {\n\t\tawait loadAsset( newAsset );\n\t}\n}\n","/**\n * Get the plugin's direct API link out of a block-directory response.\n *\n * @param {Object} block The block object\n *\n * @return {string} The plugin URL, if exists.\n */\nexport default function getPluginUrl( block ) {\n\tif ( ! block ) {\n\t\treturn false;\n\t}\n\tconst link = block.links[ 'wp:plugin' ] || block.links.self;\n\tif ( link && link.length ) {\n\t\treturn link[ 0 ].href;\n\t}\n\treturn false;\n}\n","/**\n * WordPress dependencies\n */\nimport {\n\tstore as blocksStore,\n\tunstable__bootstrapServerSideBlockDefinitions, // eslint-disable-line camelcase\n} from '@wordpress/blocks';\nimport { __, sprintf } from '@wordpress/i18n';\nimport apiFetch from '@wordpress/api-fetch';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport { loadAssets } from './load-assets';\nimport getPluginUrl from './utils/get-plugin-url';\n\n/**\n * Returns an action object used in signalling that the downloadable blocks\n * have been requested and are loading.\n *\n * @param {string} filterValue Search string.\n *\n * @return {Object} Action object.\n */\nexport function fetchDownloadableBlocks( filterValue ) {\n\treturn { type: 'FETCH_DOWNLOADABLE_BLOCKS', filterValue };\n}\n\n/**\n * Returns an action object used in signalling that the downloadable blocks\n * have been updated.\n *\n * @param {Array} downloadableBlocks Downloadable blocks.\n * @param {string} filterValue Search string.\n *\n * @return {Object} Action object.\n */\nexport function receiveDownloadableBlocks( downloadableBlocks, filterValue ) {\n\treturn {\n\t\ttype: 'RECEIVE_DOWNLOADABLE_BLOCKS',\n\t\tdownloadableBlocks,\n\t\tfilterValue,\n\t};\n}\n\n/**\n * Action triggered to install a block plugin.\n *\n * @param {Object} block The block item returned by search.\n *\n * @return {boolean} Whether the block was successfully installed & loaded.\n */\nexport const installBlockType =\n\t( block ) =>\n\tasync ( { registry, dispatch } ) => {\n\t\tconst { id, name } = block;\n\t\tlet success = false;\n\t\tdispatch.clearErrorNotice( id );\n\t\ttry {\n\t\t\tdispatch.setIsInstalling( id, true );\n\n\t\t\t// If we have a wp:plugin link, the plugin is installed but inactive.\n\t\t\tconst url = getPluginUrl( block );\n\t\t\tlet links = {};\n\t\t\tif ( url ) {\n\t\t\t\tawait apiFetch( {\n\t\t\t\t\tmethod: 'PUT',\n\t\t\t\t\turl,\n\t\t\t\t\tdata: { status: 'active' },\n\t\t\t\t} );\n\t\t\t} else {\n\t\t\t\tconst response = await apiFetch( {\n\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\tpath: 'wp/v2/plugins',\n\t\t\t\t\tdata: { slug: id, status: 'active' },\n\t\t\t\t} );\n\t\t\t\t// Add the `self` link for newly-installed blocks.\n\t\t\t\tlinks = response._links;\n\t\t\t}\n\n\t\t\tdispatch.addInstalledBlockType( {\n\t\t\t\t...block,\n\t\t\t\tlinks: { ...block.links, ...links },\n\t\t\t} );\n\n\t\t\t// Ensures that the block metadata is propagated to the editor when registered on the server.\n\t\t\tconst metadataFields = [\n\t\t\t\t'api_version',\n\t\t\t\t'title',\n\t\t\t\t'category',\n\t\t\t\t'parent',\n\t\t\t\t'icon',\n\t\t\t\t'description',\n\t\t\t\t'keywords',\n\t\t\t\t'attributes',\n\t\t\t\t'provides_context',\n\t\t\t\t'uses_context',\n\t\t\t\t'supports',\n\t\t\t\t'styles',\n\t\t\t\t'example',\n\t\t\t\t'variations',\n\t\t\t];\n\t\t\tawait apiFetch( {\n\t\t\t\tpath: addQueryArgs( `/wp/v2/block-types/${ name }`, {\n\t\t\t\t\t_fields: metadataFields,\n\t\t\t\t} ),\n\t\t\t} )\n\t\t\t\t// Ignore when the block is not registered on the server.\n\t\t\t\t.catch( () => {} )\n\t\t\t\t.then( ( response ) => {\n\t\t\t\t\tif ( ! response ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tunstable__bootstrapServerSideBlockDefinitions( {\n\t\t\t\t\t\t[ name ]: Object.fromEntries(\n\t\t\t\t\t\t\tObject.entries( response ).filter( ( [ key ] ) =>\n\t\t\t\t\t\t\t\tmetadataFields.includes( key )\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t),\n\t\t\t\t\t} );\n\t\t\t\t} );\n\n\t\t\tawait loadAssets();\n\t\t\tconst registeredBlocks = registry\n\t\t\t\t.select( blocksStore )\n\t\t\t\t.getBlockTypes();\n\t\t\tif ( ! registeredBlocks.some( ( i ) => i.name === name ) ) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t__( 'Error registering block. Try reloading the page.' )\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tregistry.dispatch( noticesStore ).createInfoNotice(\n\t\t\t\tsprintf(\n\t\t\t\t\t// translators: %s is the block title.\n\t\t\t\t\t__( 'Block %s installed and added.' ),\n\t\t\t\t\tblock.title\n\t\t\t\t),\n\t\t\t\t{\n\t\t\t\t\tspeak: true,\n\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t}\n\t\t\t);\n\t\t\tsuccess = true;\n\t\t} catch ( error ) {\n\t\t\tlet message = error.message || __( 'An error occurred.' );\n\n\t\t\t// Errors we throw are fatal.\n\t\t\tlet isFatal = error instanceof Error;\n\n\t\t\t// Specific API errors that are fatal.\n\t\t\tconst fatalAPIErrors = {\n\t\t\t\tfolder_exists: __(\n\t\t\t\t\t'This block is already installed. Try reloading the page.'\n\t\t\t\t),\n\t\t\t\tunable_to_connect_to_filesystem: __(\n\t\t\t\t\t'Error installing block. You can reload the page and try again.'\n\t\t\t\t),\n\t\t\t};\n\n\t\t\tif ( fatalAPIErrors[ error.code ] ) {\n\t\t\t\tisFatal = true;\n\t\t\t\tmessage = fatalAPIErrors[ error.code ];\n\t\t\t}\n\n\t\t\tdispatch.setErrorNotice( id, message, isFatal );\n\t\t\tregistry.dispatch( noticesStore ).createErrorNotice( message, {\n\t\t\t\tspeak: true,\n\t\t\t\tisDismissible: true,\n\t\t\t} );\n\t\t}\n\t\tdispatch.setIsInstalling( id, false );\n\t\treturn success;\n\t};\n\n/**\n * Action triggered to uninstall a block plugin.\n *\n * @param {Object} block The blockType object.\n */\nexport const uninstallBlockType =\n\t( block ) =>\n\tasync ( { registry, dispatch } ) => {\n\t\ttry {\n\t\t\tconst url = getPluginUrl( block );\n\t\t\tawait apiFetch( {\n\t\t\t\tmethod: 'PUT',\n\t\t\t\turl,\n\t\t\t\tdata: { status: 'inactive' },\n\t\t\t} );\n\t\t\tawait apiFetch( {\n\t\t\t\tmethod: 'DELETE',\n\t\t\t\turl,\n\t\t\t} );\n\t\t\tdispatch.removeInstalledBlockType( block );\n\t\t} catch ( error ) {\n\t\t\tregistry\n\t\t\t\t.dispatch( noticesStore )\n\t\t\t\t.createErrorNotice(\n\t\t\t\t\terror.message || __( 'An error occurred.' )\n\t\t\t\t);\n\t\t}\n\t};\n\n/**\n * Returns an action object used to add a block type to the \"newly installed\"\n * tracking list.\n *\n * @param {Object} item The block item with the block id and name.\n *\n * @return {Object} Action object.\n */\nexport function addInstalledBlockType( item ) {\n\treturn {\n\t\ttype: 'ADD_INSTALLED_BLOCK_TYPE',\n\t\titem,\n\t};\n}\n\n/**\n * Returns an action object used to remove a block type from the \"newly installed\"\n * tracking list.\n *\n * @param {string} item The block item with the block id and name.\n *\n * @return {Object} Action object.\n */\nexport function removeInstalledBlockType( item ) {\n\treturn {\n\t\ttype: 'REMOVE_INSTALLED_BLOCK_TYPE',\n\t\titem,\n\t};\n}\n\n/**\n * Returns an action object used to indicate install in progress.\n *\n * @param {string} blockId\n * @param {boolean} isInstalling\n *\n * @return {Object} Action object.\n */\nexport function setIsInstalling( blockId, isInstalling ) {\n\treturn {\n\t\ttype: 'SET_INSTALLING_BLOCK',\n\t\tblockId,\n\t\tisInstalling,\n\t};\n}\n\n/**\n * Sets an error notice to be displayed to the user for a given block.\n *\n * @param {string} blockId The ID of the block plugin. eg: my-block\n * @param {string} message The message shown in the notice.\n * @param {boolean} isFatal Whether the user can recover from the error.\n *\n * @return {Object} Action object.\n */\nexport function setErrorNotice( blockId, message, isFatal = false ) {\n\treturn {\n\t\ttype: 'SET_ERROR_NOTICE',\n\t\tblockId,\n\t\tmessage,\n\t\tisFatal,\n\t};\n}\n\n/**\n * Sets the error notice to empty for specific block.\n *\n * @param {string} blockId The ID of the block plugin. eg: my-block\n *\n * @return {Object} Action object.\n */\nexport function clearErrorNotice( blockId ) {\n\treturn {\n\t\ttype: 'CLEAR_ERROR_NOTICE',\n\t\tblockId,\n\t};\n}\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || from);\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n 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); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","/**\n * Locale character mapping rules.\n */\ninterface Locale {\n regexp: RegExp;\n map: Record<string, string>;\n}\n\n/**\n * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt\n */\nconst SUPPORTED_LOCALE: Record<string, Locale> = {\n tr: {\n regexp: /\\u0130|\\u0049|\\u0049\\u0307/g,\n map: {\n İ: \"\\u0069\",\n I: \"\\u0131\",\n İ: \"\\u0069\",\n },\n },\n az: {\n regexp: /\\u0130/g,\n map: {\n İ: \"\\u0069\",\n I: \"\\u0131\",\n İ: \"\\u0069\",\n },\n },\n lt: {\n regexp: /\\u0049|\\u004A|\\u012E|\\u00CC|\\u00CD|\\u0128/g,\n map: {\n I: \"\\u0069\\u0307\",\n J: \"\\u006A\\u0307\",\n Į: \"\\u012F\\u0307\",\n Ì: \"\\u0069\\u0307\\u0300\",\n Í: \"\\u0069\\u0307\\u0301\",\n Ĩ: \"\\u0069\\u0307\\u0303\",\n },\n },\n};\n\n/**\n * Localized lower case.\n */\nexport function localeLowerCase(str: string, locale: string) {\n const lang = SUPPORTED_LOCALE[locale.toLowerCase()];\n if (lang) return lowerCase(str.replace(lang.regexp, (m) => lang.map[m]));\n return lowerCase(str);\n}\n\n/**\n * Lower case as a function.\n */\nexport function lowerCase(str: string) {\n return str.toLowerCase();\n}\n","import { lowerCase } from \"lower-case\";\n\nexport interface Options {\n splitRegexp?: RegExp | RegExp[];\n stripRegexp?: RegExp | RegExp[];\n delimiter?: string;\n transform?: (part: string, index: number, parts: string[]) => string;\n}\n\n// Support camel case (\"camelCase\" -> \"camel Case\" and \"CAMELCase\" -> \"CAMEL Case\").\nconst DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];\n\n// Remove all non-word characters.\nconst DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;\n\n/**\n * Normalize the string into something other libraries can manipulate easier.\n */\nexport function noCase(input: string, options: Options = {}) {\n const {\n splitRegexp = DEFAULT_SPLIT_REGEXP,\n stripRegexp = DEFAULT_STRIP_REGEXP,\n transform = lowerCase,\n delimiter = \" \",\n } = options;\n\n let result = replace(\n replace(input, splitRegexp, \"$1\\0$2\"),\n stripRegexp,\n \"\\0\"\n );\n let start = 0;\n let end = result.length;\n\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === \"\\0\") start++;\n while (result.charAt(end - 1) === \"\\0\") end--;\n\n // Transform each token independently.\n return result.slice(start, end).split(\"\\0\").map(transform).join(delimiter);\n}\n\n/**\n * Replace `re` in the input string with the replacement value.\n */\nfunction replace(input: string, re: RegExp | RegExp[], value: string) {\n if (re instanceof RegExp) return input.replace(re, value);\n return re.reduce((input, re) => input.replace(re, value), input);\n}\n","import { noCase, Options } from \"no-case\";\n\nexport { Options };\n\nexport function pascalCaseTransform(input: string, index: number) {\n const firstChar = input.charAt(0);\n const lowerChars = input.substr(1).toLowerCase();\n if (index > 0 && firstChar >= \"0\" && firstChar <= \"9\") {\n return `_${firstChar}${lowerChars}`;\n }\n return `${firstChar.toUpperCase()}${lowerChars}`;\n}\n\nexport function pascalCaseTransformMerge(input: string) {\n return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase();\n}\n\nexport function pascalCase(input: string, options: Options = {}) {\n return noCase(input, {\n delimiter: \"\",\n transform: pascalCaseTransform,\n ...options,\n });\n}\n","import {\n pascalCase,\n pascalCaseTransform,\n pascalCaseTransformMerge,\n Options,\n} from \"pascal-case\";\n\nexport { Options };\n\nexport function camelCaseTransform(input: string, index: number) {\n if (index === 0) return input.toLowerCase();\n return pascalCaseTransform(input, index);\n}\n\nexport function camelCaseTransformMerge(input: string, index: number) {\n if (index === 0) return input.toLowerCase();\n return pascalCaseTransformMerge(input);\n}\n\nexport function camelCase(input: string, options: Options = {}) {\n return pascalCase(input, {\n transform: camelCaseTransform,\n ...options,\n });\n}\n","/**\n * External dependencies\n */\nimport { camelCase } from 'change-case';\n\n/**\n * WordPress dependencies\n */\nimport apiFetch from '@wordpress/api-fetch';\n\n/**\n * Internal dependencies\n */\nimport { fetchDownloadableBlocks, receiveDownloadableBlocks } from './actions';\n\nexport const getDownloadableBlocks =\n\t( filterValue ) =>\n\tasync ( { dispatch } ) => {\n\t\tif ( ! filterValue ) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tdispatch( fetchDownloadableBlocks( filterValue ) );\n\t\t\tconst results = await apiFetch( {\n\t\t\t\tpath: `wp/v2/block-directory/search?term=${ filterValue }`,\n\t\t\t} );\n\t\t\tconst blocks = results.map( ( result ) =>\n\t\t\t\tObject.fromEntries(\n\t\t\t\t\tObject.entries( result ).map( ( [ key, value ] ) => [\n\t\t\t\t\t\tcamelCase( key ),\n\t\t\t\t\t\tvalue,\n\t\t\t\t\t] )\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tdispatch( receiveDownloadableBlocks( blocks, filterValue ) );\n\t\t} catch {}\n\t};\n","/**\n * WordPress dependencies\n */\nimport { createReduxStore, register } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as selectors from './selectors';\nimport * as actions from './actions';\nimport * as resolvers from './resolvers';\n\n/**\n * Module Constants\n */\nconst STORE_NAME = 'core/block-directory';\n\n/**\n * Block editor data store configuration.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore\n *\n * @type {Object}\n */\nexport const storeConfig = {\n\treducer,\n\tselectors,\n\tactions,\n\tresolvers,\n};\n\n/**\n * Store definition for the block directory namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, storeConfig );\n\nregister( store );\n","/**\n * WordPress dependencies\n */\nimport { unregisterBlockType } from '@wordpress/blocks';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { useEffect } from '@wordpress/element';\nimport { store as editorStore } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { store as blockDirectoryStore } from '../../store';\n\nexport default function AutoBlockUninstaller() {\n\tconst { uninstallBlockType } = useDispatch( blockDirectoryStore );\n\n\tconst shouldRemoveBlockTypes = useSelect( ( select ) => {\n\t\tconst { isAutosavingPost, isSavingPost } = select( editorStore );\n\t\treturn isSavingPost() && ! isAutosavingPost();\n\t}, [] );\n\n\tconst unusedBlockTypes = useSelect(\n\t\t( select ) => select( blockDirectoryStore ).getUnusedBlockTypes(),\n\t\t[]\n\t);\n\n\tuseEffect( () => {\n\t\tif ( shouldRemoveBlockTypes && unusedBlockTypes.length ) {\n\t\t\tunusedBlockTypes.forEach( ( blockType ) => {\n\t\t\t\tuninstallBlockType( blockType );\n\t\t\t\tunregisterBlockType( blockType.name );\n\t\t\t} );\n\t\t}\n\t}, [ shouldRemoveBlockTypes ] );\n\n\treturn null;\n}\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"compose\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"coreData\"];","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"htmlEntities\"];","/**\n * WordPress dependencies\n */\nimport { cloneElement } from '@wordpress/element';\n\n/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */\n\n/**\n * Return an SVG icon.\n *\n * @param {IconProps} props icon is the SVG component to render\n * size is a number specifiying the icon size in pixels\n * Other props will be passed to wrapped SVG component\n *\n * @return {JSX.Element} Icon component\n */\nfunction Icon( { icon, size = 24, ...props } ) {\n\treturn cloneElement( icon, {\n\t\twidth: size,\n\t\theight: size,\n\t\t...props,\n\t} );\n}\n\nexport default Icon;\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"primitives\"];","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst starFilled = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z\" />\n\t</SVG>\n);\n\nexport default starFilled;\n","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst starHalf = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z\" />\n\t</SVG>\n);\n\nexport default starHalf;\n","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst starEmpty = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path\n\t\t\tfillRule=\"evenodd\"\n\t\t\td=\"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z\"\n\t\t\tclipRule=\"evenodd\"\n\t\t/>\n\t</SVG>\n);\n\nexport default starEmpty;\n","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { Icon, starEmpty, starFilled, starHalf } from '@wordpress/icons';\n\nfunction Stars( { rating } ) {\n\tconst stars = Math.round( rating / 0.5 ) * 0.5;\n\n\tconst fullStarCount = Math.floor( rating );\n\tconst halfStarCount = Math.ceil( rating - fullStarCount );\n\tconst emptyStarCount = 5 - ( fullStarCount + halfStarCount );\n\n\treturn (\n\t\t<span\n\t\t\taria-label={ sprintf(\n\t\t\t\t/* translators: %s: number of stars. */\n\t\t\t\t__( '%s out of 5 stars' ),\n\t\t\t\tstars\n\t\t\t) }\n\t\t>\n\t\t\t{ Array.from( { length: fullStarCount } ).map( ( _, i ) => (\n\t\t\t\t<Icon\n\t\t\t\t\tkey={ `full_stars_${ i }` }\n\t\t\t\t\tclassName=\"block-directory-block-ratings__star-full\"\n\t\t\t\t\ticon={ starFilled }\n\t\t\t\t\tsize={ 16 }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t\t{ Array.from( { length: halfStarCount } ).map( ( _, i ) => (\n\t\t\t\t<Icon\n\t\t\t\t\tkey={ `half_stars_${ i }` }\n\t\t\t\t\tclassName=\"block-directory-block-ratings__star-half-full\"\n\t\t\t\t\ticon={ starHalf }\n\t\t\t\t\tsize={ 16 }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t\t{ Array.from( { length: emptyStarCount } ).map( ( _, i ) => (\n\t\t\t\t<Icon\n\t\t\t\t\tkey={ `empty_stars_${ i }` }\n\t\t\t\t\tclassName=\"block-directory-block-ratings__star-empty\"\n\t\t\t\t\ticon={ starEmpty }\n\t\t\t\t\tsize={ 16 }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t</span>\n\t);\n}\n\nexport default Stars;\n","/**\n * Internal dependencies\n */\nimport Stars from './stars';\n\nexport const BlockRatings = ( { rating } ) => (\n\t<span className=\"block-directory-block-ratings\">\n\t\t<Stars rating={ rating } />\n\t</span>\n);\n\nexport default BlockRatings;\n","/**\n * WordPress dependencies\n */\nimport { BlockIcon } from '@wordpress/block-editor';\n\nfunction DownloadableBlockIcon( { icon } ) {\n\tconst className = 'block-directory-downloadable-block-icon';\n\treturn icon.match( /\\.(jpeg|jpg|gif|png|svg)(?:\\?.*)?$/ ) !== null ? (\n\t\t<img className={ className } src={ icon } alt=\"\" />\n\t) : (\n\t\t<BlockIcon className={ className } icon={ icon } showColors />\n\t);\n}\n\nexport default DownloadableBlockIcon;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as blockDirectoryStore } from '../../store';\n\nexport const DownloadableBlockNotice = ( { block } ) => {\n\tconst errorNotice = useSelect(\n\t\t( select ) =>\n\t\t\tselect( blockDirectoryStore ).getErrorNoticeForBlock( block.id ),\n\t\t[ block ]\n\t);\n\n\tif ( ! errorNotice ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className=\"block-directory-downloadable-block-notice\">\n\t\t\t<div className=\"block-directory-downloadable-block-notice__content\">\n\t\t\t\t{ errorNotice.message }\n\t\t\t\t{ errorNotice.isFatal\n\t\t\t\t\t? ' ' + __( 'Try reloading the page.' )\n\t\t\t\t\t: null }\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DownloadableBlockNotice;\n","/**\n * WordPress dependencies\n */\nimport { __, _n, sprintf } from '@wordpress/i18n';\nimport {\n\tButton,\n\tSpinner,\n\tVisuallyHidden,\n\t__unstableCompositeItem as CompositeItem,\n} from '@wordpress/components';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { getBlockType } from '@wordpress/blocks';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport BlockRatings from '../block-ratings';\nimport DownloadableBlockIcon from '../downloadable-block-icon';\nimport DownloadableBlockNotice from '../downloadable-block-notice';\nimport { store as blockDirectoryStore } from '../../store';\n\n// Return the appropriate block item label, given the block data and status.\nfunction getDownloadableBlockLabel(\n\t{ title, rating, ratingCount },\n\t{ hasNotice, isInstalled, isInstalling }\n) {\n\tconst stars = Math.round( rating / 0.5 ) * 0.5;\n\n\tif ( ! isInstalled && hasNotice ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Retry installing %s.', decodeEntities( title ) );\n\t}\n\n\tif ( isInstalled ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Add %s.', decodeEntities( title ) );\n\t}\n\n\tif ( isInstalling ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Installing %s.', decodeEntities( title ) );\n\t}\n\n\t// No ratings yet, just use the title.\n\tif ( ratingCount < 1 ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Install %s.', decodeEntities( title ) );\n\t}\n\n\treturn sprintf(\n\t\t/* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */\n\t\t_n(\n\t\t\t'Install %1$s. %2$s stars with %3$s review.',\n\t\t\t'Install %1$s. %2$s stars with %3$s reviews.',\n\t\t\tratingCount\n\t\t),\n\t\tdecodeEntities( title ),\n\t\tstars,\n\t\tratingCount\n\t);\n}\n\nfunction DownloadableBlockListItem( { composite, item, onClick } ) {\n\tconst { author, description, icon, rating, title } = item;\n\t// getBlockType returns a block object if this block exists, or null if not.\n\tconst isInstalled = !! getBlockType( item.name );\n\n\tconst { hasNotice, isInstalling, isInstallable } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getErrorNoticeForBlock, isInstalling: isBlockInstalling } =\n\t\t\t\tselect( blockDirectoryStore );\n\t\t\tconst notice = getErrorNoticeForBlock( item.id );\n\t\t\tconst hasFatal = notice && notice.isFatal;\n\t\t\treturn {\n\t\t\t\thasNotice: !! notice,\n\t\t\t\tisInstalling: isBlockInstalling( item.id ),\n\t\t\t\tisInstallable: ! hasFatal,\n\t\t\t};\n\t\t},\n\t\t[ item ]\n\t);\n\n\tlet statusText = '';\n\tif ( isInstalled ) {\n\t\tstatusText = __( 'Installed!' );\n\t} else if ( isInstalling ) {\n\t\tstatusText = __( 'Installing…' );\n\t}\n\n\treturn (\n\t\t<CompositeItem\n\t\t\t__experimentalIsFocusable\n\t\t\trole=\"option\"\n\t\t\tas={ Button }\n\t\t\t{ ...composite }\n\t\t\tclassName=\"block-directory-downloadable-block-list-item\"\n\t\t\tonClick={ ( event ) => {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tonClick();\n\t\t\t} }\n\t\t\tisBusy={ isInstalling }\n\t\t\tdisabled={ isInstalling || ! isInstallable }\n\t\t\tlabel={ getDownloadableBlockLabel( item, {\n\t\t\t\thasNotice,\n\t\t\t\tisInstalled,\n\t\t\t\tisInstalling,\n\t\t\t} ) }\n\t\t\tshowTooltip={ true }\n\t\t\ttooltipPosition=\"top center\"\n\t\t>\n\t\t\t<div className=\"block-directory-downloadable-block-list-item__icon\">\n\t\t\t\t<DownloadableBlockIcon icon={ icon } title={ title } />\n\t\t\t\t{ isInstalling ? (\n\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__spinner\">\n\t\t\t\t\t\t<Spinner />\n\t\t\t\t\t</span>\n\t\t\t\t) : (\n\t\t\t\t\t<BlockRatings rating={ rating } />\n\t\t\t\t) }\n\t\t\t</div>\n\t\t\t<span className=\"block-directory-downloadable-block-list-item__details\">\n\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__title\">\n\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\tsprintf(\n\t\t\t\t\t\t\t/* translators: %1$s: block title, %2$s: author name. */\n\t\t\t\t\t\t\t__( '%1$s <span>by %2$s</span>' ),\n\t\t\t\t\t\t\tdecodeEntities( title ),\n\t\t\t\t\t\t\tauthor\n\t\t\t\t\t\t),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tspan: (\n\t\t\t\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__author\" />\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t}\n\t\t\t\t\t) }\n\t\t\t\t</span>\n\t\t\t\t{ hasNotice ? (\n\t\t\t\t\t<DownloadableBlockNotice block={ item } />\n\t\t\t\t) : (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__desc\">\n\t\t\t\t\t\t\t{ !! statusText\n\t\t\t\t\t\t\t\t? statusText\n\t\t\t\t\t\t\t\t: decodeEntities( description ) }\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{ isInstallable &&\n\t\t\t\t\t\t\t! ( isInstalled || isInstalling ) && (\n\t\t\t\t\t\t\t\t<VisuallyHidden>\n\t\t\t\t\t\t\t\t\t{ __( 'Install block' ) }\n\t\t\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</span>\n\t\t</CompositeItem>\n\t);\n}\n\nexport default DownloadableBlockListItem;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\t__unstableComposite as Composite,\n\t__unstableUseCompositeState as useCompositeState,\n} from '@wordpress/components';\nimport { getBlockType } from '@wordpress/blocks';\nimport { useDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlockListItem from '../downloadable-block-list-item';\nimport { store as blockDirectoryStore } from '../../store';\n\nconst noop = () => {};\n\nfunction DownloadableBlocksList( { items, onHover = noop, onSelect } ) {\n\tconst composite = useCompositeState();\n\tconst { installBlockType } = useDispatch( blockDirectoryStore );\n\n\tif ( ! items.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Composite\n\t\t\t{ ...composite }\n\t\t\trole=\"listbox\"\n\t\t\tclassName=\"block-directory-downloadable-blocks-list\"\n\t\t\taria-label={ __( 'Blocks available for install' ) }\n\t\t>\n\t\t\t{ items.map( ( item ) => {\n\t\t\t\treturn (\n\t\t\t\t\t<DownloadableBlockListItem\n\t\t\t\t\t\tkey={ item.id }\n\t\t\t\t\t\tcomposite={ composite }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t// Check if the block is registered (`getBlockType`\n\t\t\t\t\t\t\t// will return an object). If so, insert the block.\n\t\t\t\t\t\t\t// This prevents installing existing plugins.\n\t\t\t\t\t\t\tif ( getBlockType( item.name ) ) {\n\t\t\t\t\t\t\t\tonSelect( item );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tinstallBlockType( item ).then( ( success ) => {\n\t\t\t\t\t\t\t\t\tif ( success ) {\n\t\t\t\t\t\t\t\t\t\tonSelect( item );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonHover( null );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tonHover={ onHover }\n\t\t\t\t\t\titem={ item }\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t} ) }\n\t\t</Composite>\n\t);\n}\n\nexport default DownloadableBlocksList;\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"a11y\"];","/**\n * WordPress dependencies\n */\nimport { __, _n, sprintf } from '@wordpress/i18n';\nimport { useEffect } from '@wordpress/element';\nimport { speak } from '@wordpress/a11y';\n\nfunction DownloadableBlocksInserterPanel( {\n\tchildren,\n\tdownloadableItems,\n\thasLocalBlocks,\n} ) {\n\tconst count = downloadableItems.length;\n\tuseEffect( () => {\n\t\tspeak(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %d: number of available blocks. */\n\t\t\t\t_n(\n\t\t\t\t\t'%d additional block is available to install.',\n\t\t\t\t\t'%d additional blocks are available to install.',\n\t\t\t\t\tcount\n\t\t\t\t),\n\t\t\t\tcount\n\t\t\t)\n\t\t);\n\t}, [ count ] );\n\n\treturn (\n\t\t<>\n\t\t\t{ ! hasLocalBlocks && (\n\t\t\t\t<p className=\"block-directory-downloadable-blocks-panel__no-local\">\n\t\t\t\t\t{ __( 'No results available from your installed blocks.' ) }\n\t\t\t\t</p>\n\t\t\t) }\n\n\t\t\t<div className=\"block-editor-inserter__quick-inserter-separator\" />\n\n\t\t\t<div className=\"block-directory-downloadable-blocks-panel\">\n\t\t\t\t<div className=\"block-directory-downloadable-blocks-panel__header\">\n\t\t\t\t\t<h2 className=\"block-directory-downloadable-blocks-panel__title\">\n\t\t\t\t\t\t{ __( 'Available to install' ) }\n\t\t\t\t\t</h2>\n\t\t\t\t\t<p className=\"block-directory-downloadable-blocks-panel__description\">\n\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t'Select a block to install and add it to your post.'\n\t\t\t\t\t\t) }\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t{ children }\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default DownloadableBlocksInserterPanel;\n","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst blockDefault = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z\" />\n\t</SVG>\n);\n\nexport default blockDefault;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Icon, blockDefault } from '@wordpress/icons';\nimport { Tip, ExternalLink } from '@wordpress/components';\n\nfunction DownloadableBlocksNoResults() {\n\treturn (\n\t\t<>\n\t\t\t<div className=\"block-editor-inserter__no-results\">\n\t\t\t\t<Icon\n\t\t\t\t\tclassName=\"block-editor-inserter__no-results-icon\"\n\t\t\t\t\ticon={ blockDefault }\n\t\t\t\t/>\n\t\t\t\t<p>{ __( 'No results found.' ) }</p>\n\t\t\t</div>\n\t\t\t<div className=\"block-editor-inserter__tips\">\n\t\t\t\t<Tip>\n\t\t\t\t\t{ __( 'Interested in creating your own block?' ) }\n\t\t\t\t\t<br />\n\t\t\t\t\t<ExternalLink href=\"https://developer.wordpress.org/block-editor/\">\n\t\t\t\t\t\t{ __( 'Get started here' ) }.\n\t\t\t\t\t</ExternalLink>\n\t\t\t\t</Tip>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default DownloadableBlocksNoResults;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Spinner } from '@wordpress/components';\nimport { compose } from '@wordpress/compose';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { withSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlocksList from '../downloadable-blocks-list';\nimport DownloadableBlocksInserterPanel from './inserter-panel';\nimport DownloadableBlocksNoResults from './no-results';\nimport { store as blockDirectoryStore } from '../../store';\n\nfunction DownloadableBlocksPanel( {\n\tdownloadableItems,\n\tonSelect,\n\tonHover,\n\thasLocalBlocks,\n\thasPermission,\n\tisLoading,\n\tisTyping,\n} ) {\n\tif ( typeof hasPermission === 'undefined' || isLoading || isTyping ) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{ hasPermission && ! hasLocalBlocks && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<p className=\"block-directory-downloadable-blocks-panel__no-local\">\n\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t'No results available from your installed blocks.'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<div className=\"block-editor-inserter__quick-inserter-separator\" />\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t\t<div className=\"block-directory-downloadable-blocks-panel has-blocks-loading\">\n\t\t\t\t\t<Spinner />\n\t\t\t\t</div>\n\t\t\t</>\n\t\t);\n\t}\n\n\tif ( false === hasPermission ) {\n\t\tif ( ! hasLocalBlocks ) {\n\t\t\treturn <DownloadableBlocksNoResults />;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\treturn !! downloadableItems.length ? (\n\t\t<DownloadableBlocksInserterPanel\n\t\t\tdownloadableItems={ downloadableItems }\n\t\t\thasLocalBlocks={ hasLocalBlocks }\n\t\t>\n\t\t\t<DownloadableBlocksList\n\t\t\t\titems={ downloadableItems }\n\t\t\t\tonSelect={ onSelect }\n\t\t\t\tonHover={ onHover }\n\t\t\t/>\n\t\t</DownloadableBlocksInserterPanel>\n\t) : (\n\t\t! hasLocalBlocks && <DownloadableBlocksNoResults />\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select, { filterValue, rootClientId = null } ) => {\n\t\tconst { getDownloadableBlocks, isRequestingDownloadableBlocks } =\n\t\t\tselect( blockDirectoryStore );\n\t\tconst { canInsertBlockType } = select( blockEditorStore );\n\n\t\tconst hasPermission = select( coreStore ).canUser(\n\t\t\t'read',\n\t\t\t'block-directory/search'\n\t\t);\n\n\t\tfunction getInstallableBlocks( term ) {\n\t\t\treturn getDownloadableBlocks( term ).filter( ( block ) =>\n\t\t\t\tcanInsertBlockType( block, rootClientId, true )\n\t\t\t);\n\t\t}\n\n\t\tconst downloadableItems = hasPermission\n\t\t\t? getInstallableBlocks( filterValue )\n\t\t\t: [];\n\t\tconst isLoading = isRequestingDownloadableBlocks( filterValue );\n\n\t\treturn {\n\t\t\tdownloadableItems,\n\t\t\thasPermission,\n\t\t\tisLoading,\n\t\t};\n\t} ),\n] )( DownloadableBlocksPanel );\n","/**\n * WordPress dependencies\n */\nimport { __unstableInserterMenuExtension } from '@wordpress/block-editor';\nimport { debounce } from '@wordpress/compose';\nimport { useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlocksPanel from '../../components/downloadable-blocks-panel';\n\nfunction InserterMenuDownloadableBlocksPanel() {\n\tconst [ debouncedFilterValue, setFilterValue ] = useState( '' );\n\tconst debouncedSetFilterValue = debounce( setFilterValue, 400 );\n\n\treturn (\n\t\t<__unstableInserterMenuExtension>\n\t\t\t{ ( {\n\t\t\t\tonSelect,\n\t\t\t\tonHover,\n\t\t\t\tfilterValue,\n\t\t\t\thasItems,\n\t\t\t\trootClientId,\n\t\t\t} ) => {\n\t\t\t\tif ( debouncedFilterValue !== filterValue ) {\n\t\t\t\t\tdebouncedSetFilterValue( filterValue );\n\t\t\t\t}\n\n\t\t\t\tif ( ! debouncedFilterValue ) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\treturn (\n\t\t\t\t\t<DownloadableBlocksPanel\n\t\t\t\t\t\tonSelect={ onSelect }\n\t\t\t\t\t\tonHover={ onHover }\n\t\t\t\t\t\trootClientId={ rootClientId }\n\t\t\t\t\t\tfilterValue={ debouncedFilterValue }\n\t\t\t\t\t\thasLocalBlocks={ hasItems }\n\t\t\t\t\t\tisTyping={ filterValue !== debouncedFilterValue }\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t} }\n\t\t</__unstableInserterMenuExtension>\n\t);\n}\n\nexport default InserterMenuDownloadableBlocksPanel;\n","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlockIcon from '../downloadable-block-icon';\n\nexport default function CompactList( { items } ) {\n\tif ( ! items.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<ul className=\"block-directory-compact-list\">\n\t\t\t{ items.map( ( { icon, id, title, author } ) => (\n\t\t\t\t<li key={ id } className=\"block-directory-compact-list__item\">\n\t\t\t\t\t<DownloadableBlockIcon icon={ icon } title={ title } />\n\n\t\t\t\t\t<div className=\"block-directory-compact-list__item-details\">\n\t\t\t\t\t\t<div className=\"block-directory-compact-list__item-title\">\n\t\t\t\t\t\t\t{ title }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"block-directory-compact-list__item-author\">\n\t\t\t\t\t\t\t{ sprintf(\n\t\t\t\t\t\t\t\t/* translators: %s: Name of the block author. */\n\t\t\t\t\t\t\t\t__( 'By %s' ),\n\t\t\t\t\t\t\t\tauthor\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t) ) }\n\t\t</ul>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { _n, sprintf } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\nimport { blockDefault } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport CompactList from '../../components/compact-list';\nimport { store as blockDirectoryStore } from '../../store';\n\n// We shouldn't import the edit-post package directly\n// because it would include the wp-edit-post in all pages loading the block-directory script.\nconst { PluginPrePublishPanel } = window?.wp?.editPost ?? {};\n\nexport default function InstalledBlocksPrePublishPanel() {\n\tconst newBlockTypes = useSelect(\n\t\t( select ) => select( blockDirectoryStore ).getNewBlockTypes(),\n\t\t[]\n\t);\n\n\tif ( ! newBlockTypes.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PluginPrePublishPanel\n\t\t\ticon={ blockDefault }\n\t\t\ttitle={ sprintf(\n\t\t\t\t// translators: %d: number of blocks (number).\n\t\t\t\t_n(\n\t\t\t\t\t'Added: %d block',\n\t\t\t\t\t'Added: %d blocks',\n\t\t\t\t\tnewBlockTypes.length\n\t\t\t\t),\n\t\t\t\tnewBlockTypes.length\n\t\t\t) }\n\t\t\tinitialOpen={ true }\n\t\t>\n\t\t\t<p className=\"installed-blocks-pre-publish-panel__copy\">\n\t\t\t\t{ _n(\n\t\t\t\t\t'The following block has been added to your site.',\n\t\t\t\t\t'The following blocks have been added to your site.',\n\t\t\t\t\tnewBlockTypes.length\n\t\t\t\t) }\n\t\t\t</p>\n\t\t\t<CompactList items={ newBlockTypes } />\n\t\t</PluginPrePublishPanel>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { createBlock, getBlockType, parse } from '@wordpress/blocks';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport { store as blockDirectoryStore } from '../../store';\n\nexport default function InstallButton( { attributes, block, clientId } ) {\n\tconst isInstallingBlock = useSelect(\n\t\t( select ) => select( blockDirectoryStore ).isInstalling( block.id ),\n\t\t[ block.id ]\n\t);\n\tconst { installBlockType } = useDispatch( blockDirectoryStore );\n\tconst { replaceBlock } = useDispatch( blockEditorStore );\n\n\treturn (\n\t\t<Button\n\t\t\tonClick={ () =>\n\t\t\t\tinstallBlockType( block ).then( ( success ) => {\n\t\t\t\t\tif ( success ) {\n\t\t\t\t\t\tconst blockType = getBlockType( block.name );\n\t\t\t\t\t\tconst [ originalBlock ] = parse(\n\t\t\t\t\t\t\tattributes.originalContent\n\t\t\t\t\t\t);\n\t\t\t\t\t\tif ( originalBlock && blockType ) {\n\t\t\t\t\t\t\treplaceBlock(\n\t\t\t\t\t\t\t\tclientId,\n\t\t\t\t\t\t\t\tcreateBlock(\n\t\t\t\t\t\t\t\t\tblockType.name,\n\t\t\t\t\t\t\t\t\toriginalBlock.attributes,\n\t\t\t\t\t\t\t\t\toriginalBlock.innerBlocks\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} )\n\t\t\t}\n\t\t\tdisabled={ isInstallingBlock }\n\t\t\tisBusy={ isInstallingBlock }\n\t\t\tvariant=\"primary\"\n\t\t>\n\t\t\t{ sprintf(\n\t\t\t\t/* translators: %s: block name */\n\t\t\t\t__( 'Install %s' ),\n\t\t\t\tblock.title\n\t\t\t) }\n\t\t</Button>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { createBlock } from '@wordpress/blocks';\nimport { RawHTML } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport {\n\tWarning,\n\tuseBlockProps,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport InstallButton from './install-button';\nimport { store as blockDirectoryStore } from '../../store';\n\nconst getInstallMissing = ( OriginalComponent ) => ( props ) => {\n\tconst { originalName } = props.attributes;\n\t// Disable reason: This is a valid component, but it's mistaken for a callback.\n\t// eslint-disable-next-line react-hooks/rules-of-hooks\n\tconst { block, hasPermission } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getDownloadableBlocks } = select( blockDirectoryStore );\n\t\t\tconst blocks = getDownloadableBlocks(\n\t\t\t\t'block:' + originalName\n\t\t\t).filter( ( { name } ) => originalName === name );\n\t\t\treturn {\n\t\t\t\thasPermission: select( coreStore ).canUser(\n\t\t\t\t\t'read',\n\t\t\t\t\t'block-directory/search'\n\t\t\t\t),\n\t\t\t\tblock: blocks.length && blocks[ 0 ],\n\t\t\t};\n\t\t},\n\t\t[ originalName ]\n\t);\n\n\t// The user can't install blocks, or the block isn't available for download.\n\tif ( ! hasPermission || ! block ) {\n\t\treturn <OriginalComponent { ...props } />;\n\t}\n\n\treturn <ModifiedWarning { ...props } originalBlock={ block } />;\n};\n\nconst ModifiedWarning = ( { originalBlock, ...props } ) => {\n\tconst { originalName, originalUndelimitedContent, clientId } =\n\t\tprops.attributes;\n\tconst { replaceBlock } = useDispatch( blockEditorStore );\n\tconst convertToHTML = () => {\n\t\treplaceBlock(\n\t\t\tprops.clientId,\n\t\t\tcreateBlock( 'core/html', {\n\t\t\t\tcontent: originalUndelimitedContent,\n\t\t\t} )\n\t\t);\n\t};\n\n\tconst hasContent = !! originalUndelimitedContent;\n\tconst hasHTMLBlock = useSelect(\n\t\t( select ) => {\n\t\t\tconst { canInsertBlockType, getBlockRootClientId } =\n\t\t\t\tselect( blockEditorStore );\n\n\t\t\treturn canInsertBlockType(\n\t\t\t\t'core/html',\n\t\t\t\tgetBlockRootClientId( clientId )\n\t\t\t);\n\t\t},\n\t\t[ clientId ]\n\t);\n\n\tlet messageHTML = sprintf(\n\t\t/* translators: %s: block name */\n\t\t__(\n\t\t\t'Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely.'\n\t\t),\n\t\toriginalBlock.title || originalName\n\t);\n\tconst actions = [\n\t\t<InstallButton\n\t\t\tkey=\"install\"\n\t\t\tblock={ originalBlock }\n\t\t\tattributes={ props.attributes }\n\t\t\tclientId={ props.clientId }\n\t\t/>,\n\t];\n\n\tif ( hasContent && hasHTMLBlock ) {\n\t\tmessageHTML = sprintf(\n\t\t\t/* translators: %s: block name */\n\t\t\t__(\n\t\t\t\t'Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.'\n\t\t\t),\n\t\t\toriginalBlock.title || originalName\n\t\t);\n\t\tactions.push(\n\t\t\t<Button key=\"convert\" onClick={ convertToHTML } variant=\"tertiary\">\n\t\t\t\t{ __( 'Keep as HTML' ) }\n\t\t\t</Button>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div { ...useBlockProps() }>\n\t\t\t<Warning actions={ actions }>{ messageHTML }</Warning>\n\t\t\t<RawHTML>{ originalUndelimitedContent }</RawHTML>\n\t\t</div>\n\t);\n};\n\nexport default getInstallMissing;\n","/**\n * WordPress dependencies\n */\nimport { registerPlugin } from '@wordpress/plugins';\nimport { addFilter } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport AutoBlockUninstaller from '../components/auto-block-uninstaller';\nimport InserterMenuDownloadableBlocksPanel from './inserter-menu-downloadable-blocks-panel';\nimport InstalledBlocksPrePublishPanel from './installed-blocks-pre-publish-panel';\nimport getInstallMissing from './get-install-missing';\n\nregisterPlugin( 'block-directory', {\n\trender() {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<AutoBlockUninstaller />\n\t\t\t\t<InserterMenuDownloadableBlocksPanel />\n\t\t\t\t<InstalledBlocksPrePublishPanel />\n\t\t\t</>\n\t\t);\n\t},\n} );\n\naddFilter(\n\t'blocks.registerBlockType',\n\t'block-directory/fallback',\n\t( settings, name ) => {\n\t\tif ( name !== 'core/missing' ) {\n\t\t\treturn settings;\n\t\t}\n\t\tsettings.edit = getInstallMissing( settings.edit );\n\n\t\treturn settings;\n\t}\n);\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","combineReducers","downloadableBlocks","state","action","type","filterValue","isRequesting","results","blockManagement","installedBlockTypes","isInstalling","item","filter","blockType","name","blockId","errorNotices","message","isFatal","restState","hasBlockType","blocks","length","some","i","innerBlocks","isRequestingDownloadableBlocks","getDownloadableBlocks","getInstalledBlockTypes","getNewBlockTypes","createRegistrySelector","select","usedBlockTree","blockEditorStore","getBlocks","getUnusedBlockTypes","getErrorNotices","getErrorNoticeForBlock","loadAsset","el","Promise","resolve","reject","newNode","document","createElement","nodeName","forEach","attr","innerHTML","appendChild","createTextNode","onload","onerror","Error","body","toLowerCase","src","getPluginUrl","block","link","links","self","href","fetchDownloadableBlocks","receiveDownloadableBlocks","installBlockType","async","registry","dispatch","id","success","clearErrorNotice","setIsInstalling","url","apiFetch","method","data","status","path","slug","_links","addInstalledBlockType","metadataFields","addQueryArgs","_fields","catch","then","response","unstable__bootstrapServerSideBlockDefinitions","fromEntries","entries","includes","location","parse","text","doc","DOMParser","parseFromString","newAssets","Array","from","querySelectorAll","asset","getElementById","newAsset","loadAssets","blocksStore","getBlockTypes","__","noticesStore","createInfoNotice","sprintf","title","speak","error","fatalAPIErrors","folder_exists","unable_to_connect_to_filesystem","code","setErrorNotice","createErrorNotice","isDismissible","uninstallBlockType","removeInstalledBlockType","__assign","assign","t","s","n","arguments","p","apply","this","lowerCase","str","create","DEFAULT_SPLIT_REGEXP","DEFAULT_STRIP_REGEXP","replace","input","re","RegExp","reduce","pascalCaseTransform","index","firstChar","charAt","lowerChars","substr","toUpperCase","pascalCase","options","splitRegexp","stripRegexp","transform","delimiter","result","start","end","slice","split","map","join","noCase","camelCaseTransform","storeConfig","reducer","selectors","actions","resolvers","store","createReduxStore","AutoBlockUninstaller","useDispatch","blockDirectoryStore","shouldRemoveBlockTypes","useSelect","isAutosavingPost","isSavingPost","editorStore","unusedBlockTypes","useEffect","unregisterBlockType","register","_extends","target","source","icon","size","props","cloneElement","width","height","SVG","xmlns","viewBox","Path","fillRule","clipRule","rating","stars","Math","round","fullStarCount","floor","halfStarCount","ceil","emptyStarCount","_","className","starFilled","starHalf","starEmpty","match","alt","BlockIcon","showColors","errorNotice","getDownloadableBlockLabel","ratingCount","hasNotice","isInstalled","decodeEntities","_n","composite","onClick","author","description","getBlockType","isInstallable","isBlockInstalling","notice","hasFatal","statusText","__experimentalIsFocusable","role","as","Button","event","preventDefault","isBusy","disabled","label","showTooltip","tooltipPosition","Spinner","createInterpolateElement","span","VisuallyHidden","noop","items","onHover","onSelect","useCompositeState","children","downloadableItems","hasLocalBlocks","count","blockDefault","Tip","ExternalLink","compose","withSelect","rootClientId","canInsertBlockType","hasPermission","coreStore","canUser","isLoading","isTyping","debouncedFilterValue","setFilterValue","useState","debouncedSetFilterValue","debounce","__unstableInserterMenuExtension","hasItems","CompactList","PluginPrePublishPanel","wp","editPost","InstalledBlocksPrePublishPanel","newBlockTypes","initialOpen","InstallButton","attributes","clientId","isInstallingBlock","replaceBlock","originalBlock","originalContent","createBlock","variant","ModifiedWarning","originalName","originalUndelimitedContent","hasContent","hasHTMLBlock","getBlockRootClientId","messageHTML","push","content","useBlockProps","Warning","RawHTML","registerPlugin","render","addFilter","settings","edit","OriginalComponent"],"sourceRoot":""}
|
build/block-directory/style-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:right;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-directory-downloadable-block-list-item.is-busy{background
|
1 |
+
:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:right;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-directory-downloadable-block-list-item.is-busy{background:transparent}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-left:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:hsla(0,0%,100%,.75);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-left:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
build/block-directory/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:left;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-directory-downloadable-block-list-item.is-busy{background
|
1 |
+
:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:left;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-directory-downloadable-block-list-item.is-busy{background:transparent}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-right:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:hsla(0,0%,100%,.75);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-right:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
build/block-editor/content-rtl.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout::selection{background:transparent}.has-multi-selection .block-editor-block-list__layout::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected){border-radius:2px;overflow:hidden}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.4;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{border-radius:2px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;outline:2px solid transparent;pointer-events:none;position:absolute;right:1px;top:1px;z-index:1}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected{box-shadow:none;outline:none}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{border-radius:2px;border-top:4px solid #ccc;content:"";left:0;pointer-events:none;position:absolute;right:0;top:-14px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;z-index:0}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{font-size:1px;height:1px;opacity:0;padding:0}.is-content-locked .block-editor-block-list__block{pointer-events:none}.is-content-locked .is-content-block{pointer-events:auto}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;position:relative;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{background-color:hsla(0,0%,100%,.4);border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 1px var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-delay:0s;transition-duration:0s}}.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-site-blocks>[data-align=left]{float:right;margin-left:2em}.wp-site-blocks>[data-align=right]{float:left;margin-right:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;transition:padding .2s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-delay:0s;transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{position:relative;z-index:5}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-iframe__body{transform-origin:top center;transition:all .3s}.block-editor-iframe__body.is-zoomed-out{margin:100px 0;transform:scale(.45)}.block-editor-iframe__body.is-zoomed-out .wp-site-blocks>*+*{margin-block-start:2.5rem}.block-editor-iframe__body.is-zoomed-out>.block-list-appender{display:none}.is-vertical .block-list-appender{margin-left:auto;margin-right:12px;margin-top:12px;width:24px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay:before{background:transparent;border:none;border-radius:2px;content:"";height:100%;position:absolute;right:0;top:0;width:100%;z-index:10}.block-editor-block-list__block.has-block-overlay:after{content:none!important}.block-editor-block-list__block.has-block-overlay:hover:not(.is-dragging-blocks):before{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay.is-reusable:hover:not(.is-dragging-blocks):before,.block-editor-block-list__block.has-block-overlay.wp-block-template-part:hover:not(.is-dragging-blocks):before{background:rgba(var(--wp-block-synced-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-block-synced-color) inset}.block-editor-block-list__block.has-block-overlay.is-selected:not(.is-dragging-blocks):before{box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-iframe__body.is-zoomed-out .block-editor-block-list__block.has-block-overlay:before{right:calc(50% - 50vw);width:100vw}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;border-radius:2px!important;opacity:.05!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:0;line-height:0;position:absolute;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;left:0;list-style:none;padding:0;position:absolute;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;box-shadow:none;color:#fff;display:none;flex-direction:row;height:24px;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;left:auto;line-height:inherit;list-style:none;position:relative}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-block-list__layout.has-overlay:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:60}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{border:none;border-radius:0;flex-grow:1;margin:2px;min-width:200px;width:100%}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:pointer}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.rich-text:focus{outline:none}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}
|
build/block-editor/content.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout::selection{background:transparent}.has-multi-selection .block-editor-block-list__layout::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected){border-radius:2px;overflow:hidden}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.4;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{border-radius:2px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;outline:2px solid transparent;pointer-events:none;position:absolute;right:1px;top:1px;z-index:1}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected{box-shadow:none;outline:none}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{border-radius:2px;border-top:4px solid #ccc;content:"";left:0;pointer-events:none;position:absolute;right:0;top:-14px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;z-index:0}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{font-size:1px;height:1px;opacity:0;padding:0}.is-content-locked .block-editor-block-list__block{pointer-events:none}.is-content-locked .is-content-block{pointer-events:auto}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;position:relative;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{background-color:hsla(0,0%,100%,.4);border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 1px var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-delay:0s;transition-duration:0s}}.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-site-blocks>[data-align=left]{float:left;margin-right:2em}.wp-site-blocks>[data-align=right]{float:right;margin-left:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;transition:padding .2s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-delay:0s;transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{position:relative;z-index:5}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-iframe__body{transform-origin:top center;transition:all .3s}.block-editor-iframe__body.is-zoomed-out{margin:100px 0;transform:scale(.45)}.block-editor-iframe__body.is-zoomed-out .wp-site-blocks>*+*{margin-block-start:2.5rem}.block-editor-iframe__body.is-zoomed-out>.block-list-appender{display:none}.is-vertical .block-list-appender{margin-left:12px;margin-right:auto;margin-top:12px;width:24px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay:before{background:transparent;border:none;border-radius:2px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:10}.block-editor-block-list__block.has-block-overlay:after{content:none!important}.block-editor-block-list__block.has-block-overlay:hover:not(.is-dragging-blocks):before{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay.is-reusable:hover:not(.is-dragging-blocks):before,.block-editor-block-list__block.has-block-overlay.wp-block-template-part:hover:not(.is-dragging-blocks):before{background:rgba(var(--wp-block-synced-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-block-synced-color) inset}.block-editor-block-list__block.has-block-overlay.is-selected:not(.is-dragging-blocks):before{box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-iframe__body.is-zoomed-out .block-editor-block-list__block.has-block-overlay:before{left:calc(50% - 50vw);width:100vw}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;border-radius:2px!important;opacity:.05!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{line-height:0;position:absolute;right:0;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;list-style:none;padding:0;position:absolute;right:0;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;box-shadow:none;color:#fff;display:none;flex-direction:row;height:24px;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;line-height:inherit;list-style:none;position:relative;right:auto}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-block-list__layout.has-overlay:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:60}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{border:none;border-radius:0;flex-grow:1;margin:2px;min-width:200px;width:100%}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:pointer}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.rich-text:focus{outline:none}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}
|
build/block-editor/default-editor-styles-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{--wp--style--block-gap:2em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em}
|
1 |
+
:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{--wp--style--block-gap:2em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em}
|
build/block-editor/default-editor-styles.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{--wp--style--block-gap:2em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em}
|
1 |
+
:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{--wp--style--block-gap:2em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em}
|
build/block-editor/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/******/ (()
|
2 |
/******/ var __webpack_modules__ = ({
|
3 |
|
4 |
/***/ 6411:
|
@@ -291,7 +291,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
291 |
/***/ }),
|
292 |
|
293 |
/***/ 4403:
|
294 |
-
/***/ ((module, exports)
|
295 |
|
296 |
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
297 |
Copyright (c) 2018 Jed Watson.
|
@@ -355,7 +355,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
355 |
/***/ }),
|
356 |
|
357 |
/***/ 4827:
|
358 |
-
/***/ ((module)
|
359 |
|
360 |
// This code has been refactored for 140 bytes
|
361 |
// You can see the original here: https://github.com/twolfson/computedStyle/blob/04cd1da2e30fa45844f95f5cb1ac898e9b9ef050/lib/computedStyle.js
|
@@ -389,7 +389,7 @@ module.exports = computedStyle;
|
|
389 |
/***/ }),
|
390 |
|
391 |
/***/ 1198:
|
392 |
-
/***/ ((__unused_webpack_module, exports)
|
393 |
|
394 |
"use strict";
|
395 |
/*istanbul ignore start*/
|
@@ -700,7 +700,7 @@ function clonePath(path) {
|
|
700 |
/***/ }),
|
701 |
|
702 |
/***/ 1973:
|
703 |
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
704 |
|
705 |
"use strict";
|
706 |
var __webpack_unused_export__;
|
@@ -745,7 +745,7 @@ function diffChars(oldStr, newStr, options) {
|
|
745 |
/***/ }),
|
746 |
|
747 |
/***/ 1345:
|
748 |
-
/***/ ((module, __unused_webpack_exports, __webpack_require__)
|
749 |
|
750 |
"use strict";
|
751 |
|
@@ -886,7 +886,7 @@ module.exports = scrollIntoView;
|
|
886 |
/***/ }),
|
887 |
|
888 |
/***/ 5425:
|
889 |
-
/***/ ((module, __unused_webpack_exports, __webpack_require__)
|
890 |
|
891 |
"use strict";
|
892 |
|
@@ -896,7 +896,7 @@ module.exports = __webpack_require__(1345);
|
|
896 |
/***/ }),
|
897 |
|
898 |
/***/ 5022:
|
899 |
-
/***/ ((module)
|
900 |
|
901 |
"use strict";
|
902 |
|
@@ -1342,7 +1342,7 @@ module.exports = _extends({
|
|
1342 |
/***/ }),
|
1343 |
|
1344 |
/***/ 8575:
|
1345 |
-
/***/ ((module)
|
1346 |
|
1347 |
if (typeof Object.create === 'function') {
|
1348 |
// implementation from standard node.js 'util' module
|
@@ -1372,7 +1372,7 @@ if (typeof Object.create === 'function') {
|
|
1372 |
/***/ }),
|
1373 |
|
1374 |
/***/ 9894:
|
1375 |
-
/***/ ((module, __unused_webpack_exports, __webpack_require__)
|
1376 |
|
1377 |
// Load in dependencies
|
1378 |
var computedStyle = __webpack_require__(4827);
|
@@ -1476,7 +1476,7 @@ module.exports = lineHeight;
|
|
1476 |
/***/ }),
|
1477 |
|
1478 |
/***/ 7970:
|
1479 |
-
/***/ ((module, __unused_webpack_exports, __webpack_require__)
|
1480 |
|
1481 |
module.exports = __webpack_require__(195);
|
1482 |
|
@@ -1484,7 +1484,7 @@ module.exports = __webpack_require__(195);
|
|
1484 |
/***/ }),
|
1485 |
|
1486 |
/***/ 3110:
|
1487 |
-
/***/ ((module)
|
1488 |
|
1489 |
"use strict";
|
1490 |
/**
|
@@ -1535,7 +1535,7 @@ module.exports = ExecutionEnvironment;
|
|
1535 |
/***/ }),
|
1536 |
|
1537 |
/***/ 3812:
|
1538 |
-
/***/ ((module)
|
1539 |
|
1540 |
/**
|
1541 |
* Copyright 2004-present Facebook. All Rights Reserved.
|
@@ -1824,7 +1824,7 @@ module.exports = UserAgent_DEPRECATED;
|
|
1824 |
/***/ }),
|
1825 |
|
1826 |
/***/ 7939:
|
1827 |
-
/***/ ((module, __unused_webpack_exports, __webpack_require__)
|
1828 |
|
1829 |
"use strict";
|
1830 |
/**
|
@@ -1895,7 +1895,7 @@ module.exports = isEventSupported;
|
|
1895 |
/***/ }),
|
1896 |
|
1897 |
/***/ 195:
|
1898 |
-
/***/ ((module, __unused_webpack_exports, __webpack_require__)
|
1899 |
|
1900 |
"use strict";
|
1901 |
/**
|
@@ -2084,7 +2084,7 @@ module.exports = normalizeWheel;
|
|
2084 |
/***/ }),
|
2085 |
|
2086 |
/***/ 5372:
|
2087 |
-
/***/ ((module, __unused_webpack_exports, __webpack_require__)
|
2088 |
|
2089 |
"use strict";
|
2090 |
/**
|
@@ -2156,7 +2156,7 @@ module.exports = function() {
|
|
2156 |
/***/ }),
|
2157 |
|
2158 |
/***/ 2652:
|
2159 |
-
/***/ ((module, __unused_webpack_exports, __webpack_require__)
|
2160 |
|
2161 |
/**
|
2162 |
* Copyright (c) 2013-present, Facebook, Inc.
|
@@ -2175,7 +2175,7 @@ if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
2175 |
/***/ }),
|
2176 |
|
2177 |
/***/ 9567:
|
2178 |
-
/***/ ((module)
|
2179 |
|
2180 |
"use strict";
|
2181 |
/**
|
@@ -2329,7 +2329,7 @@ exports.TextareaAutosize = React.forwardRef(function (props, ref) {
|
|
2329 |
/***/ }),
|
2330 |
|
2331 |
/***/ 773:
|
2332 |
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
2333 |
|
2334 |
"use strict";
|
2335 |
var __webpack_unused_export__;
|
@@ -2342,7 +2342,7 @@ exports.Z = TextareaAutosize_1.TextareaAutosize;
|
|
2342 |
/***/ }),
|
2343 |
|
2344 |
/***/ 4793:
|
2345 |
-
/***/ ((module)
|
2346 |
|
2347 |
var characterMap = {
|
2348 |
"À": "A",
|
@@ -2768,7 +2768,7 @@ module.exports.remove = removeAccents;
|
|
2768 |
/***/ }),
|
2769 |
|
2770 |
/***/ 3124:
|
2771 |
-
/***/ ((module)
|
2772 |
|
2773 |
var traverse = module.exports = function (obj) {
|
2774 |
return new Traverse(obj);
|
@@ -3089,7 +3089,7 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) {
|
|
3089 |
/***/ }),
|
3090 |
|
3091 |
/***/ 9196:
|
3092 |
-
/***/ ((module)
|
3093 |
|
3094 |
"use strict";
|
3095 |
module.exports = window["React"];
|
@@ -3124,399 +3124,400 @@ module.exports = window["React"];
|
|
3124 |
/******/
|
3125 |
/************************************************************************/
|
3126 |
/******/ /* webpack/runtime/compat get default export */
|
3127 |
-
/******/ (
|
3128 |
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
3129 |
-
/******/ __webpack_require__.n = (module)
|
3130 |
/******/ var getter = module && module.__esModule ?
|
3131 |
-
/******/ ()
|
3132 |
-
/******/ ()
|
3133 |
/******/ __webpack_require__.d(getter, { a: getter });
|
3134 |
/******/ return getter;
|
3135 |
/******/ };
|
3136 |
-
/******/ }
|
3137 |
/******/
|
3138 |
/******/ /* webpack/runtime/define property getters */
|
3139 |
-
/******/ (
|
3140 |
/******/ // define getter functions for harmony exports
|
3141 |
-
/******/ __webpack_require__.d = (exports, definition)
|
3142 |
/******/ for(var key in definition) {
|
3143 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
3144 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
3145 |
/******/ }
|
3146 |
/******/ }
|
3147 |
/******/ };
|
3148 |
-
/******/ }
|
3149 |
/******/
|
3150 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
3151 |
-
/******/ (
|
3152 |
-
/******/ __webpack_require__.o = (obj, prop)
|
3153 |
-
/******/ }
|
3154 |
/******/
|
3155 |
/******/ /* webpack/runtime/make namespace object */
|
3156 |
-
/******/ (
|
3157 |
/******/ // define __esModule on exports
|
3158 |
-
/******/ __webpack_require__.r = (exports)
|
3159 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
3160 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
3161 |
/******/ }
|
3162 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
3163 |
/******/ };
|
3164 |
-
/******/ }
|
3165 |
/******/
|
3166 |
/************************************************************************/
|
3167 |
var __webpack_exports__ = {};
|
3168 |
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
3169 |
-
(
|
3170 |
"use strict";
|
3171 |
// ESM COMPAT FLAG
|
3172 |
__webpack_require__.r(__webpack_exports__);
|
3173 |
|
3174 |
// EXPORTS
|
3175 |
__webpack_require__.d(__webpack_exports__, {
|
3176 |
-
"AlignmentControl": ()
|
3177 |
-
"AlignmentToolbar": ()
|
3178 |
-
"Autocomplete": ()
|
3179 |
-
"BlockAlignmentControl": ()
|
3180 |
-
"BlockAlignmentToolbar": ()
|
3181 |
-
"BlockBreadcrumb": ()
|
3182 |
-
"BlockColorsStyleSelector": ()
|
3183 |
-
"BlockContextProvider": ()
|
3184 |
-
"BlockControls": ()
|
3185 |
-
"BlockEdit": ()
|
3186 |
-
"BlockEditorKeyboardShortcuts": ()
|
3187 |
-
"BlockEditorProvider": ()
|
3188 |
-
"BlockFormatControls": ()
|
3189 |
-
"BlockIcon": ()
|
3190 |
-
"BlockInspector": ()
|
3191 |
-
"BlockList": ()
|
3192 |
-
"BlockMover": ()
|
3193 |
-
"BlockNavigationDropdown": ()
|
3194 |
-
"BlockPreview": ()
|
3195 |
-
"BlockSelectionClearer": ()
|
3196 |
-
"BlockSettingsMenu": ()
|
3197 |
-
"BlockSettingsMenuControls": ()
|
3198 |
-
"BlockStyles": ()
|
3199 |
-
"BlockTitle": ()
|
3200 |
-
"BlockToolbar": ()
|
3201 |
-
"BlockTools": ()
|
3202 |
-
"BlockVerticalAlignmentControl": ()
|
3203 |
-
"BlockVerticalAlignmentToolbar": ()
|
3204 |
-
"ButtonBlockAppender": ()
|
3205 |
-
"ButtonBlockerAppender": ()
|
3206 |
-
"ColorPalette": ()
|
3207 |
-
"ColorPaletteControl": ()
|
3208 |
-
"ContrastChecker": ()
|
3209 |
-
"CopyHandler": ()
|
3210 |
-
"DefaultBlockAppender": ()
|
3211 |
-
"FontSizePicker": ()
|
3212 |
-
"InnerBlocks": ()
|
3213 |
-
"Inserter": ()
|
3214 |
-
"InspectorAdvancedControls": ()
|
3215 |
-
"InspectorControls": ()
|
3216 |
-
"JustifyContentControl": ()
|
3217 |
-
"JustifyToolbar": ()
|
3218 |
-
"LineHeightControl": ()
|
3219 |
-
"MediaPlaceholder": ()
|
3220 |
-
"MediaReplaceFlow": ()
|
3221 |
-
"MediaUpload": ()
|
3222 |
-
"MediaUploadCheck": ()
|
3223 |
-
"MultiSelectScrollIntoView": ()
|
3224 |
-
"NavigableToolbar": ()
|
3225 |
-
"ObserveTyping": ()
|
3226 |
-
"PanelColorSettings": ()
|
3227 |
-
"PlainText": ()
|
3228 |
-
"RichText": ()
|
3229 |
-
"RichTextShortcut": ()
|
3230 |
-
"RichTextToolbarButton": ()
|
3231 |
-
"SETTINGS_DEFAULTS": ()
|
3232 |
-
"SkipToSelectedBlock": ()
|
3233 |
-
"ToolSelector": ()
|
3234 |
-
"Typewriter": ()
|
3235 |
-
"URLInput": ()
|
3236 |
-
"URLInputButton": ()
|
3237 |
-
"URLPopover": ()
|
3238 |
-
"Warning": ()
|
3239 |
-
"WritingFlow": ()
|
3240 |
-
"__experimentalBlockAlignmentMatrixControl": ()
|
3241 |
-
"__experimentalBlockFullHeightAligmentControl": ()
|
3242 |
-
"__experimentalBlockPatternSetup": ()
|
3243 |
-
"__experimentalBlockPatternsList": ()
|
3244 |
-
"__experimentalBlockVariationPicker": ()
|
3245 |
-
"__experimentalBlockVariationTransforms": ()
|
3246 |
-
"__experimentalBorderRadiusControl": ()
|
3247 |
-
"__experimentalColorGradientControl": ()
|
3248 |
-
"__experimentalColorGradientSettingsDropdown": ()
|
3249 |
-
"__experimentalDateFormatPicker": ()
|
3250 |
-
"__experimentalDuotoneControl": ()
|
3251 |
-
"__experimentalFontAppearanceControl": ()
|
3252 |
-
"__experimentalFontFamilyControl": ()
|
3253 |
-
"__experimentalGetBorderClassesAndStyles": ()
|
3254 |
-
"__experimentalGetColorClassesAndStyles": ()
|
3255 |
-
"__experimentalGetElementClassName": ()
|
3256 |
-
"__experimentalGetGapCSSValue": ()
|
3257 |
-
"__experimentalGetGradientClass": ()
|
3258 |
-
"__experimentalGetGradientObjectByGradientValue": ()
|
3259 |
-
"__experimentalGetMatchingVariation": ()
|
3260 |
-
"__experimentalGetSpacingClassesAndStyles": ()
|
3261 |
-
"
|
3262 |
-
"
|
3263 |
-
"
|
3264 |
-
"
|
3265 |
-
"
|
3266 |
-
"
|
3267 |
-
"
|
3268 |
-
"
|
3269 |
-
"
|
3270 |
-
"
|
3271 |
-
"
|
3272 |
-
"
|
3273 |
-
"
|
3274 |
-
"
|
3275 |
-
"
|
3276 |
-
"
|
3277 |
-
"
|
3278 |
-
"
|
3279 |
-
"
|
3280 |
-
"
|
3281 |
-
"
|
3282 |
-
"
|
3283 |
-
"
|
3284 |
-
"
|
3285 |
-
"
|
3286 |
-
"
|
3287 |
-
"
|
3288 |
-
"
|
3289 |
-
"
|
3290 |
-
"
|
3291 |
-
"
|
3292 |
-
"
|
3293 |
-
"
|
3294 |
-
"
|
3295 |
-
"
|
3296 |
-
"
|
3297 |
-
"
|
3298 |
-
"
|
3299 |
-
"
|
3300 |
-
"
|
3301 |
-
"
|
3302 |
-
"
|
3303 |
-
"
|
3304 |
-
"
|
3305 |
-
"
|
3306 |
-
"
|
3307 |
-
"
|
3308 |
-
"
|
3309 |
-
"
|
3310 |
-
"
|
3311 |
-
"
|
3312 |
-
"
|
3313 |
-
"
|
3314 |
-
"
|
3315 |
-
"
|
3316 |
-
"
|
3317 |
-
"
|
3318 |
-
"
|
3319 |
-
"
|
3320 |
-
"
|
3321 |
-
"
|
3322 |
-
"
|
3323 |
-
"
|
3324 |
-
"
|
3325 |
-
"
|
3326 |
-
"
|
3327 |
-
"
|
3328 |
-
"
|
3329 |
-
"
|
3330 |
-
"
|
3331 |
-
"
|
3332 |
-
"
|
3333 |
-
"
|
3334 |
-
"
|
3335 |
-
"
|
|
|
3336 |
});
|
3337 |
|
3338 |
// NAMESPACE OBJECT: ./packages/block-editor/build-module/store/selectors.js
|
3339 |
var selectors_namespaceObject = {};
|
3340 |
__webpack_require__.r(selectors_namespaceObject);
|
3341 |
__webpack_require__.d(selectors_namespaceObject, {
|
3342 |
-
"__experimentalGetActiveBlockIdByBlockNames": ()
|
3343 |
-
"__experimentalGetAllowedBlocks": ()
|
3344 |
-
"__experimentalGetAllowedPatterns": ()
|
3345 |
-
"__experimentalGetBlockListSettingsForBlocks": ()
|
3346 |
-
"__experimentalGetDirectInsertBlock": ()
|
3347 |
-
"__experimentalGetGlobalBlocksByName": ()
|
3348 |
-
"__experimentalGetLastBlockAttributeChanges": ()
|
3349 |
-
"__experimentalGetParsedPattern": ()
|
3350 |
-
"__experimentalGetPatternTransformItems": ()
|
3351 |
-
"__experimentalGetPatternsByBlockTypes": ()
|
3352 |
-
"__experimentalGetReusableBlockTitle": ()
|
3353 |
-
"__experimentalIsBlockInterfaceHidden": ()
|
3354 |
-
"__unstableGetBlockWithoutInnerBlocks": ()
|
3355 |
-
"__unstableGetClientIdWithClientIdsTree": ()
|
3356 |
-
"__unstableGetClientIdsTree": ()
|
3357 |
-
"__unstableGetContentLockingParent": ()
|
3358 |
-
"__unstableGetEditorMode": ()
|
3359 |
-
"__unstableGetSelectedBlocksWithPartialSelection": ()
|
3360 |
-
"__unstableGetTemporarilyEditingAsBlocks": ()
|
3361 |
-
"__unstableGetVisibleBlocks": ()
|
3362 |
-
"__unstableHasActiveBlockOverlayActive": ()
|
3363 |
-
"__unstableIsFullySelected": ()
|
3364 |
-
"__unstableIsLastBlockChangeIgnored": ()
|
3365 |
-
"__unstableIsSelectionCollapsed": ()
|
3366 |
-
"__unstableIsSelectionMergeable": ()
|
3367 |
-
"__unstableIsWithinBlockOverlay": ()
|
3368 |
-
"__unstableSelectionHasUnmergeableBlock": ()
|
3369 |
-
"areInnerBlocksControlled": ()
|
3370 |
-
"canEditBlock": ()
|
3371 |
-
"canInsertBlockType": ()
|
3372 |
-
"canInsertBlocks": ()
|
3373 |
-
"canLockBlockType": ()
|
3374 |
-
"canMoveBlock": ()
|
3375 |
-
"canMoveBlocks": ()
|
3376 |
-
"canRemoveBlock": ()
|
3377 |
-
"canRemoveBlocks": ()
|
3378 |
-
"didAutomaticChange": ()
|
3379 |
-
"getAdjacentBlockClientId": ()
|
3380 |
-
"getBlock": ()
|
3381 |
-
"getBlockAttributes": ()
|
3382 |
-
"getBlockCount": ()
|
3383 |
-
"getBlockHierarchyRootClientId": ()
|
3384 |
-
"getBlockIndex": ()
|
3385 |
-
"getBlockInsertionPoint": ()
|
3386 |
-
"getBlockListSettings": ()
|
3387 |
-
"getBlockMode": ()
|
3388 |
-
"getBlockName": ()
|
3389 |
-
"getBlockOrder": ()
|
3390 |
-
"getBlockParents": ()
|
3391 |
-
"getBlockParentsByBlockName": ()
|
3392 |
-
"getBlockRootClientId": ()
|
3393 |
-
"getBlockSelectionEnd": ()
|
3394 |
-
"getBlockSelectionStart": ()
|
3395 |
-
"getBlockTransformItems": ()
|
3396 |
-
"getBlocks": ()
|
3397 |
-
"getBlocksByClientId": ()
|
3398 |
-
"getClientIdsOfDescendants": ()
|
3399 |
-
"getClientIdsWithDescendants": ()
|
3400 |
-
"getDraggedBlockClientIds": ()
|
3401 |
-
"getFirstMultiSelectedBlockClientId": ()
|
3402 |
-
"getGlobalBlockCount": ()
|
3403 |
-
"getInserterItems": ()
|
3404 |
-
"getLastMultiSelectedBlockClientId": ()
|
3405 |
-
"getLowestCommonAncestorWithSelectedBlock": ()
|
3406 |
-
"getMultiSelectedBlockClientIds": ()
|
3407 |
-
"getMultiSelectedBlocks": ()
|
3408 |
-
"getMultiSelectedBlocksEndClientId": ()
|
3409 |
-
"getMultiSelectedBlocksStartClientId": ()
|
3410 |
-
"getNextBlockClientId": ()
|
3411 |
-
"getPreviousBlockClientId": ()
|
3412 |
-
"getSelectedBlock": ()
|
3413 |
-
"getSelectedBlockClientId": ()
|
3414 |
-
"getSelectedBlockClientIds": ()
|
3415 |
-
"getSelectedBlockCount": ()
|
3416 |
-
"getSelectedBlocksInitialCaretPosition": ()
|
3417 |
-
"getSelectionEnd": ()
|
3418 |
-
"getSelectionStart": ()
|
3419 |
-
"getSettings": ()
|
3420 |
-
"getTemplate": ()
|
3421 |
-
"getTemplateLock": ()
|
3422 |
-
"hasBlockMovingClientId": ()
|
3423 |
-
"hasInserterItems": ()
|
3424 |
-
"hasMultiSelection": ()
|
3425 |
-
"hasSelectedBlock": ()
|
3426 |
-
"hasSelectedInnerBlock": ()
|
3427 |
-
"isAncestorBeingDragged": ()
|
3428 |
-
"isAncestorMultiSelected": ()
|
3429 |
-
"isBlockBeingDragged": ()
|
3430 |
-
"isBlockHighlighted": ()
|
3431 |
-
"isBlockInsertionPointVisible": ()
|
3432 |
-
"isBlockMultiSelected": ()
|
3433 |
-
"isBlockSelected": ()
|
3434 |
-
"isBlockValid": ()
|
3435 |
-
"isBlockVisible": ()
|
3436 |
-
"isBlockWithinSelection": ()
|
3437 |
-
"isCaretWithinFormattedText": ()
|
3438 |
-
"isDraggingBlocks": ()
|
3439 |
-
"isFirstMultiSelectedBlock": ()
|
3440 |
-
"isLastBlockChangePersistent": ()
|
3441 |
-
"isMultiSelecting": ()
|
3442 |
-
"isNavigationMode": ()
|
3443 |
-
"isSelectionEnabled": ()
|
3444 |
-
"isTyping": ()
|
3445 |
-
"isValidTemplate": ()
|
3446 |
-
"wasBlockJustInserted": ()
|
3447 |
});
|
3448 |
|
3449 |
// NAMESPACE OBJECT: ./packages/block-editor/build-module/store/actions.js
|
3450 |
var actions_namespaceObject = {};
|
3451 |
__webpack_require__.r(actions_namespaceObject);
|
3452 |
__webpack_require__.d(actions_namespaceObject, {
|
3453 |
-
"__experimentalHideBlockInterface": ()
|
3454 |
-
"__experimentalShowBlockInterface": ()
|
3455 |
-
"__unstableDeleteSelection": ()
|
3456 |
-
"__unstableExpandSelection": ()
|
3457 |
-
"__unstableMarkAutomaticChange": ()
|
3458 |
-
"__unstableMarkLastChangeAsPersistent": ()
|
3459 |
-
"__unstableMarkNextChangeAsNotPersistent": ()
|
3460 |
-
"__unstableSaveReusableBlock": ()
|
3461 |
-
"__unstableSetEditorMode": ()
|
3462 |
-
"__unstableSetTemporarilyEditingAsBlocks": ()
|
3463 |
-
"__unstableSplitSelection": ()
|
3464 |
-
"clearSelectedBlock": ()
|
3465 |
-
"duplicateBlocks": ()
|
3466 |
-
"enterFormattedText": ()
|
3467 |
-
"exitFormattedText": ()
|
3468 |
-
"flashBlock": ()
|
3469 |
-
"hideInsertionPoint": ()
|
3470 |
-
"insertAfterBlock": ()
|
3471 |
-
"insertBeforeBlock": ()
|
3472 |
-
"insertBlock": ()
|
3473 |
-
"insertBlocks": ()
|
3474 |
-
"insertDefaultBlock": ()
|
3475 |
-
"mergeBlocks": ()
|
3476 |
-
"moveBlockToPosition": ()
|
3477 |
-
"moveBlocksDown": ()
|
3478 |
-
"moveBlocksToPosition": ()
|
3479 |
-
"moveBlocksUp": ()
|
3480 |
-
"multiSelect": ()
|
3481 |
-
"receiveBlocks": ()
|
3482 |
-
"removeBlock": ()
|
3483 |
-
"removeBlocks": ()
|
3484 |
-
"replaceBlock": ()
|
3485 |
-
"replaceBlocks": ()
|
3486 |
-
"replaceInnerBlocks": ()
|
3487 |
-
"resetBlocks": ()
|
3488 |
-
"resetSelection": ()
|
3489 |
-
"selectBlock": ()
|
3490 |
-
"selectNextBlock": ()
|
3491 |
-
"selectPreviousBlock": ()
|
3492 |
-
"selectionChange": ()
|
3493 |
-
"setBlockMovingClientId": ()
|
3494 |
-
"setBlockVisibility": ()
|
3495 |
-
"setHasControlledInnerBlocks": ()
|
3496 |
-
"setNavigationMode": ()
|
3497 |
-
"setTemplateValidity": ()
|
3498 |
-
"showInsertionPoint": ()
|
3499 |
-
"startDraggingBlocks": ()
|
3500 |
-
"startMultiSelect": ()
|
3501 |
-
"startTyping": ()
|
3502 |
-
"stopDraggingBlocks": ()
|
3503 |
-
"stopMultiSelect": ()
|
3504 |
-
"stopTyping": ()
|
3505 |
-
"synchronizeTemplate": ()
|
3506 |
-
"toggleBlockHighlight": ()
|
3507 |
-
"toggleBlockMode": ()
|
3508 |
-
"toggleSelection": ()
|
3509 |
-
"updateBlock": ()
|
3510 |
-
"updateBlockAttributes": ()
|
3511 |
-
"updateBlockListSettings": ()
|
3512 |
-
"updateSettings": ()
|
3513 |
-
"validateBlocksToTemplate": ()
|
3514 |
});
|
3515 |
|
3516 |
;// CONCATENATED MODULE: external ["wp","blocks"]
|
3517 |
-
|
3518 |
;// CONCATENATED MODULE: external ["wp","hooks"]
|
3519 |
-
|
3520 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/compat.js
|
3521 |
/**
|
3522 |
* WordPress dependencies
|
@@ -3557,18 +3558,18 @@ function _extends() {
|
|
3557 |
return _extends.apply(this, arguments);
|
3558 |
}
|
3559 |
;// CONCATENATED MODULE: external ["wp","element"]
|
3560 |
-
|
3561 |
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
3562 |
var classnames = __webpack_require__(4403);
|
3563 |
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
3564 |
;// CONCATENATED MODULE: external ["wp","compose"]
|
3565 |
-
|
3566 |
;// CONCATENATED MODULE: external ["wp","data"]
|
3567 |
-
|
3568 |
;// CONCATENATED MODULE: external "lodash"
|
3569 |
-
|
3570 |
;// CONCATENATED MODULE: external ["wp","components"]
|
3571 |
-
|
3572 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/groups.js
|
3573 |
/**
|
3574 |
* WordPress dependencies
|
@@ -3586,10 +3587,10 @@ const groups = {
|
|
3586 |
other: BlockControlsOther,
|
3587 |
parent: BlockControlsParent
|
3588 |
};
|
3589 |
-
/* harmony default export */
|
3590 |
|
3591 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
3592 |
-
|
3593 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/defaults.js
|
3594 |
/**
|
3595 |
* WordPress dependencies
|
@@ -3947,25 +3948,6 @@ function getFlattenedBlocksWithoutAttributes(blocks) {
|
|
3947 |
function getFlattenedBlockAttributes(blocks) {
|
3948 |
return flattenBlocks(blocks, block => block.attributes);
|
3949 |
}
|
3950 |
-
/**
|
3951 |
-
* Returns an object against which it is safe to perform mutating operations,
|
3952 |
-
* given the original object and its current working copy.
|
3953 |
-
*
|
3954 |
-
* @param {Object} original Original object.
|
3955 |
-
* @param {Object} working Working object.
|
3956 |
-
*
|
3957 |
-
* @return {Object} Mutation-safe object.
|
3958 |
-
*/
|
3959 |
-
|
3960 |
-
|
3961 |
-
function getMutateSafeObject(original, working) {
|
3962 |
-
if (original === working) {
|
3963 |
-
return { ...original
|
3964 |
-
};
|
3965 |
-
}
|
3966 |
-
|
3967 |
-
return working;
|
3968 |
-
}
|
3969 |
/**
|
3970 |
* Returns true if the two object arguments have the same keys, or false
|
3971 |
* otherwise.
|
@@ -4013,7 +3995,7 @@ function buildBlockTree(state, blocks) {
|
|
4013 |
|
4014 |
for (const block of flattenedBlocks) {
|
4015 |
result[block.clientId] = Object.assign(result[block.clientId], { ...state.byClientId[block.clientId],
|
4016 |
-
attributes: state.attributes
|
4017 |
innerBlocks: block.innerBlocks.map(subBlock => result[subBlock.clientId])
|
4018 |
});
|
4019 |
}
|
@@ -4101,7 +4083,7 @@ const withBlockTree = reducer => function () {
|
|
4101 |
newState.tree = updateParentInnerBlocksInTree(newState, { ...newState.tree,
|
4102 |
[action.clientId]: { ...newState.tree[action.clientId],
|
4103 |
...newState.byClientId[action.clientId],
|
4104 |
-
attributes: newState.attributes
|
4105 |
}
|
4106 |
}, [action.clientId], false);
|
4107 |
break;
|
@@ -4110,7 +4092,7 @@ const withBlockTree = reducer => function () {
|
|
4110 |
{
|
4111 |
const newSubTree = action.clientIds.reduce((result, clientId) => {
|
4112 |
result[clientId] = { ...newState.tree[clientId],
|
4113 |
-
attributes: newState.attributes
|
4114 |
};
|
4115 |
return result;
|
4116 |
}, {});
|
@@ -4182,17 +4164,16 @@ const withBlockTree = reducer => function () {
|
|
4182 |
|
4183 |
case 'SAVE_REUSABLE_BLOCK_SUCCESS':
|
4184 |
{
|
4185 |
-
const updatedBlockUids =
|
4186 |
-
|
4187 |
-
|
4188 |
-
|
4189 |
-
|
4190 |
-
return clientId;
|
4191 |
});
|
4192 |
newState.tree = updateParentInnerBlocksInTree(newState, { ...newState.tree,
|
4193 |
...updatedBlockUids.reduce((result, clientId) => {
|
4194 |
result[clientId] = { ...newState.byClientId[clientId],
|
4195 |
-
attributes: newState.attributes
|
4196 |
innerBlocks: newState.tree[clientId].innerBlocks
|
4197 |
};
|
4198 |
return result;
|
@@ -4344,7 +4325,7 @@ const withBlockReset = reducer => (state, action) => {
|
|
4344 |
if (action.type === 'RESET_BLOCKS') {
|
4345 |
const newState = { ...state,
|
4346 |
byClientId: getFlattenedBlocksWithoutAttributes(action.blocks),
|
4347 |
-
attributes: getFlattenedBlockAttributes(action.blocks),
|
4348 |
order: mapBlockOrder(action.blocks),
|
4349 |
parents: mapBlockParents(action.blocks),
|
4350 |
controlledInnerBlocks: {}
|
@@ -4475,18 +4456,17 @@ const withSaveReusableBlock = reducer => (state, action) => {
|
|
4475 |
|
4476 |
state = { ...state
|
4477 |
};
|
4478 |
-
state.attributes = (
|
|
|
4479 |
const {
|
4480 |
name
|
4481 |
} = state.byClientId[clientId];
|
4482 |
|
4483 |
if (name === 'core/block' && attributes.ref === id) {
|
4484 |
-
|
4485 |
ref: updatedId
|
4486 |
-
};
|
4487 |
}
|
4488 |
-
|
4489 |
-
return attributes;
|
4490 |
});
|
4491 |
}
|
4492 |
|
@@ -4576,73 +4556,102 @@ withBlockReset, withPersistentBlockChange, withIgnoredBlockChange, withResetCont
|
|
4576 |
},
|
4577 |
|
4578 |
attributes() {
|
4579 |
-
let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
4580 |
let action = arguments.length > 1 ? arguments[1] : undefined;
|
4581 |
|
4582 |
switch (action.type) {
|
4583 |
case 'RECEIVE_BLOCKS':
|
4584 |
case 'INSERT_BLOCKS':
|
4585 |
-
|
4586 |
-
|
4587 |
-
|
|
|
|
|
|
|
|
|
|
|
4588 |
|
4589 |
case 'UPDATE_BLOCK':
|
4590 |
-
|
4591 |
-
|
4592 |
-
|
4593 |
-
|
|
|
4594 |
|
4595 |
-
|
4596 |
-
|
4597 |
...action.updates.attributes
|
4598 |
-
}
|
4599 |
-
|
|
|
4600 |
|
4601 |
case 'UPDATE_BLOCK_ATTRIBUTES':
|
4602 |
{
|
4603 |
// Avoid a state change if none of the block IDs are known.
|
4604 |
-
if (action.clientIds.every(id => !state
|
4605 |
return state;
|
4606 |
}
|
4607 |
|
4608 |
-
|
|
|
|
|
|
|
4609 |
var _action$attributes;
|
4610 |
|
4611 |
-
|
4612 |
-
[id]: Object.entries(action.uniqueByBlock ? action.attributes[id] : (_action$attributes = action.attributes) !== null && _action$attributes !== void 0 ? _action$attributes : {}).reduce((result, _ref3) => {
|
4613 |
-
let [key, value] = _ref3;
|
4614 |
|
4615 |
-
|
4616 |
-
|
4617 |
-
|
4618 |
-
result[key] = value;
|
4619 |
-
}
|
4620 |
|
4621 |
-
|
4622 |
-
|
4623 |
-
};
|
4624 |
-
|
|
|
4625 |
|
4626 |
-
|
4627 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4628 |
}
|
4629 |
|
4630 |
-
return
|
4631 |
-
...next
|
4632 |
-
};
|
4633 |
}
|
4634 |
|
4635 |
case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN':
|
4636 |
-
|
4637 |
-
|
4638 |
-
|
|
|
4639 |
|
4640 |
-
|
4641 |
-
|
4642 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4643 |
|
4644 |
case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN':
|
4645 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
4646 |
}
|
4647 |
|
4648 |
return state;
|
@@ -5580,7 +5589,7 @@ function temporarilyEditingAsBlocks() {
|
|
5580 |
|
5581 |
return state;
|
5582 |
}
|
5583 |
-
/* harmony default export */
|
5584 |
blocks,
|
5585 |
isTyping,
|
5586 |
isBlockInterfaceHidden,
|
@@ -5904,7 +5913,7 @@ function isShallowEqual(a, b, fromIndex) {
|
|
5904 |
}
|
5905 |
|
5906 |
;// CONCATENATED MODULE: external ["wp","primitives"]
|
5907 |
-
|
5908 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/symbol.js
|
5909 |
|
5910 |
|
@@ -5918,12 +5927,12 @@ const symbol = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
5918 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
5919 |
d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
|
5920 |
}));
|
5921 |
-
/* harmony default export */
|
5922 |
|
5923 |
;// CONCATENATED MODULE: external ["wp","richText"]
|
5924 |
-
|
5925 |
;// CONCATENATED MODULE: external ["wp","deprecated"]
|
5926 |
-
|
5927 |
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
|
5928 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/utils.js
|
5929 |
/**
|
@@ -6009,10 +6018,10 @@ function getBlockName(state, clientId) {
|
|
6009 |
const socialLinkName = 'core/social-link';
|
6010 |
|
6011 |
if (external_wp_element_namespaceObject.Platform.OS !== 'web' && (block === null || block === void 0 ? void 0 : block.name) === socialLinkName) {
|
6012 |
-
const attributes = state.blocks.attributes
|
6013 |
const {
|
6014 |
service
|
6015 |
-
} = attributes;
|
6016 |
return service ? `${socialLinkName}-${service}` : socialLinkName;
|
6017 |
}
|
6018 |
|
@@ -6048,7 +6057,7 @@ function getBlockAttributes(state, clientId) {
|
|
6048 |
return null;
|
6049 |
}
|
6050 |
|
6051 |
-
return state.blocks.attributes
|
6052 |
}
|
6053 |
/**
|
6054 |
* Returns a block given its client ID. This is a parsed copy of the block,
|
@@ -6091,7 +6100,7 @@ const __unstableGetBlockWithoutInnerBlocks = rememo((state, clientId) => {
|
|
6091 |
return { ...block,
|
6092 |
attributes: getBlockAttributes(state, clientId)
|
6093 |
};
|
6094 |
-
}, (state, clientId) => [state.blocks.byClientId[clientId], state.blocks.attributes
|
6095 |
/**
|
6096 |
* Returns all block objects for the current post being edited as an array in
|
6097 |
* the order they appear in the post. Note that this will exclude child blocks
|
@@ -6417,10 +6426,10 @@ const getBlockParents = rememo(function (state, clientId) {
|
|
6417 |
const getBlockParentsByBlockName = rememo(function (state, clientId, blockName) {
|
6418 |
let ascending = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
6419 |
const parents = getBlockParents(state, clientId, ascending);
|
6420 |
-
return (0,external_lodash_namespaceObject.map)((0,external_lodash_namespaceObject.
|
6421 |
id,
|
6422 |
name: getBlockName(state, id)
|
6423 |
-
}))
|
6424 |
let {
|
6425 |
name
|
6426 |
} = _ref;
|
@@ -7949,7 +7958,7 @@ const __experimentalGetAllowedBlocks = rememo(function (state) {
|
|
7949 |
return;
|
7950 |
}
|
7951 |
|
7952 |
-
return (0,
|
7953 |
}, (state, rootClientId) => [state.blockListSettings[rootClientId], state.blocks.byClientId, state.settings.allowedBlockTypes, state.settings.templateLock, (0,external_wp_blocks_namespaceObject.getBlockTypes)()]);
|
7954 |
/**
|
7955 |
* Returns the block to be directly inserted by the block appender.
|
@@ -8068,7 +8077,7 @@ const getAllAllowedPatterns = rememo(state => {
|
|
8068 |
const __experimentalGetAllowedPatterns = rememo(function (state) {
|
8069 |
let rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
8070 |
const availableParsedPatterns = getAllAllowedPatterns(state);
|
8071 |
-
const patternsAllowed =
|
8072 |
let {
|
8073 |
blocks
|
8074 |
} = _ref11;
|
@@ -8494,7 +8503,7 @@ function __unstableIsWithinBlockOverlay(state, clientId) {
|
|
8494 |
}
|
8495 |
|
8496 |
;// CONCATENATED MODULE: external ["wp","a11y"]
|
8497 |
-
|
8498 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/selection.js
|
8499 |
/**
|
8500 |
* A robust way to retain selection position through various
|
@@ -10390,7 +10399,7 @@ BlockFormatControls.Slot = props => {
|
|
10390 |
}, props));
|
10391 |
};
|
10392 |
|
10393 |
-
/* harmony default export */
|
10394 |
|
10395 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-left.js
|
10396 |
|
@@ -10405,7 +10414,7 @@ const justifyLeft = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
10405 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10406 |
d: "M9 9v6h11V9H9zM4 20h1.5V4H4v16z"
|
10407 |
}));
|
10408 |
-
/* harmony default export */
|
10409 |
|
10410 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-center.js
|
10411 |
|
@@ -10420,7 +10429,7 @@ const justifyCenter = (0,external_wp_element_namespaceObject.createElement)(exte
|
|
10420 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10421 |
d: "M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"
|
10422 |
}));
|
10423 |
-
/* harmony default export */
|
10424 |
|
10425 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-right.js
|
10426 |
|
@@ -10435,7 +10444,7 @@ const justifyRight = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
10435 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10436 |
d: "M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"
|
10437 |
}));
|
10438 |
-
/* harmony default export */
|
10439 |
|
10440 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-space-between.js
|
10441 |
|
@@ -10450,7 +10459,7 @@ const justifySpaceBetween = (0,external_wp_element_namespaceObject.createElement
|
|
10450 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10451 |
d: "M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"
|
10452 |
}));
|
10453 |
-
/* harmony default export */
|
10454 |
|
10455 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-right.js
|
10456 |
|
@@ -10465,7 +10474,7 @@ const arrowRight = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
10465 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10466 |
d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"
|
10467 |
}));
|
10468 |
-
/* harmony default export */
|
10469 |
|
10470 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-down.js
|
10471 |
|
@@ -10480,7 +10489,7 @@ const arrowDown = (0,external_wp_element_namespaceObject.createElement)(external
|
|
10480 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10481 |
d: "m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"
|
10482 |
}));
|
10483 |
-
/* harmony default export */
|
10484 |
|
10485 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/utils.js
|
10486 |
/**
|
@@ -10920,7 +10929,7 @@ const settings_settings = (0,external_wp_element_namespaceObject.createElement)(
|
|
10920 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10921 |
d: "M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"
|
10922 |
}));
|
10923 |
-
/* harmony default export */
|
10924 |
|
10925 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-setting/index.js
|
10926 |
/**
|
@@ -11261,6 +11270,8 @@ function SpacingInputControl(_ref) {
|
|
11261 |
}), showCustomValueControl && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
|
11262 |
onMouseOver: onMouseOver,
|
11263 |
onMouseOut: onMouseOut,
|
|
|
|
|
11264 |
onChange: newSize => onChange(getNewCustomValue(newSize)),
|
11265 |
value: currentValue,
|
11266 |
units: units,
|
@@ -11274,13 +11285,16 @@ function SpacingInputControl(_ref) {
|
|
11274 |
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
|
11275 |
onMouseOver: onMouseOver,
|
11276 |
onMouseOut: onMouseOut,
|
|
|
|
|
11277 |
value: customRangeValue,
|
11278 |
min: 0,
|
11279 |
max: (_CUSTOM_VALUE_SETTING = (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[selectedUnit]) === null || _CUSTOM_VALUE_SETTING2 === void 0 ? void 0 : _CUSTOM_VALUE_SETTING2.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
|
11280 |
step: (_CUSTOM_VALUE_SETTING3 = (_CUSTOM_VALUE_SETTING4 = CUSTOM_VALUE_SETTINGS[selectedUnit]) === null || _CUSTOM_VALUE_SETTING4 === void 0 ? void 0 : _CUSTOM_VALUE_SETTING4.steps) !== null && _CUSTOM_VALUE_SETTING3 !== void 0 ? _CUSTOM_VALUE_SETTING3 : 0.1,
|
11281 |
withInputField: false,
|
11282 |
onChange: handleCustomValueSliderChange,
|
11283 |
-
className: "components-spacing-sizes-control__custom-value-range"
|
|
|
11284 |
})), showRangeControl && !showCustomValueControl && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
|
11285 |
onMouseOver: onMouseOver,
|
11286 |
onMouseOut: onMouseOut,
|
@@ -11305,7 +11319,9 @@ function SpacingInputControl(_ref) {
|
|
11305 |
marks: marks,
|
11306 |
label: ariaLabel,
|
11307 |
hideLabelFromVision: true,
|
11308 |
-
__nextHasNoMarginBottom: true
|
|
|
|
|
11309 |
}), !showRangeControl && !showCustomValueControl && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.CustomSelectControl, {
|
11310 |
className: "components-spacing-sizes-control__custom-select-control",
|
11311 |
value: options.find(option => option.key === currentValue) || '' // passing undefined here causes a downshift controlled/uncontrolled warning
|
@@ -11319,7 +11335,9 @@ function SpacingInputControl(_ref) {
|
|
11319 |
__nextUnconstrainedWidth: true,
|
11320 |
size: '__unstable-large',
|
11321 |
onMouseOver: onMouseOver,
|
11322 |
-
onMouseOut: onMouseOut
|
|
|
|
|
11323 |
}));
|
11324 |
}
|
11325 |
|
@@ -11490,7 +11508,7 @@ const link_link = (0,external_wp_element_namespaceObject.createElement)(external
|
|
11490 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11491 |
d: "M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"
|
11492 |
}));
|
11493 |
-
/* harmony default export */
|
11494 |
|
11495 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/link-off.js
|
11496 |
|
@@ -11505,7 +11523,7 @@ const linkOff = (0,external_wp_element_namespaceObject.createElement)(external_w
|
|
11505 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11506 |
d: "M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"
|
11507 |
}));
|
11508 |
-
/* harmony default export */
|
11509 |
|
11510 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/spacing-sizes-control/linked-button.js
|
11511 |
|
@@ -11631,7 +11649,7 @@ function SpacingSizesControl(_ref) {
|
|
11631 |
}
|
11632 |
|
11633 |
;// CONCATENATED MODULE: external ["wp","warning"]
|
11634 |
-
|
11635 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/groups.js
|
11636 |
/**
|
11637 |
* WordPress dependencies
|
@@ -11643,15 +11661,17 @@ const InspectorControlsBorder = (0,external_wp_components_namespaceObject.create
|
|
11643 |
const InspectorControlsColor = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsColor');
|
11644 |
const InspectorControlsDimensions = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsDimensions');
|
11645 |
const InspectorControlsTypography = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsTypography');
|
|
|
11646 |
const groups_groups = {
|
11647 |
default: InspectorControlsDefault,
|
11648 |
advanced: InspectorControlsAdvanced,
|
11649 |
border: InspectorControlsBorder,
|
11650 |
color: InspectorControlsColor,
|
11651 |
dimensions: InspectorControlsDimensions,
|
|
|
11652 |
typography: InspectorControlsTypography
|
11653 |
};
|
11654 |
-
/* harmony default export */
|
11655 |
|
11656 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/fill.js
|
11657 |
|
@@ -11980,10 +12000,10 @@ InspectorAdvancedControls.slotName = 'InspectorAdvancedControls';
|
|
11980 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/inspector-controls/README.md
|
11981 |
*/
|
11982 |
|
11983 |
-
/* harmony default export */
|
11984 |
|
11985 |
;// CONCATENATED MODULE: external ["wp","isShallowEqual"]
|
11986 |
-
|
11987 |
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
|
11988 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/use-popover-scroll.js
|
11989 |
/**
|
@@ -12024,7 +12044,7 @@ function usePopoverScroll(scrollableRef) {
|
|
12024 |
}, [scrollableRef]);
|
12025 |
}
|
12026 |
|
12027 |
-
/* harmony default export */
|
12028 |
|
12029 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/index.js
|
12030 |
|
@@ -12155,7 +12175,7 @@ function BlockPopover(_ref, ref) {
|
|
12155 |
}, children), !__unstableCoverTarget && children);
|
12156 |
}
|
12157 |
|
12158 |
-
/* harmony default export */
|
12159 |
|
12160 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/margin.js
|
12161 |
|
@@ -12375,7 +12395,7 @@ function MarginVisualizer(_ref2) {
|
|
12375 |
}));
|
12376 |
}
|
12377 |
|
12378 |
-
;// CONCATENATED MODULE: ./packages/block-editor/build-module/
|
12379 |
|
12380 |
|
12381 |
/**
|
@@ -12389,6 +12409,110 @@ function MarginVisualizer(_ref2) {
|
|
12389 |
*/
|
12390 |
|
12391 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12392 |
|
12393 |
|
12394 |
/**
|
@@ -12469,9 +12593,6 @@ function MinHeightEdit(props) {
|
|
12469 |
},
|
12470 |
setAttributes
|
12471 |
} = props;
|
12472 |
-
const units = (0,external_wp_components_namespaceObject.__experimentalUseCustomUnits)({
|
12473 |
-
availableUnits: useSetting('dimensions.units') || ['%', 'px', 'em', 'rem', 'vh', 'vw']
|
12474 |
-
});
|
12475 |
|
12476 |
if (useIsMinHeightDisabled(props)) {
|
12477 |
return null;
|
@@ -12488,13 +12609,10 @@ function MinHeightEdit(props) {
|
|
12488 |
});
|
12489 |
};
|
12490 |
|
12491 |
-
return (0,external_wp_element_namespaceObject.createElement)(
|
12492 |
label: (0,external_wp_i18n_namespaceObject.__)('Min. height'),
|
12493 |
value: style === null || style === void 0 ? void 0 : (_style$dimensions = style.dimensions) === null || _style$dimensions === void 0 ? void 0 : _style$dimensions.minHeight,
|
12494 |
-
|
12495 |
-
onChange: onChange,
|
12496 |
-
min: 0,
|
12497 |
-
size: '__unstable-large'
|
12498 |
});
|
12499 |
}
|
12500 |
|
@@ -12708,6 +12826,180 @@ function PaddingVisualizer(_ref2) {
|
|
12708 |
}));
|
12709 |
}
|
12710 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12711 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/dimensions.js
|
12712 |
|
12713 |
|
@@ -12736,6 +13028,7 @@ function PaddingVisualizer(_ref2) {
|
|
12736 |
|
12737 |
|
12738 |
|
|
|
12739 |
const DIMENSIONS_SUPPORT_KEY = 'dimensions';
|
12740 |
const SPACING_SUPPORT_KEY = 'spacing';
|
12741 |
const dimensions_ALL_SIDES = ['top', 'right', 'bottom', 'left'];
|
@@ -12780,8 +13073,9 @@ function DimensionsPanel(props) {
|
|
12780 |
const isPaddingDisabled = useIsPaddingDisabled(props);
|
12781 |
const isMarginDisabled = useIsMarginDisabled(props);
|
12782 |
const isMinHeightDisabled = useIsMinHeightDisabled(props);
|
|
|
12783 |
const isDisabled = useIsDimensionsDisabled(props);
|
12784 |
-
const isSupported = hasDimensionsSupport(props
|
12785 |
const spacingSizes = useSetting('spacing.spacingSizes');
|
12786 |
const paddingMouseOver = useVisualizerMouseOver();
|
12787 |
const marginMouseOver = useVisualizerMouseOver();
|
@@ -12808,6 +13102,9 @@ function DimensionsPanel(props) {
|
|
12808 |
const spacingClassnames = classnames_default()({
|
12809 |
'tools-panel-item-spacing': spacingSizes && spacingSizes.length > 0
|
12810 |
});
|
|
|
|
|
|
|
12811 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(inspector_controls, {
|
12812 |
__experimentalGroup: "dimensions"
|
12813 |
}, !isPaddingDisabled && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
|
@@ -12841,14 +13138,22 @@ function DimensionsPanel(props) {
|
|
12841 |
isShownByDefault: defaultSpacingControls === null || defaultSpacingControls === void 0 ? void 0 : defaultSpacingControls.blockGap,
|
12842 |
panelId: props.clientId
|
12843 |
}, (0,external_wp_element_namespaceObject.createElement)(GapEdit, props)), !isMinHeightDisabled && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
|
12844 |
-
className: "single-column",
|
12845 |
hasValue: () => hasMinHeightValue(props),
|
12846 |
label: (0,external_wp_i18n_namespaceObject.__)('Min. height'),
|
12847 |
onDeselect: () => resetMinHeight(props),
|
12848 |
resetAllFilter: createResetAllFilter('minHeight', 'dimensions'),
|
12849 |
isShownByDefault: defaultDimensionsControls === null || defaultDimensionsControls === void 0 ? void 0 : defaultDimensionsControls.minHeight,
|
12850 |
panelId: props.clientId
|
12851 |
-
}, (0,external_wp_element_namespaceObject.createElement)(MinHeightEdit, props))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12852 |
forceShow: paddingMouseOver.isMouseOver
|
12853 |
}, props)), !isMarginDisabled && (0,external_wp_element_namespaceObject.createElement)(MarginVisualizer, _extends({
|
12854 |
forceShow: marginMouseOver.isMouseOver
|
@@ -12857,17 +13162,20 @@ function DimensionsPanel(props) {
|
|
12857 |
/**
|
12858 |
* Determine whether there is dimensions related block support.
|
12859 |
*
|
12860 |
-
* @param {
|
12861 |
*
|
12862 |
* @return {boolean} Whether there is support.
|
12863 |
*/
|
12864 |
|
12865 |
-
function hasDimensionsSupport(
|
12866 |
if (external_wp_element_namespaceObject.Platform.OS !== 'web') {
|
12867 |
return false;
|
12868 |
}
|
12869 |
|
12870 |
-
|
|
|
|
|
|
|
12871 |
}
|
12872 |
/**
|
12873 |
* Determines whether dimensions support has been disabled.
|
@@ -12883,7 +13191,8 @@ const useIsDimensionsDisabled = function () {
|
|
12883 |
const minHeightDisabled = useIsMinHeightDisabled(props);
|
12884 |
const paddingDisabled = useIsPaddingDisabled(props);
|
12885 |
const marginDisabled = useIsMarginDisabled(props);
|
12886 |
-
|
|
|
12887 |
};
|
12888 |
/**
|
12889 |
* Custom hook to retrieve which padding/margin/blockGap is supported
|
@@ -13269,7 +13578,7 @@ function BlockVerticalAlignmentUI(_ref) {
|
|
13269 |
*/
|
13270 |
|
13271 |
|
13272 |
-
/* harmony default export */
|
13273 |
|
13274 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-vertical-alignment-control/index.js
|
13275 |
|
@@ -13374,7 +13683,7 @@ function JustifyContentUI(_ref) {
|
|
13374 |
}, extraProps));
|
13375 |
}
|
13376 |
|
13377 |
-
/* harmony default export */
|
13378 |
|
13379 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/justify-content-control/index.js
|
13380 |
|
@@ -13439,7 +13748,7 @@ const verticalAlignmentMap = {
|
|
13439 |
bottom: 'flex-end'
|
13440 |
};
|
13441 |
const flexWrapOptions = ['wrap', 'nowrap'];
|
13442 |
-
/* harmony default export */
|
13443 |
name: 'flex',
|
13444 |
label: (0,external_wp_i18n_namespaceObject.__)('Flex'),
|
13445 |
inspectorControls: function FlexLayoutInspectorControls(_ref) {
|
@@ -13737,7 +14046,7 @@ function OrientationControl(_ref8) {
|
|
13737 |
|
13738 |
|
13739 |
|
13740 |
-
/* harmony default export */
|
13741 |
name: 'default',
|
13742 |
label: (0,external_wp_i18n_namespaceObject.__)('Flow'),
|
13743 |
inspectorControls: function DefaultLayoutInspectorControls() {
|
@@ -13861,7 +14170,7 @@ function Icon(_ref) {
|
|
13861 |
});
|
13862 |
}
|
13863 |
|
13864 |
-
/* harmony default export */
|
13865 |
|
13866 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-center.js
|
13867 |
|
@@ -13876,7 +14185,7 @@ const positionCenter = (0,external_wp_element_namespaceObject.createElement)(ext
|
|
13876 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
13877 |
d: "M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"
|
13878 |
}));
|
13879 |
-
/* harmony default export */
|
13880 |
|
13881 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-wide.js
|
13882 |
|
@@ -13891,10 +14200,10 @@ const stretchWide = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
13891 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
13892 |
d: "M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"
|
13893 |
}));
|
13894 |
-
/* harmony default export */
|
13895 |
|
13896 |
;// CONCATENATED MODULE: external ["wp","styleEngine"]
|
13897 |
-
|
13898 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/constrained.js
|
13899 |
|
13900 |
|
@@ -13913,7 +14222,7 @@ const external_wp_styleEngine_namespaceObject = window["wp"]["styleEngine"];
|
|
13913 |
|
13914 |
|
13915 |
|
13916 |
-
/* harmony default export */
|
13917 |
name: 'constrained',
|
13918 |
label: (0,external_wp_i18n_namespaceObject.__)('Constrained'),
|
13919 |
inspectorControls: function DefaultLayoutInspectorControls(_ref) {
|
@@ -14319,7 +14628,7 @@ const alignNone = (0,external_wp_element_namespaceObject.createElement)(external
|
|
14319 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
14320 |
d: "M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"
|
14321 |
}));
|
14322 |
-
/* harmony default export */
|
14323 |
|
14324 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-left.js
|
14325 |
|
@@ -14334,7 +14643,7 @@ const positionLeft = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
14334 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
14335 |
d: "M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"
|
14336 |
}));
|
14337 |
-
/* harmony default export */
|
14338 |
|
14339 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-right.js
|
14340 |
|
@@ -14349,7 +14658,7 @@ const positionRight = (0,external_wp_element_namespaceObject.createElement)(exte
|
|
14349 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
14350 |
d: "M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"
|
14351 |
}));
|
14352 |
-
/* harmony default export */
|
14353 |
|
14354 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-full-width.js
|
14355 |
|
@@ -14364,7 +14673,7 @@ const stretchFullWidth = (0,external_wp_element_namespaceObject.createElement)(e
|
|
14364 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
14365 |
d: "M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"
|
14366 |
}));
|
14367 |
-
/* harmony default export */
|
14368 |
|
14369 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/constants.js
|
14370 |
/**
|
@@ -14505,7 +14814,7 @@ function BlockAlignmentUI(_ref) {
|
|
14505 |
return (0,external_wp_element_namespaceObject.createElement)(UIComponent, _extends({}, commonProps, extraProps));
|
14506 |
}
|
14507 |
|
14508 |
-
/* harmony default export */
|
14509 |
|
14510 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/index.js
|
14511 |
|
@@ -15149,7 +15458,7 @@ function addGeneratedClassName(extraProps, blockType) {
|
|
15149 |
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName);
|
15150 |
|
15151 |
;// CONCATENATED MODULE: external ["wp","dom"]
|
15152 |
-
|
15153 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-context/index.js
|
15154 |
|
15155 |
|
@@ -15192,7 +15501,7 @@ function BlockContextProvider(_ref) {
|
|
15192 |
children: children
|
15193 |
});
|
15194 |
}
|
15195 |
-
/* harmony default export */
|
15196 |
|
15197 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/edit.js
|
15198 |
|
@@ -15202,7 +15511,6 @@ function BlockContextProvider(_ref) {
|
|
15202 |
* External dependencies
|
15203 |
*/
|
15204 |
|
15205 |
-
|
15206 |
/**
|
15207 |
* WordPress dependencies
|
15208 |
*/
|
@@ -15234,7 +15542,10 @@ const Edit = props => {
|
|
15234 |
const blockContext = (0,external_wp_element_namespaceObject.useContext)(block_context); // Assign context values using the block type's declared context needs.
|
15235 |
|
15236 |
const context = (0,external_wp_element_namespaceObject.useMemo)(() => {
|
15237 |
-
return blockType && blockType.usesContext ? (
|
|
|
|
|
|
|
15238 |
}, [blockType, blockContext]);
|
15239 |
|
15240 |
if (!blockType) {
|
@@ -15260,7 +15571,7 @@ const Edit = props => {
|
|
15260 |
className: className
|
15261 |
}));
|
15262 |
};
|
15263 |
-
/* harmony default export */
|
15264 |
|
15265 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/index.js
|
15266 |
|
@@ -15319,7 +15630,7 @@ const moreHorizontal = (0,external_wp_element_namespaceObject.createElement)(ext
|
|
15319 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
15320 |
d: "M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"
|
15321 |
}));
|
15322 |
-
/* harmony default export */
|
15323 |
|
15324 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/warning/index.js
|
15325 |
|
@@ -15379,7 +15690,7 @@ function Warning(_ref) {
|
|
15379 |
*/
|
15380 |
|
15381 |
|
15382 |
-
/* harmony default export */
|
15383 |
|
15384 |
// EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
|
15385 |
var character = __webpack_require__(1973);
|
@@ -15494,7 +15805,7 @@ function BlockCompare(_ref) {
|
|
15494 |
}));
|
15495 |
}
|
15496 |
|
15497 |
-
/* harmony default export */
|
15498 |
|
15499 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-invalid-warning.js
|
15500 |
|
@@ -15581,7 +15892,7 @@ const recoverBlock = _ref2 => {
|
|
15581 |
return (0,external_wp_blocks_namespaceObject.createBlock)(name, attributes, innerBlocks);
|
15582 |
};
|
15583 |
|
15584 |
-
/* harmony default export */
|
15585 |
let {
|
15586 |
clientId
|
15587 |
} = _ref3;
|
@@ -15630,7 +15941,7 @@ const recoverBlock = _ref2 => {
|
|
15630 |
const block_crash_warning_warning = (0,external_wp_element_namespaceObject.createElement)(warning, {
|
15631 |
className: "block-editor-block-list__block-crash-warning"
|
15632 |
}, (0,external_wp_i18n_namespaceObject.__)('This block has encountered an error and cannot be previewed.'));
|
15633 |
-
/* harmony default export */
|
15634 |
|
15635 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-crash-boundary.js
|
15636 |
/**
|
@@ -15662,7 +15973,7 @@ class BlockCrashBoundary extends external_wp_element_namespaceObject.Component {
|
|
15662 |
|
15663 |
}
|
15664 |
|
15665 |
-
/* harmony default export */
|
15666 |
|
15667 |
// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
|
15668 |
var lib = __webpack_require__(773);
|
@@ -15734,7 +16045,7 @@ function BlockHTML(_ref) {
|
|
15734 |
});
|
15735 |
}
|
15736 |
|
15737 |
-
/* harmony default export */
|
15738 |
|
15739 |
;// CONCATENATED MODULE: ./node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.js
|
15740 |
let updateQueue = makeQueue();
|
@@ -19716,7 +20027,7 @@ const react_spring_core_esm_update = frameLoop.advance;
|
|
19716 |
|
19717 |
|
19718 |
;// CONCATENATED MODULE: external "ReactDOM"
|
19719 |
-
|
19720 |
;// CONCATENATED MODULE: ./node_modules/@react-spring/web/dist/react-spring-web.esm.js
|
19721 |
|
19722 |
|
@@ -20113,7 +20424,7 @@ function useMovingAnimation(_ref) {
|
|
20113 |
return ref;
|
20114 |
}
|
20115 |
|
20116 |
-
/* harmony default export */
|
20117 |
|
20118 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/dom.js
|
20119 |
const BLOCK_SELECTOR = '.block-editor-block-list__block';
|
@@ -20594,7 +20905,7 @@ function useFocusHandler(clientId) {
|
|
20594 |
}
|
20595 |
|
20596 |
;// CONCATENATED MODULE: external ["wp","keycodes"]
|
20597 |
-
|
20598 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js
|
20599 |
/**
|
20600 |
* WordPress dependencies
|
@@ -20962,6 +21273,7 @@ useBlockProps.save = external_wp_blocks_namespaceObject.__unstableGetBlockProps;
|
|
20962 |
|
20963 |
|
20964 |
|
|
|
20965 |
const BlockListBlockContext = (0,external_wp_element_namespaceObject.createContext)();
|
20966 |
/**
|
20967 |
* Merges wrapper props with special handling for classNames and styles.
|
@@ -21053,7 +21365,8 @@ function BlockListBlock(_ref2) {
|
|
21053 |
const {
|
21054 |
removeBlock
|
21055 |
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
21056 |
-
const onRemove = (0,external_wp_element_namespaceObject.useCallback)(() => removeBlock(clientId), [clientId]);
|
|
|
21057 |
// HTML mode. This allows us to render all of the ancillary pieces
|
21058 |
// (InspectorControls, etc.) which are inside `BlockEdit` but not
|
21059 |
// `BlockHTML`, even in HTML mode.
|
@@ -21070,7 +21383,8 @@ function BlockListBlock(_ref2) {
|
|
21070 |
clientId: clientId,
|
21071 |
isSelectionEnabled: isSelectionEnabled,
|
21072 |
toggleSelection: toggleSelection,
|
21073 |
-
__unstableLayoutClassNames: layoutClassNames
|
|
|
21074 |
});
|
21075 |
const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(name);
|
21076 |
|
@@ -21353,7 +21667,7 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
|
|
21353 |
|
21354 |
};
|
21355 |
});
|
21356 |
-
/* harmony default export */
|
21357 |
// see issue for more info
|
21358 |
// https://github.com/WordPress/gutenberg/issues/17013
|
21359 |
(0,external_wp_compose_namespaceObject.ifCondition)(_ref4 => {
|
@@ -21364,7 +21678,7 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
|
|
21364 |
}), (0,external_wp_components_namespaceObject.withFilters)('editor.BlockListBlock'))(BlockListBlock));
|
21365 |
|
21366 |
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
|
21367 |
-
|
21368 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/plus.js
|
21369 |
|
21370 |
|
@@ -21378,7 +21692,7 @@ const plus = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
21378 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
21379 |
d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"
|
21380 |
}));
|
21381 |
-
/* harmony default export */
|
21382 |
|
21383 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tips.js
|
21384 |
|
@@ -21404,7 +21718,37 @@ function Tips() {
|
|
21404 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Tip, null, globalTips[randomIndex]);
|
21405 |
}
|
21406 |
|
21407 |
-
/* harmony default export */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21408 |
|
21409 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
|
21410 |
|
@@ -21419,7 +21763,7 @@ const blockDefault = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
21419 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
21420 |
d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
|
21421 |
}));
|
21422 |
-
/* harmony default export */
|
21423 |
|
21424 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
|
21425 |
|
@@ -21470,27 +21814,40 @@ function BlockIcon(_ref) {
|
|
21470 |
*/
|
21471 |
|
21472 |
|
21473 |
-
/* harmony default export */
|
21474 |
|
21475 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-card/index.js
|
21476 |
|
21477 |
|
|
|
|
|
|
|
|
|
21478 |
/**
|
21479 |
* WordPress dependencies
|
21480 |
*/
|
21481 |
|
|
|
|
|
|
|
|
|
|
|
21482 |
/**
|
21483 |
* Internal dependencies
|
21484 |
*/
|
21485 |
|
21486 |
|
21487 |
|
|
|
21488 |
function BlockCard(_ref) {
|
|
|
|
|
21489 |
let {
|
21490 |
title,
|
21491 |
icon,
|
21492 |
description,
|
21493 |
-
blockType
|
|
|
21494 |
} = _ref;
|
21495 |
|
21496 |
if (blockType) {
|
@@ -21505,9 +21862,38 @@ function BlockCard(_ref) {
|
|
21505 |
} = blockType);
|
21506 |
}
|
21507 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21508 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
21509 |
-
className:
|
21510 |
-
}, (0,external_wp_element_namespaceObject.createElement)(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21511 |
icon: icon,
|
21512 |
showColors: true
|
21513 |
}), (0,external_wp_element_namespaceObject.createElement)("div", {
|
@@ -21519,7 +21905,7 @@ function BlockCard(_ref) {
|
|
21519 |
}, description)));
|
21520 |
}
|
21521 |
|
21522 |
-
/* harmony default export */
|
21523 |
|
21524 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/with-registry-provider.js
|
21525 |
|
@@ -21569,7 +21955,7 @@ const withRegistryProvider = (0,external_wp_compose_namespaceObject.createHigher
|
|
21569 |
}, props)));
|
21570 |
});
|
21571 |
}, 'withRegistryProvider');
|
21572 |
-
/* harmony default export */
|
21573 |
|
21574 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/use-block-sync.js
|
21575 |
/**
|
@@ -21853,28 +22239,7 @@ function BlockEditorProvider(props) {
|
|
21853 |
return (0,external_wp_element_namespaceObject.createElement)(BlockRefsProvider, null, children);
|
21854 |
}
|
21855 |
|
21856 |
-
/* harmony default export */
|
21857 |
-
|
21858 |
-
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/live.js
|
21859 |
-
|
21860 |
-
|
21861 |
-
/**
|
21862 |
-
* Internal dependencies
|
21863 |
-
*/
|
21864 |
-
|
21865 |
-
function LiveBlockPreview(_ref) {
|
21866 |
-
let {
|
21867 |
-
onClick
|
21868 |
-
} = _ref;
|
21869 |
-
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
21870 |
-
tabIndex: 0,
|
21871 |
-
role: "button",
|
21872 |
-
onClick: onClick,
|
21873 |
-
onKeyPress: onClick
|
21874 |
-
}, (0,external_wp_element_namespaceObject.createElement)("div", {
|
21875 |
-
inert: "true"
|
21876 |
-
}, (0,external_wp_element_namespaceObject.createElement)(BlockList, null)));
|
21877 |
-
}
|
21878 |
|
21879 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-selection-clearer/index.js
|
21880 |
|
@@ -22476,7 +22841,7 @@ function useArrowNav() {
|
|
22476 |
}
|
22477 |
|
22478 |
;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
|
22479 |
-
|
22480 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-select-all.js
|
22481 |
/**
|
22482 |
* WordPress dependencies
|
@@ -23113,7 +23478,7 @@ function WritingFlow(_ref, forwardedRef) {
|
|
23113 |
*/
|
23114 |
|
23115 |
|
23116 |
-
/* harmony default export */
|
23117 |
|
23118 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/iframe/index.js
|
23119 |
|
@@ -23430,7 +23795,7 @@ function Iframe(_ref3, ref) {
|
|
23430 |
}, children))), iframeDocument.documentElement)), tabIndex >= 0 && after);
|
23431 |
}
|
23432 |
|
23433 |
-
/* harmony default export */
|
23434 |
|
23435 |
;// CONCATENATED MODULE: ./node_modules/colord/index.mjs
|
23436 |
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()})};
|
@@ -24148,7 +24513,7 @@ var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_brows
|
|
24148 |
/**
|
24149 |
* Expose `Compiler`.
|
24150 |
*/
|
24151 |
-
/* harmony default export */
|
24152 |
/**
|
24153 |
* Initialize a compiler.
|
24154 |
*/
|
@@ -24209,7 +24574,7 @@ Compiler.prototype.mapVisit = function (nodes, delim) {
|
|
24209 |
* Expose compiler.
|
24210 |
*/
|
24211 |
|
24212 |
-
/* harmony default export */
|
24213 |
/**
|
24214 |
* Initialize a new `Compiler`.
|
24215 |
*/
|
@@ -24378,7 +24743,7 @@ compress_Compiler.prototype.declaration = function (node) {
|
|
24378 |
* Expose compiler.
|
24379 |
*/
|
24380 |
|
24381 |
-
/* harmony default export */
|
24382 |
/**
|
24383 |
* Initialize a new `Compiler`.
|
24384 |
*/
|
@@ -24617,7 +24982,7 @@ function traverseCSS(css, callback) {
|
|
24617 |
}
|
24618 |
}
|
24619 |
|
24620 |
-
/* harmony default export */
|
24621 |
|
24622 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/url-rewrite.js
|
24623 |
/**
|
@@ -24753,7 +25118,7 @@ const rewrite = rootURL => node => {
|
|
24753 |
return node;
|
24754 |
};
|
24755 |
|
24756 |
-
/* harmony default export */
|
24757 |
|
24758 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/wrap.js
|
24759 |
/**
|
@@ -24805,7 +25170,7 @@ const wrap = function (namespace) {
|
|
24805 |
};
|
24806 |
};
|
24807 |
|
24808 |
-
/* harmony default export */
|
24809 |
|
24810 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/index.js
|
24811 |
/**
|
@@ -24857,7 +25222,7 @@ const transform_styles_transformStyles = function (styles) {
|
|
24857 |
});
|
24858 |
};
|
24859 |
|
24860 |
-
/* harmony default export */
|
24861 |
|
24862 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/editor-styles/index.js
|
24863 |
|
@@ -25250,14 +25615,11 @@ function AutoBlockPreview(props) {
|
|
25250 |
|
25251 |
|
25252 |
|
25253 |
-
|
25254 |
function BlockPreview(_ref) {
|
25255 |
let {
|
25256 |
blocks,
|
25257 |
__experimentalPadding = 0,
|
25258 |
viewportWidth = 1200,
|
25259 |
-
__experimentalLive = false,
|
25260 |
-
__experimentalOnClick,
|
25261 |
__experimentalMinHeight
|
25262 |
} = _ref;
|
25263 |
const originalSettings = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getSettings(), []);
|
@@ -25273,9 +25635,7 @@ function BlockPreview(_ref) {
|
|
25273 |
return (0,external_wp_element_namespaceObject.createElement)(provider, {
|
25274 |
value: renderedBlocks,
|
25275 |
settings: settings
|
25276 |
-
},
|
25277 |
-
onClick: __experimentalOnClick
|
25278 |
-
}) : (0,external_wp_element_namespaceObject.createElement)(AutoBlockPreview, {
|
25279 |
viewportWidth: viewportWidth,
|
25280 |
__experimentalPadding: __experimentalPadding,
|
25281 |
__experimentalMinHeight: __experimentalMinHeight
|
@@ -25293,7 +25653,7 @@ function BlockPreview(_ref) {
|
|
25293 |
* @return {WPComponent} The component to be rendered.
|
25294 |
*/
|
25295 |
|
25296 |
-
/* harmony default export */
|
25297 |
/**
|
25298 |
* This hook is used to lightly mark an element as a block preview wrapper
|
25299 |
* element. Call this hook and pass the returned props to the element to mark as
|
@@ -25392,7 +25752,7 @@ function InserterPreviewPanel(_ref) {
|
|
25392 |
}));
|
25393 |
}
|
25394 |
|
25395 |
-
/* harmony default export */
|
25396 |
|
25397 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/context.js
|
25398 |
/**
|
@@ -25400,7 +25760,7 @@ function InserterPreviewPanel(_ref) {
|
|
25400 |
*/
|
25401 |
|
25402 |
const InserterListboxContext = (0,external_wp_element_namespaceObject.createContext)();
|
25403 |
-
/* harmony default export */
|
25404 |
|
25405 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/item.js
|
25406 |
|
@@ -25450,7 +25810,7 @@ function InserterListboxItem(_ref, ref) {
|
|
25450 |
});
|
25451 |
}
|
25452 |
|
25453 |
-
/* harmony default export */
|
25454 |
|
25455 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/drag-handle.js
|
25456 |
|
@@ -25467,7 +25827,7 @@ const dragHandle = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
25467 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
25468 |
d: "M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"
|
25469 |
}));
|
25470 |
-
/* harmony default export */
|
25471 |
|
25472 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/draggable-chip.js
|
25473 |
|
@@ -25555,7 +25915,7 @@ const InserterDraggableBlocks = _ref => {
|
|
25555 |
});
|
25556 |
};
|
25557 |
|
25558 |
-
/* harmony default export */
|
25559 |
|
25560 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-list-item/index.js
|
25561 |
|
@@ -25599,6 +25959,7 @@ function InserterListItem(_ref) {
|
|
25599 |
const blocks = (0,external_wp_element_namespaceObject.useMemo)(() => {
|
25600 |
return [(0,external_wp_blocks_namespaceObject.createBlock)(item.name, item.initialAttributes, (0,external_wp_blocks_namespaceObject.createBlocksFromInnerBlocksTemplate)(item.innerBlocks))];
|
25601 |
}, [item.name, item.initialAttributes, item.initialAttributes]);
|
|
|
25602 |
return (0,external_wp_element_namespaceObject.createElement)(inserter_draggable_blocks, {
|
25603 |
isEnabled: isDraggable && !item.disabled,
|
25604 |
blocks: blocks,
|
@@ -25610,7 +25971,9 @@ function InserterListItem(_ref) {
|
|
25610 |
onDragEnd
|
25611 |
} = _ref2;
|
25612 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
25613 |
-
className:
|
|
|
|
|
25614 |
draggable: draggable,
|
25615 |
onDragStart: event => {
|
25616 |
isDragging.current = true;
|
@@ -25677,7 +26040,7 @@ function InserterListItem(_ref) {
|
|
25677 |
});
|
25678 |
}
|
25679 |
|
25680 |
-
/* harmony default export */
|
25681 |
|
25682 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/group.js
|
25683 |
|
@@ -25714,7 +26077,7 @@ function InserterListboxGroup(props, ref) {
|
|
25714 |
}, props));
|
25715 |
}
|
25716 |
|
25717 |
-
/* harmony default export */
|
25718 |
|
25719 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/row.js
|
25720 |
|
@@ -25740,7 +26103,7 @@ function InserterListboxRow(props, ref) {
|
|
25740 |
}, props));
|
25741 |
}
|
25742 |
|
25743 |
-
/* harmony default export */
|
25744 |
|
25745 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-types-list/index.js
|
25746 |
|
@@ -25791,7 +26154,7 @@ function BlockTypesList(_ref) {
|
|
25791 |
})))), children);
|
25792 |
}
|
25793 |
|
25794 |
-
/* harmony default export */
|
25795 |
|
25796 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/panel.js
|
25797 |
|
@@ -25818,7 +26181,7 @@ function InserterPanel(_ref) {
|
|
25818 |
}, children));
|
25819 |
}
|
25820 |
|
25821 |
-
/* harmony default export */
|
25822 |
|
25823 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
|
25824 |
/**
|
@@ -25871,7 +26234,7 @@ const useBlockTypesState = (rootClientId, onInsert) => {
|
|
25871 |
return [items, categories, collections, onSelectItem];
|
25872 |
};
|
25873 |
|
25874 |
-
/* harmony default export */
|
25875 |
|
25876 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/index.js
|
25877 |
|
@@ -25902,7 +26265,7 @@ function InserterListbox(_ref) {
|
|
25902 |
}, children);
|
25903 |
}
|
25904 |
|
25905 |
-
/* harmony default export */
|
25906 |
|
25907 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-types-tab.js
|
25908 |
|
@@ -26036,40 +26399,10 @@ function BlockTypesTab(_ref) {
|
|
26036 |
}));
|
26037 |
})));
|
26038 |
}
|
26039 |
-
/* harmony default export */
|
26040 |
-
|
26041 |
-
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right.js
|
26042 |
-
|
26043 |
-
|
26044 |
-
/**
|
26045 |
-
* WordPress dependencies
|
26046 |
-
*/
|
26047 |
-
|
26048 |
-
const chevronRight = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
|
26049 |
-
xmlns: "http://www.w3.org/2000/svg",
|
26050 |
-
viewBox: "0 0 24 24"
|
26051 |
-
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
26052 |
-
d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
|
26053 |
-
}));
|
26054 |
-
/* harmony default export */ const chevron_right = (chevronRight);
|
26055 |
-
|
26056 |
-
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-left.js
|
26057 |
-
|
26058 |
-
|
26059 |
-
/**
|
26060 |
-
* WordPress dependencies
|
26061 |
-
*/
|
26062 |
-
|
26063 |
-
const chevronLeft = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
|
26064 |
-
xmlns: "http://www.w3.org/2000/svg",
|
26065 |
-
viewBox: "0 0 24 24"
|
26066 |
-
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
26067 |
-
d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
|
26068 |
-
}));
|
26069 |
-
/* harmony default export */ const chevron_left = (chevronLeft);
|
26070 |
|
26071 |
;// CONCATENATED MODULE: external ["wp","notices"]
|
26072 |
-
|
26073 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.js
|
26074 |
/**
|
26075 |
* External dependencies
|
@@ -26126,7 +26459,7 @@ const usePatternsState = (onInsert, rootClientId) => {
|
|
26126 |
return [patterns, patternCategories, onClickPattern];
|
26127 |
};
|
26128 |
|
26129 |
-
/* harmony default export */
|
26130 |
|
26131 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-patterns-list/index.js
|
26132 |
|
@@ -26228,7 +26561,7 @@ function BlockPatternList(_ref3) {
|
|
26228 |
}));
|
26229 |
}
|
26230 |
|
26231 |
-
/* harmony default export */
|
26232 |
|
26233 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/sidebar.js
|
26234 |
|
@@ -26274,6 +26607,7 @@ function PatternsExplorerSearch(_ref3) {
|
|
26274 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
26275 |
className: baseClassName
|
26276 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SearchControl, {
|
|
|
26277 |
onChange: setFilterValue,
|
26278 |
value: filterValue,
|
26279 |
label: (0,external_wp_i18n_namespaceObject.__)('Search for patterns'),
|
@@ -26302,7 +26636,7 @@ function PatternExplorerSidebar(_ref4) {
|
|
26302 |
}));
|
26303 |
}
|
26304 |
|
26305 |
-
/* harmony default export */
|
26306 |
|
26307 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/no-results.js
|
26308 |
|
@@ -26322,7 +26656,7 @@ function InserterNoResults() {
|
|
26322 |
}), (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No results found.')));
|
26323 |
}
|
26324 |
|
26325 |
-
/* harmony default export */
|
26326 |
|
26327 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.js
|
26328 |
/**
|
@@ -26440,7 +26774,7 @@ function useInsertionPoint(_ref) {
|
|
26440 |
return [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint];
|
26441 |
}
|
26442 |
|
26443 |
-
/* harmony default export */
|
26444 |
|
26445 |
// EXTERNAL MODULE: ./node_modules/remove-accents/index.js
|
26446 |
var remove_accents = __webpack_require__(4793);
|
@@ -26815,7 +27149,7 @@ function PatternList(_ref2) {
|
|
26815 |
})));
|
26816 |
}
|
26817 |
|
26818 |
-
/* harmony default export */
|
26819 |
|
26820 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/explorer.js
|
26821 |
|
@@ -26868,7 +27202,7 @@ function PatternsExplorerModal(_ref2) {
|
|
26868 |
}, (0,external_wp_element_namespaceObject.createElement)(PatternsExplorer, restProps));
|
26869 |
}
|
26870 |
|
26871 |
-
/* harmony default export */
|
26872 |
|
26873 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-tab.js
|
26874 |
|
@@ -27023,9 +27357,6 @@ function BlockPatternsTabs(_ref5) {
|
|
27023 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexBlock, null, category.label), (0,external_wp_element_namespaceObject.createElement)(build_module_icon, {
|
27024 |
icon: chevron_right
|
27025 |
})))), (0,external_wp_element_namespaceObject.createElement)("div", {
|
27026 |
-
role: "presentation",
|
27027 |
-
className: "block-editor-inserter__patterns-fill-space"
|
27028 |
-
}), (0,external_wp_element_namespaceObject.createElement)("div", {
|
27029 |
role: "listitem"
|
27030 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
|
27031 |
className: "block-editor-inserter__patterns-explore-button",
|
@@ -27072,10 +27403,10 @@ function BlockPatternsTabNavigation(_ref6) {
|
|
27072 |
}))));
|
27073 |
}
|
27074 |
|
27075 |
-
/* harmony default export */
|
27076 |
|
27077 |
;// CONCATENATED MODULE: external ["wp","url"]
|
27078 |
-
|
27079 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/reusable-blocks-tab.js
|
27080 |
|
27081 |
|
@@ -27157,21 +27488,513 @@ function ReusableBlocksTab(_ref3) {
|
|
27157 |
})
|
27158 |
}, (0,external_wp_i18n_namespaceObject.__)('Manage Reusable blocks'))));
|
27159 |
}
|
27160 |
-
/* harmony default export */
|
27161 |
|
27162 |
-
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-
|
27163 |
/**
|
27164 |
* WordPress dependencies
|
27165 |
*/
|
27166 |
|
27167 |
-
const {
|
27168 |
-
Fill: __unstableInserterMenuExtension,
|
27169 |
-
Slot
|
27170 |
-
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableInserterMenuExtension');
|
27171 |
-
__unstableInserterMenuExtension.Slot = Slot;
|
27172 |
-
/* harmony default export */ const inserter_menu_extension = (__unstableInserterMenuExtension);
|
27173 |
|
27174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27175 |
|
27176 |
|
27177 |
/**
|
@@ -27319,7 +28142,7 @@ function InserterSearchResults(_ref) {
|
|
27319 |
}));
|
27320 |
}
|
27321 |
|
27322 |
-
/* harmony default export */
|
27323 |
|
27324 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tabs.js
|
27325 |
|
@@ -27330,6 +28153,7 @@ function InserterSearchResults(_ref) {
|
|
27330 |
|
27331 |
|
27332 |
|
|
|
27333 |
const blocksTab = {
|
27334 |
name: 'blocks',
|
27335 |
|
@@ -27346,7 +28170,14 @@ const reusableBlocksTab = {
|
|
27346 |
name: 'reusable',
|
27347 |
|
27348 |
/* translators: Reusable blocks tab title in the block inserter. */
|
27349 |
-
title: (0,external_wp_i18n_namespaceObject.__)('Reusable')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27350 |
};
|
27351 |
|
27352 |
function InserterTabs(_ref) {
|
@@ -27354,6 +28185,7 @@ function InserterTabs(_ref) {
|
|
27354 |
children,
|
27355 |
showPatterns = false,
|
27356 |
showReusableBlocks = false,
|
|
|
27357 |
onSelect,
|
27358 |
prioritizePatterns
|
27359 |
} = _ref;
|
@@ -27370,12 +28202,16 @@ function InserterTabs(_ref) {
|
|
27370 |
tempTabs.push(patternsTab);
|
27371 |
}
|
27372 |
|
|
|
|
|
|
|
|
|
27373 |
if (showReusableBlocks) {
|
27374 |
tempTabs.push(reusableBlocksTab);
|
27375 |
}
|
27376 |
|
27377 |
return tempTabs;
|
27378 |
-
}, [prioritizePatterns, blocksTab, showPatterns, patternsTab, showReusableBlocks, reusableBlocksTab]);
|
27379 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.TabPanel, {
|
27380 |
className: "block-editor-inserter__tabs",
|
27381 |
tabs: tabs,
|
@@ -27383,7 +28219,7 @@ function InserterTabs(_ref) {
|
|
27383 |
}, children);
|
27384 |
}
|
27385 |
|
27386 |
-
/* harmony default export */
|
27387 |
|
27388 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/menu.js
|
27389 |
|
@@ -27414,6 +28250,7 @@ function InserterTabs(_ref) {
|
|
27414 |
|
27415 |
|
27416 |
|
|
|
27417 |
function InserterMenu(_ref, ref) {
|
27418 |
let {
|
27419 |
rootClientId,
|
@@ -27430,6 +28267,7 @@ function InserterMenu(_ref, ref) {
|
|
27430 |
const [filterValue, setFilterValue] = (0,external_wp_element_namespaceObject.useState)(__experimentalFilterValue);
|
27431 |
const [hoveredItem, setHoveredItem] = (0,external_wp_element_namespaceObject.useState)(null);
|
27432 |
const [selectedPatternCategory, setSelectedPatternCategory] = (0,external_wp_element_namespaceObject.useState)(null);
|
|
|
27433 |
const [selectedTab, setSelectedTab] = (0,external_wp_element_namespaceObject.useState)(null);
|
27434 |
const [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint] = use_insertion_point({
|
27435 |
rootClientId,
|
@@ -27453,6 +28291,8 @@ function InserterMenu(_ref, ref) {
|
|
27453 |
hasReusableBlocks: !!((_getSettings$__experi = getSettings().__experimentalReusableBlocks) !== null && _getSettings$__experi !== void 0 && _getSettings$__experi.length)
|
27454 |
};
|
27455 |
}, [destinationRootClientId]);
|
|
|
|
|
27456 |
const onInsert = (0,external_wp_element_namespaceObject.useCallback)((blocks, meta, shouldForceFocusBlock) => {
|
27457 |
onInsertBlocks(blocks, meta, shouldForceFocusBlock);
|
27458 |
onSelect();
|
@@ -27493,15 +28333,23 @@ function InserterMenu(_ref, ref) {
|
|
27493 |
onInsert: onInsert,
|
27494 |
onHover: onHover
|
27495 |
}), [destinationRootClientId, onInsert, onHover]);
|
|
|
|
|
|
|
|
|
|
|
|
|
27496 |
const getCurrentTab = (0,external_wp_element_namespaceObject.useCallback)(tab => {
|
27497 |
if (tab.name === 'blocks') {
|
27498 |
return blocksTab;
|
27499 |
} else if (tab.name === 'patterns') {
|
27500 |
return patternsTab;
|
|
|
|
|
|
|
|
|
27501 |
}
|
27502 |
-
|
27503 |
-
return reusableBlocksTab;
|
27504 |
-
}, [blocksTab, patternsTab, reusableBlocksTab]);
|
27505 |
const searchRef = (0,external_wp_element_namespaceObject.useRef)();
|
27506 |
(0,external_wp_element_namespaceObject.useImperativeHandle)(ref, () => ({
|
27507 |
focusSearch: () => {
|
@@ -27509,7 +28357,8 @@ function InserterMenu(_ref, ref) {
|
|
27509 |
}
|
27510 |
}));
|
27511 |
const showPatternPanel = selectedTab === 'patterns' && !filterValue && selectedPatternCategory;
|
27512 |
-
const showAsTabs = !filterValue && (showPatterns || hasReusableBlocks);
|
|
|
27513 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
27514 |
className: "block-editor-inserter__menu"
|
27515 |
}, (0,external_wp_element_namespaceObject.createElement)("div", {
|
@@ -27517,6 +28366,7 @@ function InserterMenu(_ref, ref) {
|
|
27517 |
'show-as-tabs': showAsTabs
|
27518 |
})
|
27519 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SearchControl, {
|
|
|
27520 |
className: "block-editor-inserter__search",
|
27521 |
onChange: value => {
|
27522 |
if (hoveredItem) setHoveredItem(null);
|
@@ -27541,11 +28391,16 @@ function InserterMenu(_ref, ref) {
|
|
27541 |
})), showAsTabs && (0,external_wp_element_namespaceObject.createElement)(tabs, {
|
27542 |
showPatterns: showPatterns,
|
27543 |
showReusableBlocks: hasReusableBlocks,
|
|
|
27544 |
prioritizePatterns: prioritizePatterns,
|
27545 |
onSelect: setSelectedTab
|
27546 |
}, getCurrentTab), !filterValue && !showAsTabs && (0,external_wp_element_namespaceObject.createElement)("div", {
|
27547 |
className: "block-editor-inserter__no-tab-container"
|
27548 |
-
}, blocksTab)),
|
|
|
|
|
|
|
|
|
27549 |
item: hoveredItem
|
27550 |
}), showPatternPanel && (0,external_wp_element_namespaceObject.createElement)(BlockPatternsCategoryDialog, {
|
27551 |
rootClientId: destinationRootClientId,
|
@@ -27554,7 +28409,7 @@ function InserterMenu(_ref, ref) {
|
|
27554 |
}));
|
27555 |
}
|
27556 |
|
27557 |
-
/* harmony default export */
|
27558 |
|
27559 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/quick-inserter.js
|
27560 |
|
@@ -27647,6 +28502,7 @@ function QuickInserter(_ref) {
|
|
27647 |
'has-expand': setInserterIsOpened
|
27648 |
})
|
27649 |
}, showSearch && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SearchControl, {
|
|
|
27650 |
className: "block-editor-inserter__search",
|
27651 |
value: filterValue,
|
27652 |
onChange: value => {
|
@@ -27887,7 +28743,7 @@ class Inserter extends external_wp_element_namespaceObject.Component {
|
|
27887 |
|
27888 |
}
|
27889 |
|
27890 |
-
/* harmony default export */
|
27891 |
var _getBlockVariations;
|
27892 |
|
27893 |
let {
|
@@ -27940,7 +28796,8 @@ class Inserter extends external_wp_element_namespaceObject.Component {
|
|
27940 |
hasSingleBlockType,
|
27941 |
allowedBlockType,
|
27942 |
directInsertBlock,
|
27943 |
-
onSelectOrClose
|
|
|
27944 |
} = ownProps;
|
27945 |
|
27946 |
if (!hasSingleBlockType && !directInsertBlock) {
|
@@ -28032,10 +28889,14 @@ class Inserter extends external_wp_element_namespaceObject.Component {
|
|
28032 |
blockToInsert = (0,external_wp_blocks_namespaceObject.createBlock)(allowedBlockType.name);
|
28033 |
}
|
28034 |
|
28035 |
-
insertBlock(blockToInsert, getInsertionIndex(), rootClientId);
|
28036 |
|
28037 |
if (onSelectOrClose) {
|
28038 |
-
|
|
|
|
|
|
|
|
|
28039 |
}
|
28040 |
|
28041 |
const message = (0,external_wp_i18n_namespaceObject.sprintf)( // translators: %s: the name of the block that has been added
|
@@ -28130,7 +28991,7 @@ function DefaultBlockAppender(_ref) {
|
|
28130 |
__experimentalIsQuick: true
|
28131 |
}));
|
28132 |
}
|
28133 |
-
/* harmony default export */
|
28134 |
const {
|
28135 |
getBlockCount,
|
28136 |
getSettings,
|
@@ -28258,7 +29119,7 @@ const ButtonBlockerAppender = (0,external_wp_element_namespaceObject.forwardRef)
|
|
28258 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/button-block-appender/README.md
|
28259 |
*/
|
28260 |
|
28261 |
-
/* harmony default export */
|
28262 |
|
28263 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list-appender/index.js
|
28264 |
|
@@ -28365,7 +29226,7 @@ function BlockListAppender(_ref) {
|
|
28365 |
}, appender);
|
28366 |
}
|
28367 |
|
28368 |
-
/* harmony default export */
|
28369 |
|
28370 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/inbetween.js
|
28371 |
|
@@ -28592,7 +29453,7 @@ function BlockPopoverInbetween(_ref) {
|
|
28592 |
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
|
28593 |
}
|
28594 |
|
28595 |
-
/* harmony default export */
|
28596 |
|
28597 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/drop-zone.js
|
28598 |
|
@@ -28663,7 +29524,7 @@ function BlockDropZonePopover(_ref) {
|
|
28663 |
}));
|
28664 |
}
|
28665 |
|
28666 |
-
/* harmony default export */
|
28667 |
|
28668 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/insertion-point.js
|
28669 |
|
@@ -29153,10 +30014,11 @@ function usePreParsePatterns() {
|
|
29153 |
*
|
29154 |
* @typedef {Object} WPBlockDisplayInformation
|
29155 |
*
|
29156 |
-
* @property {
|
29157 |
-
* @property {
|
29158 |
-
* @property {
|
29159 |
-
* @property {string}
|
|
|
29160 |
*/
|
29161 |
|
29162 |
/**
|
@@ -29190,7 +30052,9 @@ function useBlockDisplayInformation(clientId) {
|
|
29190 |
if (!blockType) return null;
|
29191 |
const attributes = getBlockAttributes(clientId);
|
29192 |
const match = getActiveBlockVariation(blockName, attributes);
|
|
|
29193 |
const blockTypeInfo = {
|
|
|
29194 |
title: blockType.title,
|
29195 |
icon: blockType.icon,
|
29196 |
description: blockType.description,
|
@@ -29198,6 +30062,7 @@ function useBlockDisplayInformation(clientId) {
|
|
29198 |
};
|
29199 |
if (!match) return blockTypeInfo;
|
29200 |
return {
|
|
|
29201 |
title: match.title || blockType.title,
|
29202 |
icon: match.icon || blockType.icon,
|
29203 |
description: match.description || blockType.description,
|
@@ -29522,7 +30387,7 @@ const BlockDraggable = _ref => {
|
|
29522 |
});
|
29523 |
};
|
29524 |
|
29525 |
-
/* harmony default export */
|
29526 |
|
29527 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-up.js
|
29528 |
|
@@ -29537,7 +30402,7 @@ const chevronUp = (0,external_wp_element_namespaceObject.createElement)(external
|
|
29537 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29538 |
d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
|
29539 |
}));
|
29540 |
-
/* harmony default export */
|
29541 |
|
29542 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-down.js
|
29543 |
|
@@ -29552,7 +30417,7 @@ const chevronDown = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
29552 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29553 |
d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
|
29554 |
}));
|
29555 |
-
/* harmony default export */
|
29556 |
|
29557 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/mover-description.js
|
29558 |
/**
|
@@ -30031,7 +30896,7 @@ function BlockMover(_ref) {
|
|
30031 |
*/
|
30032 |
|
30033 |
|
30034 |
-
/* harmony default export */
|
30035 |
|
30036 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-selection-button.js
|
30037 |
|
@@ -30284,7 +31149,7 @@ function BlockSelectionButton(_ref) {
|
|
30284 |
})))));
|
30285 |
}
|
30286 |
|
30287 |
-
/* harmony default export */
|
30288 |
|
30289 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/navigable-toolbar/index.js
|
30290 |
|
@@ -30446,7 +31311,7 @@ function NavigableToolbar(_ref) {
|
|
30446 |
}, props), children);
|
30447 |
}
|
30448 |
|
30449 |
-
/* harmony default export */
|
30450 |
|
30451 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/utils.js
|
30452 |
/**
|
@@ -30736,7 +31601,7 @@ const copy = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
30736 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
30737 |
d: "M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"
|
30738 |
}));
|
30739 |
-
/* harmony default export */
|
30740 |
|
30741 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/preview-block-popover.js
|
30742 |
|
@@ -30915,7 +31780,7 @@ function BlockTranformationItem(_ref5) {
|
|
30915 |
}), title);
|
30916 |
}
|
30917 |
|
30918 |
-
/* harmony default export */
|
30919 |
|
30920 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/check.js
|
30921 |
|
@@ -30924,16 +31789,16 @@ function BlockTranformationItem(_ref5) {
|
|
30924 |
* WordPress dependencies
|
30925 |
*/
|
30926 |
|
30927 |
-
const
|
30928 |
xmlns: "http://www.w3.org/2000/svg",
|
30929 |
viewBox: "0 0 24 24"
|
30930 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
30931 |
d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
|
30932 |
}));
|
30933 |
-
/* harmony default export */
|
30934 |
|
30935 |
;// CONCATENATED MODULE: external ["wp","tokenList"]
|
30936 |
-
|
30937 |
var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_namespaceObject);
|
30938 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/utils.js
|
30939 |
/**
|
@@ -31370,7 +32235,7 @@ const useTransformedPatterns = (patterns, selectedBlocks) => {
|
|
31370 |
}, []), [patterns, selectedBlocks]);
|
31371 |
};
|
31372 |
|
31373 |
-
/* harmony default export */
|
31374 |
|
31375 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/pattern-transformations-menu.js
|
31376 |
|
@@ -31483,7 +32348,7 @@ function pattern_transformations_menu_BlockPattern(_ref4) {
|
|
31483 |
}, pattern.description));
|
31484 |
}
|
31485 |
|
31486 |
-
/* harmony default export */
|
31487 |
|
31488 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/index.js
|
31489 |
|
@@ -31691,7 +32556,7 @@ const BlockSwitcher = _ref4 => {
|
|
31691 |
blocks: blocks
|
31692 |
});
|
31693 |
};
|
31694 |
-
/* harmony default export */
|
31695 |
|
31696 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/block-toolbar-last-item.js
|
31697 |
/**
|
@@ -31703,7 +32568,7 @@ const {
|
|
31703 |
Slot: block_toolbar_last_item_Slot
|
31704 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableBlockToolbarLastItem');
|
31705 |
__unstableBlockToolbarLastItem.Slot = block_toolbar_last_item_Slot;
|
31706 |
-
/* harmony default export */
|
31707 |
|
31708 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/more-vertical.js
|
31709 |
|
@@ -31718,10 +32583,10 @@ const moreVertical = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
31718 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
31719 |
d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
|
31720 |
}));
|
31721 |
-
/* harmony default export */
|
31722 |
|
31723 |
;// CONCATENATED MODULE: external ["wp","blob"]
|
31724 |
-
|
31725 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/pasting.js
|
31726 |
/**
|
31727 |
* WordPress dependencies
|
@@ -32025,7 +32890,7 @@ function toPlainText(html) {
|
|
32025 |
*/
|
32026 |
|
32027 |
|
32028 |
-
/* harmony default export */
|
32029 |
|
32030 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-actions/index.js
|
32031 |
/**
|
@@ -32193,7 +33058,7 @@ function BlockModeToggle(_ref) {
|
|
32193 |
onClick: onToggleMode
|
32194 |
}, !small && label);
|
32195 |
}
|
32196 |
-
/* harmony default export */
|
32197 |
let {
|
32198 |
clientId
|
32199 |
} = _ref2;
|
@@ -32262,7 +33127,7 @@ function BlockConvertButton(_ref) {
|
|
32262 |
|
32263 |
|
32264 |
|
32265 |
-
/* harmony default export */
|
32266 |
let {
|
32267 |
clientId
|
32268 |
} = _ref;
|
@@ -32292,7 +33157,7 @@ const {
|
|
32292 |
Slot: block_settings_menu_first_item_Slot
|
32293 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableBlockSettingsMenuFirstItem');
|
32294 |
__unstableBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot;
|
32295 |
-
/* harmony default export */
|
32296 |
|
32297 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/index.js
|
32298 |
|
@@ -32505,7 +33370,7 @@ const unlock = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
32505 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
32506 |
d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"
|
32507 |
}));
|
32508 |
-
/* harmony default export */
|
32509 |
|
32510 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/lock-outline.js
|
32511 |
|
@@ -32520,7 +33385,7 @@ const lockOutline = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
32520 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
32521 |
d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"
|
32522 |
}));
|
32523 |
-
/* harmony default export */
|
32524 |
|
32525 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/lock.js
|
32526 |
|
@@ -32535,7 +33400,7 @@ const lock = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
32535 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
32536 |
d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"
|
32537 |
}));
|
32538 |
-
/* harmony default export */
|
32539 |
|
32540 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-lock/modal.js
|
32541 |
|
@@ -32852,7 +33717,7 @@ function BlockSettingsMenuControls(_ref2) {
|
|
32852 |
}
|
32853 |
|
32854 |
BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
|
32855 |
-
/* harmony default export */
|
32856 |
|
32857 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js
|
32858 |
|
@@ -33008,7 +33873,10 @@ function BlockSettingsDropdown(_ref2) {
|
|
33008 |
toggleBlockHighlight(firstParentClientId, isFocused);
|
33009 |
}
|
33010 |
|
33011 |
-
});
|
|
|
|
|
|
|
33012 |
return (0,external_wp_element_namespaceObject.createElement)(BlockActions, {
|
33013 |
clientIds: clientIds,
|
33014 |
__experimentalUpdateSelection: !__experimentalSelectBlock
|
@@ -33040,7 +33908,7 @@ function BlockSettingsDropdown(_ref2) {
|
|
33040 |
fillProps: {
|
33041 |
onClose
|
33042 |
}
|
33043 |
-
}), !!firstParentClientId && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, _extends({}, showParentOutlineGestures, {
|
33044 |
ref: selectParentButtonRef,
|
33045 |
icon: (0,external_wp_element_namespaceObject.createElement)(block_icon, {
|
33046 |
icon: parentBlockType.icon
|
@@ -33084,7 +33952,7 @@ function BlockSettingsDropdown(_ref2) {
|
|
33084 |
});
|
33085 |
});
|
33086 |
}
|
33087 |
-
/* harmony default export */
|
33088 |
|
33089 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/index.js
|
33090 |
|
@@ -33109,7 +33977,7 @@ function BlockSettingsMenu(_ref) {
|
|
33109 |
toggleProps: toggleProps
|
33110 |
}, props))));
|
33111 |
}
|
33112 |
-
/* harmony default export */
|
33113 |
|
33114 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-lock/toolbar.js
|
33115 |
|
@@ -33176,7 +34044,7 @@ const group_group = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
33176 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
33177 |
d: "M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"
|
33178 |
}));
|
33179 |
-
/* harmony default export */
|
33180 |
|
33181 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/row.js
|
33182 |
|
@@ -33191,7 +34059,7 @@ const row = (0,external_wp_element_namespaceObject.createElement)(external_wp_pr
|
|
33191 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
33192 |
d: "M9.2 6.5H4V8h5.2c.3 0 .5.2.5.5v7c0 .3-.2.5-.5.5H4v1.5h5.2c1.1 0 2-.9 2-2v-7c0-1.1-.8-2-2-2zM14.8 8H20V6.5h-5.2c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2H20V16h-5.2c-.3 0-.5-.2-.5-.5v-7c-.1-.3.2-.5.5-.5z"
|
33193 |
}));
|
33194 |
-
/* harmony default export */
|
33195 |
|
33196 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stack.js
|
33197 |
|
@@ -33206,7 +34074,7 @@ const stack = (0,external_wp_element_namespaceObject.createElement)(external_wp_
|
|
33206 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
33207 |
d: "M16 4v5.2c0 .3-.2.5-.5.5h-7c-.3.1-.5-.2-.5-.5V4H6.5v5.2c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V4H16zm-.5 8.8h-7c-1.1 0-2 .9-2 2V20H8v-5.2c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5V20h1.5v-5.2c0-1.2-.9-2-2-2z"
|
33208 |
}));
|
33209 |
-
/* harmony default export */
|
33210 |
|
33211 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/toolbar.js
|
33212 |
|
@@ -33319,7 +34187,7 @@ function BlockGroupToolbar() {
|
|
33319 |
}));
|
33320 |
}
|
33321 |
|
33322 |
-
/* harmony default export */
|
33323 |
|
33324 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit-visually-button/index.js
|
33325 |
|
@@ -33365,7 +34233,7 @@ function BlockEditVisuallyButton(_ref) {
|
|
33365 |
|
33366 |
const __unstableBlockNameContext = (0,external_wp_element_namespaceObject.createContext)('');
|
33367 |
|
33368 |
-
/* harmony default export */
|
33369 |
|
33370 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/index.js
|
33371 |
|
@@ -33479,7 +34347,11 @@ const BlockToolbar = _ref => {
|
|
33479 |
|
33480 |
const shouldShowVisualToolbar = isValid && isVisual;
|
33481 |
const isMultiToolbar = blockClientIds.length > 1;
|
33482 |
-
const
|
|
|
|
|
|
|
|
|
33483 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
33484 |
className: classes
|
33485 |
}, !isMultiToolbar && !displayHeaderToolbar && !isContentLocked && (0,external_wp_element_namespaceObject.createElement)(BlockParentSelector, null), (0,external_wp_element_namespaceObject.createElement)("div", _extends({
|
@@ -33520,7 +34392,7 @@ const BlockToolbar = _ref => {
|
|
33520 |
*/
|
33521 |
|
33522 |
|
33523 |
-
/* harmony default export */
|
33524 |
|
33525 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
|
33526 |
|
@@ -33600,7 +34472,7 @@ function BlockContextualToolbar(_ref) {
|
|
33600 |
}));
|
33601 |
}
|
33602 |
|
33603 |
-
/* harmony default export */
|
33604 |
|
33605 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/use-block-toolbar-popover-props.js
|
33606 |
/**
|
@@ -34025,7 +34897,7 @@ const withClientId = (0,external_wp_compose_namespaceObject.createHigherOrderCom
|
|
34025 |
clientId: clientId
|
34026 |
}));
|
34027 |
}, 'withClientId');
|
34028 |
-
/* harmony default export */
|
34029 |
|
34030 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/button-block-appender.js
|
34031 |
|
@@ -34058,7 +34930,7 @@ const button_block_appender_ButtonBlockAppender = _ref => {
|
|
34058 |
onAddBlock: onAddBlock
|
34059 |
});
|
34060 |
};
|
34061 |
-
/* harmony default export */
|
34062 |
|
34063 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/default-block-appender.js
|
34064 |
|
@@ -34083,7 +34955,7 @@ const default_block_appender_DefaultBlockAppender = _ref => {
|
|
34083 |
rootClientId: clientId
|
34084 |
});
|
34085 |
};
|
34086 |
-
/* harmony default export */
|
34087 |
let {
|
34088 |
clientId
|
34089 |
} = _ref2;
|
@@ -34253,7 +35125,8 @@ function useInnerBlockTemplateSync(clientId, template, templateLock, templateIns
|
|
34253 |
isBlockSelected
|
34254 |
} = (0,external_wp_data_namespaceObject.useSelect)(store);
|
34255 |
const {
|
34256 |
-
replaceInnerBlocks
|
|
|
34257 |
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
34258 |
const innerBlocks = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getBlocks(clientId), [clientId]);
|
34259 |
const {
|
@@ -34281,6 +35154,8 @@ function useInnerBlockTemplateSync(clientId, template, templateLock, templateIns
|
|
34281 |
const nextBlocks = (0,external_wp_blocks_namespaceObject.synchronizeBlocksWithTemplate)(currentInnerBlocks, template);
|
34282 |
|
34283 |
if (!(0,external_lodash_namespaceObject.isEqual)(nextBlocks, currentInnerBlocks)) {
|
|
|
|
|
34284 |
replaceInnerBlocks(clientId, nextBlocks, currentInnerBlocks.length === 0 && templateInsertUpdatesSelection && nextBlocks.length !== 0 && isBlockSelected(clientId), // This ensures the "initialPosition" doesn't change when applying the template
|
34285 |
// If we're supposed to focus the block, we'll focus the first inner block
|
34286 |
// otherwise, we won't apply any auto-focus.
|
@@ -34911,22 +35786,31 @@ function UncontrolledInnerBlocks(props) {
|
|
34911 |
} = props;
|
34912 |
useNestedSettingsUpdate(clientId, allowedBlocks, __experimentalDefaultBlock, __experimentalDirectInsert, templateLock, captureToolbars, orientation, __experimentalLayout);
|
34913 |
useInnerBlockTemplateSync(clientId, template, templateLock, templateInsertUpdatesSelection);
|
34914 |
-
const
|
|
|
|
|
|
|
34915 |
const block = select(store).getBlock(clientId); // This check is here to avoid the Redux zombie bug where a child subscription
|
34916 |
// is called before a parent, causing potential JS errors when the child has been removed.
|
34917 |
|
34918 |
if (!block) {
|
34919 |
-
return;
|
34920 |
}
|
34921 |
|
34922 |
const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(block.name);
|
34923 |
|
34924 |
if (!blockType || !blockType.providesContext) {
|
34925 |
-
return;
|
34926 |
}
|
34927 |
|
34928 |
-
return
|
34929 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
34930 |
// the async mode depending on the block selection.
|
34931 |
|
34932 |
return (0,external_wp_element_namespaceObject.createElement)(BlockContextProvider, {
|
@@ -34935,7 +35819,9 @@ function UncontrolledInnerBlocks(props) {
|
|
34935 |
rootClientId: clientId,
|
34936 |
renderAppender: renderAppender,
|
34937 |
__experimentalAppenderTagName: __experimentalAppenderTagName,
|
34938 |
-
__experimentalLayout: __experimentalLayout,
|
|
|
|
|
34939 |
wrapperRef: wrapperRef,
|
34940 |
placeholder: placeholder
|
34941 |
}));
|
@@ -35043,7 +35929,7 @@ ForwardedInnerBlocks.Content = () => useInnerBlocksProps.save().children;
|
|
35043 |
*/
|
35044 |
|
35045 |
|
35046 |
-
/* harmony default export */
|
35047 |
|
35048 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/index.js
|
35049 |
|
@@ -36659,7 +37545,7 @@ function ColorGradientControl(props) {
|
|
36659 |
return (0,external_wp_element_namespaceObject.createElement)(ColorGradientControlSelect, props);
|
36660 |
}
|
36661 |
|
36662 |
-
/* harmony default export */
|
36663 |
|
36664 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/dropdown.js
|
36665 |
|
@@ -36941,7 +37827,7 @@ function ContrastChecker(_ref) {
|
|
36941 |
*/
|
36942 |
|
36943 |
|
36944 |
-
/* harmony default export */
|
36945 |
|
36946 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/color-panel.js
|
36947 |
|
@@ -37878,7 +38764,7 @@ const LineHeightControl = _ref => {
|
|
37878 |
*/
|
37879 |
|
37880 |
|
37881 |
-
/* harmony default export */
|
37882 |
|
37883 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/line-height.js
|
37884 |
|
@@ -38493,7 +39379,7 @@ function FontSizePicker(props) {
|
|
38493 |
*/
|
38494 |
|
38495 |
|
38496 |
-
/* harmony default export */
|
38497 |
|
38498 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/fluid-utils.js
|
38499 |
/**
|
@@ -39055,7 +39941,7 @@ const reset_reset = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
39055 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39056 |
d: "M7 11.5h10V13H7z"
|
39057 |
}));
|
39058 |
-
/* harmony default export */
|
39059 |
|
39060 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-underline.js
|
39061 |
|
@@ -39070,7 +39956,7 @@ const formatUnderline = (0,external_wp_element_namespaceObject.createElement)(ex
|
|
39070 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39071 |
d: "M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"
|
39072 |
}));
|
39073 |
-
/* harmony default export */
|
39074 |
|
39075 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-strikethrough.js
|
39076 |
|
@@ -39085,7 +39971,7 @@ const formatStrikethrough = (0,external_wp_element_namespaceObject.createElement
|
|
39085 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39086 |
d: "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"
|
39087 |
}));
|
39088 |
-
/* harmony default export */
|
39089 |
|
39090 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-decoration-control/index.js
|
39091 |
|
@@ -39272,7 +40158,7 @@ const formatUppercase = (0,external_wp_element_namespaceObject.createElement)(ex
|
|
39272 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39273 |
d: "M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"
|
39274 |
}));
|
39275 |
-
/* harmony default export */
|
39276 |
|
39277 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-lowercase.js
|
39278 |
|
@@ -39287,7 +40173,7 @@ const formatLowercase = (0,external_wp_element_namespaceObject.createElement)(ex
|
|
39287 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39288 |
d: "M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"
|
39289 |
}));
|
39290 |
-
/* harmony default export */
|
39291 |
|
39292 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-capitalize.js
|
39293 |
|
@@ -39302,7 +40188,7 @@ const formatCapitalize = (0,external_wp_element_namespaceObject.createElement)(e
|
|
39302 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39303 |
d: "M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"
|
39304 |
}));
|
39305 |
-
/* harmony default export */
|
39306 |
|
39307 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-transform-control/index.js
|
39308 |
|
@@ -40213,7 +41099,7 @@ const filter = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
40213 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
40214 |
d: "M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"
|
40215 |
}));
|
40216 |
-
/* harmony default export */
|
40217 |
|
40218 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/duotone-control/index.js
|
40219 |
|
@@ -40295,7 +41181,7 @@ function DuotoneControl(_ref) {
|
|
40295 |
});
|
40296 |
}
|
40297 |
|
40298 |
-
/* harmony default export */
|
40299 |
|
40300 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/duotone.js
|
40301 |
|
@@ -40886,8 +41772,64 @@ const withLayoutStyles = (0,external_wp_compose_namespaceObject.createHigherOrde
|
|
40886 |
__unstableLayoutClassNames: layoutClassNames
|
40887 |
})));
|
40888 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40889 |
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/layout/addAttribute', layout_addAttribute);
|
40890 |
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/layout/with-layout-styles', withLayoutStyles);
|
|
|
40891 |
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/layout/with-inspector-controls', withInspectorControls);
|
40892 |
|
40893 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/content-lock-ui.js
|
@@ -41718,7 +42660,7 @@ const with_font_sizes_upperFirst = _ref => {
|
|
41718 |
*/
|
41719 |
|
41720 |
|
41721 |
-
/* harmony default export */
|
41722 |
for (var _len = arguments.length, fontSizeNames = new Array(_len), _key = 0; _key < _len; _key++) {
|
41723 |
fontSizeNames[_key] = arguments[_key];
|
41724 |
}
|
@@ -41838,7 +42780,7 @@ const alignLeft = (0,external_wp_element_namespaceObject.createElement)(external
|
|
41838 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
41839 |
d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"
|
41840 |
}));
|
41841 |
-
/* harmony default export */
|
41842 |
|
41843 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-center.js
|
41844 |
|
@@ -41853,7 +42795,7 @@ const align_center_alignCenter = (0,external_wp_element_namespaceObject.createEl
|
|
41853 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
41854 |
d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"
|
41855 |
}));
|
41856 |
-
/* harmony default export */
|
41857 |
|
41858 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-right.js
|
41859 |
|
@@ -41868,7 +42810,7 @@ const alignRight = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
41868 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
41869 |
d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"
|
41870 |
}));
|
41871 |
-
/* harmony default export */
|
41872 |
|
41873 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/ui.js
|
41874 |
|
@@ -41951,7 +42893,7 @@ function AlignmentUI(_ref) {
|
|
41951 |
}, extraProps));
|
41952 |
}
|
41953 |
|
41954 |
-
/* harmony default export */
|
41955 |
|
41956 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/index.js
|
41957 |
|
@@ -42086,10 +43028,10 @@ function createBlockCompleter() {
|
|
42086 |
*/
|
42087 |
|
42088 |
|
42089 |
-
/* harmony default export */
|
42090 |
|
42091 |
;// CONCATENATED MODULE: external ["wp","apiFetch"]
|
42092 |
-
|
42093 |
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
|
42094 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/page.js
|
42095 |
|
@@ -42104,7 +43046,7 @@ const page = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
42104 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42105 |
d: "M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"
|
42106 |
}));
|
42107 |
-
/* harmony default export */
|
42108 |
|
42109 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/post.js
|
42110 |
|
@@ -42119,7 +43061,7 @@ const post = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
42119 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42120 |
d: "m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"
|
42121 |
}));
|
42122 |
-
/* harmony default export */
|
42123 |
|
42124 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/autocompleters/link.js
|
42125 |
|
@@ -42184,7 +43126,7 @@ function createLinkCompleter() {
|
|
42184 |
*/
|
42185 |
|
42186 |
|
42187 |
-
/* harmony default export */
|
42188 |
|
42189 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/autocomplete/index.js
|
42190 |
|
@@ -42267,7 +43209,7 @@ function BlockEditorAutocomplete(props) {
|
|
42267 |
*/
|
42268 |
|
42269 |
|
42270 |
-
/* harmony default export */
|
42271 |
|
42272 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/fullscreen.js
|
42273 |
|
@@ -42282,7 +43224,7 @@ const fullscreen = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
42282 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42283 |
d: "M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"
|
42284 |
}));
|
42285 |
-
/* harmony default export */
|
42286 |
|
42287 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-full-height-alignment-control/index.js
|
42288 |
|
@@ -42310,7 +43252,7 @@ function BlockFullHeightAlignmentControl(_ref) {
|
|
42310 |
});
|
42311 |
}
|
42312 |
|
42313 |
-
/* harmony default export */
|
42314 |
|
42315 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-matrix-control/index.js
|
42316 |
|
@@ -42371,7 +43313,7 @@ function BlockAlignmentMatrixControl(props) {
|
|
42371 |
});
|
42372 |
}
|
42373 |
|
42374 |
-
/* harmony default export */
|
42375 |
|
42376 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right-small.js
|
42377 |
|
@@ -42386,7 +43328,7 @@ const chevronRightSmall = (0,external_wp_element_namespaceObject.createElement)(
|
|
42386 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42387 |
d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
|
42388 |
}));
|
42389 |
-
/* harmony default export */
|
42390 |
|
42391 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-breadcrumb/index.js
|
42392 |
|
@@ -42484,7 +43426,7 @@ function BlockBreadcrumb(_ref) {
|
|
42484 |
;
|
42485 |
}
|
42486 |
|
42487 |
-
/* harmony default export */
|
42488 |
|
42489 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-style-selector/index.js
|
42490 |
|
@@ -42584,7 +43526,7 @@ const BlockColorsStyleSelector = _ref4 => {
|
|
42584 |
});
|
42585 |
};
|
42586 |
|
42587 |
-
/* harmony default export */
|
42588 |
|
42589 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/list-view.js
|
42590 |
|
@@ -42599,7 +43541,7 @@ const listView = (0,external_wp_element_namespaceObject.createElement)(external_
|
|
42599 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42600 |
d: "M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"
|
42601 |
}));
|
42602 |
-
/* harmony default export */
|
42603 |
|
42604 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/leaf.js
|
42605 |
|
@@ -42660,7 +43602,7 @@ const chevronLeftSmall = (0,external_wp_element_namespaceObject.createElement)(e
|
|
42660 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42661 |
d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"
|
42662 |
}));
|
42663 |
-
/* harmony default export */
|
42664 |
|
42665 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/expander.js
|
42666 |
|
@@ -42795,7 +43737,7 @@ function ListViewBlockSelectButton(_ref, ref) {
|
|
42795 |
})))));
|
42796 |
}
|
42797 |
|
42798 |
-
/* harmony default export */
|
42799 |
|
42800 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block-contents.js
|
42801 |
|
@@ -42881,7 +43823,7 @@ const ListViewBlockContents = (0,external_wp_element_namespaceObject.forwardRef)
|
|
42881 |
}, props));
|
42882 |
});
|
42883 |
});
|
42884 |
-
/* harmony default export */
|
42885 |
|
42886 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/context.js
|
42887 |
/**
|
@@ -42983,7 +43925,8 @@ function ListViewBlock(_ref) {
|
|
42983 |
path,
|
42984 |
isExpanded,
|
42985 |
selectedClientIds,
|
42986 |
-
preventAnnouncement
|
|
|
42987 |
} = _ref;
|
42988 |
const cellRef = (0,external_wp_element_namespaceObject.useRef)(null);
|
42989 |
const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
|
@@ -43092,8 +44035,10 @@ function ListViewBlock(_ref) {
|
|
43092 |
'is-first-selected': isFirstSelectedBlock,
|
43093 |
'is-last-selected': isLastSelectedBlock,
|
43094 |
'is-branch-selected': isBranchSelected,
|
|
|
43095 |
'is-dragging': isDragged,
|
43096 |
-
'has-single-cell': !showBlockActions
|
|
|
43097 |
}); // Only include all selected blocks if the currently clicked on block
|
43098 |
// is one of the selected blocks. This ensures that if a user attempts
|
43099 |
// to alter a block that isn't part of the selection, they're still able
|
@@ -43202,7 +44147,7 @@ function ListViewBlock(_ref) {
|
|
43202 |
}));
|
43203 |
}
|
43204 |
|
43205 |
-
/* harmony default export */
|
43206 |
|
43207 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/branch.js
|
43208 |
|
@@ -43224,6 +44169,7 @@ function ListViewBlock(_ref) {
|
|
43224 |
|
43225 |
|
43226 |
|
|
|
43227 |
/**
|
43228 |
* Given a block, returns the total number of blocks in that subtree. This is used to help determine
|
43229 |
* the list position of a block.
|
@@ -43287,8 +44233,11 @@ function ListViewBranch(props) {
|
|
43287 |
fixedListWindow,
|
43288 |
isExpanded,
|
43289 |
parentId,
|
43290 |
-
shouldShowInnerBlocks = true
|
|
|
43291 |
} = props;
|
|
|
|
|
43292 |
const canParentExpand = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
43293 |
if (!parentId) {
|
43294 |
return true;
|
@@ -43353,7 +44302,8 @@ function ListViewBranch(props) {
|
|
43353 |
path: updatedPath,
|
43354 |
isExpanded: shouldExpand,
|
43355 |
listPosition: nextPosition,
|
43356 |
-
selectedClientIds: selectedClientIds
|
|
|
43357 |
}), !showBlock && (0,external_wp_element_namespaceObject.createElement)("tr", null, (0,external_wp_element_namespaceObject.createElement)("td", {
|
43358 |
className: "block-editor-list-view-placeholder"
|
43359 |
})), hasNestedBlocks && shouldExpand && !isDragged && (0,external_wp_element_namespaceObject.createElement)(ListViewBranch, {
|
@@ -43367,7 +44317,8 @@ function ListViewBranch(props) {
|
|
43367 |
fixedListWindow: fixedListWindow,
|
43368 |
isBranchSelected: isSelectedBranch,
|
43369 |
selectedClientIds: selectedClientIds,
|
43370 |
-
isExpanded: isExpanded
|
|
|
43371 |
}));
|
43372 |
}));
|
43373 |
}
|
@@ -43375,7 +44326,7 @@ function ListViewBranch(props) {
|
|
43375 |
ListViewBranch.defaultProps = {
|
43376 |
selectBlock: () => {}
|
43377 |
};
|
43378 |
-
/* harmony default export */
|
43379 |
|
43380 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/drop-indicator.js
|
43381 |
|
@@ -44088,7 +45039,7 @@ function ListView(_ref, ref) {
|
|
44088 |
}))));
|
44089 |
}
|
44090 |
|
44091 |
-
/* harmony default export */
|
44092 |
|
44093 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-navigation/dropdown.js
|
44094 |
|
@@ -44170,7 +45121,7 @@ function BlockNavigationDropdown(_ref2, ref) {
|
|
44170 |
});
|
44171 |
}
|
44172 |
|
44173 |
-
/* harmony default export */
|
44174 |
|
44175 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/preview-panel.js
|
44176 |
|
@@ -44319,7 +45270,7 @@ function BlockStyles(_ref) {
|
|
44319 |
}))));
|
44320 |
}
|
44321 |
|
44322 |
-
/* harmony default export */
|
44323 |
|
44324 |
BlockStyles.Slot = () => {
|
44325 |
external_wp_deprecated_default()('BlockStyles.Slot', {
|
@@ -44342,7 +45293,7 @@ const layout = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
44342 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
44343 |
d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
|
44344 |
}));
|
44345 |
-
/* harmony default export */
|
44346 |
|
44347 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-picker/index.js
|
44348 |
|
@@ -44390,8 +45341,7 @@ function BlockVariationPicker(_ref) {
|
|
44390 |
className: "block-editor-block-variation-picker__variation",
|
44391 |
label: variation.description || variation.title
|
44392 |
}), (0,external_wp_element_namespaceObject.createElement)("span", {
|
44393 |
-
className: "block-editor-block-variation-picker__variation-label"
|
44394 |
-
role: "presentation"
|
44395 |
}, variation.title)))), allowSkip && (0,external_wp_element_namespaceObject.createElement)("div", {
|
44396 |
className: "block-editor-block-variation-picker__skip"
|
44397 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
|
@@ -44400,7 +45350,7 @@ function BlockVariationPicker(_ref) {
|
|
44400 |
}, (0,external_wp_i18n_namespaceObject.__)('Skip'))));
|
44401 |
}
|
44402 |
|
44403 |
-
/* harmony default export */
|
44404 |
|
44405 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/grid.js
|
44406 |
|
@@ -44417,7 +45367,7 @@ const grid = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
44417 |
fillRule: "evenodd",
|
44418 |
clipRule: "evenodd"
|
44419 |
}));
|
44420 |
-
/* harmony default export */
|
44421 |
|
44422 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/constants.js
|
44423 |
const VIEWMODES = {
|
@@ -44510,7 +45460,7 @@ const SetupToolbar = _ref3 => {
|
|
44510 |
}));
|
44511 |
};
|
44512 |
|
44513 |
-
/* harmony default export */
|
44514 |
|
44515 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/use-patterns-setup.js
|
44516 |
/**
|
@@ -44540,7 +45490,7 @@ function usePatternsSetup(clientId, blockName, filterPatternsFn) {
|
|
44540 |
}, [clientId, blockName, filterPatternsFn]);
|
44541 |
}
|
44542 |
|
44543 |
-
/* harmony default export */
|
44544 |
|
44545 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/index.js
|
44546 |
|
@@ -44707,7 +45657,7 @@ const BlockPatternSetup = _ref4 => {
|
|
44707 |
})));
|
44708 |
};
|
44709 |
|
44710 |
-
/* harmony default export */
|
44711 |
|
44712 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-transforms/index.js
|
44713 |
|
@@ -44861,7 +45811,7 @@ function __experimentalBlockVariationTransforms(_ref4) {
|
|
44861 |
});
|
44862 |
}
|
44863 |
|
44864 |
-
/* harmony default export */
|
44865 |
|
44866 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/with-color-context.js
|
44867 |
|
@@ -44881,7 +45831,7 @@ function __experimentalBlockVariationTransforms(_ref4) {
|
|
44881 |
*/
|
44882 |
|
44883 |
|
44884 |
-
/* harmony default export */
|
44885 |
return props => {
|
44886 |
const colorsFeature = useSetting('color.palette');
|
44887 |
const disableCustomColorsFeature = !useSetting('color.custom');
|
@@ -44906,7 +45856,7 @@ function __experimentalBlockVariationTransforms(_ref4) {
|
|
44906 |
*/
|
44907 |
|
44908 |
|
44909 |
-
/* harmony default export */
|
44910 |
|
44911 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/control.js
|
44912 |
|
@@ -44931,7 +45881,7 @@ function ColorPaletteControl(_ref) {
|
|
44931 |
}
|
44932 |
|
44933 |
;// CONCATENATED MODULE: external ["wp","date"]
|
44934 |
-
|
44935 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/date-format-picker/index.js
|
44936 |
|
44937 |
|
@@ -45163,7 +46113,7 @@ const PanelColorGradientSettings = props => {
|
|
45163 |
return (0,external_wp_element_namespaceObject.createElement)(PanelColorGradientSettingsSingleSelect, props);
|
45164 |
};
|
45165 |
|
45166 |
-
/* harmony default export */
|
45167 |
|
45168 |
;// CONCATENATED MODULE: ./node_modules/react-easy-crop/node_modules/tslib/tslib.es6.js
|
45169 |
/*! *****************************************************************************
|
@@ -46289,7 +47239,7 @@ function (_super) {
|
|
46289 |
return Cropper;
|
46290 |
}((external_React_default()).Component);
|
46291 |
|
46292 |
-
/* harmony default export */
|
46293 |
|
46294 |
|
46295 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/constants.js
|
@@ -46633,7 +47583,7 @@ const search = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
46633 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
46634 |
d: "M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"
|
46635 |
}));
|
46636 |
-
/* harmony default export */
|
46637 |
|
46638 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/zoom-dropdown.js
|
46639 |
|
@@ -46673,6 +47623,7 @@ function ZoomDropdown() {
|
|
46673 |
});
|
46674 |
},
|
46675 |
renderContent: () => (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
|
|
|
46676 |
label: (0,external_wp_i18n_namespaceObject.__)('Zoom'),
|
46677 |
min: constants_MIN_ZOOM,
|
46678 |
max: constants_MAX_ZOOM,
|
@@ -46695,7 +47646,7 @@ const aspectRatio = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
46695 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
46696 |
d: "M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"
|
46697 |
}));
|
46698 |
-
/* harmony default export */
|
46699 |
|
46700 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.js
|
46701 |
|
@@ -46834,7 +47785,7 @@ const rotateRight = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
46834 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
46835 |
d: "M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"
|
46836 |
}));
|
46837 |
-
/* harmony default export */
|
46838 |
|
46839 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/rotation-button.js
|
46840 |
|
@@ -47095,7 +48046,7 @@ const keyboardReturn = (0,external_wp_element_namespaceObject.createElement)(ext
|
|
47095 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47096 |
d: "M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"
|
47097 |
}));
|
47098 |
-
/* harmony default export */
|
47099 |
|
47100 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/settings-drawer.js
|
47101 |
|
@@ -47139,7 +48090,7 @@ const LinkControlSettingsDrawer = _ref => {
|
|
47139 |
}, (0,external_wp_i18n_namespaceObject.__)('Currently selected link settings')), theSettings);
|
47140 |
};
|
47141 |
|
47142 |
-
/* harmony default export */
|
47143 |
|
47144 |
// EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js
|
47145 |
var dom_scroll_into_view_lib = __webpack_require__(5425);
|
@@ -47193,10 +48144,12 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47193 |
this.inputRef = (0,external_wp_element_namespaceObject.createRef)();
|
47194 |
this.updateSuggestions = (0,external_wp_compose_namespaceObject.debounce)(this.updateSuggestions.bind(this), 200);
|
47195 |
this.suggestionNodes = [];
|
47196 |
-
this.
|
47197 |
this.state = {
|
47198 |
suggestions: [],
|
47199 |
showSuggestions: false,
|
|
|
|
|
47200 |
selectedSuggestion: null,
|
47201 |
suggestionsListboxId: '',
|
47202 |
suggestionOptionIdPrefix: ''
|
@@ -47225,7 +48178,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47225 |
} // Update suggestions when the value changes.
|
47226 |
|
47227 |
|
47228 |
-
if (prevProps.value !== value && !this.props.disableSuggestions && !this.isUpdatingSuggestions) {
|
47229 |
if (value !== null && value !== void 0 && value.length) {
|
47230 |
// If the new value is not empty we need to update with suggestions for it.
|
47231 |
this.updateSuggestions(value);
|
@@ -47246,7 +48199,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47246 |
var _this$suggestionsRequ, _this$suggestionsRequ2;
|
47247 |
|
47248 |
(_this$suggestionsRequ = this.suggestionsRequest) === null || _this$suggestionsRequ === void 0 ? void 0 : (_this$suggestionsRequ2 = _this$suggestionsRequ.cancel) === null || _this$suggestionsRequ2 === void 0 ? void 0 : _this$suggestionsRequ2.call(_this$suggestionsRequ);
|
47249 |
-
|
47250 |
}
|
47251 |
|
47252 |
bindSuggestionNode(index) {
|
@@ -47256,14 +48209,11 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47256 |
}
|
47257 |
|
47258 |
shouldShowInitialSuggestions() {
|
47259 |
-
const {
|
47260 |
-
suggestions
|
47261 |
-
} = this.state;
|
47262 |
const {
|
47263 |
__experimentalShowInitialSuggestions = false,
|
47264 |
value
|
47265 |
} = this.props;
|
47266 |
-
return
|
47267 |
}
|
47268 |
|
47269 |
updateSuggestions() {
|
@@ -47290,16 +48240,22 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47290 |
// - this is a direct entry (eg: a URL)
|
47291 |
|
47292 |
if (!isInitialSuggestions && (value.length < 2 || !handleURLSuggestions && (0,external_wp_url_namespaceObject.isURL)(value))) {
|
|
|
|
|
|
|
|
|
47293 |
this.setState({
|
|
|
47294 |
showSuggestions: false,
|
|
|
47295 |
selectedSuggestion: null,
|
47296 |
loading: false
|
47297 |
});
|
47298 |
return;
|
47299 |
}
|
47300 |
|
47301 |
-
this.isUpdatingSuggestions = true;
|
47302 |
this.setState({
|
|
|
47303 |
selectedSuggestion: null,
|
47304 |
loading: true
|
47305 |
});
|
@@ -47316,6 +48272,8 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47316 |
|
47317 |
this.setState({
|
47318 |
suggestions,
|
|
|
|
|
47319 |
loading: false,
|
47320 |
showSuggestions: !!suggestions.length
|
47321 |
});
|
@@ -47327,15 +48285,15 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47327 |
} else {
|
47328 |
this.props.debouncedSpeak((0,external_wp_i18n_namespaceObject.__)('No results.'), 'assertive');
|
47329 |
}
|
47330 |
-
|
47331 |
-
this.isUpdatingSuggestions = false;
|
47332 |
}).catch(() => {
|
47333 |
-
if (this.suggestionsRequest
|
47334 |
-
|
47335 |
-
loading: false
|
47336 |
-
});
|
47337 |
-
this.isUpdatingSuggestions = false;
|
47338 |
}
|
|
|
|
|
|
|
|
|
|
|
47339 |
}); // Note that this assignment is handled *before* the async search request
|
47340 |
// as a Promise always resolves on the next tick of the event loop.
|
47341 |
|
@@ -47343,12 +48301,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47343 |
}
|
47344 |
|
47345 |
onChange(event) {
|
47346 |
-
|
47347 |
-
this.props.onChange(inputValue);
|
47348 |
-
|
47349 |
-
if (!this.props.disableSuggestions) {
|
47350 |
-
this.updateSuggestions(inputValue);
|
47351 |
-
}
|
47352 |
}
|
47353 |
|
47354 |
onFocus() {
|
@@ -47361,7 +48314,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47361 |
} = this.props; // When opening the link editor, if there's a value present, we want to load the suggestions pane with the results for this input search value
|
47362 |
// Don't re-run the suggestions on focus if there are already suggestions present (prevents searching again when tabbing between the input and buttons)
|
47363 |
|
47364 |
-
if (value && !disableSuggestions && !this.isUpdatingSuggestions && !(suggestions && suggestions.length)) {
|
47365 |
// Ensure the suggestions are updated with the current input value.
|
47366 |
this.updateSuggestions(value);
|
47367 |
}
|
@@ -47580,18 +48533,22 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47580 |
renderSuggestions() {
|
47581 |
const {
|
47582 |
className,
|
47583 |
-
__experimentalRenderSuggestions: renderSuggestions
|
47584 |
-
value = '',
|
47585 |
-
__experimentalShowInitialSuggestions = false
|
47586 |
} = this.props;
|
47587 |
const {
|
47588 |
showSuggestions,
|
47589 |
suggestions,
|
|
|
47590 |
selectedSuggestion,
|
47591 |
suggestionsListboxId,
|
47592 |
suggestionOptionIdPrefix,
|
47593 |
loading
|
47594 |
} = this.state;
|
|
|
|
|
|
|
|
|
|
|
47595 |
const suggestionsListProps = {
|
47596 |
id: suggestionsListboxId,
|
47597 |
ref: this.autocompleteRef,
|
@@ -47608,7 +48565,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47608 |
};
|
47609 |
};
|
47610 |
|
47611 |
-
if (isFunction(renderSuggestions)
|
47612 |
return renderSuggestions({
|
47613 |
suggestions,
|
47614 |
selectedSuggestion,
|
@@ -47616,26 +48573,23 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47616 |
buildSuggestionItemProps,
|
47617 |
isLoading: loading,
|
47618 |
handleSuggestionClick: this.handleOnClick,
|
47619 |
-
isInitialSuggestions:
|
|
|
47620 |
});
|
47621 |
}
|
47622 |
|
47623 |
-
|
47624 |
-
|
47625 |
-
|
47626 |
-
|
47627 |
-
|
47628 |
-
|
47629 |
-
|
47630 |
-
|
47631 |
-
|
47632 |
-
|
47633 |
-
|
47634 |
-
|
47635 |
-
}), suggestion.title))));
|
47636 |
-
}
|
47637 |
-
|
47638 |
-
return null;
|
47639 |
}
|
47640 |
|
47641 |
}
|
@@ -47644,7 +48598,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
47644 |
*/
|
47645 |
|
47646 |
|
47647 |
-
/* harmony default export */
|
47648 |
// If a link suggestions handler is already provided then
|
47649 |
// bail.
|
47650 |
if (isFunction(props.__experimentalFetchLinkSuggestions)) {
|
@@ -47714,7 +48668,7 @@ const LinkControlSearchCreate = _ref => {
|
|
47714 |
className: "block-editor-link-control__search-item-title"
|
47715 |
}, text)));
|
47716 |
};
|
47717 |
-
/* harmony default export */
|
47718 |
|
47719 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/post-list.js
|
47720 |
|
@@ -47729,7 +48683,7 @@ const postList = (0,external_wp_element_namespaceObject.createElement)(external_
|
|
47729 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47730 |
d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"
|
47731 |
}));
|
47732 |
-
/* harmony default export */
|
47733 |
|
47734 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/tag.js
|
47735 |
|
@@ -47744,7 +48698,7 @@ const tag = (0,external_wp_element_namespaceObject.createElement)(external_wp_pr
|
|
47744 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47745 |
d: "M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"
|
47746 |
}));
|
47747 |
-
/* harmony default export */
|
47748 |
|
47749 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/category.js
|
47750 |
|
@@ -47761,7 +48715,7 @@ const category = (0,external_wp_element_namespaceObject.createElement)(external_
|
|
47761 |
fillRule: "evenodd",
|
47762 |
clipRule: "evenodd"
|
47763 |
}));
|
47764 |
-
/* harmony default export */
|
47765 |
|
47766 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/file.js
|
47767 |
|
@@ -47776,7 +48730,7 @@ const file = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
47776 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47777 |
d: "M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"
|
47778 |
}));
|
47779 |
-
/* harmony default export */
|
47780 |
|
47781 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/globe.js
|
47782 |
|
@@ -47791,7 +48745,7 @@ const globe = (0,external_wp_element_namespaceObject.createElement)(external_wp_
|
|
47791 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47792 |
d: "M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"
|
47793 |
}));
|
47794 |
-
/* harmony default export */
|
47795 |
|
47796 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-item.js
|
47797 |
|
@@ -47884,7 +48838,7 @@ function getVisualTypeName(suggestion) {
|
|
47884 |
return suggestion.type === 'post_tag' ? 'tag' : suggestion.type;
|
47885 |
}
|
47886 |
|
47887 |
-
/* harmony default export */
|
47888 |
|
47889 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/constants.js
|
47890 |
/**
|
@@ -48220,7 +49174,6 @@ const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef
|
|
48220 |
const handleRenderSuggestions = props => renderSuggestions({ ...props,
|
48221 |
instanceId,
|
48222 |
withCreateSuggestion,
|
48223 |
-
currentInputValue: value,
|
48224 |
createSuggestionButtonText,
|
48225 |
suggestionsQuery,
|
48226 |
handleSuggestionClick: suggestion => {
|
@@ -48295,7 +49248,7 @@ const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef
|
|
48295 |
ref: ref
|
48296 |
}), children);
|
48297 |
});
|
48298 |
-
/* harmony default export */
|
48299 |
|
48300 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/info.js
|
48301 |
|
@@ -48310,7 +49263,7 @@ const info = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
48310 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
48311 |
d: "M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"
|
48312 |
}));
|
48313 |
-
/* harmony default export */
|
48314 |
|
48315 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/pencil.js
|
48316 |
|
@@ -48325,14 +49278,14 @@ const pencil = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
48325 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
48326 |
d: "M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"
|
48327 |
}));
|
48328 |
-
/* harmony default export */
|
48329 |
|
48330 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/edit.js
|
48331 |
/**
|
48332 |
* Internal dependencies
|
48333 |
*/
|
48334 |
|
48335 |
-
/* harmony default export */
|
48336 |
|
48337 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/viewer-slot.js
|
48338 |
/**
|
@@ -48344,7 +49297,7 @@ const {
|
|
48344 |
Fill: ViewerFill
|
48345 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('BlockEditorLinkControlViewer');
|
48346 |
|
48347 |
-
/* harmony default export */
|
48348 |
|
48349 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/use-rich-url-data.js
|
48350 |
/**
|
@@ -48431,7 +49384,7 @@ function useRemoteUrlData(url) {
|
|
48431 |
return state;
|
48432 |
}
|
48433 |
|
48434 |
-
/* harmony default export */
|
48435 |
|
48436 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/link-preview.js
|
48437 |
|
@@ -48644,11 +49597,11 @@ function useInternalInputValue(value) {
|
|
48644 |
const [internalInputValue, setInternalInputValue] = (0,external_wp_element_namespaceObject.useState)(value || '');
|
48645 |
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
48646 |
/**
|
48647 |
-
* If the value
|
48648 |
* back up with state.
|
48649 |
*/
|
48650 |
-
if (value
|
48651 |
-
setInternalInputValue(value
|
48652 |
}
|
48653 |
}, [value]);
|
48654 |
return [internalInputValue, setInternalInputValue];
|
@@ -48951,7 +49904,7 @@ function LinkControl(_ref) {
|
|
48951 |
}
|
48952 |
|
48953 |
LinkControl.ViewerFill = ViewerFill;
|
48954 |
-
/* harmony default export */
|
48955 |
|
48956 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/leaf.js
|
48957 |
|
@@ -48992,7 +49945,7 @@ function leaf_ListViewLeaf(_ref) {
|
|
48992 |
});
|
48993 |
return (0,external_wp_element_namespaceObject.createElement)(leaf_AnimatedTreeGridRow, _extends({
|
48994 |
ref: ref,
|
48995 |
-
className: classnames_default()('block-editor-list-view-leaf', className),
|
48996 |
level: level,
|
48997 |
positionInSet: position,
|
48998 |
setSize: rowCount
|
@@ -49132,7 +50085,7 @@ function block_select_button_ListViewBlockSelectButton(_ref, ref) {
|
|
49132 |
})))));
|
49133 |
}
|
49134 |
|
49135 |
-
/* harmony default export */
|
49136 |
|
49137 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/block-contents.js
|
49138 |
|
@@ -49218,7 +50171,43 @@ const block_contents_ListViewBlockContents = (0,external_wp_element_namespaceObj
|
|
49218 |
}, props));
|
49219 |
});
|
49220 |
});
|
49221 |
-
/* harmony default export */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49222 |
|
49223 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/context.js
|
49224 |
/**
|
@@ -49276,6 +50265,7 @@ function utils_getCommonDepthClientIds(startId, endId, startParents, endParents)
|
|
49276 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/block.js
|
49277 |
|
49278 |
|
|
|
49279 |
/**
|
49280 |
* External dependencies
|
49281 |
*/
|
@@ -49305,6 +50295,7 @@ function utils_getCommonDepthClientIds(startId, endId, startParents, endParents)
|
|
49305 |
|
49306 |
|
49307 |
|
|
|
49308 |
function block_ListViewBlock(_ref) {
|
49309 |
let {
|
49310 |
block,
|
@@ -49326,7 +50317,8 @@ function block_ListViewBlock(_ref) {
|
|
49326 |
const cellRef = (0,external_wp_element_namespaceObject.useRef)(null);
|
49327 |
const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
|
49328 |
const {
|
49329 |
-
clientId
|
|
|
49330 |
} = block;
|
49331 |
const {
|
49332 |
isLocked,
|
@@ -49346,6 +50338,7 @@ function block_ListViewBlock(_ref) {
|
|
49346 |
const isFirstSelectedBlock = forceSelectionContentLock || isSelected && selectedClientIds[0] === clientId;
|
49347 |
const isLastSelectedBlock = forceSelectionContentLock || isSelected && selectedClientIds[selectedClientIds.length - 1] === clientId;
|
49348 |
const {
|
|
|
49349 |
toggleBlockHighlight
|
49350 |
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
49351 |
const blockInformation = useBlockDisplayInformation(clientId);
|
@@ -49368,11 +50361,14 @@ function block_ListViewBlock(_ref) {
|
|
49368 |
|
49369 |
const settingsAriaLabel = blockInformation ? (0,external_wp_i18n_namespaceObject.sprintf)( // translators: %s: The title of the block.
|
49370 |
(0,external_wp_i18n_namespaceObject.__)('Options for %s block'), blockInformation.title) : (0,external_wp_i18n_namespaceObject.__)('Options');
|
|
|
|
|
49371 |
const {
|
49372 |
isTreeGridMounted,
|
49373 |
expand,
|
49374 |
collapse
|
49375 |
} = context_useListViewContext();
|
|
|
49376 |
const hasSiblings = siblingBlockCount > 0;
|
49377 |
const hasRenderedMovers = showBlockMovers && hasSiblings;
|
49378 |
const moverCellClassName = classnames_default()('block-editor-list-view-block__mover-cell', {
|
@@ -49380,6 +50376,9 @@ function block_ListViewBlock(_ref) {
|
|
49380 |
});
|
49381 |
const listViewBlockSettingsClassName = classnames_default()('block-editor-list-view-block__menu-cell', {
|
49382 |
'is-visible': isHovered || isFirstSelectedBlock
|
|
|
|
|
|
|
49383 |
}); // If ListView has experimental features related to the Persistent List View,
|
49384 |
// only focus the selected list item on mount; otherwise the list would always
|
49385 |
// try to steal the focus from the editor canvas.
|
@@ -49515,7 +50514,13 @@ function block_ListViewBlock(_ref) {
|
|
49515 |
tabIndex: tabIndex,
|
49516 |
onFocus: onFocus
|
49517 |
});
|
49518 |
-
}))), showBlockActions && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
|
|
|
|
|
|
|
|
|
|
|
|
|
49519 |
className: listViewBlockSettingsClassName,
|
49520 |
"aria-selected": !!isSelected || forceSelectionContentLock
|
49521 |
}, _ref5 => {
|
@@ -49536,11 +50541,23 @@ function block_ListViewBlock(_ref) {
|
|
49536 |
},
|
49537 |
disableOpenOnArrowDown: true,
|
49538 |
__experimentalSelectBlock: updateSelection
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49539 |
});
|
49540 |
-
}));
|
49541 |
}
|
49542 |
|
49543 |
-
/* harmony default export */
|
49544 |
|
49545 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/branch.js
|
49546 |
|
@@ -49706,7 +50723,7 @@ function branch_ListViewBranch(props) {
|
|
49706 |
branch_ListViewBranch.defaultProps = {
|
49707 |
selectBlock: () => {}
|
49708 |
};
|
49709 |
-
/* harmony default export */
|
49710 |
|
49711 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/drop-indicator.js
|
49712 |
|
@@ -50242,6 +51259,362 @@ function use_list_view_expand_selected_item_useListViewExpandSelectedItem(_ref)
|
|
50242 |
};
|
50243 |
}
|
50244 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50245 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/index.js
|
50246 |
|
50247 |
|
@@ -50266,6 +51639,7 @@ function use_list_view_expand_selected_item_useListViewExpandSelectedItem(_ref)
|
|
50266 |
|
50267 |
|
50268 |
|
|
|
50269 |
const off_canvas_editor_expanded = (state, action) => {
|
50270 |
if (Array.isArray(action.clientIds)) {
|
50271 |
return { ...state,
|
@@ -50336,9 +51710,9 @@ function __ExperimentalOffCanvasEditor(_ref, ref) {
|
|
50336 |
firstSelectedBlockClientId: selectedClientIds[0],
|
50337 |
setExpandedState
|
50338 |
});
|
50339 |
-
const selectEditorBlock = (0,external_wp_element_namespaceObject.useCallback)((event,
|
50340 |
-
updateBlockSelection(event,
|
50341 |
-
setSelectedTreeId(
|
50342 |
}, [setSelectedTreeId, updateBlockSelection]);
|
50343 |
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
50344 |
isMounted.current = true;
|
@@ -50350,24 +51724,24 @@ function __ExperimentalOffCanvasEditor(_ref, ref) {
|
|
50350 |
useWindowing: true,
|
50351 |
windowOverscan: 40
|
50352 |
});
|
50353 |
-
const expand = (0,external_wp_element_namespaceObject.useCallback)(
|
50354 |
-
if (!
|
50355 |
return;
|
50356 |
}
|
50357 |
|
50358 |
setExpandedState({
|
50359 |
type: 'expand',
|
50360 |
-
clientIds: [
|
50361 |
});
|
50362 |
}, [setExpandedState]);
|
50363 |
-
const collapse = (0,external_wp_element_namespaceObject.useCallback)(
|
50364 |
-
if (!
|
50365 |
return;
|
50366 |
}
|
50367 |
|
50368 |
setExpandedState({
|
50369 |
type: 'collapse',
|
50370 |
-
clientIds: [
|
50371 |
});
|
50372 |
}, [setExpandedState]);
|
50373 |
const expandRow = (0,external_wp_element_namespaceObject.useCallback)(row => {
|
@@ -50399,7 +51773,9 @@ function __ExperimentalOffCanvasEditor(_ref, ref) {
|
|
50399 |
}, (0,external_wp_element_namespaceObject.createElement)(drop_indicator_ListViewDropIndicator, {
|
50400 |
listViewRef: elementRef,
|
50401 |
blockDropTarget: blockDropTarget
|
50402 |
-
}), (0,external_wp_element_namespaceObject.createElement)(
|
|
|
|
|
50403 |
id: id,
|
50404 |
className: "block-editor-list-view-tree",
|
50405 |
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Block navigation structure'),
|
@@ -50419,10 +51795,15 @@ function __ExperimentalOffCanvasEditor(_ref, ref) {
|
|
50419 |
isExpanded: isExpanded,
|
50420 |
shouldShowInnerBlocks: shouldShowInnerBlocks,
|
50421 |
selectBlockInCanvas: selectBlockInCanvas
|
50422 |
-
}))
|
|
|
|
|
|
|
|
|
|
|
50423 |
}
|
50424 |
|
50425 |
-
/* harmony default export */
|
50426 |
|
50427 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/media.js
|
50428 |
|
@@ -50437,7 +51818,7 @@ const media = (0,external_wp_element_namespaceObject.createElement)(external_wp_
|
|
50437 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
50438 |
d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"
|
50439 |
}));
|
50440 |
-
/* harmony default export */
|
50441 |
|
50442 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/upload.js
|
50443 |
|
@@ -50452,7 +51833,7 @@ const upload = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
50452 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
50453 |
d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
|
50454 |
}));
|
50455 |
-
/* harmony default export */
|
50456 |
|
50457 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/post-featured-image.js
|
50458 |
|
@@ -50467,57 +51848,7 @@ const postFeaturedImage = (0,external_wp_element_namespaceObject.createElement)(
|
|
50467 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
50468 |
d: "M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"
|
50469 |
}));
|
50470 |
-
/* harmony default export */
|
50471 |
-
|
50472 |
-
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/index.js
|
50473 |
-
/**
|
50474 |
-
* WordPress dependencies
|
50475 |
-
*/
|
50476 |
-
|
50477 |
-
/**
|
50478 |
-
* This is a placeholder for the media upload component necessary to make it possible to provide
|
50479 |
-
* an integration with the core blocks that handle media files. By default it renders nothing but
|
50480 |
-
* it provides a way to have it overridden with the `editor.MediaUpload` filter.
|
50481 |
-
*
|
50482 |
-
* @return {WPComponent} The component to be rendered.
|
50483 |
-
*/
|
50484 |
-
|
50485 |
-
const MediaUpload = () => null;
|
50486 |
-
/**
|
50487 |
-
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-upload/README.md
|
50488 |
-
*/
|
50489 |
-
|
50490 |
-
|
50491 |
-
/* harmony default export */ const media_upload = ((0,external_wp_components_namespaceObject.withFilters)('editor.MediaUpload')(MediaUpload));
|
50492 |
-
|
50493 |
-
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/check.js
|
50494 |
-
/**
|
50495 |
-
* WordPress dependencies
|
50496 |
-
*/
|
50497 |
-
|
50498 |
-
/**
|
50499 |
-
* Internal dependencies
|
50500 |
-
*/
|
50501 |
-
|
50502 |
-
|
50503 |
-
function MediaUploadCheck(_ref) {
|
50504 |
-
let {
|
50505 |
-
fallback = null,
|
50506 |
-
children
|
50507 |
-
} = _ref;
|
50508 |
-
const hasUploadPermissions = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
50509 |
-
const {
|
50510 |
-
getSettings
|
50511 |
-
} = select(store);
|
50512 |
-
return !!getSettings().mediaUpload;
|
50513 |
-
}, []);
|
50514 |
-
return hasUploadPermissions ? children : fallback;
|
50515 |
-
}
|
50516 |
-
/**
|
50517 |
-
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-upload/README.md
|
50518 |
-
*/
|
50519 |
-
|
50520 |
-
/* harmony default export */ const media_upload_check = (MediaUploadCheck);
|
50521 |
|
50522 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-replace-flow/index.js
|
50523 |
|
@@ -50687,7 +52018,7 @@ const MediaReplaceFlow = _ref => {
|
|
50687 |
onClick: open
|
50688 |
}, (0,external_wp_i18n_namespaceObject.__)('Open Media Library'));
|
50689 |
}
|
50690 |
-
}), (0,external_wp_element_namespaceObject.createElement)(
|
50691 |
onChange: event => {
|
50692 |
uploadFiles(event, onClose);
|
50693 |
},
|
@@ -50738,7 +52069,7 @@ const MediaReplaceFlow = _ref => {
|
|
50738 |
*/
|
50739 |
|
50740 |
|
50741 |
-
/* harmony default export */
|
50742 |
const {
|
50743 |
createNotice,
|
50744 |
removeNotice
|
@@ -50954,7 +52285,7 @@ URLPopover.LinkViewer = LinkViewer;
|
|
50954 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/url-popover/README.md
|
50955 |
*/
|
50956 |
|
50957 |
-
/* harmony default export */
|
50958 |
|
50959 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-placeholder/index.js
|
50960 |
|
@@ -51328,10 +52659,10 @@ function MediaPlaceholder(_ref2) {
|
|
51328 |
};
|
51329 |
|
51330 |
if (disableMediaButtons) {
|
51331 |
-
return (0,external_wp_element_namespaceObject.createElement)(
|
51332 |
}
|
51333 |
|
51334 |
-
return (0,external_wp_element_namespaceObject.createElement)(
|
51335 |
fallback: renderPlaceholder(renderUrlSelectionUI())
|
51336 |
}, renderMediaUploadChecked());
|
51337 |
}
|
@@ -51339,7 +52670,7 @@ function MediaPlaceholder(_ref2) {
|
|
51339 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-placeholder/README.md
|
51340 |
*/
|
51341 |
|
51342 |
-
/* harmony default export */
|
51343 |
|
51344 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/panel-color-settings/index.js
|
51345 |
|
@@ -51377,7 +52708,7 @@ const PanelColorSettings = _ref => {
|
|
51377 |
}, props));
|
51378 |
};
|
51379 |
|
51380 |
-
/* harmony default export */
|
51381 |
|
51382 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar/index.js
|
51383 |
|
@@ -51444,7 +52775,7 @@ const FormatToolbar = () => {
|
|
51444 |
}));
|
51445 |
};
|
51446 |
|
51447 |
-
/* harmony default export */
|
51448 |
|
51449 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar-container.js
|
51450 |
|
@@ -51536,7 +52867,7 @@ const FormatToolbarContainer = _ref3 => {
|
|
51536 |
}, (0,external_wp_element_namespaceObject.createElement)(format_toolbar, null));
|
51537 |
};
|
51538 |
|
51539 |
-
/* harmony default export */
|
51540 |
|
51541 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-undo-automatic-change.js
|
51542 |
/**
|
@@ -51569,13 +52900,21 @@ function useUndoAutomaticChange() {
|
|
51569 |
return;
|
51570 |
}
|
51571 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51572 |
if (!didAutomaticChange()) {
|
51573 |
return;
|
51574 |
}
|
51575 |
|
51576 |
event.preventDefault();
|
51577 |
|
51578 |
-
|
51579 |
}
|
51580 |
|
51581 |
element.addEventListener('keydown', onKeyDown);
|
@@ -51645,7 +52984,7 @@ function filePasteHandler(files) {
|
|
51645 |
}
|
51646 |
|
51647 |
;// CONCATENATED MODULE: external ["wp","shortcode"]
|
51648 |
-
|
51649 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/utils.js
|
51650 |
|
51651 |
|
@@ -52679,6 +54018,40 @@ function useInputEvents(inputEvents) {
|
|
52679 |
}, []);
|
52680 |
}
|
52681 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52682 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-firefox-compat.js
|
52683 |
/**
|
52684 |
* WordPress dependencies
|
@@ -52828,6 +54201,7 @@ function FormatEdit(_ref) {
|
|
52828 |
|
52829 |
|
52830 |
|
|
|
52831 |
const keyboardShortcutContext = (0,external_wp_element_namespaceObject.createContext)();
|
52832 |
const inputEventContext = (0,external_wp_element_namespaceObject.createContext)();
|
52833 |
/**
|
@@ -53162,7 +54536,7 @@ function RichTextWrapper(_ref, forwardedRef) {
|
|
53162 |
formatTypes,
|
53163 |
onReplace,
|
53164 |
selectionChange
|
53165 |
-
}), useRemoveBrowserShortcuts(), useShortcuts(keyboardShortcuts), useInputEvents(inputEvents), useUndoAutomaticChange(), usePasteHandler({
|
53166 |
isSelected,
|
53167 |
disableFormats,
|
53168 |
onChange,
|
@@ -53243,7 +54617,7 @@ ForwardedRichTextContainer.isEmpty = value => {
|
|
53243 |
*/
|
53244 |
|
53245 |
|
53246 |
-
/* harmony default export */
|
53247 |
|
53248 |
|
53249 |
|
@@ -53283,7 +54657,7 @@ EditableText.Content = _ref => {
|
|
53283 |
*/
|
53284 |
|
53285 |
|
53286 |
-
/* harmony default export */
|
53287 |
|
53288 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/plain-text/index.js
|
53289 |
|
@@ -53331,7 +54705,7 @@ const PlainText = (0,external_wp_element_namespaceObject.forwardRef)((_ref, ref)
|
|
53331 |
onChange: event => onChange(event.target.value)
|
53332 |
}, remainingProps));
|
53333 |
});
|
53334 |
-
/* harmony default export */
|
53335 |
|
53336 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/responsive-block-control/label.js
|
53337 |
|
@@ -53452,7 +54826,7 @@ function ResponsiveBlockControl(props) {
|
|
53452 |
}, !isResponsive && defaultControl, isResponsive && (renderResponsiveControls ? renderResponsiveControls(viewports) : defaultResponsiveControls()))));
|
53453 |
}
|
53454 |
|
53455 |
-
/* harmony default export */
|
53456 |
|
53457 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/shortcut.js
|
53458 |
/**
|
@@ -53628,7 +55002,7 @@ function ToolSelector(props, ref) {
|
|
53628 |
});
|
53629 |
}
|
53630 |
|
53631 |
-
/* harmony default export */
|
53632 |
|
53633 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/unit-control/index.js
|
53634 |
|
@@ -53670,7 +55044,7 @@ const arrowLeft = (0,external_wp_element_namespaceObject.createElement)(external
|
|
53670 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
53671 |
d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"
|
53672 |
}));
|
53673 |
-
/* harmony default export */
|
53674 |
|
53675 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/button.js
|
53676 |
|
@@ -53752,7 +55126,7 @@ class URLInputButton extends external_wp_element_namespaceObject.Component {
|
|
53752 |
*/
|
53753 |
|
53754 |
|
53755 |
-
/* harmony default export */
|
53756 |
|
53757 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/close.js
|
53758 |
|
@@ -53767,7 +55141,7 @@ const close_close = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
53767 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
53768 |
d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
|
53769 |
}));
|
53770 |
-
/* harmony default export */
|
53771 |
|
53772 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/image-url-input-ui.js
|
53773 |
|
@@ -54200,14 +55574,14 @@ const SkipToSelectedBlock = _ref => {
|
|
54200 |
*/
|
54201 |
|
54202 |
|
54203 |
-
/* harmony default export */
|
54204 |
return {
|
54205 |
selectedBlockClientId: select(store).getBlockSelectionStart()
|
54206 |
};
|
54207 |
})(SkipToSelectedBlock));
|
54208 |
|
54209 |
;// CONCATENATED MODULE: external ["wp","wordcount"]
|
54210 |
-
|
54211 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/multi-selection-inspector/index.js
|
54212 |
|
54213 |
|
@@ -54249,7 +55623,7 @@ function MultiSelectionInspector(_ref) {
|
|
54249 |
(0,external_wp_i18n_namespaceObject._n)('%d word', '%d words', words), words))));
|
54250 |
}
|
54251 |
|
54252 |
-
/* harmony default export */
|
54253 |
const {
|
54254 |
getMultiSelectedBlocks
|
54255 |
} = select(store);
|
@@ -54331,9 +55705,283 @@ function DefaultStylePicker(_ref) {
|
|
54331 |
}));
|
54332 |
}
|
54333 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54334 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-inspector/index.js
|
54335 |
|
54336 |
|
|
|
54337 |
/**
|
54338 |
* WordPress dependencies
|
54339 |
*/
|
@@ -54357,8 +56005,11 @@ function DefaultStylePicker(_ref) {
|
|
54357 |
|
54358 |
|
54359 |
|
|
|
|
|
|
|
54360 |
function useContentBlocks(blockTypes, block) {
|
54361 |
-
const
|
54362 |
return blockTypes.reduce((result, blockType) => {
|
54363 |
if (blockType.name !== 'core/list-item' && Object.entries(blockType.attributes).some(_ref => {
|
54364 |
let [, {
|
@@ -54373,7 +56024,7 @@ function useContentBlocks(blockTypes, block) {
|
|
54373 |
}, {});
|
54374 |
}, [blockTypes]);
|
54375 |
const isContentBlock = (0,external_wp_element_namespaceObject.useCallback)(blockName => {
|
54376 |
-
return !!
|
54377 |
}, [blockTypes]);
|
54378 |
return (0,external_wp_element_namespaceObject.useMemo)(() => {
|
54379 |
return getContentBlocks([block], isContentBlock);
|
@@ -54439,7 +56090,9 @@ function BlockInspectorLockedBlocks(_ref4) {
|
|
54439 |
const contentBlocks = useContentBlocks(blockTypes, block);
|
54440 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
54441 |
className: "block-editor-block-inspector"
|
54442 |
-
}, (0,external_wp_element_namespaceObject.createElement)(block_card,
|
|
|
|
|
54443 |
blockClientId: topLevelLockedBlock
|
54444 |
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
|
54445 |
spacing: 1,
|
@@ -54456,6 +56109,8 @@ function BlockInspectorLockedBlocks(_ref4) {
|
|
54456 |
}
|
54457 |
|
54458 |
const BlockInspector = _ref5 => {
|
|
|
|
|
54459 |
let {
|
54460 |
showNoBlockSelectedMessage = true
|
54461 |
} = _ref5;
|
@@ -54488,11 +56143,15 @@ const BlockInspector = _ref5 => {
|
|
54488 |
topLevelLockedBlock: __unstableGetContentLockingParent(_selectedBlockClientId) || (getTemplateLock(_selectedBlockClientId) === 'contentOnly' ? _selectedBlockClientId : undefined)
|
54489 |
};
|
54490 |
}, []);
|
|
|
|
|
54491 |
|
54492 |
if (count > 1) {
|
54493 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
54494 |
className: "block-editor-block-inspector"
|
54495 |
-
}, (0,external_wp_element_namespaceObject.createElement)(multi_selection_inspector, null),
|
|
|
|
|
54496 |
__experimentalGroup: "color",
|
54497 |
label: (0,external_wp_i18n_namespaceObject.__)('Color'),
|
54498 |
className: "color-block-support-panel__inner-wrapper"
|
@@ -54505,7 +56164,7 @@ const BlockInspector = _ref5 => {
|
|
54505 |
}), (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
54506 |
__experimentalGroup: "border",
|
54507 |
label: (0,external_wp_i18n_namespaceObject.__)('Border')
|
54508 |
-
}));
|
54509 |
}
|
54510 |
|
54511 |
const isSelectedBlockUnregistered = selectedBlockName === (0,external_wp_blocks_namespaceObject.getUnregisteredTypeHandlerName)();
|
@@ -54537,10 +56196,14 @@ const BlockInspector = _ref5 => {
|
|
54537 |
};
|
54538 |
|
54539 |
const BlockInspectorSingleBlock = _ref6 => {
|
|
|
|
|
54540 |
let {
|
54541 |
clientId,
|
54542 |
blockName
|
54543 |
} = _ref6;
|
|
|
|
|
54544 |
const hasBlockStyles = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
54545 |
const {
|
54546 |
getBlockStyles
|
@@ -54551,9 +56214,16 @@ const BlockInspectorSingleBlock = _ref6 => {
|
|
54551 |
const blockInformation = useBlockDisplayInformation(clientId);
|
54552 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
54553 |
className: "block-editor-block-inspector"
|
54554 |
-
}, (0,external_wp_element_namespaceObject.createElement)(block_card,
|
|
|
|
|
54555 |
blockClientId: clientId
|
54556 |
-
}),
|
|
|
|
|
|
|
|
|
|
|
54557 |
title: (0,external_wp_i18n_namespaceObject.__)('Styles')
|
54558 |
}, (0,external_wp_element_namespaceObject.createElement)(block_styles, {
|
54559 |
clientId: clientId
|
@@ -54572,33 +56242,16 @@ const BlockInspectorSingleBlock = _ref6 => {
|
|
54572 |
}), (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
54573 |
__experimentalGroup: "border",
|
54574 |
label: (0,external_wp_i18n_namespaceObject.__)('Border')
|
54575 |
-
}), (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)(
|
54576 |
key: "back"
|
54577 |
}));
|
54578 |
};
|
54579 |
-
|
54580 |
-
const AdvancedControls = () => {
|
54581 |
-
const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(InspectorAdvancedControls.slotName);
|
54582 |
-
const hasFills = Boolean(fills && fills.length);
|
54583 |
-
|
54584 |
-
if (!hasFills) {
|
54585 |
-
return null;
|
54586 |
-
}
|
54587 |
-
|
54588 |
-
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
|
54589 |
-
className: "block-editor-block-inspector__advanced",
|
54590 |
-
title: (0,external_wp_i18n_namespaceObject.__)('Advanced'),
|
54591 |
-
initialOpen: false
|
54592 |
-
}, (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
54593 |
-
__experimentalGroup: "advanced"
|
54594 |
-
}));
|
54595 |
-
};
|
54596 |
/**
|
54597 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/block-inspector/README.md
|
54598 |
*/
|
54599 |
|
54600 |
|
54601 |
-
/* harmony default export */
|
54602 |
|
54603 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/zoom-out-mode-inserters.js
|
54604 |
|
@@ -54658,7 +56311,7 @@ function ZoomOutModeInserters(_ref) {
|
|
54658 |
});
|
54659 |
}
|
54660 |
|
54661 |
-
/* harmony default export */
|
54662 |
|
54663 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/index.js
|
54664 |
|
@@ -54877,7 +56530,7 @@ function InserterLibrary(_ref, ref) {
|
|
54877 |
});
|
54878 |
}
|
54879 |
|
54880 |
-
/* harmony default export */
|
54881 |
|
54882 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/keyboard-shortcuts/index.js
|
54883 |
/**
|
@@ -54994,7 +56647,7 @@ function KeyboardShortcutsRegister() {
|
|
54994 |
}
|
54995 |
|
54996 |
KeyboardShortcuts.Register = KeyboardShortcutsRegister;
|
54997 |
-
/* harmony default export */
|
54998 |
|
54999 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/selection-scroll-into-view/index.js
|
55000 |
/**
|
@@ -55260,7 +56913,7 @@ function ObserveTyping(_ref) {
|
|
55260 |
*/
|
55261 |
|
55262 |
|
55263 |
-
/* harmony default export */
|
55264 |
|
55265 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/typewriter/index.js
|
55266 |
|
@@ -55498,7 +57151,7 @@ const TypewriterOrIEBypass = isIE ? props => props.children : Typewriter;
|
|
55498 |
* can vary. It is the last clicked or scrolled to position.
|
55499 |
*/
|
55500 |
|
55501 |
-
/* harmony default export */
|
55502 |
|
55503 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/recursion-provider/index.js
|
55504 |
|
@@ -55601,7 +57254,7 @@ const closeSmall = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
55601 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
55602 |
d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
|
55603 |
}));
|
55604 |
-
/* harmony default export */
|
55605 |
|
55606 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-popover-header/index.js
|
55607 |
|
@@ -55691,7 +57344,7 @@ function PublishDateTimePicker(_ref, ref) {
|
|
55691 |
}, additionalProps)));
|
55692 |
}
|
55693 |
|
55694 |
-
/* harmony default export */
|
55695 |
|
55696 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/index.js
|
55697 |
/*
|
@@ -55742,6 +57395,7 @@ function PublishDateTimePicker(_ref, ref) {
|
|
55742 |
|
55743 |
|
55744 |
|
|
|
55745 |
|
55746 |
|
55747 |
|
@@ -56147,7 +57801,7 @@ function hashOptions(options) {
|
|
56147 |
return hash;
|
56148 |
}
|
56149 |
|
56150 |
-
/* harmony default export */
|
56151 |
|
56152 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/index.js
|
56153 |
|
@@ -56166,8 +57820,7 @@ function hashOptions(options) {
|
|
56166 |
|
56167 |
|
56168 |
|
56169 |
-
}
|
56170 |
-
|
56171 |
(window.wp = window.wp || {}).blockEditor = __webpack_exports__;
|
56172 |
/******/ })()
|
56173 |
;
|
1 |
+
/******/ (function() { // webpackBootstrap
|
2 |
/******/ var __webpack_modules__ = ({
|
3 |
|
4 |
/***/ 6411:
|
291 |
/***/ }),
|
292 |
|
293 |
/***/ 4403:
|
294 |
+
/***/ (function(module, exports) {
|
295 |
|
296 |
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
297 |
Copyright (c) 2018 Jed Watson.
|
355 |
/***/ }),
|
356 |
|
357 |
/***/ 4827:
|
358 |
+
/***/ (function(module) {
|
359 |
|
360 |
// This code has been refactored for 140 bytes
|
361 |
// You can see the original here: https://github.com/twolfson/computedStyle/blob/04cd1da2e30fa45844f95f5cb1ac898e9b9ef050/lib/computedStyle.js
|
389 |
/***/ }),
|
390 |
|
391 |
/***/ 1198:
|
392 |
+
/***/ (function(__unused_webpack_module, exports) {
|
393 |
|
394 |
"use strict";
|
395 |
/*istanbul ignore start*/
|
700 |
/***/ }),
|
701 |
|
702 |
/***/ 1973:
|
703 |
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
704 |
|
705 |
"use strict";
|
706 |
var __webpack_unused_export__;
|
745 |
/***/ }),
|
746 |
|
747 |
/***/ 1345:
|
748 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
749 |
|
750 |
"use strict";
|
751 |
|
886 |
/***/ }),
|
887 |
|
888 |
/***/ 5425:
|
889 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
890 |
|
891 |
"use strict";
|
892 |
|
896 |
/***/ }),
|
897 |
|
898 |
/***/ 5022:
|
899 |
+
/***/ (function(module) {
|
900 |
|
901 |
"use strict";
|
902 |
|
1342 |
/***/ }),
|
1343 |
|
1344 |
/***/ 8575:
|
1345 |
+
/***/ (function(module) {
|
1346 |
|
1347 |
if (typeof Object.create === 'function') {
|
1348 |
// implementation from standard node.js 'util' module
|
1372 |
/***/ }),
|
1373 |
|
1374 |
/***/ 9894:
|
1375 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1376 |
|
1377 |
// Load in dependencies
|
1378 |
var computedStyle = __webpack_require__(4827);
|
1476 |
/***/ }),
|
1477 |
|
1478 |
/***/ 7970:
|
1479 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1480 |
|
1481 |
module.exports = __webpack_require__(195);
|
1482 |
|
1484 |
/***/ }),
|
1485 |
|
1486 |
/***/ 3110:
|
1487 |
+
/***/ (function(module) {
|
1488 |
|
1489 |
"use strict";
|
1490 |
/**
|
1535 |
/***/ }),
|
1536 |
|
1537 |
/***/ 3812:
|
1538 |
+
/***/ (function(module) {
|
1539 |
|
1540 |
/**
|
1541 |
* Copyright 2004-present Facebook. All Rights Reserved.
|
1824 |
/***/ }),
|
1825 |
|
1826 |
/***/ 7939:
|
1827 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1828 |
|
1829 |
"use strict";
|
1830 |
/**
|
1895 |
/***/ }),
|
1896 |
|
1897 |
/***/ 195:
|
1898 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1899 |
|
1900 |
"use strict";
|
1901 |
/**
|
2084 |
/***/ }),
|
2085 |
|
2086 |
/***/ 5372:
|
2087 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2088 |
|
2089 |
"use strict";
|
2090 |
/**
|
2156 |
/***/ }),
|
2157 |
|
2158 |
/***/ 2652:
|
2159 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2160 |
|
2161 |
/**
|
2162 |
* Copyright (c) 2013-present, Facebook, Inc.
|
2175 |
/***/ }),
|
2176 |
|
2177 |
/***/ 9567:
|
2178 |
+
/***/ (function(module) {
|
2179 |
|
2180 |
"use strict";
|
2181 |
/**
|
2329 |
/***/ }),
|
2330 |
|
2331 |
/***/ 773:
|
2332 |
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
2333 |
|
2334 |
"use strict";
|
2335 |
var __webpack_unused_export__;
|
2342 |
/***/ }),
|
2343 |
|
2344 |
/***/ 4793:
|
2345 |
+
/***/ (function(module) {
|
2346 |
|
2347 |
var characterMap = {
|
2348 |
"À": "A",
|
2768 |
/***/ }),
|
2769 |
|
2770 |
/***/ 3124:
|
2771 |
+
/***/ (function(module) {
|
2772 |
|
2773 |
var traverse = module.exports = function (obj) {
|
2774 |
return new Traverse(obj);
|
3089 |
/***/ }),
|
3090 |
|
3091 |
/***/ 9196:
|
3092 |
+
/***/ (function(module) {
|
3093 |
|
3094 |
"use strict";
|
3095 |
module.exports = window["React"];
|
3124 |
/******/
|
3125 |
/************************************************************************/
|
3126 |
/******/ /* webpack/runtime/compat get default export */
|
3127 |
+
/******/ !function() {
|
3128 |
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
3129 |
+
/******/ __webpack_require__.n = function(module) {
|
3130 |
/******/ var getter = module && module.__esModule ?
|
3131 |
+
/******/ function() { return module['default']; } :
|
3132 |
+
/******/ function() { return module; };
|
3133 |
/******/ __webpack_require__.d(getter, { a: getter });
|
3134 |
/******/ return getter;
|
3135 |
/******/ };
|
3136 |
+
/******/ }();
|
3137 |
/******/
|
3138 |
/******/ /* webpack/runtime/define property getters */
|
3139 |
+
/******/ !function() {
|
3140 |
/******/ // define getter functions for harmony exports
|
3141 |
+
/******/ __webpack_require__.d = function(exports, definition) {
|
3142 |
/******/ for(var key in definition) {
|
3143 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
3144 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
3145 |
/******/ }
|
3146 |
/******/ }
|
3147 |
/******/ };
|
3148 |
+
/******/ }();
|
3149 |
/******/
|
3150 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
3151 |
+
/******/ !function() {
|
3152 |
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
3153 |
+
/******/ }();
|
3154 |
/******/
|
3155 |
/******/ /* webpack/runtime/make namespace object */
|
3156 |
+
/******/ !function() {
|
3157 |
/******/ // define __esModule on exports
|
3158 |
+
/******/ __webpack_require__.r = function(exports) {
|
3159 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
3160 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
3161 |
/******/ }
|
3162 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
3163 |
/******/ };
|
3164 |
+
/******/ }();
|
3165 |
/******/
|
3166 |
/************************************************************************/
|
3167 |
var __webpack_exports__ = {};
|
3168 |
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
3169 |
+
!function() {
|
3170 |
"use strict";
|
3171 |
// ESM COMPAT FLAG
|
3172 |
__webpack_require__.r(__webpack_exports__);
|
3173 |
|
3174 |
// EXPORTS
|
3175 |
__webpack_require__.d(__webpack_exports__, {
|
3176 |
+
"AlignmentControl": function() { return /* reexport */ AlignmentControl; },
|
3177 |
+
"AlignmentToolbar": function() { return /* reexport */ AlignmentToolbar; },
|
3178 |
+
"Autocomplete": function() { return /* reexport */ autocomplete; },
|
3179 |
+
"BlockAlignmentControl": function() { return /* reexport */ BlockAlignmentControl; },
|
3180 |
+
"BlockAlignmentToolbar": function() { return /* reexport */ BlockAlignmentToolbar; },
|
3181 |
+
"BlockBreadcrumb": function() { return /* reexport */ block_breadcrumb; },
|
3182 |
+
"BlockColorsStyleSelector": function() { return /* reexport */ color_style_selector; },
|
3183 |
+
"BlockContextProvider": function() { return /* reexport */ BlockContextProvider; },
|
3184 |
+
"BlockControls": function() { return /* reexport */ block_controls; },
|
3185 |
+
"BlockEdit": function() { return /* reexport */ BlockEdit; },
|
3186 |
+
"BlockEditorKeyboardShortcuts": function() { return /* reexport */ keyboard_shortcuts; },
|
3187 |
+
"BlockEditorProvider": function() { return /* reexport */ provider; },
|
3188 |
+
"BlockFormatControls": function() { return /* reexport */ BlockFormatControls; },
|
3189 |
+
"BlockIcon": function() { return /* reexport */ block_icon; },
|
3190 |
+
"BlockInspector": function() { return /* reexport */ block_inspector; },
|
3191 |
+
"BlockList": function() { return /* reexport */ BlockList; },
|
3192 |
+
"BlockMover": function() { return /* reexport */ block_mover; },
|
3193 |
+
"BlockNavigationDropdown": function() { return /* reexport */ dropdown; },
|
3194 |
+
"BlockPreview": function() { return /* reexport */ block_preview; },
|
3195 |
+
"BlockSelectionClearer": function() { return /* reexport */ BlockSelectionClearer; },
|
3196 |
+
"BlockSettingsMenu": function() { return /* reexport */ block_settings_menu; },
|
3197 |
+
"BlockSettingsMenuControls": function() { return /* reexport */ block_settings_menu_controls; },
|
3198 |
+
"BlockStyles": function() { return /* reexport */ block_styles; },
|
3199 |
+
"BlockTitle": function() { return /* reexport */ BlockTitle; },
|
3200 |
+
"BlockToolbar": function() { return /* reexport */ block_toolbar; },
|
3201 |
+
"BlockTools": function() { return /* reexport */ BlockTools; },
|
3202 |
+
"BlockVerticalAlignmentControl": function() { return /* reexport */ BlockVerticalAlignmentControl; },
|
3203 |
+
"BlockVerticalAlignmentToolbar": function() { return /* reexport */ BlockVerticalAlignmentToolbar; },
|
3204 |
+
"ButtonBlockAppender": function() { return /* reexport */ button_block_appender; },
|
3205 |
+
"ButtonBlockerAppender": function() { return /* reexport */ ButtonBlockerAppender; },
|
3206 |
+
"ColorPalette": function() { return /* reexport */ color_palette; },
|
3207 |
+
"ColorPaletteControl": function() { return /* reexport */ ColorPaletteControl; },
|
3208 |
+
"ContrastChecker": function() { return /* reexport */ contrast_checker; },
|
3209 |
+
"CopyHandler": function() { return /* reexport */ copy_handler; },
|
3210 |
+
"DefaultBlockAppender": function() { return /* reexport */ default_block_appender; },
|
3211 |
+
"FontSizePicker": function() { return /* reexport */ font_size_picker; },
|
3212 |
+
"InnerBlocks": function() { return /* reexport */ inner_blocks; },
|
3213 |
+
"Inserter": function() { return /* reexport */ inserter; },
|
3214 |
+
"InspectorAdvancedControls": function() { return /* reexport */ InspectorAdvancedControls; },
|
3215 |
+
"InspectorControls": function() { return /* reexport */ inspector_controls; },
|
3216 |
+
"JustifyContentControl": function() { return /* reexport */ JustifyContentControl; },
|
3217 |
+
"JustifyToolbar": function() { return /* reexport */ JustifyToolbar; },
|
3218 |
+
"LineHeightControl": function() { return /* reexport */ line_height_control; },
|
3219 |
+
"MediaPlaceholder": function() { return /* reexport */ media_placeholder; },
|
3220 |
+
"MediaReplaceFlow": function() { return /* reexport */ media_replace_flow; },
|
3221 |
+
"MediaUpload": function() { return /* reexport */ media_upload; },
|
3222 |
+
"MediaUploadCheck": function() { return /* reexport */ check; },
|
3223 |
+
"MultiSelectScrollIntoView": function() { return /* reexport */ MultiSelectScrollIntoView; },
|
3224 |
+
"NavigableToolbar": function() { return /* reexport */ navigable_toolbar; },
|
3225 |
+
"ObserveTyping": function() { return /* reexport */ observe_typing; },
|
3226 |
+
"PanelColorSettings": function() { return /* reexport */ panel_color_settings; },
|
3227 |
+
"PlainText": function() { return /* reexport */ plain_text; },
|
3228 |
+
"RichText": function() { return /* reexport */ rich_text; },
|
3229 |
+
"RichTextShortcut": function() { return /* reexport */ RichTextShortcut; },
|
3230 |
+
"RichTextToolbarButton": function() { return /* reexport */ RichTextToolbarButton; },
|
3231 |
+
"SETTINGS_DEFAULTS": function() { return /* reexport */ SETTINGS_DEFAULTS; },
|
3232 |
+
"SkipToSelectedBlock": function() { return /* reexport */ skip_to_selected_block; },
|
3233 |
+
"ToolSelector": function() { return /* reexport */ tool_selector; },
|
3234 |
+
"Typewriter": function() { return /* reexport */ typewriter; },
|
3235 |
+
"URLInput": function() { return /* reexport */ url_input; },
|
3236 |
+
"URLInputButton": function() { return /* reexport */ url_input_button; },
|
3237 |
+
"URLPopover": function() { return /* reexport */ url_popover; },
|
3238 |
+
"Warning": function() { return /* reexport */ warning; },
|
3239 |
+
"WritingFlow": function() { return /* reexport */ writing_flow; },
|
3240 |
+
"__experimentalBlockAlignmentMatrixControl": function() { return /* reexport */ block_alignment_matrix_control; },
|
3241 |
+
"__experimentalBlockFullHeightAligmentControl": function() { return /* reexport */ block_full_height_alignment_control; },
|
3242 |
+
"__experimentalBlockPatternSetup": function() { return /* reexport */ block_pattern_setup; },
|
3243 |
+
"__experimentalBlockPatternsList": function() { return /* reexport */ block_patterns_list; },
|
3244 |
+
"__experimentalBlockVariationPicker": function() { return /* reexport */ block_variation_picker; },
|
3245 |
+
"__experimentalBlockVariationTransforms": function() { return /* reexport */ block_variation_transforms; },
|
3246 |
+
"__experimentalBorderRadiusControl": function() { return /* reexport */ BorderRadiusControl; },
|
3247 |
+
"__experimentalColorGradientControl": function() { return /* reexport */ control; },
|
3248 |
+
"__experimentalColorGradientSettingsDropdown": function() { return /* reexport */ ColorGradientSettingsDropdown; },
|
3249 |
+
"__experimentalDateFormatPicker": function() { return /* reexport */ DateFormatPicker; },
|
3250 |
+
"__experimentalDuotoneControl": function() { return /* reexport */ duotone_control; },
|
3251 |
+
"__experimentalFontAppearanceControl": function() { return /* reexport */ FontAppearanceControl; },
|
3252 |
+
"__experimentalFontFamilyControl": function() { return /* reexport */ FontFamilyControl; },
|
3253 |
+
"__experimentalGetBorderClassesAndStyles": function() { return /* reexport */ getBorderClassesAndStyles; },
|
3254 |
+
"__experimentalGetColorClassesAndStyles": function() { return /* reexport */ getColorClassesAndStyles; },
|
3255 |
+
"__experimentalGetElementClassName": function() { return /* reexport */ __experimentalGetElementClassName; },
|
3256 |
+
"__experimentalGetGapCSSValue": function() { return /* reexport */ getGapCSSValue; },
|
3257 |
+
"__experimentalGetGradientClass": function() { return /* reexport */ __experimentalGetGradientClass; },
|
3258 |
+
"__experimentalGetGradientObjectByGradientValue": function() { return /* reexport */ __experimentalGetGradientObjectByGradientValue; },
|
3259 |
+
"__experimentalGetMatchingVariation": function() { return /* reexport */ __experimentalGetMatchingVariation; },
|
3260 |
+
"__experimentalGetSpacingClassesAndStyles": function() { return /* reexport */ getSpacingClassesAndStyles; },
|
3261 |
+
"__experimentalHeightControl": function() { return /* reexport */ HeightControl; },
|
3262 |
+
"__experimentalImageEditingProvider": function() { return /* reexport */ ImageEditingProvider; },
|
3263 |
+
"__experimentalImageEditor": function() { return /* reexport */ ImageEditor; },
|
3264 |
+
"__experimentalImageSizeControl": function() { return /* reexport */ ImageSizeControl; },
|
3265 |
+
"__experimentalImageURLInputUI": function() { return /* reexport */ ImageURLInputUI; },
|
3266 |
+
"__experimentalInspectorPopoverHeader": function() { return /* reexport */ InspectorPopoverHeader; },
|
3267 |
+
"__experimentalLayoutStyle": function() { return /* reexport */ LayoutStyle; },
|
3268 |
+
"__experimentalLetterSpacingControl": function() { return /* reexport */ LetterSpacingControl; },
|
3269 |
+
"__experimentalLibrary": function() { return /* reexport */ library; },
|
3270 |
+
"__experimentalLinkControl": function() { return /* reexport */ link_control; },
|
3271 |
+
"__experimentalLinkControlSearchInput": function() { return /* reexport */ search_input; },
|
3272 |
+
"__experimentalLinkControlSearchItem": function() { return /* reexport */ search_item; },
|
3273 |
+
"__experimentalLinkControlSearchResults": function() { return /* reexport */ LinkControlSearchResults; },
|
3274 |
+
"__experimentalListView": function() { return /* reexport */ components_list_view; },
|
3275 |
+
"__experimentalOffCanvasEditor": function() { return /* reexport */ off_canvas_editor; },
|
3276 |
+
"__experimentalPanelColorGradientSettings": function() { return /* reexport */ panel_color_gradient_settings; },
|
3277 |
+
"__experimentalPreviewOptions": function() { return /* reexport */ PreviewOptions; },
|
3278 |
+
"__experimentalPublishDateTimePicker": function() { return /* reexport */ publish_date_time_picker; },
|
3279 |
+
"__experimentalRecursionProvider": function() { return /* reexport */ RecursionProvider; },
|
3280 |
+
"__experimentalResponsiveBlockControl": function() { return /* reexport */ responsive_block_control; },
|
3281 |
+
"__experimentalSpacingSizesControl": function() { return /* reexport */ SpacingSizesControl; },
|
3282 |
+
"__experimentalTextDecorationControl": function() { return /* reexport */ TextDecorationControl; },
|
3283 |
+
"__experimentalTextTransformControl": function() { return /* reexport */ TextTransformControl; },
|
3284 |
+
"__experimentalUnitControl": function() { return /* reexport */ UnitControl; },
|
3285 |
+
"__experimentalUseBlockOverlayActive": function() { return /* reexport */ useBlockOverlayActive; },
|
3286 |
+
"__experimentalUseBlockPreview": function() { return /* reexport */ useBlockPreview; },
|
3287 |
+
"__experimentalUseBorderProps": function() { return /* reexport */ useBorderProps; },
|
3288 |
+
"__experimentalUseColorProps": function() { return /* reexport */ useColorProps; },
|
3289 |
+
"__experimentalUseCustomSides": function() { return /* reexport */ useCustomSides; },
|
3290 |
+
"__experimentalUseGradient": function() { return /* reexport */ __experimentalUseGradient; },
|
3291 |
+
"__experimentalUseHasRecursion": function() { return /* reexport */ useHasRecursion; },
|
3292 |
+
"__experimentalUseMultipleOriginColorsAndGradients": function() { return /* reexport */ useMultipleOriginColorsAndGradients; },
|
3293 |
+
"__experimentalUseResizeCanvas": function() { return /* reexport */ useResizeCanvas; },
|
3294 |
+
"__experimentaluseLayoutClasses": function() { return /* reexport */ useLayoutClasses; },
|
3295 |
+
"__experimentaluseLayoutStyles": function() { return /* reexport */ useLayoutStyles; },
|
3296 |
+
"__unstableBlockNameContext": function() { return /* reexport */ block_name_context; },
|
3297 |
+
"__unstableBlockSettingsMenuFirstItem": function() { return /* reexport */ block_settings_menu_first_item; },
|
3298 |
+
"__unstableBlockToolbarLastItem": function() { return /* reexport */ block_toolbar_last_item; },
|
3299 |
+
"__unstableDuotoneFilter": function() { return /* reexport */ DuotoneFilter; },
|
3300 |
+
"__unstableDuotoneStylesheet": function() { return /* reexport */ DuotoneStylesheet; },
|
3301 |
+
"__unstableDuotoneUnsetStylesheet": function() { return /* reexport */ DuotoneUnsetStylesheet; },
|
3302 |
+
"__unstableEditorStyles": function() { return /* reexport */ EditorStyles; },
|
3303 |
+
"__unstableGetValuesFromColors": function() { return /* reexport */ getValuesFromColors; },
|
3304 |
+
"__unstableIframe": function() { return /* reexport */ iframe; },
|
3305 |
+
"__unstableInserterMenuExtension": function() { return /* reexport */ inserter_menu_extension; },
|
3306 |
+
"__unstablePresetDuotoneFilter": function() { return /* reexport */ PresetDuotoneFilter; },
|
3307 |
+
"__unstableRichTextInputEvent": function() { return /* reexport */ __unstableRichTextInputEvent; },
|
3308 |
+
"__unstableUseBlockSelectionClearer": function() { return /* reexport */ useBlockSelectionClearer; },
|
3309 |
+
"__unstableUseClipboardHandler": function() { return /* reexport */ useClipboardHandler; },
|
3310 |
+
"__unstableUseMouseMoveTypingReset": function() { return /* reexport */ useMouseMoveTypingReset; },
|
3311 |
+
"__unstableUseTypewriter": function() { return /* reexport */ useTypewriter; },
|
3312 |
+
"__unstableUseTypingObserver": function() { return /* reexport */ useTypingObserver; },
|
3313 |
+
"createCustomColorsHOC": function() { return /* reexport */ createCustomColorsHOC; },
|
3314 |
+
"getColorClassName": function() { return /* reexport */ getColorClassName; },
|
3315 |
+
"getColorObjectByAttributeValues": function() { return /* reexport */ getColorObjectByAttributeValues; },
|
3316 |
+
"getColorObjectByColorValue": function() { return /* reexport */ getColorObjectByColorValue; },
|
3317 |
+
"getComputedFluidTypographyValue": function() { return /* reexport */ getComputedFluidTypographyValue; },
|
3318 |
+
"getFontSize": function() { return /* reexport */ getFontSize; },
|
3319 |
+
"getFontSizeClass": function() { return /* reexport */ getFontSizeClass; },
|
3320 |
+
"getFontSizeObjectByValue": function() { return /* reexport */ getFontSizeObjectByValue; },
|
3321 |
+
"getGradientSlugByValue": function() { return /* reexport */ getGradientSlugByValue; },
|
3322 |
+
"getGradientValueBySlug": function() { return /* reexport */ getGradientValueBySlug; },
|
3323 |
+
"getPxFromCssUnit": function() { return /* reexport */ parse_css_unit_to_px; },
|
3324 |
+
"getTypographyClassesAndStyles": function() { return /* reexport */ getTypographyClassesAndStyles; },
|
3325 |
+
"store": function() { return /* reexport */ store; },
|
3326 |
+
"storeConfig": function() { return /* reexport */ storeConfig; },
|
3327 |
+
"transformStyles": function() { return /* reexport */ transform_styles; },
|
3328 |
+
"useBlockDisplayInformation": function() { return /* reexport */ useBlockDisplayInformation; },
|
3329 |
+
"useBlockEditContext": function() { return /* reexport */ useBlockEditContext; },
|
3330 |
+
"useBlockProps": function() { return /* reexport */ useBlockProps; },
|
3331 |
+
"useCachedTruthy": function() { return /* reexport */ useCachedTruthy; },
|
3332 |
+
"useInnerBlocksProps": function() { return /* reexport */ useInnerBlocksProps; },
|
3333 |
+
"useSetting": function() { return /* reexport */ useSetting; },
|
3334 |
+
"withColorContext": function() { return /* reexport */ with_color_context; },
|
3335 |
+
"withColors": function() { return /* reexport */ withColors; },
|
3336 |
+
"withFontSizes": function() { return /* reexport */ with_font_sizes; }
|
3337 |
});
|
3338 |
|
3339 |
// NAMESPACE OBJECT: ./packages/block-editor/build-module/store/selectors.js
|
3340 |
var selectors_namespaceObject = {};
|
3341 |
__webpack_require__.r(selectors_namespaceObject);
|
3342 |
__webpack_require__.d(selectors_namespaceObject, {
|
3343 |
+
"__experimentalGetActiveBlockIdByBlockNames": function() { return __experimentalGetActiveBlockIdByBlockNames; },
|
3344 |
+
"__experimentalGetAllowedBlocks": function() { return __experimentalGetAllowedBlocks; },
|
3345 |
+
"__experimentalGetAllowedPatterns": function() { return __experimentalGetAllowedPatterns; },
|
3346 |
+
"__experimentalGetBlockListSettingsForBlocks": function() { return __experimentalGetBlockListSettingsForBlocks; },
|
3347 |
+
"__experimentalGetDirectInsertBlock": function() { return __experimentalGetDirectInsertBlock; },
|
3348 |
+
"__experimentalGetGlobalBlocksByName": function() { return __experimentalGetGlobalBlocksByName; },
|
3349 |
+
"__experimentalGetLastBlockAttributeChanges": function() { return __experimentalGetLastBlockAttributeChanges; },
|
3350 |
+
"__experimentalGetParsedPattern": function() { return __experimentalGetParsedPattern; },
|
3351 |
+
"__experimentalGetPatternTransformItems": function() { return __experimentalGetPatternTransformItems; },
|
3352 |
+
"__experimentalGetPatternsByBlockTypes": function() { return __experimentalGetPatternsByBlockTypes; },
|
3353 |
+
"__experimentalGetReusableBlockTitle": function() { return __experimentalGetReusableBlockTitle; },
|
3354 |
+
"__experimentalIsBlockInterfaceHidden": function() { return __experimentalIsBlockInterfaceHidden; },
|
3355 |
+
"__unstableGetBlockWithoutInnerBlocks": function() { return __unstableGetBlockWithoutInnerBlocks; },
|
3356 |
+
"__unstableGetClientIdWithClientIdsTree": function() { return __unstableGetClientIdWithClientIdsTree; },
|
3357 |
+
"__unstableGetClientIdsTree": function() { return __unstableGetClientIdsTree; },
|
3358 |
+
"__unstableGetContentLockingParent": function() { return __unstableGetContentLockingParent; },
|
3359 |
+
"__unstableGetEditorMode": function() { return __unstableGetEditorMode; },
|
3360 |
+
"__unstableGetSelectedBlocksWithPartialSelection": function() { return __unstableGetSelectedBlocksWithPartialSelection; },
|
3361 |
+
"__unstableGetTemporarilyEditingAsBlocks": function() { return __unstableGetTemporarilyEditingAsBlocks; },
|
3362 |
+
"__unstableGetVisibleBlocks": function() { return __unstableGetVisibleBlocks; },
|
3363 |
+
"__unstableHasActiveBlockOverlayActive": function() { return __unstableHasActiveBlockOverlayActive; },
|
3364 |
+
"__unstableIsFullySelected": function() { return __unstableIsFullySelected; },
|
3365 |
+
"__unstableIsLastBlockChangeIgnored": function() { return __unstableIsLastBlockChangeIgnored; },
|
3366 |
+
"__unstableIsSelectionCollapsed": function() { return __unstableIsSelectionCollapsed; },
|
3367 |
+
"__unstableIsSelectionMergeable": function() { return __unstableIsSelectionMergeable; },
|
3368 |
+
"__unstableIsWithinBlockOverlay": function() { return __unstableIsWithinBlockOverlay; },
|
3369 |
+
"__unstableSelectionHasUnmergeableBlock": function() { return __unstableSelectionHasUnmergeableBlock; },
|
3370 |
+
"areInnerBlocksControlled": function() { return areInnerBlocksControlled; },
|
3371 |
+
"canEditBlock": function() { return canEditBlock; },
|
3372 |
+
"canInsertBlockType": function() { return canInsertBlockType; },
|
3373 |
+
"canInsertBlocks": function() { return canInsertBlocks; },
|
3374 |
+
"canLockBlockType": function() { return canLockBlockType; },
|
3375 |
+
"canMoveBlock": function() { return canMoveBlock; },
|
3376 |
+
"canMoveBlocks": function() { return canMoveBlocks; },
|
3377 |
+
"canRemoveBlock": function() { return canRemoveBlock; },
|
3378 |
+
"canRemoveBlocks": function() { return canRemoveBlocks; },
|
3379 |
+
"didAutomaticChange": function() { return didAutomaticChange; },
|
3380 |
+
"getAdjacentBlockClientId": function() { return getAdjacentBlockClientId; },
|
3381 |
+
"getBlock": function() { return getBlock; },
|
3382 |
+
"getBlockAttributes": function() { return getBlockAttributes; },
|
3383 |
+
"getBlockCount": function() { return getBlockCount; },
|
3384 |
+
"getBlockHierarchyRootClientId": function() { return getBlockHierarchyRootClientId; },
|
3385 |
+
"getBlockIndex": function() { return getBlockIndex; },
|
3386 |
+
"getBlockInsertionPoint": function() { return getBlockInsertionPoint; },
|
3387 |
+
"getBlockListSettings": function() { return getBlockListSettings; },
|
3388 |
+
"getBlockMode": function() { return getBlockMode; },
|
3389 |
+
"getBlockName": function() { return getBlockName; },
|
3390 |
+
"getBlockOrder": function() { return getBlockOrder; },
|
3391 |
+
"getBlockParents": function() { return getBlockParents; },
|
3392 |
+
"getBlockParentsByBlockName": function() { return getBlockParentsByBlockName; },
|
3393 |
+
"getBlockRootClientId": function() { return getBlockRootClientId; },
|
3394 |
+
"getBlockSelectionEnd": function() { return getBlockSelectionEnd; },
|
3395 |
+
"getBlockSelectionStart": function() { return getBlockSelectionStart; },
|
3396 |
+
"getBlockTransformItems": function() { return getBlockTransformItems; },
|
3397 |
+
"getBlocks": function() { return getBlocks; },
|
3398 |
+
"getBlocksByClientId": function() { return getBlocksByClientId; },
|
3399 |
+
"getClientIdsOfDescendants": function() { return getClientIdsOfDescendants; },
|
3400 |
+
"getClientIdsWithDescendants": function() { return getClientIdsWithDescendants; },
|
3401 |
+
"getDraggedBlockClientIds": function() { return getDraggedBlockClientIds; },
|
3402 |
+
"getFirstMultiSelectedBlockClientId": function() { return getFirstMultiSelectedBlockClientId; },
|
3403 |
+
"getGlobalBlockCount": function() { return getGlobalBlockCount; },
|
3404 |
+
"getInserterItems": function() { return getInserterItems; },
|
3405 |
+
"getLastMultiSelectedBlockClientId": function() { return getLastMultiSelectedBlockClientId; },
|
3406 |
+
"getLowestCommonAncestorWithSelectedBlock": function() { return getLowestCommonAncestorWithSelectedBlock; },
|
3407 |
+
"getMultiSelectedBlockClientIds": function() { return getMultiSelectedBlockClientIds; },
|
3408 |
+
"getMultiSelectedBlocks": function() { return getMultiSelectedBlocks; },
|
3409 |
+
"getMultiSelectedBlocksEndClientId": function() { return getMultiSelectedBlocksEndClientId; },
|
3410 |
+
"getMultiSelectedBlocksStartClientId": function() { return getMultiSelectedBlocksStartClientId; },
|
3411 |
+
"getNextBlockClientId": function() { return getNextBlockClientId; },
|
3412 |
+
"getPreviousBlockClientId": function() { return getPreviousBlockClientId; },
|
3413 |
+
"getSelectedBlock": function() { return getSelectedBlock; },
|
3414 |
+
"getSelectedBlockClientId": function() { return getSelectedBlockClientId; },
|
3415 |
+
"getSelectedBlockClientIds": function() { return getSelectedBlockClientIds; },
|
3416 |
+
"getSelectedBlockCount": function() { return getSelectedBlockCount; },
|
3417 |
+
"getSelectedBlocksInitialCaretPosition": function() { return getSelectedBlocksInitialCaretPosition; },
|
3418 |
+
"getSelectionEnd": function() { return getSelectionEnd; },
|
3419 |
+
"getSelectionStart": function() { return getSelectionStart; },
|
3420 |
+
"getSettings": function() { return getSettings; },
|
3421 |
+
"getTemplate": function() { return getTemplate; },
|
3422 |
+
"getTemplateLock": function() { return getTemplateLock; },
|
3423 |
+
"hasBlockMovingClientId": function() { return selectors_hasBlockMovingClientId; },
|
3424 |
+
"hasInserterItems": function() { return hasInserterItems; },
|
3425 |
+
"hasMultiSelection": function() { return hasMultiSelection; },
|
3426 |
+
"hasSelectedBlock": function() { return hasSelectedBlock; },
|
3427 |
+
"hasSelectedInnerBlock": function() { return hasSelectedInnerBlock; },
|
3428 |
+
"isAncestorBeingDragged": function() { return isAncestorBeingDragged; },
|
3429 |
+
"isAncestorMultiSelected": function() { return isAncestorMultiSelected; },
|
3430 |
+
"isBlockBeingDragged": function() { return isBlockBeingDragged; },
|
3431 |
+
"isBlockHighlighted": function() { return isBlockHighlighted; },
|
3432 |
+
"isBlockInsertionPointVisible": function() { return isBlockInsertionPointVisible; },
|
3433 |
+
"isBlockMultiSelected": function() { return isBlockMultiSelected; },
|
3434 |
+
"isBlockSelected": function() { return isBlockSelected; },
|
3435 |
+
"isBlockValid": function() { return isBlockValid; },
|
3436 |
+
"isBlockVisible": function() { return isBlockVisible; },
|
3437 |
+
"isBlockWithinSelection": function() { return isBlockWithinSelection; },
|
3438 |
+
"isCaretWithinFormattedText": function() { return isCaretWithinFormattedText; },
|
3439 |
+
"isDraggingBlocks": function() { return isDraggingBlocks; },
|
3440 |
+
"isFirstMultiSelectedBlock": function() { return isFirstMultiSelectedBlock; },
|
3441 |
+
"isLastBlockChangePersistent": function() { return isLastBlockChangePersistent; },
|
3442 |
+
"isMultiSelecting": function() { return selectors_isMultiSelecting; },
|
3443 |
+
"isNavigationMode": function() { return isNavigationMode; },
|
3444 |
+
"isSelectionEnabled": function() { return selectors_isSelectionEnabled; },
|
3445 |
+
"isTyping": function() { return selectors_isTyping; },
|
3446 |
+
"isValidTemplate": function() { return isValidTemplate; },
|
3447 |
+
"wasBlockJustInserted": function() { return wasBlockJustInserted; }
|
3448 |
});
|
3449 |
|
3450 |
// NAMESPACE OBJECT: ./packages/block-editor/build-module/store/actions.js
|
3451 |
var actions_namespaceObject = {};
|
3452 |
__webpack_require__.r(actions_namespaceObject);
|
3453 |
__webpack_require__.d(actions_namespaceObject, {
|
3454 |
+
"__experimentalHideBlockInterface": function() { return __experimentalHideBlockInterface; },
|
3455 |
+
"__experimentalShowBlockInterface": function() { return __experimentalShowBlockInterface; },
|
3456 |
+
"__unstableDeleteSelection": function() { return __unstableDeleteSelection; },
|
3457 |
+
"__unstableExpandSelection": function() { return __unstableExpandSelection; },
|
3458 |
+
"__unstableMarkAutomaticChange": function() { return __unstableMarkAutomaticChange; },
|
3459 |
+
"__unstableMarkLastChangeAsPersistent": function() { return __unstableMarkLastChangeAsPersistent; },
|
3460 |
+
"__unstableMarkNextChangeAsNotPersistent": function() { return __unstableMarkNextChangeAsNotPersistent; },
|
3461 |
+
"__unstableSaveReusableBlock": function() { return __unstableSaveReusableBlock; },
|
3462 |
+
"__unstableSetEditorMode": function() { return __unstableSetEditorMode; },
|
3463 |
+
"__unstableSetTemporarilyEditingAsBlocks": function() { return __unstableSetTemporarilyEditingAsBlocks; },
|
3464 |
+
"__unstableSplitSelection": function() { return __unstableSplitSelection; },
|
3465 |
+
"clearSelectedBlock": function() { return clearSelectedBlock; },
|
3466 |
+
"duplicateBlocks": function() { return duplicateBlocks; },
|
3467 |
+
"enterFormattedText": function() { return enterFormattedText; },
|
3468 |
+
"exitFormattedText": function() { return exitFormattedText; },
|
3469 |
+
"flashBlock": function() { return flashBlock; },
|
3470 |
+
"hideInsertionPoint": function() { return hideInsertionPoint; },
|
3471 |
+
"insertAfterBlock": function() { return insertAfterBlock; },
|
3472 |
+
"insertBeforeBlock": function() { return insertBeforeBlock; },
|
3473 |
+
"insertBlock": function() { return insertBlock; },
|
3474 |
+
"insertBlocks": function() { return insertBlocks; },
|
3475 |
+
"insertDefaultBlock": function() { return insertDefaultBlock; },
|
3476 |
+
"mergeBlocks": function() { return mergeBlocks; },
|
3477 |
+
"moveBlockToPosition": function() { return moveBlockToPosition; },
|
3478 |
+
"moveBlocksDown": function() { return moveBlocksDown; },
|
3479 |
+
"moveBlocksToPosition": function() { return moveBlocksToPosition; },
|
3480 |
+
"moveBlocksUp": function() { return moveBlocksUp; },
|
3481 |
+
"multiSelect": function() { return multiSelect; },
|
3482 |
+
"receiveBlocks": function() { return receiveBlocks; },
|
3483 |
+
"removeBlock": function() { return removeBlock; },
|
3484 |
+
"removeBlocks": function() { return removeBlocks; },
|
3485 |
+
"replaceBlock": function() { return replaceBlock; },
|
3486 |
+
"replaceBlocks": function() { return replaceBlocks; },
|
3487 |
+
"replaceInnerBlocks": function() { return replaceInnerBlocks; },
|
3488 |
+
"resetBlocks": function() { return resetBlocks; },
|
3489 |
+
"resetSelection": function() { return resetSelection; },
|
3490 |
+
"selectBlock": function() { return selectBlock; },
|
3491 |
+
"selectNextBlock": function() { return selectNextBlock; },
|
3492 |
+
"selectPreviousBlock": function() { return selectPreviousBlock; },
|
3493 |
+
"selectionChange": function() { return selectionChange; },
|
3494 |
+
"setBlockMovingClientId": function() { return setBlockMovingClientId; },
|
3495 |
+
"setBlockVisibility": function() { return setBlockVisibility; },
|
3496 |
+
"setHasControlledInnerBlocks": function() { return setHasControlledInnerBlocks; },
|
3497 |
+
"setNavigationMode": function() { return setNavigationMode; },
|
3498 |
+
"setTemplateValidity": function() { return setTemplateValidity; },
|
3499 |
+
"showInsertionPoint": function() { return showInsertionPoint; },
|
3500 |
+
"startDraggingBlocks": function() { return startDraggingBlocks; },
|
3501 |
+
"startMultiSelect": function() { return startMultiSelect; },
|
3502 |
+
"startTyping": function() { return startTyping; },
|
3503 |
+
"stopDraggingBlocks": function() { return stopDraggingBlocks; },
|
3504 |
+
"stopMultiSelect": function() { return stopMultiSelect; },
|
3505 |
+
"stopTyping": function() { return stopTyping; },
|
3506 |
+
"synchronizeTemplate": function() { return synchronizeTemplate; },
|
3507 |
+
"toggleBlockHighlight": function() { return toggleBlockHighlight; },
|
3508 |
+
"toggleBlockMode": function() { return toggleBlockMode; },
|
3509 |
+
"toggleSelection": function() { return toggleSelection; },
|
3510 |
+
"updateBlock": function() { return updateBlock; },
|
3511 |
+
"updateBlockAttributes": function() { return updateBlockAttributes; },
|
3512 |
+
"updateBlockListSettings": function() { return updateBlockListSettings; },
|
3513 |
+
"updateSettings": function() { return updateSettings; },
|
3514 |
+
"validateBlocksToTemplate": function() { return validateBlocksToTemplate; }
|
3515 |
});
|
3516 |
|
3517 |
;// CONCATENATED MODULE: external ["wp","blocks"]
|
3518 |
+
var external_wp_blocks_namespaceObject = window["wp"]["blocks"];
|
3519 |
;// CONCATENATED MODULE: external ["wp","hooks"]
|
3520 |
+
var external_wp_hooks_namespaceObject = window["wp"]["hooks"];
|
3521 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/compat.js
|
3522 |
/**
|
3523 |
* WordPress dependencies
|
3558 |
return _extends.apply(this, arguments);
|
3559 |
}
|
3560 |
;// CONCATENATED MODULE: external ["wp","element"]
|
3561 |
+
var external_wp_element_namespaceObject = window["wp"]["element"];
|
3562 |
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
3563 |
var classnames = __webpack_require__(4403);
|
3564 |
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
3565 |
;// CONCATENATED MODULE: external ["wp","compose"]
|
3566 |
+
var external_wp_compose_namespaceObject = window["wp"]["compose"];
|
3567 |
;// CONCATENATED MODULE: external ["wp","data"]
|
3568 |
+
var external_wp_data_namespaceObject = window["wp"]["data"];
|
3569 |
;// CONCATENATED MODULE: external "lodash"
|
3570 |
+
var external_lodash_namespaceObject = window["lodash"];
|
3571 |
;// CONCATENATED MODULE: external ["wp","components"]
|
3572 |
+
var external_wp_components_namespaceObject = window["wp"]["components"];
|
3573 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/groups.js
|
3574 |
/**
|
3575 |
* WordPress dependencies
|
3587 |
other: BlockControlsOther,
|
3588 |
parent: BlockControlsParent
|
3589 |
};
|
3590 |
+
/* harmony default export */ var block_controls_groups = (groups);
|
3591 |
|
3592 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
3593 |
+
var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
3594 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/defaults.js
|
3595 |
/**
|
3596 |
* WordPress dependencies
|
3948 |
function getFlattenedBlockAttributes(blocks) {
|
3949 |
return flattenBlocks(blocks, block => block.attributes);
|
3950 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3951 |
/**
|
3952 |
* Returns true if the two object arguments have the same keys, or false
|
3953 |
* otherwise.
|
3995 |
|
3996 |
for (const block of flattenedBlocks) {
|
3997 |
result[block.clientId] = Object.assign(result[block.clientId], { ...state.byClientId[block.clientId],
|
3998 |
+
attributes: state.attributes.get(block.clientId),
|
3999 |
innerBlocks: block.innerBlocks.map(subBlock => result[subBlock.clientId])
|
4000 |
});
|
4001 |
}
|
4083 |
newState.tree = updateParentInnerBlocksInTree(newState, { ...newState.tree,
|
4084 |
[action.clientId]: { ...newState.tree[action.clientId],
|
4085 |
...newState.byClientId[action.clientId],
|
4086 |
+
attributes: newState.attributes.get(action.clientId)
|
4087 |
}
|
4088 |
}, [action.clientId], false);
|
4089 |
break;
|
4092 |
{
|
4093 |
const newSubTree = action.clientIds.reduce((result, clientId) => {
|
4094 |
result[clientId] = { ...newState.tree[clientId],
|
4095 |
+
attributes: newState.attributes.get(clientId)
|
4096 |
};
|
4097 |
return result;
|
4098 |
}, {});
|
4164 |
|
4165 |
case 'SAVE_REUSABLE_BLOCK_SUCCESS':
|
4166 |
{
|
4167 |
+
const updatedBlockUids = [];
|
4168 |
+
newState.attributes.forEach((attributes, clientId) => {
|
4169 |
+
if (newState.byClientId[clientId].name === 'core/block' && attributes.ref === action.updatedId) {
|
4170 |
+
updatedBlockUids.push(clientId);
|
4171 |
+
}
|
|
|
4172 |
});
|
4173 |
newState.tree = updateParentInnerBlocksInTree(newState, { ...newState.tree,
|
4174 |
...updatedBlockUids.reduce((result, clientId) => {
|
4175 |
result[clientId] = { ...newState.byClientId[clientId],
|
4176 |
+
attributes: newState.attributes.get(clientId),
|
4177 |
innerBlocks: newState.tree[clientId].innerBlocks
|
4178 |
};
|
4179 |
return result;
|
4325 |
if (action.type === 'RESET_BLOCKS') {
|
4326 |
const newState = { ...state,
|
4327 |
byClientId: getFlattenedBlocksWithoutAttributes(action.blocks),
|
4328 |
+
attributes: new Map(Object.entries(getFlattenedBlockAttributes(action.blocks))),
|
4329 |
order: mapBlockOrder(action.blocks),
|
4330 |
parents: mapBlockParents(action.blocks),
|
4331 |
controlledInnerBlocks: {}
|
4456 |
|
4457 |
state = { ...state
|
4458 |
};
|
4459 |
+
state.attributes = new Map(state.attributes);
|
4460 |
+
state.attributes.forEach((attributes, clientId) => {
|
4461 |
const {
|
4462 |
name
|
4463 |
} = state.byClientId[clientId];
|
4464 |
|
4465 |
if (name === 'core/block' && attributes.ref === id) {
|
4466 |
+
state.attributes.set(clientId, { ...attributes,
|
4467 |
ref: updatedId
|
4468 |
+
});
|
4469 |
}
|
|
|
|
|
4470 |
});
|
4471 |
}
|
4472 |
|
4556 |
},
|
4557 |
|
4558 |
attributes() {
|
4559 |
+
let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Map();
|
4560 |
let action = arguments.length > 1 ? arguments[1] : undefined;
|
4561 |
|
4562 |
switch (action.type) {
|
4563 |
case 'RECEIVE_BLOCKS':
|
4564 |
case 'INSERT_BLOCKS':
|
4565 |
+
{
|
4566 |
+
const newState = new Map(state);
|
4567 |
+
Object.entries(getFlattenedBlockAttributes(action.blocks)).forEach(_ref => {
|
4568 |
+
let [key, value] = _ref;
|
4569 |
+
newState.set(key, value);
|
4570 |
+
});
|
4571 |
+
return newState;
|
4572 |
+
}
|
4573 |
|
4574 |
case 'UPDATE_BLOCK':
|
4575 |
+
{
|
4576 |
+
// Ignore updates if block isn't known or there are no attribute changes.
|
4577 |
+
if (!state.get(action.clientId) || !action.updates.attributes) {
|
4578 |
+
return state;
|
4579 |
+
}
|
4580 |
|
4581 |
+
const newState = new Map(state);
|
4582 |
+
newState.set(action.clientId, { ...state.get(action.clientId),
|
4583 |
...action.updates.attributes
|
4584 |
+
});
|
4585 |
+
return newState;
|
4586 |
+
}
|
4587 |
|
4588 |
case 'UPDATE_BLOCK_ATTRIBUTES':
|
4589 |
{
|
4590 |
// Avoid a state change if none of the block IDs are known.
|
4591 |
+
if (action.clientIds.every(id => !state.get(id))) {
|
4592 |
return state;
|
4593 |
}
|
4594 |
|
4595 |
+
let hasChange = false;
|
4596 |
+
const newState = new Map(state);
|
4597 |
+
|
4598 |
+
for (const clientId of action.clientIds) {
|
4599 |
var _action$attributes;
|
4600 |
|
4601 |
+
const updatedAttributeEntries = Object.entries(action.uniqueByBlock ? action.attributes[clientId] : (_action$attributes = action.attributes) !== null && _action$attributes !== void 0 ? _action$attributes : {});
|
|
|
|
|
4602 |
|
4603 |
+
if (updatedAttributeEntries.length === 0) {
|
4604 |
+
continue;
|
4605 |
+
}
|
|
|
|
|
4606 |
|
4607 |
+
let hasUpdatedAttributes = false;
|
4608 |
+
const existingAttributes = state.get(clientId);
|
4609 |
+
const newAttributes = {};
|
4610 |
+
updatedAttributeEntries.forEach(_ref2 => {
|
4611 |
+
let [key, value] = _ref2;
|
4612 |
|
4613 |
+
if (existingAttributes[key] !== value) {
|
4614 |
+
hasUpdatedAttributes = true;
|
4615 |
+
newAttributes[key] = value;
|
4616 |
+
}
|
4617 |
+
});
|
4618 |
+
hasChange = hasChange || hasUpdatedAttributes;
|
4619 |
+
|
4620 |
+
if (hasUpdatedAttributes) {
|
4621 |
+
newState.set(clientId, { ...existingAttributes,
|
4622 |
+
...newAttributes
|
4623 |
+
});
|
4624 |
+
}
|
4625 |
}
|
4626 |
|
4627 |
+
return hasChange ? newState : state;
|
|
|
|
|
4628 |
}
|
4629 |
|
4630 |
case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN':
|
4631 |
+
{
|
4632 |
+
if (!action.blocks) {
|
4633 |
+
return state;
|
4634 |
+
}
|
4635 |
|
4636 |
+
const newState = new Map(state);
|
4637 |
+
action.replacedClientIds.forEach(clientId => {
|
4638 |
+
newState.delete(clientId);
|
4639 |
+
});
|
4640 |
+
Object.entries(getFlattenedBlockAttributes(action.blocks)).forEach(_ref3 => {
|
4641 |
+
let [key, value] = _ref3;
|
4642 |
+
newState.set(key, value);
|
4643 |
+
});
|
4644 |
+
return newState;
|
4645 |
+
}
|
4646 |
|
4647 |
case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN':
|
4648 |
+
{
|
4649 |
+
const newState = new Map(state);
|
4650 |
+
action.removedClientIds.forEach(clientId => {
|
4651 |
+
newState.delete(clientId);
|
4652 |
+
});
|
4653 |
+
return newState;
|
4654 |
+
}
|
4655 |
}
|
4656 |
|
4657 |
return state;
|
5589 |
|
5590 |
return state;
|
5591 |
}
|
5592 |
+
/* harmony default export */ var reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
|
5593 |
blocks,
|
5594 |
isTyping,
|
5595 |
isBlockInterfaceHidden,
|
5913 |
}
|
5914 |
|
5915 |
;// CONCATENATED MODULE: external ["wp","primitives"]
|
5916 |
+
var external_wp_primitives_namespaceObject = window["wp"]["primitives"];
|
5917 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/symbol.js
|
5918 |
|
5919 |
|
5927 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
5928 |
d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
|
5929 |
}));
|
5930 |
+
/* harmony default export */ var library_symbol = (symbol);
|
5931 |
|
5932 |
;// CONCATENATED MODULE: external ["wp","richText"]
|
5933 |
+
var external_wp_richText_namespaceObject = window["wp"]["richText"];
|
5934 |
;// CONCATENATED MODULE: external ["wp","deprecated"]
|
5935 |
+
var external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
|
5936 |
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
|
5937 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/utils.js
|
5938 |
/**
|
6018 |
const socialLinkName = 'core/social-link';
|
6019 |
|
6020 |
if (external_wp_element_namespaceObject.Platform.OS !== 'web' && (block === null || block === void 0 ? void 0 : block.name) === socialLinkName) {
|
6021 |
+
const attributes = state.blocks.attributes.get(clientId);
|
6022 |
const {
|
6023 |
service
|
6024 |
+
} = attributes !== null && attributes !== void 0 ? attributes : {};
|
6025 |
return service ? `${socialLinkName}-${service}` : socialLinkName;
|
6026 |
}
|
6027 |
|
6057 |
return null;
|
6058 |
}
|
6059 |
|
6060 |
+
return state.blocks.attributes.get(clientId);
|
6061 |
}
|
6062 |
/**
|
6063 |
* Returns a block given its client ID. This is a parsed copy of the block,
|
6100 |
return { ...block,
|
6101 |
attributes: getBlockAttributes(state, clientId)
|
6102 |
};
|
6103 |
+
}, (state, clientId) => [state.blocks.byClientId[clientId], state.blocks.attributes.get(clientId)]);
|
6104 |
/**
|
6105 |
* Returns all block objects for the current post being edited as an array in
|
6106 |
* the order they appear in the post. Note that this will exclude child blocks
|
6426 |
const getBlockParentsByBlockName = rememo(function (state, clientId, blockName) {
|
6427 |
let ascending = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
6428 |
const parents = getBlockParents(state, clientId, ascending);
|
6429 |
+
return (0,external_lodash_namespaceObject.map)((0,external_lodash_namespaceObject.map)(parents, id => ({
|
6430 |
id,
|
6431 |
name: getBlockName(state, id)
|
6432 |
+
})).filter(_ref => {
|
6433 |
let {
|
6434 |
name
|
6435 |
} = _ref;
|
7958 |
return;
|
7959 |
}
|
7960 |
|
7961 |
+
return (0,external_wp_blocks_namespaceObject.getBlockTypes)().filter(blockType => canIncludeBlockTypeInInserter(state, blockType, rootClientId));
|
7962 |
}, (state, rootClientId) => [state.blockListSettings[rootClientId], state.blocks.byClientId, state.settings.allowedBlockTypes, state.settings.templateLock, (0,external_wp_blocks_namespaceObject.getBlockTypes)()]);
|
7963 |
/**
|
7964 |
* Returns the block to be directly inserted by the block appender.
|
8077 |
const __experimentalGetAllowedPatterns = rememo(function (state) {
|
8078 |
let rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
8079 |
const availableParsedPatterns = getAllAllowedPatterns(state);
|
8080 |
+
const patternsAllowed = availableParsedPatterns.filter(_ref11 => {
|
8081 |
let {
|
8082 |
blocks
|
8083 |
} = _ref11;
|
8503 |
}
|
8504 |
|
8505 |
;// CONCATENATED MODULE: external ["wp","a11y"]
|
8506 |
+
var external_wp_a11y_namespaceObject = window["wp"]["a11y"];
|
8507 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/selection.js
|
8508 |
/**
|
8509 |
* A robust way to retain selection position through various
|
10399 |
}, props));
|
10400 |
};
|
10401 |
|
10402 |
+
/* harmony default export */ var block_controls = (BlockControls);
|
10403 |
|
10404 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-left.js
|
10405 |
|
10414 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10415 |
d: "M9 9v6h11V9H9zM4 20h1.5V4H4v16z"
|
10416 |
}));
|
10417 |
+
/* harmony default export */ var justify_left = (justifyLeft);
|
10418 |
|
10419 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-center.js
|
10420 |
|
10429 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10430 |
d: "M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"
|
10431 |
}));
|
10432 |
+
/* harmony default export */ var justify_center = (justifyCenter);
|
10433 |
|
10434 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-right.js
|
10435 |
|
10444 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10445 |
d: "M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"
|
10446 |
}));
|
10447 |
+
/* harmony default export */ var justify_right = (justifyRight);
|
10448 |
|
10449 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-space-between.js
|
10450 |
|
10459 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10460 |
d: "M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"
|
10461 |
}));
|
10462 |
+
/* harmony default export */ var justify_space_between = (justifySpaceBetween);
|
10463 |
|
10464 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-right.js
|
10465 |
|
10474 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10475 |
d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"
|
10476 |
}));
|
10477 |
+
/* harmony default export */ var arrow_right = (arrowRight);
|
10478 |
|
10479 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-down.js
|
10480 |
|
10489 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10490 |
d: "m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"
|
10491 |
}));
|
10492 |
+
/* harmony default export */ var arrow_down = (arrowDown);
|
10493 |
|
10494 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/utils.js
|
10495 |
/**
|
10929 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
10930 |
d: "M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"
|
10931 |
}));
|
10932 |
+
/* harmony default export */ var library_settings = (settings_settings);
|
10933 |
|
10934 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-setting/index.js
|
10935 |
/**
|
11270 |
}), showCustomValueControl && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
|
11271 |
onMouseOver: onMouseOver,
|
11272 |
onMouseOut: onMouseOut,
|
11273 |
+
onFocus: onMouseOver,
|
11274 |
+
onBlur: onMouseOut,
|
11275 |
onChange: newSize => onChange(getNewCustomValue(newSize)),
|
11276 |
value: currentValue,
|
11277 |
units: units,
|
11285 |
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
|
11286 |
onMouseOver: onMouseOver,
|
11287 |
onMouseOut: onMouseOut,
|
11288 |
+
onFocus: onMouseOver,
|
11289 |
+
onBlur: onMouseOut,
|
11290 |
value: customRangeValue,
|
11291 |
min: 0,
|
11292 |
max: (_CUSTOM_VALUE_SETTING = (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[selectedUnit]) === null || _CUSTOM_VALUE_SETTING2 === void 0 ? void 0 : _CUSTOM_VALUE_SETTING2.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
|
11293 |
step: (_CUSTOM_VALUE_SETTING3 = (_CUSTOM_VALUE_SETTING4 = CUSTOM_VALUE_SETTINGS[selectedUnit]) === null || _CUSTOM_VALUE_SETTING4 === void 0 ? void 0 : _CUSTOM_VALUE_SETTING4.steps) !== null && _CUSTOM_VALUE_SETTING3 !== void 0 ? _CUSTOM_VALUE_SETTING3 : 0.1,
|
11294 |
withInputField: false,
|
11295 |
onChange: handleCustomValueSliderChange,
|
11296 |
+
className: "components-spacing-sizes-control__custom-value-range",
|
11297 |
+
__nextHasNoMarginBottom: true
|
11298 |
})), showRangeControl && !showCustomValueControl && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
|
11299 |
onMouseOver: onMouseOver,
|
11300 |
onMouseOut: onMouseOut,
|
11319 |
marks: marks,
|
11320 |
label: ariaLabel,
|
11321 |
hideLabelFromVision: true,
|
11322 |
+
__nextHasNoMarginBottom: true,
|
11323 |
+
onFocus: onMouseOver,
|
11324 |
+
onBlur: onMouseOut
|
11325 |
}), !showRangeControl && !showCustomValueControl && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.CustomSelectControl, {
|
11326 |
className: "components-spacing-sizes-control__custom-select-control",
|
11327 |
value: options.find(option => option.key === currentValue) || '' // passing undefined here causes a downshift controlled/uncontrolled warning
|
11335 |
__nextUnconstrainedWidth: true,
|
11336 |
size: '__unstable-large',
|
11337 |
onMouseOver: onMouseOver,
|
11338 |
+
onMouseOut: onMouseOut,
|
11339 |
+
onFocus: onMouseOver,
|
11340 |
+
onBlur: onMouseOut
|
11341 |
}));
|
11342 |
}
|
11343 |
|
11508 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11509 |
d: "M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"
|
11510 |
}));
|
11511 |
+
/* harmony default export */ var library_link = (link_link);
|
11512 |
|
11513 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/link-off.js
|
11514 |
|
11523 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11524 |
d: "M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"
|
11525 |
}));
|
11526 |
+
/* harmony default export */ var link_off = (linkOff);
|
11527 |
|
11528 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/spacing-sizes-control/linked-button.js
|
11529 |
|
11649 |
}
|
11650 |
|
11651 |
;// CONCATENATED MODULE: external ["wp","warning"]
|
11652 |
+
var external_wp_warning_namespaceObject = window["wp"]["warning"];
|
11653 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/groups.js
|
11654 |
/**
|
11655 |
* WordPress dependencies
|
11661 |
const InspectorControlsColor = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsColor');
|
11662 |
const InspectorControlsDimensions = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsDimensions');
|
11663 |
const InspectorControlsTypography = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsTypography');
|
11664 |
+
const InspectorControlsListView = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsListView');
|
11665 |
const groups_groups = {
|
11666 |
default: InspectorControlsDefault,
|
11667 |
advanced: InspectorControlsAdvanced,
|
11668 |
border: InspectorControlsBorder,
|
11669 |
color: InspectorControlsColor,
|
11670 |
dimensions: InspectorControlsDimensions,
|
11671 |
+
list: InspectorControlsListView,
|
11672 |
typography: InspectorControlsTypography
|
11673 |
};
|
11674 |
+
/* harmony default export */ var inspector_controls_groups = (groups_groups);
|
11675 |
|
11676 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/fill.js
|
11677 |
|
12000 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/inspector-controls/README.md
|
12001 |
*/
|
12002 |
|
12003 |
+
/* harmony default export */ var inspector_controls = (InspectorControls);
|
12004 |
|
12005 |
;// CONCATENATED MODULE: external ["wp","isShallowEqual"]
|
12006 |
+
var external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"];
|
12007 |
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
|
12008 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/use-popover-scroll.js
|
12009 |
/**
|
12044 |
}, [scrollableRef]);
|
12045 |
}
|
12046 |
|
12047 |
+
/* harmony default export */ var use_popover_scroll = (usePopoverScroll);
|
12048 |
|
12049 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/index.js
|
12050 |
|
12175 |
}, children), !__unstableCoverTarget && children);
|
12176 |
}
|
12177 |
|
12178 |
+
/* harmony default export */ var block_popover = ((0,external_wp_element_namespaceObject.forwardRef)(BlockPopover));
|
12179 |
|
12180 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/margin.js
|
12181 |
|
12395 |
}));
|
12396 |
}
|
12397 |
|
12398 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/height-control/index.js
|
12399 |
|
12400 |
|
12401 |
/**
|
12409 |
*/
|
12410 |
|
12411 |
|
12412 |
+
const RANGE_CONTROL_CUSTOM_SETTINGS = {
|
12413 |
+
px: {
|
12414 |
+
max: 1000,
|
12415 |
+
step: 1
|
12416 |
+
},
|
12417 |
+
'%': {
|
12418 |
+
max: 100,
|
12419 |
+
step: 1
|
12420 |
+
},
|
12421 |
+
vw: {
|
12422 |
+
max: 100,
|
12423 |
+
step: 1
|
12424 |
+
},
|
12425 |
+
vh: {
|
12426 |
+
max: 100,
|
12427 |
+
step: 1
|
12428 |
+
},
|
12429 |
+
em: {
|
12430 |
+
max: 50,
|
12431 |
+
step: 0.1
|
12432 |
+
},
|
12433 |
+
rem: {
|
12434 |
+
max: 50,
|
12435 |
+
step: 0.1
|
12436 |
+
}
|
12437 |
+
};
|
12438 |
+
function HeightControl(_ref) {
|
12439 |
+
var _units$, _RANGE_CONTROL_CUSTOM, _RANGE_CONTROL_CUSTOM2, _RANGE_CONTROL_CUSTOM3, _RANGE_CONTROL_CUSTOM4;
|
12440 |
+
|
12441 |
+
let {
|
12442 |
+
onChange,
|
12443 |
+
label = (0,external_wp_i18n_namespaceObject.__)('Height'),
|
12444 |
+
value
|
12445 |
+
} = _ref;
|
12446 |
+
const customRangeValue = parseFloat(value);
|
12447 |
+
const units = (0,external_wp_components_namespaceObject.__experimentalUseCustomUnits)({
|
12448 |
+
availableUnits: useSetting('spacing.units') || ['%', 'px', 'em', 'rem', 'vh', 'vw']
|
12449 |
+
});
|
12450 |
+
const selectedUnit = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_wp_components_namespaceObject.__experimentalParseQuantityAndUnitFromRawValue)(value), [value])[1] || ((_units$ = units[0]) === null || _units$ === void 0 ? void 0 : _units$.value) || 'px';
|
12451 |
+
|
12452 |
+
const handleSliderChange = next => {
|
12453 |
+
onChange([next, selectedUnit].join(''));
|
12454 |
+
};
|
12455 |
+
|
12456 |
+
const handleUnitChange = newUnit => {
|
12457 |
+
// Attempt to smooth over differences between currentUnit and newUnit.
|
12458 |
+
// This should slightly improve the experience of switching between unit types.
|
12459 |
+
const [currentValue, currentUnit] = (0,external_wp_components_namespaceObject.__experimentalParseQuantityAndUnitFromRawValue)(value);
|
12460 |
+
|
12461 |
+
if (['em', 'rem'].includes(newUnit) && currentUnit === 'px') {
|
12462 |
+
// Convert pixel value to an approximate of the new unit, assuming a root size of 16px.
|
12463 |
+
onChange((currentValue / 16).toFixed(2) + newUnit);
|
12464 |
+
} else if (['em', 'rem'].includes(currentUnit) && newUnit === 'px') {
|
12465 |
+
// Convert to pixel value assuming a root size of 16px.
|
12466 |
+
onChange(Math.round(currentValue * 16) + newUnit);
|
12467 |
+
} else if (['vh', 'vw', '%'].includes(newUnit) && currentValue > 100) {
|
12468 |
+
// When converting to `vh`, `vw`, or `%` units, cap the new value at 100.
|
12469 |
+
onChange(100 + newUnit);
|
12470 |
+
}
|
12471 |
+
};
|
12472 |
+
|
12473 |
+
return (0,external_wp_element_namespaceObject.createElement)("fieldset", {
|
12474 |
+
className: "block-editor-height-control"
|
12475 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
|
12476 |
+
as: "legend"
|
12477 |
+
}, label), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Flex, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, {
|
12478 |
+
isBlock: true
|
12479 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
|
12480 |
+
value: value,
|
12481 |
+
units: units,
|
12482 |
+
onChange: onChange,
|
12483 |
+
onUnitChange: handleUnitChange,
|
12484 |
+
min: 0,
|
12485 |
+
size: '__unstable-large'
|
12486 |
+
})), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, {
|
12487 |
+
isBlock: true
|
12488 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
|
12489 |
+
marginX: 2,
|
12490 |
+
marginBottom: 0
|
12491 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
|
12492 |
+
value: customRangeValue,
|
12493 |
+
min: 0,
|
12494 |
+
max: (_RANGE_CONTROL_CUSTOM = (_RANGE_CONTROL_CUSTOM2 = RANGE_CONTROL_CUSTOM_SETTINGS[selectedUnit]) === null || _RANGE_CONTROL_CUSTOM2 === void 0 ? void 0 : _RANGE_CONTROL_CUSTOM2.max) !== null && _RANGE_CONTROL_CUSTOM !== void 0 ? _RANGE_CONTROL_CUSTOM : 100,
|
12495 |
+
step: (_RANGE_CONTROL_CUSTOM3 = (_RANGE_CONTROL_CUSTOM4 = RANGE_CONTROL_CUSTOM_SETTINGS[selectedUnit]) === null || _RANGE_CONTROL_CUSTOM4 === void 0 ? void 0 : _RANGE_CONTROL_CUSTOM4.step) !== null && _RANGE_CONTROL_CUSTOM3 !== void 0 ? _RANGE_CONTROL_CUSTOM3 : 0.1,
|
12496 |
+
withInputField: false,
|
12497 |
+
onChange: handleSliderChange,
|
12498 |
+
__nextHasNoMarginBottom: true
|
12499 |
+
})))));
|
12500 |
+
}
|
12501 |
+
|
12502 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/min-height.js
|
12503 |
+
|
12504 |
+
|
12505 |
+
/**
|
12506 |
+
* WordPress dependencies
|
12507 |
+
*/
|
12508 |
+
|
12509 |
+
|
12510 |
+
/**
|
12511 |
+
* Internal dependencies
|
12512 |
+
*/
|
12513 |
+
|
12514 |
+
|
12515 |
+
|
12516 |
|
12517 |
|
12518 |
/**
|
12593 |
},
|
12594 |
setAttributes
|
12595 |
} = props;
|
|
|
|
|
|
|
12596 |
|
12597 |
if (useIsMinHeightDisabled(props)) {
|
12598 |
return null;
|
12609 |
});
|
12610 |
};
|
12611 |
|
12612 |
+
return (0,external_wp_element_namespaceObject.createElement)(HeightControl, {
|
12613 |
label: (0,external_wp_i18n_namespaceObject.__)('Min. height'),
|
12614 |
value: style === null || style === void 0 ? void 0 : (_style$dimensions = style.dimensions) === null || _style$dimensions === void 0 ? void 0 : _style$dimensions.minHeight,
|
12615 |
+
onChange: onChange
|
|
|
|
|
|
|
12616 |
});
|
12617 |
}
|
12618 |
|
12826 |
}));
|
12827 |
}
|
12828 |
|
12829 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/child-layout.js
|
12830 |
+
|
12831 |
+
|
12832 |
+
/**
|
12833 |
+
* WordPress dependencies
|
12834 |
+
*/
|
12835 |
+
|
12836 |
+
|
12837 |
+
/**
|
12838 |
+
* Internal dependencies
|
12839 |
+
*/
|
12840 |
+
|
12841 |
+
|
12842 |
+
|
12843 |
+
function helpText(selfStretch) {
|
12844 |
+
switch (selfStretch) {
|
12845 |
+
case 'fill':
|
12846 |
+
return (0,external_wp_i18n_namespaceObject.__)('Stretch to fill available space.');
|
12847 |
+
|
12848 |
+
case 'fixed':
|
12849 |
+
return (0,external_wp_i18n_namespaceObject.__)('Specify a fixed width.');
|
12850 |
+
|
12851 |
+
default:
|
12852 |
+
return (0,external_wp_i18n_namespaceObject.__)('Fit contents.');
|
12853 |
+
}
|
12854 |
+
}
|
12855 |
+
/**
|
12856 |
+
* Inspector controls containing the child layout related configuration.
|
12857 |
+
*
|
12858 |
+
* @param {Object} props Block props.
|
12859 |
+
* @param {Object} props.attributes Block attributes.
|
12860 |
+
* @param {Object} props.setAttributes Function to set block attributes.
|
12861 |
+
* @param {Object} props.__unstableParentLayout
|
12862 |
+
*
|
12863 |
+
* @return {WPElement} child layout edit element.
|
12864 |
+
*/
|
12865 |
+
|
12866 |
+
|
12867 |
+
function ChildLayoutEdit(_ref) {
|
12868 |
+
let {
|
12869 |
+
attributes,
|
12870 |
+
setAttributes,
|
12871 |
+
__unstableParentLayout: parentLayout
|
12872 |
+
} = _ref;
|
12873 |
+
const {
|
12874 |
+
style = {}
|
12875 |
+
} = attributes;
|
12876 |
+
const {
|
12877 |
+
layout: childLayout = {}
|
12878 |
+
} = style;
|
12879 |
+
const {
|
12880 |
+
selfStretch,
|
12881 |
+
flexSize
|
12882 |
+
} = childLayout;
|
12883 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
|
12884 |
+
size: '__unstable-large',
|
12885 |
+
label: childLayoutOrientation(parentLayout),
|
12886 |
+
value: selfStretch || 'fit',
|
12887 |
+
help: helpText(selfStretch),
|
12888 |
+
onChange: value => {
|
12889 |
+
const newFlexSize = value !== 'fixed' ? null : flexSize;
|
12890 |
+
setAttributes({
|
12891 |
+
style: { ...style,
|
12892 |
+
layout: { ...childLayout,
|
12893 |
+
selfStretch: value,
|
12894 |
+
flexSize: newFlexSize
|
12895 |
+
}
|
12896 |
+
}
|
12897 |
+
});
|
12898 |
+
},
|
12899 |
+
isBlock: true
|
12900 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
|
12901 |
+
key: 'fit',
|
12902 |
+
value: 'fit',
|
12903 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Fit')
|
12904 |
+
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
|
12905 |
+
key: 'fill',
|
12906 |
+
value: 'fill',
|
12907 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Fill')
|
12908 |
+
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
|
12909 |
+
key: 'fixed',
|
12910 |
+
value: 'fixed',
|
12911 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Fixed')
|
12912 |
+
})), selfStretch === 'fixed' && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
|
12913 |
+
size: '__unstable-large',
|
12914 |
+
style: {
|
12915 |
+
height: 'auto'
|
12916 |
+
},
|
12917 |
+
onChange: value => {
|
12918 |
+
setAttributes({
|
12919 |
+
style: { ...style,
|
12920 |
+
layout: { ...childLayout,
|
12921 |
+
flexSize: value
|
12922 |
+
}
|
12923 |
+
}
|
12924 |
+
});
|
12925 |
+
},
|
12926 |
+
value: flexSize
|
12927 |
+
}));
|
12928 |
+
}
|
12929 |
+
/**
|
12930 |
+
* Determines if there is child layout support.
|
12931 |
+
*
|
12932 |
+
* @param {Object} props Block Props object.
|
12933 |
+
* @param {Object} props.__unstableParentLayout Parent layout.
|
12934 |
+
*
|
12935 |
+
* @return {boolean} Whether there is support.
|
12936 |
+
*/
|
12937 |
+
|
12938 |
+
function hasChildLayoutSupport(_ref2) {
|
12939 |
+
let {
|
12940 |
+
__unstableParentLayout: parentLayout = {}
|
12941 |
+
} = _ref2;
|
12942 |
+
const {
|
12943 |
+
type: parentLayoutType = 'default',
|
12944 |
+
allowSizingOnChildren = false
|
12945 |
+
} = parentLayout;
|
12946 |
+
const support = parentLayoutType === 'flex' && allowSizingOnChildren;
|
12947 |
+
return support;
|
12948 |
+
}
|
12949 |
+
/**
|
12950 |
+
* Checks if there is a current value in the child layout attributes.
|
12951 |
+
*
|
12952 |
+
* @param {Object} props Block props.
|
12953 |
+
* @return {boolean} Whether or not the block has a child layout value set.
|
12954 |
+
*/
|
12955 |
+
|
12956 |
+
function hasChildLayoutValue(props) {
|
12957 |
+
var _props$attributes$sty;
|
12958 |
+
|
12959 |
+
return ((_props$attributes$sty = props.attributes.style) === null || _props$attributes$sty === void 0 ? void 0 : _props$attributes$sty.layout) !== undefined;
|
12960 |
+
}
|
12961 |
+
/**
|
12962 |
+
* Resets the child layout attribute. This can be used when disabling
|
12963 |
+
* child layout controls for a block via a progressive discovery panel.
|
12964 |
+
*
|
12965 |
+
* @param {Object} props Block props.
|
12966 |
+
* @param {Object} props.attributes Block attributes.
|
12967 |
+
* @param {Object} props.setAttributes Function to set block attributes.
|
12968 |
+
*/
|
12969 |
+
|
12970 |
+
function resetChildLayout(_ref3) {
|
12971 |
+
let {
|
12972 |
+
attributes = {},
|
12973 |
+
setAttributes
|
12974 |
+
} = _ref3;
|
12975 |
+
const {
|
12976 |
+
style
|
12977 |
+
} = attributes;
|
12978 |
+
setAttributes({
|
12979 |
+
style: { ...style,
|
12980 |
+
layout: undefined
|
12981 |
+
}
|
12982 |
+
});
|
12983 |
+
}
|
12984 |
+
/**
|
12985 |
+
* Custom hook that checks if child layout settings have been disabled.
|
12986 |
+
*
|
12987 |
+
* @param {Object} props Block props.
|
12988 |
+
*
|
12989 |
+
* @return {boolean} Whether the child layout setting is disabled.
|
12990 |
+
*/
|
12991 |
+
|
12992 |
+
function useIsChildLayoutDisabled(props) {
|
12993 |
+
const isDisabled = !useSetting('layout');
|
12994 |
+
return !hasChildLayoutSupport(props) || isDisabled;
|
12995 |
+
}
|
12996 |
+
function childLayoutOrientation(parentLayout) {
|
12997 |
+
const {
|
12998 |
+
orientation = 'horizontal'
|
12999 |
+
} = parentLayout;
|
13000 |
+
return orientation === 'horizontal' ? (0,external_wp_i18n_namespaceObject.__)('Width') : (0,external_wp_i18n_namespaceObject.__)('Height');
|
13001 |
+
}
|
13002 |
+
|
13003 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/dimensions.js
|
13004 |
|
13005 |
|
13028 |
|
13029 |
|
13030 |
|
13031 |
+
|
13032 |
const DIMENSIONS_SUPPORT_KEY = 'dimensions';
|
13033 |
const SPACING_SUPPORT_KEY = 'spacing';
|
13034 |
const dimensions_ALL_SIDES = ['top', 'right', 'bottom', 'left'];
|
13073 |
const isPaddingDisabled = useIsPaddingDisabled(props);
|
13074 |
const isMarginDisabled = useIsMarginDisabled(props);
|
13075 |
const isMinHeightDisabled = useIsMinHeightDisabled(props);
|
13076 |
+
const isChildLayoutDisabled = useIsChildLayoutDisabled(props);
|
13077 |
const isDisabled = useIsDimensionsDisabled(props);
|
13078 |
+
const isSupported = hasDimensionsSupport(props);
|
13079 |
const spacingSizes = useSetting('spacing.spacingSizes');
|
13080 |
const paddingMouseOver = useVisualizerMouseOver();
|
13081 |
const marginMouseOver = useVisualizerMouseOver();
|
13102 |
const spacingClassnames = classnames_default()({
|
13103 |
'tools-panel-item-spacing': spacingSizes && spacingSizes.length > 0
|
13104 |
});
|
13105 |
+
const {
|
13106 |
+
__unstableParentLayout: parentLayout
|
13107 |
+
} = props;
|
13108 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(inspector_controls, {
|
13109 |
__experimentalGroup: "dimensions"
|
13110 |
}, !isPaddingDisabled && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
|
13138 |
isShownByDefault: defaultSpacingControls === null || defaultSpacingControls === void 0 ? void 0 : defaultSpacingControls.blockGap,
|
13139 |
panelId: props.clientId
|
13140 |
}, (0,external_wp_element_namespaceObject.createElement)(GapEdit, props)), !isMinHeightDisabled && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
|
|
|
13141 |
hasValue: () => hasMinHeightValue(props),
|
13142 |
label: (0,external_wp_i18n_namespaceObject.__)('Min. height'),
|
13143 |
onDeselect: () => resetMinHeight(props),
|
13144 |
resetAllFilter: createResetAllFilter('minHeight', 'dimensions'),
|
13145 |
isShownByDefault: defaultDimensionsControls === null || defaultDimensionsControls === void 0 ? void 0 : defaultDimensionsControls.minHeight,
|
13146 |
panelId: props.clientId
|
13147 |
+
}, (0,external_wp_element_namespaceObject.createElement)(MinHeightEdit, props)), !isChildLayoutDisabled && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
|
13148 |
+
as: external_wp_components_namespaceObject.__experimentalToolsPanelItem,
|
13149 |
+
spacing: 2,
|
13150 |
+
hasValue: () => hasChildLayoutValue(props),
|
13151 |
+
label: childLayoutOrientation(parentLayout),
|
13152 |
+
onDeselect: () => resetChildLayout(props),
|
13153 |
+
resetAllFilter: createResetAllFilter('selfStretch', 'layout'),
|
13154 |
+
isShownByDefault: false,
|
13155 |
+
panelId: props.clientId
|
13156 |
+
}, (0,external_wp_element_namespaceObject.createElement)(ChildLayoutEdit, props))), !isPaddingDisabled && (0,external_wp_element_namespaceObject.createElement)(PaddingVisualizer, _extends({
|
13157 |
forceShow: paddingMouseOver.isMouseOver
|
13158 |
}, props)), !isMarginDisabled && (0,external_wp_element_namespaceObject.createElement)(MarginVisualizer, _extends({
|
13159 |
forceShow: marginMouseOver.isMouseOver
|
13162 |
/**
|
13163 |
* Determine whether there is dimensions related block support.
|
13164 |
*
|
13165 |
+
* @param {Object} props Block props.
|
13166 |
*
|
13167 |
* @return {boolean} Whether there is support.
|
13168 |
*/
|
13169 |
|
13170 |
+
function hasDimensionsSupport(props) {
|
13171 |
if (external_wp_element_namespaceObject.Platform.OS !== 'web') {
|
13172 |
return false;
|
13173 |
}
|
13174 |
|
13175 |
+
const {
|
13176 |
+
name: blockName
|
13177 |
+
} = props;
|
13178 |
+
return hasGapSupport(blockName) || hasMinHeightSupport(blockName) || hasPaddingSupport(blockName) || hasMarginSupport(blockName) || hasChildLayoutSupport(props);
|
13179 |
}
|
13180 |
/**
|
13181 |
* Determines whether dimensions support has been disabled.
|
13191 |
const minHeightDisabled = useIsMinHeightDisabled(props);
|
13192 |
const paddingDisabled = useIsPaddingDisabled(props);
|
13193 |
const marginDisabled = useIsMarginDisabled(props);
|
13194 |
+
const childLayoutDisabled = useIsChildLayoutDisabled(props);
|
13195 |
+
return gapDisabled && minHeightDisabled && paddingDisabled && marginDisabled && childLayoutDisabled;
|
13196 |
};
|
13197 |
/**
|
13198 |
* Custom hook to retrieve which padding/margin/blockGap is supported
|
13578 |
*/
|
13579 |
|
13580 |
|
13581 |
+
/* harmony default export */ var ui = (BlockVerticalAlignmentUI);
|
13582 |
|
13583 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-vertical-alignment-control/index.js
|
13584 |
|
13683 |
}, extraProps));
|
13684 |
}
|
13685 |
|
13686 |
+
/* harmony default export */ var justify_content_control_ui = (JustifyContentUI);
|
13687 |
|
13688 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/justify-content-control/index.js
|
13689 |
|
13748 |
bottom: 'flex-end'
|
13749 |
};
|
13750 |
const flexWrapOptions = ['wrap', 'nowrap'];
|
13751 |
+
/* harmony default export */ var flex = ({
|
13752 |
name: 'flex',
|
13753 |
label: (0,external_wp_i18n_namespaceObject.__)('Flex'),
|
13754 |
inspectorControls: function FlexLayoutInspectorControls(_ref) {
|
14046 |
|
14047 |
|
14048 |
|
14049 |
+
/* harmony default export */ var flow = ({
|
14050 |
name: 'default',
|
14051 |
label: (0,external_wp_i18n_namespaceObject.__)('Flow'),
|
14052 |
inspectorControls: function DefaultLayoutInspectorControls() {
|
14170 |
});
|
14171 |
}
|
14172 |
|
14173 |
+
/* harmony default export */ var build_module_icon = (Icon);
|
14174 |
|
14175 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-center.js
|
14176 |
|
14185 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
14186 |
d: "M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"
|
14187 |
}));
|
14188 |
+
/* harmony default export */ var position_center = (positionCenter);
|
14189 |
|
14190 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-wide.js
|
14191 |
|
14200 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
14201 |
d: "M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"
|
14202 |
}));
|
14203 |
+
/* harmony default export */ var stretch_wide = (stretchWide);
|
14204 |
|
14205 |
;// CONCATENATED MODULE: external ["wp","styleEngine"]
|
14206 |
+
var external_wp_styleEngine_namespaceObject = window["wp"]["styleEngine"];
|
14207 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/constrained.js
|
14208 |
|
14209 |
|
14222 |
|
14223 |
|
14224 |
|
14225 |
+
/* harmony default export */ var constrained = ({
|
14226 |
name: 'constrained',
|
14227 |
label: (0,external_wp_i18n_namespaceObject.__)('Constrained'),
|
14228 |
inspectorControls: function DefaultLayoutInspectorControls(_ref) {
|
14628 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
14629 |
d: "M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"
|
14630 |
}));
|
14631 |
+
/* harmony default export */ var align_none = (alignNone);
|
14632 |
|
14633 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-left.js
|
14634 |
|
14643 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
14644 |
d: "M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"
|
14645 |
}));
|
14646 |
+
/* harmony default export */ var position_left = (positionLeft);
|
14647 |
|
14648 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-right.js
|
14649 |
|
14658 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
14659 |
d: "M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"
|
14660 |
}));
|
14661 |
+
/* harmony default export */ var position_right = (positionRight);
|
14662 |
|
14663 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-full-width.js
|
14664 |
|
14673 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
14674 |
d: "M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"
|
14675 |
}));
|
14676 |
+
/* harmony default export */ var stretch_full_width = (stretchFullWidth);
|
14677 |
|
14678 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/constants.js
|
14679 |
/**
|
14814 |
return (0,external_wp_element_namespaceObject.createElement)(UIComponent, _extends({}, commonProps, extraProps));
|
14815 |
}
|
14816 |
|
14817 |
+
/* harmony default export */ var block_alignment_control_ui = (BlockAlignmentUI);
|
14818 |
|
14819 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/index.js
|
14820 |
|
15458 |
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName);
|
15459 |
|
15460 |
;// CONCATENATED MODULE: external ["wp","dom"]
|
15461 |
+
var external_wp_dom_namespaceObject = window["wp"]["dom"];
|
15462 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-context/index.js
|
15463 |
|
15464 |
|
15501 |
children: children
|
15502 |
});
|
15503 |
}
|
15504 |
+
/* harmony default export */ var block_context = (block_context_Context);
|
15505 |
|
15506 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/edit.js
|
15507 |
|
15511 |
* External dependencies
|
15512 |
*/
|
15513 |
|
|
|
15514 |
/**
|
15515 |
* WordPress dependencies
|
15516 |
*/
|
15542 |
const blockContext = (0,external_wp_element_namespaceObject.useContext)(block_context); // Assign context values using the block type's declared context needs.
|
15543 |
|
15544 |
const context = (0,external_wp_element_namespaceObject.useMemo)(() => {
|
15545 |
+
return blockType && blockType.usesContext ? Object.fromEntries(Object.entries(blockContext).filter(_ref => {
|
15546 |
+
let [key] = _ref;
|
15547 |
+
return blockType.usesContext.includes(key);
|
15548 |
+
})) : DEFAULT_BLOCK_CONTEXT;
|
15549 |
}, [blockType, blockContext]);
|
15550 |
|
15551 |
if (!blockType) {
|
15571 |
className: className
|
15572 |
}));
|
15573 |
};
|
15574 |
+
/* harmony default export */ var edit = ((0,external_wp_components_namespaceObject.withFilters)('editor.BlockEdit')(Edit));
|
15575 |
|
15576 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/index.js
|
15577 |
|
15630 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
15631 |
d: "M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"
|
15632 |
}));
|
15633 |
+
/* harmony default export */ var more_horizontal = (moreHorizontal);
|
15634 |
|
15635 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/warning/index.js
|
15636 |
|
15690 |
*/
|
15691 |
|
15692 |
|
15693 |
+
/* harmony default export */ var warning = (Warning);
|
15694 |
|
15695 |
// EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
|
15696 |
var character = __webpack_require__(1973);
|
15805 |
}));
|
15806 |
}
|
15807 |
|
15808 |
+
/* harmony default export */ var block_compare = (BlockCompare);
|
15809 |
|
15810 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-invalid-warning.js
|
15811 |
|
15892 |
return (0,external_wp_blocks_namespaceObject.createBlock)(name, attributes, innerBlocks);
|
15893 |
};
|
15894 |
|
15895 |
+
/* harmony default export */ var block_invalid_warning = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)((select, _ref3) => {
|
15896 |
let {
|
15897 |
clientId
|
15898 |
} = _ref3;
|
15941 |
const block_crash_warning_warning = (0,external_wp_element_namespaceObject.createElement)(warning, {
|
15942 |
className: "block-editor-block-list__block-crash-warning"
|
15943 |
}, (0,external_wp_i18n_namespaceObject.__)('This block has encountered an error and cannot be previewed.'));
|
15944 |
+
/* harmony default export */ var block_crash_warning = (() => block_crash_warning_warning);
|
15945 |
|
15946 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-crash-boundary.js
|
15947 |
/**
|
15973 |
|
15974 |
}
|
15975 |
|
15976 |
+
/* harmony default export */ var block_crash_boundary = (BlockCrashBoundary);
|
15977 |
|
15978 |
// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
|
15979 |
var lib = __webpack_require__(773);
|
16045 |
});
|
16046 |
}
|
16047 |
|
16048 |
+
/* harmony default export */ var block_html = (BlockHTML);
|
16049 |
|
16050 |
;// CONCATENATED MODULE: ./node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.js
|
16051 |
let updateQueue = makeQueue();
|
20027 |
|
20028 |
|
20029 |
;// CONCATENATED MODULE: external "ReactDOM"
|
20030 |
+
var external_ReactDOM_namespaceObject = window["ReactDOM"];
|
20031 |
;// CONCATENATED MODULE: ./node_modules/@react-spring/web/dist/react-spring-web.esm.js
|
20032 |
|
20033 |
|
20424 |
return ref;
|
20425 |
}
|
20426 |
|
20427 |
+
/* harmony default export */ var use_moving_animation = (useMovingAnimation);
|
20428 |
|
20429 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/dom.js
|
20430 |
const BLOCK_SELECTOR = '.block-editor-block-list__block';
|
20905 |
}
|
20906 |
|
20907 |
;// CONCATENATED MODULE: external ["wp","keycodes"]
|
20908 |
+
var external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
|
20909 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js
|
20910 |
/**
|
20911 |
* WordPress dependencies
|
21273 |
|
21274 |
|
21275 |
|
21276 |
+
|
21277 |
const BlockListBlockContext = (0,external_wp_element_namespaceObject.createContext)();
|
21278 |
/**
|
21279 |
* Merges wrapper props with special handling for classNames and styles.
|
21365 |
const {
|
21366 |
removeBlock
|
21367 |
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
21368 |
+
const onRemove = (0,external_wp_element_namespaceObject.useCallback)(() => removeBlock(clientId), [clientId]);
|
21369 |
+
const parentLayout = useLayout(); // We wrap the BlockEdit component in a div that hides it when editing in
|
21370 |
// HTML mode. This allows us to render all of the ancillary pieces
|
21371 |
// (InspectorControls, etc.) which are inside `BlockEdit` but not
|
21372 |
// `BlockHTML`, even in HTML mode.
|
21383 |
clientId: clientId,
|
21384 |
isSelectionEnabled: isSelectionEnabled,
|
21385 |
toggleSelection: toggleSelection,
|
21386 |
+
__unstableLayoutClassNames: layoutClassNames,
|
21387 |
+
__unstableParentLayout: parentLayout
|
21388 |
});
|
21389 |
const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(name);
|
21390 |
|
21667 |
|
21668 |
};
|
21669 |
});
|
21670 |
+
/* harmony default export */ var block = ((0,external_wp_compose_namespaceObject.compose)(external_wp_compose_namespaceObject.pure, applyWithSelect, applyWithDispatch, // Block is sometimes not mounted at the right time, causing it be undefined
|
21671 |
// see issue for more info
|
21672 |
// https://github.com/WordPress/gutenberg/issues/17013
|
21673 |
(0,external_wp_compose_namespaceObject.ifCondition)(_ref4 => {
|
21678 |
}), (0,external_wp_components_namespaceObject.withFilters)('editor.BlockListBlock'))(BlockListBlock));
|
21679 |
|
21680 |
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
|
21681 |
+
var external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
|
21682 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/plus.js
|
21683 |
|
21684 |
|
21692 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
21693 |
d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"
|
21694 |
}));
|
21695 |
+
/* harmony default export */ var library_plus = (plus);
|
21696 |
|
21697 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tips.js
|
21698 |
|
21718 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Tip, null, globalTips[randomIndex]);
|
21719 |
}
|
21720 |
|
21721 |
+
/* harmony default export */ var tips = (Tips);
|
21722 |
+
|
21723 |
+
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right.js
|
21724 |
+
|
21725 |
+
|
21726 |
+
/**
|
21727 |
+
* WordPress dependencies
|
21728 |
+
*/
|
21729 |
+
|
21730 |
+
const chevronRight = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
|
21731 |
+
xmlns: "http://www.w3.org/2000/svg",
|
21732 |
+
viewBox: "0 0 24 24"
|
21733 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
21734 |
+
d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
|
21735 |
+
}));
|
21736 |
+
/* harmony default export */ var chevron_right = (chevronRight);
|
21737 |
+
|
21738 |
+
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-left.js
|
21739 |
+
|
21740 |
+
|
21741 |
+
/**
|
21742 |
+
* WordPress dependencies
|
21743 |
+
*/
|
21744 |
+
|
21745 |
+
const chevronLeft = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
|
21746 |
+
xmlns: "http://www.w3.org/2000/svg",
|
21747 |
+
viewBox: "0 0 24 24"
|
21748 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
21749 |
+
d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
|
21750 |
+
}));
|
21751 |
+
/* harmony default export */ var chevron_left = (chevronLeft);
|
21752 |
|
21753 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
|
21754 |
|
21763 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
21764 |
d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
|
21765 |
}));
|
21766 |
+
/* harmony default export */ var block_default = (blockDefault);
|
21767 |
|
21768 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
|
21769 |
|
21814 |
*/
|
21815 |
|
21816 |
|
21817 |
+
/* harmony default export */ var block_icon = ((0,external_wp_element_namespaceObject.memo)(BlockIcon));
|
21818 |
|
21819 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-card/index.js
|
21820 |
|
21821 |
|
21822 |
+
/**
|
21823 |
+
* External dependencies
|
21824 |
+
*/
|
21825 |
+
|
21826 |
/**
|
21827 |
* WordPress dependencies
|
21828 |
*/
|
21829 |
|
21830 |
+
|
21831 |
+
|
21832 |
+
|
21833 |
+
|
21834 |
+
|
21835 |
/**
|
21836 |
* Internal dependencies
|
21837 |
*/
|
21838 |
|
21839 |
|
21840 |
|
21841 |
+
|
21842 |
function BlockCard(_ref) {
|
21843 |
+
var _window;
|
21844 |
+
|
21845 |
let {
|
21846 |
title,
|
21847 |
icon,
|
21848 |
description,
|
21849 |
+
blockType,
|
21850 |
+
className
|
21851 |
} = _ref;
|
21852 |
|
21853 |
if (blockType) {
|
21862 |
} = blockType);
|
21863 |
}
|
21864 |
|
21865 |
+
const isOffCanvasNavigationEditorEnabled = ((_window = window) === null || _window === void 0 ? void 0 : _window.__experimentalEnableOffCanvasNavigationEditor) === true;
|
21866 |
+
const {
|
21867 |
+
parentNavBlockClientId
|
21868 |
+
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
21869 |
+
const {
|
21870 |
+
getSelectedBlockClientId,
|
21871 |
+
getBlockParentsByBlockName
|
21872 |
+
} = select(store);
|
21873 |
+
|
21874 |
+
const _selectedBlockClientId = getSelectedBlockClientId();
|
21875 |
+
|
21876 |
+
return {
|
21877 |
+
parentNavBlockClientId: getBlockParentsByBlockName(_selectedBlockClientId, 'core/navigation', true)[0]
|
21878 |
+
};
|
21879 |
+
}, []);
|
21880 |
+
const {
|
21881 |
+
selectBlock
|
21882 |
+
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
21883 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
21884 |
+
className: classnames_default()('block-editor-block-card', className)
|
21885 |
+
}, isOffCanvasNavigationEditorEnabled && parentNavBlockClientId && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
|
21886 |
+
onClick: () => selectBlock(parentNavBlockClientId),
|
21887 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Go to parent Navigation block'),
|
21888 |
+
style: // TODO: This style override is also used in ToolsPanelHeader.
|
21889 |
+
// It should be supported out-of-the-box by Button.
|
21890 |
+
{
|
21891 |
+
minWidth: 24,
|
21892 |
+
padding: 0
|
21893 |
+
},
|
21894 |
+
icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left,
|
21895 |
+
isSmall: true
|
21896 |
+
}), (0,external_wp_element_namespaceObject.createElement)(block_icon, {
|
21897 |
icon: icon,
|
21898 |
showColors: true
|
21899 |
}), (0,external_wp_element_namespaceObject.createElement)("div", {
|
21905 |
}, description)));
|
21906 |
}
|
21907 |
|
21908 |
+
/* harmony default export */ var block_card = (BlockCard);
|
21909 |
|
21910 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/with-registry-provider.js
|
21911 |
|
21955 |
}, props)));
|
21956 |
});
|
21957 |
}, 'withRegistryProvider');
|
21958 |
+
/* harmony default export */ var with_registry_provider = (withRegistryProvider);
|
21959 |
|
21960 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/use-block-sync.js
|
21961 |
/**
|
22239 |
return (0,external_wp_element_namespaceObject.createElement)(BlockRefsProvider, null, children);
|
22240 |
}
|
22241 |
|
22242 |
+
/* harmony default export */ var provider = (with_registry_provider(BlockEditorProvider));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22243 |
|
22244 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-selection-clearer/index.js
|
22245 |
|
22841 |
}
|
22842 |
|
22843 |
;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
|
22844 |
+
var external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
|
22845 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-select-all.js
|
22846 |
/**
|
22847 |
* WordPress dependencies
|
23478 |
*/
|
23479 |
|
23480 |
|
23481 |
+
/* harmony default export */ var writing_flow = ((0,external_wp_element_namespaceObject.forwardRef)(WritingFlow));
|
23482 |
|
23483 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/iframe/index.js
|
23484 |
|
23795 |
}, children))), iframeDocument.documentElement)), tabIndex >= 0 && after);
|
23796 |
}
|
23797 |
|
23798 |
+
/* harmony default export */ var iframe = ((0,external_wp_element_namespaceObject.forwardRef)(Iframe));
|
23799 |
|
23800 |
;// CONCATENATED MODULE: ./node_modules/colord/index.mjs
|
23801 |
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()})};
|
24513 |
/**
|
24514 |
* Expose `Compiler`.
|
24515 |
*/
|
24516 |
+
/* harmony default export */ var compiler = (Compiler);
|
24517 |
/**
|
24518 |
* Initialize a compiler.
|
24519 |
*/
|
24574 |
* Expose compiler.
|
24575 |
*/
|
24576 |
|
24577 |
+
/* harmony default export */ var compress = (compress_Compiler);
|
24578 |
/**
|
24579 |
* Initialize a new `Compiler`.
|
24580 |
*/
|
24743 |
* Expose compiler.
|
24744 |
*/
|
24745 |
|
24746 |
+
/* harmony default export */ var stringify_identity = (identity_Compiler);
|
24747 |
/**
|
24748 |
* Initialize a new `Compiler`.
|
24749 |
*/
|
24982 |
}
|
24983 |
}
|
24984 |
|
24985 |
+
/* harmony default export */ var transform_styles_traverse = (traverseCSS);
|
24986 |
|
24987 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/url-rewrite.js
|
24988 |
/**
|
25118 |
return node;
|
25119 |
};
|
25120 |
|
25121 |
+
/* harmony default export */ var url_rewrite = (rewrite);
|
25122 |
|
25123 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/wrap.js
|
25124 |
/**
|
25170 |
};
|
25171 |
};
|
25172 |
|
25173 |
+
/* harmony default export */ var transforms_wrap = (wrap);
|
25174 |
|
25175 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/index.js
|
25176 |
/**
|
25222 |
});
|
25223 |
};
|
25224 |
|
25225 |
+
/* harmony default export */ var transform_styles = (transform_styles_transformStyles);
|
25226 |
|
25227 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/editor-styles/index.js
|
25228 |
|
25615 |
|
25616 |
|
25617 |
|
|
|
25618 |
function BlockPreview(_ref) {
|
25619 |
let {
|
25620 |
blocks,
|
25621 |
__experimentalPadding = 0,
|
25622 |
viewportWidth = 1200,
|
|
|
|
|
25623 |
__experimentalMinHeight
|
25624 |
} = _ref;
|
25625 |
const originalSettings = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getSettings(), []);
|
25635 |
return (0,external_wp_element_namespaceObject.createElement)(provider, {
|
25636 |
value: renderedBlocks,
|
25637 |
settings: settings
|
25638 |
+
}, (0,external_wp_element_namespaceObject.createElement)(AutoBlockPreview, {
|
|
|
|
|
25639 |
viewportWidth: viewportWidth,
|
25640 |
__experimentalPadding: __experimentalPadding,
|
25641 |
__experimentalMinHeight: __experimentalMinHeight
|
25653 |
* @return {WPComponent} The component to be rendered.
|
25654 |
*/
|
25655 |
|
25656 |
+
/* harmony default export */ var block_preview = ((0,external_wp_element_namespaceObject.memo)(BlockPreview));
|
25657 |
/**
|
25658 |
* This hook is used to lightly mark an element as a block preview wrapper
|
25659 |
* element. Call this hook and pass the returned props to the element to mark as
|
25752 |
}));
|
25753 |
}
|
25754 |
|
25755 |
+
/* harmony default export */ var preview_panel = (InserterPreviewPanel);
|
25756 |
|
25757 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/context.js
|
25758 |
/**
|
25760 |
*/
|
25761 |
|
25762 |
const InserterListboxContext = (0,external_wp_element_namespaceObject.createContext)();
|
25763 |
+
/* harmony default export */ var context = (InserterListboxContext);
|
25764 |
|
25765 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/item.js
|
25766 |
|
25810 |
});
|
25811 |
}
|
25812 |
|
25813 |
+
/* harmony default export */ var inserter_listbox_item = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxItem));
|
25814 |
|
25815 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/drag-handle.js
|
25816 |
|
25827 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
25828 |
d: "M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"
|
25829 |
}));
|
25830 |
+
/* harmony default export */ var drag_handle = (dragHandle);
|
25831 |
|
25832 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/draggable-chip.js
|
25833 |
|
25915 |
});
|
25916 |
};
|
25917 |
|
25918 |
+
/* harmony default export */ var inserter_draggable_blocks = (InserterDraggableBlocks);
|
25919 |
|
25920 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-list-item/index.js
|
25921 |
|
25959 |
const blocks = (0,external_wp_element_namespaceObject.useMemo)(() => {
|
25960 |
return [(0,external_wp_blocks_namespaceObject.createBlock)(item.name, item.initialAttributes, (0,external_wp_blocks_namespaceObject.createBlocksFromInnerBlocksTemplate)(item.innerBlocks))];
|
25961 |
}, [item.name, item.initialAttributes, item.initialAttributes]);
|
25962 |
+
const isSynced = (0,external_wp_blocks_namespaceObject.isReusableBlock)(item) || (0,external_wp_blocks_namespaceObject.isTemplatePart)(item);
|
25963 |
return (0,external_wp_element_namespaceObject.createElement)(inserter_draggable_blocks, {
|
25964 |
isEnabled: isDraggable && !item.disabled,
|
25965 |
blocks: blocks,
|
25971 |
onDragEnd
|
25972 |
} = _ref2;
|
25973 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
25974 |
+
className: classnames_default()('block-editor-block-types-list__list-item', {
|
25975 |
+
'is-synced': isSynced
|
25976 |
+
}),
|
25977 |
draggable: draggable,
|
25978 |
onDragStart: event => {
|
25979 |
isDragging.current = true;
|
26040 |
});
|
26041 |
}
|
26042 |
|
26043 |
+
/* harmony default export */ var inserter_list_item = ((0,external_wp_element_namespaceObject.memo)(InserterListItem));
|
26044 |
|
26045 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/group.js
|
26046 |
|
26077 |
}, props));
|
26078 |
}
|
26079 |
|
26080 |
+
/* harmony default export */ var group = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxGroup));
|
26081 |
|
26082 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/row.js
|
26083 |
|
26103 |
}, props));
|
26104 |
}
|
26105 |
|
26106 |
+
/* harmony default export */ var inserter_listbox_row = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxRow));
|
26107 |
|
26108 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-types-list/index.js
|
26109 |
|
26154 |
})))), children);
|
26155 |
}
|
26156 |
|
26157 |
+
/* harmony default export */ var block_types_list = (BlockTypesList);
|
26158 |
|
26159 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/panel.js
|
26160 |
|
26181 |
}, children));
|
26182 |
}
|
26183 |
|
26184 |
+
/* harmony default export */ var panel = (InserterPanel);
|
26185 |
|
26186 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
|
26187 |
/**
|
26234 |
return [items, categories, collections, onSelectItem];
|
26235 |
};
|
26236 |
|
26237 |
+
/* harmony default export */ var use_block_types_state = (useBlockTypesState);
|
26238 |
|
26239 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/index.js
|
26240 |
|
26265 |
}, children);
|
26266 |
}
|
26267 |
|
26268 |
+
/* harmony default export */ var inserter_listbox = (InserterListbox);
|
26269 |
|
26270 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-types-tab.js
|
26271 |
|
26399 |
}));
|
26400 |
})));
|
26401 |
}
|
26402 |
+
/* harmony default export */ var block_types_tab = (BlockTypesTab);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26403 |
|
26404 |
;// CONCATENATED MODULE: external ["wp","notices"]
|
26405 |
+
var external_wp_notices_namespaceObject = window["wp"]["notices"];
|
26406 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.js
|
26407 |
/**
|
26408 |
* External dependencies
|
26459 |
return [patterns, patternCategories, onClickPattern];
|
26460 |
};
|
26461 |
|
26462 |
+
/* harmony default export */ var use_patterns_state = (usePatternsState);
|
26463 |
|
26464 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-patterns-list/index.js
|
26465 |
|
26561 |
}));
|
26562 |
}
|
26563 |
|
26564 |
+
/* harmony default export */ var block_patterns_list = (BlockPatternList);
|
26565 |
|
26566 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/sidebar.js
|
26567 |
|
26607 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
26608 |
className: baseClassName
|
26609 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SearchControl, {
|
26610 |
+
__nextHasNoMarginBottom: true,
|
26611 |
onChange: setFilterValue,
|
26612 |
value: filterValue,
|
26613 |
label: (0,external_wp_i18n_namespaceObject.__)('Search for patterns'),
|
26636 |
}));
|
26637 |
}
|
26638 |
|
26639 |
+
/* harmony default export */ var sidebar = (PatternExplorerSidebar);
|
26640 |
|
26641 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/no-results.js
|
26642 |
|
26656 |
}), (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No results found.')));
|
26657 |
}
|
26658 |
|
26659 |
+
/* harmony default export */ var no_results = (InserterNoResults);
|
26660 |
|
26661 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.js
|
26662 |
/**
|
26774 |
return [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint];
|
26775 |
}
|
26776 |
|
26777 |
+
/* harmony default export */ var use_insertion_point = (useInsertionPoint);
|
26778 |
|
26779 |
// EXTERNAL MODULE: ./node_modules/remove-accents/index.js
|
26780 |
var remove_accents = __webpack_require__(4793);
|
27149 |
})));
|
27150 |
}
|
27151 |
|
27152 |
+
/* harmony default export */ var patterns_list = (PatternList);
|
27153 |
|
27154 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/explorer.js
|
27155 |
|
27202 |
}, (0,external_wp_element_namespaceObject.createElement)(PatternsExplorer, restProps));
|
27203 |
}
|
27204 |
|
27205 |
+
/* harmony default export */ var explorer = (PatternsExplorerModal);
|
27206 |
|
27207 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-tab.js
|
27208 |
|
27357 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexBlock, null, category.label), (0,external_wp_element_namespaceObject.createElement)(build_module_icon, {
|
27358 |
icon: chevron_right
|
27359 |
})))), (0,external_wp_element_namespaceObject.createElement)("div", {
|
|
|
|
|
|
|
27360 |
role: "listitem"
|
27361 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
|
27362 |
className: "block-editor-inserter__patterns-explore-button",
|
27403 |
}))));
|
27404 |
}
|
27405 |
|
27406 |
+
/* harmony default export */ var block_patterns_tab = (BlockPatternsTabs);
|
27407 |
|
27408 |
;// CONCATENATED MODULE: external ["wp","url"]
|
27409 |
+
var external_wp_url_namespaceObject = window["wp"]["url"];
|
27410 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/reusable-blocks-tab.js
|
27411 |
|
27412 |
|
27488 |
})
|
27489 |
}, (0,external_wp_i18n_namespaceObject.__)('Manage Reusable blocks'))));
|
27490 |
}
|
27491 |
+
/* harmony default export */ var reusable_blocks_tab = (ReusableBlocksTab);
|
27492 |
|
27493 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/media-tab/hooks.js
|
27494 |
/**
|
27495 |
* WordPress dependencies
|
27496 |
*/
|
27497 |
|
|
|
|
|
|
|
|
|
|
|
|
|
27498 |
|
27499 |
+
|
27500 |
+
|
27501 |
+
/**
|
27502 |
+
* Internal dependencies
|
27503 |
+
*/
|
27504 |
+
|
27505 |
+
|
27506 |
+
function useDebouncedInput() {
|
27507 |
+
const [input, setInput] = (0,external_wp_element_namespaceObject.useState)('');
|
27508 |
+
const [debounced, setter] = (0,external_wp_element_namespaceObject.useState)('');
|
27509 |
+
const setDebounced = (0,external_wp_compose_namespaceObject.useDebounce)(setter, 250);
|
27510 |
+
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
27511 |
+
if (debounced !== input) {
|
27512 |
+
setDebounced(input);
|
27513 |
+
}
|
27514 |
+
}, [debounced, input]);
|
27515 |
+
return [input, setInput, debounced];
|
27516 |
+
}
|
27517 |
+
function useMediaResults() {
|
27518 |
+
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
27519 |
+
const [results, setResults] = (0,external_wp_element_namespaceObject.useState)();
|
27520 |
+
const settings = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getSettings(), []);
|
27521 |
+
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
27522 |
+
(async () => {
|
27523 |
+
setResults();
|
27524 |
+
|
27525 |
+
const _media = await (settings === null || settings === void 0 ? void 0 : settings.__unstableFetchMedia(options));
|
27526 |
+
|
27527 |
+
if (_media) setResults(_media);
|
27528 |
+
})();
|
27529 |
+
}, Object.values(options));
|
27530 |
+
return results;
|
27531 |
+
}
|
27532 |
+
const MEDIA_CATEGORIES = [{
|
27533 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Images'),
|
27534 |
+
name: 'images',
|
27535 |
+
mediaType: 'image'
|
27536 |
+
}, {
|
27537 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Videos'),
|
27538 |
+
name: 'videos',
|
27539 |
+
mediaType: 'video'
|
27540 |
+
}, {
|
27541 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Audio'),
|
27542 |
+
name: 'audio',
|
27543 |
+
mediaType: 'audio'
|
27544 |
+
}];
|
27545 |
+
function useMediaCategories(rootClientId) {
|
27546 |
+
const [categories, setCategories] = (0,external_wp_element_namespaceObject.useState)([]);
|
27547 |
+
const {
|
27548 |
+
canInsertImage,
|
27549 |
+
canInsertVideo,
|
27550 |
+
canInsertAudio,
|
27551 |
+
fetchMedia
|
27552 |
+
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
27553 |
+
const {
|
27554 |
+
canInsertBlockType,
|
27555 |
+
getSettings
|
27556 |
+
} = select(store);
|
27557 |
+
return {
|
27558 |
+
fetchMedia: getSettings().__unstableFetchMedia,
|
27559 |
+
canInsertImage: canInsertBlockType('core/image', rootClientId),
|
27560 |
+
canInsertVideo: canInsertBlockType('core/video', rootClientId),
|
27561 |
+
canInsertAudio: canInsertBlockType('core/audio', rootClientId)
|
27562 |
+
};
|
27563 |
+
}, [rootClientId]);
|
27564 |
+
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
27565 |
+
(async () => {
|
27566 |
+
// If `__unstableFetchMedia` is not defined in block
|
27567 |
+
// editor settings, do not set any media categories.
|
27568 |
+
if (!fetchMedia) return;
|
27569 |
+
const query = {
|
27570 |
+
context: 'view',
|
27571 |
+
per_page: 1,
|
27572 |
+
_fields: ['id']
|
27573 |
+
};
|
27574 |
+
const [image, video, audio] = await Promise.all([fetchMedia({ ...query,
|
27575 |
+
media_type: 'image'
|
27576 |
+
}), fetchMedia({ ...query,
|
27577 |
+
media_type: 'video'
|
27578 |
+
}), fetchMedia({ ...query,
|
27579 |
+
media_type: 'audio'
|
27580 |
+
})]);
|
27581 |
+
const showImage = canInsertImage && !!image.length;
|
27582 |
+
const showVideo = canInsertVideo && !!video.length;
|
27583 |
+
const showAudio = canInsertAudio && !!audio.length;
|
27584 |
+
setCategories(MEDIA_CATEGORIES.filter(_ref => {
|
27585 |
+
let {
|
27586 |
+
mediaType
|
27587 |
+
} = _ref;
|
27588 |
+
return mediaType === 'image' && showImage || mediaType === 'video' && showVideo || mediaType === 'audio' && showAudio;
|
27589 |
+
}));
|
27590 |
+
})();
|
27591 |
+
}, [canInsertImage, canInsertVideo, canInsertAudio, fetchMedia]);
|
27592 |
+
return categories;
|
27593 |
+
}
|
27594 |
+
|
27595 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/media-tab/utils.js
|
27596 |
+
|
27597 |
+
|
27598 |
+
/**
|
27599 |
+
* WordPress dependencies
|
27600 |
+
*/
|
27601 |
+
|
27602 |
+
const mediaTypeTag = {
|
27603 |
+
image: 'img',
|
27604 |
+
video: 'video',
|
27605 |
+
audio: 'audio'
|
27606 |
+
};
|
27607 |
+
function getBlockAndPreviewFromMedia(media, mediaType) {
|
27608 |
+
var _media$caption;
|
27609 |
+
|
27610 |
+
// Add the common attributes between the different media types.
|
27611 |
+
const attributes = {
|
27612 |
+
id: media.id
|
27613 |
+
}; // Some props are named differently between the Media REST API and Media Library API.
|
27614 |
+
// For example `source_url` is used in the former and `url` is used in the latter.
|
27615 |
+
|
27616 |
+
const mediaSrc = media.source_url || media.url;
|
27617 |
+
const alt = media.alt_text || media.alt || undefined;
|
27618 |
+
const caption = ((_media$caption = media.caption) === null || _media$caption === void 0 ? void 0 : _media$caption.raw) || media.caption;
|
27619 |
+
|
27620 |
+
if (caption && typeof caption === 'string') {
|
27621 |
+
attributes.caption = caption;
|
27622 |
+
}
|
27623 |
+
|
27624 |
+
if (mediaType === 'image') {
|
27625 |
+
attributes.url = mediaSrc;
|
27626 |
+
attributes.alt = alt;
|
27627 |
+
} else if (['video', 'audio'].includes(mediaType)) {
|
27628 |
+
attributes.src = mediaSrc;
|
27629 |
+
}
|
27630 |
+
|
27631 |
+
const PreviewTag = mediaTypeTag[mediaType];
|
27632 |
+
const preview = (0,external_wp_element_namespaceObject.createElement)(PreviewTag, {
|
27633 |
+
src: mediaSrc,
|
27634 |
+
alt: alt,
|
27635 |
+
controls: mediaType === 'audio' ? true : undefined,
|
27636 |
+
inert: "true"
|
27637 |
+
});
|
27638 |
+
return [(0,external_wp_blocks_namespaceObject.createBlock)(`core/${mediaType}`, attributes), preview];
|
27639 |
+
}
|
27640 |
+
|
27641 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/media-tab/media-list.js
|
27642 |
+
|
27643 |
+
|
27644 |
+
|
27645 |
+
/**
|
27646 |
+
* WordPress dependencies
|
27647 |
+
*/
|
27648 |
+
|
27649 |
+
|
27650 |
+
|
27651 |
+
|
27652 |
+
/**
|
27653 |
+
* Internal dependencies
|
27654 |
+
*/
|
27655 |
+
|
27656 |
+
|
27657 |
+
|
27658 |
+
|
27659 |
+
function MediaPreview(_ref) {
|
27660 |
+
var _media$title;
|
27661 |
+
|
27662 |
+
let {
|
27663 |
+
media,
|
27664 |
+
onClick,
|
27665 |
+
composite,
|
27666 |
+
mediaType
|
27667 |
+
} = _ref;
|
27668 |
+
const [block, preview] = (0,external_wp_element_namespaceObject.useMemo)(() => getBlockAndPreviewFromMedia(media, mediaType), [media, mediaType]);
|
27669 |
+
const title = ((_media$title = media.title) === null || _media$title === void 0 ? void 0 : _media$title.rendered) || media.title;
|
27670 |
+
const baseCssClass = 'block-editor-inserter__media-list';
|
27671 |
+
return (0,external_wp_element_namespaceObject.createElement)(inserter_draggable_blocks, {
|
27672 |
+
isEnabled: true,
|
27673 |
+
blocks: [block]
|
27674 |
+
}, _ref2 => {
|
27675 |
+
let {
|
27676 |
+
draggable,
|
27677 |
+
onDragStart,
|
27678 |
+
onDragEnd
|
27679 |
+
} = _ref2;
|
27680 |
+
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
27681 |
+
className: `${baseCssClass}__list-item`,
|
27682 |
+
draggable: draggable,
|
27683 |
+
onDragStart: onDragStart,
|
27684 |
+
onDragEnd: onDragEnd
|
27685 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Tooltip, {
|
27686 |
+
text: title
|
27687 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__unstableCompositeItem, _extends({
|
27688 |
+
role: "option",
|
27689 |
+
as: "div"
|
27690 |
+
}, composite, {
|
27691 |
+
className: `${baseCssClass}__item`,
|
27692 |
+
onClick: () => {
|
27693 |
+
onClick(block);
|
27694 |
+
},
|
27695 |
+
"aria-label": title
|
27696 |
+
}), (0,external_wp_element_namespaceObject.createElement)("div", {
|
27697 |
+
className: `${baseCssClass}__item-preview`
|
27698 |
+
}, preview))));
|
27699 |
+
});
|
27700 |
+
}
|
27701 |
+
|
27702 |
+
function MediaList(_ref3) {
|
27703 |
+
let {
|
27704 |
+
mediaList,
|
27705 |
+
mediaType,
|
27706 |
+
onClick,
|
27707 |
+
label = (0,external_wp_i18n_namespaceObject.__)('Media List')
|
27708 |
+
} = _ref3;
|
27709 |
+
const composite = (0,external_wp_components_namespaceObject.__unstableUseCompositeState)();
|
27710 |
+
const onPreviewClick = (0,external_wp_element_namespaceObject.useCallback)(block => {
|
27711 |
+
onClick((0,external_wp_blocks_namespaceObject.cloneBlock)(block));
|
27712 |
+
}, [onClick]);
|
27713 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__unstableComposite, _extends({}, composite, {
|
27714 |
+
role: "listbox",
|
27715 |
+
className: "block-editor-inserter__media-list",
|
27716 |
+
"aria-label": label
|
27717 |
+
}), mediaList.map(media => (0,external_wp_element_namespaceObject.createElement)(MediaPreview, {
|
27718 |
+
key: media.id,
|
27719 |
+
media: media,
|
27720 |
+
mediaType: mediaType,
|
27721 |
+
onClick: onPreviewClick,
|
27722 |
+
composite: composite
|
27723 |
+
})));
|
27724 |
+
}
|
27725 |
+
|
27726 |
+
/* harmony default export */ var media_list = (MediaList);
|
27727 |
+
|
27728 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/media-tab/media-panel.js
|
27729 |
+
|
27730 |
+
|
27731 |
+
/**
|
27732 |
+
* WordPress dependencies
|
27733 |
+
*/
|
27734 |
+
|
27735 |
+
|
27736 |
+
|
27737 |
+
|
27738 |
+
/**
|
27739 |
+
* Internal dependencies
|
27740 |
+
*/
|
27741 |
+
|
27742 |
+
|
27743 |
+
|
27744 |
+
|
27745 |
+
const INITIAL_MEDIA_ITEMS_PER_PAGE = 10;
|
27746 |
+
function MediaCategoryDialog(_ref) {
|
27747 |
+
let {
|
27748 |
+
rootClientId,
|
27749 |
+
onInsert,
|
27750 |
+
category
|
27751 |
+
} = _ref;
|
27752 |
+
const container = (0,external_wp_element_namespaceObject.useRef)();
|
27753 |
+
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
27754 |
+
const timeout = setTimeout(() => {
|
27755 |
+
const [firstTabbable] = external_wp_dom_namespaceObject.focus.tabbable.find(container.current);
|
27756 |
+
firstTabbable === null || firstTabbable === void 0 ? void 0 : firstTabbable.focus();
|
27757 |
+
});
|
27758 |
+
return () => clearTimeout(timeout);
|
27759 |
+
}, [category]);
|
27760 |
+
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
27761 |
+
ref: container,
|
27762 |
+
className: "block-editor-inserter__media-dialog"
|
27763 |
+
}, (0,external_wp_element_namespaceObject.createElement)(MediaCategoryPanel, {
|
27764 |
+
rootClientId: rootClientId,
|
27765 |
+
onInsert: onInsert,
|
27766 |
+
category: category
|
27767 |
+
}));
|
27768 |
+
}
|
27769 |
+
function MediaCategoryPanel(_ref2) {
|
27770 |
+
let {
|
27771 |
+
rootClientId,
|
27772 |
+
onInsert,
|
27773 |
+
category
|
27774 |
+
} = _ref2;
|
27775 |
+
const [search, setSearch, debouncedSearch] = useDebouncedInput();
|
27776 |
+
const mediaList = useMediaResults({
|
27777 |
+
per_page: !!debouncedSearch ? 20 : INITIAL_MEDIA_ITEMS_PER_PAGE,
|
27778 |
+
media_type: category.mediaType,
|
27779 |
+
search: debouncedSearch,
|
27780 |
+
orderBy: !!debouncedSearch ? 'relevance' : 'date'
|
27781 |
+
});
|
27782 |
+
const baseCssClass = 'block-editor-inserter__media-panel';
|
27783 |
+
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
27784 |
+
className: baseCssClass
|
27785 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SearchControl, {
|
27786 |
+
className: `${baseCssClass}-search`,
|
27787 |
+
onChange: setSearch,
|
27788 |
+
value: search,
|
27789 |
+
label: (0,external_wp_i18n_namespaceObject.sprintf)(
|
27790 |
+
/* translators: %s: Name of the media category(ex. 'images, videos'). */
|
27791 |
+
(0,external_wp_i18n_namespaceObject.__)('Search %s'), category.label.toLocaleLowerCase()),
|
27792 |
+
placeholder: (0,external_wp_i18n_namespaceObject.sprintf)(
|
27793 |
+
/* translators: %s: Name of the media category(ex. 'images, videos'). */
|
27794 |
+
(0,external_wp_i18n_namespaceObject.__)('Search %s'), category.label.toLocaleLowerCase())
|
27795 |
+
}), !mediaList && (0,external_wp_element_namespaceObject.createElement)("div", {
|
27796 |
+
className: `${baseCssClass}-spinner`
|
27797 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null)), Array.isArray(mediaList) && !mediaList.length && (0,external_wp_element_namespaceObject.createElement)(no_results, null), !!(mediaList !== null && mediaList !== void 0 && mediaList.length) && (0,external_wp_element_namespaceObject.createElement)(media_list, {
|
27798 |
+
rootClientId: rootClientId,
|
27799 |
+
onClick: onInsert,
|
27800 |
+
mediaList: mediaList,
|
27801 |
+
mediaType: category.mediaType
|
27802 |
+
}));
|
27803 |
+
}
|
27804 |
+
|
27805 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/check.js
|
27806 |
+
/**
|
27807 |
+
* WordPress dependencies
|
27808 |
+
*/
|
27809 |
+
|
27810 |
+
/**
|
27811 |
+
* Internal dependencies
|
27812 |
+
*/
|
27813 |
+
|
27814 |
+
|
27815 |
+
function MediaUploadCheck(_ref) {
|
27816 |
+
let {
|
27817 |
+
fallback = null,
|
27818 |
+
children
|
27819 |
+
} = _ref;
|
27820 |
+
const hasUploadPermissions = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
27821 |
+
const {
|
27822 |
+
getSettings
|
27823 |
+
} = select(store);
|
27824 |
+
return !!getSettings().mediaUpload;
|
27825 |
+
}, []);
|
27826 |
+
return hasUploadPermissions ? children : fallback;
|
27827 |
+
}
|
27828 |
+
/**
|
27829 |
+
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-upload/README.md
|
27830 |
+
*/
|
27831 |
+
|
27832 |
+
/* harmony default export */ var check = (MediaUploadCheck);
|
27833 |
+
|
27834 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/index.js
|
27835 |
+
/**
|
27836 |
+
* WordPress dependencies
|
27837 |
+
*/
|
27838 |
+
|
27839 |
+
/**
|
27840 |
+
* This is a placeholder for the media upload component necessary to make it possible to provide
|
27841 |
+
* an integration with the core blocks that handle media files. By default it renders nothing but
|
27842 |
+
* it provides a way to have it overridden with the `editor.MediaUpload` filter.
|
27843 |
+
*
|
27844 |
+
* @return {WPComponent} The component to be rendered.
|
27845 |
+
*/
|
27846 |
+
|
27847 |
+
const MediaUpload = () => null;
|
27848 |
+
/**
|
27849 |
+
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-upload/README.md
|
27850 |
+
*/
|
27851 |
+
|
27852 |
+
|
27853 |
+
/* harmony default export */ var media_upload = ((0,external_wp_components_namespaceObject.withFilters)('editor.MediaUpload')(MediaUpload));
|
27854 |
+
|
27855 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/media-tab/media-tab.js
|
27856 |
+
|
27857 |
+
|
27858 |
+
/**
|
27859 |
+
* External dependencies
|
27860 |
+
*/
|
27861 |
+
|
27862 |
+
/**
|
27863 |
+
* WordPress dependencies
|
27864 |
+
*/
|
27865 |
+
|
27866 |
+
|
27867 |
+
|
27868 |
+
|
27869 |
+
|
27870 |
+
|
27871 |
+
/**
|
27872 |
+
* Internal dependencies
|
27873 |
+
*/
|
27874 |
+
|
27875 |
+
|
27876 |
+
|
27877 |
+
|
27878 |
+
|
27879 |
+
|
27880 |
+
const ALLOWED_MEDIA_TYPES = ['image', 'video', 'audio'];
|
27881 |
+
|
27882 |
+
function MediaTab(_ref) {
|
27883 |
+
let {
|
27884 |
+
rootClientId,
|
27885 |
+
selectedCategory,
|
27886 |
+
onSelectCategory,
|
27887 |
+
onInsert
|
27888 |
+
} = _ref;
|
27889 |
+
const mediaCategories = useMediaCategories(rootClientId);
|
27890 |
+
const isMobile = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
|
27891 |
+
const baseCssClass = 'block-editor-inserter__media-tabs';
|
27892 |
+
const onSelectMedia = (0,external_wp_element_namespaceObject.useCallback)(media => {
|
27893 |
+
if (!(media !== null && media !== void 0 && media.url)) {
|
27894 |
+
return;
|
27895 |
+
}
|
27896 |
+
|
27897 |
+
const [block] = getBlockAndPreviewFromMedia(media, media.type);
|
27898 |
+
onInsert(block);
|
27899 |
+
}, [onInsert]);
|
27900 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, !isMobile && (0,external_wp_element_namespaceObject.createElement)("div", {
|
27901 |
+
className: `${baseCssClass}-container`
|
27902 |
+
}, (0,external_wp_element_namespaceObject.createElement)("nav", {
|
27903 |
+
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Media categories')
|
27904 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
|
27905 |
+
role: "list",
|
27906 |
+
className: baseCssClass
|
27907 |
+
}, mediaCategories.map(mediaCategory => (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalItem, {
|
27908 |
+
role: "listitem",
|
27909 |
+
key: mediaCategory.name,
|
27910 |
+
onClick: () => onSelectCategory(mediaCategory),
|
27911 |
+
className: classnames_default()(`${baseCssClass}__media-category`, {
|
27912 |
+
'is-selected': selectedCategory === mediaCategory
|
27913 |
+
}),
|
27914 |
+
"aria-label": mediaCategory.label,
|
27915 |
+
"aria-current": mediaCategory === selectedCategory ? 'true' : undefined
|
27916 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexBlock, null, mediaCategory.label), (0,external_wp_element_namespaceObject.createElement)(build_module_icon, {
|
27917 |
+
icon: chevron_right
|
27918 |
+
})))), (0,external_wp_element_namespaceObject.createElement)("div", {
|
27919 |
+
role: "listitem"
|
27920 |
+
}, (0,external_wp_element_namespaceObject.createElement)(check, null, (0,external_wp_element_namespaceObject.createElement)(media_upload, {
|
27921 |
+
multiple: false,
|
27922 |
+
onSelect: onSelectMedia,
|
27923 |
+
allowedTypes: ALLOWED_MEDIA_TYPES,
|
27924 |
+
render: _ref2 => {
|
27925 |
+
let {
|
27926 |
+
open
|
27927 |
+
} = _ref2;
|
27928 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
|
27929 |
+
onClick: event => {
|
27930 |
+
// Safari doesn't emit a focus event on button elements when
|
27931 |
+
// clicked and we need to manually focus the button here.
|
27932 |
+
// The reason is that core's Media Library modal explicitly triggers a
|
27933 |
+
// focus event and therefore a `blur` event is triggered on a different
|
27934 |
+
// element, which doesn't contain the `data-unstable-ignore-focus-outside-for-relatedtarget`
|
27935 |
+
// attribute making the Inserter dialog to close.
|
27936 |
+
event.target.focus();
|
27937 |
+
open();
|
27938 |
+
},
|
27939 |
+
className: "block-editor-inserter__media-library-button",
|
27940 |
+
variant: "secondary",
|
27941 |
+
"data-unstable-ignore-focus-outside-for-relatedtarget": ".media-modal"
|
27942 |
+
}, (0,external_wp_i18n_namespaceObject.__)('Open Media Library'));
|
27943 |
+
}
|
27944 |
+
})))))), isMobile && (0,external_wp_element_namespaceObject.createElement)(MediaTabNavigation, {
|
27945 |
+
onInsert: onInsert,
|
27946 |
+
rootClientId: rootClientId,
|
27947 |
+
mediaCategories: mediaCategories
|
27948 |
+
}));
|
27949 |
+
}
|
27950 |
+
|
27951 |
+
function MediaTabNavigation(_ref3) {
|
27952 |
+
let {
|
27953 |
+
onInsert,
|
27954 |
+
rootClientId,
|
27955 |
+
mediaCategories
|
27956 |
+
} = _ref3;
|
27957 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
|
27958 |
+
initialPath: "/"
|
27959 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
|
27960 |
+
path: "/"
|
27961 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, mediaCategories.map(category => (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
|
27962 |
+
key: category.name,
|
27963 |
+
path: `/category/${category.name}`,
|
27964 |
+
as: external_wp_components_namespaceObject.__experimentalItem,
|
27965 |
+
isAction: true
|
27966 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexBlock, null, category.label), (0,external_wp_element_namespaceObject.createElement)(build_module_icon, {
|
27967 |
+
icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
|
27968 |
+
})))))), mediaCategories.map(category => (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
|
27969 |
+
key: category.name,
|
27970 |
+
path: `/category/${category.name}`
|
27971 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorBackButton, {
|
27972 |
+
className: "rigatonious",
|
27973 |
+
icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left,
|
27974 |
+
isSmall: true,
|
27975 |
+
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigate to the categories list')
|
27976 |
+
}, (0,external_wp_i18n_namespaceObject.__)('Back')), (0,external_wp_element_namespaceObject.createElement)(MediaCategoryPanel, {
|
27977 |
+
rootClientId: rootClientId,
|
27978 |
+
onInsert: onInsert,
|
27979 |
+
category: category
|
27980 |
+
}))));
|
27981 |
+
}
|
27982 |
+
|
27983 |
+
/* harmony default export */ var media_tab = (MediaTab);
|
27984 |
+
|
27985 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-menu-extension/index.js
|
27986 |
+
/**
|
27987 |
+
* WordPress dependencies
|
27988 |
+
*/
|
27989 |
+
|
27990 |
+
const {
|
27991 |
+
Fill: __unstableInserterMenuExtension,
|
27992 |
+
Slot
|
27993 |
+
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableInserterMenuExtension');
|
27994 |
+
__unstableInserterMenuExtension.Slot = Slot;
|
27995 |
+
/* harmony default export */ var inserter_menu_extension = (__unstableInserterMenuExtension);
|
27996 |
+
|
27997 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-results.js
|
27998 |
|
27999 |
|
28000 |
/**
|
28142 |
}));
|
28143 |
}
|
28144 |
|
28145 |
+
/* harmony default export */ var search_results = (InserterSearchResults);
|
28146 |
|
28147 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tabs.js
|
28148 |
|
28153 |
|
28154 |
|
28155 |
|
28156 |
+
|
28157 |
const blocksTab = {
|
28158 |
name: 'blocks',
|
28159 |
|
28170 |
name: 'reusable',
|
28171 |
|
28172 |
/* translators: Reusable blocks tab title in the block inserter. */
|
28173 |
+
title: (0,external_wp_i18n_namespaceObject.__)('Reusable'),
|
28174 |
+
icon: library_symbol
|
28175 |
+
};
|
28176 |
+
const mediaTab = {
|
28177 |
+
name: 'media',
|
28178 |
+
|
28179 |
+
/* translators: Media tab title in the block inserter. */
|
28180 |
+
title: (0,external_wp_i18n_namespaceObject.__)('Media')
|
28181 |
};
|
28182 |
|
28183 |
function InserterTabs(_ref) {
|
28185 |
children,
|
28186 |
showPatterns = false,
|
28187 |
showReusableBlocks = false,
|
28188 |
+
showMedia = false,
|
28189 |
onSelect,
|
28190 |
prioritizePatterns
|
28191 |
} = _ref;
|
28202 |
tempTabs.push(patternsTab);
|
28203 |
}
|
28204 |
|
28205 |
+
if (showMedia) {
|
28206 |
+
tempTabs.push(mediaTab);
|
28207 |
+
}
|
28208 |
+
|
28209 |
if (showReusableBlocks) {
|
28210 |
tempTabs.push(reusableBlocksTab);
|
28211 |
}
|
28212 |
|
28213 |
return tempTabs;
|
28214 |
+
}, [prioritizePatterns, blocksTab, showPatterns, patternsTab, showReusableBlocks, showMedia, reusableBlocksTab]);
|
28215 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.TabPanel, {
|
28216 |
className: "block-editor-inserter__tabs",
|
28217 |
tabs: tabs,
|
28219 |
}, children);
|
28220 |
}
|
28221 |
|
28222 |
+
/* harmony default export */ var tabs = (InserterTabs);
|
28223 |
|
28224 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/menu.js
|
28225 |
|
28250 |
|
28251 |
|
28252 |
|
28253 |
+
|
28254 |
function InserterMenu(_ref, ref) {
|
28255 |
let {
|
28256 |
rootClientId,
|
28267 |
const [filterValue, setFilterValue] = (0,external_wp_element_namespaceObject.useState)(__experimentalFilterValue);
|
28268 |
const [hoveredItem, setHoveredItem] = (0,external_wp_element_namespaceObject.useState)(null);
|
28269 |
const [selectedPatternCategory, setSelectedPatternCategory] = (0,external_wp_element_namespaceObject.useState)(null);
|
28270 |
+
const [selectedMediaCategory, setSelectedMediaCategory] = (0,external_wp_element_namespaceObject.useState)(null);
|
28271 |
const [selectedTab, setSelectedTab] = (0,external_wp_element_namespaceObject.useState)(null);
|
28272 |
const [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint] = use_insertion_point({
|
28273 |
rootClientId,
|
28291 |
hasReusableBlocks: !!((_getSettings$__experi = getSettings().__experimentalReusableBlocks) !== null && _getSettings$__experi !== void 0 && _getSettings$__experi.length)
|
28292 |
};
|
28293 |
}, [destinationRootClientId]);
|
28294 |
+
const mediaCategories = useMediaCategories(destinationRootClientId);
|
28295 |
+
const showMedia = !!mediaCategories.length;
|
28296 |
const onInsert = (0,external_wp_element_namespaceObject.useCallback)((blocks, meta, shouldForceFocusBlock) => {
|
28297 |
onInsertBlocks(blocks, meta, shouldForceFocusBlock);
|
28298 |
onSelect();
|
28333 |
onInsert: onInsert,
|
28334 |
onHover: onHover
|
28335 |
}), [destinationRootClientId, onInsert, onHover]);
|
28336 |
+
const mediaTab = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_wp_element_namespaceObject.createElement)(media_tab, {
|
28337 |
+
rootClientId: destinationRootClientId,
|
28338 |
+
selectedCategory: selectedMediaCategory,
|
28339 |
+
onSelectCategory: setSelectedMediaCategory,
|
28340 |
+
onInsert: onInsert
|
28341 |
+
}), [destinationRootClientId, onInsert, selectedMediaCategory, setSelectedMediaCategory]);
|
28342 |
const getCurrentTab = (0,external_wp_element_namespaceObject.useCallback)(tab => {
|
28343 |
if (tab.name === 'blocks') {
|
28344 |
return blocksTab;
|
28345 |
} else if (tab.name === 'patterns') {
|
28346 |
return patternsTab;
|
28347 |
+
} else if (tab.name === 'reusable') {
|
28348 |
+
return reusableBlocksTab;
|
28349 |
+
} else if (tab.name === 'media') {
|
28350 |
+
return mediaTab;
|
28351 |
}
|
28352 |
+
}, [blocksTab, patternsTab, reusableBlocksTab, mediaTab]);
|
|
|
|
|
28353 |
const searchRef = (0,external_wp_element_namespaceObject.useRef)();
|
28354 |
(0,external_wp_element_namespaceObject.useImperativeHandle)(ref, () => ({
|
28355 |
focusSearch: () => {
|
28357 |
}
|
28358 |
}));
|
28359 |
const showPatternPanel = selectedTab === 'patterns' && !filterValue && selectedPatternCategory;
|
28360 |
+
const showAsTabs = !filterValue && (showPatterns || hasReusableBlocks || showMedia);
|
28361 |
+
const showMediaPanel = selectedTab === 'media' && !filterValue && selectedMediaCategory;
|
28362 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
28363 |
className: "block-editor-inserter__menu"
|
28364 |
}, (0,external_wp_element_namespaceObject.createElement)("div", {
|
28366 |
'show-as-tabs': showAsTabs
|
28367 |
})
|
28368 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SearchControl, {
|
28369 |
+
__nextHasNoMarginBottom: true,
|
28370 |
className: "block-editor-inserter__search",
|
28371 |
onChange: value => {
|
28372 |
if (hoveredItem) setHoveredItem(null);
|
28391 |
})), showAsTabs && (0,external_wp_element_namespaceObject.createElement)(tabs, {
|
28392 |
showPatterns: showPatterns,
|
28393 |
showReusableBlocks: hasReusableBlocks,
|
28394 |
+
showMedia: showMedia,
|
28395 |
prioritizePatterns: prioritizePatterns,
|
28396 |
onSelect: setSelectedTab
|
28397 |
}, getCurrentTab), !filterValue && !showAsTabs && (0,external_wp_element_namespaceObject.createElement)("div", {
|
28398 |
className: "block-editor-inserter__no-tab-container"
|
28399 |
+
}, blocksTab)), showMediaPanel && (0,external_wp_element_namespaceObject.createElement)(MediaCategoryDialog, {
|
28400 |
+
rootClientId: destinationRootClientId,
|
28401 |
+
onInsert: onInsert,
|
28402 |
+
category: selectedMediaCategory
|
28403 |
+
}), showInserterHelpPanel && hoveredItem && (0,external_wp_element_namespaceObject.createElement)(preview_panel, {
|
28404 |
item: hoveredItem
|
28405 |
}), showPatternPanel && (0,external_wp_element_namespaceObject.createElement)(BlockPatternsCategoryDialog, {
|
28406 |
rootClientId: destinationRootClientId,
|
28409 |
}));
|
28410 |
}
|
28411 |
|
28412 |
+
/* harmony default export */ var menu = ((0,external_wp_element_namespaceObject.forwardRef)(InserterMenu));
|
28413 |
|
28414 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/quick-inserter.js
|
28415 |
|
28502 |
'has-expand': setInserterIsOpened
|
28503 |
})
|
28504 |
}, showSearch && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SearchControl, {
|
28505 |
+
__nextHasNoMarginBottom: true,
|
28506 |
className: "block-editor-inserter__search",
|
28507 |
value: filterValue,
|
28508 |
onChange: value => {
|
28743 |
|
28744 |
}
|
28745 |
|
28746 |
+
/* harmony default export */ var inserter = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)((select, _ref4) => {
|
28747 |
var _getBlockVariations;
|
28748 |
|
28749 |
let {
|
28796 |
hasSingleBlockType,
|
28797 |
allowedBlockType,
|
28798 |
directInsertBlock,
|
28799 |
+
onSelectOrClose,
|
28800 |
+
selectBlockOnInsert
|
28801 |
} = ownProps;
|
28802 |
|
28803 |
if (!hasSingleBlockType && !directInsertBlock) {
|
28889 |
blockToInsert = (0,external_wp_blocks_namespaceObject.createBlock)(allowedBlockType.name);
|
28890 |
}
|
28891 |
|
28892 |
+
insertBlock(blockToInsert, getInsertionIndex(), rootClientId, selectBlockOnInsert);
|
28893 |
|
28894 |
if (onSelectOrClose) {
|
28895 |
+
var _blockToInsert;
|
28896 |
+
|
28897 |
+
onSelectOrClose({
|
28898 |
+
insertedBlockId: (_blockToInsert = blockToInsert) === null || _blockToInsert === void 0 ? void 0 : _blockToInsert.clientId
|
28899 |
+
});
|
28900 |
}
|
28901 |
|
28902 |
const message = (0,external_wp_i18n_namespaceObject.sprintf)( // translators: %s: the name of the block that has been added
|
28991 |
__experimentalIsQuick: true
|
28992 |
}));
|
28993 |
}
|
28994 |
+
/* harmony default export */ var default_block_appender = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)((select, ownProps) => {
|
28995 |
const {
|
28996 |
getBlockCount,
|
28997 |
getSettings,
|
29119 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/button-block-appender/README.md
|
29120 |
*/
|
29121 |
|
29122 |
+
/* harmony default export */ var button_block_appender = ((0,external_wp_element_namespaceObject.forwardRef)(ButtonBlockAppender));
|
29123 |
|
29124 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list-appender/index.js
|
29125 |
|
29226 |
}, appender);
|
29227 |
}
|
29228 |
|
29229 |
+
/* harmony default export */ var block_list_appender = (BlockListAppender);
|
29230 |
|
29231 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/inbetween.js
|
29232 |
|
29453 |
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
|
29454 |
}
|
29455 |
|
29456 |
+
/* harmony default export */ var inbetween = (BlockPopoverInbetween);
|
29457 |
|
29458 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/drop-zone.js
|
29459 |
|
29524 |
}));
|
29525 |
}
|
29526 |
|
29527 |
+
/* harmony default export */ var drop_zone = (BlockDropZonePopover);
|
29528 |
|
29529 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/insertion-point.js
|
29530 |
|
30014 |
*
|
30015 |
* @typedef {Object} WPBlockDisplayInformation
|
30016 |
*
|
30017 |
+
* @property {boolean} isSynced True if is a reusable block or template part
|
30018 |
+
* @property {string} title Human-readable block type label.
|
30019 |
+
* @property {WPIcon} icon Block type icon.
|
30020 |
+
* @property {string} description A detailed block type description.
|
30021 |
+
* @property {string} anchor HTML anchor.
|
30022 |
*/
|
30023 |
|
30024 |
/**
|
30052 |
if (!blockType) return null;
|
30053 |
const attributes = getBlockAttributes(clientId);
|
30054 |
const match = getActiveBlockVariation(blockName, attributes);
|
30055 |
+
const isSynced = (0,external_wp_blocks_namespaceObject.isReusableBlock)(blockType) || (0,external_wp_blocks_namespaceObject.isTemplatePart)(blockType);
|
30056 |
const blockTypeInfo = {
|
30057 |
+
isSynced,
|
30058 |
title: blockType.title,
|
30059 |
icon: blockType.icon,
|
30060 |
description: blockType.description,
|
30062 |
};
|
30063 |
if (!match) return blockTypeInfo;
|
30064 |
return {
|
30065 |
+
isSynced,
|
30066 |
title: match.title || blockType.title,
|
30067 |
icon: match.icon || blockType.icon,
|
30068 |
description: match.description || blockType.description,
|
30387 |
});
|
30388 |
};
|
30389 |
|
30390 |
+
/* harmony default export */ var block_draggable = (BlockDraggable);
|
30391 |
|
30392 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-up.js
|
30393 |
|
30402 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
30403 |
d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
|
30404 |
}));
|
30405 |
+
/* harmony default export */ var chevron_up = (chevronUp);
|
30406 |
|
30407 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-down.js
|
30408 |
|
30417 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
30418 |
d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
|
30419 |
}));
|
30420 |
+
/* harmony default export */ var chevron_down = (chevronDown);
|
30421 |
|
30422 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/mover-description.js
|
30423 |
/**
|
30896 |
*/
|
30897 |
|
30898 |
|
30899 |
+
/* harmony default export */ var block_mover = (BlockMover);
|
30900 |
|
30901 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-selection-button.js
|
30902 |
|
31149 |
})))));
|
31150 |
}
|
31151 |
|
31152 |
+
/* harmony default export */ var block_selection_button = (BlockSelectionButton);
|
31153 |
|
31154 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/navigable-toolbar/index.js
|
31155 |
|
31311 |
}, props), children);
|
31312 |
}
|
31313 |
|
31314 |
+
/* harmony default export */ var navigable_toolbar = (NavigableToolbar);
|
31315 |
|
31316 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/utils.js
|
31317 |
/**
|
31601 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
31602 |
d: "M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"
|
31603 |
}));
|
31604 |
+
/* harmony default export */ var library_copy = (copy);
|
31605 |
|
31606 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/preview-block-popover.js
|
31607 |
|
31780 |
}), title);
|
31781 |
}
|
31782 |
|
31783 |
+
/* harmony default export */ var block_transformations_menu = (BlockTransformationsMenu);
|
31784 |
|
31785 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/check.js
|
31786 |
|
31789 |
* WordPress dependencies
|
31790 |
*/
|
31791 |
|
31792 |
+
const check_check = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
|
31793 |
xmlns: "http://www.w3.org/2000/svg",
|
31794 |
viewBox: "0 0 24 24"
|
31795 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
31796 |
d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
|
31797 |
}));
|
31798 |
+
/* harmony default export */ var library_check = (check_check);
|
31799 |
|
31800 |
;// CONCATENATED MODULE: external ["wp","tokenList"]
|
31801 |
+
var external_wp_tokenList_namespaceObject = window["wp"]["tokenList"];
|
31802 |
var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_namespaceObject);
|
31803 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/utils.js
|
31804 |
/**
|
32235 |
}, []), [patterns, selectedBlocks]);
|
32236 |
};
|
32237 |
|
32238 |
+
/* harmony default export */ var use_transformed_patterns = (useTransformedPatterns);
|
32239 |
|
32240 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/pattern-transformations-menu.js
|
32241 |
|
32348 |
}, pattern.description));
|
32349 |
}
|
32350 |
|
32351 |
+
/* harmony default export */ var pattern_transformations_menu = (PatternTransformationsMenu);
|
32352 |
|
32353 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/index.js
|
32354 |
|
32556 |
blocks: blocks
|
32557 |
});
|
32558 |
};
|
32559 |
+
/* harmony default export */ var block_switcher = (BlockSwitcher);
|
32560 |
|
32561 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/block-toolbar-last-item.js
|
32562 |
/**
|
32568 |
Slot: block_toolbar_last_item_Slot
|
32569 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableBlockToolbarLastItem');
|
32570 |
__unstableBlockToolbarLastItem.Slot = block_toolbar_last_item_Slot;
|
32571 |
+
/* harmony default export */ var block_toolbar_last_item = (__unstableBlockToolbarLastItem);
|
32572 |
|
32573 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/more-vertical.js
|
32574 |
|
32583 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
32584 |
d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
|
32585 |
}));
|
32586 |
+
/* harmony default export */ var more_vertical = (moreVertical);
|
32587 |
|
32588 |
;// CONCATENATED MODULE: external ["wp","blob"]
|
32589 |
+
var external_wp_blob_namespaceObject = window["wp"]["blob"];
|
32590 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/pasting.js
|
32591 |
/**
|
32592 |
* WordPress dependencies
|
32890 |
*/
|
32891 |
|
32892 |
|
32893 |
+
/* harmony default export */ var copy_handler = (CopyHandler);
|
32894 |
|
32895 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-actions/index.js
|
32896 |
/**
|
33058 |
onClick: onToggleMode
|
33059 |
}, !small && label);
|
33060 |
}
|
33061 |
+
/* harmony default export */ var block_mode_toggle = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)((select, _ref2) => {
|
33062 |
let {
|
33063 |
clientId
|
33064 |
} = _ref2;
|
33127 |
|
33128 |
|
33129 |
|
33130 |
+
/* harmony default export */ var block_html_convert_button = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)((select, _ref) => {
|
33131 |
let {
|
33132 |
clientId
|
33133 |
} = _ref;
|
33157 |
Slot: block_settings_menu_first_item_Slot
|
33158 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableBlockSettingsMenuFirstItem');
|
33159 |
__unstableBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot;
|
33160 |
+
/* harmony default export */ var block_settings_menu_first_item = (__unstableBlockSettingsMenuFirstItem);
|
33161 |
|
33162 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/index.js
|
33163 |
|
33370 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
33371 |
d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"
|
33372 |
}));
|
33373 |
+
/* harmony default export */ var library_unlock = (unlock);
|
33374 |
|
33375 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/lock-outline.js
|
33376 |
|
33385 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
33386 |
d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"
|
33387 |
}));
|
33388 |
+
/* harmony default export */ var lock_outline = (lockOutline);
|
33389 |
|
33390 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/lock.js
|
33391 |
|
33400 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
33401 |
d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"
|
33402 |
}));
|
33403 |
+
/* harmony default export */ var library_lock = (lock);
|
33404 |
|
33405 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-lock/modal.js
|
33406 |
|
33717 |
}
|
33718 |
|
33719 |
BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
|
33720 |
+
/* harmony default export */ var block_settings_menu_controls = (BlockSettingsMenuControls);
|
33721 |
|
33722 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js
|
33723 |
|
33873 |
toggleBlockHighlight(firstParentClientId, isFocused);
|
33874 |
}
|
33875 |
|
33876 |
+
}); // This can occur when the selected block (the parent)
|
33877 |
+
// displays child blocks within a List View.
|
33878 |
+
|
33879 |
+
const parentBlockIsSelected = selectedBlockClientIds === null || selectedBlockClientIds === void 0 ? void 0 : selectedBlockClientIds.includes(firstParentClientId);
|
33880 |
return (0,external_wp_element_namespaceObject.createElement)(BlockActions, {
|
33881 |
clientIds: clientIds,
|
33882 |
__experimentalUpdateSelection: !__experimentalSelectBlock
|
33908 |
fillProps: {
|
33909 |
onClose
|
33910 |
}
|
33911 |
+
}), !parentBlockIsSelected && !!firstParentClientId && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, _extends({}, showParentOutlineGestures, {
|
33912 |
ref: selectParentButtonRef,
|
33913 |
icon: (0,external_wp_element_namespaceObject.createElement)(block_icon, {
|
33914 |
icon: parentBlockType.icon
|
33952 |
});
|
33953 |
});
|
33954 |
}
|
33955 |
+
/* harmony default export */ var block_settings_dropdown = (BlockSettingsDropdown);
|
33956 |
|
33957 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/index.js
|
33958 |
|
33977 |
toggleProps: toggleProps
|
33978 |
}, props))));
|
33979 |
}
|
33980 |
+
/* harmony default export */ var block_settings_menu = (BlockSettingsMenu);
|
33981 |
|
33982 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-lock/toolbar.js
|
33983 |
|
34044 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
34045 |
d: "M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"
|
34046 |
}));
|
34047 |
+
/* harmony default export */ var library_group = (group_group);
|
34048 |
|
34049 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/row.js
|
34050 |
|
34059 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
34060 |
d: "M9.2 6.5H4V8h5.2c.3 0 .5.2.5.5v7c0 .3-.2.5-.5.5H4v1.5h5.2c1.1 0 2-.9 2-2v-7c0-1.1-.8-2-2-2zM14.8 8H20V6.5h-5.2c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2H20V16h-5.2c-.3 0-.5-.2-.5-.5v-7c-.1-.3.2-.5.5-.5z"
|
34061 |
}));
|
34062 |
+
/* harmony default export */ var library_row = (row);
|
34063 |
|
34064 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stack.js
|
34065 |
|
34074 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
34075 |
d: "M16 4v5.2c0 .3-.2.5-.5.5h-7c-.3.1-.5-.2-.5-.5V4H6.5v5.2c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V4H16zm-.5 8.8h-7c-1.1 0-2 .9-2 2V20H8v-5.2c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5V20h1.5v-5.2c0-1.2-.9-2-2-2z"
|
34076 |
}));
|
34077 |
+
/* harmony default export */ var library_stack = (stack);
|
34078 |
|
34079 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/toolbar.js
|
34080 |
|
34187 |
}));
|
34188 |
}
|
34189 |
|
34190 |
+
/* harmony default export */ var toolbar = (BlockGroupToolbar);
|
34191 |
|
34192 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit-visually-button/index.js
|
34193 |
|
34233 |
|
34234 |
const __unstableBlockNameContext = (0,external_wp_element_namespaceObject.createContext)('');
|
34235 |
|
34236 |
+
/* harmony default export */ var block_name_context = (__unstableBlockNameContext);
|
34237 |
|
34238 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/index.js
|
34239 |
|
34347 |
|
34348 |
const shouldShowVisualToolbar = isValid && isVisual;
|
34349 |
const isMultiToolbar = blockClientIds.length > 1;
|
34350 |
+
const isSynced = (0,external_wp_blocks_namespaceObject.isReusableBlock)(blockType) || (0,external_wp_blocks_namespaceObject.isTemplatePart)(blockType);
|
34351 |
+
const classes = classnames_default()('block-editor-block-toolbar', {
|
34352 |
+
'is-showing-movers': shouldShowMovers,
|
34353 |
+
'is-synced': isSynced
|
34354 |
+
});
|
34355 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
34356 |
className: classes
|
34357 |
}, !isMultiToolbar && !displayHeaderToolbar && !isContentLocked && (0,external_wp_element_namespaceObject.createElement)(BlockParentSelector, null), (0,external_wp_element_namespaceObject.createElement)("div", _extends({
|
34392 |
*/
|
34393 |
|
34394 |
|
34395 |
+
/* harmony default export */ var block_toolbar = (BlockToolbar);
|
34396 |
|
34397 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
|
34398 |
|
34472 |
}));
|
34473 |
}
|
34474 |
|
34475 |
+
/* harmony default export */ var block_contextual_toolbar = (BlockContextualToolbar);
|
34476 |
|
34477 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/use-block-toolbar-popover-props.js
|
34478 |
/**
|
34897 |
clientId: clientId
|
34898 |
}));
|
34899 |
}, 'withClientId');
|
34900 |
+
/* harmony default export */ var with_client_id = (withClientId);
|
34901 |
|
34902 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/button-block-appender.js
|
34903 |
|
34930 |
onAddBlock: onAddBlock
|
34931 |
});
|
34932 |
};
|
34933 |
+
/* harmony default export */ var inner_blocks_button_block_appender = (with_client_id(button_block_appender_ButtonBlockAppender));
|
34934 |
|
34935 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/default-block-appender.js
|
34936 |
|
34955 |
rootClientId: clientId
|
34956 |
});
|
34957 |
};
|
34958 |
+
/* harmony default export */ var inner_blocks_default_block_appender = ((0,external_wp_compose_namespaceObject.compose)([with_client_id, (0,external_wp_data_namespaceObject.withSelect)((select, _ref2) => {
|
34959 |
let {
|
34960 |
clientId
|
34961 |
} = _ref2;
|
35125 |
isBlockSelected
|
35126 |
} = (0,external_wp_data_namespaceObject.useSelect)(store);
|
35127 |
const {
|
35128 |
+
replaceInnerBlocks,
|
35129 |
+
__unstableMarkNextChangeAsNotPersistent
|
35130 |
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
35131 |
const innerBlocks = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getBlocks(clientId), [clientId]);
|
35132 |
const {
|
35154 |
const nextBlocks = (0,external_wp_blocks_namespaceObject.synchronizeBlocksWithTemplate)(currentInnerBlocks, template);
|
35155 |
|
35156 |
if (!(0,external_lodash_namespaceObject.isEqual)(nextBlocks, currentInnerBlocks)) {
|
35157 |
+
__unstableMarkNextChangeAsNotPersistent();
|
35158 |
+
|
35159 |
replaceInnerBlocks(clientId, nextBlocks, currentInnerBlocks.length === 0 && templateInsertUpdatesSelection && nextBlocks.length !== 0 && isBlockSelected(clientId), // This ensures the "initialPosition" doesn't change when applying the template
|
35160 |
// If we're supposed to focus the block, we'll focus the first inner block
|
35161 |
// otherwise, we won't apply any auto-focus.
|
35786 |
} = props;
|
35787 |
useNestedSettingsUpdate(clientId, allowedBlocks, __experimentalDefaultBlock, __experimentalDirectInsert, templateLock, captureToolbars, orientation, __experimentalLayout);
|
35788 |
useInnerBlockTemplateSync(clientId, template, templateLock, templateInsertUpdatesSelection);
|
35789 |
+
const {
|
35790 |
+
context,
|
35791 |
+
name
|
35792 |
+
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
35793 |
const block = select(store).getBlock(clientId); // This check is here to avoid the Redux zombie bug where a child subscription
|
35794 |
// is called before a parent, causing potential JS errors when the child has been removed.
|
35795 |
|
35796 |
if (!block) {
|
35797 |
+
return {};
|
35798 |
}
|
35799 |
|
35800 |
const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(block.name);
|
35801 |
|
35802 |
if (!blockType || !blockType.providesContext) {
|
35803 |
+
return {};
|
35804 |
}
|
35805 |
|
35806 |
+
return {
|
35807 |
+
context: getBlockContext(block.attributes, blockType),
|
35808 |
+
name: block.name
|
35809 |
+
};
|
35810 |
+
}, [clientId]);
|
35811 |
+
const {
|
35812 |
+
allowSizingOnChildren = false
|
35813 |
+
} = (0,external_wp_blocks_namespaceObject.getBlockSupport)(name, '__experimentalLayout') || {}; // This component needs to always be synchronous as it's the one changing
|
35814 |
// the async mode depending on the block selection.
|
35815 |
|
35816 |
return (0,external_wp_element_namespaceObject.createElement)(BlockContextProvider, {
|
35819 |
rootClientId: clientId,
|
35820 |
renderAppender: renderAppender,
|
35821 |
__experimentalAppenderTagName: __experimentalAppenderTagName,
|
35822 |
+
__experimentalLayout: { ...__experimentalLayout,
|
35823 |
+
allowSizingOnChildren
|
35824 |
+
},
|
35825 |
wrapperRef: wrapperRef,
|
35826 |
placeholder: placeholder
|
35827 |
}));
|
35929 |
*/
|
35930 |
|
35931 |
|
35932 |
+
/* harmony default export */ var inner_blocks = (ForwardedInnerBlocks);
|
35933 |
|
35934 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/index.js
|
35935 |
|
37545 |
return (0,external_wp_element_namespaceObject.createElement)(ColorGradientControlSelect, props);
|
37546 |
}
|
37547 |
|
37548 |
+
/* harmony default export */ var control = (ColorGradientControl);
|
37549 |
|
37550 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/dropdown.js
|
37551 |
|
37827 |
*/
|
37828 |
|
37829 |
|
37830 |
+
/* harmony default export */ var contrast_checker = (ContrastChecker);
|
37831 |
|
37832 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/color-panel.js
|
37833 |
|
38764 |
*/
|
38765 |
|
38766 |
|
38767 |
+
/* harmony default export */ var line_height_control = (LineHeightControl);
|
38768 |
|
38769 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/line-height.js
|
38770 |
|
39379 |
*/
|
39380 |
|
39381 |
|
39382 |
+
/* harmony default export */ var font_size_picker = (FontSizePicker);
|
39383 |
|
39384 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/fluid-utils.js
|
39385 |
/**
|
39941 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39942 |
d: "M7 11.5h10V13H7z"
|
39943 |
}));
|
39944 |
+
/* harmony default export */ var library_reset = (reset_reset);
|
39945 |
|
39946 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-underline.js
|
39947 |
|
39956 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39957 |
d: "M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"
|
39958 |
}));
|
39959 |
+
/* harmony default export */ var format_underline = (formatUnderline);
|
39960 |
|
39961 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-strikethrough.js
|
39962 |
|
39971 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39972 |
d: "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"
|
39973 |
}));
|
39974 |
+
/* harmony default export */ var format_strikethrough = (formatStrikethrough);
|
39975 |
|
39976 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-decoration-control/index.js
|
39977 |
|
40158 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
40159 |
d: "M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"
|
40160 |
}));
|
40161 |
+
/* harmony default export */ var format_uppercase = (formatUppercase);
|
40162 |
|
40163 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-lowercase.js
|
40164 |
|
40173 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
40174 |
d: "M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"
|
40175 |
}));
|
40176 |
+
/* harmony default export */ var format_lowercase = (formatLowercase);
|
40177 |
|
40178 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-capitalize.js
|
40179 |
|
40188 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
40189 |
d: "M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"
|
40190 |
}));
|
40191 |
+
/* harmony default export */ var format_capitalize = (formatCapitalize);
|
40192 |
|
40193 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-transform-control/index.js
|
40194 |
|
41099 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
41100 |
d: "M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"
|
41101 |
}));
|
41102 |
+
/* harmony default export */ var library_filter = (filter);
|
41103 |
|
41104 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/duotone-control/index.js
|
41105 |
|
41181 |
});
|
41182 |
}
|
41183 |
|
41184 |
+
/* harmony default export */ var duotone_control = (DuotoneControl);
|
41185 |
|
41186 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/duotone.js
|
41187 |
|
41772 |
__unstableLayoutClassNames: layoutClassNames
|
41773 |
})));
|
41774 |
});
|
41775 |
+
/**
|
41776 |
+
* Override the default block element to add the child layout styles.
|
41777 |
+
*
|
41778 |
+
* @param {Function} BlockListBlock Original component.
|
41779 |
+
*
|
41780 |
+
* @return {Function} Wrapped component.
|
41781 |
+
*/
|
41782 |
+
|
41783 |
+
const withChildLayoutStyles = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockListBlock => props => {
|
41784 |
+
const {
|
41785 |
+
attributes
|
41786 |
+
} = props;
|
41787 |
+
const {
|
41788 |
+
style: {
|
41789 |
+
layout = {}
|
41790 |
+
} = {}
|
41791 |
+
} = attributes;
|
41792 |
+
const {
|
41793 |
+
selfStretch,
|
41794 |
+
flexSize
|
41795 |
+
} = layout;
|
41796 |
+
const hasChildLayout = selfStretch || flexSize;
|
41797 |
+
const disableLayoutStyles = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
41798 |
+
const {
|
41799 |
+
getSettings
|
41800 |
+
} = select(store);
|
41801 |
+
return !!getSettings().disableLayoutStyles;
|
41802 |
+
});
|
41803 |
+
const shouldRenderChildLayoutStyles = hasChildLayout && !disableLayoutStyles;
|
41804 |
+
const element = (0,external_wp_element_namespaceObject.useContext)(BlockList.__unstableElementContext);
|
41805 |
+
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(BlockListBlock);
|
41806 |
+
const selector = `.wp-container-content-${id}`;
|
41807 |
+
let css = '';
|
41808 |
+
|
41809 |
+
if (selfStretch === 'fixed' && flexSize) {
|
41810 |
+
css += `${selector} {
|
41811 |
+
flex-shrink: 0;
|
41812 |
+
flex-basis: ${flexSize};
|
41813 |
+
box-sizing: border-box;
|
41814 |
+
}`;
|
41815 |
+
} else if (selfStretch === 'fill') {
|
41816 |
+
css += `${selector} {
|
41817 |
+
flex-grow: 1;
|
41818 |
+
}`;
|
41819 |
+
} // Attach a `wp-container-content` id-based classname.
|
41820 |
+
|
41821 |
+
|
41822 |
+
const className = classnames_default()(props === null || props === void 0 ? void 0 : props.className, {
|
41823 |
+
[`wp-container-content-${id}`]: shouldRenderChildLayoutStyles && !!css // Only attach a container class if there is generated CSS to be attached.
|
41824 |
+
|
41825 |
+
});
|
41826 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, shouldRenderChildLayoutStyles && element && !!css && (0,external_wp_element_namespaceObject.createPortal)((0,external_wp_element_namespaceObject.createElement)("style", null, css), element), (0,external_wp_element_namespaceObject.createElement)(BlockListBlock, _extends({}, props, {
|
41827 |
+
className: className
|
41828 |
+
})));
|
41829 |
+
});
|
41830 |
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/layout/addAttribute', layout_addAttribute);
|
41831 |
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/layout/with-layout-styles', withLayoutStyles);
|
41832 |
+
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/layout/with-child-layout-styles', withChildLayoutStyles);
|
41833 |
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/layout/with-inspector-controls', withInspectorControls);
|
41834 |
|
41835 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/content-lock-ui.js
|
42660 |
*/
|
42661 |
|
42662 |
|
42663 |
+
/* harmony default export */ var with_font_sizes = (function () {
|
42664 |
for (var _len = arguments.length, fontSizeNames = new Array(_len), _key = 0; _key < _len; _key++) {
|
42665 |
fontSizeNames[_key] = arguments[_key];
|
42666 |
}
|
42780 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42781 |
d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"
|
42782 |
}));
|
42783 |
+
/* harmony default export */ var align_left = (alignLeft);
|
42784 |
|
42785 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-center.js
|
42786 |
|
42795 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42796 |
d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"
|
42797 |
}));
|
42798 |
+
/* harmony default export */ var align_center = (align_center_alignCenter);
|
42799 |
|
42800 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-right.js
|
42801 |
|
42810 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42811 |
d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"
|
42812 |
}));
|
42813 |
+
/* harmony default export */ var align_right = (alignRight);
|
42814 |
|
42815 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/ui.js
|
42816 |
|
42893 |
}, extraProps));
|
42894 |
}
|
42895 |
|
42896 |
+
/* harmony default export */ var alignment_control_ui = (AlignmentUI);
|
42897 |
|
42898 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/index.js
|
42899 |
|
43028 |
*/
|
43029 |
|
43030 |
|
43031 |
+
/* harmony default export */ var autocompleters_block = (createBlockCompleter());
|
43032 |
|
43033 |
;// CONCATENATED MODULE: external ["wp","apiFetch"]
|
43034 |
+
var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
|
43035 |
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
|
43036 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/page.js
|
43037 |
|
43046 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43047 |
d: "M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"
|
43048 |
}));
|
43049 |
+
/* harmony default export */ var library_page = (page);
|
43050 |
|
43051 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/post.js
|
43052 |
|
43061 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43062 |
d: "m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"
|
43063 |
}));
|
43064 |
+
/* harmony default export */ var library_post = (post);
|
43065 |
|
43066 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/autocompleters/link.js
|
43067 |
|
43126 |
*/
|
43127 |
|
43128 |
|
43129 |
+
/* harmony default export */ var autocompleters_link = (createLinkCompleter());
|
43130 |
|
43131 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/autocomplete/index.js
|
43132 |
|
43209 |
*/
|
43210 |
|
43211 |
|
43212 |
+
/* harmony default export */ var autocomplete = (BlockEditorAutocomplete);
|
43213 |
|
43214 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/fullscreen.js
|
43215 |
|
43224 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43225 |
d: "M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"
|
43226 |
}));
|
43227 |
+
/* harmony default export */ var library_fullscreen = (fullscreen);
|
43228 |
|
43229 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-full-height-alignment-control/index.js
|
43230 |
|
43252 |
});
|
43253 |
}
|
43254 |
|
43255 |
+
/* harmony default export */ var block_full_height_alignment_control = (BlockFullHeightAlignmentControl);
|
43256 |
|
43257 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-matrix-control/index.js
|
43258 |
|
43313 |
});
|
43314 |
}
|
43315 |
|
43316 |
+
/* harmony default export */ var block_alignment_matrix_control = (BlockAlignmentMatrixControl);
|
43317 |
|
43318 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right-small.js
|
43319 |
|
43328 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43329 |
d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
|
43330 |
}));
|
43331 |
+
/* harmony default export */ var chevron_right_small = (chevronRightSmall);
|
43332 |
|
43333 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-breadcrumb/index.js
|
43334 |
|
43426 |
;
|
43427 |
}
|
43428 |
|
43429 |
+
/* harmony default export */ var block_breadcrumb = (BlockBreadcrumb);
|
43430 |
|
43431 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-style-selector/index.js
|
43432 |
|
43526 |
});
|
43527 |
};
|
43528 |
|
43529 |
+
/* harmony default export */ var color_style_selector = (BlockColorsStyleSelector);
|
43530 |
|
43531 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/list-view.js
|
43532 |
|
43541 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43542 |
d: "M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"
|
43543 |
}));
|
43544 |
+
/* harmony default export */ var list_view = (listView);
|
43545 |
|
43546 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/leaf.js
|
43547 |
|
43602 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43603 |
d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"
|
43604 |
}));
|
43605 |
+
/* harmony default export */ var chevron_left_small = (chevronLeftSmall);
|
43606 |
|
43607 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/expander.js
|
43608 |
|
43737 |
})))));
|
43738 |
}
|
43739 |
|
43740 |
+
/* harmony default export */ var block_select_button = ((0,external_wp_element_namespaceObject.forwardRef)(ListViewBlockSelectButton));
|
43741 |
|
43742 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block-contents.js
|
43743 |
|
43823 |
}, props));
|
43824 |
});
|
43825 |
});
|
43826 |
+
/* harmony default export */ var block_contents = (ListViewBlockContents);
|
43827 |
|
43828 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/context.js
|
43829 |
/**
|
43925 |
path,
|
43926 |
isExpanded,
|
43927 |
selectedClientIds,
|
43928 |
+
preventAnnouncement,
|
43929 |
+
isSyncedBranch
|
43930 |
} = _ref;
|
43931 |
const cellRef = (0,external_wp_element_namespaceObject.useRef)(null);
|
43932 |
const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
|
44035 |
'is-first-selected': isFirstSelectedBlock,
|
44036 |
'is-last-selected': isLastSelectedBlock,
|
44037 |
'is-branch-selected': isBranchSelected,
|
44038 |
+
'is-synced-branch': isSyncedBranch,
|
44039 |
'is-dragging': isDragged,
|
44040 |
+
'has-single-cell': !showBlockActions,
|
44041 |
+
'is-synced': blockInformation.isSynced
|
44042 |
}); // Only include all selected blocks if the currently clicked on block
|
44043 |
// is one of the selected blocks. This ensures that if a user attempts
|
44044 |
// to alter a block that isn't part of the selection, they're still able
|
44147 |
}));
|
44148 |
}
|
44149 |
|
44150 |
+
/* harmony default export */ var list_view_block = ((0,external_wp_element_namespaceObject.memo)(ListViewBlock));
|
44151 |
|
44152 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/branch.js
|
44153 |
|
44169 |
|
44170 |
|
44171 |
|
44172 |
+
|
44173 |
/**
|
44174 |
* Given a block, returns the total number of blocks in that subtree. This is used to help determine
|
44175 |
* the list position of a block.
|
44233 |
fixedListWindow,
|
44234 |
isExpanded,
|
44235 |
parentId,
|
44236 |
+
shouldShowInnerBlocks = true,
|
44237 |
+
isSyncedBranch = false
|
44238 |
} = props;
|
44239 |
+
const parentBlockInformation = useBlockDisplayInformation(parentId);
|
44240 |
+
const syncedBranch = isSyncedBranch || !!(parentBlockInformation !== null && parentBlockInformation !== void 0 && parentBlockInformation.isSynced);
|
44241 |
const canParentExpand = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
44242 |
if (!parentId) {
|
44243 |
return true;
|
44302 |
path: updatedPath,
|
44303 |
isExpanded: shouldExpand,
|
44304 |
listPosition: nextPosition,
|
44305 |
+
selectedClientIds: selectedClientIds,
|
44306 |
+
isSyncedBranch: syncedBranch
|
44307 |
}), !showBlock && (0,external_wp_element_namespaceObject.createElement)("tr", null, (0,external_wp_element_namespaceObject.createElement)("td", {
|
44308 |
className: "block-editor-list-view-placeholder"
|
44309 |
})), hasNestedBlocks && shouldExpand && !isDragged && (0,external_wp_element_namespaceObject.createElement)(ListViewBranch, {
|
44317 |
fixedListWindow: fixedListWindow,
|
44318 |
isBranchSelected: isSelectedBranch,
|
44319 |
selectedClientIds: selectedClientIds,
|
44320 |
+
isExpanded: isExpanded,
|
44321 |
+
isSyncedBranch: syncedBranch
|
44322 |
}));
|
44323 |
}));
|
44324 |
}
|
44326 |
ListViewBranch.defaultProps = {
|
44327 |
selectBlock: () => {}
|
44328 |
};
|
44329 |
+
/* harmony default export */ var branch = ((0,external_wp_element_namespaceObject.memo)(ListViewBranch));
|
44330 |
|
44331 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/drop-indicator.js
|
44332 |
|
45039 |
}))));
|
45040 |
}
|
45041 |
|
45042 |
+
/* harmony default export */ var components_list_view = ((0,external_wp_element_namespaceObject.forwardRef)(ListView));
|
45043 |
|
45044 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-navigation/dropdown.js
|
45045 |
|
45121 |
});
|
45122 |
}
|
45123 |
|
45124 |
+
/* harmony default export */ var dropdown = ((0,external_wp_element_namespaceObject.forwardRef)(BlockNavigationDropdown));
|
45125 |
|
45126 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/preview-panel.js
|
45127 |
|
45270 |
}))));
|
45271 |
}
|
45272 |
|
45273 |
+
/* harmony default export */ var block_styles = (BlockStyles);
|
45274 |
|
45275 |
BlockStyles.Slot = () => {
|
45276 |
external_wp_deprecated_default()('BlockStyles.Slot', {
|
45293 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
45294 |
d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
|
45295 |
}));
|
45296 |
+
/* harmony default export */ var library_layout = (layout);
|
45297 |
|
45298 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-picker/index.js
|
45299 |
|
45341 |
className: "block-editor-block-variation-picker__variation",
|
45342 |
label: variation.description || variation.title
|
45343 |
}), (0,external_wp_element_namespaceObject.createElement)("span", {
|
45344 |
+
className: "block-editor-block-variation-picker__variation-label"
|
|
|
45345 |
}, variation.title)))), allowSkip && (0,external_wp_element_namespaceObject.createElement)("div", {
|
45346 |
className: "block-editor-block-variation-picker__skip"
|
45347 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
|
45350 |
}, (0,external_wp_i18n_namespaceObject.__)('Skip'))));
|
45351 |
}
|
45352 |
|
45353 |
+
/* harmony default export */ var block_variation_picker = (BlockVariationPicker);
|
45354 |
|
45355 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/grid.js
|
45356 |
|
45367 |
fillRule: "evenodd",
|
45368 |
clipRule: "evenodd"
|
45369 |
}));
|
45370 |
+
/* harmony default export */ var library_grid = (grid);
|
45371 |
|
45372 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/constants.js
|
45373 |
const VIEWMODES = {
|
45460 |
}));
|
45461 |
};
|
45462 |
|
45463 |
+
/* harmony default export */ var setup_toolbar = (SetupToolbar);
|
45464 |
|
45465 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/use-patterns-setup.js
|
45466 |
/**
|
45490 |
}, [clientId, blockName, filterPatternsFn]);
|
45491 |
}
|
45492 |
|
45493 |
+
/* harmony default export */ var use_patterns_setup = (usePatternsSetup);
|
45494 |
|
45495 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/index.js
|
45496 |
|
45657 |
})));
|
45658 |
};
|
45659 |
|
45660 |
+
/* harmony default export */ var block_pattern_setup = (BlockPatternSetup);
|
45661 |
|
45662 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-transforms/index.js
|
45663 |
|
45811 |
});
|
45812 |
}
|
45813 |
|
45814 |
+
/* harmony default export */ var block_variation_transforms = (__experimentalBlockVariationTransforms);
|
45815 |
|
45816 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/with-color-context.js
|
45817 |
|
45831 |
*/
|
45832 |
|
45833 |
|
45834 |
+
/* harmony default export */ var with_color_context = ((0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => {
|
45835 |
return props => {
|
45836 |
const colorsFeature = useSetting('color.palette');
|
45837 |
const disableCustomColorsFeature = !useSetting('color.custom');
|
45856 |
*/
|
45857 |
|
45858 |
|
45859 |
+
/* harmony default export */ var color_palette = (with_color_context(external_wp_components_namespaceObject.ColorPalette));
|
45860 |
|
45861 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/control.js
|
45862 |
|
45881 |
}
|
45882 |
|
45883 |
;// CONCATENATED MODULE: external ["wp","date"]
|
45884 |
+
var external_wp_date_namespaceObject = window["wp"]["date"];
|
45885 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/date-format-picker/index.js
|
45886 |
|
45887 |
|
46113 |
return (0,external_wp_element_namespaceObject.createElement)(PanelColorGradientSettingsSingleSelect, props);
|
46114 |
};
|
46115 |
|
46116 |
+
/* harmony default export */ var panel_color_gradient_settings = (PanelColorGradientSettings);
|
46117 |
|
46118 |
;// CONCATENATED MODULE: ./node_modules/react-easy-crop/node_modules/tslib/tslib.es6.js
|
46119 |
/*! *****************************************************************************
|
47239 |
return Cropper;
|
47240 |
}((external_React_default()).Component);
|
47241 |
|
47242 |
+
/* harmony default export */ var index_module = (Cropper);
|
47243 |
|
47244 |
|
47245 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/constants.js
|
47583 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47584 |
d: "M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"
|
47585 |
}));
|
47586 |
+
/* harmony default export */ var library_search = (search);
|
47587 |
|
47588 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/zoom-dropdown.js
|
47589 |
|
47623 |
});
|
47624 |
},
|
47625 |
renderContent: () => (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
|
47626 |
+
__nextHasNoMarginBottom: true,
|
47627 |
label: (0,external_wp_i18n_namespaceObject.__)('Zoom'),
|
47628 |
min: constants_MIN_ZOOM,
|
47629 |
max: constants_MAX_ZOOM,
|
47646 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47647 |
d: "M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"
|
47648 |
}));
|
47649 |
+
/* harmony default export */ var aspect_ratio = (aspectRatio);
|
47650 |
|
47651 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.js
|
47652 |
|
47785 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47786 |
d: "M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"
|
47787 |
}));
|
47788 |
+
/* harmony default export */ var rotate_right = (rotateRight);
|
47789 |
|
47790 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/rotation-button.js
|
47791 |
|
48046 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
48047 |
d: "M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"
|
48048 |
}));
|
48049 |
+
/* harmony default export */ var keyboard_return = (keyboardReturn);
|
48050 |
|
48051 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/settings-drawer.js
|
48052 |
|
48090 |
}, (0,external_wp_i18n_namespaceObject.__)('Currently selected link settings')), theSettings);
|
48091 |
};
|
48092 |
|
48093 |
+
/* harmony default export */ var settings_drawer = (LinkControlSettingsDrawer);
|
48094 |
|
48095 |
// EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js
|
48096 |
var dom_scroll_into_view_lib = __webpack_require__(5425);
|
48144 |
this.inputRef = (0,external_wp_element_namespaceObject.createRef)();
|
48145 |
this.updateSuggestions = (0,external_wp_compose_namespaceObject.debounce)(this.updateSuggestions.bind(this), 200);
|
48146 |
this.suggestionNodes = [];
|
48147 |
+
this.suggestionsRequest = null;
|
48148 |
this.state = {
|
48149 |
suggestions: [],
|
48150 |
showSuggestions: false,
|
48151 |
+
isUpdatingSuggestions: false,
|
48152 |
+
suggestionsValue: null,
|
48153 |
selectedSuggestion: null,
|
48154 |
suggestionsListboxId: '',
|
48155 |
suggestionOptionIdPrefix: ''
|
48178 |
} // Update suggestions when the value changes.
|
48179 |
|
48180 |
|
48181 |
+
if (prevProps.value !== value && !this.props.disableSuggestions && !this.state.isUpdatingSuggestions) {
|
48182 |
if (value !== null && value !== void 0 && value.length) {
|
48183 |
// If the new value is not empty we need to update with suggestions for it.
|
48184 |
this.updateSuggestions(value);
|
48199 |
var _this$suggestionsRequ, _this$suggestionsRequ2;
|
48200 |
|
48201 |
(_this$suggestionsRequ = this.suggestionsRequest) === null || _this$suggestionsRequ === void 0 ? void 0 : (_this$suggestionsRequ2 = _this$suggestionsRequ.cancel) === null || _this$suggestionsRequ2 === void 0 ? void 0 : _this$suggestionsRequ2.call(_this$suggestionsRequ);
|
48202 |
+
this.suggestionsRequest = null;
|
48203 |
}
|
48204 |
|
48205 |
bindSuggestionNode(index) {
|
48209 |
}
|
48210 |
|
48211 |
shouldShowInitialSuggestions() {
|
|
|
|
|
|
|
48212 |
const {
|
48213 |
__experimentalShowInitialSuggestions = false,
|
48214 |
value
|
48215 |
} = this.props;
|
48216 |
+
return __experimentalShowInitialSuggestions && !(value && value.length);
|
48217 |
}
|
48218 |
|
48219 |
updateSuggestions() {
|
48240 |
// - this is a direct entry (eg: a URL)
|
48241 |
|
48242 |
if (!isInitialSuggestions && (value.length < 2 || !handleURLSuggestions && (0,external_wp_url_namespaceObject.isURL)(value))) {
|
48243 |
+
var _this$suggestionsRequ3, _this$suggestionsRequ4;
|
48244 |
+
|
48245 |
+
(_this$suggestionsRequ3 = this.suggestionsRequest) === null || _this$suggestionsRequ3 === void 0 ? void 0 : (_this$suggestionsRequ4 = _this$suggestionsRequ3.cancel) === null || _this$suggestionsRequ4 === void 0 ? void 0 : _this$suggestionsRequ4.call(_this$suggestionsRequ3);
|
48246 |
+
this.suggestionsRequest = null;
|
48247 |
this.setState({
|
48248 |
+
suggestions: [],
|
48249 |
showSuggestions: false,
|
48250 |
+
suggestionsValue: value,
|
48251 |
selectedSuggestion: null,
|
48252 |
loading: false
|
48253 |
});
|
48254 |
return;
|
48255 |
}
|
48256 |
|
|
|
48257 |
this.setState({
|
48258 |
+
isUpdatingSuggestions: true,
|
48259 |
selectedSuggestion: null,
|
48260 |
loading: true
|
48261 |
});
|
48272 |
|
48273 |
this.setState({
|
48274 |
suggestions,
|
48275 |
+
isUpdatingSuggestions: false,
|
48276 |
+
suggestionsValue: value,
|
48277 |
loading: false,
|
48278 |
showSuggestions: !!suggestions.length
|
48279 |
});
|
48285 |
} else {
|
48286 |
this.props.debouncedSpeak((0,external_wp_i18n_namespaceObject.__)('No results.'), 'assertive');
|
48287 |
}
|
|
|
|
|
48288 |
}).catch(() => {
|
48289 |
+
if (this.suggestionsRequest !== request) {
|
48290 |
+
return;
|
|
|
|
|
|
|
48291 |
}
|
48292 |
+
|
48293 |
+
this.setState({
|
48294 |
+
isUpdatingSuggestions: false,
|
48295 |
+
loading: false
|
48296 |
+
});
|
48297 |
}); // Note that this assignment is handled *before* the async search request
|
48298 |
// as a Promise always resolves on the next tick of the event loop.
|
48299 |
|
48301 |
}
|
48302 |
|
48303 |
onChange(event) {
|
48304 |
+
this.props.onChange(event.target.value);
|
|
|
|
|
|
|
|
|
|
|
48305 |
}
|
48306 |
|
48307 |
onFocus() {
|
48314 |
} = this.props; // When opening the link editor, if there's a value present, we want to load the suggestions pane with the results for this input search value
|
48315 |
// Don't re-run the suggestions on focus if there are already suggestions present (prevents searching again when tabbing between the input and buttons)
|
48316 |
|
48317 |
+
if (value && !disableSuggestions && !this.state.isUpdatingSuggestions && !(suggestions && suggestions.length)) {
|
48318 |
// Ensure the suggestions are updated with the current input value.
|
48319 |
this.updateSuggestions(value);
|
48320 |
}
|
48533 |
renderSuggestions() {
|
48534 |
const {
|
48535 |
className,
|
48536 |
+
__experimentalRenderSuggestions: renderSuggestions
|
|
|
|
|
48537 |
} = this.props;
|
48538 |
const {
|
48539 |
showSuggestions,
|
48540 |
suggestions,
|
48541 |
+
suggestionsValue,
|
48542 |
selectedSuggestion,
|
48543 |
suggestionsListboxId,
|
48544 |
suggestionOptionIdPrefix,
|
48545 |
loading
|
48546 |
} = this.state;
|
48547 |
+
|
48548 |
+
if (!showSuggestions || suggestions.length === 0) {
|
48549 |
+
return null;
|
48550 |
+
}
|
48551 |
+
|
48552 |
const suggestionsListProps = {
|
48553 |
id: suggestionsListboxId,
|
48554 |
ref: this.autocompleteRef,
|
48565 |
};
|
48566 |
};
|
48567 |
|
48568 |
+
if (isFunction(renderSuggestions)) {
|
48569 |
return renderSuggestions({
|
48570 |
suggestions,
|
48571 |
selectedSuggestion,
|
48573 |
buildSuggestionItemProps,
|
48574 |
isLoading: loading,
|
48575 |
handleSuggestionClick: this.handleOnClick,
|
48576 |
+
isInitialSuggestions: !(suggestionsValue !== null && suggestionsValue !== void 0 && suggestionsValue.length),
|
48577 |
+
currentInputValue: suggestionsValue
|
48578 |
});
|
48579 |
}
|
48580 |
|
48581 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
|
48582 |
+
placement: "bottom",
|
48583 |
+
focusOnMount: false
|
48584 |
+
}, (0,external_wp_element_namespaceObject.createElement)("div", _extends({}, suggestionsListProps, {
|
48585 |
+
className: classnames_default()('block-editor-url-input__suggestions', `${className}__suggestions`)
|
48586 |
+
}), suggestions.map((suggestion, index) => (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, _extends({}, buildSuggestionItemProps(suggestion, index), {
|
48587 |
+
key: suggestion.id,
|
48588 |
+
className: classnames_default()('block-editor-url-input__suggestion', {
|
48589 |
+
'is-selected': index === selectedSuggestion
|
48590 |
+
}),
|
48591 |
+
onClick: () => this.handleOnClick(suggestion)
|
48592 |
+
}), suggestion.title))));
|
|
|
|
|
|
|
|
|
48593 |
}
|
48594 |
|
48595 |
}
|
48598 |
*/
|
48599 |
|
48600 |
|
48601 |
+
/* harmony default export */ var url_input = ((0,external_wp_compose_namespaceObject.compose)(external_wp_compose_namespaceObject.withSafeTimeout, external_wp_components_namespaceObject.withSpokenMessages, external_wp_compose_namespaceObject.withInstanceId, (0,external_wp_data_namespaceObject.withSelect)((select, props) => {
|
48602 |
// If a link suggestions handler is already provided then
|
48603 |
// bail.
|
48604 |
if (isFunction(props.__experimentalFetchLinkSuggestions)) {
|
48668 |
className: "block-editor-link-control__search-item-title"
|
48669 |
}, text)));
|
48670 |
};
|
48671 |
+
/* harmony default export */ var search_create_button = (LinkControlSearchCreate);
|
48672 |
|
48673 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/post-list.js
|
48674 |
|
48683 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
48684 |
d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"
|
48685 |
}));
|
48686 |
+
/* harmony default export */ var post_list = (postList);
|
48687 |
|
48688 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/tag.js
|
48689 |
|
48698 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
48699 |
d: "M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"
|
48700 |
}));
|
48701 |
+
/* harmony default export */ var library_tag = (tag);
|
48702 |
|
48703 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/category.js
|
48704 |
|
48715 |
fillRule: "evenodd",
|
48716 |
clipRule: "evenodd"
|
48717 |
}));
|
48718 |
+
/* harmony default export */ var library_category = (category);
|
48719 |
|
48720 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/file.js
|
48721 |
|
48730 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
48731 |
d: "M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"
|
48732 |
}));
|
48733 |
+
/* harmony default export */ var library_file = (file);
|
48734 |
|
48735 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/globe.js
|
48736 |
|
48745 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
48746 |
d: "M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"
|
48747 |
}));
|
48748 |
+
/* harmony default export */ var library_globe = (globe);
|
48749 |
|
48750 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-item.js
|
48751 |
|
48838 |
return suggestion.type === 'post_tag' ? 'tag' : suggestion.type;
|
48839 |
}
|
48840 |
|
48841 |
+
/* harmony default export */ var search_item = (LinkControlSearchItem);
|
48842 |
|
48843 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/constants.js
|
48844 |
/**
|
49174 |
const handleRenderSuggestions = props => renderSuggestions({ ...props,
|
49175 |
instanceId,
|
49176 |
withCreateSuggestion,
|
|
|
49177 |
createSuggestionButtonText,
|
49178 |
suggestionsQuery,
|
49179 |
handleSuggestionClick: suggestion => {
|
49248 |
ref: ref
|
49249 |
}), children);
|
49250 |
});
|
49251 |
+
/* harmony default export */ var search_input = (LinkControlSearchInput);
|
49252 |
|
49253 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/info.js
|
49254 |
|
49263 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
49264 |
d: "M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"
|
49265 |
}));
|
49266 |
+
/* harmony default export */ var library_info = (info);
|
49267 |
|
49268 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/pencil.js
|
49269 |
|
49278 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
49279 |
d: "M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"
|
49280 |
}));
|
49281 |
+
/* harmony default export */ var library_pencil = (pencil);
|
49282 |
|
49283 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/edit.js
|
49284 |
/**
|
49285 |
* Internal dependencies
|
49286 |
*/
|
49287 |
|
49288 |
+
/* harmony default export */ var library_edit = (library_pencil);
|
49289 |
|
49290 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/viewer-slot.js
|
49291 |
/**
|
49297 |
Fill: ViewerFill
|
49298 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('BlockEditorLinkControlViewer');
|
49299 |
|
49300 |
+
/* harmony default export */ var viewer_slot = ((/* unused pure expression or super */ null && (ViewerSlot)));
|
49301 |
|
49302 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/use-rich-url-data.js
|
49303 |
/**
|
49384 |
return state;
|
49385 |
}
|
49386 |
|
49387 |
+
/* harmony default export */ var use_rich_url_data = (useRemoteUrlData);
|
49388 |
|
49389 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/link-preview.js
|
49390 |
|
49597 |
const [internalInputValue, setInternalInputValue] = (0,external_wp_element_namespaceObject.useState)(value || '');
|
49598 |
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
49599 |
/**
|
49600 |
+
* If the value changes then sync this
|
49601 |
* back up with state.
|
49602 |
*/
|
49603 |
+
if (value && value !== internalInputValue) {
|
49604 |
+
setInternalInputValue(value);
|
49605 |
}
|
49606 |
}, [value]);
|
49607 |
return [internalInputValue, setInternalInputValue];
|
49904 |
}
|
49905 |
|
49906 |
LinkControl.ViewerFill = ViewerFill;
|
49907 |
+
/* harmony default export */ var link_control = (LinkControl);
|
49908 |
|
49909 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/leaf.js
|
49910 |
|
49945 |
});
|
49946 |
return (0,external_wp_element_namespaceObject.createElement)(leaf_AnimatedTreeGridRow, _extends({
|
49947 |
ref: ref,
|
49948 |
+
className: classnames_default()('block-editor-list-view-leaf', 'offcanvas-editor-list-view-leaf', className),
|
49949 |
level: level,
|
49950 |
positionInSet: position,
|
49951 |
setSize: rowCount
|
50085 |
})))));
|
50086 |
}
|
50087 |
|
50088 |
+
/* harmony default export */ var off_canvas_editor_block_select_button = ((0,external_wp_element_namespaceObject.forwardRef)(block_select_button_ListViewBlockSelectButton));
|
50089 |
|
50090 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/block-contents.js
|
50091 |
|
50171 |
}, props));
|
50172 |
});
|
50173 |
});
|
50174 |
+
/* harmony default export */ var off_canvas_editor_block_contents = (block_contents_ListViewBlockContents);
|
50175 |
+
|
50176 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/block-edit-button.js
|
50177 |
+
|
50178 |
+
|
50179 |
+
|
50180 |
+
/**
|
50181 |
+
* WordPress dependencies
|
50182 |
+
*/
|
50183 |
+
|
50184 |
+
|
50185 |
+
|
50186 |
+
|
50187 |
+
/**
|
50188 |
+
* Internal dependencies
|
50189 |
+
*/
|
50190 |
+
|
50191 |
+
|
50192 |
+
/* harmony default export */ var block_edit_button = ((0,external_wp_element_namespaceObject.forwardRef)(function BlockEditButton(_ref, ref) {
|
50193 |
+
let {
|
50194 |
+
clientId,
|
50195 |
+
...props
|
50196 |
+
} = _ref;
|
50197 |
+
const {
|
50198 |
+
selectBlock
|
50199 |
+
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
50200 |
+
|
50201 |
+
const onClick = () => {
|
50202 |
+
selectBlock(clientId);
|
50203 |
+
};
|
50204 |
+
|
50205 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, _extends({}, props, {
|
50206 |
+
ref: ref,
|
50207 |
+
icon: library_edit,
|
50208 |
+
onClick: onClick
|
50209 |
+
}));
|
50210 |
+
}));
|
50211 |
|
50212 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/context.js
|
50213 |
/**
|
50265 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/block.js
|
50266 |
|
50267 |
|
50268 |
+
|
50269 |
/**
|
50270 |
* External dependencies
|
50271 |
*/
|
50295 |
|
50296 |
|
50297 |
|
50298 |
+
|
50299 |
function block_ListViewBlock(_ref) {
|
50300 |
let {
|
50301 |
block,
|
50317 |
const cellRef = (0,external_wp_element_namespaceObject.useRef)(null);
|
50318 |
const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
|
50319 |
const {
|
50320 |
+
clientId,
|
50321 |
+
attributes
|
50322 |
} = block;
|
50323 |
const {
|
50324 |
isLocked,
|
50338 |
const isFirstSelectedBlock = forceSelectionContentLock || isSelected && selectedClientIds[0] === clientId;
|
50339 |
const isLastSelectedBlock = forceSelectionContentLock || isSelected && selectedClientIds[selectedClientIds.length - 1] === clientId;
|
50340 |
const {
|
50341 |
+
replaceBlock,
|
50342 |
toggleBlockHighlight
|
50343 |
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
50344 |
const blockInformation = useBlockDisplayInformation(clientId);
|
50361 |
|
50362 |
const settingsAriaLabel = blockInformation ? (0,external_wp_i18n_namespaceObject.sprintf)( // translators: %s: The title of the block.
|
50363 |
(0,external_wp_i18n_namespaceObject.__)('Options for %s block'), blockInformation.title) : (0,external_wp_i18n_namespaceObject.__)('Options');
|
50364 |
+
const editAriaLabel = blockInformation ? (0,external_wp_i18n_namespaceObject.sprintf)( // translators: %s: The title of the block.
|
50365 |
+
(0,external_wp_i18n_namespaceObject.__)('Edit %s block'), blockInformation.title) : (0,external_wp_i18n_namespaceObject.__)('Edit');
|
50366 |
const {
|
50367 |
isTreeGridMounted,
|
50368 |
expand,
|
50369 |
collapse
|
50370 |
} = context_useListViewContext();
|
50371 |
+
const isEditable = block.name !== 'core/page-list-item';
|
50372 |
const hasSiblings = siblingBlockCount > 0;
|
50373 |
const hasRenderedMovers = showBlockMovers && hasSiblings;
|
50374 |
const moverCellClassName = classnames_default()('block-editor-list-view-block__mover-cell', {
|
50376 |
});
|
50377 |
const listViewBlockSettingsClassName = classnames_default()('block-editor-list-view-block__menu-cell', {
|
50378 |
'is-visible': isHovered || isFirstSelectedBlock
|
50379 |
+
});
|
50380 |
+
const listViewBlockEditClassName = classnames_default()('block-editor-list-view-block__menu-cell', {
|
50381 |
+
'is-visible': isHovered || isFirstSelectedBlock
|
50382 |
}); // If ListView has experimental features related to the Persistent List View,
|
50383 |
// only focus the selected list item on mount; otherwise the list would always
|
50384 |
// try to steal the focus from the editor canvas.
|
50514 |
tabIndex: tabIndex,
|
50515 |
onFocus: onFocus
|
50516 |
});
|
50517 |
+
}))), showBlockActions && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
|
50518 |
+
className: listViewBlockEditClassName,
|
50519 |
+
"aria-selected": !!isSelected || forceSelectionContentLock
|
50520 |
+
}, props => isEditable && (0,external_wp_element_namespaceObject.createElement)(block_edit_button, _extends({}, props, {
|
50521 |
+
label: editAriaLabel,
|
50522 |
+
clientId: clientId
|
50523 |
+
}))), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
|
50524 |
className: listViewBlockSettingsClassName,
|
50525 |
"aria-selected": !!isSelected || forceSelectionContentLock
|
50526 |
}, _ref5 => {
|
50541 |
},
|
50542 |
disableOpenOnArrowDown: true,
|
50543 |
__experimentalSelectBlock: updateSelection
|
50544 |
+
}, _ref6 => {
|
50545 |
+
let {
|
50546 |
+
onClose
|
50547 |
+
} = _ref6;
|
50548 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
50549 |
+
onClick: () => {
|
50550 |
+
const newLink = (0,external_wp_blocks_namespaceObject.createBlock)('core/navigation-link');
|
50551 |
+
const newSubmenu = (0,external_wp_blocks_namespaceObject.createBlock)('core/navigation-submenu', attributes, block.innerBlocks ? [...block.innerBlocks, newLink] : [newLink]);
|
50552 |
+
replaceBlock(clientId, newSubmenu);
|
50553 |
+
onClose();
|
50554 |
+
}
|
50555 |
+
}, (0,external_wp_i18n_namespaceObject.__)('Add a submenu item'));
|
50556 |
});
|
50557 |
+
})));
|
50558 |
}
|
50559 |
|
50560 |
+
/* harmony default export */ var off_canvas_editor_block = ((0,external_wp_element_namespaceObject.memo)(block_ListViewBlock));
|
50561 |
|
50562 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/branch.js
|
50563 |
|
50723 |
branch_ListViewBranch.defaultProps = {
|
50724 |
selectBlock: () => {}
|
50725 |
};
|
50726 |
+
/* harmony default export */ var off_canvas_editor_branch = ((0,external_wp_element_namespaceObject.memo)(branch_ListViewBranch));
|
50727 |
|
50728 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/drop-indicator.js
|
50729 |
|
51259 |
};
|
51260 |
}
|
51261 |
|
51262 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/link-ui.js
|
51263 |
+
|
51264 |
+
// Note: this file is copied directly from packages/block-library/src/navigation-link/link-ui.js
|
51265 |
+
|
51266 |
+
/**
|
51267 |
+
* WordPress dependencies
|
51268 |
+
*/
|
51269 |
+
|
51270 |
+
|
51271 |
+
|
51272 |
+
|
51273 |
+
|
51274 |
+
/**
|
51275 |
+
* Internal dependencies
|
51276 |
+
*/
|
51277 |
+
|
51278 |
+
|
51279 |
+
|
51280 |
+
|
51281 |
+
/**
|
51282 |
+
* Given the Link block's type attribute, return the query params to give to
|
51283 |
+
* /wp/v2/search.
|
51284 |
+
*
|
51285 |
+
* @param {string} type Link block's type attribute.
|
51286 |
+
* @param {string} kind Link block's entity of kind (post-type|taxonomy)
|
51287 |
+
* @return {{ type?: string, subtype?: string }} Search query params.
|
51288 |
+
*/
|
51289 |
+
|
51290 |
+
function getSuggestionsQuery(type, kind) {
|
51291 |
+
switch (type) {
|
51292 |
+
case 'post':
|
51293 |
+
case 'page':
|
51294 |
+
return {
|
51295 |
+
type: 'post',
|
51296 |
+
subtype: type
|
51297 |
+
};
|
51298 |
+
|
51299 |
+
case 'category':
|
51300 |
+
return {
|
51301 |
+
type: 'term',
|
51302 |
+
subtype: 'category'
|
51303 |
+
};
|
51304 |
+
|
51305 |
+
case 'tag':
|
51306 |
+
return {
|
51307 |
+
type: 'term',
|
51308 |
+
subtype: 'post_tag'
|
51309 |
+
};
|
51310 |
+
|
51311 |
+
case 'post_format':
|
51312 |
+
return {
|
51313 |
+
type: 'post-format'
|
51314 |
+
};
|
51315 |
+
|
51316 |
+
default:
|
51317 |
+
if (kind === 'taxonomy') {
|
51318 |
+
return {
|
51319 |
+
type: 'term',
|
51320 |
+
subtype: type
|
51321 |
+
};
|
51322 |
+
}
|
51323 |
+
|
51324 |
+
if (kind === 'post-type') {
|
51325 |
+
return {
|
51326 |
+
type: 'post',
|
51327 |
+
subtype: type
|
51328 |
+
};
|
51329 |
+
}
|
51330 |
+
|
51331 |
+
return {};
|
51332 |
+
}
|
51333 |
+
}
|
51334 |
+
/**
|
51335 |
+
* Add transforms to Link Control
|
51336 |
+
*
|
51337 |
+
* @param {Object} props Component props.
|
51338 |
+
* @param {string} props.clientId Block client ID.
|
51339 |
+
*/
|
51340 |
+
|
51341 |
+
function LinkControlTransforms(_ref) {
|
51342 |
+
let {
|
51343 |
+
clientId
|
51344 |
+
} = _ref;
|
51345 |
+
const {
|
51346 |
+
getBlock,
|
51347 |
+
blockTransforms
|
51348 |
+
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
51349 |
+
const {
|
51350 |
+
getBlock: _getBlock,
|
51351 |
+
getBlockRootClientId,
|
51352 |
+
getBlockTransformItems
|
51353 |
+
} = select(store);
|
51354 |
+
return {
|
51355 |
+
getBlock: _getBlock,
|
51356 |
+
blockTransforms: getBlockTransformItems(_getBlock(clientId), getBlockRootClientId(clientId))
|
51357 |
+
};
|
51358 |
+
}, [clientId]);
|
51359 |
+
const {
|
51360 |
+
replaceBlock
|
51361 |
+
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
51362 |
+
const featuredBlocks = ['core/site-logo', 'core/social-links', 'core/search'];
|
51363 |
+
const transforms = blockTransforms.filter(item => {
|
51364 |
+
return featuredBlocks.includes(item.name);
|
51365 |
+
});
|
51366 |
+
|
51367 |
+
if (!(transforms !== null && transforms !== void 0 && transforms.length)) {
|
51368 |
+
return null;
|
51369 |
+
}
|
51370 |
+
|
51371 |
+
if (!clientId) {
|
51372 |
+
return null;
|
51373 |
+
}
|
51374 |
+
|
51375 |
+
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
51376 |
+
className: "link-control-transform"
|
51377 |
+
}, (0,external_wp_element_namespaceObject.createElement)("h3", {
|
51378 |
+
className: "link-control-transform__subheading"
|
51379 |
+
}, (0,external_wp_i18n_namespaceObject.__)('Transform')), (0,external_wp_element_namespaceObject.createElement)("div", {
|
51380 |
+
className: "link-control-transform__items"
|
51381 |
+
}, transforms.map((item, index) => {
|
51382 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
|
51383 |
+
key: `transform-${index}`,
|
51384 |
+
onClick: () => replaceBlock(clientId, (0,external_wp_blocks_namespaceObject.switchToBlockType)(getBlock(clientId), item.name)),
|
51385 |
+
className: "link-control-transform__item"
|
51386 |
+
}, (0,external_wp_element_namespaceObject.createElement)(block_icon, {
|
51387 |
+
icon: item.icon
|
51388 |
+
}), item.title);
|
51389 |
+
})));
|
51390 |
+
}
|
51391 |
+
|
51392 |
+
function LinkUI(props) {
|
51393 |
+
const {
|
51394 |
+
label,
|
51395 |
+
url,
|
51396 |
+
opensInNewTab,
|
51397 |
+
type,
|
51398 |
+
kind
|
51399 |
+
} = props.link;
|
51400 |
+
const link = {
|
51401 |
+
url,
|
51402 |
+
opensInNewTab,
|
51403 |
+
title: label && (0,external_wp_dom_namespaceObject.__unstableStripHTML)(label)
|
51404 |
+
};
|
51405 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
|
51406 |
+
placement: "bottom",
|
51407 |
+
onClose: props.onClose,
|
51408 |
+
anchor: props.anchor,
|
51409 |
+
shift: true
|
51410 |
+
}, (0,external_wp_element_namespaceObject.createElement)(link_control, {
|
51411 |
+
hasTextControl: true,
|
51412 |
+
hasRichPreviews: true,
|
51413 |
+
className: props.className,
|
51414 |
+
value: link,
|
51415 |
+
showInitialSuggestions: true,
|
51416 |
+
withCreateSuggestion: props.hasCreateSuggestion,
|
51417 |
+
noDirectEntry: !!type,
|
51418 |
+
noURLSuggestion: !!type,
|
51419 |
+
suggestionsQuery: getSuggestionsQuery(type, kind),
|
51420 |
+
onChange: props.onChange,
|
51421 |
+
onRemove: props.onRemove,
|
51422 |
+
renderControlBottom: !url ? () => (0,external_wp_element_namespaceObject.createElement)(LinkControlTransforms, {
|
51423 |
+
clientId: props.clientId
|
51424 |
+
}) : null
|
51425 |
+
}));
|
51426 |
+
}
|
51427 |
+
|
51428 |
+
;// CONCATENATED MODULE: external ["wp","escapeHtml"]
|
51429 |
+
var external_wp_escapeHtml_namespaceObject = window["wp"]["escapeHtml"];
|
51430 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/update-attributes.js
|
51431 |
+
/**
|
51432 |
+
* WordPress dependencies
|
51433 |
+
*/
|
51434 |
+
|
51435 |
+
|
51436 |
+
/**
|
51437 |
+
* @typedef {'post-type'|'custom'|'taxonomy'|'post-type-archive'} WPNavigationLinkKind
|
51438 |
+
*/
|
51439 |
+
|
51440 |
+
/**
|
51441 |
+
* Navigation Link Block Attributes
|
51442 |
+
*
|
51443 |
+
* @typedef {Object} WPNavigationLinkBlockAttributes
|
51444 |
+
*
|
51445 |
+
* @property {string} [label] Link text.
|
51446 |
+
* @property {WPNavigationLinkKind} [kind] Kind is used to differentiate between term and post ids to check post draft status.
|
51447 |
+
* @property {string} [type] The type such as post, page, tag, category and other custom types.
|
51448 |
+
* @property {string} [rel] The relationship of the linked URL.
|
51449 |
+
* @property {number} [id] A post or term id.
|
51450 |
+
* @property {boolean} [opensInNewTab] Sets link target to _blank when true.
|
51451 |
+
* @property {string} [url] Link href.
|
51452 |
+
* @property {string} [title] Link title attribute.
|
51453 |
+
*/
|
51454 |
+
|
51455 |
+
/**
|
51456 |
+
* Link Control onChange handler that updates block attributes when a setting is changed.
|
51457 |
+
*
|
51458 |
+
* @param {Object} updatedValue New block attributes to update.
|
51459 |
+
* @param {Function} setAttributes Block attribute update function.
|
51460 |
+
* @param {WPNavigationLinkBlockAttributes} blockAttributes Current block attributes.
|
51461 |
+
*
|
51462 |
+
*/
|
51463 |
+
|
51464 |
+
const updateAttributes = function () {
|
51465 |
+
let updatedValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
51466 |
+
let setAttributes = arguments.length > 1 ? arguments[1] : undefined;
|
51467 |
+
let blockAttributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
51468 |
+
const {
|
51469 |
+
label: originalLabel = '',
|
51470 |
+
kind: originalKind = '',
|
51471 |
+
type: originalType = ''
|
51472 |
+
} = blockAttributes;
|
51473 |
+
const {
|
51474 |
+
title: newLabel = '',
|
51475 |
+
// the title of any provided Post.
|
51476 |
+
url: newUrl = '',
|
51477 |
+
opensInNewTab,
|
51478 |
+
id,
|
51479 |
+
kind: newKind = originalKind,
|
51480 |
+
type: newType = originalType
|
51481 |
+
} = updatedValue;
|
51482 |
+
const newLabelWithoutHttp = newLabel.replace(/http(s?):\/\//gi, '');
|
51483 |
+
const newUrlWithoutHttp = newUrl.replace(/http(s?):\/\//gi, '');
|
51484 |
+
const useNewLabel = newLabel && newLabel !== originalLabel && // LinkControl without the title field relies
|
51485 |
+
// on the check below. Specifically, it assumes that
|
51486 |
+
// the URL is the same as a title.
|
51487 |
+
// This logic a) looks suspicious and b) should really
|
51488 |
+
// live in the LinkControl and not here. It's a great
|
51489 |
+
// candidate for future refactoring.
|
51490 |
+
newLabelWithoutHttp !== newUrlWithoutHttp; // Unfortunately this causes the escaping model to be inverted.
|
51491 |
+
// The escaped content is stored in the block attributes (and ultimately in the database),
|
51492 |
+
// and then the raw data is "recovered" when outputting into the DOM.
|
51493 |
+
// It would be preferable to store the **raw** data in the block attributes and escape it in JS.
|
51494 |
+
// Why? Because there isn't one way to escape data. Depending on the context, you need to do
|
51495 |
+
// different transforms. It doesn't make sense to me to choose one of them for the purposes of storage.
|
51496 |
+
// See also:
|
51497 |
+
// - https://github.com/WordPress/gutenberg/pull/41063
|
51498 |
+
// - https://github.com/WordPress/gutenberg/pull/18617.
|
51499 |
+
|
51500 |
+
const label = useNewLabel ? (0,external_wp_escapeHtml_namespaceObject.escapeHTML)(newLabel) : originalLabel || (0,external_wp_escapeHtml_namespaceObject.escapeHTML)(newUrlWithoutHttp); // In https://github.com/WordPress/gutenberg/pull/24670 we decided to use "tag" in favor of "post_tag"
|
51501 |
+
|
51502 |
+
const type = newType === 'post_tag' ? 'tag' : newType.replace('-', '_');
|
51503 |
+
const isBuiltInType = ['post', 'page', 'tag', 'category'].indexOf(type) > -1;
|
51504 |
+
const isCustomLink = !newKind && !isBuiltInType || newKind === 'custom';
|
51505 |
+
const kind = isCustomLink ? 'custom' : newKind;
|
51506 |
+
setAttributes({ // Passed `url` may already be encoded. To prevent double encoding, decodeURI is executed to revert to the original string.
|
51507 |
+
...(newUrl && {
|
51508 |
+
url: encodeURI((0,external_wp_url_namespaceObject.safeDecodeURI)(newUrl))
|
51509 |
+
}),
|
51510 |
+
...(label && {
|
51511 |
+
label
|
51512 |
+
}),
|
51513 |
+
...(undefined !== opensInNewTab && {
|
51514 |
+
opensInNewTab
|
51515 |
+
}),
|
51516 |
+
...(id && Number.isInteger(id) && {
|
51517 |
+
id
|
51518 |
+
}),
|
51519 |
+
...(kind && {
|
51520 |
+
kind
|
51521 |
+
}),
|
51522 |
+
...(type && type !== 'URL' && {
|
51523 |
+
type
|
51524 |
+
})
|
51525 |
+
});
|
51526 |
+
};
|
51527 |
+
|
51528 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/appender.js
|
51529 |
+
|
51530 |
+
|
51531 |
+
|
51532 |
+
/**
|
51533 |
+
* WordPress dependencies
|
51534 |
+
*/
|
51535 |
+
|
51536 |
+
|
51537 |
+
/**
|
51538 |
+
* Internal dependencies
|
51539 |
+
*/
|
51540 |
+
|
51541 |
+
|
51542 |
+
|
51543 |
+
|
51544 |
+
|
51545 |
+
const Appender = (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
|
51546 |
+
const [insertedBlock, setInsertedBlock] = (0,external_wp_element_namespaceObject.useState)();
|
51547 |
+
const {
|
51548 |
+
hideInserter,
|
51549 |
+
clientId
|
51550 |
+
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
51551 |
+
const {
|
51552 |
+
getTemplateLock,
|
51553 |
+
__unstableGetEditorMode,
|
51554 |
+
getSelectedBlockClientId
|
51555 |
+
} = select(store);
|
51556 |
+
|
51557 |
+
const _clientId = getSelectedBlockClientId();
|
51558 |
+
|
51559 |
+
return {
|
51560 |
+
clientId: getSelectedBlockClientId(),
|
51561 |
+
hideInserter: !!getTemplateLock(_clientId) || __unstableGetEditorMode() === 'zoom-out'
|
51562 |
+
};
|
51563 |
+
}, []);
|
51564 |
+
const {
|
51565 |
+
insertedBlockAttributes
|
51566 |
+
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
51567 |
+
const {
|
51568 |
+
getBlockAttributes
|
51569 |
+
} = select(store);
|
51570 |
+
return {
|
51571 |
+
insertedBlockAttributes: getBlockAttributes(insertedBlock)
|
51572 |
+
};
|
51573 |
+
}, [insertedBlock]);
|
51574 |
+
const {
|
51575 |
+
updateBlockAttributes
|
51576 |
+
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
51577 |
+
|
51578 |
+
const setAttributes = insertedBlockClientId => _updatedAttributes => {
|
51579 |
+
updateBlockAttributes(insertedBlockClientId, _updatedAttributes);
|
51580 |
+
};
|
51581 |
+
|
51582 |
+
let maybeLinkUI;
|
51583 |
+
|
51584 |
+
if (insertedBlock) {
|
51585 |
+
maybeLinkUI = (0,external_wp_element_namespaceObject.createElement)(LinkUI, {
|
51586 |
+
clientId: insertedBlock,
|
51587 |
+
link: insertedBlockAttributes,
|
51588 |
+
onClose: () => setInsertedBlock(null),
|
51589 |
+
hasCreateSuggestion: false,
|
51590 |
+
onChange: updatedValue => {
|
51591 |
+
updateAttributes(updatedValue, setAttributes(insertedBlock), insertedBlockAttributes);
|
51592 |
+
setInsertedBlock(null);
|
51593 |
+
}
|
51594 |
+
});
|
51595 |
+
}
|
51596 |
+
|
51597 |
+
if (hideInserter) {
|
51598 |
+
return null;
|
51599 |
+
}
|
51600 |
+
|
51601 |
+
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
51602 |
+
className: "offcanvas-editor__appender"
|
51603 |
+
}, maybeLinkUI, (0,external_wp_element_namespaceObject.createElement)(inserter, _extends({
|
51604 |
+
ref: ref,
|
51605 |
+
rootClientId: clientId,
|
51606 |
+
position: "bottom right",
|
51607 |
+
isAppender: true,
|
51608 |
+
selectBlockOnInsert: false,
|
51609 |
+
onSelectOrClose: _ref => {
|
51610 |
+
let {
|
51611 |
+
insertedBlockId
|
51612 |
+
} = _ref;
|
51613 |
+
setInsertedBlock(insertedBlockId);
|
51614 |
+
}
|
51615 |
+
}, props)));
|
51616 |
+
});
|
51617 |
+
|
51618 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/off-canvas-editor/index.js
|
51619 |
|
51620 |
|
51639 |
|
51640 |
|
51641 |
|
51642 |
+
|
51643 |
const off_canvas_editor_expanded = (state, action) => {
|
51644 |
if (Array.isArray(action.clientIds)) {
|
51645 |
return { ...state,
|
51710 |
firstSelectedBlockClientId: selectedClientIds[0],
|
51711 |
setExpandedState
|
51712 |
});
|
51713 |
+
const selectEditorBlock = (0,external_wp_element_namespaceObject.useCallback)((event, blockClientId) => {
|
51714 |
+
updateBlockSelection(event, blockClientId);
|
51715 |
+
setSelectedTreeId(blockClientId);
|
51716 |
}, [setSelectedTreeId, updateBlockSelection]);
|
51717 |
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
51718 |
isMounted.current = true;
|
51724 |
useWindowing: true,
|
51725 |
windowOverscan: 40
|
51726 |
});
|
51727 |
+
const expand = (0,external_wp_element_namespaceObject.useCallback)(blockClientId => {
|
51728 |
+
if (!blockClientId) {
|
51729 |
return;
|
51730 |
}
|
51731 |
|
51732 |
setExpandedState({
|
51733 |
type: 'expand',
|
51734 |
+
clientIds: [blockClientId]
|
51735 |
});
|
51736 |
}, [setExpandedState]);
|
51737 |
+
const collapse = (0,external_wp_element_namespaceObject.useCallback)(blockClientId => {
|
51738 |
+
if (!blockClientId) {
|
51739 |
return;
|
51740 |
}
|
51741 |
|
51742 |
setExpandedState({
|
51743 |
type: 'collapse',
|
51744 |
+
clientIds: [blockClientId]
|
51745 |
});
|
51746 |
}, [setExpandedState]);
|
51747 |
const expandRow = (0,external_wp_element_namespaceObject.useCallback)(row => {
|
51773 |
}, (0,external_wp_element_namespaceObject.createElement)(drop_indicator_ListViewDropIndicator, {
|
51774 |
listViewRef: elementRef,
|
51775 |
blockDropTarget: blockDropTarget
|
51776 |
+
}), (0,external_wp_element_namespaceObject.createElement)("div", {
|
51777 |
+
className: "offcanvas-editor-list-view-tree-wrapper"
|
51778 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTreeGrid, {
|
51779 |
id: id,
|
51780 |
className: "block-editor-list-view-tree",
|
51781 |
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Block navigation structure'),
|
51795 |
isExpanded: isExpanded,
|
51796 |
shouldShowInnerBlocks: shouldShowInnerBlocks,
|
51797 |
selectBlockInCanvas: selectBlockInCanvas
|
51798 |
+
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridRow, {
|
51799 |
+
level: 1,
|
51800 |
+
setSize: 1,
|
51801 |
+
positionInSet: 1,
|
51802 |
+
isExpanded: true
|
51803 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridCell, null, treeGridCellProps => (0,external_wp_element_namespaceObject.createElement)(Appender, treeGridCellProps)))))));
|
51804 |
}
|
51805 |
|
51806 |
+
/* harmony default export */ var off_canvas_editor = ((0,external_wp_element_namespaceObject.forwardRef)(__ExperimentalOffCanvasEditor));
|
51807 |
|
51808 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/media.js
|
51809 |
|
51818 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
51819 |
d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"
|
51820 |
}));
|
51821 |
+
/* harmony default export */ var library_media = (media);
|
51822 |
|
51823 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/upload.js
|
51824 |
|
51833 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
51834 |
d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
|
51835 |
}));
|
51836 |
+
/* harmony default export */ var library_upload = (upload);
|
51837 |
|
51838 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/post-featured-image.js
|
51839 |
|
51848 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
51849 |
d: "M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"
|
51850 |
}));
|
51851 |
+
/* harmony default export */ var post_featured_image = (postFeaturedImage);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51852 |
|
51853 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-replace-flow/index.js
|
51854 |
|
52018 |
onClick: open
|
52019 |
}, (0,external_wp_i18n_namespaceObject.__)('Open Media Library'));
|
52020 |
}
|
52021 |
+
}), (0,external_wp_element_namespaceObject.createElement)(check, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.FormFileUpload, {
|
52022 |
onChange: event => {
|
52023 |
uploadFiles(event, onClose);
|
52024 |
},
|
52069 |
*/
|
52070 |
|
52071 |
|
52072 |
+
/* harmony default export */ var media_replace_flow = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
|
52073 |
const {
|
52074 |
createNotice,
|
52075 |
removeNotice
|
52285 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/url-popover/README.md
|
52286 |
*/
|
52287 |
|
52288 |
+
/* harmony default export */ var url_popover = (URLPopover);
|
52289 |
|
52290 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-placeholder/index.js
|
52291 |
|
52659 |
};
|
52660 |
|
52661 |
if (disableMediaButtons) {
|
52662 |
+
return (0,external_wp_element_namespaceObject.createElement)(check, null, renderDropZone());
|
52663 |
}
|
52664 |
|
52665 |
+
return (0,external_wp_element_namespaceObject.createElement)(check, {
|
52666 |
fallback: renderPlaceholder(renderUrlSelectionUI())
|
52667 |
}, renderMediaUploadChecked());
|
52668 |
}
|
52670 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-placeholder/README.md
|
52671 |
*/
|
52672 |
|
52673 |
+
/* harmony default export */ var media_placeholder = ((0,external_wp_components_namespaceObject.withFilters)('editor.MediaPlaceholder')(MediaPlaceholder));
|
52674 |
|
52675 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/panel-color-settings/index.js
|
52676 |
|
52708 |
}, props));
|
52709 |
};
|
52710 |
|
52711 |
+
/* harmony default export */ var panel_color_settings = (PanelColorSettings);
|
52712 |
|
52713 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar/index.js
|
52714 |
|
52775 |
}));
|
52776 |
};
|
52777 |
|
52778 |
+
/* harmony default export */ var format_toolbar = (FormatToolbar);
|
52779 |
|
52780 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar-container.js
|
52781 |
|
52867 |
}, (0,external_wp_element_namespaceObject.createElement)(format_toolbar, null));
|
52868 |
};
|
52869 |
|
52870 |
+
/* harmony default export */ var format_toolbar_container = (FormatToolbarContainer);
|
52871 |
|
52872 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-undo-automatic-change.js
|
52873 |
/**
|
52900 |
return;
|
52901 |
}
|
52902 |
|
52903 |
+
const {
|
52904 |
+
__experimentalUndo
|
52905 |
+
} = getSettings();
|
52906 |
+
|
52907 |
+
if (!__experimentalUndo) {
|
52908 |
+
return;
|
52909 |
+
}
|
52910 |
+
|
52911 |
if (!didAutomaticChange()) {
|
52912 |
return;
|
52913 |
}
|
52914 |
|
52915 |
event.preventDefault();
|
52916 |
|
52917 |
+
__experimentalUndo();
|
52918 |
}
|
52919 |
|
52920 |
element.addEventListener('keydown', onKeyDown);
|
52984 |
}
|
52985 |
|
52986 |
;// CONCATENATED MODULE: external ["wp","shortcode"]
|
52987 |
+
var external_wp_shortcode_namespaceObject = window["wp"]["shortcode"];
|
52988 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/utils.js
|
52989 |
|
52990 |
|
54018 |
}, []);
|
54019 |
}
|
54020 |
|
54021 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-insert-replacement-text.js
|
54022 |
+
/**
|
54023 |
+
* WordPress dependencies
|
54024 |
+
*/
|
54025 |
+
|
54026 |
+
|
54027 |
+
/**
|
54028 |
+
* Internal dependencies
|
54029 |
+
*/
|
54030 |
+
|
54031 |
+
|
54032 |
+
/**
|
54033 |
+
* When the browser is about to auto correct, add an undo level so the user can
|
54034 |
+
* revert the change.
|
54035 |
+
*/
|
54036 |
+
|
54037 |
+
function useInsertReplacementText() {
|
54038 |
+
const {
|
54039 |
+
__unstableMarkLastChangeAsPersistent
|
54040 |
+
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
54041 |
+
return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
|
54042 |
+
function onInput(event) {
|
54043 |
+
if (event.inputType === 'insertReplacementText') {
|
54044 |
+
__unstableMarkLastChangeAsPersistent();
|
54045 |
+
}
|
54046 |
+
}
|
54047 |
+
|
54048 |
+
element.addEventListener('beforeinput', onInput);
|
54049 |
+
return () => {
|
54050 |
+
element.removeEventListener('beforeinput', onInput);
|
54051 |
+
};
|
54052 |
+
}, []);
|
54053 |
+
}
|
54054 |
+
|
54055 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-firefox-compat.js
|
54056 |
/**
|
54057 |
* WordPress dependencies
|
54201 |
|
54202 |
|
54203 |
|
54204 |
+
|
54205 |
const keyboardShortcutContext = (0,external_wp_element_namespaceObject.createContext)();
|
54206 |
const inputEventContext = (0,external_wp_element_namespaceObject.createContext)();
|
54207 |
/**
|
54536 |
formatTypes,
|
54537 |
onReplace,
|
54538 |
selectionChange
|
54539 |
+
}), useInsertReplacementText(), useRemoveBrowserShortcuts(), useShortcuts(keyboardShortcuts), useInputEvents(inputEvents), useUndoAutomaticChange(), usePasteHandler({
|
54540 |
isSelected,
|
54541 |
disableFormats,
|
54542 |
onChange,
|
54617 |
*/
|
54618 |
|
54619 |
|
54620 |
+
/* harmony default export */ var rich_text = (ForwardedRichTextContainer);
|
54621 |
|
54622 |
|
54623 |
|
54657 |
*/
|
54658 |
|
54659 |
|
54660 |
+
/* harmony default export */ var editable_text = (EditableText);
|
54661 |
|
54662 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/plain-text/index.js
|
54663 |
|
54705 |
onChange: event => onChange(event.target.value)
|
54706 |
}, remainingProps));
|
54707 |
});
|
54708 |
+
/* harmony default export */ var plain_text = (PlainText);
|
54709 |
|
54710 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/responsive-block-control/label.js
|
54711 |
|
54826 |
}, !isResponsive && defaultControl, isResponsive && (renderResponsiveControls ? renderResponsiveControls(viewports) : defaultResponsiveControls()))));
|
54827 |
}
|
54828 |
|
54829 |
+
/* harmony default export */ var responsive_block_control = (ResponsiveBlockControl);
|
54830 |
|
54831 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/shortcut.js
|
54832 |
/**
|
55002 |
});
|
55003 |
}
|
55004 |
|
55005 |
+
/* harmony default export */ var tool_selector = ((0,external_wp_element_namespaceObject.forwardRef)(ToolSelector));
|
55006 |
|
55007 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/unit-control/index.js
|
55008 |
|
55044 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
55045 |
d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"
|
55046 |
}));
|
55047 |
+
/* harmony default export */ var arrow_left = (arrowLeft);
|
55048 |
|
55049 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/button.js
|
55050 |
|
55126 |
*/
|
55127 |
|
55128 |
|
55129 |
+
/* harmony default export */ var url_input_button = (URLInputButton);
|
55130 |
|
55131 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/close.js
|
55132 |
|
55141 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
55142 |
d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
|
55143 |
}));
|
55144 |
+
/* harmony default export */ var library_close = (close_close);
|
55145 |
|
55146 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/image-url-input-ui.js
|
55147 |
|
55574 |
*/
|
55575 |
|
55576 |
|
55577 |
+
/* harmony default export */ var skip_to_selected_block = ((0,external_wp_data_namespaceObject.withSelect)(select => {
|
55578 |
return {
|
55579 |
selectedBlockClientId: select(store).getBlockSelectionStart()
|
55580 |
};
|
55581 |
})(SkipToSelectedBlock));
|
55582 |
|
55583 |
;// CONCATENATED MODULE: external ["wp","wordcount"]
|
55584 |
+
var external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
|
55585 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/multi-selection-inspector/index.js
|
55586 |
|
55587 |
|
55623 |
(0,external_wp_i18n_namespaceObject._n)('%d word', '%d words', words), words))));
|
55624 |
}
|
55625 |
|
55626 |
+
/* harmony default export */ var multi_selection_inspector = ((0,external_wp_data_namespaceObject.withSelect)(select => {
|
55627 |
const {
|
55628 |
getMultiSelectedBlocks
|
55629 |
} = select(store);
|
55705 |
}));
|
55706 |
}
|
55707 |
|
55708 |
+
;// CONCATENATED MODULE: ./packages/icons/build-module/library/cog.js
|
55709 |
+
|
55710 |
+
|
55711 |
+
/**
|
55712 |
+
* WordPress dependencies
|
55713 |
+
*/
|
55714 |
+
|
55715 |
+
const cog = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
|
55716 |
+
xmlns: "http://www.w3.org/2000/svg",
|
55717 |
+
viewBox: "0 0 24 24"
|
55718 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
55719 |
+
fillRule: "evenodd",
|
55720 |
+
d: "M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",
|
55721 |
+
clipRule: "evenodd"
|
55722 |
+
}));
|
55723 |
+
/* harmony default export */ var library_cog = (cog);
|
55724 |
+
|
55725 |
+
;// CONCATENATED MODULE: ./packages/icons/build-module/library/styles.js
|
55726 |
+
|
55727 |
+
|
55728 |
+
/**
|
55729 |
+
* WordPress dependencies
|
55730 |
+
*/
|
55731 |
+
|
55732 |
+
const styles = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
|
55733 |
+
viewBox: "0 0 24 24",
|
55734 |
+
xmlns: "http://www.w3.org/2000/svg"
|
55735 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
55736 |
+
d: "M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"
|
55737 |
+
}));
|
55738 |
+
/* harmony default export */ var library_styles = (styles);
|
55739 |
+
|
55740 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls-tabs/utils.js
|
55741 |
+
/**
|
55742 |
+
* WordPress dependencies
|
55743 |
+
*/
|
55744 |
+
|
55745 |
+
const TAB_SETTINGS = {
|
55746 |
+
name: 'settings',
|
55747 |
+
title: 'Settings',
|
55748 |
+
value: 'settings',
|
55749 |
+
icon: library_cog,
|
55750 |
+
className: 'block-editor-block-inspector__tab-item'
|
55751 |
+
};
|
55752 |
+
const TAB_STYLES = {
|
55753 |
+
name: 'styles',
|
55754 |
+
title: 'Styles',
|
55755 |
+
value: 'styles',
|
55756 |
+
icon: library_styles,
|
55757 |
+
className: 'block-editor-block-inspector__tab-item'
|
55758 |
+
};
|
55759 |
+
const TAB_LIST_VIEW = {
|
55760 |
+
name: 'list',
|
55761 |
+
title: 'List View',
|
55762 |
+
value: 'list-view',
|
55763 |
+
icon: list_view,
|
55764 |
+
className: 'block-editor-block-inspector__tab-item'
|
55765 |
+
};
|
55766 |
+
|
55767 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls-tabs/advanced-controls-panel.js
|
55768 |
+
|
55769 |
+
|
55770 |
+
/**
|
55771 |
+
* WordPress dependencies
|
55772 |
+
*/
|
55773 |
+
|
55774 |
+
|
55775 |
+
/**
|
55776 |
+
* Internal dependencies
|
55777 |
+
*/
|
55778 |
+
|
55779 |
+
|
55780 |
+
|
55781 |
+
const AdvancedControls = () => {
|
55782 |
+
const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(InspectorAdvancedControls.slotName);
|
55783 |
+
const hasFills = Boolean(fills && fills.length);
|
55784 |
+
|
55785 |
+
if (!hasFills) {
|
55786 |
+
return null;
|
55787 |
+
}
|
55788 |
+
|
55789 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
|
55790 |
+
className: "block-editor-block-inspector__advanced",
|
55791 |
+
title: (0,external_wp_i18n_namespaceObject.__)('Advanced'),
|
55792 |
+
initialOpen: false
|
55793 |
+
}, (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
55794 |
+
__experimentalGroup: "advanced"
|
55795 |
+
}));
|
55796 |
+
};
|
55797 |
+
|
55798 |
+
/* harmony default export */ var advanced_controls_panel = (AdvancedControls);
|
55799 |
+
|
55800 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls-tabs/settings-tab.js
|
55801 |
+
|
55802 |
+
|
55803 |
+
/**
|
55804 |
+
* Internal dependencies
|
55805 |
+
*/
|
55806 |
+
|
55807 |
+
|
55808 |
+
|
55809 |
+
const SettingsTab = _ref => {
|
55810 |
+
let {
|
55811 |
+
showAdvancedControls = false
|
55812 |
+
} = _ref;
|
55813 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, null), showAdvancedControls && (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)(advanced_controls_panel, null)));
|
55814 |
+
};
|
55815 |
+
|
55816 |
+
/* harmony default export */ var settings_tab = (SettingsTab);
|
55817 |
+
|
55818 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls-tabs/styles-tab.js
|
55819 |
+
|
55820 |
+
|
55821 |
+
/**
|
55822 |
+
* WordPress dependencies
|
55823 |
+
*/
|
55824 |
+
|
55825 |
+
|
55826 |
+
|
55827 |
+
/**
|
55828 |
+
* Internal dependencies
|
55829 |
+
*/
|
55830 |
+
|
55831 |
+
|
55832 |
+
|
55833 |
+
|
55834 |
+
|
55835 |
+
const StylesTab = _ref => {
|
55836 |
+
let {
|
55837 |
+
blockName,
|
55838 |
+
clientId,
|
55839 |
+
hasBlockStyles
|
55840 |
+
} = _ref;
|
55841 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, hasBlockStyles && (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
|
55842 |
+
title: (0,external_wp_i18n_namespaceObject.__)('Styles')
|
55843 |
+
}, (0,external_wp_element_namespaceObject.createElement)(block_styles, {
|
55844 |
+
clientId: clientId
|
55845 |
+
}), (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, 'defaultStylePicker', true) && (0,external_wp_element_namespaceObject.createElement)(DefaultStylePicker, {
|
55846 |
+
blockName: blockName
|
55847 |
+
}))), (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
55848 |
+
__experimentalGroup: "color",
|
55849 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Color'),
|
55850 |
+
className: "color-block-support-panel__inner-wrapper"
|
55851 |
+
}), (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
55852 |
+
__experimentalGroup: "typography",
|
55853 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Typography')
|
55854 |
+
}), (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
55855 |
+
__experimentalGroup: "dimensions",
|
55856 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Dimensions')
|
55857 |
+
}), (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
55858 |
+
__experimentalGroup: "border",
|
55859 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Border')
|
55860 |
+
}));
|
55861 |
+
};
|
55862 |
+
|
55863 |
+
/* harmony default export */ var styles_tab = (StylesTab);
|
55864 |
+
|
55865 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls-tabs/use-is-list-view-tab-disabled.js
|
55866 |
+
// List view tab restricts the blocks that may render to it via the
|
55867 |
+
// allowlist below.
|
55868 |
+
const allowlist = ['core/navigation'];
|
55869 |
+
const useIsListViewTabDisabled = blockName => {
|
55870 |
+
return !allowlist.includes(blockName);
|
55871 |
+
};
|
55872 |
+
/* harmony default export */ var use_is_list_view_tab_disabled = (useIsListViewTabDisabled);
|
55873 |
+
|
55874 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls-tabs/index.js
|
55875 |
+
|
55876 |
+
|
55877 |
+
/**
|
55878 |
+
* WordPress dependencies
|
55879 |
+
*/
|
55880 |
+
|
55881 |
+
/**
|
55882 |
+
* Internal dependencies
|
55883 |
+
*/
|
55884 |
+
|
55885 |
+
|
55886 |
+
|
55887 |
+
|
55888 |
+
|
55889 |
+
|
55890 |
+
function InspectorControlsTabs(_ref) {
|
55891 |
+
let {
|
55892 |
+
blockName,
|
55893 |
+
clientId,
|
55894 |
+
hasBlockStyles,
|
55895 |
+
tabs
|
55896 |
+
} = _ref;
|
55897 |
+
// The tabs panel will mount before fills are rendered to the list view
|
55898 |
+
// slot. This means the list view tab isn't initially included in the
|
55899 |
+
// available tabs so the panel defaults selection to the styles tab
|
55900 |
+
// which at the time is the first tab. This check allows blocks known to
|
55901 |
+
// include the list view tab to set it as the tab selected by default.
|
55902 |
+
const initialTabName = !use_is_list_view_tab_disabled(blockName) ? TAB_LIST_VIEW.name : undefined;
|
55903 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.TabPanel, {
|
55904 |
+
className: "block-editor-block-inspector__tabs",
|
55905 |
+
tabs: tabs,
|
55906 |
+
initialTabName: initialTabName,
|
55907 |
+
key: clientId
|
55908 |
+
}, tab => {
|
55909 |
+
if (tab.name === TAB_SETTINGS.name) {
|
55910 |
+
return (0,external_wp_element_namespaceObject.createElement)(settings_tab, {
|
55911 |
+
showAdvancedControls: !!blockName
|
55912 |
+
});
|
55913 |
+
}
|
55914 |
+
|
55915 |
+
if (tab.name === TAB_STYLES.name) {
|
55916 |
+
return (0,external_wp_element_namespaceObject.createElement)(styles_tab, {
|
55917 |
+
blockName: blockName,
|
55918 |
+
clientId: clientId,
|
55919 |
+
hasBlockStyles: hasBlockStyles
|
55920 |
+
});
|
55921 |
+
}
|
55922 |
+
|
55923 |
+
if (tab.name === TAB_LIST_VIEW.name) {
|
55924 |
+
return (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
55925 |
+
__experimentalGroup: "list"
|
55926 |
+
});
|
55927 |
+
}
|
55928 |
+
});
|
55929 |
+
}
|
55930 |
+
|
55931 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.js
|
55932 |
+
/**
|
55933 |
+
* WordPress dependencies
|
55934 |
+
*/
|
55935 |
+
|
55936 |
+
/**
|
55937 |
+
* Internal dependencies
|
55938 |
+
*/
|
55939 |
+
|
55940 |
+
|
55941 |
+
|
55942 |
+
|
55943 |
+
|
55944 |
+
function useInspectorControlsTabs(blockName) {
|
55945 |
+
const tabs = [];
|
55946 |
+
const {
|
55947 |
+
border: borderGroup,
|
55948 |
+
color: colorGroup,
|
55949 |
+
default: defaultGroup,
|
55950 |
+
dimensions: dimensionsGroup,
|
55951 |
+
list: listGroup,
|
55952 |
+
typography: typographyGroup
|
55953 |
+
} = inspector_controls_groups; // List View Tab: If there are any fills for the list group add that tab.
|
55954 |
+
|
55955 |
+
const listViewDisabled = use_is_list_view_tab_disabled(blockName);
|
55956 |
+
const listFills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(listGroup.Slot.__unstableName);
|
55957 |
+
|
55958 |
+
if (!listViewDisabled && !!listFills && listFills.length) {
|
55959 |
+
tabs.push(TAB_LIST_VIEW);
|
55960 |
+
} // Styles Tab: Add this tab if there are any fills for block supports
|
55961 |
+
// e.g. border, color, spacing, typography, etc.
|
55962 |
+
|
55963 |
+
|
55964 |
+
const styleFills = [...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(borderGroup.Slot.__unstableName) || []), ...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(colorGroup.Slot.__unstableName) || []), ...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(dimensionsGroup.Slot.__unstableName) || []), ...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(typographyGroup.Slot.__unstableName) || [])];
|
55965 |
+
|
55966 |
+
if (styleFills.length) {
|
55967 |
+
tabs.push(TAB_STYLES);
|
55968 |
+
} // Settings Tab: If there are any fills for the general InspectorControls
|
55969 |
+
// or Advanced Controls slot, then add this tab.
|
55970 |
+
|
55971 |
+
|
55972 |
+
const settingsFills = [...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(defaultGroup.Slot.__unstableName) || []), ...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(InspectorAdvancedControls.slotName) || [])];
|
55973 |
+
|
55974 |
+
if (settingsFills.length) {
|
55975 |
+
tabs.push(TAB_SETTINGS);
|
55976 |
+
}
|
55977 |
+
|
55978 |
+
return tabs;
|
55979 |
+
}
|
55980 |
+
|
55981 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-inspector/index.js
|
55982 |
|
55983 |
|
55984 |
+
|
55985 |
/**
|
55986 |
* WordPress dependencies
|
55987 |
*/
|
56005 |
|
56006 |
|
56007 |
|
56008 |
+
|
56009 |
+
|
56010 |
+
|
56011 |
function useContentBlocks(blockTypes, block) {
|
56012 |
+
const contentBlocksObjectAux = (0,external_wp_element_namespaceObject.useMemo)(() => {
|
56013 |
return blockTypes.reduce((result, blockType) => {
|
56014 |
if (blockType.name !== 'core/list-item' && Object.entries(blockType.attributes).some(_ref => {
|
56015 |
let [, {
|
56024 |
}, {});
|
56025 |
}, [blockTypes]);
|
56026 |
const isContentBlock = (0,external_wp_element_namespaceObject.useCallback)(blockName => {
|
56027 |
+
return !!contentBlocksObjectAux[blockName];
|
56028 |
}, [blockTypes]);
|
56029 |
return (0,external_wp_element_namespaceObject.useMemo)(() => {
|
56030 |
return getContentBlocks([block], isContentBlock);
|
56090 |
const contentBlocks = useContentBlocks(blockTypes, block);
|
56091 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
56092 |
className: "block-editor-block-inspector"
|
56093 |
+
}, (0,external_wp_element_namespaceObject.createElement)(block_card, _extends({}, blockInformation, {
|
56094 |
+
className: blockInformation.isSynced && 'is-synced'
|
56095 |
+
})), (0,external_wp_element_namespaceObject.createElement)(block_variation_transforms, {
|
56096 |
blockClientId: topLevelLockedBlock
|
56097 |
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
|
56098 |
spacing: 1,
|
56109 |
}
|
56110 |
|
56111 |
const BlockInspector = _ref5 => {
|
56112 |
+
var _window;
|
56113 |
+
|
56114 |
let {
|
56115 |
showNoBlockSelectedMessage = true
|
56116 |
} = _ref5;
|
56143 |
topLevelLockedBlock: __unstableGetContentLockingParent(_selectedBlockClientId) || (getTemplateLock(_selectedBlockClientId) === 'contentOnly' ? _selectedBlockClientId : undefined)
|
56144 |
};
|
56145 |
}, []);
|
56146 |
+
const availableTabs = useInspectorControlsTabs(blockType === null || blockType === void 0 ? void 0 : blockType.name);
|
56147 |
+
const showTabs = ((_window = window) === null || _window === void 0 ? void 0 : _window.__experimentalEnableBlockInspectorTabs) && availableTabs.length > 1;
|
56148 |
|
56149 |
if (count > 1) {
|
56150 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
56151 |
className: "block-editor-block-inspector"
|
56152 |
+
}, (0,external_wp_element_namespaceObject.createElement)(multi_selection_inspector, null), showTabs ? (0,external_wp_element_namespaceObject.createElement)(InspectorControlsTabs, {
|
56153 |
+
tabs: availableTabs
|
56154 |
+
}) : (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, null), (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
56155 |
__experimentalGroup: "color",
|
56156 |
label: (0,external_wp_i18n_namespaceObject.__)('Color'),
|
56157 |
className: "color-block-support-panel__inner-wrapper"
|
56164 |
}), (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
56165 |
__experimentalGroup: "border",
|
56166 |
label: (0,external_wp_i18n_namespaceObject.__)('Border')
|
56167 |
+
})));
|
56168 |
}
|
56169 |
|
56170 |
const isSelectedBlockUnregistered = selectedBlockName === (0,external_wp_blocks_namespaceObject.getUnregisteredTypeHandlerName)();
|
56196 |
};
|
56197 |
|
56198 |
const BlockInspectorSingleBlock = _ref6 => {
|
56199 |
+
var _window2;
|
56200 |
+
|
56201 |
let {
|
56202 |
clientId,
|
56203 |
blockName
|
56204 |
} = _ref6;
|
56205 |
+
const availableTabs = useInspectorControlsTabs(blockName);
|
56206 |
+
const showTabs = ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.__experimentalEnableBlockInspectorTabs) && availableTabs.length > 1;
|
56207 |
const hasBlockStyles = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
56208 |
const {
|
56209 |
getBlockStyles
|
56214 |
const blockInformation = useBlockDisplayInformation(clientId);
|
56215 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
56216 |
className: "block-editor-block-inspector"
|
56217 |
+
}, (0,external_wp_element_namespaceObject.createElement)(block_card, _extends({}, blockInformation, {
|
56218 |
+
className: blockInformation.isSynced && 'is-synced'
|
56219 |
+
})), (0,external_wp_element_namespaceObject.createElement)(block_variation_transforms, {
|
56220 |
blockClientId: clientId
|
56221 |
+
}), showTabs && (0,external_wp_element_namespaceObject.createElement)(InspectorControlsTabs, {
|
56222 |
+
hasBlockStyles: hasBlockStyles,
|
56223 |
+
clientId: clientId,
|
56224 |
+
blockName: blockName,
|
56225 |
+
tabs: availableTabs
|
56226 |
+
}), !showTabs && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, hasBlockStyles && (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
|
56227 |
title: (0,external_wp_i18n_namespaceObject.__)('Styles')
|
56228 |
}, (0,external_wp_element_namespaceObject.createElement)(block_styles, {
|
56229 |
clientId: clientId
|
56242 |
}), (0,external_wp_element_namespaceObject.createElement)(inspector_controls.Slot, {
|
56243 |
__experimentalGroup: "border",
|
56244 |
label: (0,external_wp_i18n_namespaceObject.__)('Border')
|
56245 |
+
}), (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)(advanced_controls_panel, null))), (0,external_wp_element_namespaceObject.createElement)(skip_to_selected_block, {
|
56246 |
key: "back"
|
56247 |
}));
|
56248 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56249 |
/**
|
56250 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/block-inspector/README.md
|
56251 |
*/
|
56252 |
|
56253 |
|
56254 |
+
/* harmony default export */ var block_inspector = (BlockInspector);
|
56255 |
|
56256 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/zoom-out-mode-inserters.js
|
56257 |
|
56311 |
});
|
56312 |
}
|
56313 |
|
56314 |
+
/* harmony default export */ var zoom_out_mode_inserters = (ZoomOutModeInserters);
|
56315 |
|
56316 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/index.js
|
56317 |
|
56530 |
});
|
56531 |
}
|
56532 |
|
56533 |
+
/* harmony default export */ var library = ((0,external_wp_element_namespaceObject.forwardRef)(InserterLibrary));
|
56534 |
|
56535 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/keyboard-shortcuts/index.js
|
56536 |
/**
|
56647 |
}
|
56648 |
|
56649 |
KeyboardShortcuts.Register = KeyboardShortcutsRegister;
|
56650 |
+
/* harmony default export */ var keyboard_shortcuts = (KeyboardShortcuts);
|
56651 |
|
56652 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/selection-scroll-into-view/index.js
|
56653 |
/**
|
56913 |
*/
|
56914 |
|
56915 |
|
56916 |
+
/* harmony default export */ var observe_typing = (ObserveTyping);
|
56917 |
|
56918 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/typewriter/index.js
|
56919 |
|
57151 |
* can vary. It is the last clicked or scrolled to position.
|
57152 |
*/
|
57153 |
|
57154 |
+
/* harmony default export */ var typewriter = (TypewriterOrIEBypass);
|
57155 |
|
57156 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/recursion-provider/index.js
|
57157 |
|
57254 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
57255 |
d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
|
57256 |
}));
|
57257 |
+
/* harmony default export */ var close_small = (closeSmall);
|
57258 |
|
57259 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-popover-header/index.js
|
57260 |
|
57344 |
}, additionalProps)));
|
57345 |
}
|
57346 |
|
57347 |
+
/* harmony default export */ var publish_date_time_picker = ((0,external_wp_element_namespaceObject.forwardRef)(PublishDateTimePicker));
|
57348 |
|
57349 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/index.js
|
57350 |
/*
|
57395 |
|
57396 |
|
57397 |
|
57398 |
+
|
57399 |
|
57400 |
|
57401 |
|
57801 |
return hash;
|
57802 |
}
|
57803 |
|
57804 |
+
/* harmony default export */ var parse_css_unit_to_px = (memoizedGetPxFromCssUnit);
|
57805 |
|
57806 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/index.js
|
57807 |
|
57820 |
|
57821 |
|
57822 |
|
57823 |
+
}();
|
|
|
57824 |
(window.wp = window.wp || {}).blockEditor = __webpack_exports__;
|
57825 |
/******/ })()
|
57826 |
;
|
build/block-editor/index.min.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '77f96e06dc4af39cea4e');
|
build/block-editor/index.min.js
CHANGED
@@ -1,123 +1,130 @@
|
|
1 |
-
(()=>{var e={6411:function(e,t){var n,o;n=function(e,t){"use strict";var n,o,l="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),r=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){r=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!l.has(e)){var t=null,n=null,o=null,i=function(){e.clientWidth!==n&&d()},s=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),l.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",l.set(e,{destroy:s,update:d}),"vertical"===(a=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===a.resize&&(e.style.resize="horizontal"),t="content-box"===a.boxSizing?-(parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)):parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth),isNaN(t)&&(t=0),d()}var a;function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var o=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),l=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),l&&(document.documentElement.scrollTop=l)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),l="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(l<t?"hidden"===n.overflowY&&(c("scroll"),u(),l="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),u(),l="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==l){o=l;var i=r("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}function s(e){var t=l.get(e);t&&t.destroy()}function a(e){var t=l.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=c,e.exports=t.default},void 0===(o=n.apply(t,[e,t]))||(e.exports=o)},4403:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function l(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var i=l.apply(null,n);i&&e.push(i)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var s in n)o.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(n=function(){return l}.apply(t,[]))||(e.exports=n)}()},4827:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},1198:(e,t)=>{"use strict";function n(){}function o(e,t,n,o,l){for(var r=0,i=t.length,s=0,a=0;r<i;r++){var c=t[r];if(c.removed){if(c.value=e.join(o.slice(a,a+c.count)),a+=c.count,r&&t[r-1].added){var u=t[r-1];t[r-1]=t[r],t[r]=u}}else{if(!c.added&&l){var d=n.slice(s,s+c.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(a+=c.count)}}var p=t[i-1];return i>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[i-2].value+=p.value,t.pop()),t}function l(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function s(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,u=1,d=a+c,p=[{newPos:-1,components:[]}],m=this.extractCommon(p[0],t,e,0);if(p[0].newPos+1>=a&&m+1>=c)return s([{value:this.join(t),count:t.length}]);function g(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=p[n-1],m=p[n+1],g=(m?m.newPos:0)-n;d&&(p[n-1]=void 0);var h=d&&d.newPos+1<a,f=m&&0<=g&&g<c;if(h||f){if(!h||f&&d.newPos<m.newPos?(r=l(m),i.pushComponent(r.components,void 0,!0)):((r=d).newPos++,i.pushComponent(r.components,!0,void 0)),g=i.extractCommon(r,t,e,n),r.newPos+1>=a&&g+1>=c)return s(o(i,r.components,t,e,i.useLongestToken));p[n]=r}else p[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();g()||e()}),0)}();else for(;u<=d;){var h=g();if(h)return h}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var l=t.length,r=n.length,i=e.newPos,s=i-o,a=0;i+1<l&&s+1<r&&this.equals(t[i+1],n[s+1]);)i++,s++,a++;return a&&e.components.push({count:a}),e.newPos=i,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},1973:(e,t,n)=>{"use strict";var o;t.Kx=function(e,t,n){return l.diff(e,t,n)};var l=new(((o=n(1198))&&o.__esModule?o:{default:o}).default)},1345:(e,t,n)=>{"use strict";var o=n(5022);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var l=n.allowHorizontalScroll,r=n.onlyScrollIfNeeded,i=n.alignWithTop,s=n.alignWithLeft,a=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;l=void 0===l||l;var p=o.isWindow(t),m=!(!p||!t.frameElement),g=o.offset(e),h=o.outerHeight(e),f=o.outerWidth(e),v=void 0,b=void 0,k=void 0,_=void 0,y=void 0,E=void 0,C=void 0,S=void 0,w=void 0,B=void 0;m&&(t=t.document.scrollingElement||t.document.body),p||m?(C=t,B=o.height(C),w=o.width(C),S={left:o.scrollLeft(C),top:o.scrollTop(C)},y={left:g.left-S.left-c,top:g.top-S.top-a},E={left:g.left+f-(S.left+w)+d,top:g.top+h-(S.top+B)+u},_=S):(v=o.offset(t),b=t.clientHeight,k=t.clientWidth,_={left:t.scrollLeft,top:t.scrollTop},y={left:g.left-(v.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-c,top:g.top-(v.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},E={left:g.left+f-(v.left+k+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:g.top+h-(v.top+b+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),y.top<0||E.top>0?!0===i?o.scrollTop(t,_.top+y.top):!1===i?o.scrollTop(t,_.top+E.top):y.top<0?o.scrollTop(t,_.top+y.top):o.scrollTop(t,_.top+E.top):r||((i=void 0===i||!!i)?o.scrollTop(t,_.top+y.top):o.scrollTop(t,_.top+E.top)),l&&(y.left<0||E.left>0?!0===s?o.scrollLeft(t,_.left+y.left):!1===s?o.scrollLeft(t,_.left+E.left):y.left<0?o.scrollLeft(t,_.left+y.left):o.scrollLeft(t,_.left+E.left):r||((s=void 0===s||!!s)?o.scrollLeft(t,_.left+y.left):o.scrollLeft(t,_.left+E.left)))}},5425:(e,t,n)=>{"use strict";e.exports=n(1345)},5022:e=>{"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function o(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var l=e.document;"number"!=typeof(n=l.documentElement[o])&&(n=l.body[o])}return n}function l(e){return o(e)}function r(e){return o(e,!0)}function i(e){var t=function(e){var t,n=void 0,o=void 0,l=e.ownerDocument,r=l.body,i=l&&l.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=i.clientLeft||r.clientLeft||0,top:o-=i.clientTop||r.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=l(o),t.top+=r(o),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),a=/^(top|right|bottom|left)$/,c=void 0;function u(e,t){for(var n=0;n<e.length;n++)t(e[n])}function d(e){return"border-box"===c(e,"boxSizing")}"undefined"!=typeof window&&(c=window.getComputedStyle?function(e,t,n){var o="",l=e.ownerDocument,r=n||l.defaultView.getComputedStyle(e,null);return r&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!a.test(t)){var o=e.style,l=o.left,r=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,o.left="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o.left=l,e.runtimeStyle.left=r}return""===n?"auto":n});var p=["margin","border","padding"];function m(e,t,n){var o={},l=e.style,r=void 0;for(r in t)t.hasOwnProperty(r)&&(o[r]=l[r],l[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(l[r]=o[r])}function g(e,t,n){var o=0,l=void 0,r=void 0,i=void 0;for(r=0;r<t.length;r++)if(l=t[r])for(i=0;i<n.length;i++){var s;s="border"===l?l+n[i]+"Width":l+n[i],o+=parseFloat(c(e,s))||0}return o}function h(e){return null!=e&&e==e.window}var f={};function v(e,t,n){if(h(e))return"width"===t?f.viewportWidth(e):f.viewportHeight(e);if(9===e.nodeType)return"width"===t?f.docWidth(e):f.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],l="width"===t?e.offsetWidth:e.offsetHeight,r=(c(e),d(e)),i=0;(null==l||l<=0)&&(l=void 0,(null==(i=c(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=r?1:-1);var s=void 0!==l||r,a=l||i;if(-1===n)return s?a-g(e,["border","padding"],o):i;if(s){var u=2===n?-g(e,["border"],o):g(e,["margin"],o);return a+(1===n?0:u)}return i+g(e,p.slice(n),o)}u(["Width","Height"],(function(e){f["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],f["viewport"+e](n))},f["viewport"+e]=function(t){var n="client"+e,o=t.document,l=o.body,r=o.documentElement[n];return"CSS1Compat"===o.compatMode&&r||l&&l[n]||r}}));var b={position:"absolute",visibility:"hidden",display:"block"};function k(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=v.apply(void 0,n):m(e,b,(function(){t=v.apply(void 0,n)})),t}function _(e,t,o){var l=o;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==l?("number"==typeof l&&(l+="px"),void(e.style[t]=l)):c(e,t);for(var r in t)t.hasOwnProperty(r)&&_(e,r,t[r])}u(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);f["outer"+t]=function(t,n){return t&&k(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];f[e]=function(t,o){return void 0===o?t&&k(t,e,-1):t?(c(t),d(t)&&(o+=g(t,["padding","border"],n)),_(t,e,o)):void 0}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return i(e);!function(e,t){"static"===_(e,"position")&&(e.style.position="relative");var n=i(e),o={},l=void 0,r=void 0;for(r in t)t.hasOwnProperty(r)&&(l=parseFloat(_(e,r))||0,o[r]=l+t[r]-n[r]);_(e,o)}(e,t)},isWindow:h,each:u,css:_,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(h(e)){if(void 0===t)return l(e);window.scrollTo(t,r(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(h(e)){if(void 0===t)return r(e);window.scrollTo(l(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},f)},8575:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},9894:(e,t,n)=>{var o=n(4827);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var l=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),l?e.style.lineHeight=l:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var r=e.nodeName,i=document.createElement(r);i.innerHTML=" ","TEXTAREA"===r.toUpperCase()&&i.setAttribute("rows","1");var s=o(e,"font-size");i.style.fontSize=s,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i),n=i.offsetHeight,a.removeChild(i)}return n}},7970:(e,t,n)=>{e.exports=n(195)},3110:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},3812:e=>{var t,n,o,l,r,i,s,a,c,u,d,p,m,g,h,f=!1;function v(){if(!f){f=!0;var e=navigator.userAgent,v=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),d=!!/Win64/.exec(e),v){(t=v[1]?parseFloat(v[1]):v[5]?parseFloat(v[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var k=/(?:Trident\/(\d+.\d+))/.exec(e);i=k?parseFloat(k[1])+4:t,n=v[2]?parseFloat(v[2]):NaN,o=v[3]?parseFloat(v[3]):NaN,(l=v[4]?parseFloat(v[4]):NaN)?(v=/(?:Chrome\/(\d+\.\d+))/.exec(e),r=v&&v[1]?parseFloat(v[1]):NaN):r=NaN}else t=n=o=r=l=NaN;if(b){if(b[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!_||parseFloat(_[1].replace("_","."))}else s=!1;a=!!b[2],c=!!b[3]}else s=a=c=!1}}var b={ie:function(){return v()||t},ieCompatibilityMode:function(){return v()||i>t},ie64:function(){return b.ie()&&d},firefox:function(){return v()||n},opera:function(){return v()||o},webkit:function(){return v()||l},safari:function(){return b.webkit()},chrome:function(){return v()||r},windows:function(){return v()||a},osx:function(){return v()||s},linux:function(){return v()||c},iphone:function(){return v()||p},mobile:function(){return v()||p||m||u||h},nativeApp:function(){return v()||g},android:function(){return v()||u},ipad:function(){return v()||m}};e.exports=b},7939:(e,t,n)=>{"use strict";var o,l=n(3110);l.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!l.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}},195:(e,t,n)=>{"use strict";var o=n(3812),l=n(7939);function r(e){var t=0,n=0,o=0,l=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,l=10*n,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||l)&&e.deltaMode&&(1==e.deltaMode?(o*=40,l*=40):(o*=800,l*=800)),o&&!t&&(t=o<1?-1:1),l&&!n&&(n=l<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:l}}r.getEventType=function(){return o.firefox()?"DOMMouseScroll":l("wheel")?"wheel":"mousewheel"},e.exports=r},5372:(e,t,n)=>{"use strict";var o=n(9567);function l(){}function r(){}r.resetWarningCache=l,e.exports=function(){function e(e,t,n,l,r,i){if(i!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:l};return n.PropTypes=n,n}},2652:(e,t,n)=>{e.exports=n(5372)()},9567:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5438:function(e,t,n){"use strict";var o,l=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var l in t=arguments[n])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&(n[o[l]]=e[o[l]])}return n};t.__esModule=!0;var s=n(9196),a=n(2652),c=n(6411),u=n(9894),d="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return l(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),l=(t.innerRef,t.children),a=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return s.createElement("textarea",r({},a,{onChange:this.onChange,style:u?r({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),l)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(s.Component);t.TextareaAutosize=s.forwardRef((function(e,t){return s.createElement(p,r({},e,{innerRef:t}))}))},773:(e,t,n)=>{"use strict";var o=n(5438);t.Z=o.TextareaAutosize},4793:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),l=new RegExp(n,""),r=function(e){return e.replace(o,(function(e){return t[e]}))};e.exports=r,e.exports.has=function(e){return!!e.match(l)},e.exports.remove=r},3124:e=>{var t=e.exports=function(e){return new n(e)};function n(e){this.value=e}function o(e,t,n){var o=[],i=[],u=!0;return function e(d){var p=n?l(d):d,m={},g=!0,h={node:p,node_:d,path:[].concat(o),parent:i[i.length-1],parents:i,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(e,t){h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(g=!1)},delete:function(e){delete h.parent.node[h.key],e&&(g=!1)},remove:function(e){s(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(g=!1)},keys:null,before:function(e){m.before=e},after:function(e){m.after=e},pre:function(e){m.pre=e},post:function(e){m.post=e},stop:function(){u=!1},block:function(){g=!1}};if(!u)return h;function f(){if("object"==typeof h.node&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=r(h.node)),h.isLeaf=0==h.keys.length;for(var e=0;e<i.length;e++)if(i[e].node_===d){h.circular=i[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}f();var v=t.call(h,h.node);return void 0!==v&&h.update&&h.update(v),m.before&&m.before.call(h,h.node),g?("object"!=typeof h.node||null===h.node||h.circular||(i.push(h),f(),a(h.keys,(function(t,l){o.push(t),m.pre&&m.pre.call(h,h.node[t],t);var r=e(h.node[t]);n&&c.call(h.node,t)&&(h.node[t]=r.node),r.isLast=l==h.keys.length-1,r.isFirst=0==l,m.post&&m.post.call(h,r),o.pop()})),i.pop()),m.after&&m.after.call(h,h.node),h):h}(e).node}function l(e){if("object"==typeof e&&null!==e){var t;if(s(e))t=[];else if("[object Date]"===i(e))t=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===i(e))t=new RegExp(e);else if(function(e){return"[object Error]"===i(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===i(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===i(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===i(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},o=function(){};o.prototype=n,t=new o}return a(r(e),(function(n){t[n]=e[n]})),t}return e}n.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!c.call(t,o)){t=void 0;break}t=t[o]}return t},n.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!c.call(t,o))return!1;t=t[o]}return!0},n.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var l=e[o];c.call(n,l)||(n[l]={}),n=n[l]}return n[e[o]]=t,t},n.prototype.map=function(e){return o(this.value,e,!0)},n.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},n.prototype.reduce=function(e,t){var n=1===arguments.length,o=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(o=e.call(this,o,t))})),o},n.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},n.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},n.prototype.clone=function(){var e=[],t=[];return function n(o){for(var i=0;i<e.length;i++)if(e[i]===o)return t[i];if("object"==typeof o&&null!==o){var s=l(o);return e.push(o),t.push(s),a(r(o),(function(e){s[e]=n(o[e])})),e.pop(),t.pop(),s}return o}(this.value)};var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function i(e){return Object.prototype.toString.call(e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};a(r(n.prototype),(function(e){t[e]=function(t){var o=[].slice.call(arguments,1),l=new n(t);return l[e].apply(l,o)}}));var c=Object.hasOwnProperty||function(e,t){return t in e}},9196:e=>{"use strict";e.exports=window.React}},t={};function n(o){var l=t[o];if(void 0!==l)return l.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{AlignmentControl:()=>zk,AlignmentToolbar:()=>Fk,Autocomplete:()=>Yk,BlockAlignmentControl:()=>Vr,BlockAlignmentToolbar:()=>Hr,BlockBreadcrumb:()=>t_,BlockColorsStyleSelector:()=>r_,BlockContextProvider:()=>ei,BlockControls:()=>Co,BlockEdit:()=>li,BlockEditorKeyboardShortcuts:()=>SS,BlockEditorProvider:()=>ju,BlockFormatControls:()=>Eo,BlockIcon:()=>Hu,BlockInspector:()=>vS,BlockList:()=>yf,BlockMover:()=>bg,BlockNavigationDropdown:()=>I_,BlockPreview:()=>Sp,BlockSelectionClearer:()=>Yu,BlockSettingsMenu:()=>Nh,BlockSettingsMenuControls:()=>Bh,BlockStyles:()=>N_,BlockTitle:()=>ag,BlockToolbar:()=>Vh,BlockTools:()=>_S,BlockVerticalAlignmentControl:()=>nr,BlockVerticalAlignmentToolbar:()=>or,ButtonBlockAppender:()=>qm,ButtonBlockerAppender:()=>Km,ColorPalette:()=>q_,ColorPaletteControl:()=>Y_,ContrastChecker:()=>fv,CopyHandler:()=>rh,DefaultBlockAppender:()=>$m,FontSizePicker:()=>nb,InnerBlocks:()=>ff,Inserter:()=>Wm,InspectorAdvancedControls:()=>bl,InspectorControls:()=>kl,JustifyContentControl:()=>ir,JustifyToolbar:()=>sr,LineHeightControl:()=>zv,MediaPlaceholder:()=>lC,MediaReplaceFlow:()=>XE,MediaUpload:()=>qE,MediaUploadCheck:()=>YE,MultiSelectScrollIntoView:()=>wS,NavigableToolbar:()=>yg,ObserveTyping:()=>TS,PanelColorSettings:()=>rC,PlainText:()=>FC,RichText:()=>DC,RichTextShortcut:()=>GC,RichTextToolbarButton:()=>UC,SETTINGS_DEFAULTS:()=>v,SkipToSelectedBlock:()=>sS,ToolSelector:()=>jC,Typewriter:()=>LS,URLInput:()=>Yy,URLInputButton:()=>ZC,URLPopover:()=>tC,Warning:()=>ii,WritingFlow:()=>cd,__experimentalBlockAlignmentMatrixControl:()=>Jk,__experimentalBlockFullHeightAligmentControl:()=>Qk,__experimentalBlockPatternSetup:()=>U_,__experimentalBlockPatternsList:()=>Kp,__experimentalBlockVariationPicker:()=>L_,__experimentalBlockVariationTransforms:()=>j_,__experimentalBorderRadiusControl:()=>Af,__experimentalColorGradientControl:()=>dv,__experimentalColorGradientSettingsDropdown:()=>hv,__experimentalDateFormatPicker:()=>X_,__experimentalDuotoneControl:()=>Xb,__experimentalFontAppearanceControl:()=>Ov,__experimentalFontFamilyControl:()=>qv,__experimentalGetBorderClassesAndStyles:()=>hk,__experimentalGetColorClassesAndStyles:()=>vk,__experimentalGetElementClassName:()=>HS,__experimentalGetGapCSSValue:()=>Kl,__experimentalGetGradientClass:()=>ev,__experimentalGetGradientObjectByGradientValue:()=>nv,__experimentalGetMatchingVariation:()=>US,__experimentalGetSpacingClassesAndStyles:()=>_k,__experimentalImageEditingProvider:()=>xy,__experimentalImageEditor:()=>zy,__experimentalImageSizeControl:()=>Hy,__experimentalImageURLInputUI:()=>lS,__experimentalInspectorPopoverHeader:()=>zS,__experimentalLayoutStyle:()=>Tr,__experimentalLetterSpacingControl:()=>Lb,__experimentalLibrary:()=>ES,__experimentalLinkControl:()=>IE,__experimentalLinkControlSearchInput:()=>vE,__experimentalLinkControlSearchItem:()=>lE,__experimentalLinkControlSearchResults:()=>uE,__experimentalListView:()=>w_,__experimentalOffCanvasEditor:()=>WE,__experimentalPanelColorGradientSettings:()=>ly,__experimentalPreviewOptions:()=>rS,__experimentalPublishDateTimePicker:()=>FS,__experimentalRecursionProvider:()=>AS,__experimentalResponsiveBlockControl:()=>HC,__experimentalSpacingSizesControl:()=>sl,__experimentalTextDecorationControl:()=>yb,__experimentalTextTransformControl:()=>Tb,__experimentalUnitControl:()=>KC,__experimentalUseBlockOverlayActive:()=>Tu,__experimentalUseBlockPreview:()=>wp,__experimentalUseBorderProps:()=>fk,__experimentalUseColorProps:()=>kk,__experimentalUseCustomSides:()=>Ul,__experimentalUseGradient:()=>lv,__experimentalUseHasRecursion:()=>DS,__experimentalUseMultipleOriginColorsAndGradients:()=>Hf,__experimentalUseResizeCanvas:()=>iS,__experimentaluseLayoutClasses:()=>ik,__experimentaluseLayoutStyles:()=>sk,__unstableBlockNameContext:()=>Fh,__unstableBlockSettingsMenuFirstItem:()=>ph,__unstableBlockToolbarLastItem:()=>Jg,__unstableDuotoneFilter:()=>bp,__unstableDuotoneStylesheet:()=>fp,__unstableDuotoneUnsetStylesheet:()=>vp,__unstableEditorStyles:()=>gp,__unstableGetValuesFromColors:()=>hp,__unstableIframe:()=>pd,__unstableInserterMenuExtension:()=>Lm,__unstablePresetDuotoneFilter:()=>kp,__unstableRichTextInputEvent:()=>WC,__unstableUseBlockSelectionClearer:()=>qu,__unstableUseClipboardHandler:()=>lh,__unstableUseMouseMoveTypingReset:()=>IS,__unstableUseTypewriter:()=>PS,__unstableUseTypingObserver:()=>xS,createCustomColorsHOC:()=>Ik,getColorClassName:()=>Ff,getColorObjectByAttributeValues:()=>Of,getColorObjectByColorValue:()=>zf,getComputedFluidTypographyValue:()=>ab,getFontSize:()=>Jv,getFontSizeClass:()=>tb,getFontSizeObjectByValue:()=>eb,getGradientSlugByValue:()=>ov,getGradientValueBySlug:()=>tv,getPxFromCssUnit:()=>JS,getTypographyClassesAndStyles:()=>yk,store:()=>mo,storeConfig:()=>po,transformStyles:()=>dp,useBlockDisplayInformation:()=>ig,useBlockEditContext:()=>vo,useBlockProps:()=>Mu,useCachedTruthy:()=>Ek,useInnerBlocksProps:()=>hf,useSetting:()=>Qo,withColorContext:()=>K_,withColors:()=>xk,withFontSizes:()=>Nk});var e={};n.r(e),n.d(e,{__experimentalGetActiveBlockIdByBlockNames:()=>Ht,__experimentalGetAllowedBlocks:()=>_t,__experimentalGetAllowedPatterns:()=>St,__experimentalGetBlockListSettingsForBlocks:()=>Mt,__experimentalGetDirectInsertBlock:()=>yt,__experimentalGetGlobalBlocksByName:()=>ee,__experimentalGetLastBlockAttributeChanges:()=>Lt,__experimentalGetParsedPattern:()=>Et,__experimentalGetPatternTransformItems:()=>Bt,__experimentalGetPatternsByBlockTypes:()=>wt,__experimentalGetReusableBlockTitle:()=>Nt,__experimentalIsBlockInterfaceHidden:()=>$e,__unstableGetBlockWithoutInnerBlocks:()=>K,__unstableGetClientIdWithClientIdsTree:()=>Y,__unstableGetClientIdsTree:()=>Z,__unstableGetContentLockingParent:()=>$t,__unstableGetEditorMode:()=>Dt,__unstableGetSelectedBlocksWithPartialSelection:()=>Re,__unstableGetTemporarilyEditingAsBlocks:()=>jt,__unstableGetVisibleBlocks:()=>Wt,__unstableHasActiveBlockOverlayActive:()=>Kt,__unstableIsFullySelected:()=>Me,__unstableIsLastBlockChangeIgnored:()=>Pt,__unstableIsSelectionCollapsed:()=>Ne,__unstableIsSelectionMergeable:()=>Le,__unstableIsWithinBlockOverlay:()=>qt,__unstableSelectionHasUnmergeableBlock:()=>Pe,areInnerBlocksControlled:()=>Vt,canEditBlock:()=>ut,canInsertBlockType:()=>lt,canInsertBlocks:()=>rt,canLockBlockType:()=>dt,canMoveBlock:()=>at,canMoveBlocks:()=>ct,canRemoveBlock:()=>it,canRemoveBlocks:()=>st,didAutomaticChange:()=>zt,getAdjacentBlockClientId:()=>fe,getBlock:()=>j,getBlockAttributes:()=>$,getBlockCount:()=>ne,getBlockHierarchyRootClientId:()=>ge,getBlockIndex:()=>De,getBlockInsertionPoint:()=>Qe,getBlockListSettings:()=>It,getBlockMode:()=>Ue,getBlockName:()=>U,getBlockOrder:()=>Ae,getBlockParents:()=>pe,getBlockParentsByBlockName:()=>me,getBlockRootClientId:()=>de,getBlockSelectionEnd:()=>ie,getBlockSelectionStart:()=>re,getBlockTransformItems:()=>bt,getBlocks:()=>q,getBlocksByClientId:()=>te,getClientIdsOfDescendants:()=>Q,getClientIdsWithDescendants:()=>X,getDraggedBlockClientIds:()=>Ke,getFirstMultiSelectedBlockClientId:()=>Ce,getGlobalBlockCount:()=>J,getInserterItems:()=>vt,getLastMultiSelectedBlockClientId:()=>Se,getLowestCommonAncestorWithSelectedBlock:()=>he,getMultiSelectedBlockClientIds:()=>ye,getMultiSelectedBlocks:()=>Ee,getMultiSelectedBlocksEndClientId:()=>Te,getMultiSelectedBlocksStartClientId:()=>xe,getNextBlockClientId:()=>be,getPreviousBlockClientId:()=>ve,getSelectedBlock:()=>ue,getSelectedBlockClientId:()=>ce,getSelectedBlockClientIds:()=>_e,getSelectedBlockCount:()=>se,getSelectedBlocksInitialCaretPosition:()=>ke,getSelectionEnd:()=>le,getSelectionStart:()=>oe,getSettings:()=>xt,getTemplate:()=>et,getTemplateLock:()=>tt,hasBlockMovingClientId:()=>Ot,hasInserterItems:()=>kt,hasMultiSelection:()=>Ve,hasSelectedBlock:()=>ae,hasSelectedInnerBlock:()=>ze,isAncestorBeingDragged:()=>Ye,isAncestorMultiSelected:()=>Ie,isBlockBeingDragged:()=>qe,isBlockHighlighted:()=>Ft,isBlockInsertionPointVisible:()=>Xe,isBlockMultiSelected:()=>Be,isBlockSelected:()=>Oe,isBlockValid:()=>W,isBlockVisible:()=>Ut,isBlockWithinSelection:()=>Fe,isCaretWithinFormattedText:()=>Ze,isDraggingBlocks:()=>je,isFirstMultiSelectedBlock:()=>we,isLastBlockChangePersistent:()=>Tt,isMultiSelecting:()=>He,isNavigationMode:()=>At,isSelectionEnabled:()=>Ge,isTyping:()=>We,isValidTemplate:()=>Je,wasBlockJustInserted:()=>Gt});var t={};n.r(t),n.d(t,{__experimentalHideBlockInterface:()=>On,__experimentalShowBlockInterface:()=>zn,__unstableDeleteSelection:()=>Tn,__unstableExpandSelection:()=>Nn,__unstableMarkAutomaticChange:()=>Xn,__unstableMarkLastChangeAsPersistent:()=>Zn,__unstableMarkNextChangeAsNotPersistent:()=>Qn,__unstableSaveReusableBlock:()=>Yn,__unstableSetEditorMode:()=>eo,__unstableSetTemporarilyEditingAsBlocks:()=>co,__unstableSplitSelection:()=>Mn,clearSelectedBlock:()=>pn,duplicateBlocks:()=>no,enterFormattedText:()=>Un,exitFormattedText:()=>Wn,flashBlock:()=>io,hideInsertionPoint:()=>Bn,insertAfterBlock:()=>lo,insertBeforeBlock:()=>oo,insertBlock:()=>Cn,insertBlocks:()=>Sn,insertDefaultBlock:()=>jn,mergeBlocks:()=>Pn,moveBlockToPosition:()=>En,moveBlocksDown:()=>bn,moveBlocksToPosition:()=>yn,moveBlocksUp:()=>kn,multiSelect:()=>dn,receiveBlocks:()=>nn,removeBlock:()=>Rn,removeBlocks:()=>Ln,replaceBlock:()=>fn,replaceBlocks:()=>hn,replaceInnerBlocks:()=>An,resetBlocks:()=>Jt,resetSelection:()=>tn,selectBlock:()=>rn,selectNextBlock:()=>an,selectPreviousBlock:()=>sn,selectionChange:()=>$n,setBlockMovingClientId:()=>to,setBlockVisibility:()=>ao,setHasControlledInnerBlocks:()=>so,setNavigationMode:()=>Jn,setTemplateValidity:()=>In,showInsertionPoint:()=>wn,startDraggingBlocks:()=>Hn,startMultiSelect:()=>cn,startTyping:()=>Fn,stopDraggingBlocks:()=>Gn,stopMultiSelect:()=>un,stopTyping:()=>Vn,synchronizeTemplate:()=>xn,toggleBlockHighlight:()=>ro,toggleBlockMode:()=>Dn,toggleSelection:()=>mn,updateBlock:()=>ln,updateBlockAttributes:()=>on,updateBlockListSettings:()=>Kn,updateSettings:()=>qn,validateBlocksToTemplate:()=>en});const l=window.wp.blocks,r=window.wp.hooks;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i.apply(this,arguments)}(0,r.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,l.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));const s=window.wp.element;var a=n(4403),c=n.n(a);const u=window.wp.compose,d=window.wp.data,p=window.lodash,m=window.wp.components,g={default:(0,m.createSlotFill)("BlockControls"),block:(0,m.createSlotFill)("BlockControlsBlock"),inline:(0,m.createSlotFill)("BlockFormatControls"),other:(0,m.createSlotFill)("BlockControlsOther"),parent:(0,m.createSlotFill)("BlockControlsParent")},h=window.wp.i18n,f={insertUsage:{}},v={alignWide:!1,supportsLayout:!0,colors:[{name:(0,h.__)("Black"),slug:"black",color:"#000000"},{name:(0,h.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,h.__)("White"),slug:"white",color:"#ffffff"},{name:(0,h.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,h.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,h.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,h.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,h.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,h.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,h.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,h.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,h.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,h._x)("Small","font size name"),size:13,slug:"small"},{name:(0,h._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,h._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,h._x)("Large","font size name"),size:36,slug:"large"},{name:(0,h._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,h.__)("Thumbnail")},{slug:"medium",name:(0,h.__)("Medium")},{slug:"large",name:(0,h.__)("Large")},{slug:"full",name:(0,h.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalClearBlockSelection:!0,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!1,__unstableIsPreviewMode:!1,generateAnchors:!1,gradients:[{name:(0,h.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:(0,h.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:(0,h.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,h.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:(0,h.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:(0,h.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:(0,h.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,h.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:(0,h.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:(0,h.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:(0,h.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,h.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function b(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function k(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const l=[...e];return l.splice(t,o),b(l,e.slice(t,t+o),n)}const _=e=>e;function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={[t]:[]};return e.forEach((e=>{const{clientId:o,innerBlocks:l}=e;n[t].push(o),Object.assign(n,y(l,o))})),n}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce(((e,n)=>Object.assign(e,{[n.clientId]:t},E(n.innerBlocks,n.clientId))),{})}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_;const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...l}=o.shift();o.push(...e),n[l.clientId]=t(l)}return n}function S(e){return C(e,(e=>(0,p.omit)(e,"attributes")))}function w(e){return C(e,(e=>e.attributes))}function B(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&(0,p.isEqual)(e.clientIds,t.clientIds)&&function(e,t){return(0,p.isEqual)(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function I(e,t){const n={},o=[...t],l=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),l.push(...e.innerBlocks)}for(const e of l)n[e.clientId]={};for(const t of l)n[t.clientId]=Object.assign(n[t.clientId],{...e.byClientId[t.clientId],attributes:e.attributes[t.clientId],innerBlocks:t.innerBlocks.map((e=>n[e.clientId]))});return n}function x(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l=new Set([]),r=new Set;for(const t of n){let n=o?t:e.parents[t];do{if(e.controlledInnerBlocks[n]){r.add(n);break}l.add(n),n=e.parents[n]}while(void 0!==n)}for(const e of l)t[e]={...t[e]};for(const n of l)t[n].innerBlocks=(e.order[n]||[]).map((e=>t[e]));for(const n of r)t["controlled||"+n]={innerBlocks:(e.order[n]||[]).map((e=>t[e]))};return t}const T=(0,u.pipe)(d.combineReducers,(e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=(0,p.mapValues)(t.attributes,((n,l)=>{const{name:r}=t.byClientId[l];return"core/block"===r&&n.ref===e?{...n,ref:o}:n}))}return e(t,n)}),(e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:{},n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=I(o,n.blocks);o.tree=x(o,{...o.tree,...e},n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=x(o,{...o.tree,[n.clientId]:{...o.tree[n.clientId],...o.byClientId[n.clientId],attributes:o.attributes[n.clientId]}},[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{const e=n.clientIds.reduce(((e,t)=>(e[t]={...o.tree[t],attributes:o.attributes[t]},e)),{});o.tree=x(o,{...o.tree,...e},n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=I(o,n.blocks);o.tree=x(o,{...(0,p.omit)(o.tree,n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e)))),...e},n.blocks.map((e=>e.clientId)),!1);const l=[];for(const e of n.clientIds)void 0===t.parents[e]||""!==t.parents[e]&&!o.byClientId[t.parents[e]]||l.push(t.parents[e]);o.tree=x(o,o.tree,l,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const l of n.clientIds)void 0===t.parents[l]||""!==t.parents[l]&&!o.byClientId[t.parents[l]]||e.push(t.parents[l]);o.tree=x(o,(0,p.omit)(o.tree,n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e)))),e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),o.tree=x(o,o.tree,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=x(o,o.tree,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=Object.entries(o.attributes).filter((e=>{let[t,l]=e;return"core/block"===o.byClientId[t].name&&l.ref===n.updatedId})).map((e=>{let[t]=e;return t}));o.tree=x(o,{...o.tree,...e.reduce(((e,t)=>(e[t]={...o.byClientId[t],attributes:o.attributes[t],innerBlocks:o.tree[t].innerBlocks},e)),{})},e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let l=0;l<o.length;l++)!t.order[o[l]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[l]]||(o===e&&(o=[...o]),o.push(...t.order[o[l]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)}),(e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...l}=e.shift();e.push(...n),t.controlledInnerBlocks[l.clientId]&&(o[l.clientId]=!0)}}let l=t;t.order[n.rootClientId]&&(l=e(l,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let r=l;return n.blocks.length&&(r=e(r,{...n,type:"INSERT_BLOCKS",index:0}),r.order={...r.order,...Object.keys(o).reduce(((e,n)=>(t.order[n]&&(e[n]=t.order[n]),e)),{})},r.tree={...r.tree,...Object.keys(o).reduce(((e,n)=>{const o=`controlled||${n}`;return t.tree[o]&&(e[o]=t.tree[o]),e}),{})}),r}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:S(n.blocks),attributes:w(n.blocks),order:y(n.blocks),parents:E(n.blocks),controlledInnerBlocks:{}},o=I(e,n.blocks);return e.tree={...o,"":{innerBlocks:n.blocks.map((e=>o[e.clientId]))}},e}return e(t,n)}),(function(e){let t,n=!1;return(o,l)=>{let r=e(o,l);const i="MARK_LAST_CHANGE_AS_PERSISTENT"===l.type||n;if(o===r&&!i){var s;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===l.type;const e=null===(s=null==o?void 0:o.isPersistentChange)||void 0===s||s;return o.isPersistentChange===e?o:{...r,isPersistentChange:e}}return r={...r,isPersistentChange:i?!n:!B(l,t)},t=l,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===l.type,r}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const l=e(n,o);return l!==n&&(l.isIgnoredChange=t.has(o.type)),l}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...S(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=(0,p.omit)(t.updates,"attributes");return(0,p.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...(0,p.omit)(e,t.replacedClientIds),...S(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,p.omit)(e,t.removedClientIds)}return e},attributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...w(t.blocks)};case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?{...e,[t.clientId]:{...e[t.clientId],...t.updates.attributes}}:e;case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e[t])))return e;const n=t.clientIds.reduce(((n,o)=>{var l;return{...n,[o]:Object.entries(t.uniqueByBlock?t.attributes[o]:null!==(l=t.attributes)&&void 0!==l?l:{}).reduce(((t,n)=>{let[l,r]=n;var i,s;return r!==t[l]&&((t=(i=e[o])===(s=t)?{...i}:s)[l]=r),t}),e[o])}}),{});return t.clientIds.every((t=>n[t]===e[t]))?e:{...e,...n}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...(0,p.omit)(e,t.replacedClientIds),...w(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,p.omit)(e,t.removedClientIds)}return e},order(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":{const n=y(t.blocks);return{...e,...(0,p.omit)(n,""),"":((null==e?void 0:e[""])||[]).concat(n[""])}}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],l=y(t.blocks,n),{index:r=o.length}=t;return{...e,...l,[n]:b(o,l[n],r)}}case"MOVE_BLOCKS_TO_POSITION":{var n,o;const{fromRootClientId:l="",toRootClientId:r="",clientIds:i}=t,{index:s=e[r].length}=t;if(l===r){const t=e[r].indexOf(i[0]);return{...e,[r]:k(e[r],t,s,i.length)}}return{...e,[l]:null!==(n=null===(o=e[l])||void 0===o?void 0:o.filter((e=>!i.includes(e))))&&void 0!==n?n:[],[r]:b(e[r],i,s)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,l=n[0],r=e[o];if(!r.length||l===r[0])return e;const i=r.indexOf(l);return{...e,[o]:k(r,i,i-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,l=n[0],r=n[n.length-1],i=e[o];if(!i.length||r===i[i.length-1])return e;const s=i.indexOf(l);return{...e,[o]:k(i,s,s+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=y(t.blocks);return(0,u.pipe)([e=>(0,p.omit)(e,t.replacedClientIds),e=>({...e,...(0,p.omit)(o,"")}),e=>(0,p.mapValues)(e,(e=>Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...o[""]]:(-1===n.indexOf(t)&&e.push(t),e)),[])))])(e)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.pipe)([e=>(0,p.omit)(e,t.removedClientIds),e=>(0,p.mapValues)(e,(e=>{var n;return null!==(n=null==e?void 0:e.filter((e=>!t.removedClientIds.includes(e))))&&void 0!==n?n:[]}))])(e)}return e},parents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":return{...e,...E(t.blocks)};case"INSERT_BLOCKS":return{...e,...E(t.blocks,t.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...e,...t.clientIds.reduce(((e,n)=>(e[n]=t.toRootClientId||"",e)),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...(0,p.omit)(e,t.replacedClientIds),...E(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,p.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,clientId:n,hasControlledInnerBlocks:o}=arguments.length>1?arguments[1]:void 0;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e}});function M(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}const N=(0,d.combineReducers)({blocks:T,isTyping:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(){var e,t,n,o;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"SELECTION_CHANGE":return r.clientId?{selectionStart:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.startOffset},selectionEnd:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.endOffset}}:{selectionStart:r.start||l.selectionStart,selectionEnd:r.end||l.selectionEnd};case"RESET_SELECTION":const{selectionStart:i,selectionEnd:s}=r;return{selectionStart:i,selectionEnd:s};case"MULTI_SELECT":const{start:a,end:c}=r;return a===(null===(e=l.selectionStart)||void 0===e?void 0:e.clientId)&&c===(null===(t=l.selectionEnd)||void 0===t?void 0:t.clientId)?l:{selectionStart:{clientId:a},selectionEnd:{clientId:c}};case"RESET_BLOCKS":const u=null==l||null===(n=l.selectionStart)||void 0===n?void 0:n.clientId,d=null==l||null===(o=l.selectionEnd)||void 0===o?void 0:o.clientId;if(!u&&!d)return l;if(!r.blocks.some((e=>e.clientId===u)))return{selectionStart:{},selectionEnd:{}};if(!r.blocks.some((e=>e.clientId===d)))return{...l,selectionEnd:l.selectionStart}}return{selectionStart:M(l.selectionStart,r),selectionEnd:M(l.selectionEnd,r)}},isMultiSelecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return(0,p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?(0,p.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?(0,p.omit)(e,n):e}}return e},insertionPoint:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:l,operation:r}=t,i={rootClientId:n,index:o,__unstableWithInserter:l,operation:r};return(0,p.isEqual)(e,i)?e:i}case"HIDE_INSERTION_POINT":return null}return e},template:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},preferences:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:o,name:r}=n,i=(0,d.select)(l.store).getActiveBlockVariation(r,o);let s=null!=i&&i.name?`${r}/${i.name}`:r;const a={name:s};return"core/block"===r&&(a.ref=o.ref,s+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[s]:{time:t.time,count:e.insertUsage[s]?e.insertUsage[s].count+1:1,insert:a}}}}),e)}return e},lastBlockAttributesChange:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},editorMode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit",t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"===t.type&&"navigation"===e?"edit":"SET_EDITOR_MODE"===t.type?t.mode:e},hasBlockMovingClientId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_EDITOR_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"SET_BLOCK_VISIBILITY":case"START_TYPING":case"STOP_TYPING":case"UPDATE_BLOCK_LIST_SETTINGS":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_BLOCKS":return n.blocks.length?{clientId:n.blocks[0].clientId,source:null===(e=n.meta)||void 0===e?void 0:e.source}:t;case"RESET_BLOCKS":return{}}return t},temporarilyEditingAsBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},blockVisibility:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e}});var P={};function L(e){return[e]}function R(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function A(e,t){var n,o=t||L;function l(e){var t,o,l,r,i,s=n,a=!0;for(t=0;t<e.length;t++){if(!(i=o=e[t])||"object"!=typeof i){a=!1;break}s.has(o)?s=s.get(o):(l=new WeakMap,s.set(o,l),s=l)}return s.has(P)||((r=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=a,s.set(P,r)),s.get(P)}function r(){n=new WeakMap}function i(){var t,n,r,i,s,a=arguments.length;for(i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];for((t=l(s=o.apply(null,i))).isUniqueByDependants||(t.lastDependants&&!R(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),n=t.head;n;){if(R(n.args,i,1))return n!==t.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=t.head,n.prev=null,t.head.prev=n,t.head=n),n.val;n=n.next}return n={val:e.apply(null,i)},i[0]=null,n.args=i,t.head&&(t.head.prev=n,n.next=t.head),t.head=n,n.val}return i.getDependants=o,i.clear=r,r(),i}const D=window.wp.primitives,O=(0,s.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(D.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),z=window.wp.richText,F=window.wp.deprecated;var V=n.n(F);function H(e){const{multiline:t,__unstableMultilineWrapperTags:n,__unstablePreserveWhiteSpace:o}=e;return{multilineTag:t,multilineWrapperTags:n,preserveWhiteSpace:o}}const G=[];function U(e,t){const n=e.blocks.byClientId[t],o="core/social-link";if("web"!==s.Platform.OS&&(null==n?void 0:n.name)===o){const n=e.blocks.attributes[t],{service:l}=n;return l?`core/social-link-${l}`:o}return n?n.name:null}function W(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function $(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}function j(e,t){return e.blocks.byClientId[t]?e.blocks.tree[t]:null}const K=A(((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:$(e,t)}:null}),((e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]));function q(e,t){var n;const o=t&&Vt(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree[o])||void 0===n?void 0:n.innerBlocks)||G}const Y=A(((e,t)=>({clientId:t,innerBlocks:Z(e,t)})),(e=>[e.blocks.order])),Z=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,p.map)(Ae(e,t),(t=>Y(e,t)))}),(e=>[e.blocks.order])),Q=A(((e,t)=>{const n=[];for(const o of t)for(const t of Ae(e,o))n.push(t,...Q(e,[t]));return n}),(e=>[e.blocks.order])),X=A((e=>{const t=[];for(const n of Ae(e))t.push(n,...Q(e,[n]));return t}),(e=>[e.blocks.order])),J=A(((e,t)=>{const n=X(e);return t?n.reduce(((n,o)=>e.blocks.byClientId[o].name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),ee=A(((e,t)=>{if(!t)return G;const n=X(e).filter((n=>e.blocks.byClientId[n].name===t));return n.length>0?n:G}),(e=>[e.blocks.order,e.blocks.byClientId])),te=A(((e,t)=>(0,p.map)(Array.isArray(t)?t:[t],(t=>j(e,t)))),((e,t)=>(0,p.map)(Array.isArray(t)?t:[t],(t=>e.blocks.tree[t]))));function ne(e,t){return Ae(e,t).length}function oe(e){return e.selection.selectionStart}function le(e){return e.selection.selectionEnd}function re(e){return e.selection.selectionStart.clientId}function ie(e){return e.selection.selectionEnd.clientId}function se(e){return ye(e).length||(e.selection.selectionStart.clientId?1:0)}function ae(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function ce(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function ue(e){const t=ce(e);return t?j(e,t):null}function de(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const pe=A((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];let l=t;for(;e.blocks.parents[l];)l=e.blocks.parents[l],o.push(l);return n?o:o.reverse()}),(e=>[e.blocks.parents])),me=A((function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l=pe(e,t,o);return(0,p.map)((0,p.filter)((0,p.map)(l,(t=>({id:t,name:U(e,t)}))),(e=>{let{name:t}=e;return Array.isArray(n)?n.includes(t):t===n})),(e=>{let{id:t}=e;return t}))}),(e=>[e.blocks.parents]));function ge(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function he(e,t){const n=ce(e),o=[...pe(e,t),t],l=[...pe(e,n),n];let r;const i=Math.min(o.length,l.length);for(let e=0;e<i&&o[e]===l[e];e++)r=o[e];return r}function fe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=ce(e)),void 0===t&&(t=n<0?Ce(e):Se(e)),!t)return null;const o=de(e,t);if(null===o)return null;const{order:l}=e.blocks,r=l[o],i=r.indexOf(t),s=i+1*n;return s<0||s===r.length?null:r[s]}function ve(e,t){return fe(e,t,-1)}function be(e,t){return fe(e,t,1)}function ke(e){return e.initialPosition}const _e=A((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return G;if(t.clientId===n.clientId)return[t.clientId];const o=de(e,t.clientId);if(null===o)return G;const l=Ae(e,o),r=l.indexOf(t.clientId),i=l.indexOf(n.clientId);return r>i?l.slice(i,r+1):l.slice(r,i+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function ye(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?G:_e(e)}const Ee=A((e=>{const t=ye(e);return t.length?t.map((t=>j(e,t))):G}),(e=>[..._e.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Ce(e){return ye(e)[0]||null}function Se(e){const t=ye(e);return t[t.length-1]||null}function we(e,t){return Ce(e)===t}function Be(e,t){return-1!==ye(e).indexOf(t)}const Ie=A(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=de(e,n),o=Be(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function xe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function Te(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Me(e){const t=oe(e),n=le(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Ne(e){const t=oe(e),n=le(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function Pe(e){return _e(e).some((t=>{const n=U(e,t);return!(0,l.getBlockType)(n).merge}))}function Le(e,t){const n=oe(e),o=le(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const r=de(e,n.clientId);if(r!==de(e,o.clientId))return!1;const i=Ae(e,r);let s,a;i.indexOf(n.clientId)>i.indexOf(o.clientId)?(s=o,a=n):(s=n,a=o);const c=t?a.clientId:s.clientId,u=t?s.clientId:a.clientId,d=U(e,c);if(!(0,l.getBlockType)(d).merge)return!1;const p=j(e,u);if(p.name===d)return!0;const m=(0,l.switchToBlockType)(p,d);return m&&m.length}const Re=e=>{const t=oe(e),n=le(e);if(t.clientId===n.clientId)return G;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return G;const o=de(e,t.clientId);if(o!==de(e,n.clientId))return G;const r=Ae(e,o),i=r.indexOf(t.clientId),s=r.indexOf(n.clientId),[a,c]=i>s?[n,t]:[t,n],u=j(e,a.clientId),d=(0,l.getBlockType)(u.name),p=j(e,c.clientId),m=(0,l.getBlockType)(p.name),g=u.attributes[a.attributeKey],h=p.attributes[c.attributeKey],f=d.attributes[a.attributeKey],v=m.attributes[c.attributeKey];let b=(0,z.create)({html:g,...H(f)}),k=(0,z.create)({html:h,...H(v)});return b=(0,z.remove)(b,0,a.offset),k=(0,z.remove)(k,c.offset,k.text.length),[{...u,attributes:{...u.attributes,[a.attributeKey]:(0,z.toHTMLString)({value:b,...H(f)})}},{...p,attributes:{...p.attributes,[c.attributeKey]:(0,z.toHTMLString)({value:k,...H(v)})}}]};function Ae(e,t){return e.blocks.order[t||""]||G}function De(e,t){return Ae(e,de(e,t)).indexOf(t)}function Oe(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function ze(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Ae(e,t).some((t=>Oe(e,t)||Be(e,t)||n&&ze(e,t,n)))}function Fe(e,t){if(!t)return!1;const n=ye(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function Ve(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function He(e){return e.isMultiSelecting}function Ge(e){return e.isSelectionEnabled}function Ue(e,t){return e.blocksMode[t]||"visual"}function We(e){return e.isTyping}function $e(e){return e.isBlockInterfaceHidden}function je(e){return!!e.draggedBlocks.length}function Ke(e){return e.draggedBlocks}function qe(e,t){return e.draggedBlocks.includes(t)}function Ye(e,t){return!!je(e)&&pe(e,t).some((t=>qe(e,t)))}function Ze(){return V()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}function Qe(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:l}}=e;if(null!==o)return o;const{clientId:r}=l;return r?(t=de(e,r)||void 0,n=De(e,l.clientId)+1):n=Ae(e).length,{rootClientId:t,index:n}}function Xe(e){return null!==e.insertionPoint}function Je(e){return e.template.isValid}function et(e){return e.settings.template}function tt(e,t){if(!t)return e.settings.templateLock;const n=It(e,t);return n?n.templateLock:void 0}const nt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},ot=function(e,t){let n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"==typeof t?(n=t,t=n.name):n=(0,l.getBlockType)(t),!n)return!1;const{allowedBlockTypes:i}=xt(e),s=nt(i,t,!0);if(!s)return!1;const a=!!tt(e,o);if(a)return!1;const c=It(e,o);if(o&&void 0===c)return!1;const u=null==c?void 0:c.allowedBlocks,d=nt(u,t),p=n.parent,m=U(e,o),g=nt(p,m);let h=!0;const f=n.ancestor;f&&(h=[o,...pe(e,o)].some((t=>nt(f,U(e,t)))));const v=h&&(null===d&&null===g||!0===d||!0===g);return v?(0,r.applyFilters)("blockEditor.__unstableCanInsertBlockType",v,n,o,{getBlock:j.bind(null,e),getBlockParentsByBlockName:me.bind(null,e)}):v},lt=A(ot,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]));function rt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>lt(e,U(e,t),n)))}function it(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=$(e,t);if(null===o)return!0;const{lock:l}=o,r=!!tt(e,n);return void 0===l||void 0===(null==l?void 0:l.remove)?!r:!(null!=l&&l.remove)}function st(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>it(e,t,n)))}function at(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=$(e,t);if(null===o)return;const{lock:l}=o,r="all"===tt(e,n);return void 0===l||void 0===(null==l?void 0:l.move)?!r:!(null!=l&&l.move)}function ct(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>at(e,t,n)))}function ut(e,t){const n=$(e,t);if(null===n)return!0;const{lock:o}=n;return!(null!=o&&o.edit)}function dt(e,t){var n;return!!(0,l.hasBlockSupport)(t,"lock",!0)&&!(null===(n=e.settings)||void 0===n||!n.canLockBlocks)}function pt(e,t){var n,o;return null!==(n=null===(o=e.preferences.insertUsage)||void 0===o?void 0:o[t])&&void 0!==n?n:null}const mt=(e,t,n)=>!!(0,l.hasBlockSupport)(t,"inserter",!0)&&ot(e,t.name,n),gt=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:l,count:r=0}=pt(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:ht(l,r)}},ht=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},ft=(e,t)=>{let{buildScope:n="inserter"}=t;return t=>{const o=t.name;let r=!1;(0,l.hasBlockSupport)(t.name,"multiple",!0)||(r=te(e,X(e)).some((e=>{let{name:n}=e;return n===t.name})));const{time:i,count:s=0}=pt(e,o)||{},a={id:o,name:t.name,title:t.title,icon:t.icon,isDisabled:r,frecency:ht(i,s)};if("transform"===n)return a;const c=(0,l.getBlockVariations)(t.name,"inserter");return{...a,initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:c,example:t.example,utility:1}}},vt=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=ft(e,{buildScope:"inserter"}),o=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,r=t=>{let n=O;if("web"===s.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(o);if(e){const[,,t="core/",o]=e,r=(0,l.getBlockType)(t+o);r&&(n=r.icon)}}const r=`core/block/${t.id}`,{time:i,count:a=0}=pt(e,r)||{},c=ht(i,a);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:c}},i=(0,l.getBlockTypes)().filter((n=>mt(e,n,t))).map(n),a=ot(e,"core/block",t)?Rt(e).map(r):[],c=i.reduce(((t,n)=>{const{variations:o=[]}=n;if(o.some((e=>{let{isDefault:t}=e;return t}))||t.push(n),o.length){const l=gt(e,n);t.push(...o.map(l))}return t}),[]),u=(e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e},{core:d,noncore:p}=c.reduce(u,{core:[],noncore:[]}),m=[...d,...p];return[...m,...a]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Rt(e),(0,l.getBlockTypes)()])),bt=A((function(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=Array.isArray(t)?t:[t],[i]=r,s=ft(e,{buildScope:"transform"}),a=(0,l.getBlockTypes)().filter((t=>mt(e,t,o))).map(s),c=Object.fromEntries(Object.entries(a).map((e=>{let[,t]=e;return[t.name,t]})));c["*"]={frecency:1/0,id:"*",isDisabled:!1,name:"*",title:(0,h.__)("Unwrap"),icon:null===(n=c[null==i?void 0:i.name])||void 0===n?void 0:n.icon};const u=(0,l.getPossibleBlockTransformations)(r).reduce(((e,t)=>("*"===t?e.push(c["*"]):c[null==t?void 0:t.name]&&e.push(c[t.name]),e)),[]);return(0,p.orderBy)(u,(e=>c[e.name].frecency),"desc")}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,(0,l.getBlockTypes)()])),kt=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=(0,l.getBlockTypes)().some((n=>mt(e,n,t)));if(n)return!0;const o=ot(e,"core/block",t)&&Rt(e).length>0;return o}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Rt(e),(0,l.getBlockTypes)()])),_t=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return(0,p.filter)((0,l.getBlockTypes)(),(n=>mt(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,l.getBlockTypes)()])),yt=A((function(e){var t,n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!o)return;const l=null===(t=e.blockListSettings[o])||void 0===t?void 0:t.__experimentalDefaultBlock,r=null===(n=e.blockListSettings[o])||void 0===n?void 0:n.__experimentalDirectInsert;return l&&r?"function"==typeof r?r(j(e,o))?l:null:l:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree[t]])),Et=A(((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find((e=>{let{name:n}=e;return n===t}));return n?{...n,blocks:(0,l.parse)(n.content,{__unstableSkipMigrationLogs:!0})}:null}),(e=>[e.settings.__experimentalBlockPatterns])),Ct=A((e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=xt(e),o=t.filter((e=>{let{inserter:t=!0}=e;return!!t})).map((t=>{let{name:n}=t;return Et(e,n)})),l=o.filter((e=>{let{blocks:t}=e;return((e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!nt(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach((e=>{n.push(e)}))}return!0})(t,n)}));return l}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes])),St=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=Ct(e),o=(0,p.filter)(n,(n=>{let{blocks:o}=n;return o.every((n=>{let{name:o}=n;return lt(e,o,t)}))}));return o}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]])),wt=A((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return G;const o=St(e,n),l=Array.isArray(t)?t:[t];return o.filter((e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,(e=>l.includes(e)))}))}),((e,t)=>[...St.getDependants(e,t)])),Bt=A((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return G;if(t.some((t=>{let{clientId:n,innerBlocks:o}=t;return o.length||Vt(e,n)})))return G;const o=Array.from(new Set(t.map((e=>{let{name:t}=e;return t}))));return wt(e,o,n)}),((e,t)=>[...wt.getDependants(e,t)]));function It(e,t){return e.blockListSettings[t]}function xt(e){return e.settings}function Tt(e){return e.blocks.isPersistentChange}const Mt=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})}),(e=>[e.blockListSettings])),Nt=A(((e,t)=>{var n;const o=(0,p.find)(Rt(e),(e=>e.id===t));return o?null===(n=o.title)||void 0===n?void 0:n.raw:null}),(e=>[Rt(e)]));function Pt(e){return e.blocks.isIgnoredChange}function Lt(e){return e.lastBlockAttributesChange}function Rt(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:G}function At(e){return"navigation"===e.editorMode}function Dt(e){return e.editorMode}function Ot(e){return e.hasBlockMovingClientId}function zt(e){return!!e.automaticChangeStatus}function Ft(e,t){return e.highlightedBlock===t}function Vt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const Ht=A(((e,t)=>{if(!t.length)return null;const n=ce(e);if(t.includes(U(e,n)))return n;const o=ye(e),l=me(e,n||o[0],t);return l?l[l.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function Gt(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}function Ut(e,t){var n,o;return null===(n=null===(o=e.blockVisibility)||void 0===o?void 0:o[t])||void 0===n||n}const Wt=A((e=>new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])))),(e=>[e.blockVisibility])),$t=A(((e,t)=>{let n,o=t;for(;e.blocks.parents[o];)o=e.blocks.parents[o],"contentOnly"===tt(e,o)&&(n=o);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function jt(e){return e.temporarilyEditingAsBlocks}function Kt(e,t){if(!ut(e,t))return!0;const n=Dt(e);if("zoom-out"===n&&t&&!de(e,t))return!0;const o=(0,l.hasBlockSupport)(U(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!o&&Vt(e,t))&&!Oe(e,t)&&!ze(e,t,!0)}function qt(e,t){let n=e.blocks.parents[t];for(;n;){if(Kt(e,n))return!0;n=e.blocks.parents[n]}return!1}const Yt=window.wp.a11y,Zt="";function Qt(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return"string"==typeof n&&-1!==n.indexOf(Zt)}))}const Xt=e=>Array.isArray(e)?e:[e],Jt=e=>t=>{let{dispatch:n}=t;n({type:"RESET_BLOCKS",blocks:e}),n(en(e))},en=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getTemplate(),i=n.getTemplateLock(),s=!r||"all"!==i||(0,l.doBlocksMatchTemplate)(e,r);if(s!==n.isValidTemplate())return o.setTemplateValidity(s),s};function tn(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function nn(e){return V()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function on(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Xt(e),attributes:t,uniqueByBlock:n}}function ln(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function rn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const sn=e=>t=>{let{select:n,dispatch:o}=t;const l=n.getPreviousBlockClientId(e);l&&o.selectBlock(l,-1)},an=e=>t=>{let{select:n,dispatch:o}=t;const l=n.getNextBlockClientId(e);l&&o.selectBlock(l)};function cn(){return{type:"START_MULTI_SELECT"}}function un(){return{type:"STOP_MULTI_SELECT"}}const dn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o=>{let{select:l,dispatch:r}=o;if(l.getBlockRootClientId(e)!==l.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const i=l.getSelectedBlockCount();(0,Yt.speak)((0,h.sprintf)(
|
2 |
/* translators: %s: number of selected blocks */
|
3 |
-
(0,h._n)("%s block selected.","%s blocks selected.",i),i),"assertive")}};function pn(){return{type:"CLEAR_SELECTED_BLOCK"}}function mn(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function gn(e,t){var n,o;const r=null!==(n=null==t||null===(o=t.__experimentalPreferredStyleVariations)||void 0===o?void 0:o.value)&&void 0!==n?n:{};return e.map((e=>{var t;const n=e.name;if(!(0,l.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!r[n])return e;const o=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=o&&o.includes("is-style-"))return e;const{attributes:i={}}=e,s=r[n];return{...e,attributes:{...i,className:`${o||""} is-style-${s}`.trim()}}}))}const hn=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4?arguments[4]:void 0;return r=>{let{select:i,dispatch:s}=r;e=Xt(e),t=gn(Xt(t),i.getSettings());const a=i.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,a))return}s({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:l}),s((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()}))}};function fn(e,t){return hn(e,t)}const vn=e=>(t,n)=>o=>{let{select:l,dispatch:r}=o;l.canMoveBlocks(t,n)&&r({type:e,clientIds:Xt(t),rootClientId:n})},bn=vn("MOVE_BLOCKS_DOWN"),kn=vn("MOVE_BLOCKS_UP"),yn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return l=>{let{select:r,dispatch:i}=l;if(r.canMoveBlocks(e,t)){if(t!==n){if(!r.canRemoveBlocks(e,t))return;if(!r.canInsertBlocks(e,n))return}i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}}};function En(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return yn([e],t,n,o)}function Cn(e,t,n,o,l){return Sn([e],t,n,o,0,l)}const Sn=function(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5?arguments[5]:void 0;return i=>{let{select:s,dispatch:a}=i;null!==l&&"object"==typeof l&&(r=l,l=0,V()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=gn(Xt(e),s.getSettings());const c=[];for(const t of e)s.canInsertBlockType(t.name,n)&&c.push(t);c.length&&a({type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?l:null,meta:r})}};function wn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter:o,operation:l}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:l}}const Bn=()=>e=>{let{select:t,dispatch:n}=e;t.isBlockInsertionPointVisible()&&n({type:"HIDE_INSERTION_POINT"})};function In(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const xn=()=>e=>{let{select:t,dispatch:n}=e;n({type:"SYNCHRONIZE_TEMPLATE"});const o=t.getBlocks(),r=t.getTemplate(),i=(0,l.synchronizeBlocksWithTemplate)(o,r);n.resetBlocks(i)},Tn=e=>t=>{let{registry:n,select:o,dispatch:r}=t;const i=o.getSelectionStart(),s=o.getSelectionEnd();if(i.clientId===s.clientId)return;if(!i.attributeKey||!s.attributeKey||void 0===i.offset||void 0===s.offset)return!1;const a=o.getBlockRootClientId(i.clientId);if(a!==o.getBlockRootClientId(s.clientId))return;const c=o.getBlockOrder(a);let u,d;c.indexOf(i.clientId)>c.indexOf(s.clientId)?(u=s,d=i):(u=i,d=s);const p=e?d:u,m=o.getBlock(p.clientId),g=(0,l.getBlockType)(m.name);if(!g.merge)return;const h=u,f=d,v=o.getBlock(h.clientId),b=(0,l.getBlockType)(v.name),k=o.getBlock(f.clientId),_=(0,l.getBlockType)(k.name),y=v.attributes[h.attributeKey],E=k.attributes[f.attributeKey],C=b.attributes[h.attributeKey],S=_.attributes[f.attributeKey];let w=(0,z.create)({html:y,...H(C)}),B=(0,z.create)({html:E,...H(S)});w=(0,z.remove)(w,h.offset,w.text.length),B=(0,z.insert)(B,Zt,0,f.offset);const I=(0,l.cloneBlock)(v,{[h.attributeKey]:(0,z.toHTMLString)({value:w,...H(C)})}),x=(0,l.cloneBlock)(k,{[f.attributeKey]:(0,z.toHTMLString)({value:B,...H(S)})}),T=e?I:x,M=v.name===k.name?[T]:(0,l.switchToBlockType)(T,g.name);if(!M||!M.length)return;let N;if(e){const e=M.pop();N=g.merge(e.attributes,x.attributes)}else{const e=M.shift();N=g.merge(I.attributes,e.attributes)}const P=Qt(N),L=N[P],R=(0,z.create)({html:L,...H(g.attributes[P])}),A=R.text.indexOf(Zt),D=(0,z.remove)(R,A,A+1),O=(0,z.toHTMLString)({value:D,...H(g.attributes[P])});N[P]=O;const F=o.getSelectedBlockClientIds(),V=[...e?M:[],{...m,attributes:{...m.attributes,...N}},...e?[]:M];n.batch((()=>{r.selectionChange(m.clientId,P,A,A),r.replaceBlocks(F,V,0,o.getSelectedBlocksInitialCaretPosition())}))},Mn=()=>e=>{let{select:t,dispatch:n}=e;const o=t.getSelectionStart(),r=t.getSelectionEnd();if(o.clientId===r.clientId)return;if(!o.attributeKey||!r.attributeKey||void 0===o.offset||void 0===r.offset)return;const i=t.getBlockRootClientId(o.clientId);if(i!==t.getBlockRootClientId(r.clientId))return;const s=t.getBlockOrder(i);let a,c;s.indexOf(o.clientId)>s.indexOf(r.clientId)?(a=r,c=o):(a=o,c=r);const u=a,d=c,p=t.getBlock(u.clientId),m=(0,l.getBlockType)(p.name),g=t.getBlock(d.clientId),h=(0,l.getBlockType)(g.name),f=p.attributes[u.attributeKey],v=g.attributes[d.attributeKey],b=m.attributes[u.attributeKey],k=h.attributes[d.attributeKey];let _=(0,z.create)({html:f,...H(b)}),y=(0,z.create)({html:v,...H(k)});_=(0,z.remove)(_,u.offset,_.text.length),y=(0,z.remove)(y,0,d.offset),n.replaceBlocks(t.getSelectedBlockClientIds(),[{...p,attributes:{...p.attributes,[u.attributeKey]:(0,z.toHTMLString)({value:_,...H(b)})}},(0,l.createBlock)((0,l.getDefaultBlockName)()),{...g,attributes:{...g.attributes,[d.attributeKey]:(0,z.toHTMLString)({value:y,...H(k)})}}],1,t.getSelectedBlocksInitialCaretPosition())},Nn=()=>e=>{let{select:t,dispatch:n}=e;const o=t.getSelectionStart(),l=t.getSelectionEnd();n.selectionChange({start:{clientId:o.clientId},end:{clientId:l.clientId}})},Pn=(e,t)=>n=>{let{registry:o,select:r,dispatch:i}=n;const s=[e,t];i({type:"MERGE_BLOCKS",blocks:s});const[a,c]=s,u=r.getBlock(a),d=(0,l.getBlockType)(u.name);if(!d)return;const p=r.getBlock(c);if(d&&!d.merge){const e=(0,l.switchToBlockType)(p,d.name);if(1!==(null==e?void 0:e.length))return void i.selectBlock(u.clientId);const[t]=e;return t.innerBlocks.length<1?void i.selectBlock(u.clientId):void o.batch((()=>{i.insertBlocks(t.innerBlocks,void 0,a),i.removeBlock(c),i.selectBlock(t.innerBlocks[0].clientId)}))}const m=(0,l.getBlockType)(p.name),{clientId:g,attributeKey:h,offset:f}=r.getSelectionStart(),v=(g===a?d:m).attributes[h],b=(g===a||g===c)&&void 0!==h&&void 0!==f&&!!v;v||("number"==typeof h?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof h):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const k=(0,l.cloneBlock)(u),_=(0,l.cloneBlock)(p);if(b){const e=g===a?k:_,t=e.attributes[h],n=(0,z.insert)((0,z.create)({html:t,...H(v)}),Zt,f,f);e.attributes[h]=(0,z.toHTMLString)({value:n,...H(v)})}const y=u.name===p.name?[_]:(0,l.switchToBlockType)(_,u.name);if(!y||!y.length)return;const E=d.merge(k.attributes,y[0].attributes);if(b){const e=Qt(E),t=E[e],n=(0,z.create)({html:t,...H(d.attributes[e])}),o=n.text.indexOf(Zt),l=(0,z.remove)(n,o,o+1),r=(0,z.toHTMLString)({value:l,...H(d.attributes[e])});E[e]=r,i.selectionChange(u.clientId,e,o,o)}i.replaceBlocks([u.clientId,p.clientId],[{...u,attributes:{...u.attributes,...E}},...y.slice(1)],0)},Ln=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:l}=n;if(!e||!e.length)return;e=Xt(e);const r=o.getBlockRootClientId(e[0]);o.canRemoveBlocks(e,r)&&(t&&l.selectPreviousBlock(e[0]),l({type:"REMOVE_BLOCKS",clientIds:e}),l((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()})))}};function Rn(e,t){return Ln([e],t)}function An(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function Dn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function On(){return{type:"HIDE_BLOCK_INTERFACE"}}function zn(){return{type:"SHOW_BLOCK_INTERFACE"}}function Fn(){return{type:"START_TYPING"}}function Vn(){return{type:"STOP_TYPING"}}function Hn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Gn(){return{type:"STOP_DRAGGING_BLOCKS"}}function Un(){return V()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function Wn(){return V()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function $n(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const jn=(e,t,n)=>o=>{let{dispatch:r}=o;const i=(0,l.getDefaultBlockName)();if(!i)return;const s=(0,l.createBlock)(i,e);return r.insertBlock(s,n,t)};function Kn(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function qn(e){return{type:"UPDATE_SETTINGS",settings:e}}function Yn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Zn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Qn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const Xn=()=>e=>{let{dispatch:t}=e;t({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:n=(e=>setTimeout(e,100))}=window;n((()=>{t({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},Jn=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{dispatch:n}=t;n.__unstableSetEditorMode(e?"navigation":"edit")}},eo=e=>t=>{let{dispatch:n,select:o}=t;if("zoom-out"===e){const e=o.getBlockSelectionStart();e&&n.selectBlock(o.getBlockHierarchyRootClientId(e))}n({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?(0,Yt.speak)((0,h.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):"edit"===e?(0,Yt.speak)((0,h.__)("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&(0,Yt.speak)((0,h.__)("You are currently in zoom-out mode."))},to=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>{let{dispatch:n}=t;n({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,Yt.speak)((0,h.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))}},no=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:r}=n;if(!e||!e.length)return;const i=o.getBlocksByClientId(e);if(i.some((e=>!e)))return;const s=i.map((e=>e.name));if(s.some((e=>!(0,l.hasBlockSupport)(e,"multiple",!0))))return;const a=o.getBlockRootClientId(e[0]),c=Xt(e),u=o.getBlockIndex(c[c.length-1]),d=i.map((e=>(0,l.__experimentalCloneSanitizedBlock)(e)));return r.insertBlocks(d,u+1,a,t),d.length>1&&t&&r.multiSelect(d[0].clientId,d[d.length-1].clientId),d.map((e=>e.clientId))}},oo=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const l=n.getBlockRootClientId(e);if(n.getTemplateLock(l))return;const r=n.getBlockIndex(e);return o.insertDefaultBlock({},l,r)},lo=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const l=n.getBlockRootClientId(e);if(n.getTemplateLock(l))return;const r=n.getBlockIndex(e);return o.insertDefaultBlock({},l,r+1)};function ro(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const io=e=>async t=>{let{dispatch:n}=t;n(ro(e,!0)),await new Promise((e=>setTimeout(e,150))),n(ro(e,!1))};function so(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function ao(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function co(e){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e}}const uo="core/block-editor",po={reducer:N,selectors:e,actions:t},mo=(0,d.createReduxStore)(uo,{...po,persist:["preferences"]});(0,d.registerStore)(uo,{...po,persist:["preferences"]});const go={name:"",isSelected:!1},ho=(0,s.createContext)(go),{Provider:fo}=ho;function vo(){return(0,s.useContext)(ho)}function bo(){const{isSelected:e,clientId:t,name:n}=vo();return(0,d.useSelect)((o=>{if(e)return!0;const{getBlockName:l,isFirstMultiSelectedBlock:r,getMultiSelectedBlockClientIds:i}=o(mo);return!!r(t)&&i().every((e=>l(e)===n))}),[t,e,n])}function ko(e){let{group:t="default",controls:n,children:o,__experimentalShareWithChildBlocks:r=!1}=e;const i=function(e,t){const n=bo(),{clientId:o}=vo(),r=(0,d.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:r}=e(mo),{hasBlockSupport:i}=e(l.store);return t&&i(n(o),"__experimentalExposeControlsToChildren",!1)&&r(o)}),[t,o]);var i;return n?null===(i=g[e])||void 0===i?void 0:i.Fill:r?g.parent.Fill:null}(t,r);return i?(0,s.createElement)(m.__experimentalStyleProvider,{document},(0,s.createElement)(i,null,(e=>{const l=(0,p.isEmpty)(e)?null:e;return(0,s.createElement)(m.__experimentalToolbarContext.Provider,{value:l},"default"===t&&(0,s.createElement)(m.ToolbarGroup,{controls:n}),o)}))):null}function _o(e){let{group:t="default",...n}=e;const o=(0,s.useContext)(m.__experimentalToolbarContext),l=g[t].Slot,r=(0,m.__experimentalUseSlotFills)(l.__unstableName);return Boolean(r&&r.length)?"default"===t?(0,s.createElement)(l,i({},n,{bubblesVirtually:!0,fillProps:o})):(0,s.createElement)(m.ToolbarGroup,null,(0,s.createElement)(l,i({},n,{bubblesVirtually:!0,fillProps:o}))):null}const yo=ko;yo.Slot=_o;const Eo=e=>(0,s.createElement)(ko,i({group:"inline"},e));Eo.Slot=e=>(0,s.createElement)(_o,i({group:"inline"},e));const Co=yo,So=(0,s.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(D.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),wo=(0,s.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(D.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),Bo=(0,s.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(D.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),Io=(0,s.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(D.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),xo=(0,s.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(D.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),To=(0,s.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(D.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"}));function Mo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function No(e,t,n,o){var l,r;let i="";return null!=t&&null!==(l=t[n])&&void 0!==l&&null!==(r=l.spacingStyles)&&void 0!==r&&r.length&&o&&t[n].spacingStyles.forEach((t=>{i+=`${Mo(e,t.selector.trim())} { `,i+=Object.entries(t.rules).map((e=>{let[t,n]=e;return`${t}: ${n||o}`})).join("; "),i+="; }"})),i}function Po(e){const{contentSize:t,wideSize:n}=e,o={},l=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;return l.test(t)&&(
|
4 |
// translators: %s: container size (i.e. 600px etc)
|
5 |
-
o.none=(0,
|
6 |
// translators: %s: container size (i.e. 600px etc)
|
7 |
-
o.wide=(0,h.sprintf)((0,h.__)("Max %s wide"),n)),o}const Lo=(0,s.createContext)({refs:new Map,callbacks:new Map});function Ro(e){let{children:t}=e;const n=(0,s.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,s.createElement)(Lo.Provider,{value:n},t)}function Ao(e){const{refs:t,callbacks:n}=(0,s.useContext)(Lo),o=(0,s.useRef)();return(0,s.useLayoutEffect)((()=>(t.set(o,e),()=>{t.delete(o)})),[e]),(0,u.useRefEffect)((t=>{o.current=t,n.forEach(((n,o)=>{e===n&&o(t)}))}),[e])}function Do(e){const{refs:t}=(0,s.useContext)(Lo),n=(0,s.useRef)();return n.current=e,(0,s.useMemo)((()=>({get current(){let e=null;for(const[o,l]of t.entries())l===n.current&&o.current&&(e=o.current);return e}})),[])}function Oo(e){const{callbacks:t}=(0,s.useContext)(Lo),n=Do(e),[o,l]=(0,s.useState)(null);return(0,s.useLayoutEffect)((()=>{if(e)return t.set(l,e),()=>{t.delete(l)}}),[e]),n.current||o}function zo(e){return!(null==e||!e.includes)&&("0"===e||e.includes("var:preset|spacing|"))}function Fo(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function Vo(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}const Ho={all:(0,h.__)("All sides"),top:(0,h.__)("Top"),bottom:(0,h.__)("Bottom"),left:(0,h.__)("Left"),right:(0,h.__)("Right"),mixed:(0,h.__)("Mixed"),vertical:(0,h.__)("Vertical"),horizontal:(0,h.__)("Horizontal")},Go={top:void 0,right:void 0,bottom:void 0,left:void 0},Uo=["top","right","bottom","left"];function Wo(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function $o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uo;return Object.values(e).length>=1&&Object.values(e).length<t.length||new Set(Object.values(e)).size>1}function jo(e){return null!=e&&!(0,p.isEmpty)(Object.values(e).filter((e=>!!e)))}const Ko=(0,s.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(D.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"})),qo=["color","border","dimensions","typography","spacing"],Yo={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},Zo={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.custom
|
1 |
+
!function(){var e={6411:function(e,t){var n,o;n=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),l=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){l=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,i=function(){e.clientWidth!==n&&d()},a=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:a,update:d}),"vertical"===(s=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===s.resize&&(e.style.resize="horizontal"),t="content-box"===s.boxSizing?-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),isNaN(t)&&(t=0),d()}var s;function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var o=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(c("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var i=l("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}function a(e){var t=r.get(e);t&&t.destroy()}function s(e){var t=r.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}),t.default=c,e.exports=t.default},void 0===(o=n.apply(t,[e,t]))||(e.exports=o)},4403:function(e,t){var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===l)if(n.toString===Object.prototype.toString)for(var a in n)o.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},4827:function(e){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},1198:function(e,t){"use strict";function n(){}function o(e,t,n,o,r){for(var l=0,i=t.length,a=0,s=0;l<i;l++){var c=t[l];if(c.removed){if(c.value=e.join(o.slice(s,s+c.count)),s+=c.count,l&&t[l-1].added){var u=t[l-1];t[l-1]=t[l],t[l]=u}}else{if(!c.added&&r){var d=n.slice(a,a+c.count);d=d.map((function(e,t){var n=o[s+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(a,a+c.count));a+=c.count,c.added||(s+=c.count)}}var p=t[i-1];return i>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[i-2].value+=p.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=n.callback;"function"==typeof n&&(l=n,n={}),this.options=n;var i=this;function a(e){return l?(setTimeout((function(){l(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,u=1,d=s+c,p=[{newPos:-1,components:[]}],m=this.extractCommon(p[0],t,e,0);if(p[0].newPos+1>=s&&m+1>=c)return a([{value:this.join(t),count:t.length}]);function g(){for(var n=-1*u;n<=u;n+=2){var l=void 0,d=p[n-1],m=p[n+1],g=(m?m.newPos:0)-n;d&&(p[n-1]=void 0);var f=d&&d.newPos+1<s,h=m&&0<=g&&g<c;if(f||h){if(!f||h&&d.newPos<m.newPos?(l=r(m),i.pushComponent(l.components,void 0,!0)):((l=d).newPos++,i.pushComponent(l.components,!0,void 0)),g=i.extractCommon(l,t,e,n),l.newPos+1>=s&&g+1>=c)return a(o(i,l.components,t,e,i.useLongestToken));p[n]=l}else p[n]=void 0}u++}if(l)!function e(){setTimeout((function(){if(u>d)return l();g()||e()}),0)}();else for(;u<=d;){var f=g();if(f)return f}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,l=n.length,i=e.newPos,a=i-o,s=0;i+1<r&&a+1<l&&this.equals(t[i+1],n[a+1]);)i++,a++,s++;return s&&e.components.push({count:s}),e.newPos=i,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},1973:function(e,t,n){"use strict";var o;t.Kx=function(e,t,n){return r.diff(e,t,n)};var r=new(((o=n(1198))&&o.__esModule?o:{default:o}).default)},1345:function(e,t,n){"use strict";var o=n(5022);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,l=n.onlyScrollIfNeeded,i=n.alignWithTop,a=n.alignWithLeft,s=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var p=o.isWindow(t),m=!(!p||!t.frameElement),g=o.offset(e),f=o.outerHeight(e),h=o.outerWidth(e),v=void 0,b=void 0,_=void 0,k=void 0,y=void 0,E=void 0,C=void 0,S=void 0,w=void 0,B=void 0;m&&(t=t.document.scrollingElement||t.document.body),p||m?(C=t,B=o.height(C),w=o.width(C),S={left:o.scrollLeft(C),top:o.scrollTop(C)},y={left:g.left-S.left-c,top:g.top-S.top-s},E={left:g.left+h-(S.left+w)+d,top:g.top+f-(S.top+B)+u},k=S):(v=o.offset(t),b=t.clientHeight,_=t.clientWidth,k={left:t.scrollLeft,top:t.scrollTop},y={left:g.left-(v.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-c,top:g.top-(v.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-s},E={left:g.left+h-(v.left+_+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:g.top+f-(v.top+b+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),y.top<0||E.top>0?!0===i?o.scrollTop(t,k.top+y.top):!1===i?o.scrollTop(t,k.top+E.top):y.top<0?o.scrollTop(t,k.top+y.top):o.scrollTop(t,k.top+E.top):l||((i=void 0===i||!!i)?o.scrollTop(t,k.top+y.top):o.scrollTop(t,k.top+E.top)),r&&(y.left<0||E.left>0?!0===a?o.scrollLeft(t,k.left+y.left):!1===a?o.scrollLeft(t,k.left+E.left):y.left<0?o.scrollLeft(t,k.left+y.left):o.scrollLeft(t,k.left+E.left):l||((a=void 0===a||!!a)?o.scrollLeft(t,k.left+y.left):o.scrollLeft(t,k.left+E.left)))}},5425:function(e,t,n){"use strict";e.exports=n(1345)},5022:function(e){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function o(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function r(e){return o(e)}function l(e){return o(e,!0)}function i(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,l=r.body,i=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=i.clientLeft||l.clientLeft||0,top:o-=i.clientTop||l.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=r(o),t.top+=l(o),t}var a=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),s=/^(top|right|bottom|left)$/,c=void 0;function u(e,t){for(var n=0;n<e.length;n++)t(e[n])}function d(e){return"border-box"===c(e,"boxSizing")}"undefined"!=typeof window&&(c=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,l=n||r.defaultView.getComputedStyle(e,null);return l&&(o=l.getPropertyValue(t)||l[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(a.test(n)&&!s.test(t)){var o=e.style,r=o.left,l=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,o.left="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o.left=r,e.runtimeStyle.left=l}return""===n?"auto":n});var p=["margin","border","padding"];function m(e,t,n){var o={},r=e.style,l=void 0;for(l in t)t.hasOwnProperty(l)&&(o[l]=r[l],r[l]=t[l]);for(l in n.call(e),t)t.hasOwnProperty(l)&&(r[l]=o[l])}function g(e,t,n){var o=0,r=void 0,l=void 0,i=void 0;for(l=0;l<t.length;l++)if(r=t[l])for(i=0;i<n.length;i++){var a;a="border"===r?r+n[i]+"Width":r+n[i],o+=parseFloat(c(e,a))||0}return o}function f(e){return null!=e&&e==e.window}var h={};function v(e,t,n){if(f(e))return"width"===t?h.viewportWidth(e):h.viewportHeight(e);if(9===e.nodeType)return"width"===t?h.docWidth(e):h.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,l=(c(e),d(e)),i=0;(null==r||r<=0)&&(r=void 0,(null==(i=c(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=l?1:-1);var a=void 0!==r||l,s=r||i;if(-1===n)return a?s-g(e,["border","padding"],o):i;if(a){var u=2===n?-g(e,["border"],o):g(e,["margin"],o);return s+(1===n?0:u)}return i+g(e,p.slice(n),o)}u(["Width","Height"],(function(e){h["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],h["viewport"+e](n))},h["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,l=o.documentElement[n];return"CSS1Compat"===o.compatMode&&l||r&&r[n]||l}}));var b={position:"absolute",visibility:"hidden",display:"block"};function _(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=v.apply(void 0,n):m(e,b,(function(){t=v.apply(void 0,n)})),t}function k(e,t,o){var r=o;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):c(e,t);for(var l in t)t.hasOwnProperty(l)&&k(e,l,t[l])}u(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);h["outer"+t]=function(t,n){return t&&_(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];h[e]=function(t,o){return void 0===o?t&&_(t,e,-1):t?(c(t),d(t)&&(o+=g(t,["padding","border"],n)),k(t,e,o)):void 0}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return i(e);!function(e,t){"static"===k(e,"position")&&(e.style.position="relative");var n=i(e),o={},r=void 0,l=void 0;for(l in t)t.hasOwnProperty(l)&&(r=parseFloat(k(e,l))||0,o[l]=r+t[l]-n[l]);k(e,o)}(e,t)},isWindow:f,each:u,css:k,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(f(e)){if(void 0===t)return r(e);window.scrollTo(t,l(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(f(e)){if(void 0===t)return l(e);window.scrollTo(r(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},h)},8575:function(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},9894:function(e,t,n){var o=n(4827);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var l=e.nodeName,i=document.createElement(l);i.innerHTML=" ","TEXTAREA"===l.toUpperCase()&&i.setAttribute("rows","1");var a=o(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var s=document.body;s.appendChild(i),n=i.offsetHeight,s.removeChild(i)}return n}},7970:function(e,t,n){e.exports=n(195)},3110:function(e){"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},3812:function(e){var t,n,o,r,l,i,a,s,c,u,d,p,m,g,f,h=!1;function v(){if(!h){h=!0;var e=navigator.userAgent,v=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),f=/Mobile/i.exec(e),d=!!/Win64/.exec(e),v){(t=v[1]?parseFloat(v[1]):v[5]?parseFloat(v[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var _=/(?:Trident\/(\d+.\d+))/.exec(e);i=_?parseFloat(_[1])+4:t,n=v[2]?parseFloat(v[2]):NaN,o=v[3]?parseFloat(v[3]):NaN,(r=v[4]?parseFloat(v[4]):NaN)?(v=/(?:Chrome\/(\d+\.\d+))/.exec(e),l=v&&v[1]?parseFloat(v[1]):NaN):l=NaN}else t=n=o=l=r=NaN;if(b){if(b[1]){var k=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);a=!k||parseFloat(k[1].replace("_","."))}else a=!1;s=!!b[2],c=!!b[3]}else a=s=c=!1}}var b={ie:function(){return v()||t},ieCompatibilityMode:function(){return v()||i>t},ie64:function(){return b.ie()&&d},firefox:function(){return v()||n},opera:function(){return v()||o},webkit:function(){return v()||r},safari:function(){return b.webkit()},chrome:function(){return v()||l},windows:function(){return v()||s},osx:function(){return v()||a},linux:function(){return v()||c},iphone:function(){return v()||p},mobile:function(){return v()||p||m||u||f},nativeApp:function(){return v()||g},android:function(){return v()||u},ipad:function(){return v()||m}};e.exports=b},7939:function(e,t,n){"use strict";var o,r=n(3110);r.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,l=n in document;if(!l){var i=document.createElement("div");i.setAttribute(n,"return;"),l="function"==typeof i[n]}return!l&&o&&"wheel"===e&&(l=document.implementation.hasFeature("Events.wheel","3.0")),l}},195:function(e,t,n){"use strict";var o=n(3812),r=n(7939);function l(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}l.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},5372:function(e,t,n){"use strict";var o=n(9567);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,i){if(i!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return n.PropTypes=n,n}},2652:function(e,t,n){e.exports=n(5372)()},9567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5438:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var a=n(9196),s=n(2652),c=n(6411),u=n(9894),d="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),s=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return a.createElement("textarea",l({},s,{onChange:this.onChange,style:u?l({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:s.number,maxRows:s.number,onResize:s.func,innerRef:s.any,async:s.bool},t}(a.Component);t.TextareaAutosize=a.forwardRef((function(e,t){return a.createElement(p,l({},e,{innerRef:t}))}))},773:function(e,t,n){"use strict";var o=n(5438);t.Z=o.TextareaAutosize},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),r=new RegExp(n,""),l=function(e){return e.replace(o,(function(e){return t[e]}))};e.exports=l,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=l},3124:function(e){var t=e.exports=function(e){return new n(e)};function n(e){this.value=e}function o(e,t,n){var o=[],i=[],u=!0;return function e(d){var p=n?r(d):d,m={},g=!0,f={node:p,node_:d,path:[].concat(o),parent:i[i.length-1],parents:i,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(e,t){f.isRoot||(f.parent.node[f.key]=e),f.node=e,t&&(g=!1)},delete:function(e){delete f.parent.node[f.key],e&&(g=!1)},remove:function(e){a(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],e&&(g=!1)},keys:null,before:function(e){m.before=e},after:function(e){m.after=e},pre:function(e){m.pre=e},post:function(e){m.post=e},stop:function(){u=!1},block:function(){g=!1}};if(!u)return f;function h(){if("object"==typeof f.node&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=l(f.node)),f.isLeaf=0==f.keys.length;for(var e=0;e<i.length;e++)if(i[e].node_===d){f.circular=i[e];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}h();var v=t.call(f,f.node);return void 0!==v&&f.update&&f.update(v),m.before&&m.before.call(f,f.node),g?("object"!=typeof f.node||null===f.node||f.circular||(i.push(f),h(),s(f.keys,(function(t,r){o.push(t),m.pre&&m.pre.call(f,f.node[t],t);var l=e(f.node[t]);n&&c.call(f.node,t)&&(f.node[t]=l.node),l.isLast=r==f.keys.length-1,l.isFirst=0==r,m.post&&m.post.call(f,l),o.pop()})),i.pop()),m.after&&m.after.call(f,f.node),f):f}(e).node}function r(e){if("object"==typeof e&&null!==e){var t;if(a(e))t=[];else if("[object Date]"===i(e))t=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===i(e))t=new RegExp(e);else if(function(e){return"[object Error]"===i(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===i(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===i(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===i(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},o=function(){};o.prototype=n,t=new o}return s(l(e),(function(n){t[n]=e[n]})),t}return e}n.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!c.call(t,o)){t=void 0;break}t=t[o]}return t},n.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!c.call(t,o))return!1;t=t[o]}return!0},n.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];c.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},n.prototype.map=function(e){return o(this.value,e,!0)},n.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},n.prototype.reduce=function(e,t){var n=1===arguments.length,o=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(o=e.call(this,o,t))})),o},n.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},n.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},n.prototype.clone=function(){var e=[],t=[];return function n(o){for(var i=0;i<e.length;i++)if(e[i]===o)return t[i];if("object"==typeof o&&null!==o){var a=r(o);return e.push(o),t.push(a),s(l(o),(function(e){a[e]=n(o[e])})),e.pop(),t.pop(),a}return o}(this.value)};var l=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function i(e){return Object.prototype.toString.call(e)}var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(l(n.prototype),(function(e){t[e]=function(t){var o=[].slice.call(arguments,1),r=new n(t);return r[e].apply(r,o)}}));var c=Object.hasOwnProperty||function(e,t){return t in e}},9196:function(e){"use strict";e.exports=window.React}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={exports:{}};return e[o].call(l.exports,l,l.exports,n),l.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{AlignmentControl:function(){return mk},AlignmentToolbar:function(){return gk},Autocomplete:function(){return Sk},BlockAlignmentControl:function(){return Jl},BlockAlignmentToolbar:function(){return ei},BlockBreadcrumb:function(){return Nk},BlockColorsStyleSelector:function(){return Rk},BlockContextProvider:function(){return mi},BlockControls:function(){return Co},BlockEdit:function(){return vi},BlockEditorKeyboardShortcuts:function(){return gw},BlockEditorProvider:function(){return ad},BlockFormatControls:function(){return Eo},BlockIcon:function(){return nd},BlockInspector:function(){return aw},BlockList:function(){return qh},BlockMover:function(){return Wg},BlockNavigationDropdown:function(){return ty},BlockPreview:function(){return Fp},BlockSelectionClearer:function(){return cd},BlockSettingsMenu:function(){return rh},BlockSettingsMenuControls:function(){return Jf},BlockStyles:function(){return ly},BlockTitle:function(){return Rg},BlockToolbar:function(){return mh},BlockTools:function(){return uw},BlockVerticalAlignmentControl:function(){return fl},BlockVerticalAlignmentToolbar:function(){return hl},ButtonBlockAppender:function(){return kg},ButtonBlockerAppender:function(){return _g},ColorPalette:function(){return Ey},ColorPaletteControl:function(){return Cy},ContrastChecker:function(){return Uv},CopyHandler:function(){return Pf},DefaultBlockAppender:function(){return vg},FontSizePicker:function(){return Tb},InnerBlocks:function(){return Uh},Inserter:function(){return hg},InspectorAdvancedControls:function(){return Sr},InspectorControls:function(){return wr},JustifyContentControl:function(){return _l},JustifyToolbar:function(){return kl},LineHeightControl:function(){return db},MediaPlaceholder:function(){return DC},MediaReplaceFlow:function(){return NC},MediaUpload:function(){return Xm},MediaUploadCheck:function(){return Zm},MultiSelectScrollIntoView:function(){return fw},NavigableToolbar:function(){return Kg},ObserveTyping:function(){return _w},PanelColorSettings:function(){return OC},PlainText:function(){return bS},RichText:function(){return fS},RichTextShortcut:function(){return yS},RichTextToolbarButton:function(){return ES},SETTINGS_DEFAULTS:function(){return v},SkipToSelectedBlock:function(){return VS},ToolSelector:function(){return wS},Typewriter:function(){return Cw},URLInput:function(){return CE},URLInputButton:function(){return TS},URLPopover:function(){return LC},Warning:function(){return _i},WritingFlow:function(){return Cd},__experimentalBlockAlignmentMatrixControl:function(){return xk},__experimentalBlockFullHeightAligmentControl:function(){return Bk},__experimentalBlockPatternSetup:function(){return vy},__experimentalBlockPatternsList:function(){return lm},__experimentalBlockVariationPicker:function(){return ay},__experimentalBlockVariationTransforms:function(){return ky},__experimentalBorderRadiusControl:function(){return sv},__experimentalColorGradientControl:function(){return Fv},__experimentalColorGradientSettingsDropdown:function(){return Gv},__experimentalDateFormatPicker:function(){return By},__experimentalDuotoneControl:function(){return B_},__experimentalFontAppearanceControl:function(){return ub},__experimentalFontFamilyControl:function(){return yb},__experimentalGetBorderClassesAndStyles:function(){return W_},__experimentalGetColorClassesAndStyles:function(){return j_},__experimentalGetElementClassName:function(){return Mw},__experimentalGetGapCSSValue:function(){return il},__experimentalGetGradientClass:function(){return Iv},__experimentalGetGradientObjectByGradientValue:function(){return Tv},__experimentalGetMatchingVariation:function(){return Lw},__experimentalGetSpacingClassesAndStyles:function(){return Y_},__experimentalHeightControl:function(){return Dr},__experimentalImageEditingProvider:function(){return nE},__experimentalImageEditor:function(){return pE},__experimentalImageSizeControl:function(){return fE},__experimentalImageURLInputUI:function(){return OS},__experimentalInspectorPopoverHeader:function(){return xw},__experimentalLayoutStyle:function(){return Gl},__experimentalLetterSpacingControl:function(){return i_},__experimentalLibrary:function(){return pw},__experimentalLinkControl:function(){return tC},__experimentalLinkControlSearchInput:function(){return $E},__experimentalLinkControlSearchItem:function(){return PE},__experimentalLinkControlSearchResults:function(){return FE},__experimentalListView:function(){return Jk},__experimentalOffCanvasEditor:function(){return SC},__experimentalPanelColorGradientSettings:function(){return Py},__experimentalPreviewOptions:function(){return FS},__experimentalPublishDateTimePicker:function(){return Tw},__experimentalRecursionProvider:function(){return ww},__experimentalResponsiveBlockControl:function(){return kS},__experimentalSpacingSizesControl:function(){return ar},__experimentalTextDecorationControl:function(){return qb},__experimentalTextTransformControl:function(){return n_},__experimentalUnitControl:function(){return BS},__experimentalUseBlockOverlayActive:function(){return Gu},__experimentalUseBlockPreview:function(){return zp},__experimentalUseBorderProps:function(){return $_},__experimentalUseColorProps:function(){return q_},__experimentalUseCustomSides:function(){return nl},__experimentalUseGradient:function(){return Mv},__experimentalUseHasRecursion:function(){return Bw},__experimentalUseMultipleOriginColorsAndGradients:function(){return gv},__experimentalUseResizeCanvas:function(){return zS},__experimentaluseLayoutClasses:function(){return R_},__experimentaluseLayoutStyles:function(){return A_},__unstableBlockNameContext:function(){return ph},__unstableBlockSettingsMenuFirstItem:function(){return zf},__unstableBlockToolbarLastItem:function(){return Bf},__unstableDuotoneFilter:function(){return Pp},__unstableDuotoneStylesheet:function(){return Np},__unstableDuotoneUnsetStylesheet:function(){return Mp},__unstableEditorStyles:function(){return xp},__unstableGetValuesFromColors:function(){return Tp},__unstableIframe:function(){return Bd},__unstableInserterMenuExtension:function(){return rg},__unstablePresetDuotoneFilter:function(){return Lp},__unstableRichTextInputEvent:function(){return CS},__unstableUseBlockSelectionClearer:function(){return sd},__unstableUseClipboardHandler:function(){return Mf},__unstableUseMouseMoveTypingReset:function(){return vw},__unstableUseTypewriter:function(){return Ew},__unstableUseTypingObserver:function(){return bw},createCustomColorsHOC:function(){return nk},getColorClassName:function(){return pv},getColorObjectByAttributeValues:function(){return uv},getColorObjectByColorValue:function(){return dv},getComputedFluidTypographyValue:function(){return Ab},getFontSize:function(){return Bb},getFontSizeClass:function(){return xb},getFontSizeObjectByValue:function(){return Ib},getGradientSlugByValue:function(){return Nv},getGradientValueBySlug:function(){return xv},getPxFromCssUnit:function(){return Uw},getTypographyClassesAndStyles:function(){return Q_},store:function(){return mo},storeConfig:function(){return po},transformStyles:function(){return wp},useBlockDisplayInformation:function(){return Pg},useBlockEditContext:function(){return vo},useBlockProps:function(){return Uu},useCachedTruthy:function(){return Z_},useInnerBlocksProps:function(){return Gh},useSetting:function(){return Zo},withColorContext:function(){return yy},withColors:function(){return ok},withFontSizes:function(){return ik}});var e={};n.r(e),n.d(e,{__experimentalGetActiveBlockIdByBlockNames:function(){return Ht},__experimentalGetAllowedBlocks:function(){return kt},__experimentalGetAllowedPatterns:function(){return St},__experimentalGetBlockListSettingsForBlocks:function(){return Nt},__experimentalGetDirectInsertBlock:function(){return yt},__experimentalGetGlobalBlocksByName:function(){return ee},__experimentalGetLastBlockAttributeChanges:function(){return Lt},__experimentalGetParsedPattern:function(){return Et},__experimentalGetPatternTransformItems:function(){return Bt},__experimentalGetPatternsByBlockTypes:function(){return wt},__experimentalGetReusableBlockTitle:function(){return Mt},__experimentalIsBlockInterfaceHidden:function(){return $e},__unstableGetBlockWithoutInnerBlocks:function(){return K},__unstableGetClientIdWithClientIdsTree:function(){return Y},__unstableGetClientIdsTree:function(){return Q},__unstableGetContentLockingParent:function(){return $t},__unstableGetEditorMode:function(){return Dt},__unstableGetSelectedBlocksWithPartialSelection:function(){return Re},__unstableGetTemporarilyEditingAsBlocks:function(){return jt},__unstableGetVisibleBlocks:function(){return Wt},__unstableHasActiveBlockOverlayActive:function(){return Kt},__unstableIsFullySelected:function(){return Ne},__unstableIsLastBlockChangeIgnored:function(){return Pt},__unstableIsSelectionCollapsed:function(){return Me},__unstableIsSelectionMergeable:function(){return Le},__unstableIsWithinBlockOverlay:function(){return qt},__unstableSelectionHasUnmergeableBlock:function(){return Pe},areInnerBlocksControlled:function(){return Vt},canEditBlock:function(){return ut},canInsertBlockType:function(){return rt},canInsertBlocks:function(){return lt},canLockBlockType:function(){return dt},canMoveBlock:function(){return st},canMoveBlocks:function(){return ct},canRemoveBlock:function(){return it},canRemoveBlocks:function(){return at},didAutomaticChange:function(){return Ft},getAdjacentBlockClientId:function(){return he},getBlock:function(){return j},getBlockAttributes:function(){return $},getBlockCount:function(){return ne},getBlockHierarchyRootClientId:function(){return ge},getBlockIndex:function(){return De},getBlockInsertionPoint:function(){return Ze},getBlockListSettings:function(){return It},getBlockMode:function(){return Ue},getBlockName:function(){return U},getBlockOrder:function(){return Ae},getBlockParents:function(){return pe},getBlockParentsByBlockName:function(){return me},getBlockRootClientId:function(){return de},getBlockSelectionEnd:function(){return ie},getBlockSelectionStart:function(){return le},getBlockTransformItems:function(){return bt},getBlocks:function(){return q},getBlocksByClientId:function(){return te},getClientIdsOfDescendants:function(){return Z},getClientIdsWithDescendants:function(){return X},getDraggedBlockClientIds:function(){return Ke},getFirstMultiSelectedBlockClientId:function(){return Ce},getGlobalBlockCount:function(){return J},getInserterItems:function(){return vt},getLastMultiSelectedBlockClientId:function(){return Se},getLowestCommonAncestorWithSelectedBlock:function(){return fe},getMultiSelectedBlockClientIds:function(){return ye},getMultiSelectedBlocks:function(){return Ee},getMultiSelectedBlocksEndClientId:function(){return Te},getMultiSelectedBlocksStartClientId:function(){return xe},getNextBlockClientId:function(){return be},getPreviousBlockClientId:function(){return ve},getSelectedBlock:function(){return ue},getSelectedBlockClientId:function(){return ce},getSelectedBlockClientIds:function(){return ke},getSelectedBlockCount:function(){return ae},getSelectedBlocksInitialCaretPosition:function(){return _e},getSelectionEnd:function(){return re},getSelectionStart:function(){return oe},getSettings:function(){return xt},getTemplate:function(){return et},getTemplateLock:function(){return tt},hasBlockMovingClientId:function(){return Ot},hasInserterItems:function(){return _t},hasMultiSelection:function(){return Ve},hasSelectedBlock:function(){return se},hasSelectedInnerBlock:function(){return Fe},isAncestorBeingDragged:function(){return Ye},isAncestorMultiSelected:function(){return Ie},isBlockBeingDragged:function(){return qe},isBlockHighlighted:function(){return zt},isBlockInsertionPointVisible:function(){return Xe},isBlockMultiSelected:function(){return Be},isBlockSelected:function(){return Oe},isBlockValid:function(){return W},isBlockVisible:function(){return Ut},isBlockWithinSelection:function(){return ze},isCaretWithinFormattedText:function(){return Qe},isDraggingBlocks:function(){return je},isFirstMultiSelectedBlock:function(){return we},isLastBlockChangePersistent:function(){return Tt},isMultiSelecting:function(){return He},isNavigationMode:function(){return At},isSelectionEnabled:function(){return Ge},isTyping:function(){return We},isValidTemplate:function(){return Je},wasBlockJustInserted:function(){return Gt}});var t={};n.r(t),n.d(t,{__experimentalHideBlockInterface:function(){return On},__experimentalShowBlockInterface:function(){return Fn},__unstableDeleteSelection:function(){return Tn},__unstableExpandSelection:function(){return Mn},__unstableMarkAutomaticChange:function(){return Xn},__unstableMarkLastChangeAsPersistent:function(){return Qn},__unstableMarkNextChangeAsNotPersistent:function(){return Zn},__unstableSaveReusableBlock:function(){return Yn},__unstableSetEditorMode:function(){return eo},__unstableSetTemporarilyEditingAsBlocks:function(){return co},__unstableSplitSelection:function(){return Nn},clearSelectedBlock:function(){return pn},duplicateBlocks:function(){return no},enterFormattedText:function(){return Un},exitFormattedText:function(){return Wn},flashBlock:function(){return io},hideInsertionPoint:function(){return Bn},insertAfterBlock:function(){return ro},insertBeforeBlock:function(){return oo},insertBlock:function(){return Cn},insertBlocks:function(){return Sn},insertDefaultBlock:function(){return jn},mergeBlocks:function(){return Pn},moveBlockToPosition:function(){return En},moveBlocksDown:function(){return bn},moveBlocksToPosition:function(){return yn},moveBlocksUp:function(){return kn},multiSelect:function(){return dn},receiveBlocks:function(){return nn},removeBlock:function(){return Rn},removeBlocks:function(){return Ln},replaceBlock:function(){return hn},replaceBlocks:function(){return fn},replaceInnerBlocks:function(){return An},resetBlocks:function(){return Jt},resetSelection:function(){return tn},selectBlock:function(){return ln},selectNextBlock:function(){return sn},selectPreviousBlock:function(){return an},selectionChange:function(){return $n},setBlockMovingClientId:function(){return to},setBlockVisibility:function(){return so},setHasControlledInnerBlocks:function(){return ao},setNavigationMode:function(){return Jn},setTemplateValidity:function(){return In},showInsertionPoint:function(){return wn},startDraggingBlocks:function(){return Hn},startMultiSelect:function(){return cn},startTyping:function(){return zn},stopDraggingBlocks:function(){return Gn},stopMultiSelect:function(){return un},stopTyping:function(){return Vn},synchronizeTemplate:function(){return xn},toggleBlockHighlight:function(){return lo},toggleBlockMode:function(){return Dn},toggleSelection:function(){return mn},updateBlock:function(){return rn},updateBlockAttributes:function(){return on},updateBlockListSettings:function(){return Kn},updateSettings:function(){return qn},validateBlocksToTemplate:function(){return en}});var r=window.wp.blocks,l=window.wp.hooks;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i.apply(this,arguments)}(0,l.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,r.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var a=window.wp.element,s=n(4403),c=n.n(s),u=window.wp.compose,d=window.wp.data,p=window.lodash,m=window.wp.components,g={default:(0,m.createSlotFill)("BlockControls"),block:(0,m.createSlotFill)("BlockControlsBlock"),inline:(0,m.createSlotFill)("BlockFormatControls"),other:(0,m.createSlotFill)("BlockControlsOther"),parent:(0,m.createSlotFill)("BlockControlsParent")},f=window.wp.i18n;const h={insertUsage:{}},v={alignWide:!1,supportsLayout:!0,colors:[{name:(0,f.__)("Black"),slug:"black",color:"#000000"},{name:(0,f.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,f.__)("White"),slug:"white",color:"#ffffff"},{name:(0,f.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,f.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,f.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,f.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,f.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,f.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,f.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,f.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,f.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,f._x)("Small","font size name"),size:13,slug:"small"},{name:(0,f._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,f._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,f._x)("Large","font size name"),size:36,slug:"large"},{name:(0,f._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,f.__)("Thumbnail")},{slug:"medium",name:(0,f.__)("Medium")},{slug:"large",name:(0,f.__)("Large")},{slug:"full",name:(0,f.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalClearBlockSelection:!0,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!1,__unstableIsPreviewMode:!1,generateAnchors:!1,gradients:[{name:(0,f.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:(0,f.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:(0,f.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,f.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:(0,f.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:(0,f.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:(0,f.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,f.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:(0,f.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:(0,f.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:(0,f.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,f.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function b(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function _(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const r=[...e];return r.splice(t,o),b(r,e.slice(t,t+o),n)}const k=e=>e;function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={[t]:[]};return e.forEach((e=>{const{clientId:o,innerBlocks:r}=e;n[t].push(o),Object.assign(n,y(r,o))})),n}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce(((e,n)=>Object.assign(e,{[n.clientId]:t},E(n.innerBlocks,n.clientId))),{})}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k;const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n[r.clientId]=t(r)}return n}function S(e){return C(e,(e=>(0,p.omit)(e,"attributes")))}function w(e){return C(e,(e=>e.attributes))}function B(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&(0,p.isEqual)(e.clientIds,t.clientIds)&&function(e,t){return(0,p.isEqual)(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function I(e,t){const n={},o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n[e.clientId]={};for(const t of r)n[t.clientId]=Object.assign(n[t.clientId],{...e.byClientId[t.clientId],attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=>n[e.clientId]))});return n}function x(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=new Set([]),l=new Set;for(const t of n){let n=o?t:e.parents[t];do{if(e.controlledInnerBlocks[n]){l.add(n);break}r.add(n),n=e.parents[n]}while(void 0!==n)}for(const e of r)t[e]={...t[e]};for(const n of r)t[n].innerBlocks=(e.order[n]||[]).map((e=>t[e]));for(const n of l)t["controlled||"+n]={innerBlocks:(e.order[n]||[]).map((e=>t[e]))};return t}const T=(0,u.pipe)(d.combineReducers,(e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=new Map(t.attributes),t.attributes.forEach(((n,r)=>{const{name:l}=t.byClientId[r];"core/block"===l&&n.ref===e&&t.attributes.set(r,{...n,ref:o})}))}return e(t,n)}),(e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:{},n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=I(o,n.blocks);o.tree=x(o,{...o.tree,...e},n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=x(o,{...o.tree,[n.clientId]:{...o.tree[n.clientId],...o.byClientId[n.clientId],attributes:o.attributes.get(n.clientId)}},[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{const e=n.clientIds.reduce(((e,t)=>(e[t]={...o.tree[t],attributes:o.attributes.get(t)},e)),{});o.tree=x(o,{...o.tree,...e},n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=I(o,n.blocks);o.tree=x(o,{...(0,p.omit)(o.tree,n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e)))),...e},n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds)void 0===t.parents[e]||""!==t.parents[e]&&!o.byClientId[t.parents[e]]||r.push(t.parents[e]);o.tree=x(o,o.tree,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents[r]||""!==t.parents[r]&&!o.byClientId[t.parents[r]]||e.push(t.parents[r]);o.tree=x(o,(0,p.omit)(o.tree,n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e)))),e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),o.tree=x(o,o.tree,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=x(o,o.tree,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=[];o.attributes.forEach(((t,r)=>{"core/block"===o.byClientId[r].name&&t.ref===n.updatedId&&e.push(r)})),o.tree=x(o,{...o.tree,...e.reduce(((e,t)=>(e[t]={...o.byClientId[t],attributes:o.attributes.get(t),innerBlocks:o.tree[t].innerBlocks},e)),{})},e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order[o[r]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order[o[r]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)}),(e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let l=r;return n.blocks.length&&(l=e(l,{...n,type:"INSERT_BLOCKS",index:0}),l.order={...l.order,...Object.keys(o).reduce(((e,n)=>(t.order[n]&&(e[n]=t.order[n]),e)),{})},l.tree={...l.tree,...Object.keys(o).reduce(((e,n)=>{const o=`controlled||${n}`;return t.tree[o]&&(e[o]=t.tree[o]),e}),{})}),l}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:S(n.blocks),attributes:new Map(Object.entries(w(n.blocks))),order:y(n.blocks),parents:E(n.blocks),controlledInnerBlocks:{}},o=I(e,n.blocks);return e.tree={...o,"":{innerBlocks:n.blocks.map((e=>o[e.clientId]))}},e}return e(t,n)}),(function(e){let t,n=!1;return(o,r)=>{let l=e(o,r);const i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===l&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(a=null==o?void 0:o.isPersistentChange)||void 0===a||a;return o.isPersistentChange===e?o:{...l,isPersistentChange:e}}return l={...l,isPersistentChange:i?!n:!B(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,l}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...S(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=(0,p.omit)(t.updates,"attributes");return(0,p.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...(0,p.omit)(e,t.replacedClientIds),...S(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,p.omit)(e,t.removedClientIds)}return e},attributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return Object.entries(w(t.blocks)).forEach((e=>{let[t,o]=e;n.set(t,o)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let o=!1;const r=new Map(e);for(const l of t.clientIds){var n;const i=Object.entries(t.uniqueByBlock?t.attributes[l]:null!==(n=t.attributes)&&void 0!==n?n:{});if(0===i.length)continue;let a=!1;const s=e.get(l),c={};i.forEach((e=>{let[t,n]=e;s[t]!==n&&(a=!0,c[t]=n)})),o=o||a,a&&r.set(l,{...s,...c})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),Object.entries(w(t.blocks)).forEach((e=>{let[t,o]=e;n.set(t,o)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},order(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":{const n=y(t.blocks);return{...e,...(0,p.omit)(n,""),"":((null==e?void 0:e[""])||[]).concat(n[""])}}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=y(t.blocks,n),{index:l=o.length}=t;return{...e,...r,[n]:b(o,r[n],l)}}case"MOVE_BLOCKS_TO_POSITION":{var n,o;const{fromRootClientId:r="",toRootClientId:l="",clientIds:i}=t,{index:a=e[l].length}=t;if(r===l){const t=e[l].indexOf(i[0]);return{...e,[l]:_(e[l],t,a,i.length)}}return{...e,[r]:null!==(n=null===(o=e[r])||void 0===o?void 0:o.filter((e=>!i.includes(e))))&&void 0!==n?n:[],[l]:b(e[l],i,a)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=e[o];if(!l.length||r===l[0])return e;const i=l.indexOf(r);return{...e,[o]:_(l,i,i-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=n[n.length-1],i=e[o];if(!i.length||l===i[i.length-1])return e;const a=i.indexOf(r);return{...e,[o]:_(i,a,a+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=y(t.blocks);return(0,u.pipe)([e=>(0,p.omit)(e,t.replacedClientIds),e=>({...e,...(0,p.omit)(o,"")}),e=>(0,p.mapValues)(e,(e=>Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...o[""]]:(-1===n.indexOf(t)&&e.push(t),e)),[])))])(e)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.pipe)([e=>(0,p.omit)(e,t.removedClientIds),e=>(0,p.mapValues)(e,(e=>{var n;return null!==(n=null==e?void 0:e.filter((e=>!t.removedClientIds.includes(e))))&&void 0!==n?n:[]}))])(e)}return e},parents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":return{...e,...E(t.blocks)};case"INSERT_BLOCKS":return{...e,...E(t.blocks,t.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...e,...t.clientIds.reduce(((e,n)=>(e[n]=t.toRootClientId||"",e)),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...(0,p.omit)(e,t.replacedClientIds),...E(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,p.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,clientId:n,hasControlledInnerBlocks:o}=arguments.length>1?arguments[1]:void 0;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e}});function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}var M=(0,d.combineReducers)({blocks:T,isTyping:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(){var e,t,n,o;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;switch(l.type){case"SELECTION_CHANGE":return l.clientId?{selectionStart:{clientId:l.clientId,attributeKey:l.attributeKey,offset:l.startOffset},selectionEnd:{clientId:l.clientId,attributeKey:l.attributeKey,offset:l.endOffset}}:{selectionStart:l.start||r.selectionStart,selectionEnd:l.end||r.selectionEnd};case"RESET_SELECTION":const{selectionStart:i,selectionEnd:a}=l;return{selectionStart:i,selectionEnd:a};case"MULTI_SELECT":const{start:s,end:c}=l;return s===(null===(e=r.selectionStart)||void 0===e?void 0:e.clientId)&&c===(null===(t=r.selectionEnd)||void 0===t?void 0:t.clientId)?r:{selectionStart:{clientId:s},selectionEnd:{clientId:c}};case"RESET_BLOCKS":const u=null==r||null===(n=r.selectionStart)||void 0===n?void 0:n.clientId,d=null==r||null===(o=r.selectionEnd)||void 0===o?void 0:o.clientId;if(!u&&!d)return r;if(!l.blocks.some((e=>e.clientId===u)))return{selectionStart:{},selectionEnd:{}};if(!l.blocks.some((e=>e.clientId===d)))return{...r,selectionEnd:r.selectionStart}}return{selectionStart:N(r.selectionStart,l),selectionEnd:N(r.selectionEnd,l)}},isMultiSelecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return(0,p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?(0,p.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?(0,p.omit)(e,n):e}}return e},insertionPoint:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:l}=t,i={rootClientId:n,index:o,__unstableWithInserter:r,operation:l};return(0,p.isEqual)(e,i)?e:i}case"HIDE_INSERTION_POINT":return null}return e},template:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},preferences:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:o,name:l}=n,i=(0,d.select)(r.store).getActiveBlockVariation(l,o);let a=null!=i&&i.name?`${l}/${i.name}`:l;const s={name:a};return"core/block"===l&&(s.ref=o.ref,a+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[a]:{time:t.time,count:e.insertUsage[a]?e.insertUsage[a].count+1:1,insert:s}}}}),e)}return e},lastBlockAttributesChange:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},editorMode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit",t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"===t.type&&"navigation"===e?"edit":"SET_EDITOR_MODE"===t.type?t.mode:e},hasBlockMovingClientId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_EDITOR_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"SET_BLOCK_VISIBILITY":case"START_TYPING":case"STOP_TYPING":case"UPDATE_BLOCK_LIST_SETTINGS":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_BLOCKS":return n.blocks.length?{clientId:n.blocks[0].clientId,source:null===(e=n.meta)||void 0===e?void 0:e.source}:t;case"RESET_BLOCKS":return{}}return t},temporarilyEditingAsBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},blockVisibility:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e}}),P={};function L(e){return[e]}function R(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function A(e,t){var n,o=t||L;function r(e){var t,o,r,l,i,a=n,s=!0;for(t=0;t<e.length;t++){if(!(i=o=e[t])||"object"!=typeof i){s=!1;break}a.has(o)?a=a.get(o):(r=new WeakMap,a.set(o,r),a=r)}return a.has(P)||((l=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=s,a.set(P,l)),a.get(P)}function l(){n=new WeakMap}function i(){var t,n,l,i,a,s=arguments.length;for(i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];for((t=r(a=o.apply(null,i))).isUniqueByDependants||(t.lastDependants&&!R(a,t.lastDependants,0)&&t.clear(),t.lastDependants=a),n=t.head;n;){if(R(n.args,i,1))return n!==t.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=t.head,n.prev=null,t.head.prev=n,t.head=n),n.val;n=n.next}return n={val:e.apply(null,i)},i[0]=null,n.args=i,t.head&&(t.head.prev=n,n.next=t.head),t.head=n,n.val}return i.getDependants=o,i.clear=l,l(),i}var D=window.wp.primitives,O=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),F=window.wp.richText,z=window.wp.deprecated,V=n.n(z);function H(e){const{multiline:t,__unstableMultilineWrapperTags:n,__unstablePreserveWhiteSpace:o}=e;return{multilineTag:t,multilineWrapperTags:n,preserveWhiteSpace:o}}const G=[];function U(e,t){const n=e.blocks.byClientId[t],o="core/social-link";if("web"!==a.Platform.OS&&(null==n?void 0:n.name)===o){const n=e.blocks.attributes.get(t),{service:r}=null!=n?n:{};return r?`core/social-link-${r}`:o}return n?n.name:null}function W(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function $(e,t){return e.blocks.byClientId[t]?e.blocks.attributes.get(t):null}function j(e,t){return e.blocks.byClientId[t]?e.blocks.tree[t]:null}const K=A(((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:$(e,t)}:null}),((e,t)=>[e.blocks.byClientId[t],e.blocks.attributes.get(t)]));function q(e,t){var n;const o=t&&Vt(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree[o])||void 0===n?void 0:n.innerBlocks)||G}const Y=A(((e,t)=>({clientId:t,innerBlocks:Q(e,t)})),(e=>[e.blocks.order])),Q=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,p.map)(Ae(e,t),(t=>Y(e,t)))}),(e=>[e.blocks.order])),Z=A(((e,t)=>{const n=[];for(const o of t)for(const t of Ae(e,o))n.push(t,...Z(e,[t]));return n}),(e=>[e.blocks.order])),X=A((e=>{const t=[];for(const n of Ae(e))t.push(n,...Z(e,[n]));return t}),(e=>[e.blocks.order])),J=A(((e,t)=>{const n=X(e);return t?n.reduce(((n,o)=>e.blocks.byClientId[o].name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),ee=A(((e,t)=>{if(!t)return G;const n=X(e).filter((n=>e.blocks.byClientId[n].name===t));return n.length>0?n:G}),(e=>[e.blocks.order,e.blocks.byClientId])),te=A(((e,t)=>(0,p.map)(Array.isArray(t)?t:[t],(t=>j(e,t)))),((e,t)=>(0,p.map)(Array.isArray(t)?t:[t],(t=>e.blocks.tree[t]))));function ne(e,t){return Ae(e,t).length}function oe(e){return e.selection.selectionStart}function re(e){return e.selection.selectionEnd}function le(e){return e.selection.selectionStart.clientId}function ie(e){return e.selection.selectionEnd.clientId}function ae(e){return ye(e).length||(e.selection.selectionStart.clientId?1:0)}function se(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function ce(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function ue(e){const t=ce(e);return t?j(e,t):null}function de(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const pe=A((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];let r=t;for(;e.blocks.parents[r];)r=e.blocks.parents[r],o.push(r);return n?o:o.reverse()}),(e=>[e.blocks.parents])),me=A((function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=pe(e,t,o);return(0,p.map)((0,p.map)(r,(t=>({id:t,name:U(e,t)}))).filter((e=>{let{name:t}=e;return Array.isArray(n)?n.includes(t):t===n})),(e=>{let{id:t}=e;return t}))}),(e=>[e.blocks.parents]));function ge(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function fe(e,t){const n=ce(e),o=[...pe(e,t),t],r=[...pe(e,n),n];let l;const i=Math.min(o.length,r.length);for(let e=0;e<i&&o[e]===r[e];e++)l=o[e];return l}function he(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=ce(e)),void 0===t&&(t=n<0?Ce(e):Se(e)),!t)return null;const o=de(e,t);if(null===o)return null;const{order:r}=e.blocks,l=r[o],i=l.indexOf(t),a=i+1*n;return a<0||a===l.length?null:l[a]}function ve(e,t){return he(e,t,-1)}function be(e,t){return he(e,t,1)}function _e(e){return e.initialPosition}const ke=A((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return G;if(t.clientId===n.clientId)return[t.clientId];const o=de(e,t.clientId);if(null===o)return G;const r=Ae(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return l>i?r.slice(i,l+1):r.slice(l,i+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function ye(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?G:ke(e)}const Ee=A((e=>{const t=ye(e);return t.length?t.map((t=>j(e,t))):G}),(e=>[...ke.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Ce(e){return ye(e)[0]||null}function Se(e){const t=ye(e);return t[t.length-1]||null}function we(e,t){return Ce(e)===t}function Be(e,t){return-1!==ye(e).indexOf(t)}const Ie=A(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=de(e,n),o=Be(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function xe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function Te(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Ne(e){const t=oe(e),n=re(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Me(e){const t=oe(e),n=re(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function Pe(e){return ke(e).some((t=>{const n=U(e,t);return!(0,r.getBlockType)(n).merge}))}function Le(e,t){const n=oe(e),o=re(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const l=de(e,n.clientId);if(l!==de(e,o.clientId))return!1;const i=Ae(e,l);let a,s;i.indexOf(n.clientId)>i.indexOf(o.clientId)?(a=o,s=n):(a=n,s=o);const c=t?s.clientId:a.clientId,u=t?a.clientId:s.clientId,d=U(e,c);if(!(0,r.getBlockType)(d).merge)return!1;const p=j(e,u);if(p.name===d)return!0;const m=(0,r.switchToBlockType)(p,d);return m&&m.length}const Re=e=>{const t=oe(e),n=re(e);if(t.clientId===n.clientId)return G;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return G;const o=de(e,t.clientId);if(o!==de(e,n.clientId))return G;const l=Ae(e,o),i=l.indexOf(t.clientId),a=l.indexOf(n.clientId),[s,c]=i>a?[n,t]:[t,n],u=j(e,s.clientId),d=(0,r.getBlockType)(u.name),p=j(e,c.clientId),m=(0,r.getBlockType)(p.name),g=u.attributes[s.attributeKey],f=p.attributes[c.attributeKey],h=d.attributes[s.attributeKey],v=m.attributes[c.attributeKey];let b=(0,F.create)({html:g,...H(h)}),_=(0,F.create)({html:f,...H(v)});return b=(0,F.remove)(b,0,s.offset),_=(0,F.remove)(_,c.offset,_.text.length),[{...u,attributes:{...u.attributes,[s.attributeKey]:(0,F.toHTMLString)({value:b,...H(h)})}},{...p,attributes:{...p.attributes,[c.attributeKey]:(0,F.toHTMLString)({value:_,...H(v)})}}]};function Ae(e,t){return e.blocks.order[t||""]||G}function De(e,t){return Ae(e,de(e,t)).indexOf(t)}function Oe(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function Fe(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Ae(e,t).some((t=>Oe(e,t)||Be(e,t)||n&&Fe(e,t,n)))}function ze(e,t){if(!t)return!1;const n=ye(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function Ve(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function He(e){return e.isMultiSelecting}function Ge(e){return e.isSelectionEnabled}function Ue(e,t){return e.blocksMode[t]||"visual"}function We(e){return e.isTyping}function $e(e){return e.isBlockInterfaceHidden}function je(e){return!!e.draggedBlocks.length}function Ke(e){return e.draggedBlocks}function qe(e,t){return e.draggedBlocks.includes(t)}function Ye(e,t){return!!je(e)&&pe(e,t).some((t=>qe(e,t)))}function Qe(){return V()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}function Ze(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:l}=r;return l?(t=de(e,l)||void 0,n=De(e,r.clientId)+1):n=Ae(e).length,{rootClientId:t,index:n}}function Xe(e){return null!==e.insertionPoint}function Je(e){return e.template.isValid}function et(e){return e.settings.template}function tt(e,t){if(!t)return e.settings.templateLock;const n=It(e,t);return n?n.templateLock:void 0}const nt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},ot=function(e,t){let n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"==typeof t?(n=t,t=n.name):n=(0,r.getBlockType)(t),!n)return!1;const{allowedBlockTypes:i}=xt(e),a=nt(i,t,!0);if(!a)return!1;const s=!!tt(e,o);if(s)return!1;const c=It(e,o);if(o&&void 0===c)return!1;const u=null==c?void 0:c.allowedBlocks,d=nt(u,t),p=n.parent,m=U(e,o),g=nt(p,m);let f=!0;const h=n.ancestor;h&&(f=[o,...pe(e,o)].some((t=>nt(h,U(e,t)))));const v=f&&(null===d&&null===g||!0===d||!0===g);return v?(0,l.applyFilters)("blockEditor.__unstableCanInsertBlockType",v,n,o,{getBlock:j.bind(null,e),getBlockParentsByBlockName:me.bind(null,e)}):v},rt=A(ot,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]));function lt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>rt(e,U(e,t),n)))}function it(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=$(e,t);if(null===o)return!0;const{lock:r}=o,l=!!tt(e,n);return void 0===r||void 0===(null==r?void 0:r.remove)?!l:!(null!=r&&r.remove)}function at(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>it(e,t,n)))}function st(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=$(e,t);if(null===o)return;const{lock:r}=o,l="all"===tt(e,n);return void 0===r||void 0===(null==r?void 0:r.move)?!l:!(null!=r&&r.move)}function ct(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>st(e,t,n)))}function ut(e,t){const n=$(e,t);if(null===n)return!0;const{lock:o}=n;return!(null!=o&&o.edit)}function dt(e,t){var n;return!!(0,r.hasBlockSupport)(t,"lock",!0)&&!(null===(n=e.settings)||void 0===n||!n.canLockBlocks)}function pt(e,t){var n,o;return null!==(n=null===(o=e.preferences.insertUsage)||void 0===o?void 0:o[t])&&void 0!==n?n:null}const mt=(e,t,n)=>!!(0,r.hasBlockSupport)(t,"inserter",!0)&&ot(e,t.name,n),gt=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:l=0}=pt(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:ft(r,l)}},ft=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},ht=(e,t)=>{let{buildScope:n="inserter"}=t;return t=>{const o=t.name;let l=!1;(0,r.hasBlockSupport)(t.name,"multiple",!0)||(l=te(e,X(e)).some((e=>{let{name:n}=e;return n===t.name})));const{time:i,count:a=0}=pt(e,o)||{},s={id:o,name:t.name,title:t.title,icon:t.icon,isDisabled:l,frecency:ft(i,a)};if("transform"===n)return s;const c=(0,r.getBlockVariations)(t.name,"inserter");return{...s,initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:c,example:t.example,utility:1}}},vt=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=ht(e,{buildScope:"inserter"}),o=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,l=t=>{let n=O;if("web"===a.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(o);if(e){const[,,t="core/",o]=e,l=(0,r.getBlockType)(t+o);l&&(n=l.icon)}}const l=`core/block/${t.id}`,{time:i,count:s=0}=pt(e,l)||{},c=ft(i,s);return{id:l,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:c}},i=(0,r.getBlockTypes)().filter((n=>mt(e,n,t))).map(n),s=ot(e,"core/block",t)?Rt(e).map(l):[],c=i.reduce(((t,n)=>{const{variations:o=[]}=n;if(o.some((e=>{let{isDefault:t}=e;return t}))||t.push(n),o.length){const r=gt(e,n);t.push(...o.map(r))}return t}),[]),u=(e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e},{core:d,noncore:p}=c.reduce(u,{core:[],noncore:[]}),m=[...d,...p];return[...m,...s]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Rt(e),(0,r.getBlockTypes)()])),bt=A((function(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const l=Array.isArray(t)?t:[t],[i]=l,a=ht(e,{buildScope:"transform"}),s=(0,r.getBlockTypes)().filter((t=>mt(e,t,o))).map(a),c=Object.fromEntries(Object.entries(s).map((e=>{let[,t]=e;return[t.name,t]})));c["*"]={frecency:1/0,id:"*",isDisabled:!1,name:"*",title:(0,f.__)("Unwrap"),icon:null===(n=c[null==i?void 0:i.name])||void 0===n?void 0:n.icon};const u=(0,r.getPossibleBlockTransformations)(l).reduce(((e,t)=>("*"===t?e.push(c["*"]):c[null==t?void 0:t.name]&&e.push(c[t.name]),e)),[]);return(0,p.orderBy)(u,(e=>c[e.name].frecency),"desc")}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,(0,r.getBlockTypes)()])),_t=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=(0,r.getBlockTypes)().some((n=>mt(e,n,t)));if(n)return!0;const o=ot(e,"core/block",t)&&Rt(e).length>0;return o}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Rt(e),(0,r.getBlockTypes)()])),kt=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return(0,r.getBlockTypes)().filter((n=>mt(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,r.getBlockTypes)()])),yt=A((function(e){var t,n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!o)return;const r=null===(t=e.blockListSettings[o])||void 0===t?void 0:t.__experimentalDefaultBlock,l=null===(n=e.blockListSettings[o])||void 0===n?void 0:n.__experimentalDirectInsert;return r&&l?"function"==typeof l?l(j(e,o))?r:null:r:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree[t]])),Et=A(((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find((e=>{let{name:n}=e;return n===t}));return n?{...n,blocks:(0,r.parse)(n.content,{__unstableSkipMigrationLogs:!0})}:null}),(e=>[e.settings.__experimentalBlockPatterns])),Ct=A((e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=xt(e),o=t.filter((e=>{let{inserter:t=!0}=e;return!!t})).map((t=>{let{name:n}=t;return Et(e,n)})),r=o.filter((e=>{let{blocks:t}=e;return((e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!nt(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach((e=>{n.push(e)}))}return!0})(t,n)}));return r}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes])),St=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=Ct(e),o=n.filter((n=>{let{blocks:o}=n;return o.every((n=>{let{name:o}=n;return rt(e,o,t)}))}));return o}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]])),wt=A((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return G;const o=St(e,n),r=Array.isArray(t)?t:[t];return o.filter((e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,(e=>r.includes(e)))}))}),((e,t)=>[...St.getDependants(e,t)])),Bt=A((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return G;if(t.some((t=>{let{clientId:n,innerBlocks:o}=t;return o.length||Vt(e,n)})))return G;const o=Array.from(new Set(t.map((e=>{let{name:t}=e;return t}))));return wt(e,o,n)}),((e,t)=>[...wt.getDependants(e,t)]));function It(e,t){return e.blockListSettings[t]}function xt(e){return e.settings}function Tt(e){return e.blocks.isPersistentChange}const Nt=A((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})}),(e=>[e.blockListSettings])),Mt=A(((e,t)=>{var n;const o=(0,p.find)(Rt(e),(e=>e.id===t));return o?null===(n=o.title)||void 0===n?void 0:n.raw:null}),(e=>[Rt(e)]));function Pt(e){return e.blocks.isIgnoredChange}function Lt(e){return e.lastBlockAttributesChange}function Rt(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:G}function At(e){return"navigation"===e.editorMode}function Dt(e){return e.editorMode}function Ot(e){return e.hasBlockMovingClientId}function Ft(e){return!!e.automaticChangeStatus}function zt(e,t){return e.highlightedBlock===t}function Vt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const Ht=A(((e,t)=>{if(!t.length)return null;const n=ce(e);if(t.includes(U(e,n)))return n;const o=ye(e),r=me(e,n||o[0],t);return r?r[r.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function Gt(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}function Ut(e,t){var n,o;return null===(n=null===(o=e.blockVisibility)||void 0===o?void 0:o[t])||void 0===n||n}const Wt=A((e=>new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])))),(e=>[e.blockVisibility])),$t=A(((e,t)=>{let n,o=t;for(;e.blocks.parents[o];)o=e.blocks.parents[o],"contentOnly"===tt(e,o)&&(n=o);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function jt(e){return e.temporarilyEditingAsBlocks}function Kt(e,t){if(!ut(e,t))return!0;const n=Dt(e);if("zoom-out"===n&&t&&!de(e,t))return!0;const o=(0,r.hasBlockSupport)(U(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!o&&Vt(e,t))&&!Oe(e,t)&&!Fe(e,t,!0)}function qt(e,t){let n=e.blocks.parents[t];for(;n;){if(Kt(e,n))return!0;n=e.blocks.parents[n]}return!1}var Yt=window.wp.a11y;const Qt="";function Zt(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return"string"==typeof n&&-1!==n.indexOf(Qt)}))}const Xt=e=>Array.isArray(e)?e:[e],Jt=e=>t=>{let{dispatch:n}=t;n({type:"RESET_BLOCKS",blocks:e}),n(en(e))},en=e=>t=>{let{select:n,dispatch:o}=t;const l=n.getTemplate(),i=n.getTemplateLock(),a=!l||"all"!==i||(0,r.doBlocksMatchTemplate)(e,l);if(a!==n.isValidTemplate())return o.setTemplateValidity(a),a};function tn(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function nn(e){return V()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function on(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Xt(e),attributes:t,uniqueByBlock:n}}function rn(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function ln(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const an=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getPreviousBlockClientId(e);r&&o.selectBlock(r,-1)},sn=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getNextBlockClientId(e);r&&o.selectBlock(r)};function cn(){return{type:"START_MULTI_SELECT"}}function un(){return{type:"STOP_MULTI_SELECT"}}const dn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o=>{let{select:r,dispatch:l}=o;if(r.getBlockRootClientId(e)!==r.getBlockRootClientId(t))return;l({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const i=r.getSelectedBlockCount();(0,Yt.speak)((0,f.sprintf)(
|
2 |
/* translators: %s: number of selected blocks */
|
3 |
+
(0,f._n)("%s block selected.","%s blocks selected.",i),i),"assertive")}};function pn(){return{type:"CLEAR_SELECTED_BLOCK"}}function mn(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function gn(e,t){var n,o;const l=null!==(n=null==t||null===(o=t.__experimentalPreferredStyleVariations)||void 0===o?void 0:o.value)&&void 0!==n?n:{};return e.map((e=>{var t;const n=e.name;if(!(0,r.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!l[n])return e;const o=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=o&&o.includes("is-style-"))return e;const{attributes:i={}}=e,a=l[n];return{...e,attributes:{...i,className:`${o||""} is-style-${a}`.trim()}}}))}const fn=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0;return l=>{let{select:i,dispatch:a}=l;e=Xt(e),t=gn(Xt(t),i.getSettings());const s=i.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,s))return}a({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),a((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()}))}};function hn(e,t){return fn(e,t)}const vn=e=>(t,n)=>o=>{let{select:r,dispatch:l}=o;r.canMoveBlocks(t,n)&&l({type:e,clientIds:Xt(t),rootClientId:n})},bn=vn("MOVE_BLOCKS_DOWN"),kn=vn("MOVE_BLOCKS_UP"),yn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return r=>{let{select:l,dispatch:i}=r;if(l.canMoveBlocks(e,t)){if(t!==n){if(!l.canRemoveBlocks(e,t))return;if(!l.canInsertBlocks(e,n))return}i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}}};function En(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return yn([e],t,n,o)}function Cn(e,t,n,o,r){return Sn([e],t,n,o,0,r)}const Sn=function(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0;return i=>{let{select:a,dispatch:s}=i;null!==r&&"object"==typeof r&&(l=r,r=0,V()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=gn(Xt(e),a.getSettings());const c=[];for(const t of e)a.canInsertBlockType(t.name,n)&&c.push(t);c.length&&s({type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:l})}};function wn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter:o,operation:r}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r}}const Bn=()=>e=>{let{select:t,dispatch:n}=e;t.isBlockInsertionPointVisible()&&n({type:"HIDE_INSERTION_POINT"})};function In(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const xn=()=>e=>{let{select:t,dispatch:n}=e;n({type:"SYNCHRONIZE_TEMPLATE"});const o=t.getBlocks(),l=t.getTemplate(),i=(0,r.synchronizeBlocksWithTemplate)(o,l);n.resetBlocks(i)},Tn=e=>t=>{let{registry:n,select:o,dispatch:l}=t;const i=o.getSelectionStart(),a=o.getSelectionEnd();if(i.clientId===a.clientId)return;if(!i.attributeKey||!a.attributeKey||void 0===i.offset||void 0===a.offset)return!1;const s=o.getBlockRootClientId(i.clientId);if(s!==o.getBlockRootClientId(a.clientId))return;const c=o.getBlockOrder(s);let u,d;c.indexOf(i.clientId)>c.indexOf(a.clientId)?(u=a,d=i):(u=i,d=a);const p=e?d:u,m=o.getBlock(p.clientId),g=(0,r.getBlockType)(m.name);if(!g.merge)return;const f=u,h=d,v=o.getBlock(f.clientId),b=(0,r.getBlockType)(v.name),_=o.getBlock(h.clientId),k=(0,r.getBlockType)(_.name),y=v.attributes[f.attributeKey],E=_.attributes[h.attributeKey],C=b.attributes[f.attributeKey],S=k.attributes[h.attributeKey];let w=(0,F.create)({html:y,...H(C)}),B=(0,F.create)({html:E,...H(S)});w=(0,F.remove)(w,f.offset,w.text.length),B=(0,F.insert)(B,Qt,0,h.offset);const I=(0,r.cloneBlock)(v,{[f.attributeKey]:(0,F.toHTMLString)({value:w,...H(C)})}),x=(0,r.cloneBlock)(_,{[h.attributeKey]:(0,F.toHTMLString)({value:B,...H(S)})}),T=e?I:x,N=v.name===_.name?[T]:(0,r.switchToBlockType)(T,g.name);if(!N||!N.length)return;let M;if(e){const e=N.pop();M=g.merge(e.attributes,x.attributes)}else{const e=N.shift();M=g.merge(I.attributes,e.attributes)}const P=Zt(M),L=M[P],R=(0,F.create)({html:L,...H(g.attributes[P])}),A=R.text.indexOf(Qt),D=(0,F.remove)(R,A,A+1),O=(0,F.toHTMLString)({value:D,...H(g.attributes[P])});M[P]=O;const z=o.getSelectedBlockClientIds(),V=[...e?N:[],{...m,attributes:{...m.attributes,...M}},...e?[]:N];n.batch((()=>{l.selectionChange(m.clientId,P,A,A),l.replaceBlocks(z,V,0,o.getSelectedBlocksInitialCaretPosition())}))},Nn=()=>e=>{let{select:t,dispatch:n}=e;const o=t.getSelectionStart(),l=t.getSelectionEnd();if(o.clientId===l.clientId)return;if(!o.attributeKey||!l.attributeKey||void 0===o.offset||void 0===l.offset)return;const i=t.getBlockRootClientId(o.clientId);if(i!==t.getBlockRootClientId(l.clientId))return;const a=t.getBlockOrder(i);let s,c;a.indexOf(o.clientId)>a.indexOf(l.clientId)?(s=l,c=o):(s=o,c=l);const u=s,d=c,p=t.getBlock(u.clientId),m=(0,r.getBlockType)(p.name),g=t.getBlock(d.clientId),f=(0,r.getBlockType)(g.name),h=p.attributes[u.attributeKey],v=g.attributes[d.attributeKey],b=m.attributes[u.attributeKey],_=f.attributes[d.attributeKey];let k=(0,F.create)({html:h,...H(b)}),y=(0,F.create)({html:v,...H(_)});k=(0,F.remove)(k,u.offset,k.text.length),y=(0,F.remove)(y,0,d.offset),n.replaceBlocks(t.getSelectedBlockClientIds(),[{...p,attributes:{...p.attributes,[u.attributeKey]:(0,F.toHTMLString)({value:k,...H(b)})}},(0,r.createBlock)((0,r.getDefaultBlockName)()),{...g,attributes:{...g.attributes,[d.attributeKey]:(0,F.toHTMLString)({value:y,...H(_)})}}],1,t.getSelectedBlocksInitialCaretPosition())},Mn=()=>e=>{let{select:t,dispatch:n}=e;const o=t.getSelectionStart(),r=t.getSelectionEnd();n.selectionChange({start:{clientId:o.clientId},end:{clientId:r.clientId}})},Pn=(e,t)=>n=>{let{registry:o,select:l,dispatch:i}=n;const a=[e,t];i({type:"MERGE_BLOCKS",blocks:a});const[s,c]=a,u=l.getBlock(s),d=(0,r.getBlockType)(u.name);if(!d)return;const p=l.getBlock(c);if(d&&!d.merge){const e=(0,r.switchToBlockType)(p,d.name);if(1!==(null==e?void 0:e.length))return void i.selectBlock(u.clientId);const[t]=e;return t.innerBlocks.length<1?void i.selectBlock(u.clientId):void o.batch((()=>{i.insertBlocks(t.innerBlocks,void 0,s),i.removeBlock(c),i.selectBlock(t.innerBlocks[0].clientId)}))}const m=(0,r.getBlockType)(p.name),{clientId:g,attributeKey:f,offset:h}=l.getSelectionStart(),v=(g===s?d:m).attributes[f],b=(g===s||g===c)&&void 0!==f&&void 0!==h&&!!v;v||("number"==typeof f?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof f):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const _=(0,r.cloneBlock)(u),k=(0,r.cloneBlock)(p);if(b){const e=g===s?_:k,t=e.attributes[f],n=(0,F.insert)((0,F.create)({html:t,...H(v)}),Qt,h,h);e.attributes[f]=(0,F.toHTMLString)({value:n,...H(v)})}const y=u.name===p.name?[k]:(0,r.switchToBlockType)(k,u.name);if(!y||!y.length)return;const E=d.merge(_.attributes,y[0].attributes);if(b){const e=Zt(E),t=E[e],n=(0,F.create)({html:t,...H(d.attributes[e])}),o=n.text.indexOf(Qt),r=(0,F.remove)(n,o,o+1),l=(0,F.toHTMLString)({value:r,...H(d.attributes[e])});E[e]=l,i.selectionChange(u.clientId,e,o,o)}i.replaceBlocks([u.clientId,p.clientId],[{...u,attributes:{...u.attributes,...E}},...y.slice(1)],0)},Ln=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:r}=n;if(!e||!e.length)return;e=Xt(e);const l=o.getBlockRootClientId(e[0]);o.canRemoveBlocks(e,l)&&(t&&r.selectPreviousBlock(e[0]),r({type:"REMOVE_BLOCKS",clientIds:e}),r((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()})))}};function Rn(e,t){return Ln([e],t)}function An(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function Dn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function On(){return{type:"HIDE_BLOCK_INTERFACE"}}function Fn(){return{type:"SHOW_BLOCK_INTERFACE"}}function zn(){return{type:"START_TYPING"}}function Vn(){return{type:"STOP_TYPING"}}function Hn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Gn(){return{type:"STOP_DRAGGING_BLOCKS"}}function Un(){return V()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function Wn(){return V()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function $n(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const jn=(e,t,n)=>o=>{let{dispatch:l}=o;const i=(0,r.getDefaultBlockName)();if(!i)return;const a=(0,r.createBlock)(i,e);return l.insertBlock(a,n,t)};function Kn(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function qn(e){return{type:"UPDATE_SETTINGS",settings:e}}function Yn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Qn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Zn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const Xn=()=>e=>{let{dispatch:t}=e;t({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:n=(e=>setTimeout(e,100))}=window;n((()=>{t({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},Jn=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{dispatch:n}=t;n.__unstableSetEditorMode(e?"navigation":"edit")}},eo=e=>t=>{let{dispatch:n,select:o}=t;if("zoom-out"===e){const e=o.getBlockSelectionStart();e&&n.selectBlock(o.getBlockHierarchyRootClientId(e))}n({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?(0,Yt.speak)((0,f.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):"edit"===e?(0,Yt.speak)((0,f.__)("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&(0,Yt.speak)((0,f.__)("You are currently in zoom-out mode."))},to=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>{let{dispatch:n}=t;n({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,Yt.speak)((0,f.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))}},no=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:l}=n;if(!e||!e.length)return;const i=o.getBlocksByClientId(e);if(i.some((e=>!e)))return;const a=i.map((e=>e.name));if(a.some((e=>!(0,r.hasBlockSupport)(e,"multiple",!0))))return;const s=o.getBlockRootClientId(e[0]),c=Xt(e),u=o.getBlockIndex(c[c.length-1]),d=i.map((e=>(0,r.__experimentalCloneSanitizedBlock)(e)));return l.insertBlocks(d,u+1,s,t),d.length>1&&t&&l.multiSelect(d[0].clientId,d[d.length-1].clientId),d.map((e=>e.clientId))}},oo=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const l=n.getBlockIndex(e);return o.insertDefaultBlock({},r,l)},ro=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const l=n.getBlockIndex(e);return o.insertDefaultBlock({},r,l+1)};function lo(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const io=e=>async t=>{let{dispatch:n}=t;n(lo(e,!0)),await new Promise((e=>setTimeout(e,150))),n(lo(e,!1))};function ao(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function so(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function co(e){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e}}const uo="core/block-editor",po={reducer:M,selectors:e,actions:t},mo=(0,d.createReduxStore)(uo,{...po,persist:["preferences"]});(0,d.registerStore)(uo,{...po,persist:["preferences"]});const go={name:"",isSelected:!1},fo=(0,a.createContext)(go),{Provider:ho}=fo;function vo(){return(0,a.useContext)(fo)}function bo(){const{isSelected:e,clientId:t,name:n}=vo();return(0,d.useSelect)((o=>{if(e)return!0;const{getBlockName:r,isFirstMultiSelectedBlock:l,getMultiSelectedBlockClientIds:i}=o(mo);return!!l(t)&&i().every((e=>r(e)===n))}),[t,e,n])}function _o(e){let{group:t="default",controls:n,children:o,__experimentalShareWithChildBlocks:l=!1}=e;const i=function(e,t){const n=bo(),{clientId:o}=vo(),l=(0,d.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:l}=e(mo),{hasBlockSupport:i}=e(r.store);return t&&i(n(o),"__experimentalExposeControlsToChildren",!1)&&l(o)}),[t,o]);var i;return n?null===(i=g[e])||void 0===i?void 0:i.Fill:l?g.parent.Fill:null}(t,l);return i?(0,a.createElement)(m.__experimentalStyleProvider,{document:document},(0,a.createElement)(i,null,(e=>{const r=(0,p.isEmpty)(e)?null:e;return(0,a.createElement)(m.__experimentalToolbarContext.Provider,{value:r},"default"===t&&(0,a.createElement)(m.ToolbarGroup,{controls:n}),o)}))):null}function ko(e){let{group:t="default",...n}=e;const o=(0,a.useContext)(m.__experimentalToolbarContext),r=g[t].Slot,l=(0,m.__experimentalUseSlotFills)(r.__unstableName);return Boolean(l&&l.length)?"default"===t?(0,a.createElement)(r,i({},n,{bubblesVirtually:!0,fillProps:o})):(0,a.createElement)(m.ToolbarGroup,null,(0,a.createElement)(r,i({},n,{bubblesVirtually:!0,fillProps:o}))):null}const yo=_o;yo.Slot=ko;const Eo=e=>(0,a.createElement)(_o,i({group:"inline"},e));Eo.Slot=e=>(0,a.createElement)(ko,i({group:"inline"},e));var Co=yo,So=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),wo=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),Bo=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),Io=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),xo=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),To=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"}));function No(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function Mo(e,t,n,o){var r,l;let i="";return null!=t&&null!==(r=t[n])&&void 0!==r&&null!==(l=r.spacingStyles)&&void 0!==l&&l.length&&o&&t[n].spacingStyles.forEach((t=>{i+=`${No(e,t.selector.trim())} { `,i+=Object.entries(t.rules).map((e=>{let[t,n]=e;return`${t}: ${n||o}`})).join("; "),i+="; }"})),i}function Po(e){const{contentSize:t,wideSize:n}=e,o={},r=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;return r.test(t)&&(
|
4 |
// translators: %s: container size (i.e. 600px etc)
|
5 |
+
o.none=(0,f.sprintf)((0,f.__)("Max %s wide"),t)),r.test(n)&&(
|
6 |
// translators: %s: container size (i.e. 600px etc)
|
|