Version Description
Download this release
Release Info
Developer | gutenbergplugin |
Plugin | Gutenberg |
Version | 13.5.0 |
Comparing to | |
See all releases |
Code changes from version 13.4.0 to 13.5.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 +29 -29
- 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 +80 -78
- 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/index.js +830 -681
- build/block-editor/index.min.asset.php +1 -1
- build/block-editor/index.min.js +4 -6
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 =
|
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 =
|
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 =
|
34 |
-
/******/ }();
|
35 |
/******/
|
36 |
/******/ /* webpack/runtime/make namespace object */
|
37 |
-
/******/
|
38 |
/******/ // define __esModule on exports
|
39 |
-
/******/ __webpack_require__.r =
|
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 |
+
/******/ (() => { // webpackBootstrap
|
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 |
+
/******/ () => (module['default']) :
|
13 |
+
/******/ () => (module);
|
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) => (Object.prototype.hasOwnProperty.call(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 |
|
52 |
// EXPORTS
|
53 |
__webpack_require__.d(__webpack_exports__, {
|
54 |
+
"setup": () => (/* binding */ setup),
|
55 |
+
"speak": () => (/* binding */ speak)
|
56 |
});
|
57 |
|
58 |
;// CONCATENATED MODULE: external ["wp","domReady"]
|
59 |
+
const 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 |
+
const 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' => 'aefdd2523cc4b947d519');
|
build/a11y/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
|
2 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r: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,{setup:()=>r,speak:()=>p});const n=window.wp.domReady;var o=e.n(n);const i=window.wp.i18n;function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite";const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",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("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}let d="";function r(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,i.__)("Notifications"),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("hidden","hidden");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&a("assertive"),null===n&&a("polite")}function p(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),d===e&&(e+=" "),d=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}o()(r),(window.wp=window.wp||{}).a11y=t})();
|
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":"yBACA,IAAIA,EAAsB,CCA1B,EAAwB,SAASC,GAChC,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,WAAa,OAAOF,EAAgB,SACpC,WAAa,OAAOA,GAErB,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLR,EAAwB,SAASI,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3E,EAAwB,SAASM,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,ICC/F,EAAwB,SAAST,GACX,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,M,2ECLvD,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,ECnCR,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,GDdlBM,GAG2B,OAAvBJ,GACJd,EAAc,aAGU,OAApBe,GACJf,EAAc,UA2BT,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,UFmDnCkB,GAEAL,EDzDc,SAAwBA,GAoBtC,OAZAA,EAAUA,EAAQM,QAAS,YAAa,KAMnChB,IAAoBU,IACxBA,GAAW,KAGZV,EAAkBU,EAEXA,ECqCGO,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,UA9C7BC,GAAAA,CAAUlB,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":""}
|
1 |
+
{"version":3,"file":"./build/a11y/index.min.js","mappings":"mBACA,IAAIA,EAAsB,CCA1B,EAAyBC,IACxB,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,IAAOF,EAAiB,QACxB,IAAM,EAEP,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLR,EAAwB,CAACI,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3E,EAAwB,CAACM,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClF,EAAyBT,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,M,6CCLvD,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,ECnCR,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,GDdlBM,GAG2B,OAAvBJ,GACJd,EAAc,aAGU,OAApBe,GACJf,EAAc,UA2BT,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,UFmDnCkB,GAEAL,EDzDc,SAAwBA,GAoBtC,OAZAA,EAAUA,EAAQM,QAAS,YAAa,KAMnChB,IAAoBU,IACxBA,GAAW,KAGZV,EAAkBU,EAEXA,ECqCGO,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,UA9C7BC,GAAAA,CAAUlB,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":""}
|
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 =
|
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 =
|
22 |
-
/******/ }();
|
23 |
/******/
|
24 |
/******/ /* webpack/runtime/make namespace object */
|
25 |
-
/******/
|
26 |
/******/ // define __esModule on exports
|
27 |
-
/******/ __webpack_require__.r =
|
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
|
@@ -326,7 +326,7 @@ const addAnnotationClassName = OriginalComponent => {
|
|
326 |
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/annotations', addAnnotationClassName);
|
327 |
|
328 |
;// CONCATENATED MODULE: external "lodash"
|
329 |
-
|
330 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/store/reducer.js
|
331 |
/**
|
332 |
* External dependencies
|
@@ -430,7 +430,7 @@ function annotations() {
|
|
430 |
|
431 |
return state;
|
432 |
}
|
433 |
-
/* harmony default export */
|
434 |
|
435 |
;// CONCATENATED MODULE: ./node_modules/rememo/es/rememo.js
|
436 |
|
@@ -833,7 +833,7 @@ function rng() {
|
|
833 |
return getRandomValues(rnds8);
|
834 |
}
|
835 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/regex.js
|
836 |
-
/* harmony default export */
|
837 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/validate.js
|
838 |
|
839 |
|
@@ -841,7 +841,7 @@ function validate(uuid) {
|
|
841 |
return typeof uuid === 'string' && regex.test(uuid);
|
842 |
}
|
843 |
|
844 |
-
/* harmony default export */
|
845 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
|
846 |
|
847 |
/**
|
@@ -872,7 +872,7 @@ function stringify(arr) {
|
|
872 |
return uuid;
|
873 |
}
|
874 |
|
875 |
-
/* harmony default export */
|
876 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
|
877 |
|
878 |
|
@@ -897,7 +897,7 @@ function v4(options, buf, offset) {
|
|
897 |
return esm_browser_stringify(rnds);
|
898 |
}
|
899 |
|
900 |
-
/* harmony default export */
|
901 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/store/actions.js
|
902 |
/**
|
903 |
* External dependencies
|
1 |
+
/******/ (() => { // webpackBootstrap
|
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) => (Object.prototype.hasOwnProperty.call(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 |
|
40 |
// EXPORTS
|
41 |
__webpack_require__.d(__webpack_exports__, {
|
42 |
+
"store": () => (/* 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": () => (__experimentalGetAllAnnotationsForBlock),
|
50 |
+
"__experimentalGetAnnotations": () => (__experimentalGetAnnotations),
|
51 |
+
"__experimentalGetAnnotationsForBlock": () => (__experimentalGetAnnotationsForBlock),
|
52 |
+
"__experimentalGetAnnotationsForRichText": () => (__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": () => (__experimentalAddAnnotation),
|
60 |
+
"__experimentalRemoveAnnotation": () => (__experimentalRemoveAnnotation),
|
61 |
+
"__experimentalRemoveAnnotationsBySource": () => (__experimentalRemoveAnnotationsBySource),
|
62 |
+
"__experimentalUpdateAnnotationRange": () => (__experimentalUpdateAnnotationRange)
|
63 |
});
|
64 |
|
65 |
;// CONCATENATED MODULE: external ["wp","richText"]
|
66 |
+
const external_wp_richText_namespaceObject = window["wp"]["richText"];
|
67 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
68 |
+
const 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 |
+
const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
|
289 |
;// CONCATENATED MODULE: external ["wp","data"]
|
290 |
+
const external_wp_data_namespaceObject = window["wp"]["data"];
|
291 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/block/index.js
|
292 |
/**
|
293 |
* WordPress dependencies
|
326 |
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/annotations', addAnnotationClassName);
|
327 |
|
328 |
;// CONCATENATED MODULE: external "lodash"
|
329 |
+
const external_lodash_namespaceObject = window["lodash"];
|
330 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/store/reducer.js
|
331 |
/**
|
332 |
* External dependencies
|
430 |
|
431 |
return state;
|
432 |
}
|
433 |
+
/* harmony default export */ const reducer = (annotations);
|
434 |
|
435 |
;// CONCATENATED MODULE: ./node_modules/rememo/es/rememo.js
|
436 |
|
833 |
return getRandomValues(rnds8);
|
834 |
}
|
835 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/regex.js
|
836 |
+
/* harmony default export */ const 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);
|
837 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/validate.js
|
838 |
|
839 |
|
841 |
return typeof uuid === 'string' && regex.test(uuid);
|
842 |
}
|
843 |
|
844 |
+
/* harmony default export */ const esm_browser_validate = (validate);
|
845 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
|
846 |
|
847 |
/**
|
872 |
return uuid;
|
873 |
}
|
874 |
|
875 |
+
/* harmony default export */ const esm_browser_stringify = (stringify);
|
876 |
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
|
877 |
|
878 |
|
897 |
return esm_browser_stringify(rnds);
|
898 |
}
|
899 |
|
900 |
+
/* harmony default export */ const esm_browser_v4 = (v4);
|
901 |
;// CONCATENATED MODULE: ./packages/annotations/build-module/store/actions.js
|
902 |
/**
|
903 |
* External dependencies
|
build/annotations/index.min.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'a17d5867d6a956cb679a');
|
build/annotations/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
|
2 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
(()=>{"use strict";var e={d:(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:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r: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:()=>G});var n={};e.r(n),e.d(n,{__experimentalGetAllAnnotationsForBlock:()=>T,__experimentalGetAnnotations:()=>b,__experimentalGetAnnotationsForBlock:()=>N,__experimentalGetAnnotationsForRichText:()=>w});var r={};e.r(r),e.d(r,{__experimentalAddAnnotation:()=>V,__experimentalRemoveAnnotation:()=>P,__experimentalRemoveAnnotationsBySource:()=>F,__experimentalUpdateAnnotationRange:()=>U});const o=window.wp.richText,a=window.wp.i18n,i="core/annotations",l="core/annotation",s="annotation-text-",u={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=s+t.source,i=s+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(s,""),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:d,...c}=u;(0,o.registerFormatType)(d,c);const p=window.wp.hooks,f=window.wp.data;(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 m=window.lodash;function g(e,t){const n=e.filter(t);return e.length===n.length?e:n}function v(e){return(0,m.isNumber)(e.start)&&(0,m.isNumber)(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,s=!0;for(t=0;t<e.length;t++){if(!(i=r=e[t])||"object"!=typeof i){s=!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=s,l.set(h,a)),l.get(h)}function a(){n=new WeakMap}function i(){var t,n,a,i,l,s=arguments.length;for(i=new Array(s),a=0;a<s;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=[],N=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 T(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:x}const w=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 b(e){return(0,m.flatMap)(e,(e=>e))}var O="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(!O)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(I)}const 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)};for(var C=[],D=0;D<256;++D)C.push((D+256).toString(16).substr(1));const 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 V(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 P(e){return{type:"ANNOTATION_REMOVE",annotationId:e}}function U(e,t,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:e,start:t,end:n}}function F(e){return{type:"ANNOTATION_REMOVE_SOURCE",source:e}}const G=(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&&!v(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(0,m.mapValues)(t,(e=>g(e,(e=>e.id!==n.annotationId))));case"ANNOTATION_UPDATE_RANGE":return(0,m.mapValues)(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(0,m.mapValues)(t,(e=>g(e,(e=>e.source!==n.source))))}return t},selectors:n,actions:r});(0,f.register)(G),(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/block/@wordpress/annotations/src/block/index.js","webpack://wp/external window \"lodash\"","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/reducer.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: dispatch( STORE_NAME )\n\t\t\t\t.__experimentalRemoveAnnotation,\n\t\t\tupdateAnnotationRange: dispatch( STORE_NAME )\n\t\t\t\t.__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 {\n\t\t\t\tremoveAnnotation,\n\t\t\t\tupdateAnnotationRange,\n\t\t\t\tannotations,\n\t\t\t} = props;\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 * 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 = select(\n\t\t\tSTORE_NAME\n\t\t).__experimentalGetAnnotationsForBlock( clientId );\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","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"lodash\"];","/**\n * External dependencies\n */\nimport { isNumber, mapValues } from 'lodash';\n\n/**\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 * 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\tisNumber( annotation.start ) &&\n\t\tisNumber( annotation.end ) &&\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","'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';\nimport { flatMap } from 'lodash';\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 flatMap( state, ( annotations ) => {\n\t\treturn annotations;\n\t} );\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","addFilter","OriginalComponent","withSelect","clientId","__experimentalGetAnnotationsForBlock","map","concat","Boolean","join","filterWithReference","collection","predicate","filteredCollection","isValidAnnotationRange","isNumber","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","flatMap","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","mapValues","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/block/@wordpress/annotations/src/block/index.js","webpack://wp/external window \"lodash\"","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/reducer.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 * 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","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"lodash\"];","/**\n * External dependencies\n */\nimport { isNumber, mapValues } from 'lodash';\n\n/**\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 * 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\tisNumber( annotation.start ) &&\n\t\tisNumber( annotation.end ) &&\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","'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';\nimport { flatMap } from 'lodash';\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 flatMap( state, ( annotations ) => {\n\t\treturn annotations;\n\t} );\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","addFilter","OriginalComponent","withSelect","clientId","__experimentalGetAnnotationsForBlock","map","concat","Boolean","join","filterWithReference","collection","predicate","filteredCollection","isValidAnnotationRange","isNumber","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","flatMap","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","mapValues","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 =
|
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 =
|
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 |
+
/******/ (() => { // webpackBootstrap
|
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) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
22 |
+
/******/ })();
|
23 |
/******/
|
24 |
/************************************************************************/
|
25 |
var __webpack_exports__ = {};
|
26 |
|
27 |
// EXPORTS
|
28 |
__webpack_require__.d(__webpack_exports__, {
|
29 |
+
"default": () => (/* binding */ build_module)
|
30 |
});
|
31 |
|
32 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
33 |
+
const 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 */ const nonce = (createNonceMiddleware);
|
67 |
|
68 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/namespace-endpoint.js
|
69 |
/**
|
91 |
});
|
92 |
};
|
93 |
|
94 |
+
/* harmony default export */ const namespace_endpoint = (namespaceAndEndpointMiddleware);
|
95 |
|
96 |
;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/root-url.js
|
97 |
/**
|
132 |
});
|
133 |
};
|
134 |
|
135 |
+
/* harmony default export */ const root_url = (createRootURLMiddleware);
|
136 |
|
137 |
;// CONCATENATED MODULE: external ["wp","url"]
|
138 |
+
const 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 */ const 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 */ const 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 */ const 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 */ const 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 */ const 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 */ const 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' => '0d58403d8384e3a0620a');
|
build/api-fetch/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
|
2 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
(()=>{"use strict";var e={d:(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:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>j});const 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},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},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)))};const 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/@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,\n\t\tmiddleware\n\t) => {\n\t\treturn ( workingOptions ) => middleware( workingOptions, next );\n\t}, fetchHandler );\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":""}
|
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":""}
|
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 =
|
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 =
|
22 |
-
/******/ }();
|
23 |
/******/
|
24 |
/******/ /* webpack/runtime/make namespace object */
|
25 |
-
/******/
|
26 |
/******/ // define __esModule on exports
|
27 |
-
/******/ __webpack_require__.r =
|
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 |
+
/******/ (() => { // webpackBootstrap
|
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) => (Object.prototype.hasOwnProperty.call(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": () => (/* binding */ autop),
|
40 |
+
/* harmony export */ "removep": () => (/* 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' => 'b1a2f86387be4fa46f89');
|
build/autop/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
|
2 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
(()=>{"use strict";var e={d:(p,n)=>{for(var r in n)e.o(n,r)&&!e.o(p,r)&&Object.defineProperty(p,r,{enumerable:!0,get:n[r]})},o:(e,p)=>Object.prototype.hasOwnProperty.call(e,p),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},p={};e.r(p),e.d(p,{autop:()=>t,removep:()=>c});const n=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function r(e,p){const r=function(e){const p=[];let r,t=e;for(;r=t.match(n);){const e=r.index;p.push(t.slice(0,e)),p.push(r[0]),t=t.slice(e+r[0].length)}return t.length&&p.push(t),p}(e);let t=!1;const c=Object.keys(p);for(let e=1;e<r.length;e+=2)for(let n=0;n<c.length;n++){const l=c[n];if(-1!==r[e].indexOf(l)){r[e]=r[e].replace(new RegExp(l,"g"),p[l]),t=!0;break}}return t&&(e=r.join("")),e}function t(e){let p=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){const p=e.split("</pre>"),r=p.pop();e="";for(let r=0;r<p.length;r++){const t=p[r],c=t.indexOf("<pre");if(-1===c){e+=t;continue}const l="<pre wp-pre-tag-"+r+"></pre>";n.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((p=>{e+="<p>"+p.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"),p&&(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,p)=>p?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>"),n.forEach((p=>{const[n,r]=p;e=e.replace(n,r)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function c(e){const p="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=p+"|div|p",r=p+"|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*</("+n+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","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,p)=>p&&-1!==p.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=p})();
|
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":"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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":""}
|
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 = (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":""}
|
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 =
|
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 =
|
22 |
-
/******/ }();
|
23 |
/******/
|
24 |
/******/ /* webpack/runtime/make namespace object */
|
25 |
-
/******/
|
26 |
/******/ // define __esModule on exports
|
27 |
-
/******/ __webpack_require__.r =
|
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 |
+
/******/ (() => { // webpackBootstrap
|
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) => (Object.prototype.hasOwnProperty.call(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": () => (/* binding */ createBlobURL),
|
40 |
+
/* harmony export */ "getBlobByURL": () => (/* binding */ getBlobByURL),
|
41 |
+
/* harmony export */ "getBlobTypeByURL": () => (/* binding */ getBlobTypeByURL),
|
42 |
+
/* harmony export */ "revokeBlobURL": () => (/* binding */ revokeBlobURL),
|
43 |
+
/* harmony export */ "isBlobURL": () => (/* 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' => 'bccaf46e493181a8db9a');
|
build/blob/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
|
2 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
(()=>{"use strict";var e={d:(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{createBlobURL:()=>i,getBlobByURL:()=>l,getBlobTypeByURL:()=>b,revokeBlobURL:()=>c,isBlobURL:()=>d});const{createObjectURL:t,revokeObjectURL:n}=window.URL,r={};function i(e){const o=t(e);return r[o]=e,o}function l(e){return r[e]}function b(e){var o;return null===(o=l(e))||void 0===o?void 0:o.type.split("/")[0]}function c(e){r[e]&&n(e),delete r[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}(window.wp=window.wp||{}).blob=o})();
|
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":"mBACA,IAAIA,EAAsB,CCA1B,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,MCJ3E,EAAwB,CAACM,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClF,EAAyBT,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,M,uHCFvD,MAAM,gBAAEC,EAAF,gBAAmBC,GAAoBC,OAAOC,IAK9CC,EAAQ,GASP,SAASC,EAAeC,GAC9B,MAAMC,EAAMP,EAAiBM,GAI7B,OAFAF,EAAOG,GAAQD,EAERC,EAYD,SAASC,EAAcD,GAC7B,OAAOH,EAAOG,GAYR,SAASE,EAAkBF,GAAM,MACvC,iBAAOC,EAAcD,UAArB,aAAO,EAAqBG,KAAKC,MAAO,KAAO,GAQzC,SAASC,EAAeL,GACzBH,EAAOG,IACXN,EAAiBM,UAGXH,EAAOG,GAUR,SAASM,EAAWN,GAC1B,SAAOA,IAASA,EAAIO,UAGc,IAA3BP,EAAIO,QAAS,U","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 = (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 * 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 =
|
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 =
|
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 =
|
34 |
-
/******/ }();
|
35 |
/******/
|
36 |
/******/ /* webpack/runtime/make namespace object */
|
37 |
-
/******/
|
38 |
/******/ // define __esModule on exports
|
39 |
-
/******/ __webpack_require__.r =
|
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,59 +51,59 @@ __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: external "lodash"
|
106 |
-
|
107 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/reducer.js
|
108 |
/**
|
109 |
* External dependencies
|
@@ -211,14 +211,14 @@ const errorNotices = function () {
|
|
211 |
|
212 |
return state;
|
213 |
};
|
214 |
-
/* harmony default export */
|
215 |
downloadableBlocks,
|
216 |
blockManagement,
|
217 |
errorNotices
|
218 |
}));
|
219 |
|
220 |
;// CONCATENATED MODULE: external ["wp","blockEditor"]
|
221 |
-
|
222 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/utils/has-block-type.js
|
223 |
/**
|
224 |
* Check if a block list contains a specific block type. Recursively searches
|
@@ -370,14 +370,14 @@ function getErrorNoticeForBlock(state, blockId) {
|
|
370 |
}
|
371 |
|
372 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
373 |
-
|
374 |
;// CONCATENATED MODULE: external ["wp","apiFetch"]
|
375 |
-
|
376 |
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
|
377 |
;// CONCATENATED MODULE: external ["wp","notices"]
|
378 |
-
|
379 |
;// CONCATENATED MODULE: external ["wp","url"]
|
380 |
-
|
381 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/load-assets.js
|
382 |
/**
|
383 |
* WordPress dependencies
|
@@ -856,11 +856,11 @@ function AutoBlockUninstaller() {
|
|
856 |
}
|
857 |
|
858 |
;// CONCATENATED MODULE: external ["wp","components"]
|
859 |
-
|
860 |
;// CONCATENATED MODULE: external ["wp","compose"]
|
861 |
-
|
862 |
;// CONCATENATED MODULE: external ["wp","coreData"]
|
863 |
-
|
864 |
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
865 |
function _extends() {
|
866 |
_extends = Object.assign || function (target) {
|
@@ -880,7 +880,7 @@ function _extends() {
|
|
880 |
return _extends.apply(this, arguments);
|
881 |
}
|
882 |
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
|
883 |
-
|
884 |
;// CONCATENATED MODULE: ./packages/icons/build-module/icon/index.js
|
885 |
/**
|
886 |
* WordPress dependencies
|
@@ -911,10 +911,10 @@ function Icon(_ref) {
|
|
911 |
});
|
912 |
}
|
913 |
|
914 |
-
/* harmony default export */
|
915 |
|
916 |
;// CONCATENATED MODULE: external ["wp","primitives"]
|
917 |
-
|
918 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-filled.js
|
919 |
|
920 |
|
@@ -928,7 +928,7 @@ const starFilled = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
928 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
929 |
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"
|
930 |
}));
|
931 |
-
/* harmony default export */
|
932 |
|
933 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-half.js
|
934 |
|
@@ -943,7 +943,7 @@ const starHalf = (0,external_wp_element_namespaceObject.createElement)(external_
|
|
943 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
944 |
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"
|
945 |
}));
|
946 |
-
/* harmony default export */
|
947 |
|
948 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-empty.js
|
949 |
|
@@ -960,7 +960,7 @@ const starEmpty = (0,external_wp_element_namespaceObject.createElement)(external
|
|
960 |
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",
|
961 |
clipRule: "evenodd"
|
962 |
}));
|
963 |
-
/* harmony default export */
|
964 |
|
965 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/stars.js
|
966 |
|
@@ -1006,7 +1006,7 @@ function Stars(_ref) {
|
|
1006 |
})));
|
1007 |
}
|
1008 |
|
1009 |
-
/* harmony default export */
|
1010 |
|
1011 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/index.js
|
1012 |
|
@@ -1025,7 +1025,7 @@ const BlockRatings = _ref => {
|
|
1025 |
rating: rating
|
1026 |
}));
|
1027 |
};
|
1028 |
-
/* harmony default export */
|
1029 |
|
1030 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-icon/index.js
|
1031 |
|
@@ -1051,7 +1051,7 @@ function DownloadableBlockIcon(_ref) {
|
|
1051 |
});
|
1052 |
}
|
1053 |
|
1054 |
-
/* harmony default export */
|
1055 |
|
1056 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-notice/index.js
|
1057 |
|
@@ -1082,7 +1082,7 @@ const DownloadableBlockNotice = _ref => {
|
|
1082 |
className: "block-directory-downloadable-block-notice__content"
|
1083 |
}, errorNotice.message, errorNotice.isFatal ? ' ' + (0,external_wp_i18n_namespaceObject.__)('Try reloading the page.') : null));
|
1084 |
};
|
1085 |
-
/* harmony default export */
|
1086 |
|
1087 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-list-item/index.js
|
1088 |
|
@@ -1230,16 +1230,12 @@ function DownloadableBlockListItem(_ref3) {
|
|
1230 |
}, !!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')))));
|
1231 |
}
|
1232 |
|
1233 |
-
/* harmony default export */
|
1234 |
|
1235 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-list/index.js
|
1236 |
|
1237 |
|
1238 |
|
1239 |
-
/**
|
1240 |
-
* External dependencies
|
1241 |
-
*/
|
1242 |
-
|
1243 |
/**
|
1244 |
* WordPress dependencies
|
1245 |
*/
|
@@ -1247,7 +1243,6 @@ function DownloadableBlockListItem(_ref3) {
|
|
1247 |
|
1248 |
|
1249 |
|
1250 |
-
|
1251 |
/**
|
1252 |
* Internal dependencies
|
1253 |
*/
|
@@ -1255,10 +1250,12 @@ function DownloadableBlockListItem(_ref3) {
|
|
1255 |
|
1256 |
|
1257 |
|
|
|
|
|
1258 |
function DownloadableBlocksList(_ref) {
|
1259 |
let {
|
1260 |
items,
|
1261 |
-
onHover =
|
1262 |
onSelect
|
1263 |
} = _ref;
|
1264 |
const composite = (0,external_wp_components_namespaceObject.__unstableUseCompositeState)();
|
@@ -1300,10 +1297,10 @@ function DownloadableBlocksList(_ref) {
|
|
1300 |
}));
|
1301 |
}
|
1302 |
|
1303 |
-
/* harmony default export */
|
1304 |
|
1305 |
;// CONCATENATED MODULE: external ["wp","a11y"]
|
1306 |
-
|
1307 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.js
|
1308 |
|
1309 |
|
@@ -1341,7 +1338,7 @@ function DownloadableBlocksInserterPanel(_ref) {
|
|
1341 |
}, (0,external_wp_i18n_namespaceObject.__)('Select a block to install and add it to your post.'))), children));
|
1342 |
}
|
1343 |
|
1344 |
-
/* harmony default export */
|
1345 |
|
1346 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
|
1347 |
|
@@ -1356,7 +1353,7 @@ const blockDefault = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
1356 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
1357 |
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"
|
1358 |
}));
|
1359 |
-
/* harmony default export */
|
1360 |
|
1361 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
|
1362 |
|
@@ -1367,16 +1364,21 @@ const blockDefault = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
1367 |
|
1368 |
|
1369 |
|
|
|
1370 |
function DownloadableBlocksNoResults() {
|
1371 |
-
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
1372 |
className: "block-editor-inserter__no-results"
|
1373 |
}, (0,external_wp_element_namespaceObject.createElement)(icon, {
|
1374 |
className: "block-editor-inserter__no-results-icon",
|
1375 |
icon: block_default
|
1376 |
-
}), (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No results found.')))
|
|
|
|
|
|
|
|
|
1377 |
}
|
1378 |
|
1379 |
-
/* harmony default export */
|
1380 |
|
1381 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/index.js
|
1382 |
|
@@ -1438,7 +1440,7 @@ function DownloadableBlocksPanel(_ref) {
|
|
1438 |
})) : !hasLocalBlocks && (0,external_wp_element_namespaceObject.createElement)(no_results, null);
|
1439 |
}
|
1440 |
|
1441 |
-
/* harmony default export */
|
1442 |
let {
|
1443 |
filterValue,
|
1444 |
rootClientId = null
|
@@ -1515,10 +1517,10 @@ function InserterMenuDownloadableBlocksPanel() {
|
|
1515 |
});
|
1516 |
}
|
1517 |
|
1518 |
-
/* harmony default export */
|
1519 |
|
1520 |
;// CONCATENATED MODULE: external ["wp","editPost"]
|
1521 |
-
|
1522 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/compact-list/index.js
|
1523 |
|
1524 |
|
@@ -1752,7 +1754,7 @@ const ModifiedWarning = _ref2 => {
|
|
1752 |
}, messageHTML), (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, originalUndelimitedContent));
|
1753 |
};
|
1754 |
|
1755 |
-
/* harmony default export */
|
1756 |
|
1757 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/index.js
|
1758 |
|
1 |
+
/******/ (() => { // webpackBootstrap
|
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 |
+
/******/ () => (module['default']) :
|
13 |
+
/******/ () => (module);
|
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) => (Object.prototype.hasOwnProperty.call(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 |
|
52 |
// EXPORTS
|
53 |
__webpack_require__.d(__webpack_exports__, {
|
54 |
+
"store": () => (/* 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": () => (getDownloadableBlocks),
|
62 |
+
"getErrorNoticeForBlock": () => (getErrorNoticeForBlock),
|
63 |
+
"getErrorNotices": () => (getErrorNotices),
|
64 |
+
"getInstalledBlockTypes": () => (getInstalledBlockTypes),
|
65 |
+
"getNewBlockTypes": () => (getNewBlockTypes),
|
66 |
+
"getUnusedBlockTypes": () => (getUnusedBlockTypes),
|
67 |
+
"isInstalling": () => (isInstalling),
|
68 |
+
"isRequestingDownloadableBlocks": () => (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": () => (addInstalledBlockType),
|
76 |
+
"clearErrorNotice": () => (clearErrorNotice),
|
77 |
+
"fetchDownloadableBlocks": () => (fetchDownloadableBlocks),
|
78 |
+
"installBlockType": () => (installBlockType),
|
79 |
+
"receiveDownloadableBlocks": () => (receiveDownloadableBlocks),
|
80 |
+
"removeInstalledBlockType": () => (removeInstalledBlockType),
|
81 |
+
"setErrorNotice": () => (setErrorNotice),
|
82 |
+
"setIsInstalling": () => (setIsInstalling),
|
83 |
+
"uninstallBlockType": () => (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": () => (resolvers_getDownloadableBlocks)
|
91 |
});
|
92 |
|
93 |
;// CONCATENATED MODULE: external ["wp","element"]
|
94 |
+
const external_wp_element_namespaceObject = window["wp"]["element"];
|
95 |
;// CONCATENATED MODULE: external ["wp","plugins"]
|
96 |
+
const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
|
97 |
;// CONCATENATED MODULE: external ["wp","hooks"]
|
98 |
+
const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
|
99 |
;// CONCATENATED MODULE: external ["wp","blocks"]
|
100 |
+
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
|
101 |
;// CONCATENATED MODULE: external ["wp","data"]
|
102 |
+
const external_wp_data_namespaceObject = window["wp"]["data"];
|
103 |
;// CONCATENATED MODULE: external ["wp","editor"]
|
104 |
+
const external_wp_editor_namespaceObject = window["wp"]["editor"];
|
105 |
;// CONCATENATED MODULE: external "lodash"
|
106 |
+
const external_lodash_namespaceObject = window["lodash"];
|
107 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/reducer.js
|
108 |
/**
|
109 |
* External dependencies
|
211 |
|
212 |
return state;
|
213 |
};
|
214 |
+
/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
|
215 |
downloadableBlocks,
|
216 |
blockManagement,
|
217 |
errorNotices
|
218 |
}));
|
219 |
|
220 |
;// CONCATENATED MODULE: external ["wp","blockEditor"]
|
221 |
+
const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
|
222 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/utils/has-block-type.js
|
223 |
/**
|
224 |
* Check if a block list contains a specific block type. Recursively searches
|
370 |
}
|
371 |
|
372 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
373 |
+
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
374 |
;// CONCATENATED MODULE: external ["wp","apiFetch"]
|
375 |
+
const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
|
376 |
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
|
377 |
;// CONCATENATED MODULE: external ["wp","notices"]
|
378 |
+
const external_wp_notices_namespaceObject = window["wp"]["notices"];
|
379 |
;// CONCATENATED MODULE: external ["wp","url"]
|
380 |
+
const external_wp_url_namespaceObject = window["wp"]["url"];
|
381 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/load-assets.js
|
382 |
/**
|
383 |
* WordPress dependencies
|
856 |
}
|
857 |
|
858 |
;// CONCATENATED MODULE: external ["wp","components"]
|
859 |
+
const external_wp_components_namespaceObject = window["wp"]["components"];
|
860 |
;// CONCATENATED MODULE: external ["wp","compose"]
|
861 |
+
const external_wp_compose_namespaceObject = window["wp"]["compose"];
|
862 |
;// CONCATENATED MODULE: external ["wp","coreData"]
|
863 |
+
const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
|
864 |
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
865 |
function _extends() {
|
866 |
_extends = Object.assign || function (target) {
|
880 |
return _extends.apply(this, arguments);
|
881 |
}
|
882 |
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
|
883 |
+
const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
|
884 |
;// CONCATENATED MODULE: ./packages/icons/build-module/icon/index.js
|
885 |
/**
|
886 |
* WordPress dependencies
|
911 |
});
|
912 |
}
|
913 |
|
914 |
+
/* harmony default export */ const icon = (Icon);
|
915 |
|
916 |
;// CONCATENATED MODULE: external ["wp","primitives"]
|
917 |
+
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
|
918 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-filled.js
|
919 |
|
920 |
|
928 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
929 |
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"
|
930 |
}));
|
931 |
+
/* harmony default export */ const star_filled = (starFilled);
|
932 |
|
933 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-half.js
|
934 |
|
943 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
944 |
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"
|
945 |
}));
|
946 |
+
/* harmony default export */ const star_half = (starHalf);
|
947 |
|
948 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-empty.js
|
949 |
|
960 |
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",
|
961 |
clipRule: "evenodd"
|
962 |
}));
|
963 |
+
/* harmony default export */ const star_empty = (starEmpty);
|
964 |
|
965 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/stars.js
|
966 |
|
1006 |
})));
|
1007 |
}
|
1008 |
|
1009 |
+
/* harmony default export */ const stars = (Stars);
|
1010 |
|
1011 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/index.js
|
1012 |
|
1025 |
rating: rating
|
1026 |
}));
|
1027 |
};
|
1028 |
+
/* harmony default export */ const block_ratings = (BlockRatings);
|
1029 |
|
1030 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-icon/index.js
|
1031 |
|
1051 |
});
|
1052 |
}
|
1053 |
|
1054 |
+
/* harmony default export */ const downloadable_block_icon = (DownloadableBlockIcon);
|
1055 |
|
1056 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-notice/index.js
|
1057 |
|
1082 |
className: "block-directory-downloadable-block-notice__content"
|
1083 |
}, errorNotice.message, errorNotice.isFatal ? ' ' + (0,external_wp_i18n_namespaceObject.__)('Try reloading the page.') : null));
|
1084 |
};
|
1085 |
+
/* harmony default export */ const downloadable_block_notice = (DownloadableBlockNotice);
|
1086 |
|
1087 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-list-item/index.js
|
1088 |
|
1230 |
}, !!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')))));
|
1231 |
}
|
1232 |
|
1233 |
+
/* harmony default export */ const downloadable_block_list_item = (DownloadableBlockListItem);
|
1234 |
|
1235 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-list/index.js
|
1236 |
|
1237 |
|
1238 |
|
|
|
|
|
|
|
|
|
1239 |
/**
|
1240 |
* WordPress dependencies
|
1241 |
*/
|
1243 |
|
1244 |
|
1245 |
|
|
|
1246 |
/**
|
1247 |
* Internal dependencies
|
1248 |
*/
|
1250 |
|
1251 |
|
1252 |
|
1253 |
+
const noop = () => {};
|
1254 |
+
|
1255 |
function DownloadableBlocksList(_ref) {
|
1256 |
let {
|
1257 |
items,
|
1258 |
+
onHover = noop,
|
1259 |
onSelect
|
1260 |
} = _ref;
|
1261 |
const composite = (0,external_wp_components_namespaceObject.__unstableUseCompositeState)();
|
1297 |
}));
|
1298 |
}
|
1299 |
|
1300 |
+
/* harmony default export */ const downloadable_blocks_list = (DownloadableBlocksList);
|
1301 |
|
1302 |
;// CONCATENATED MODULE: external ["wp","a11y"]
|
1303 |
+
const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
|
1304 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.js
|
1305 |
|
1306 |
|
1338 |
}, (0,external_wp_i18n_namespaceObject.__)('Select a block to install and add it to your post.'))), children));
|
1339 |
}
|
1340 |
|
1341 |
+
/* harmony default export */ const inserter_panel = (DownloadableBlocksInserterPanel);
|
1342 |
|
1343 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
|
1344 |
|
1353 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
1354 |
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"
|
1355 |
}));
|
1356 |
+
/* harmony default export */ const block_default = (blockDefault);
|
1357 |
|
1358 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
|
1359 |
|
1364 |
|
1365 |
|
1366 |
|
1367 |
+
|
1368 |
function DownloadableBlocksNoResults() {
|
1369 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("div", {
|
1370 |
className: "block-editor-inserter__no-results"
|
1371 |
}, (0,external_wp_element_namespaceObject.createElement)(icon, {
|
1372 |
className: "block-editor-inserter__no-results-icon",
|
1373 |
icon: block_default
|
1374 |
+
}), (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No results found.'))), (0,external_wp_element_namespaceObject.createElement)("div", {
|
1375 |
+
className: "block-editor-inserter__tips"
|
1376 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Tip, null, (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Interested in creating your own block?')), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
|
1377 |
+
href: "https://developer.wordpress.org/block-editor/"
|
1378 |
+
}, (0,external_wp_i18n_namespaceObject.__)('Get started here'), ".")))));
|
1379 |
}
|
1380 |
|
1381 |
+
/* harmony default export */ const no_results = (DownloadableBlocksNoResults);
|
1382 |
|
1383 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/index.js
|
1384 |
|
1440 |
})) : !hasLocalBlocks && (0,external_wp_element_namespaceObject.createElement)(no_results, null);
|
1441 |
}
|
1442 |
|
1443 |
+
/* harmony default export */ const downloadable_blocks_panel = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)((select, _ref2) => {
|
1444 |
let {
|
1445 |
filterValue,
|
1446 |
rootClientId = null
|
1517 |
});
|
1518 |
}
|
1519 |
|
1520 |
+
/* harmony default export */ const inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
|
1521 |
|
1522 |
;// CONCATENATED MODULE: external ["wp","editPost"]
|
1523 |
+
const external_wp_editPost_namespaceObject = window["wp"]["editPost"];
|
1524 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/compact-list/index.js
|
1525 |
|
1526 |
|
1754 |
}, messageHTML), (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, originalUndelimitedContent));
|
1755 |
};
|
1756 |
|
1757 |
+
/* harmony default export */ const get_install_missing = (getInstallMissing);
|
1758 |
|
1759 |
;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/index.js
|
1760 |
|
build/block-directory/index.min.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'c7a796652b40cd005ba8');
|
build/block-directory/index.min.js
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
-
|
2 |
-
(0,v.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),
|
3 |
/* translators: %s: number of stars. */
|
4 |
-
(0,v.__)("%s out of 5 stars"),l)},(0,u.times)(n,(e=>(0,
|
5 |
/* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
|
6 |
-
(0,v._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",o),(0,U.decodeEntities)(l),
|
7 |
/* translators: %1$s: block title, %2$s: author name. */
|
8 |
-
(0,v.__)("%1$s <span>by %2$s</span>"),(0,U.decodeEntities)(u),o),{span:(0,
|
9 |
/* translators: %d: number of available blocks. */
|
10 |
-
(0,v._n)("%d additional block is available to install.","%d additional blocks are available to install.",o),o))}),[o]),(0,
|
11 |
/* translators: %s: Name of the block author. */
|
12 |
-
(0,v.__)("By %s"),o))))}))):null}function
|
13 |
-
(0,v._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},(0,
|
14 |
/* translators: %s: block name */
|
15 |
-
(0,v.__)("Install %s"),l.title))}const
|
16 |
/* translators: %s: block name */
|
17 |
-
(0,v.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),t.title||n);const m=[(0,
|
18 |
/* translators: %s: block name */
|
19 |
-
(0,v.__)("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),m.push((0,
|
20 |
//# sourceMappingURL=index.min.js.map
|
1 |
+
(()=>{"use strict";var e={n:t=>{var l=t&&t.__esModule?()=>t.default:()=>t;return e.d(l,{a:l}),l},d:(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:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r: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:()=>$});var l={};e.r(l),e.d(l,{getDownloadableBlocks:()=>_,getErrorNoticeForBlock:()=>f,getErrorNotices:()=>h,getInstalledBlockTypes:()=>g,getNewBlockTypes:()=>w,getUnusedBlockTypes:()=>E,isInstalling:()=>y,isRequestingDownloadableBlocks:()=>b});var n={};e.r(n),e.d(n,{addInstalledBlockType:()=>R,clearErrorNotice:()=>F,fetchDownloadableBlocks:()=>C,installBlockType:()=>D,receiveDownloadableBlocks:()=>O,removeInstalledBlockType:()=>A,setErrorNotice:()=>x,setIsInstalling:()=>M,uninstallBlockType:()=>P});var o={};e.r(o),e.d(o,{getDownloadableBlocks:()=>V});const a=window.wp.element,r=window.wp.plugins,s=window.wp.hooks,i=window.wp.blocks,c=window.wp.data,d=window.wp.editor,u=window.lodash,m=(0,c.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":return(0,u.omit)(e,t.blockId)}return e}}),p=window.wp.blockEditor;function k(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(k(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 _(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 w=(0,c.createRegistrySelector)((e=>t=>{const l=e(p.store).getBlocks();return g(t).filter((e=>k(e,l)))})),E=(0,c.createRegistrySelector)((e=>t=>{const l=e(p.store).getBlocks();return g(t).filter((e=>!k(e,l)))}));function y(e,t){return e.blockManagement.isInstalling[t]||!1}function h(e){return e.errorNotices}function f(e,t){return e.errorNotices[t]}const v=window.wp.i18n,B=window.wp.apiFetch;var N=e.n(B);const I=window.wp.notices,T=window.wp.url,L=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 S(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function C(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function O(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}const D=e=>async t=>{let{registry:l,dispatch:n}=t;const{id:o,name:a}=e;let r=!1;n.clearErrorNotice(o);try{n.setIsInstalling(o,!0);const t=S(e);let s={};t?await N()({method:"PUT",url:t,data:{status:"active"}}):s=(await N()({method:"POST",path:"wp/v2/plugins",data:{slug:o,status:"active"}}))._links,n.addInstalledBlockType({...e,links:{...e.links,...s}});const c=["api_version","title","category","parent","icon","description","keywords","attributes","provides_context","uses_context","supports","styles","example","variations"];if(await N()({path:(0,T.addQueryArgs)(`/wp/v2/block-types/${a}`,{_fields:c})}).catch((()=>{})).then((e=>{e&&(0,i.unstable__bootstrapServerSideBlockDefinitions)({[a]:(0,u.pick)(e,c)})})),await async function(){const e=await N()({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 L(e)}(),!l.select(i.store).getBlockTypes().some((e=>e.name===a)))throw new Error((0,v.__)("Error registering block. Try reloading the page."));l.dispatch(I.store).createInfoNotice((0,v.sprintf)(// translators: %s is the block title.
|
2 |
+
(0,v.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),r=!0}catch(e){let t=e.message||(0,v.__)("An error occurred."),a=e instanceof Error;const r={folder_exists:(0,v.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:(0,v.__)("Error installing block. You can reload the page and try again.")};r[e.code]&&(a=!0,t=r[e.code]),n.setErrorNotice(o,t,a),l.dispatch(I.store).createErrorNotice(t,{speak:!0,isDismissible:!0})}return n.setIsInstalling(o,!1),r},P=e=>async t=>{let{registry:l,dispatch:n}=t;try{const t=S(e);await N()({method:"PUT",url:t,data:{status:"inactive"}}),await N()({method:"DELETE",url:t}),n.removeInstalledBlockType(e)}catch(e){l.dispatch(I.store).createErrorNotice(e.message||(0,v.__)("An error occurred."))}};function R(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function A(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function M(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function x(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 F(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}const V=e=>async t=>{let{dispatch:l}=t;if(e)try{l(C(e));l(O((await N()({path:`wp/v2/block-directory/search?term=${e}`})).map((e=>(0,u.mapKeys)(e,((e,t)=>(0,u.camelCase)(t))))),e))}catch{}},H={reducer:m,selectors:l,actions:n,resolvers:o},$=(0,c.createReduxStore)("core/block-directory",H);function K(){const{uninstallBlockType:e}=(0,c.useDispatch)($),t=(0,c.useSelect)((e=>{const{isAutosavingPost:t,isSavingPost:l}=e(d.store);return l()&&!t()}),[]),l=(0,c.useSelect)((e=>e($).getUnusedBlockTypes()),[]);return(0,a.useEffect)((()=>{t&&l.length&&l.forEach((t=>{e(t),(0,i.unregisterBlockType)(t.name)}))}),[t]),null}(0,c.register)($);const z=window.wp.components,Y=window.wp.compose,j=window.wp.coreData;function q(){return(q=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}).apply(this,arguments)}const U=window.wp.htmlEntities,G=function(e){let{icon:t,size:l=24,...n}=e;return(0,a.cloneElement)(t,{width:l,height:l,...n})},W=window.wp.primitives,Q=(0,a.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(W.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"})),J=(0,a.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(W.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"})),X=(0,a.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(W.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"})),Z=function(e){let{rating:t}=e;const l=.5*Math.round(t/.5),n=Math.floor(t),o=Math.ceil(t-n),r=5-(n+o);return(0,a.createElement)("span",{"aria-label":(0,v.sprintf)(
|
3 |
/* translators: %s: number of stars. */
|
4 |
+
(0,v.__)("%s out of 5 stars"),l)},(0,u.times)(n,(e=>(0,a.createElement)(G,{key:`full_stars_${e}`,className:"block-directory-block-ratings__star-full",icon:Q,size:16}))),(0,u.times)(o,(e=>(0,a.createElement)(G,{key:`half_stars_${e}`,className:"block-directory-block-ratings__star-half-full",icon:J,size:16}))),(0,u.times)(r,(e=>(0,a.createElement)(G,{key:`empty_stars_${e}`,className:"block-directory-block-ratings__star-empty",icon:X,size:16}))))},ee=e=>{let{rating:t}=e;return(0,a.createElement)("span",{className:"block-directory-block-ratings"},(0,a.createElement)(Z,{rating:t}))},te=function(e){let{icon:t}=e;const l="block-directory-downloadable-block-icon";return null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?(0,a.createElement)("img",{className:l,src:t,alt:""}):(0,a.createElement)(p.BlockIcon,{className:l,icon:t,showColors:!0})},le=e=>{let{block:t}=e;const l=(0,c.useSelect)((e=>e($).getErrorNoticeForBlock(t.id)),[t]);return l?(0,a.createElement)("div",{className:"block-directory-downloadable-block-notice"},(0,a.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},l.message,l.isFatal?" "+(0,v.__)("Try reloading the page."):null)):null};function ne(e,t){let{title:l,rating:n,ratingCount:o}=e,{hasNotice:a,isInstalled:r,isInstalling:s}=t;const i=.5*Math.round(n/.5);return!r&&a?(0,v.sprintf)("Retry installing %s.",(0,U.decodeEntities)(l)):r?(0,v.sprintf)("Add %s.",(0,U.decodeEntities)(l)):s?(0,v.sprintf)("Installing %s.",(0,U.decodeEntities)(l)):o<1?(0,v.sprintf)("Install %s.",(0,U.decodeEntities)(l)):(0,v.sprintf)(
|
5 |
/* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
|
6 |
+
(0,v._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",o),(0,U.decodeEntities)(l),i,o)}const oe=function(e){let{composite:t,item:l,onClick:n}=e;const{author:o,description:r,icon:s,rating:d,title:u}=l,m=!!(0,i.getBlockType)(l.name),{hasNotice:p,isInstalling:k,isInstallable:b}=(0,c.useSelect)((e=>{const{getErrorNoticeForBlock:t,isInstalling:n}=e($),o=t(l.id),a=o&&o.isFatal;return{hasNotice:!!o,isInstalling:n(l.id),isInstallable:!a}}),[l]);let _="";return m?_=(0,v.__)("Installed!"):k&&(_=(0,v.__)("Installing…")),(0,a.createElement)(z.__unstableCompositeItem,q({__experimentalIsFocusable:!0,role:"option",as:z.Button},t,{className:"block-directory-downloadable-block-list-item",onClick:e=>{e.preventDefault(),n()},isBusy:k,disabled:k||!b,label:ne(l,{hasNotice:p,isInstalled:m,isInstalling:k}),showTooltip:!0,tooltipPosition:"top center"}),(0,a.createElement)("div",{className:"block-directory-downloadable-block-list-item__icon"},(0,a.createElement)(te,{icon:s,title:u}),k?(0,a.createElement)("span",{className:"block-directory-downloadable-block-list-item__spinner"},(0,a.createElement)(z.Spinner,null)):(0,a.createElement)(ee,{rating:d})),(0,a.createElement)("span",{className:"block-directory-downloadable-block-list-item__details"},(0,a.createElement)("span",{className:"block-directory-downloadable-block-list-item__title"},(0,a.createInterpolateElement)((0,v.sprintf)(
|
7 |
/* translators: %1$s: block title, %2$s: author name. */
|
8 |
+
(0,v.__)("%1$s <span>by %2$s</span>"),(0,U.decodeEntities)(u),o),{span:(0,a.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),p?(0,a.createElement)(le,{block:l}):(0,a.createElement)(a.Fragment,null,(0,a.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},_||(0,U.decodeEntities)(r)),b&&!(m||k)&&(0,a.createElement)(z.VisuallyHidden,null,(0,v.__)("Install block")))))},ae=()=>{},re=function(e){let{items:t,onHover:l=ae,onSelect:n}=e;const o=(0,z.__unstableUseCompositeState)(),{installBlockType:r}=(0,c.useDispatch)($);return t.length?(0,a.createElement)(z.__unstableComposite,q({},o,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":(0,v.__)("Blocks available for install")}),t.map((e=>(0,a.createElement)(oe,{key:e.id,composite:o,onClick:()=>{(0,i.getBlockType)(e.name)?n(e):r(e).then((t=>{t&&n(e)})),l(null)},onHover:l,item:e})))):null},se=window.wp.a11y,ie=function(e){let{children:t,downloadableItems:l,hasLocalBlocks:n}=e;const o=l.length;return(0,a.useEffect)((()=>{(0,se.speak)((0,v.sprintf)(
|
9 |
/* translators: %d: number of available blocks. */
|
10 |
+
(0,v._n)("%d additional block is available to install.","%d additional blocks are available to install.",o),o))}),[o]),(0,a.createElement)(a.Fragment,null,!n&&(0,a.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},(0,v.__)("No results available from your installed blocks.")),(0,a.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),(0,a.createElement)("div",{className:"block-directory-downloadable-blocks-panel"},(0,a.createElement)("div",{className:"block-directory-downloadable-blocks-panel__header"},(0,a.createElement)("h2",{className:"block-directory-downloadable-blocks-panel__title"},(0,v.__)("Available to install")),(0,a.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},(0,v.__)("Select a block to install and add it to your post."))),t))},ce=(0,a.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(W.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"})),de=function(){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"block-editor-inserter__no-results"},(0,a.createElement)(G,{className:"block-editor-inserter__no-results-icon",icon:ce}),(0,a.createElement)("p",null,(0,v.__)("No results found."))),(0,a.createElement)("div",{className:"block-editor-inserter__tips"},(0,a.createElement)(z.Tip,null,(0,a.createElement)("div",null,(0,a.createElement)("p",null,(0,v.__)("Interested in creating your own block?")),(0,a.createElement)(z.ExternalLink,{href:"https://developer.wordpress.org/block-editor/"},(0,v.__)("Get started here"),".")))))},ue=(0,Y.compose)([(0,c.withSelect)(((e,t)=>{let{filterValue:l,rootClientId:n=null}=t;const{getDownloadableBlocks:o,isRequestingDownloadableBlocks:a}=e($),{canInsertBlockType:r}=e(p.store),s=e(j.store).canUser("read","block-directory/search");return{downloadableItems:s?o(l).filter((e=>r(e,n,!0))):[],hasPermission:s,isLoading:a(l)}}))])((function(e){let{downloadableItems:t,onSelect:l,onHover:n,hasLocalBlocks:o,hasPermission:r,isLoading:s,isTyping:i}=e;return void 0===r||s||i?(0,a.createElement)(a.Fragment,null,r&&!o&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},(0,v.__)("No results available from your installed blocks.")),(0,a.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"})),(0,a.createElement)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading"},(0,a.createElement)(z.Spinner,null))):!1===r?o?null:(0,a.createElement)(de,null):t.length?(0,a.createElement)(ie,{downloadableItems:t,hasLocalBlocks:o},(0,a.createElement)(re,{items:t,onSelect:l,onHover:n})):!o&&(0,a.createElement)(de,null)})),me=function(){const[e,t]=(0,a.useState)(""),l=(0,u.debounce)(t,400);return(0,a.createElement)(p.__unstableInserterMenuExtension,null,(t=>{let{onSelect:n,onHover:o,filterValue:r,hasItems:s,rootClientId:i}=t;return e!==r&&l(r),e?(0,a.createElement)(ue,{onSelect:n,onHover:o,rootClientId:i,filterValue:e,hasLocalBlocks:s,isTyping:r!==e}):null}))},pe=window.wp.editPost;function ke(e){let{items:t}=e;return t.length?(0,a.createElement)("ul",{className:"block-directory-compact-list"},t.map((e=>{let{icon:t,id:l,title:n,author:o}=e;return(0,a.createElement)("li",{key:l,className:"block-directory-compact-list__item"},(0,a.createElement)(te,{icon:t,title:n}),(0,a.createElement)("div",{className:"block-directory-compact-list__item-details"},(0,a.createElement)("div",{className:"block-directory-compact-list__item-title"},n),(0,a.createElement)("div",{className:"block-directory-compact-list__item-author"},(0,v.sprintf)(
|
11 |
/* translators: %s: Name of the block author. */
|
12 |
+
(0,v.__)("By %s"),o))))}))):null}function be(){const e=(0,c.useSelect)((e=>e($).getNewBlockTypes()),[]);return e.length?(0,a.createElement)(pe.PluginPrePublishPanel,{icon:ce,title:(0,v.sprintf)(// translators: %d: number of blocks (number).
|
13 |
+
(0,v._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},(0,a.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},(0,v._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),(0,a.createElement)(ke,{items:e})):null}function _e(e){let{attributes:t,block:l,clientId:n}=e;const o=(0,c.useSelect)((e=>e($).isInstalling(l.id)),[l.id]),{installBlockType:r}=(0,c.useDispatch)($),{replaceBlock:s}=(0,c.useDispatch)(p.store);return(0,a.createElement)(z.Button,{onClick:()=>r(l).then((e=>{if(e){const e=(0,i.getBlockType)(l.name),[o]=(0,i.parse)(t.originalContent);o&&e&&s(n,(0,i.createBlock)(e.name,o.attributes,o.innerBlocks))}})),disabled:o,isBusy:o,variant:"primary"},(0,v.sprintf)(
|
14 |
/* translators: %s: block name */
|
15 |
+
(0,v.__)("Install %s"),l.title))}const ge=e=>{let{originalBlock:t,...l}=e;const{originalName:n,originalUndelimitedContent:o}=l.attributes,{replaceBlock:r}=(0,c.useDispatch)(p.store),s=!!o,d=(0,i.getBlockType)("core/html");let u=(0,v.sprintf)(
|
16 |
/* translators: %s: block name */
|
17 |
+
(0,v.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),t.title||n);const m=[(0,a.createElement)(_e,{key:"install",block:t,attributes:l.attributes,clientId:l.clientId})];return s&&d&&(u=(0,v.sprintf)(
|
18 |
/* translators: %s: block name */
|
19 |
+
(0,v.__)("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),m.push((0,a.createElement)(z.Button,{key:"convert",onClick:()=>{r(l.clientId,(0,i.createBlock)("core/html",{content:o}))},variant:"link"},(0,v.__)("Keep as HTML")))),(0,a.createElement)("div",(0,p.useBlockProps)(),(0,a.createElement)(p.Warning,{actions:m},u),(0,a.createElement)(a.RawHTML,null,o))};(0,r.registerPlugin)("block-directory",{render:()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(K,null),(0,a.createElement)(me,null),(0,a.createElement)(be,null))}),(0,s.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:o}=(0,c.useSelect)((e=>{const{getDownloadableBlocks:l}=e($),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 o&&n?(0,a.createElement)(ge,q({},e,{originalBlock:n})):(0,a.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/external window \"lodash\"","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/./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\",\"components\"]","webpack://wp/external window [\"wp\",\"compose\"]","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 = 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\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"lodash\"];","/**\n * External dependencies\n */\n\nimport { omit } from 'lodash';\n\n/**\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\treturn omit( state, action.blockId );\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 * External dependencies\n */\nimport { pick } from 'lodash';\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 = ( block ) => async ( {\n\tregistry,\n\tdispatch,\n} ) => {\n\tconst { id, name } = block;\n\tlet success = false;\n\tdispatch.clearErrorNotice( id );\n\ttry {\n\t\tdispatch.setIsInstalling( id, true );\n\n\t\t// If we have a wp:plugin link, the plugin is installed but inactive.\n\t\tconst url = getPluginUrl( block );\n\t\tlet links = {};\n\t\tif ( url ) {\n\t\t\tawait apiFetch( {\n\t\t\t\tmethod: 'PUT',\n\t\t\t\turl,\n\t\t\t\tdata: { status: 'active' },\n\t\t\t} );\n\t\t} else {\n\t\t\tconst response = await apiFetch( {\n\t\t\t\tmethod: 'POST',\n\t\t\t\tpath: 'wp/v2/plugins',\n\t\t\t\tdata: { slug: id, status: 'active' },\n\t\t\t} );\n\t\t\t// Add the `self` link for newly-installed blocks.\n\t\t\tlinks = response._links;\n\t\t}\n\n\t\tdispatch.addInstalledBlockType( {\n\t\t\t...block,\n\t\t\tlinks: { ...block.links, ...links },\n\t\t} );\n\n\t\t// Ensures that the block metadata is propagated to the editor when registered on the server.\n\t\tconst metadataFields = [\n\t\t\t'api_version',\n\t\t\t'title',\n\t\t\t'category',\n\t\t\t'parent',\n\t\t\t'icon',\n\t\t\t'description',\n\t\t\t'keywords',\n\t\t\t'attributes',\n\t\t\t'provides_context',\n\t\t\t'uses_context',\n\t\t\t'supports',\n\t\t\t'styles',\n\t\t\t'example',\n\t\t\t'variations',\n\t\t];\n\t\tawait apiFetch( {\n\t\t\tpath: addQueryArgs( `/wp/v2/block-types/${ name }`, {\n\t\t\t\t_fields: metadataFields,\n\t\t\t} ),\n\t\t} )\n\t\t\t// Ignore when the block is not registered on the server.\n\t\t\t.catch( () => {} )\n\t\t\t.then( ( response ) => {\n\t\t\t\tif ( ! response ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tunstable__bootstrapServerSideBlockDefinitions( {\n\t\t\t\t\t[ name ]: pick( response, metadataFields ),\n\t\t\t\t} );\n\t\t\t} );\n\n\t\tawait loadAssets();\n\t\tconst registeredBlocks = registry.select( blocksStore ).getBlockTypes();\n\t\tif ( ! registeredBlocks.some( ( i ) => i.name === name ) ) {\n\t\t\tthrow new Error(\n\t\t\t\t__( 'Error registering block. Try reloading the page.' )\n\t\t\t);\n\t\t}\n\n\t\tregistry.dispatch( noticesStore ).createInfoNotice(\n\t\t\tsprintf(\n\t\t\t\t// translators: %s is the block title.\n\t\t\t\t__( 'Block %s installed and added.' ),\n\t\t\t\tblock.title\n\t\t\t),\n\t\t\t{\n\t\t\t\tspeak: true,\n\t\t\t\ttype: 'snackbar',\n\t\t\t}\n\t\t);\n\t\tsuccess = true;\n\t} catch ( error ) {\n\t\tlet message = error.message || __( 'An error occurred.' );\n\n\t\t// Errors we throw are fatal.\n\t\tlet isFatal = error instanceof Error;\n\n\t\t// Specific API errors that are fatal.\n\t\tconst fatalAPIErrors = {\n\t\t\tfolder_exists: __(\n\t\t\t\t'This block is already installed. Try reloading the page.'\n\t\t\t),\n\t\t\tunable_to_connect_to_filesystem: __(\n\t\t\t\t'Error installing block. You can reload the page and try again.'\n\t\t\t),\n\t\t};\n\n\t\tif ( fatalAPIErrors[ error.code ] ) {\n\t\t\tisFatal = true;\n\t\t\tmessage = fatalAPIErrors[ error.code ];\n\t\t}\n\n\t\tdispatch.setErrorNotice( id, message, isFatal );\n\t\tregistry.dispatch( noticesStore ).createErrorNotice( message, {\n\t\t\tspeak: true,\n\t\t\tisDismissible: true,\n\t\t} );\n\t}\n\tdispatch.setIsInstalling( id, false );\n\treturn success;\n};\n\n/**\n * Action triggered to uninstall a block plugin.\n *\n * @param {Object} block The blockType object.\n */\nexport const uninstallBlockType = ( block ) => async ( {\n\tregistry,\n\tdispatch,\n} ) => {\n\ttry {\n\t\tconst url = getPluginUrl( block );\n\t\tawait apiFetch( {\n\t\t\tmethod: 'PUT',\n\t\t\turl,\n\t\t\tdata: { status: 'inactive' },\n\t\t} );\n\t\tawait apiFetch( {\n\t\t\tmethod: 'DELETE',\n\t\t\turl,\n\t\t} );\n\t\tdispatch.removeInstalledBlockType( block );\n\t} catch ( error ) {\n\t\tregistry\n\t\t\t.dispatch( noticesStore )\n\t\t\t.createErrorNotice( error.message || __( 'An error occurred.' ) );\n\t}\n};\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","/**\n * External dependencies\n */\nimport { camelCase, mapKeys } from 'lodash';\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 = ( filterValue ) => async ( {\n\tdispatch,\n} ) => {\n\tif ( ! filterValue ) {\n\t\treturn;\n\t}\n\n\ttry {\n\t\tdispatch( fetchDownloadableBlocks( filterValue ) );\n\t\tconst results = await apiFetch( {\n\t\t\tpath: `wp/v2/block-directory/search?term=${ filterValue }`,\n\t\t} );\n\t\tconst blocks = results.map( ( result ) =>\n\t\t\tmapKeys( result, ( value, key ) => camelCase( key ) )\n\t\t);\n\n\t\tdispatch( receiveDownloadableBlocks( blocks, filterValue ) );\n\t} catch {}\n};\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\"][\"components\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"compose\"];","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 * External dependencies\n */\nimport { times } from 'lodash';\n\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{ times( fullStarCount, ( 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{ times( halfStarCount, ( 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{ times( emptyStarCount, ( 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 {\n\t\t\t\tgetErrorNoticeForBlock,\n\t\t\t\tisInstalling: isBlockInstalling,\n\t\t\t} = select( 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 * External dependencies\n */\nimport { noop } from 'lodash';\n\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\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';\n\nfunction DownloadableBlocksNoResults() {\n\treturn (\n\t\t<div className=\"block-editor-inserter__no-results\">\n\t\t\t<Icon\n\t\t\t\tclassName=\"block-editor-inserter__no-results-icon\"\n\t\t\t\ticon={ blockDefault }\n\t\t\t/>\n\t\t\t<p>{ __( 'No results found.' ) }</p>\n\t\t</div>\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 {\n\t\t\tgetDownloadableBlocks,\n\t\t\tisRequestingDownloadableBlocks,\n\t\t} = select( 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 * External dependencies\n */\nimport { debounce } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { __unstableInserterMenuExtension } from '@wordpress/block-editor';\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","var __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, getBlockType } 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 } = props.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 = getBlockType( 'core/html' );\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=\"link\">\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","omit","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","pick","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","map","result","mapKeys","camelCase","storeConfig","reducer","selectors","actions","resolvers","store","createReduxStore","AutoBlockUninstaller","useDispatch","blockDirectoryStore","shouldRemoveBlockTypes","useSelect","isAutosavingPost","isSavingPost","editorStore","unusedBlockTypes","useEffect","unregisterBlockType","register","_extends","assign","target","arguments","source","apply","this","icon","size","props","cloneElement","width","height","SVG","xmlns","viewBox","Path","fillRule","clipRule","rating","stars","Math","round","fullStarCount","floor","halfStarCount","ceil","emptyStarCount","times","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","items","onHover","noop","onSelect","useCompositeState","children","downloadableItems","hasLocalBlocks","count","blockDefault","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","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/external window \"lodash\"","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/./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\",\"components\"]","webpack://wp/external window [\"wp\",\"compose\"]","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\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"lodash\"];","/**\n * External dependencies\n */\n\nimport { omit } from 'lodash';\n\n/**\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\treturn omit( state, action.blockId );\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 * External dependencies\n */\nimport { pick } from 'lodash';\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 ]: pick( response, metadataFields ),\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","/**\n * External dependencies\n */\nimport { camelCase, mapKeys } from 'lodash';\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\tmapKeys( result, ( value, key ) => camelCase( key ) )\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\"][\"components\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"compose\"];","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 * External dependencies\n */\nimport { times } from 'lodash';\n\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{ times( fullStarCount, ( 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{ times( halfStarCount, ( 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{ times( emptyStarCount, ( 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<div>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t{ __( 'Interested in creating your own block?' ) }\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<ExternalLink href=\"https://developer.wordpress.org/block-editor/\">\n\t\t\t\t\t\t\t{ __( 'Get started here' ) }.\n\t\t\t\t\t\t</ExternalLink>\n\t\t\t\t\t</div>\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 * External dependencies\n */\nimport { debounce } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { __unstableInserterMenuExtension } from '@wordpress/block-editor';\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, getBlockType } 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 } = props.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 = getBlockType( 'core/html' );\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=\"link\">\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","omit","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","pick","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","map","result","mapKeys","camelCase","storeConfig","reducer","selectors","actions","resolvers","store","createReduxStore","AutoBlockUninstaller","useDispatch","blockDirectoryStore","shouldRemoveBlockTypes","useSelect","isAutosavingPost","isSavingPost","editorStore","unusedBlockTypes","useEffect","unregisterBlockType","register","_extends","assign","target","arguments","source","apply","this","icon","size","props","cloneElement","width","height","SVG","xmlns","viewBox","Path","fillRule","clipRule","rating","stars","Math","round","fullStarCount","floor","halfStarCount","ceil","emptyStarCount","times","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","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-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:#0000}.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;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:#ffffffbf;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-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:#0000}.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;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:#ffffffbf;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/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 |
-
/***/ (
|
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 |
-
/***/ (
|
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 |
-
/***/ (
|
393 |
|
394 |
"use strict";
|
395 |
/*istanbul ignore start*/
|
@@ -700,7 +700,7 @@ function clonePath(path) {
|
|
700 |
/***/ }),
|
701 |
|
702 |
/***/ 1973:
|
703 |
-
/***/ (
|
704 |
|
705 |
"use strict";
|
706 |
var __webpack_unused_export__;
|
@@ -745,7 +745,7 @@ function diffChars(oldStr, newStr, options) {
|
|
745 |
/***/ }),
|
746 |
|
747 |
/***/ 1345:
|
748 |
-
/***/ (
|
749 |
|
750 |
"use strict";
|
751 |
|
@@ -886,7 +886,7 @@ module.exports = scrollIntoView;
|
|
886 |
/***/ }),
|
887 |
|
888 |
/***/ 5425:
|
889 |
-
/***/ (
|
890 |
|
891 |
"use strict";
|
892 |
|
@@ -896,7 +896,7 @@ module.exports = __webpack_require__(1345);
|
|
896 |
/***/ }),
|
897 |
|
898 |
/***/ 5022:
|
899 |
-
/***/ (
|
900 |
|
901 |
"use strict";
|
902 |
|
@@ -1342,7 +1342,7 @@ module.exports = _extends({
|
|
1342 |
/***/ }),
|
1343 |
|
1344 |
/***/ 8575:
|
1345 |
-
/***/ (
|
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 |
-
/***/ (
|
1376 |
|
1377 |
// Load in dependencies
|
1378 |
var computedStyle = __webpack_require__(4827);
|
@@ -1476,7 +1476,7 @@ module.exports = lineHeight;
|
|
1476 |
/***/ }),
|
1477 |
|
1478 |
/***/ 5372:
|
1479 |
-
/***/ (
|
1480 |
|
1481 |
"use strict";
|
1482 |
/**
|
@@ -1548,7 +1548,7 @@ module.exports = function() {
|
|
1548 |
/***/ }),
|
1549 |
|
1550 |
/***/ 2652:
|
1551 |
-
/***/ (
|
1552 |
|
1553 |
/**
|
1554 |
* Copyright (c) 2013-present, Facebook, Inc.
|
@@ -1567,7 +1567,7 @@ if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
1567 |
/***/ }),
|
1568 |
|
1569 |
/***/ 9567:
|
1570 |
-
/***/ (
|
1571 |
|
1572 |
"use strict";
|
1573 |
/**
|
@@ -1721,7 +1721,7 @@ exports.TextareaAutosize = React.forwardRef(function (props, ref) {
|
|
1721 |
/***/ }),
|
1722 |
|
1723 |
/***/ 773:
|
1724 |
-
/***/ (
|
1725 |
|
1726 |
"use strict";
|
1727 |
var __webpack_unused_export__;
|
@@ -1734,7 +1734,7 @@ exports.Z = TextareaAutosize_1.TextareaAutosize;
|
|
1734 |
/***/ }),
|
1735 |
|
1736 |
/***/ 3124:
|
1737 |
-
/***/ (
|
1738 |
|
1739 |
var traverse = module.exports = function (obj) {
|
1740 |
return new Traverse(obj);
|
@@ -2055,7 +2055,7 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) {
|
|
2055 |
/***/ }),
|
2056 |
|
2057 |
/***/ 9196:
|
2058 |
-
/***/ (
|
2059 |
|
2060 |
"use strict";
|
2061 |
module.exports = window["React"];
|
@@ -2090,374 +2090,376 @@ module.exports = window["React"];
|
|
2090 |
/******/
|
2091 |
/************************************************************************/
|
2092 |
/******/ /* webpack/runtime/compat get default export */
|
2093 |
-
/******/
|
2094 |
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
2095 |
-
/******/ __webpack_require__.n =
|
2096 |
/******/ var getter = module && module.__esModule ?
|
2097 |
-
/******/
|
2098 |
-
/******/
|
2099 |
/******/ __webpack_require__.d(getter, { a: getter });
|
2100 |
/******/ return getter;
|
2101 |
/******/ };
|
2102 |
-
/******/ }();
|
2103 |
/******/
|
2104 |
/******/ /* webpack/runtime/define property getters */
|
2105 |
-
/******/
|
2106 |
/******/ // define getter functions for harmony exports
|
2107 |
-
/******/ __webpack_require__.d =
|
2108 |
/******/ for(var key in definition) {
|
2109 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
2110 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
2111 |
/******/ }
|
2112 |
/******/ }
|
2113 |
/******/ };
|
2114 |
-
/******/ }();
|
2115 |
/******/
|
2116 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
2117 |
-
/******/
|
2118 |
-
/******/ __webpack_require__.o =
|
2119 |
-
/******/ }();
|
2120 |
/******/
|
2121 |
/******/ /* webpack/runtime/make namespace object */
|
2122 |
-
/******/
|
2123 |
/******/ // define __esModule on exports
|
2124 |
-
/******/ __webpack_require__.r =
|
2125 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
2126 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
2127 |
/******/ }
|
2128 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
2129 |
/******/ };
|
2130 |
-
/******/ }();
|
2131 |
/******/
|
2132 |
/************************************************************************/
|
2133 |
var __webpack_exports__ = {};
|
2134 |
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
2135 |
-
|
2136 |
"use strict";
|
2137 |
// ESM COMPAT FLAG
|
2138 |
__webpack_require__.r(__webpack_exports__);
|
2139 |
|
2140 |
// EXPORTS
|
2141 |
__webpack_require__.d(__webpack_exports__, {
|
2142 |
-
"AlignmentControl":
|
2143 |
-
"AlignmentToolbar":
|
2144 |
-
"Autocomplete":
|
2145 |
-
"BlockAlignmentControl":
|
2146 |
-
"BlockAlignmentToolbar":
|
2147 |
-
"BlockBreadcrumb":
|
2148 |
-
"BlockColorsStyleSelector":
|
2149 |
-
"BlockContextProvider":
|
2150 |
-
"BlockControls":
|
2151 |
-
"BlockEdit":
|
2152 |
-
"BlockEditorKeyboardShortcuts":
|
2153 |
-
"BlockEditorProvider":
|
2154 |
-
"BlockFormatControls":
|
2155 |
-
"BlockIcon":
|
2156 |
-
"BlockInspector":
|
2157 |
-
"BlockList":
|
2158 |
-
"BlockMover":
|
2159 |
-
"BlockNavigationDropdown":
|
2160 |
-
"BlockPreview":
|
2161 |
-
"BlockSelectionClearer":
|
2162 |
-
"BlockSettingsMenu":
|
2163 |
-
"BlockSettingsMenuControls":
|
2164 |
-
"BlockStyles":
|
2165 |
-
"BlockTitle":
|
2166 |
-
"BlockToolbar":
|
2167 |
-
"BlockTools":
|
2168 |
-
"BlockVerticalAlignmentControl":
|
2169 |
-
"BlockVerticalAlignmentToolbar":
|
2170 |
-
"ButtonBlockAppender":
|
2171 |
-
"ButtonBlockerAppender":
|
2172 |
-
"ColorPalette":
|
2173 |
-
"ColorPaletteControl":
|
2174 |
-
"ContrastChecker":
|
2175 |
-
"CopyHandler":
|
2176 |
-
"DefaultBlockAppender":
|
2177 |
-
"FontSizePicker":
|
2178 |
-
"InnerBlocks":
|
2179 |
-
"Inserter":
|
2180 |
-
"InspectorAdvancedControls":
|
2181 |
-
"InspectorControls":
|
2182 |
-
"JustifyContentControl":
|
2183 |
-
"JustifyToolbar":
|
2184 |
-
"LineHeightControl":
|
2185 |
-
"MediaPlaceholder":
|
2186 |
-
"MediaReplaceFlow":
|
2187 |
-
"MediaUpload":
|
2188 |
-
"MediaUploadCheck":
|
2189 |
-
"MultiSelectScrollIntoView":
|
2190 |
-
"NavigableToolbar":
|
2191 |
-
"ObserveTyping":
|
2192 |
-
"PanelColorSettings":
|
2193 |
-
"PlainText":
|
2194 |
-
"RichText":
|
2195 |
-
"RichTextShortcut":
|
2196 |
-
"RichTextToolbarButton":
|
2197 |
-
"SETTINGS_DEFAULTS":
|
2198 |
-
"SkipToSelectedBlock":
|
2199 |
-
"ToolSelector":
|
2200 |
-
"Typewriter":
|
2201 |
-
"URLInput":
|
2202 |
-
"URLInputButton":
|
2203 |
-
"URLPopover":
|
2204 |
-
"Warning":
|
2205 |
-
"WritingFlow":
|
2206 |
-
"__experimentalBlockAlignmentMatrixControl":
|
2207 |
-
"__experimentalBlockFullHeightAligmentControl":
|
2208 |
-
"__experimentalBlockPatternSetup":
|
2209 |
-
"__experimentalBlockPatternsList":
|
2210 |
-
"__experimentalBlockVariationPicker":
|
2211 |
-
"__experimentalBlockVariationTransforms":
|
2212 |
-
"__experimentalBorderRadiusControl":
|
2213 |
-
"__experimentalColorGradientControl":
|
2214 |
-
"__experimentalColorGradientSettingsDropdown":
|
2215 |
-
"__experimentalDateFormatPicker":
|
2216 |
-
"__experimentalDuotoneControl":
|
2217 |
-
"__experimentalElementButtonClassName":
|
2218 |
-
"__experimentalFontAppearanceControl":
|
2219 |
-
"__experimentalFontFamilyControl":
|
2220 |
-
"__experimentalGetBorderClassesAndStyles":
|
2221 |
-
"__experimentalGetColorClassesAndStyles":
|
2222 |
-
"__experimentalGetGradientClass":
|
2223 |
-
"__experimentalGetGradientObjectByGradientValue":
|
2224 |
-
"__experimentalGetMatchingVariation":
|
2225 |
-
"__experimentalGetSpacingClassesAndStyles":
|
2226 |
-
"__experimentalImageEditingProvider":
|
2227 |
-
"__experimentalImageEditor":
|
2228 |
-
"__experimentalImageSizeControl":
|
2229 |
-
"__experimentalImageURLInputUI":
|
2230 |
-
"
|
2231 |
-
"
|
2232 |
-
"
|
2233 |
-
"
|
2234 |
-
"
|
2235 |
-
"
|
2236 |
-
"
|
2237 |
-
"
|
2238 |
-
"
|
2239 |
-
"
|
2240 |
-
"
|
2241 |
-
"
|
2242 |
-
"
|
2243 |
-
"
|
2244 |
-
"
|
2245 |
-
"
|
2246 |
-
"
|
2247 |
-
"
|
2248 |
-
"
|
2249 |
-
"
|
2250 |
-
"
|
2251 |
-
"
|
2252 |
-
"
|
2253 |
-
"
|
2254 |
-
"
|
2255 |
-
"
|
2256 |
-
"
|
2257 |
-
"
|
2258 |
-
"
|
2259 |
-
"
|
2260 |
-
"
|
2261 |
-
"
|
2262 |
-
"
|
2263 |
-
"
|
2264 |
-
"
|
2265 |
-
"
|
2266 |
-
"
|
2267 |
-
"
|
2268 |
-
"
|
2269 |
-
"
|
2270 |
-
"
|
2271 |
-
"
|
2272 |
-
"
|
2273 |
-
"
|
2274 |
-
"
|
2275 |
-
"
|
2276 |
-
"
|
2277 |
-
"
|
2278 |
-
"
|
2279 |
-
"
|
2280 |
-
"
|
2281 |
-
"
|
2282 |
-
"
|
2283 |
-
"
|
2284 |
-
"
|
2285 |
-
"
|
2286 |
-
"
|
2287 |
-
"
|
|
|
|
|
2288 |
});
|
2289 |
|
2290 |
// NAMESPACE OBJECT: ./packages/block-editor/build-module/store/selectors.js
|
2291 |
var selectors_namespaceObject = {};
|
2292 |
__webpack_require__.r(selectors_namespaceObject);
|
2293 |
__webpack_require__.d(selectors_namespaceObject, {
|
2294 |
-
"__experimentalGetActiveBlockIdByBlockNames":
|
2295 |
-
"__experimentalGetAllowedBlocks":
|
2296 |
-
"__experimentalGetAllowedPatterns":
|
2297 |
-
"__experimentalGetBlockListSettingsForBlocks":
|
2298 |
-
"__experimentalGetDirectInsertBlock":
|
2299 |
-
"__experimentalGetGlobalBlocksByName":
|
2300 |
-
"__experimentalGetLastBlockAttributeChanges":
|
2301 |
-
"__experimentalGetParsedPattern":
|
2302 |
-
"__experimentalGetPatternTransformItems":
|
2303 |
-
"__experimentalGetPatternsByBlockTypes":
|
2304 |
-
"__experimentalGetReusableBlockTitle":
|
2305 |
-
"__unstableGetBlockWithoutInnerBlocks":
|
2306 |
-
"__unstableGetClientIdWithClientIdsTree":
|
2307 |
-
"__unstableGetClientIdsTree":
|
2308 |
-
"__unstableGetSelectedBlocksWithPartialSelection":
|
2309 |
-
"__unstableGetVisibleBlocks":
|
2310 |
-
"__unstableIsFullySelected":
|
2311 |
-
"__unstableIsLastBlockChangeIgnored":
|
2312 |
-
"__unstableIsSelectionCollapsed":
|
2313 |
-
"__unstableIsSelectionMergeable":
|
2314 |
-
"areInnerBlocksControlled":
|
2315 |
-
"canEditBlock":
|
2316 |
-
"canInsertBlockType":
|
2317 |
-
"canInsertBlocks":
|
2318 |
-
"canLockBlockType":
|
2319 |
-
"canMoveBlock":
|
2320 |
-
"canMoveBlocks":
|
2321 |
-
"canRemoveBlock":
|
2322 |
-
"canRemoveBlocks":
|
2323 |
-
"didAutomaticChange":
|
2324 |
-
"getAdjacentBlockClientId":
|
2325 |
-
"getBlock":
|
2326 |
-
"getBlockAttributes":
|
2327 |
-
"getBlockCount":
|
2328 |
-
"getBlockHierarchyRootClientId":
|
2329 |
-
"getBlockIndex":
|
2330 |
-
"getBlockInsertionPoint":
|
2331 |
-
"getBlockListSettings":
|
2332 |
-
"getBlockMode":
|
2333 |
-
"getBlockName":
|
2334 |
-
"getBlockOrder":
|
2335 |
-
"getBlockParents":
|
2336 |
-
"getBlockParentsByBlockName":
|
2337 |
-
"getBlockRootClientId":
|
2338 |
-
"getBlockSelectionEnd":
|
2339 |
-
"getBlockSelectionStart":
|
2340 |
-
"getBlockTransformItems":
|
2341 |
-
"getBlocks":
|
2342 |
-
"getBlocksByClientId":
|
2343 |
-
"getClientIdsOfDescendants":
|
2344 |
-
"getClientIdsWithDescendants":
|
2345 |
-
"getDraggedBlockClientIds":
|
2346 |
-
"getFirstMultiSelectedBlockClientId":
|
2347 |
-
"getGlobalBlockCount":
|
2348 |
-
"getInserterItems":
|
2349 |
-
"getLastMultiSelectedBlockClientId":
|
2350 |
-
"getLowestCommonAncestorWithSelectedBlock":
|
2351 |
-
"getMultiSelectedBlockClientIds":
|
2352 |
-
"getMultiSelectedBlocks":
|
2353 |
-
"getMultiSelectedBlocksEndClientId":
|
2354 |
-
"getMultiSelectedBlocksStartClientId":
|
2355 |
-
"getNextBlockClientId":
|
2356 |
-
"getPreviousBlockClientId":
|
2357 |
-
"getSelectedBlock":
|
2358 |
-
"getSelectedBlockClientId":
|
2359 |
-
"getSelectedBlockClientIds":
|
2360 |
-
"getSelectedBlockCount":
|
2361 |
-
"getSelectedBlocksInitialCaretPosition":
|
2362 |
-
"getSelectionEnd":
|
2363 |
-
"getSelectionStart":
|
2364 |
-
"getSettings":
|
2365 |
-
"getTemplate":
|
2366 |
-
"getTemplateLock":
|
2367 |
-
"hasBlockMovingClientId":
|
2368 |
-
"hasInserterItems":
|
2369 |
-
"hasMultiSelection":
|
2370 |
-
"hasSelectedBlock":
|
2371 |
-
"hasSelectedInnerBlock":
|
2372 |
-
"isAncestorBeingDragged":
|
2373 |
-
"isAncestorMultiSelected":
|
2374 |
-
"isBlockBeingDragged":
|
2375 |
-
"isBlockHighlighted":
|
2376 |
-
"isBlockInsertionPointVisible":
|
2377 |
-
"isBlockMultiSelected":
|
2378 |
-
"isBlockSelected":
|
2379 |
-
"isBlockValid":
|
2380 |
-
"isBlockVisible":
|
2381 |
-
"isBlockWithinSelection":
|
2382 |
-
"isCaretWithinFormattedText":
|
2383 |
-
"isDraggingBlocks":
|
2384 |
-
"isFirstMultiSelectedBlock":
|
2385 |
-
"isLastBlockChangePersistent":
|
2386 |
-
"isMultiSelecting":
|
2387 |
-
"isNavigationMode":
|
2388 |
-
"isSelectionEnabled":
|
2389 |
-
"isTyping":
|
2390 |
-
"isValidTemplate":
|
2391 |
-
"wasBlockJustInserted":
|
2392 |
});
|
2393 |
|
2394 |
// NAMESPACE OBJECT: ./packages/block-editor/build-module/store/actions.js
|
2395 |
var actions_namespaceObject = {};
|
2396 |
__webpack_require__.r(actions_namespaceObject);
|
2397 |
__webpack_require__.d(actions_namespaceObject, {
|
2398 |
-
"__unstableDeleteSelection":
|
2399 |
-
"__unstableExpandSelection":
|
2400 |
-
"__unstableMarkAutomaticChange":
|
2401 |
-
"__unstableMarkLastChangeAsPersistent":
|
2402 |
-
"__unstableMarkNextChangeAsNotPersistent":
|
2403 |
-
"__unstableSaveReusableBlock":
|
2404 |
-
"__unstableSplitSelection":
|
2405 |
-
"clearSelectedBlock":
|
2406 |
-
"duplicateBlocks":
|
2407 |
-
"enterFormattedText":
|
2408 |
-
"exitFormattedText":
|
2409 |
-
"flashBlock":
|
2410 |
-
"hideInsertionPoint":
|
2411 |
-
"insertAfterBlock":
|
2412 |
-
"insertBeforeBlock":
|
2413 |
-
"insertBlock":
|
2414 |
-
"insertBlocks":
|
2415 |
-
"insertDefaultBlock":
|
2416 |
-
"mergeBlocks":
|
2417 |
-
"moveBlockToPosition":
|
2418 |
-
"moveBlocksDown":
|
2419 |
-
"moveBlocksToPosition":
|
2420 |
-
"moveBlocksUp":
|
2421 |
-
"multiSelect":
|
2422 |
-
"receiveBlocks":
|
2423 |
-
"removeBlock":
|
2424 |
-
"removeBlocks":
|
2425 |
-
"replaceBlock":
|
2426 |
-
"replaceBlocks":
|
2427 |
-
"replaceInnerBlocks":
|
2428 |
-
"resetBlocks":
|
2429 |
-
"resetSelection":
|
2430 |
-
"selectBlock":
|
2431 |
-
"selectNextBlock":
|
2432 |
-
"selectPreviousBlock":
|
2433 |
-
"selectionChange":
|
2434 |
-
"setBlockMovingClientId":
|
2435 |
-
"setBlockVisibility":
|
2436 |
-
"setHasControlledInnerBlocks":
|
2437 |
-
"setNavigationMode":
|
2438 |
-
"setTemplateValidity":
|
2439 |
-
"showInsertionPoint":
|
2440 |
-
"startDraggingBlocks":
|
2441 |
-
"startMultiSelect":
|
2442 |
-
"startTyping":
|
2443 |
-
"stopDraggingBlocks":
|
2444 |
-
"stopMultiSelect":
|
2445 |
-
"stopTyping":
|
2446 |
-
"synchronizeTemplate":
|
2447 |
-
"toggleBlockHighlight":
|
2448 |
-
"toggleBlockMode":
|
2449 |
-
"toggleSelection":
|
2450 |
-
"updateBlock":
|
2451 |
-
"updateBlockAttributes":
|
2452 |
-
"updateBlockListSettings":
|
2453 |
-
"updateSettings":
|
2454 |
-
"validateBlocksToTemplate":
|
2455 |
});
|
2456 |
|
2457 |
;// CONCATENATED MODULE: external ["wp","blocks"]
|
2458 |
-
|
2459 |
;// CONCATENATED MODULE: external ["wp","hooks"]
|
2460 |
-
|
2461 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/compat.js
|
2462 |
/**
|
2463 |
* WordPress dependencies
|
@@ -2498,18 +2500,18 @@ function _extends() {
|
|
2498 |
return _extends.apply(this, arguments);
|
2499 |
}
|
2500 |
;// CONCATENATED MODULE: external ["wp","element"]
|
2501 |
-
|
2502 |
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
2503 |
var classnames = __webpack_require__(4403);
|
2504 |
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
2505 |
;// CONCATENATED MODULE: external "lodash"
|
2506 |
-
|
2507 |
;// CONCATENATED MODULE: external ["wp","compose"]
|
2508 |
-
|
2509 |
;// CONCATENATED MODULE: external ["wp","components"]
|
2510 |
-
|
2511 |
;// CONCATENATED MODULE: external ["wp","data"]
|
2512 |
-
|
2513 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/groups.js
|
2514 |
/**
|
2515 |
* WordPress dependencies
|
@@ -2527,10 +2529,10 @@ const groups = {
|
|
2527 |
other: BlockControlsOther,
|
2528 |
parent: BlockControlsParent
|
2529 |
};
|
2530 |
-
/* harmony default export */
|
2531 |
|
2532 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
2533 |
-
|
2534 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/defaults.js
|
2535 |
/**
|
2536 |
* WordPress dependencies
|
@@ -4434,7 +4436,7 @@ function lastBlockInserted() {
|
|
4434 |
|
4435 |
return state;
|
4436 |
}
|
4437 |
-
/* harmony default export */
|
4438 |
blocks,
|
4439 |
isTyping,
|
4440 |
draggedBlocks,
|
@@ -4755,7 +4757,7 @@ function isShallowEqual(a, b, fromIndex) {
|
|
4755 |
}
|
4756 |
|
4757 |
;// CONCATENATED MODULE: external ["wp","primitives"]
|
4758 |
-
|
4759 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/symbol.js
|
4760 |
|
4761 |
|
@@ -4769,12 +4771,12 @@ const symbol = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
4769 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
4770 |
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"
|
4771 |
}));
|
4772 |
-
/* harmony default export */
|
4773 |
|
4774 |
;// CONCATENATED MODULE: external ["wp","richText"]
|
4775 |
-
|
4776 |
;// CONCATENATED MODULE: external ["wp","deprecated"]
|
4777 |
-
|
4778 |
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
|
4779 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/utils.js
|
4780 |
/**
|
@@ -6119,7 +6121,7 @@ const checkAllowList = function (list, item) {
|
|
6119 |
return list;
|
6120 |
}
|
6121 |
|
6122 |
-
if (
|
6123 |
// TODO: when there is a canonical way to detect that we are editing a post
|
6124 |
// the following check should be changed to something like:
|
6125 |
// if ( list.includes( 'core/post-content' ) && getEditorMode() === 'post-content' && item === null )
|
@@ -7248,7 +7250,7 @@ const __unstableGetVisibleBlocks = rememo(state => {
|
|
7248 |
}, state => [state.blocks.visibility]);
|
7249 |
|
7250 |
;// CONCATENATED MODULE: external ["wp","a11y"]
|
7251 |
-
|
7252 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/actions.js
|
7253 |
/**
|
7254 |
* External dependencies
|
@@ -9030,7 +9032,7 @@ BlockFormatControls.Slot = props => {
|
|
9030 |
}, props));
|
9031 |
};
|
9032 |
|
9033 |
-
/* harmony default export */
|
9034 |
|
9035 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-left.js
|
9036 |
|
@@ -9045,7 +9047,7 @@ const justifyLeft = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
9045 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9046 |
d: "M9 9v6h11V9H9zM4 20h1.5V4H4v16z"
|
9047 |
}));
|
9048 |
-
/* harmony default export */
|
9049 |
|
9050 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-center.js
|
9051 |
|
@@ -9060,7 +9062,7 @@ const justifyCenter = (0,external_wp_element_namespaceObject.createElement)(exte
|
|
9060 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9061 |
d: "M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"
|
9062 |
}));
|
9063 |
-
/* harmony default export */
|
9064 |
|
9065 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-right.js
|
9066 |
|
@@ -9075,7 +9077,7 @@ const justifyRight = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
9075 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9076 |
d: "M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"
|
9077 |
}));
|
9078 |
-
/* harmony default export */
|
9079 |
|
9080 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-space-between.js
|
9081 |
|
@@ -9090,7 +9092,7 @@ const justifySpaceBetween = (0,external_wp_element_namespaceObject.createElement
|
|
9090 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9091 |
d: "M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"
|
9092 |
}));
|
9093 |
-
/* harmony default export */
|
9094 |
|
9095 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-right.js
|
9096 |
|
@@ -9105,7 +9107,7 @@ const arrowRight = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
9105 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9106 |
d: "M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"
|
9107 |
}));
|
9108 |
-
/* harmony default export */
|
9109 |
|
9110 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-down.js
|
9111 |
|
@@ -9120,7 +9122,7 @@ const arrowDown = (0,external_wp_element_namespaceObject.createElement)(external
|
|
9120 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9121 |
d: "M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"
|
9122 |
}));
|
9123 |
-
/* harmony default export */
|
9124 |
|
9125 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/utils.js
|
9126 |
/**
|
@@ -9439,7 +9441,7 @@ function useSetting(path) {
|
|
9439 |
}
|
9440 |
|
9441 |
;// CONCATENATED MODULE: external ["wp","warning"]
|
9442 |
-
|
9443 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/groups.js
|
9444 |
/**
|
9445 |
* WordPress dependencies
|
@@ -9459,7 +9461,7 @@ const groups_groups = {
|
|
9459 |
dimensions: InspectorControlsDimensions,
|
9460 |
typography: InspectorControlsTypography
|
9461 |
};
|
9462 |
-
/* harmony default export */
|
9463 |
|
9464 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/fill.js
|
9465 |
|
@@ -9782,10 +9784,10 @@ InspectorAdvancedControls.slotName = 'InspectorAdvancedControls';
|
|
9782 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/inspector-controls/README.md
|
9783 |
*/
|
9784 |
|
9785 |
-
/* harmony default export */
|
9786 |
|
9787 |
;// CONCATENATED MODULE: external ["wp","isShallowEqual"]
|
9788 |
-
|
9789 |
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
|
9790 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/use-popover-scroll.js
|
9791 |
/**
|
@@ -9826,7 +9828,7 @@ function usePopoverScroll(scrollableRef) {
|
|
9826 |
}, [scrollableRef]);
|
9827 |
}
|
9828 |
|
9829 |
-
/* harmony default export */
|
9830 |
|
9831 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/index.js
|
9832 |
|
@@ -10761,7 +10763,7 @@ function BlockVerticalAlignmentUI(_ref) {
|
|
10761 |
*/
|
10762 |
|
10763 |
|
10764 |
-
/* harmony default export */
|
10765 |
|
10766 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-vertical-alignment-control/index.js
|
10767 |
|
@@ -10866,7 +10868,7 @@ function JustifyContentUI(_ref) {
|
|
10866 |
}, extraProps));
|
10867 |
}
|
10868 |
|
10869 |
-
/* harmony default export */
|
10870 |
|
10871 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/justify-content-control/index.js
|
10872 |
|
@@ -10933,7 +10935,7 @@ const verticalAlignmentMap = {
|
|
10933 |
bottom: 'flex-end'
|
10934 |
};
|
10935 |
const flexWrapOptions = ['wrap', 'nowrap'];
|
10936 |
-
/* harmony default export */
|
10937 |
name: 'flex',
|
10938 |
label: (0,external_wp_i18n_namespaceObject.__)('Flex'),
|
10939 |
inspectorControls: function FlexLayoutInspectorControls(_ref) {
|
@@ -11238,7 +11240,7 @@ function Icon(_ref) {
|
|
11238 |
});
|
11239 |
}
|
11240 |
|
11241 |
-
/* harmony default export */
|
11242 |
|
11243 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-center.js
|
11244 |
|
@@ -11253,7 +11255,7 @@ const positionCenter = (0,external_wp_element_namespaceObject.createElement)(ext
|
|
11253 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11254 |
d: "M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"
|
11255 |
}));
|
11256 |
-
/* harmony default export */
|
11257 |
|
11258 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-wide.js
|
11259 |
|
@@ -11268,7 +11270,7 @@ const stretchWide = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
11268 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11269 |
d: "M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"
|
11270 |
}));
|
11271 |
-
/* harmony default export */
|
11272 |
|
11273 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/flow.js
|
11274 |
|
@@ -11287,7 +11289,7 @@ const stretchWide = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
11287 |
|
11288 |
|
11289 |
|
11290 |
-
/* harmony default export */
|
11291 |
name: 'default',
|
11292 |
label: (0,external_wp_i18n_namespaceObject.__)('Flow'),
|
11293 |
inspectorControls: function DefaultLayoutInspectorControls(_ref) {
|
@@ -11668,7 +11670,7 @@ const alignNone = (0,external_wp_element_namespaceObject.createElement)(external
|
|
11668 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11669 |
d: "M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"
|
11670 |
}));
|
11671 |
-
/* harmony default export */
|
11672 |
|
11673 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-left.js
|
11674 |
|
@@ -11683,7 +11685,7 @@ const positionLeft = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
11683 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11684 |
d: "M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"
|
11685 |
}));
|
11686 |
-
/* harmony default export */
|
11687 |
|
11688 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-right.js
|
11689 |
|
@@ -11698,7 +11700,7 @@ const positionRight = (0,external_wp_element_namespaceObject.createElement)(exte
|
|
11698 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11699 |
d: "M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"
|
11700 |
}));
|
11701 |
-
/* harmony default export */
|
11702 |
|
11703 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-full-width.js
|
11704 |
|
@@ -11713,7 +11715,7 @@ const stretchFullWidth = (0,external_wp_element_namespaceObject.createElement)(e
|
|
11713 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11714 |
d: "M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"
|
11715 |
}));
|
11716 |
-
/* harmony default export */
|
11717 |
|
11718 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/constants.js
|
11719 |
/**
|
@@ -11854,7 +11856,7 @@ function BlockAlignmentUI(_ref) {
|
|
11854 |
return (0,external_wp_element_namespaceObject.createElement)(UIComponent, _extends({}, commonProps, extraProps));
|
11855 |
}
|
11856 |
|
11857 |
-
/* harmony default export */
|
11858 |
|
11859 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/index.js
|
11860 |
|
@@ -12544,7 +12546,7 @@ const background = {
|
|
12544 |
return generateRule(style, options, ['color', 'background'], 'backgroundColor');
|
12545 |
}
|
12546 |
};
|
12547 |
-
/* harmony default export */
|
12548 |
|
12549 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/color/gradient.js
|
12550 |
/**
|
@@ -12557,7 +12559,7 @@ const gradient = {
|
|
12557 |
return generateRule(style, options, ['color', 'gradient'], 'background');
|
12558 |
}
|
12559 |
};
|
12560 |
-
/* harmony default export */
|
12561 |
|
12562 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/color/text.js
|
12563 |
/**
|
@@ -12570,7 +12572,7 @@ const text_text = {
|
|
12570 |
return generateRule(style, options, ['color', 'text'], 'color');
|
12571 |
}
|
12572 |
};
|
12573 |
-
/* harmony default export */
|
12574 |
|
12575 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/color/index.js
|
12576 |
/**
|
@@ -12579,7 +12581,7 @@ const text_text = {
|
|
12579 |
|
12580 |
|
12581 |
|
12582 |
-
/* harmony default export */
|
12583 |
|
12584 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/spacing/padding.js
|
12585 |
/**
|
@@ -12592,7 +12594,7 @@ const padding = {
|
|
12592 |
return generateBoxRules(style, options, ['spacing', 'padding'], 'padding');
|
12593 |
}
|
12594 |
};
|
12595 |
-
/* harmony default export */
|
12596 |
|
12597 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/spacing/margin.js
|
12598 |
/**
|
@@ -12605,7 +12607,7 @@ const margin = {
|
|
12605 |
return generateBoxRules(style, options, ['spacing', 'margin'], 'margin');
|
12606 |
}
|
12607 |
};
|
12608 |
-
/* harmony default export */
|
12609 |
|
12610 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/spacing/index.js
|
12611 |
/**
|
@@ -12613,7 +12615,7 @@ const margin = {
|
|
12613 |
*/
|
12614 |
|
12615 |
|
12616 |
-
/* harmony default export */
|
12617 |
|
12618 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/typography/index.js
|
12619 |
/**
|
@@ -12662,7 +12664,7 @@ const textTransform = {
|
|
12662 |
return generateRule(style, options, ['typography', 'textTransform'], 'textTransform');
|
12663 |
}
|
12664 |
};
|
12665 |
-
/* harmony default export */
|
12666 |
|
12667 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/index.js
|
12668 |
/**
|
@@ -12730,7 +12732,7 @@ function getCSSRules(style, options) {
|
|
12730 |
}
|
12731 |
|
12732 |
;// CONCATENATED MODULE: external ["wp","dom"]
|
12733 |
-
|
12734 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-context/index.js
|
12735 |
|
12736 |
|
@@ -12773,7 +12775,7 @@ function BlockContextProvider(_ref) {
|
|
12773 |
children: children
|
12774 |
});
|
12775 |
}
|
12776 |
-
/* harmony default export */
|
12777 |
|
12778 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/edit.js
|
12779 |
|
@@ -12841,7 +12843,7 @@ const Edit = props => {
|
|
12841 |
className: className
|
12842 |
}));
|
12843 |
};
|
12844 |
-
/* harmony default export */
|
12845 |
|
12846 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/index.js
|
12847 |
|
@@ -12898,7 +12900,7 @@ const moreHorizontal = (0,external_wp_element_namespaceObject.createElement)(ext
|
|
12898 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
12899 |
d: "M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"
|
12900 |
}));
|
12901 |
-
/* harmony default export */
|
12902 |
|
12903 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/warning/index.js
|
12904 |
|
@@ -12958,7 +12960,7 @@ function Warning(_ref) {
|
|
12958 |
*/
|
12959 |
|
12960 |
|
12961 |
-
/* harmony default export */
|
12962 |
|
12963 |
// EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
|
12964 |
var character = __webpack_require__(1973);
|
@@ -13074,7 +13076,7 @@ function BlockCompare(_ref) {
|
|
13074 |
}));
|
13075 |
}
|
13076 |
|
13077 |
-
/* harmony default export */
|
13078 |
|
13079 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-invalid-warning.js
|
13080 |
|
@@ -13161,7 +13163,7 @@ const recoverBlock = _ref2 => {
|
|
13161 |
return (0,external_wp_blocks_namespaceObject.createBlock)(name, attributes, innerBlocks);
|
13162 |
};
|
13163 |
|
13164 |
-
/* harmony default export */
|
13165 |
let {
|
13166 |
clientId
|
13167 |
} = _ref3;
|
@@ -13210,7 +13212,7 @@ const recoverBlock = _ref2 => {
|
|
13210 |
const block_crash_warning_warning = (0,external_wp_element_namespaceObject.createElement)(warning, {
|
13211 |
className: "block-editor-block-list__block-crash-warning"
|
13212 |
}, (0,external_wp_i18n_namespaceObject.__)('This block has encountered an error and cannot be previewed.'));
|
13213 |
-
/* harmony default export */
|
13214 |
|
13215 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-crash-boundary.js
|
13216 |
/**
|
@@ -13242,7 +13244,7 @@ class BlockCrashBoundary extends external_wp_element_namespaceObject.Component {
|
|
13242 |
|
13243 |
}
|
13244 |
|
13245 |
-
/* harmony default export */
|
13246 |
|
13247 |
// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
|
13248 |
var lib = __webpack_require__(773);
|
@@ -13314,7 +13316,7 @@ function BlockHTML(_ref) {
|
|
13314 |
});
|
13315 |
}
|
13316 |
|
13317 |
-
/* harmony default export */
|
13318 |
|
13319 |
;// CONCATENATED MODULE: ./packages/block-editor/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.js
|
13320 |
let updateQueue = makeQueue();
|
@@ -17284,7 +17286,7 @@ const react_spring_core_esm_update = frameLoop.advance;
|
|
17284 |
|
17285 |
|
17286 |
;// CONCATENATED MODULE: external "ReactDOM"
|
17287 |
-
|
17288 |
;// CONCATENATED MODULE: ./packages/block-editor/node_modules/@react-spring/web/dist/react-spring-web.esm.js
|
17289 |
|
17290 |
|
@@ -17700,7 +17702,7 @@ function useMovingAnimation(_ref) {
|
|
17700 |
return ref;
|
17701 |
}
|
17702 |
|
17703 |
-
/* harmony default export */
|
17704 |
|
17705 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/dom.js
|
17706 |
const BLOCK_SELECTOR = '.block-editor-block-list__block';
|
@@ -18183,7 +18185,7 @@ function useFocusHandler(clientId) {
|
|
18183 |
}
|
18184 |
|
18185 |
;// CONCATENATED MODULE: external ["wp","keycodes"]
|
18186 |
-
|
18187 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js
|
18188 |
/**
|
18189 |
* WordPress dependencies
|
@@ -18813,7 +18815,7 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
|
|
18813 |
|
18814 |
};
|
18815 |
});
|
18816 |
-
/* harmony default export */
|
18817 |
// see issue for more info
|
18818 |
// https://github.com/WordPress/gutenberg/issues/17013
|
18819 |
(0,external_wp_compose_namespaceObject.ifCondition)(_ref5 => {
|
@@ -18824,7 +18826,7 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
|
|
18824 |
}), (0,external_wp_components_namespaceObject.withFilters)('editor.BlockListBlock'))(BlockListBlock));
|
18825 |
|
18826 |
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
|
18827 |
-
|
18828 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/plus.js
|
18829 |
|
18830 |
|
@@ -18838,7 +18840,7 @@ const plus = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
18838 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
18839 |
d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"
|
18840 |
}));
|
18841 |
-
/* harmony default export */
|
18842 |
|
18843 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tips.js
|
18844 |
|
@@ -18864,7 +18866,7 @@ function Tips() {
|
|
18864 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Tip, null, globalTips[randomIndex]);
|
18865 |
}
|
18866 |
|
18867 |
-
/* harmony default export */
|
18868 |
|
18869 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
|
18870 |
|
@@ -18879,7 +18881,7 @@ const blockDefault = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
18879 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
18880 |
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"
|
18881 |
}));
|
18882 |
-
/* harmony default export */
|
18883 |
|
18884 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
|
18885 |
|
@@ -18930,7 +18932,7 @@ function BlockIcon(_ref) {
|
|
18930 |
*/
|
18931 |
|
18932 |
|
18933 |
-
/* harmony default export */
|
18934 |
|
18935 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-card/index.js
|
18936 |
|
@@ -18979,7 +18981,7 @@ function BlockCard(_ref) {
|
|
18979 |
}, description)));
|
18980 |
}
|
18981 |
|
18982 |
-
/* harmony default export */
|
18983 |
|
18984 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/with-registry-provider.js
|
18985 |
|
@@ -19029,7 +19031,7 @@ const withRegistryProvider = (0,external_wp_compose_namespaceObject.createHigher
|
|
19029 |
}, props)));
|
19030 |
});
|
19031 |
}, 'withRegistryProvider');
|
19032 |
-
/* harmony default export */
|
19033 |
|
19034 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/use-block-sync.js
|
19035 |
/**
|
@@ -19048,6 +19050,8 @@ const withRegistryProvider = (0,external_wp_compose_namespaceObject.createHigher
|
|
19048 |
*/
|
19049 |
|
19050 |
|
|
|
|
|
19051 |
/**
|
19052 |
* A function to call when the block value has been updated in the block-editor
|
19053 |
* store.
|
@@ -19100,13 +19104,14 @@ const withRegistryProvider = (0,external_wp_compose_namespaceObject.createHigher
|
|
19100 |
* controlling sources do not become dirty.
|
19101 |
*/
|
19102 |
|
|
|
19103 |
function useBlockSync(_ref) {
|
19104 |
let {
|
19105 |
clientId = null,
|
19106 |
value: controlledBlocks,
|
19107 |
selection: controlledSelection,
|
19108 |
-
onChange =
|
19109 |
-
onInput =
|
19110 |
} = _ref;
|
19111 |
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
|
19112 |
const {
|
@@ -19315,7 +19320,7 @@ function BlockEditorProvider(props) {
|
|
19315 |
return (0,external_wp_element_namespaceObject.createElement)(BlockRefsProvider, null, children);
|
19316 |
}
|
19317 |
|
19318 |
-
/* harmony default export */
|
19319 |
|
19320 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/live.js
|
19321 |
|
@@ -19713,10 +19718,6 @@ function useTabNav() {
|
|
19713 |
}
|
19714 |
|
19715 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-arrow-nav.js
|
19716 |
-
/**
|
19717 |
-
* External dependencies
|
19718 |
-
*/
|
19719 |
-
|
19720 |
/**
|
19721 |
* WordPress dependencies
|
19722 |
*/
|
@@ -19724,7 +19725,6 @@ function useTabNav() {
|
|
19724 |
|
19725 |
|
19726 |
|
19727 |
-
|
19728 |
/**
|
19729 |
* Internal dependencies
|
19730 |
*/
|
@@ -19747,13 +19747,19 @@ function isNavigationCandidate(element, keyCode, hasModifier) {
|
|
19747 |
|
19748 |
if (isVertical && !hasModifier) {
|
19749 |
return true;
|
19750 |
-
}
|
19751 |
-
|
19752 |
|
19753 |
const {
|
19754 |
tagName
|
19755 |
-
} = element;
|
19756 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19757 |
}
|
19758 |
/**
|
19759 |
* Returns the optimal tab target from the given focused element in the desired
|
@@ -19776,7 +19782,7 @@ function getClosestTabbable(target, isReverse, containerElement, onlyVertical) {
|
|
19776 |
let focusableNodes = external_wp_dom_namespaceObject.focus.focusable.find(containerElement);
|
19777 |
|
19778 |
if (isReverse) {
|
19779 |
-
focusableNodes
|
19780 |
} // Consider as candidates those focusables after the current target. It's
|
19781 |
// assumed this can only be reached if the target is focusable (on its
|
19782 |
// keydown event), so no need to verify it exists in the set.
|
@@ -19811,7 +19817,7 @@ function getClosestTabbable(target, isReverse, containerElement, onlyVertical) {
|
|
19811 |
return true;
|
19812 |
}
|
19813 |
|
19814 |
-
return
|
19815 |
}
|
19816 |
function useArrowNav() {
|
19817 |
const {
|
@@ -19948,7 +19954,7 @@ function useArrowNav() {
|
|
19948 |
}
|
19949 |
|
19950 |
;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
|
19951 |
-
|
19952 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-select-all.js
|
19953 |
/**
|
19954 |
* External dependencies
|
@@ -20576,7 +20582,7 @@ function WritingFlow(_ref, forwardedRef) {
|
|
20576 |
*/
|
20577 |
|
20578 |
|
20579 |
-
/* harmony default export */
|
20580 |
|
20581 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/iframe/index.js
|
20582 |
|
@@ -20853,7 +20859,7 @@ function Iframe(_ref3, ref) {
|
|
20853 |
}, children))), iframeDocument.documentElement)), tabIndex >= 0 && after);
|
20854 |
}
|
20855 |
|
20856 |
-
/* harmony default export */
|
20857 |
|
20858 |
;// CONCATENATED MODULE: ./packages/block-editor/node_modules/colord/index.mjs
|
20859 |
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()})};
|
@@ -21571,7 +21577,7 @@ var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_brows
|
|
21571 |
/**
|
21572 |
* Expose `Compiler`.
|
21573 |
*/
|
21574 |
-
/* harmony default export */
|
21575 |
/**
|
21576 |
* Initialize a compiler.
|
21577 |
*/
|
@@ -21632,7 +21638,7 @@ Compiler.prototype.mapVisit = function (nodes, delim) {
|
|
21632 |
* Expose compiler.
|
21633 |
*/
|
21634 |
|
21635 |
-
/* harmony default export */
|
21636 |
/**
|
21637 |
* Initialize a new `Compiler`.
|
21638 |
*/
|
@@ -21801,7 +21807,7 @@ compress_Compiler.prototype.declaration = function (node) {
|
|
21801 |
* Expose compiler.
|
21802 |
*/
|
21803 |
|
21804 |
-
/* harmony default export */
|
21805 |
/**
|
21806 |
* Initialize a new `Compiler`.
|
21807 |
*/
|
@@ -22040,7 +22046,7 @@ function traverseCSS(css, callback) {
|
|
22040 |
}
|
22041 |
}
|
22042 |
|
22043 |
-
/* harmony default export */
|
22044 |
|
22045 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/url-rewrite.js
|
22046 |
/**
|
@@ -22176,7 +22182,7 @@ const rewrite = rootURL => node => {
|
|
22176 |
return node;
|
22177 |
};
|
22178 |
|
22179 |
-
/* harmony default export */
|
22180 |
|
22181 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/wrap.js
|
22182 |
/**
|
@@ -22228,7 +22234,7 @@ const wrap = function (namespace) {
|
|
22228 |
};
|
22229 |
};
|
22230 |
|
22231 |
-
/* harmony default export */
|
22232 |
|
22233 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/index.js
|
22234 |
/**
|
@@ -22280,7 +22286,7 @@ const transform_styles_transformStyles = function (styles) {
|
|
22280 |
});
|
22281 |
};
|
22282 |
|
22283 |
-
/* harmony default export */
|
22284 |
|
22285 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/editor-styles/index.js
|
22286 |
|
@@ -22458,7 +22464,7 @@ function AutoBlockPreview(_ref) {
|
|
22458 |
}))));
|
22459 |
}
|
22460 |
|
22461 |
-
/* harmony default export */
|
22462 |
|
22463 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/index.js
|
22464 |
|
@@ -22529,7 +22535,7 @@ function BlockPreview(_ref) {
|
|
22529 |
* @return {WPComponent} The component to be rendered.
|
22530 |
*/
|
22531 |
|
22532 |
-
/* harmony default export */
|
22533 |
/**
|
22534 |
* This hook is used to lightly mark an element as a block preview wrapper
|
22535 |
* element. Call this hook and pass the returned props to the element to mark as
|
@@ -22628,7 +22634,7 @@ function InserterPreviewPanel(_ref) {
|
|
22628 |
}));
|
22629 |
}
|
22630 |
|
22631 |
-
/* harmony default export */
|
22632 |
|
22633 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/context.js
|
22634 |
/**
|
@@ -22636,7 +22642,7 @@ function InserterPreviewPanel(_ref) {
|
|
22636 |
*/
|
22637 |
|
22638 |
const InserterListboxContext = (0,external_wp_element_namespaceObject.createContext)();
|
22639 |
-
/* harmony default export */
|
22640 |
|
22641 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/item.js
|
22642 |
|
@@ -22686,7 +22692,7 @@ function InserterListboxItem(_ref, ref) {
|
|
22686 |
});
|
22687 |
}
|
22688 |
|
22689 |
-
/* harmony default export */
|
22690 |
|
22691 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/drag-handle.js
|
22692 |
|
@@ -22703,7 +22709,7 @@ const dragHandle = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
22703 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
22704 |
d: "M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"
|
22705 |
}));
|
22706 |
-
/* harmony default export */
|
22707 |
|
22708 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/draggable-chip.js
|
22709 |
|
@@ -22784,7 +22790,7 @@ const InserterDraggableBlocks = _ref => {
|
|
22784 |
});
|
22785 |
};
|
22786 |
|
22787 |
-
/* harmony default export */
|
22788 |
|
22789 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-list-item/index.js
|
22790 |
|
@@ -22919,7 +22925,7 @@ function InserterListItem(_ref) {
|
|
22919 |
});
|
22920 |
}
|
22921 |
|
22922 |
-
/* harmony default export */
|
22923 |
|
22924 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/group.js
|
22925 |
|
@@ -22956,7 +22962,7 @@ function InserterListboxGroup(props, ref) {
|
|
22956 |
}, props));
|
22957 |
}
|
22958 |
|
22959 |
-
/* harmony default export */
|
22960 |
|
22961 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/row.js
|
22962 |
|
@@ -22982,7 +22988,7 @@ function InserterListboxRow(props, ref) {
|
|
22982 |
}, props));
|
22983 |
}
|
22984 |
|
22985 |
-
/* harmony default export */
|
22986 |
|
22987 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-types-list/index.js
|
22988 |
|
@@ -23033,7 +23039,7 @@ function BlockTypesList(_ref) {
|
|
23033 |
})))), children);
|
23034 |
}
|
23035 |
|
23036 |
-
/* harmony default export */
|
23037 |
|
23038 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/panel.js
|
23039 |
|
@@ -23060,7 +23066,7 @@ function InserterPanel(_ref) {
|
|
23060 |
}, children));
|
23061 |
}
|
23062 |
|
23063 |
-
/* harmony default export */
|
23064 |
|
23065 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
|
23066 |
/**
|
@@ -23113,7 +23119,7 @@ const useBlockTypesState = (rootClientId, onInsert) => {
|
|
23113 |
return [items, categories, collections, onSelectItem];
|
23114 |
};
|
23115 |
|
23116 |
-
/* harmony default export */
|
23117 |
|
23118 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/index.js
|
23119 |
|
@@ -23144,7 +23150,7 @@ function InserterListbox(_ref) {
|
|
23144 |
}, children);
|
23145 |
}
|
23146 |
|
23147 |
-
/* harmony default export */
|
23148 |
|
23149 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-types-tab.js
|
23150 |
|
@@ -23278,7 +23284,7 @@ function BlockTypesTab(_ref) {
|
|
23278 |
}));
|
23279 |
})));
|
23280 |
}
|
23281 |
-
/* harmony default export */
|
23282 |
|
23283 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/pattern-panel.js
|
23284 |
|
@@ -23353,10 +23359,10 @@ function PatternInserterPanel(_ref) {
|
|
23353 |
}, (0,external_wp_i18n_namespaceObject._x)('Explore', 'Label for showing all block patterns'))));
|
23354 |
}
|
23355 |
|
23356 |
-
/* harmony default export */
|
23357 |
|
23358 |
;// CONCATENATED MODULE: external ["wp","notices"]
|
23359 |
-
|
23360 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.js
|
23361 |
/**
|
23362 |
* External dependencies
|
@@ -23413,7 +23419,7 @@ const usePatternsState = (onInsert, rootClientId) => {
|
|
23413 |
return [patterns, patternCategories, onClickPattern];
|
23414 |
};
|
23415 |
|
23416 |
-
/* harmony default export */
|
23417 |
|
23418 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-patterns-list/index.js
|
23419 |
|
@@ -23514,7 +23520,7 @@ function BlockPatternList(_ref3) {
|
|
23514 |
}));
|
23515 |
}
|
23516 |
|
23517 |
-
/* harmony default export */
|
23518 |
|
23519 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/sidebar.js
|
23520 |
|
@@ -23588,7 +23594,7 @@ function PatternExplorerSidebar(_ref4) {
|
|
23588 |
}));
|
23589 |
}
|
23590 |
|
23591 |
-
/* harmony default export */
|
23592 |
|
23593 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/no-results.js
|
23594 |
|
@@ -23608,7 +23614,7 @@ function InserterNoResults() {
|
|
23608 |
}), (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No results found.')));
|
23609 |
}
|
23610 |
|
23611 |
-
/* harmony default export */
|
23612 |
|
23613 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.js
|
23614 |
/**
|
@@ -23730,7 +23736,7 @@ function useInsertionPoint(_ref) {
|
|
23730 |
return [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint];
|
23731 |
}
|
23732 |
|
23733 |
-
/* harmony default export */
|
23734 |
|
23735 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-items.js
|
23736 |
/**
|
@@ -23787,7 +23793,7 @@ const getNormalizedSearchTerms = function () {
|
|
23787 |
};
|
23788 |
|
23789 |
const removeMatchingTerms = (unmatchedTerms, unprocessedTerms) => {
|
23790 |
-
return
|
23791 |
};
|
23792 |
|
23793 |
const searchBlockItems = (items, categories, collections, searchInput) => {
|
@@ -24001,7 +24007,7 @@ function PatternList(_ref2) {
|
|
24001 |
})));
|
24002 |
}
|
24003 |
|
24004 |
-
/* harmony default export */
|
24005 |
|
24006 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/explorer.js
|
24007 |
|
@@ -24054,7 +24060,7 @@ function PatternsExplorerModal(_ref2) {
|
|
24054 |
}, (0,external_wp_element_namespaceObject.createElement)(PatternsExplorer, restProps));
|
24055 |
}
|
24056 |
|
24057 |
-
/* harmony default export */
|
24058 |
|
24059 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-tab.js
|
24060 |
|
@@ -24191,10 +24197,10 @@ function BlockPatternsTabs(_ref3) {
|
|
24191 |
}));
|
24192 |
}
|
24193 |
|
24194 |
-
/* harmony default export */
|
24195 |
|
24196 |
;// CONCATENATED MODULE: external ["wp","url"]
|
24197 |
-
|
24198 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/reusable-blocks-tab.js
|
24199 |
|
24200 |
|
@@ -24274,7 +24280,7 @@ function ReusableBlocksTab(_ref3) {
|
|
24274 |
})
|
24275 |
}, (0,external_wp_i18n_namespaceObject.__)('Manage Reusable blocks'))));
|
24276 |
}
|
24277 |
-
/* harmony default export */
|
24278 |
|
24279 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-menu-extension/index.js
|
24280 |
/**
|
@@ -24286,7 +24292,7 @@ const {
|
|
24286 |
Slot
|
24287 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableInserterMenuExtension');
|
24288 |
__unstableInserterMenuExtension.Slot = Slot;
|
24289 |
-
/* harmony default export */
|
24290 |
|
24291 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-results.js
|
24292 |
|
@@ -24436,7 +24442,7 @@ function InserterSearchResults(_ref) {
|
|
24436 |
}));
|
24437 |
}
|
24438 |
|
24439 |
-
/* harmony default export */
|
24440 |
|
24441 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tabs.js
|
24442 |
|
@@ -24493,7 +24499,7 @@ function InserterTabs(_ref) {
|
|
24493 |
}, children);
|
24494 |
}
|
24495 |
|
24496 |
-
/* harmony default export */
|
24497 |
|
24498 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/menu.js
|
24499 |
|
@@ -24645,7 +24651,7 @@ function InserterMenu(_ref, ref) {
|
|
24645 |
}));
|
24646 |
}
|
24647 |
|
24648 |
-
/* harmony default export */
|
24649 |
|
24650 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/quick-inserter.js
|
24651 |
|
@@ -24978,7 +24984,7 @@ class Inserter extends external_wp_element_namespaceObject.Component {
|
|
24978 |
|
24979 |
}
|
24980 |
|
24981 |
-
/* harmony default export */
|
24982 |
let {
|
24983 |
clientId,
|
24984 |
rootClientId
|
@@ -25223,7 +25229,7 @@ function DefaultBlockAppender(_ref) {
|
|
25223 |
__experimentalIsQuick: true
|
25224 |
}));
|
25225 |
}
|
25226 |
-
/* harmony default export */
|
25227 |
const {
|
25228 |
getBlockCount,
|
25229 |
getSettings,
|
@@ -25351,7 +25357,7 @@ const ButtonBlockerAppender = (0,external_wp_element_namespaceObject.forwardRef)
|
|
25351 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/button-block-appender/README.md
|
25352 |
*/
|
25353 |
|
25354 |
-
/* harmony default export */
|
25355 |
|
25356 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list-appender/index.js
|
25357 |
|
@@ -25444,7 +25450,7 @@ function BlockListAppender(_ref) {
|
|
25444 |
}, appender);
|
25445 |
}
|
25446 |
|
25447 |
-
/* harmony default export */
|
25448 |
let {
|
25449 |
rootClientId
|
25450 |
} = _ref2;
|
@@ -25635,7 +25641,7 @@ function BlockPopoverInbetween(_ref) {
|
|
25635 |
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
|
25636 |
}
|
25637 |
|
25638 |
-
/* harmony default export */
|
25639 |
|
25640 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/insertion-point.js
|
25641 |
|
@@ -26447,7 +26453,7 @@ const BlockDraggable = _ref => {
|
|
26447 |
});
|
26448 |
};
|
26449 |
|
26450 |
-
/* harmony default export */
|
26451 |
|
26452 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-selection-button.js
|
26453 |
|
@@ -26699,7 +26705,7 @@ function BlockSelectionButton(_ref) {
|
|
26699 |
})))));
|
26700 |
}
|
26701 |
|
26702 |
-
/* harmony default export */
|
26703 |
|
26704 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/navigable-toolbar/index.js
|
26705 |
|
@@ -26861,7 +26867,7 @@ function NavigableToolbar(_ref) {
|
|
26861 |
}, props), children);
|
26862 |
}
|
26863 |
|
26864 |
-
/* harmony default export */
|
26865 |
|
26866 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right.js
|
26867 |
|
@@ -26876,7 +26882,7 @@ const chevronRight = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
26876 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
26877 |
d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
|
26878 |
}));
|
26879 |
-
/* harmony default export */
|
26880 |
|
26881 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-left.js
|
26882 |
|
@@ -26891,7 +26897,7 @@ const chevronLeft = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
26891 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
26892 |
d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
|
26893 |
}));
|
26894 |
-
/* harmony default export */
|
26895 |
|
26896 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-up.js
|
26897 |
|
@@ -26906,7 +26912,7 @@ const chevronUp = (0,external_wp_element_namespaceObject.createElement)(external
|
|
26906 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
26907 |
d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
|
26908 |
}));
|
26909 |
-
/* harmony default export */
|
26910 |
|
26911 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-down.js
|
26912 |
|
@@ -26921,7 +26927,7 @@ const chevronDown = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
26921 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
26922 |
d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
|
26923 |
}));
|
26924 |
-
/* harmony default export */
|
26925 |
|
26926 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/mover-description.js
|
26927 |
/**
|
@@ -27338,22 +27344,20 @@ function BlockMover(_ref) {
|
|
27338 |
*/
|
27339 |
|
27340 |
|
27341 |
-
/* harmony default export */
|
27342 |
|
27343 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/utils.js
|
27344 |
-
/**
|
27345 |
-
* External dependencies
|
27346 |
-
*/
|
27347 |
-
|
27348 |
/**
|
27349 |
* WordPress dependencies
|
27350 |
*/
|
27351 |
|
27352 |
-
|
27353 |
const {
|
27354 |
clearTimeout: utils_clearTimeout,
|
27355 |
setTimeout: utils_setTimeout
|
27356 |
} = window;
|
|
|
|
|
|
|
27357 |
const DEBOUNCE_TIMEOUT = 200;
|
27358 |
/**
|
27359 |
* Hook that creates a showMover state, as well as debounced show/hide callbacks.
|
@@ -27370,7 +27374,7 @@ function useDebouncedShowMovers(_ref) {
|
|
27370 |
ref,
|
27371 |
isFocused,
|
27372 |
debounceTimeout = DEBOUNCE_TIMEOUT,
|
27373 |
-
onChange =
|
27374 |
} = _ref;
|
27375 |
const [showMovers, setShowMovers] = (0,external_wp_element_namespaceObject.useState)(false);
|
27376 |
const timeoutRef = (0,external_wp_element_namespaceObject.useRef)();
|
@@ -27454,7 +27458,7 @@ function useShowMoversGestures(_ref2) {
|
|
27454 |
let {
|
27455 |
ref,
|
27456 |
debounceTimeout = DEBOUNCE_TIMEOUT,
|
27457 |
-
onChange =
|
27458 |
} = _ref2;
|
27459 |
const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
|
27460 |
const {
|
@@ -27630,7 +27634,7 @@ const copy = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
27630 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
27631 |
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"
|
27632 |
}));
|
27633 |
-
/* harmony default export */
|
27634 |
|
27635 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/preview-block-popover.js
|
27636 |
|
@@ -27721,7 +27725,7 @@ const BlockTransformationsMenu = _ref => {
|
|
27721 |
}));
|
27722 |
};
|
27723 |
|
27724 |
-
/* harmony default export */
|
27725 |
|
27726 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/check.js
|
27727 |
|
@@ -27736,10 +27740,10 @@ const check = (0,external_wp_element_namespaceObject.createElement)(external_wp_
|
|
27736 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
27737 |
d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
|
27738 |
}));
|
27739 |
-
/* harmony default export */
|
27740 |
|
27741 |
;// CONCATENATED MODULE: external ["wp","tokenList"]
|
27742 |
-
|
27743 |
var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_namespaceObject);
|
27744 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/utils.js
|
27745 |
/**
|
@@ -27944,25 +27948,23 @@ function useStylesForBlocks(_ref) {
|
|
27944 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/menu-items.js
|
27945 |
|
27946 |
|
27947 |
-
/**
|
27948 |
-
* External dependencies
|
27949 |
-
*/
|
27950 |
-
|
27951 |
/**
|
27952 |
* WordPress dependencies
|
27953 |
*/
|
27954 |
|
27955 |
|
27956 |
-
|
27957 |
/**
|
27958 |
* Internal dependencies
|
27959 |
*/
|
27960 |
|
27961 |
|
|
|
|
|
|
|
27962 |
function BlockStylesMenuItems(_ref) {
|
27963 |
let {
|
27964 |
clientId,
|
27965 |
-
onSwitch =
|
27966 |
} = _ref;
|
27967 |
const {
|
27968 |
onSelect,
|
@@ -28178,7 +28180,7 @@ const useTransformedPatterns = (patterns, selectedBlocks) => {
|
|
28178 |
}, []), [patterns, selectedBlocks]);
|
28179 |
};
|
28180 |
|
28181 |
-
/* harmony default export */
|
28182 |
|
28183 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/pattern-transformations-menu.js
|
28184 |
|
@@ -28291,7 +28293,7 @@ function pattern_transformations_menu_BlockPattern(_ref4) {
|
|
28291 |
}, pattern.description));
|
28292 |
}
|
28293 |
|
28294 |
-
/* harmony default export */
|
28295 |
|
28296 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/index.js
|
28297 |
|
@@ -28489,7 +28491,7 @@ const BlockSwitcher = _ref4 => {
|
|
28489 |
blocks: blocks
|
28490 |
});
|
28491 |
};
|
28492 |
-
/* harmony default export */
|
28493 |
|
28494 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/block-toolbar-last-item.js
|
28495 |
/**
|
@@ -28501,7 +28503,7 @@ const {
|
|
28501 |
Slot: block_toolbar_last_item_Slot
|
28502 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableBlockToolbarLastItem');
|
28503 |
__unstableBlockToolbarLastItem.Slot = block_toolbar_last_item_Slot;
|
28504 |
-
/* harmony default export */
|
28505 |
|
28506 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/more-vertical.js
|
28507 |
|
@@ -28516,10 +28518,10 @@ const moreVertical = (0,external_wp_element_namespaceObject.createElement)(exter
|
|
28516 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
28517 |
d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
|
28518 |
}));
|
28519 |
-
/* harmony default export */
|
28520 |
|
28521 |
;// CONCATENATED MODULE: external ["wp","blob"]
|
28522 |
-
|
28523 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/pasting.js
|
28524 |
/**
|
28525 |
* WordPress dependencies
|
@@ -28732,7 +28734,7 @@ function useClipboardHandler() {
|
|
28732 |
}
|
28733 |
|
28734 |
const serialized = (0,external_wp_blocks_namespaceObject.serialize)(blocks);
|
28735 |
-
event.clipboardData.setData('text/plain', serialized);
|
28736 |
event.clipboardData.setData('text/html', serialized);
|
28737 |
}
|
28738 |
}
|
@@ -28788,12 +28790,28 @@ function CopyHandler(_ref) {
|
|
28788 |
ref: useClipboardHandler()
|
28789 |
}, children);
|
28790 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28791 |
/**
|
28792 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/copy-handler/README.md
|
28793 |
*/
|
28794 |
|
28795 |
|
28796 |
-
/* harmony default export */
|
28797 |
|
28798 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-actions/index.js
|
28799 |
/**
|
@@ -28930,10 +28948,6 @@ function BlockActions(_ref) {
|
|
28930 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-mode-toggle.js
|
28931 |
|
28932 |
|
28933 |
-
/**
|
28934 |
-
* External dependencies
|
28935 |
-
*/
|
28936 |
-
|
28937 |
/**
|
28938 |
* WordPress dependencies
|
28939 |
*/
|
@@ -28942,12 +28956,14 @@ function BlockActions(_ref) {
|
|
28942 |
|
28943 |
|
28944 |
|
28945 |
-
|
28946 |
/**
|
28947 |
* Internal dependencies
|
28948 |
*/
|
28949 |
|
28950 |
|
|
|
|
|
|
|
28951 |
function BlockModeToggle(_ref) {
|
28952 |
let {
|
28953 |
blockType,
|
@@ -28966,7 +28982,7 @@ function BlockModeToggle(_ref) {
|
|
28966 |
onClick: onToggleMode
|
28967 |
}, !small && label);
|
28968 |
}
|
28969 |
-
/* harmony default export */
|
28970 |
let {
|
28971 |
clientId
|
28972 |
} = _ref2;
|
@@ -28984,7 +29000,7 @@ function BlockModeToggle(_ref) {
|
|
28984 |
};
|
28985 |
}), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, _ref3) => {
|
28986 |
let {
|
28987 |
-
onToggle =
|
28988 |
clientId
|
28989 |
} = _ref3;
|
28990 |
return {
|
@@ -29035,7 +29051,7 @@ function BlockConvertButton(_ref) {
|
|
29035 |
|
29036 |
|
29037 |
|
29038 |
-
/* harmony default export */
|
29039 |
let {
|
29040 |
clientId
|
29041 |
} = _ref;
|
@@ -29065,7 +29081,7 @@ const {
|
|
29065 |
Slot: block_settings_menu_first_item_Slot
|
29066 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableBlockSettingsMenuFirstItem');
|
29067 |
__unstableBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot;
|
29068 |
-
/* harmony default export */
|
29069 |
|
29070 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/index.js
|
29071 |
|
@@ -29234,7 +29250,7 @@ const unlock = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
29234 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29235 |
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"
|
29236 |
}));
|
29237 |
-
/* harmony default export */
|
29238 |
|
29239 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/lock.js
|
29240 |
|
@@ -29249,7 +29265,7 @@ const lock = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
29249 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29250 |
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"
|
29251 |
}));
|
29252 |
-
/* harmony default export */
|
29253 |
|
29254 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-lock/use-block-lock.js
|
29255 |
/**
|
@@ -29563,7 +29579,7 @@ function BlockSettingsMenuControls(_ref2) {
|
|
29563 |
}
|
29564 |
|
29565 |
BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
|
29566 |
-
/* harmony default export */
|
29567 |
|
29568 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js
|
29569 |
|
@@ -29598,6 +29614,9 @@ BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
|
|
29598 |
|
29599 |
|
29600 |
|
|
|
|
|
|
|
29601 |
const block_settings_dropdown_POPOVER_PROPS = {
|
29602 |
className: 'block-editor-block-settings-menu__popover',
|
29603 |
position: 'bottom right',
|
@@ -29610,9 +29629,12 @@ function CopyMenuItem(_ref) {
|
|
29610 |
onCopy
|
29611 |
} = _ref;
|
29612 |
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(() => (0,external_wp_blocks_namespaceObject.serialize)(blocks), onCopy);
|
|
|
|
|
|
|
29613 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
29614 |
ref: ref
|
29615 |
-
},
|
29616 |
}
|
29617 |
|
29618 |
function BlockSettingsDropdown(_ref2) {
|
@@ -29677,7 +29699,7 @@ function BlockSettingsDropdown(_ref2) {
|
|
29677 |
if (ids && ids[0]) {
|
29678 |
__experimentalSelectBlock(ids[0]);
|
29679 |
}
|
29680 |
-
} :
|
29681 |
const blockTitle = useBlockDisplayTitle(firstBlockClientId, 25);
|
29682 |
const updateSelectionAfterRemove = (0,external_wp_element_namespaceObject.useCallback)(__experimentalSelectBlock ? () => {
|
29683 |
const blockToSelect = previousBlockClientId || nextBlockClientId;
|
@@ -29689,7 +29711,7 @@ function BlockSettingsDropdown(_ref2) {
|
|
29689 |
!selectedBlockClientIds.includes(blockToSelect)) {
|
29690 |
__experimentalSelectBlock(blockToSelect);
|
29691 |
}
|
29692 |
-
} :
|
29693 |
const label = (0,external_wp_i18n_namespaceObject.sprintf)(
|
29694 |
/* translators: %s: block name */
|
29695 |
(0,external_wp_i18n_namespaceObject.__)('Remove %s'), blockTitle);
|
@@ -29785,7 +29807,7 @@ function BlockSettingsDropdown(_ref2) {
|
|
29785 |
});
|
29786 |
});
|
29787 |
}
|
29788 |
-
/* harmony default export */
|
29789 |
|
29790 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/index.js
|
29791 |
|
@@ -29810,7 +29832,7 @@ function BlockSettingsMenu(_ref) {
|
|
29810 |
toggleProps: toggleProps
|
29811 |
}, props))));
|
29812 |
}
|
29813 |
-
/* harmony default export */
|
29814 |
|
29815 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-lock/toolbar.js
|
29816 |
|
@@ -29877,7 +29899,7 @@ const group_group = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
29877 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29878 |
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"
|
29879 |
}));
|
29880 |
-
/* harmony default export */
|
29881 |
|
29882 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/row.js
|
29883 |
|
@@ -29892,7 +29914,7 @@ const row = (0,external_wp_element_namespaceObject.createElement)(external_wp_pr
|
|
29892 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29893 |
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"
|
29894 |
}));
|
29895 |
-
/* harmony default export */
|
29896 |
|
29897 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stack.js
|
29898 |
|
@@ -29907,7 +29929,7 @@ const stack = (0,external_wp_element_namespaceObject.createElement)(external_wp_
|
|
29907 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29908 |
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"
|
29909 |
}));
|
29910 |
-
/* harmony default export */
|
29911 |
|
29912 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/toolbar.js
|
29913 |
|
@@ -30015,7 +30037,7 @@ function BlockGroupToolbar() {
|
|
30015 |
}));
|
30016 |
}
|
30017 |
|
30018 |
-
/* harmony default export */
|
30019 |
|
30020 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/block-name-context.js
|
30021 |
/**
|
@@ -30025,7 +30047,7 @@ function BlockGroupToolbar() {
|
|
30025 |
|
30026 |
const __unstableBlockNameContext = (0,external_wp_element_namespaceObject.createContext)('');
|
30027 |
|
30028 |
-
/* harmony default export */
|
30029 |
|
30030 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/index.js
|
30031 |
|
@@ -30176,7 +30198,7 @@ const BlockToolbar = _ref => {
|
|
30176 |
*/
|
30177 |
|
30178 |
|
30179 |
-
/* harmony default export */
|
30180 |
|
30181 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
|
30182 |
|
@@ -30255,7 +30277,7 @@ function BlockContextualToolbar(_ref) {
|
|
30255 |
}));
|
30256 |
}
|
30257 |
|
30258 |
-
/* harmony default export */
|
30259 |
|
30260 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/selected-block-popover.js
|
30261 |
|
@@ -30515,7 +30537,7 @@ const withClientId = (0,external_wp_compose_namespaceObject.createHigherOrderCom
|
|
30515 |
clientId: clientId
|
30516 |
}));
|
30517 |
}, 'withClientId');
|
30518 |
-
/* harmony default export */
|
30519 |
|
30520 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/button-block-appender.js
|
30521 |
|
@@ -30548,7 +30570,7 @@ const button_block_appender_ButtonBlockAppender = _ref => {
|
|
30548 |
onAddBlock: onAddBlock
|
30549 |
});
|
30550 |
};
|
30551 |
-
/* harmony default export */
|
30552 |
|
30553 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/default-block-appender.js
|
30554 |
|
@@ -30578,7 +30600,7 @@ const default_block_appender_DefaultBlockAppender = _ref => {
|
|
30578 |
rootClientId: clientId
|
30579 |
});
|
30580 |
};
|
30581 |
-
/* harmony default export */
|
30582 |
let {
|
30583 |
clientId
|
30584 |
} = _ref2;
|
@@ -31376,7 +31398,7 @@ ForwardedInnerBlocks.Content = () => useInnerBlocksProps.save().children;
|
|
31376 |
*/
|
31377 |
|
31378 |
|
31379 |
-
/* harmony default export */
|
31380 |
|
31381 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/index.js
|
31382 |
|
@@ -31751,7 +31773,7 @@ const link_link = (0,external_wp_element_namespaceObject.createElement)(external
|
|
31751 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
31752 |
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"
|
31753 |
}));
|
31754 |
-
/* harmony default export */
|
31755 |
|
31756 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/link-off.js
|
31757 |
|
@@ -31766,7 +31788,7 @@ const linkOff = (0,external_wp_element_namespaceObject.createElement)(external_w
|
|
31766 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
31767 |
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"
|
31768 |
}));
|
31769 |
-
/* harmony default export */
|
31770 |
|
31771 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/linked-button.js
|
31772 |
|
@@ -32937,7 +32959,7 @@ function ColorGradientControl(props) {
|
|
32937 |
return (0,external_wp_element_namespaceObject.createElement)(ColorGradientControlSelect, props);
|
32938 |
}
|
32939 |
|
32940 |
-
/* harmony default export */
|
32941 |
|
32942 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/dropdown.js
|
32943 |
|
@@ -33212,7 +33234,7 @@ function ContrastChecker(_ref) {
|
|
33212 |
*/
|
33213 |
|
33214 |
|
33215 |
-
/* harmony default export */
|
33216 |
|
33217 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/color-panel.js
|
33218 |
|
@@ -34124,7 +34146,7 @@ const LineHeightControl = _ref => {
|
|
34124 |
*/
|
34125 |
|
34126 |
|
34127 |
-
/* harmony default export */
|
34128 |
|
34129 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/line-height.js
|
34130 |
|
@@ -34735,7 +34757,7 @@ function FontSizePicker(props) {
|
|
34735 |
*/
|
34736 |
|
34737 |
|
34738 |
-
/* harmony default export */
|
34739 |
|
34740 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/font-size.js
|
34741 |
|
@@ -35006,7 +35028,7 @@ const formatUnderline = (0,external_wp_element_namespaceObject.createElement)(ex
|
|
35006 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
35007 |
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"
|
35008 |
}));
|
35009 |
-
/* harmony default export */
|
35010 |
|
35011 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-strikethrough.js
|
35012 |
|
@@ -35021,7 +35043,7 @@ const formatStrikethrough = (0,external_wp_element_namespaceObject.createElement
|
|
35021 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
35022 |
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"
|
35023 |
}));
|
35024 |
-
/* harmony default export */
|
35025 |
|
35026 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-decoration-control/index.js
|
35027 |
|
@@ -35193,7 +35215,7 @@ const formatUppercase = (0,external_wp_element_namespaceObject.createElement)(ex
|
|
35193 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
35194 |
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"
|
35195 |
}));
|
35196 |
-
/* harmony default export */
|
35197 |
|
35198 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-lowercase.js
|
35199 |
|
@@ -35208,7 +35230,7 @@ const formatLowercase = (0,external_wp_element_namespaceObject.createElement)(ex
|
|
35208 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
35209 |
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"
|
35210 |
}));
|
35211 |
-
/* harmony default export */
|
35212 |
|
35213 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-capitalize.js
|
35214 |
|
@@ -35223,7 +35245,7 @@ const formatCapitalize = (0,external_wp_element_namespaceObject.createElement)(e
|
|
35223 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
35224 |
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"
|
35225 |
}));
|
35226 |
-
/* harmony default export */
|
35227 |
|
35228 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-transform-control/index.js
|
35229 |
|
@@ -36032,7 +36054,7 @@ const filter = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
36032 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
36033 |
d: "M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"
|
36034 |
}));
|
36035 |
-
/* harmony default export */
|
36036 |
|
36037 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/duotone-control/index.js
|
36038 |
|
@@ -36102,7 +36124,7 @@ function DuotoneControl(_ref) {
|
|
36102 |
});
|
36103 |
}
|
36104 |
|
36105 |
-
/* harmony default export */
|
36106 |
|
36107 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/duotone.js
|
36108 |
|
@@ -36478,6 +36500,42 @@ function PresetDuotoneFilter(_ref6) {
|
|
36478 |
|
36479 |
|
36480 |
const layoutBlockSupportKey = '__experimentalLayout';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36481 |
|
36482 |
function LayoutPanel(_ref) {
|
36483 |
let {
|
@@ -36646,9 +36704,10 @@ const withLayoutStyles = (0,external_wp_compose_namespaceObject.createHigherOrde
|
|
36646 |
default: defaultBlockLayout
|
36647 |
} = (0,external_wp_blocks_namespaceObject.getBlockSupport)(name, layoutBlockSupportKey) || {};
|
36648 |
const usedLayout = layout !== null && layout !== void 0 && layout.inherit ? defaultThemeLayout : layout || defaultBlockLayout || {};
|
|
|
36649 |
const className = classnames_default()(props === null || props === void 0 ? void 0 : props.className, {
|
36650 |
[`wp-container-${id}`]: shouldRenderLayoutStyles
|
36651 |
-
});
|
36652 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, shouldRenderLayoutStyles && element && (0,external_wp_element_namespaceObject.createPortal)((0,external_wp_element_namespaceObject.createElement)(LayoutStyle, {
|
36653 |
blockName: name,
|
36654 |
selector: `.wp-container-${id}`,
|
@@ -37172,7 +37231,7 @@ const DEFAULT_FONT_SIZES = [];
|
|
37172 |
* @return {Function} Higher-order component.
|
37173 |
*/
|
37174 |
|
37175 |
-
/* harmony default export */
|
37176 |
for (var _len = arguments.length, fontSizeNames = new Array(_len), _key = 0; _key < _len; _key++) {
|
37177 |
fontSizeNames[_key] = arguments[_key];
|
37178 |
}
|
@@ -37285,7 +37344,7 @@ const alignLeft = (0,external_wp_element_namespaceObject.createElement)(external
|
|
37285 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37286 |
d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"
|
37287 |
}));
|
37288 |
-
/* harmony default export */
|
37289 |
|
37290 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-center.js
|
37291 |
|
@@ -37300,7 +37359,7 @@ const align_center_alignCenter = (0,external_wp_element_namespaceObject.createEl
|
|
37300 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37301 |
d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"
|
37302 |
}));
|
37303 |
-
/* harmony default export */
|
37304 |
|
37305 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-right.js
|
37306 |
|
@@ -37315,7 +37374,7 @@ const alignRight = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
37315 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37316 |
d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"
|
37317 |
}));
|
37318 |
-
/* harmony default export */
|
37319 |
|
37320 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/ui.js
|
37321 |
|
@@ -37397,7 +37456,7 @@ function AlignmentUI(_ref) {
|
|
37397 |
}, extraProps));
|
37398 |
}
|
37399 |
|
37400 |
-
/* harmony default export */
|
37401 |
|
37402 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/index.js
|
37403 |
|
@@ -37448,6 +37507,9 @@ const AlignmentToolbar = props => {
|
|
37448 |
|
37449 |
|
37450 |
|
|
|
|
|
|
|
37451 |
const block_SHOWN_BLOCK_TYPES = 9;
|
37452 |
/** @typedef {import('@wordpress/components').WPCompleter} WPCompleter */
|
37453 |
|
@@ -37479,7 +37541,7 @@ function createBlockCompleter() {
|
|
37479 |
rootClientId: getBlockInsertionPoint().rootClientId
|
37480 |
};
|
37481 |
}, []);
|
37482 |
-
const [items, categories, collections] = use_block_types_state(rootClientId,
|
37483 |
const filteredItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
|
37484 |
const initialFilteredItems = !!filterValue.trim() ? searchBlockItems(items, categories, collections, filterValue) : (0,external_lodash_namespaceObject.orderBy)(items, ['frecency'], ['desc']);
|
37485 |
return initialFilteredItems.filter(item => item.name !== selectedBlockName).slice(0, block_SHOWN_BLOCK_TYPES);
|
@@ -37529,10 +37591,10 @@ function createBlockCompleter() {
|
|
37529 |
*/
|
37530 |
|
37531 |
|
37532 |
-
/* harmony default export */
|
37533 |
|
37534 |
;// CONCATENATED MODULE: external ["wp","apiFetch"]
|
37535 |
-
|
37536 |
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
|
37537 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/page.js
|
37538 |
|
@@ -37547,7 +37609,7 @@ const page = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
37547 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37548 |
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"
|
37549 |
}));
|
37550 |
-
/* harmony default export */
|
37551 |
|
37552 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/post.js
|
37553 |
|
@@ -37562,7 +37624,7 @@ const post = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
37562 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37563 |
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"
|
37564 |
}));
|
37565 |
-
/* harmony default export */
|
37566 |
|
37567 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/autocompleters/link.js
|
37568 |
|
@@ -37627,7 +37689,7 @@ function createLinkCompleter() {
|
|
37627 |
*/
|
37628 |
|
37629 |
|
37630 |
-
/* harmony default export */
|
37631 |
|
37632 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/autocomplete/index.js
|
37633 |
|
@@ -37710,7 +37772,7 @@ function BlockEditorAutocomplete(props) {
|
|
37710 |
*/
|
37711 |
|
37712 |
|
37713 |
-
/* harmony default export */
|
37714 |
|
37715 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/fullscreen.js
|
37716 |
|
@@ -37725,7 +37787,7 @@ const fullscreen = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
37725 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37726 |
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"
|
37727 |
}));
|
37728 |
-
/* harmony default export */
|
37729 |
|
37730 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-full-height-alignment-control/index.js
|
37731 |
|
@@ -37753,15 +37815,11 @@ function BlockFullHeightAlignmentControl(_ref) {
|
|
37753 |
});
|
37754 |
}
|
37755 |
|
37756 |
-
/* harmony default export */
|
37757 |
|
37758 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-matrix-control/index.js
|
37759 |
|
37760 |
|
37761 |
-
/**
|
37762 |
-
* External dependencies
|
37763 |
-
*/
|
37764 |
-
|
37765 |
/**
|
37766 |
* WordPress dependencies
|
37767 |
*/
|
@@ -37769,11 +37827,12 @@ function BlockFullHeightAlignmentControl(_ref) {
|
|
37769 |
|
37770 |
|
37771 |
|
|
|
37772 |
|
37773 |
function BlockAlignmentMatrixControl(props) {
|
37774 |
const {
|
37775 |
label = (0,external_wp_i18n_namespaceObject.__)('Change matrix alignment'),
|
37776 |
-
onChange =
|
37777 |
value = 'center',
|
37778 |
isDisabled
|
37779 |
} = props;
|
@@ -37817,7 +37876,7 @@ function BlockAlignmentMatrixControl(props) {
|
|
37817 |
});
|
37818 |
}
|
37819 |
|
37820 |
-
/* harmony default export */
|
37821 |
|
37822 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right-small.js
|
37823 |
|
@@ -37832,7 +37891,7 @@ const chevronRightSmall = (0,external_wp_element_namespaceObject.createElement)(
|
|
37832 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37833 |
d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
|
37834 |
}));
|
37835 |
-
/* harmony default export */
|
37836 |
|
37837 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-breadcrumb/index.js
|
37838 |
|
@@ -37930,7 +37989,7 @@ function BlockBreadcrumb(_ref) {
|
|
37930 |
;
|
37931 |
}
|
37932 |
|
37933 |
-
/* harmony default export */
|
37934 |
|
37935 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-content-overlay/index.js
|
37936 |
/**
|
@@ -38051,7 +38110,7 @@ const BlockColorsStyleSelector = _ref4 => {
|
|
38051 |
});
|
38052 |
};
|
38053 |
|
38054 |
-
/* harmony default export */
|
38055 |
|
38056 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/list-view.js
|
38057 |
|
@@ -38066,7 +38125,7 @@ const listView = (0,external_wp_element_namespaceObject.createElement)(external_
|
|
38066 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
38067 |
d: "M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"
|
38068 |
}));
|
38069 |
-
/* harmony default export */
|
38070 |
|
38071 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/leaf.js
|
38072 |
|
@@ -38235,7 +38294,7 @@ function ListViewBlockSelectButton(_ref, ref) {
|
|
38235 |
}))));
|
38236 |
}
|
38237 |
|
38238 |
-
/* harmony default export */
|
38239 |
|
38240 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block-contents.js
|
38241 |
|
@@ -38321,7 +38380,7 @@ const ListViewBlockContents = (0,external_wp_element_namespaceObject.forwardRef)
|
|
38321 |
}, props));
|
38322 |
});
|
38323 |
});
|
38324 |
-
/* harmony default export */
|
38325 |
|
38326 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/context.js
|
38327 |
/**
|
@@ -38332,15 +38391,10 @@ const ListViewContext = (0,external_wp_element_namespaceObject.createContext)({}
|
|
38332 |
const useListViewContext = () => (0,external_wp_element_namespaceObject.useContext)(ListViewContext);
|
38333 |
|
38334 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/utils.js
|
38335 |
-
/**
|
38336 |
-
* External dependencies
|
38337 |
-
*/
|
38338 |
-
|
38339 |
/**
|
38340 |
* WordPress dependencies
|
38341 |
*/
|
38342 |
|
38343 |
-
|
38344 |
const getBlockPositionDescription = (position, siblingCount, level) => (0,external_wp_i18n_namespaceObject.sprintf)(
|
38345 |
/* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
|
38346 |
(0,external_wp_i18n_namespaceObject.__)('Block %1$d of %2$d, Level %3$d'), position, siblingCount, level);
|
@@ -38354,7 +38408,7 @@ const getBlockPositionDescription = (position, siblingCount, level) => (0,extern
|
|
38354 |
* @return {boolean} Whether the block is in multi-selection set.
|
38355 |
*/
|
38356 |
|
38357 |
-
const isClientIdSelected = (clientId, selectedBlockClientIds) =>
|
38358 |
/**
|
38359 |
* From a start and end clientId of potentially different nesting levels,
|
38360 |
* return the nearest-depth ids that have a common level of depth in the
|
@@ -38633,7 +38687,7 @@ function ListViewBlock(_ref) {
|
|
38633 |
}));
|
38634 |
}
|
38635 |
|
38636 |
-
/* harmony default export */
|
38637 |
|
38638 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/branch.js
|
38639 |
|
@@ -38789,7 +38843,7 @@ function ListViewBranch(props) {
|
|
38789 |
ListViewBranch.defaultProps = {
|
38790 |
selectBlock: () => {}
|
38791 |
};
|
38792 |
-
/* harmony default export */
|
38793 |
|
38794 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/drop-indicator.js
|
38795 |
|
@@ -39513,7 +39567,7 @@ function ListView(_ref, ref) {
|
|
39513 |
}))));
|
39514 |
}
|
39515 |
|
39516 |
-
/* harmony default export */
|
39517 |
|
39518 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-navigation/dropdown.js
|
39519 |
|
@@ -39595,7 +39649,7 @@ function BlockNavigationDropdown(_ref2, ref) {
|
|
39595 |
});
|
39596 |
}
|
39597 |
|
39598 |
-
/* harmony default export */
|
39599 |
|
39600 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/preview-panel.js
|
39601 |
|
@@ -39678,13 +39732,16 @@ function BlockStylesPreviewPanelFill(_ref2) {
|
|
39678 |
// The value is the equivalent of the container's right position.
|
39679 |
|
39680 |
|
39681 |
-
const DEFAULT_POSITION_TOP = 16;
|
|
|
|
|
|
|
39682 |
|
39683 |
function BlockStyles(_ref3) {
|
39684 |
let {
|
39685 |
clientId,
|
39686 |
-
onSwitch =
|
39687 |
-
onHoverClassName =
|
39688 |
scope
|
39689 |
} = _ref3;
|
39690 |
const {
|
@@ -39773,7 +39830,7 @@ function BlockStyles(_ref3) {
|
|
39773 |
}
|
39774 |
|
39775 |
BlockStyles.Slot = BlockStylesPreviewPanelSlot;
|
39776 |
-
/* harmony default export */
|
39777 |
|
39778 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/layout.js
|
39779 |
|
@@ -39788,7 +39845,7 @@ const layout = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
39788 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39789 |
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"
|
39790 |
}));
|
39791 |
-
/* harmony default export */
|
39792 |
|
39793 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-picker/index.js
|
39794 |
|
@@ -39846,7 +39903,7 @@ function BlockVariationPicker(_ref) {
|
|
39846 |
}, (0,external_wp_i18n_namespaceObject.__)('Skip'))));
|
39847 |
}
|
39848 |
|
39849 |
-
/* harmony default export */
|
39850 |
|
39851 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/grid.js
|
39852 |
|
@@ -39863,7 +39920,7 @@ const grid = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
39863 |
fillRule: "evenodd",
|
39864 |
clipRule: "evenodd"
|
39865 |
}));
|
39866 |
-
/* harmony default export */
|
39867 |
|
39868 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/constants.js
|
39869 |
const VIEWMODES = {
|
@@ -39961,7 +40018,7 @@ const SetupToolbar = _ref3 => {
|
|
39961 |
}));
|
39962 |
};
|
39963 |
|
39964 |
-
/* harmony default export */
|
39965 |
|
39966 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/use-patterns-setup.js
|
39967 |
/**
|
@@ -39991,7 +40048,7 @@ function usePatternsSetup(clientId, blockName, filterPatternsFn) {
|
|
39991 |
}, [clientId, blockName, filterPatternsFn]);
|
39992 |
}
|
39993 |
|
39994 |
-
/* harmony default export */
|
39995 |
|
39996 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/index.js
|
39997 |
|
@@ -40123,7 +40180,7 @@ const BlockPatternSetup = _ref4 => {
|
|
40123 |
clientId,
|
40124 |
blockName,
|
40125 |
filterPatternsFn,
|
40126 |
-
startBlankComponent,
|
40127 |
onBlockPatternSelect
|
40128 |
} = _ref4;
|
40129 |
const [viewMode, setViewMode] = (0,external_wp_element_namespaceObject.useState)(VIEWMODES.carousel);
|
@@ -40176,7 +40233,7 @@ const BlockPatternSetup = _ref4 => {
|
|
40176 |
})));
|
40177 |
};
|
40178 |
|
40179 |
-
/* harmony default export */
|
40180 |
|
40181 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-transforms/index.js
|
40182 |
|
@@ -40330,7 +40387,7 @@ function __experimentalBlockVariationTransforms(_ref4) {
|
|
40330 |
});
|
40331 |
}
|
40332 |
|
40333 |
-
/* harmony default export */
|
40334 |
|
40335 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/with-color-context.js
|
40336 |
|
@@ -40350,7 +40407,7 @@ function __experimentalBlockVariationTransforms(_ref4) {
|
|
40350 |
*/
|
40351 |
|
40352 |
|
40353 |
-
/* harmony default export */
|
40354 |
return props => {
|
40355 |
const colorsFeature = useSetting('color.palette');
|
40356 |
const disableCustomColorsFeature = !useSetting('color.custom');
|
@@ -40375,7 +40432,7 @@ function __experimentalBlockVariationTransforms(_ref4) {
|
|
40375 |
*/
|
40376 |
|
40377 |
|
40378 |
-
/* harmony default export */
|
40379 |
|
40380 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/control.js
|
40381 |
|
@@ -40400,7 +40457,7 @@ function ColorPaletteControl(_ref) {
|
|
40400 |
}
|
40401 |
|
40402 |
;// CONCATENATED MODULE: external ["wp","date"]
|
40403 |
-
|
40404 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/date-format-picker/index.js
|
40405 |
|
40406 |
|
@@ -40636,7 +40693,7 @@ const PanelColorGradientSettings = props => {
|
|
40636 |
return (0,external_wp_element_namespaceObject.createElement)(PanelColorGradientSettingsSingleSelect, props);
|
40637 |
};
|
40638 |
|
40639 |
-
/* harmony default export */
|
40640 |
|
40641 |
;// CONCATENATED MODULE: ./node_modules/react-easy-crop/node_modules/tslib/tslib.es6.js
|
40642 |
/*! *****************************************************************************
|
@@ -41592,7 +41649,7 @@ function (_super) {
|
|
41592 |
return Cropper;
|
41593 |
}((external_React_default()).Component);
|
41594 |
|
41595 |
-
/* harmony default export */
|
41596 |
|
41597 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/constants.js
|
41598 |
const constants_MIN_ZOOM = 100;
|
@@ -41934,7 +41991,7 @@ const search = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
41934 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
41935 |
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"
|
41936 |
}));
|
41937 |
-
/* harmony default export */
|
41938 |
|
41939 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/zoom-dropdown.js
|
41940 |
|
@@ -41996,7 +42053,7 @@ const aspectRatio = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
41996 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
41997 |
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"
|
41998 |
}));
|
41999 |
-
/* harmony default export */
|
42000 |
|
42001 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.js
|
42002 |
|
@@ -42135,7 +42192,7 @@ const rotateRight = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
42135 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42136 |
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"
|
42137 |
}));
|
42138 |
-
/* harmony default export */
|
42139 |
|
42140 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/rotation-button.js
|
42141 |
|
@@ -42312,6 +42369,9 @@ function useDimensionHandler(customHeight, customWidth, defaultHeight, defaultWi
|
|
42312 |
|
42313 |
|
42314 |
const IMAGE_SIZE_PRESETS = [25, 50, 75, 100];
|
|
|
|
|
|
|
42315 |
function ImageSizeControl(_ref) {
|
42316 |
let {
|
42317 |
imageWidth,
|
@@ -42322,7 +42382,7 @@ function ImageSizeControl(_ref) {
|
|
42322 |
width,
|
42323 |
height,
|
42324 |
onChange,
|
42325 |
-
onChangeImage =
|
42326 |
} = _ref;
|
42327 |
const {
|
42328 |
currentHeight,
|
@@ -42389,26 +42449,23 @@ const keyboardReturn = (0,external_wp_element_namespaceObject.createElement)(ext
|
|
42389 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42390 |
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"
|
42391 |
}));
|
42392 |
-
/* harmony default export */
|
42393 |
|
42394 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/settings-drawer.js
|
42395 |
|
42396 |
|
42397 |
-
/**
|
42398 |
-
* External dependencies
|
42399 |
-
*/
|
42400 |
-
|
42401 |
/**
|
42402 |
* WordPress dependencies
|
42403 |
*/
|
42404 |
|
42405 |
|
42406 |
|
|
|
42407 |
|
42408 |
const LinkControlSettingsDrawer = _ref => {
|
42409 |
let {
|
42410 |
value,
|
42411 |
-
onChange =
|
42412 |
settings
|
42413 |
} = _ref;
|
42414 |
|
@@ -42436,7 +42493,7 @@ const LinkControlSettingsDrawer = _ref => {
|
|
42436 |
}, (0,external_wp_i18n_namespaceObject.__)('Currently selected link settings')), theSettings);
|
42437 |
};
|
42438 |
|
42439 |
-
/* harmony default export */
|
42440 |
|
42441 |
// EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js
|
42442 |
var dom_scroll_into_view_lib = __webpack_require__(5425);
|
@@ -42467,6 +42524,16 @@ var lib_default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view_lib);
|
|
42467 |
*/
|
42468 |
|
42469 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42470 |
|
42471 |
class URLInput extends external_wp_element_namespaceObject.Component {
|
42472 |
constructor(props) {
|
@@ -42896,7 +42963,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
42896 |
};
|
42897 |
};
|
42898 |
|
42899 |
-
if (
|
42900 |
return renderSuggestions({
|
42901 |
suggestions,
|
42902 |
selectedSuggestion,
|
@@ -42908,7 +42975,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
42908 |
});
|
42909 |
}
|
42910 |
|
42911 |
-
if (!
|
42912 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
|
42913 |
position: "bottom",
|
42914 |
focusOnMount: false
|
@@ -42932,10 +42999,10 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
42932 |
*/
|
42933 |
|
42934 |
|
42935 |
-
/* harmony default export */
|
42936 |
// If a link suggestions handler is already provided then
|
42937 |
// bail.
|
42938 |
-
if (
|
42939 |
return;
|
42940 |
}
|
42941 |
|
@@ -42955,7 +43022,6 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|
42955 |
* External dependencies
|
42956 |
*/
|
42957 |
|
42958 |
-
|
42959 |
/**
|
42960 |
* WordPress dependencies
|
42961 |
*/
|
@@ -42980,7 +43046,7 @@ const LinkControlSearchCreate = _ref => {
|
|
42980 |
let text;
|
42981 |
|
42982 |
if (buttonText) {
|
42983 |
-
text =
|
42984 |
} else {
|
42985 |
text = (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)(
|
42986 |
/* translators: %s: search term. */
|
@@ -43003,7 +43069,7 @@ const LinkControlSearchCreate = _ref => {
|
|
43003 |
className: "block-editor-link-control__search-item-title"
|
43004 |
}, text)));
|
43005 |
};
|
43006 |
-
/* harmony default export */
|
43007 |
|
43008 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/globe.js
|
43009 |
|
@@ -43018,7 +43084,7 @@ const globe = (0,external_wp_element_namespaceObject.createElement)(external_wp_
|
|
43018 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43019 |
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"
|
43020 |
}));
|
43021 |
-
/* harmony default export */
|
43022 |
|
43023 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-item.js
|
43024 |
|
@@ -43080,7 +43146,7 @@ function getVisualTypeName(suggestion) {
|
|
43080 |
return suggestion.type === 'post_tag' ? 'tag' : suggestion.type;
|
43081 |
}
|
43082 |
|
43083 |
-
/* harmony default export */
|
43084 |
|
43085 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/constants.js
|
43086 |
/**
|
@@ -43384,6 +43450,8 @@ function useSearchHandler(suggestionsQuery, allowDirectEntry, withCreateSuggesti
|
|
43384 |
|
43385 |
const noopSearchHandler = () => Promise.resolve([]);
|
43386 |
|
|
|
|
|
43387 |
const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef)((_ref, ref) => {
|
43388 |
let {
|
43389 |
value,
|
@@ -43392,9 +43460,9 @@ const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef
|
|
43392 |
className = null,
|
43393 |
placeholder = null,
|
43394 |
withCreateSuggestion = false,
|
43395 |
-
onCreateSuggestion =
|
43396 |
-
onChange =
|
43397 |
-
onSelect =
|
43398 |
showSuggestions = true,
|
43399 |
renderSuggestions = props => (0,external_wp_element_namespaceObject.createElement)(LinkControlSearchResults, props),
|
43400 |
fetchSuggestions = null,
|
@@ -43495,7 +43563,7 @@ const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef
|
|
43495 |
ref: ref
|
43496 |
}), children);
|
43497 |
});
|
43498 |
-
/* harmony default export */
|
43499 |
|
43500 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/info.js
|
43501 |
|
@@ -43510,7 +43578,7 @@ const info = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
|
|
43510 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43511 |
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"
|
43512 |
}));
|
43513 |
-
/* harmony default export */
|
43514 |
|
43515 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/pencil.js
|
43516 |
|
@@ -43525,14 +43593,14 @@ const pencil = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
43525 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43526 |
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"
|
43527 |
}));
|
43528 |
-
/* harmony default export */
|
43529 |
|
43530 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/edit.js
|
43531 |
/**
|
43532 |
* Internal dependencies
|
43533 |
*/
|
43534 |
|
43535 |
-
/* harmony default export */
|
43536 |
|
43537 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/viewer-slot.js
|
43538 |
/**
|
@@ -43544,7 +43612,7 @@ const {
|
|
43544 |
Fill: ViewerFill
|
43545 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('BlockEditorLinkControlViewer');
|
43546 |
|
43547 |
-
/* harmony default export */
|
43548 |
|
43549 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/use-rich-url-data.js
|
43550 |
/**
|
@@ -43631,7 +43699,7 @@ function useRemoteUrlData(url) {
|
|
43631 |
return state;
|
43632 |
}
|
43633 |
|
43634 |
-
/* harmony default export */
|
43635 |
|
43636 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/link-preview.js
|
43637 |
|
@@ -43843,7 +43911,6 @@ const makeCancelable = promise => {
|
|
43843 |
* External dependencies
|
43844 |
*/
|
43845 |
|
43846 |
-
|
43847 |
/**
|
43848 |
* WordPress dependencies
|
43849 |
*/
|
@@ -43939,6 +44006,7 @@ const makeCancelable = promise => {
|
|
43939 |
* @property {Function} renderControlBottom Optional controls to be rendered at the bottom of the component.
|
43940 |
*/
|
43941 |
|
|
|
43942 |
/**
|
43943 |
* Renders a link control. A link control is a controlled input which maintains
|
43944 |
* a value associated with a link (HTML anchor element) and relevant settings
|
@@ -43947,6 +44015,7 @@ const makeCancelable = promise => {
|
|
43947 |
* @param {WPLinkControlProps} props Component props.
|
43948 |
*/
|
43949 |
|
|
|
43950 |
function LinkControl(_ref) {
|
43951 |
var _currentInputValue$tr, _value$url, _value$url$trim;
|
43952 |
|
@@ -43954,7 +44023,7 @@ function LinkControl(_ref) {
|
|
43954 |
searchInputPlaceholder,
|
43955 |
value,
|
43956 |
settings = DEFAULT_LINK_SETTINGS,
|
43957 |
-
onChange =
|
43958 |
onRemove,
|
43959 |
noDirectEntry = false,
|
43960 |
showSuggestions = true,
|
@@ -44149,7 +44218,7 @@ function LinkControl(_ref) {
|
|
44149 |
}
|
44150 |
|
44151 |
LinkControl.ViewerFill = ViewerFill;
|
44152 |
-
/* harmony default export */
|
44153 |
|
44154 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/media.js
|
44155 |
|
@@ -44164,7 +44233,7 @@ const media = (0,external_wp_element_namespaceObject.createElement)(external_wp_
|
|
44164 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
44165 |
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"
|
44166 |
}));
|
44167 |
-
/* harmony default export */
|
44168 |
|
44169 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/upload.js
|
44170 |
|
@@ -44179,7 +44248,22 @@ const upload = (0,external_wp_element_namespaceObject.createElement)(external_wp
|
|
44179 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
44180 |
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"
|
44181 |
}));
|
44182 |
-
/* harmony default export */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44183 |
|
44184 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/index.js
|
44185 |
/**
|
@@ -44200,7 +44284,7 @@ const MediaUpload = () => null;
|
|
44200 |
*/
|
44201 |
|
44202 |
|
44203 |
-
/* harmony default export */
|
44204 |
|
44205 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/check.js
|
44206 |
/**
|
@@ -44229,7 +44313,7 @@ function MediaUploadCheck(_ref) {
|
|
44229 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-upload/README.md
|
44230 |
*/
|
44231 |
|
44232 |
-
/* harmony default export */
|
44233 |
|
44234 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-replace-flow/index.js
|
44235 |
|
@@ -44261,6 +44345,8 @@ function MediaUploadCheck(_ref) {
|
|
44261 |
|
44262 |
|
44263 |
|
|
|
|
|
44264 |
const MediaReplaceFlow = _ref => {
|
44265 |
let {
|
44266 |
mediaURL,
|
@@ -44271,7 +44357,9 @@ const MediaReplaceFlow = _ref => {
|
|
44271 |
onError,
|
44272 |
onSelect,
|
44273 |
onSelectURL,
|
44274 |
-
|
|
|
|
|
44275 |
name = (0,external_wp_i18n_namespaceObject.__)('Replace'),
|
44276 |
createNotice,
|
44277 |
removeNotice,
|
@@ -44311,6 +44399,10 @@ const MediaReplaceFlow = _ref => {
|
|
44311 |
};
|
44312 |
|
44313 |
const selectMedia = (media, closeMenu) => {
|
|
|
|
|
|
|
|
|
44314 |
closeMenu();
|
44315 |
setMediaURLValue(media === null || media === void 0 ? void 0 : media.url); // Calling `onSelect` after the state update since it might unmount the component.
|
44316 |
|
@@ -44380,7 +44472,7 @@ const MediaReplaceFlow = _ref => {
|
|
44380 |
} = _ref4;
|
44381 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.NavigableMenu, {
|
44382 |
className: "block-editor-media-replace-flow__media-upload-menu"
|
44383 |
-
}, (0,external_wp_element_namespaceObject.createElement)(media_upload, {
|
44384 |
gallery: gallery,
|
44385 |
addToGallery: addToGallery,
|
44386 |
multiple: multiple,
|
@@ -44413,12 +44505,19 @@ const MediaReplaceFlow = _ref => {
|
|
44413 |
}
|
44414 |
}, (0,external_wp_i18n_namespaceObject.__)('Upload'));
|
44415 |
}
|
44416 |
-
}))
|
|
|
|
|
|
|
|
|
44417 |
(0,external_wp_element_namespaceObject.createElement)("form", {
|
44418 |
className: "block-editor-media-flow__url-input"
|
44419 |
}, (0,external_wp_element_namespaceObject.createElement)("span", {
|
44420 |
className: "block-editor-media-replace-flow__image-url-label"
|
44421 |
-
}, (0,external_wp_i18n_namespaceObject.__)('Current media URL:')), (0,external_wp_element_namespaceObject.createElement)(
|
|
|
|
|
|
|
44422 |
value: {
|
44423 |
url: mediaURLValue
|
44424 |
},
|
@@ -44432,7 +44531,7 @@ const MediaReplaceFlow = _ref => {
|
|
44432 |
onSelectURL(url);
|
44433 |
editMediaButtonRef.current.focus();
|
44434 |
}
|
44435 |
-
})));
|
44436 |
}
|
44437 |
});
|
44438 |
};
|
@@ -44441,7 +44540,7 @@ const MediaReplaceFlow = _ref => {
|
|
44441 |
*/
|
44442 |
|
44443 |
|
44444 |
-
/* harmony default export */
|
44445 |
const {
|
44446 |
createNotice,
|
44447 |
removeNotice
|
@@ -44629,7 +44728,7 @@ URLPopover.LinkViewer = LinkViewer;
|
|
44629 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/url-popover/README.md
|
44630 |
*/
|
44631 |
|
44632 |
-
/* harmony default export */
|
44633 |
|
44634 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-placeholder/index.js
|
44635 |
|
@@ -44638,7 +44737,6 @@ URLPopover.LinkViewer = LinkViewer;
|
|
44638 |
* External dependencies
|
44639 |
*/
|
44640 |
|
44641 |
-
|
44642 |
/**
|
44643 |
* WordPress dependencies
|
44644 |
*/
|
@@ -44657,6 +44755,8 @@ URLPopover.LinkViewer = LinkViewer;
|
|
44657 |
|
44658 |
|
44659 |
|
|
|
|
|
44660 |
const InsertFromURLPopover = _ref => {
|
44661 |
let {
|
44662 |
src,
|
@@ -44705,8 +44805,8 @@ function MediaPlaceholder(_ref2) {
|
|
44705 |
onCancel,
|
44706 |
onSelectURL,
|
44707 |
onDoubleClick,
|
44708 |
-
onFilesPreUpload =
|
44709 |
-
onHTMLDrop =
|
44710 |
children,
|
44711 |
mediaLibraryButton,
|
44712 |
placeholder,
|
@@ -45001,7 +45101,7 @@ function MediaPlaceholder(_ref2) {
|
|
45001 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-placeholder/README.md
|
45002 |
*/
|
45003 |
|
45004 |
-
/* harmony default export */
|
45005 |
|
45006 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/panel-color-settings/index.js
|
45007 |
|
@@ -45039,7 +45139,7 @@ const PanelColorSettings = _ref => {
|
|
45039 |
}, props));
|
45040 |
};
|
45041 |
|
45042 |
-
/* harmony default export */
|
45043 |
|
45044 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar/index.js
|
45045 |
|
@@ -45106,7 +45206,7 @@ const FormatToolbar = () => {
|
|
45106 |
}));
|
45107 |
};
|
45108 |
|
45109 |
-
/* harmony default export */
|
45110 |
|
45111 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar-container.js
|
45112 |
|
@@ -45147,7 +45247,7 @@ const FormatToolbarContainer = _ref => {
|
|
45147 |
}, (0,external_wp_element_namespaceObject.createElement)(format_toolbar, null));
|
45148 |
};
|
45149 |
|
45150 |
-
/* harmony default export */
|
45151 |
|
45152 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-undo-automatic-change.js
|
45153 |
/**
|
@@ -45256,7 +45356,7 @@ function filePasteHandler(files) {
|
|
45256 |
}
|
45257 |
|
45258 |
;// CONCATENATED MODULE: external ["wp","shortcode"]
|
45259 |
-
|
45260 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/utils.js
|
45261 |
|
45262 |
|
@@ -46682,7 +46782,7 @@ ForwardedRichTextContainer.isEmpty = value => {
|
|
46682 |
*/
|
46683 |
|
46684 |
|
46685 |
-
/* harmony default export */
|
46686 |
|
46687 |
|
46688 |
|
@@ -46722,7 +46822,7 @@ EditableText.Content = _ref => {
|
|
46722 |
*/
|
46723 |
|
46724 |
|
46725 |
-
/* harmony default export */
|
46726 |
|
46727 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/plain-text/index.js
|
46728 |
|
@@ -46770,7 +46870,7 @@ const PlainText = (0,external_wp_element_namespaceObject.forwardRef)((_ref, ref)
|
|
46770 |
onChange: event => onChange(event.target.value)
|
46771 |
}, remainingProps));
|
46772 |
});
|
46773 |
-
/* harmony default export */
|
46774 |
|
46775 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/responsive-block-control/label.js
|
46776 |
|
@@ -46891,7 +46991,7 @@ function ResponsiveBlockControl(props) {
|
|
46891 |
}, !isResponsive && defaultControl, isResponsive && (renderResponsiveControls ? renderResponsiveControls(viewports) : defaultResponsiveControls()))));
|
46892 |
}
|
46893 |
|
46894 |
-
/* harmony default export */
|
46895 |
|
46896 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/shortcut.js
|
46897 |
/**
|
@@ -47072,7 +47172,7 @@ function ToolSelector(props, ref) {
|
|
47072 |
});
|
47073 |
}
|
47074 |
|
47075 |
-
/* harmony default export */
|
47076 |
|
47077 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/unit-control/index.js
|
47078 |
|
@@ -47114,7 +47214,7 @@ const arrowLeft = (0,external_wp_element_namespaceObject.createElement)(external
|
|
47114 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47115 |
d: "M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"
|
47116 |
}));
|
47117 |
-
/* harmony default export */
|
47118 |
|
47119 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/button.js
|
47120 |
|
@@ -47196,7 +47296,7 @@ class URLInputButton extends external_wp_element_namespaceObject.Component {
|
|
47196 |
*/
|
47197 |
|
47198 |
|
47199 |
-
/* harmony default export */
|
47200 |
|
47201 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/close.js
|
47202 |
|
@@ -47211,7 +47311,7 @@ const close_close = (0,external_wp_element_namespaceObject.createElement)(extern
|
|
47211 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47212 |
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"
|
47213 |
}));
|
47214 |
-
/* harmony default export */
|
47215 |
|
47216 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/image-url-input-ui.js
|
47217 |
|
@@ -47507,10 +47607,14 @@ function PreviewOptions(_ref) {
|
|
47507 |
/* translators: button label text should, if possible, be under 16 characters. */
|
47508 |
children: (0,external_wp_i18n_namespaceObject.__)('Preview')
|
47509 |
};
|
|
|
|
|
|
|
47510 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
|
47511 |
className: "block-editor-post-preview__dropdown",
|
47512 |
popoverProps: popoverProps,
|
47513 |
toggleProps: toggleProps,
|
|
|
47514 |
icon: null
|
47515 |
}, () => (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
47516 |
className: "block-editor-post-preview__button-resize",
|
@@ -47636,14 +47740,14 @@ const SkipToSelectedBlock = _ref => {
|
|
47636 |
*/
|
47637 |
|
47638 |
|
47639 |
-
/* harmony default export */
|
47640 |
return {
|
47641 |
selectedBlockClientId: select(store).getBlockSelectionStart()
|
47642 |
};
|
47643 |
})(SkipToSelectedBlock));
|
47644 |
|
47645 |
;// CONCATENATED MODULE: external ["wp","wordcount"]
|
47646 |
-
|
47647 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/multi-selection-inspector/index.js
|
47648 |
|
47649 |
|
@@ -47685,7 +47789,7 @@ function MultiSelectionInspector(_ref) {
|
|
47685 |
(0,external_wp_i18n_namespaceObject._n)('%d word', '%d words', words), words))));
|
47686 |
}
|
47687 |
|
47688 |
-
/* harmony default export */
|
47689 |
const {
|
47690 |
getMultiSelectedBlocks
|
47691 |
} = select(store);
|
@@ -47927,7 +48031,7 @@ const AdvancedControls = () => {
|
|
47927 |
*/
|
47928 |
|
47929 |
|
47930 |
-
/* harmony default export */
|
47931 |
|
47932 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/index.js
|
47933 |
|
@@ -48065,16 +48169,11 @@ function BlockTools(_ref) {
|
|
48065 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/library.js
|
48066 |
|
48067 |
|
48068 |
-
/**
|
48069 |
-
* External dependencies
|
48070 |
-
*/
|
48071 |
-
|
48072 |
/**
|
48073 |
* WordPress dependencies
|
48074 |
*/
|
48075 |
|
48076 |
|
48077 |
-
|
48078 |
/**
|
48079 |
* Internal dependencies
|
48080 |
*/
|
@@ -48082,6 +48181,8 @@ function BlockTools(_ref) {
|
|
48082 |
|
48083 |
|
48084 |
|
|
|
|
|
48085 |
function InserterLibrary(_ref, ref) {
|
48086 |
let {
|
48087 |
rootClientId,
|
@@ -48091,7 +48192,7 @@ function InserterLibrary(_ref, ref) {
|
|
48091 |
showMostUsedBlocks = false,
|
48092 |
__experimentalInsertionIndex,
|
48093 |
__experimentalFilterValue,
|
48094 |
-
onSelect =
|
48095 |
shouldFocusBlock = false
|
48096 |
} = _ref;
|
48097 |
const destinationRootClientId = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
@@ -48114,7 +48215,7 @@ function InserterLibrary(_ref, ref) {
|
|
48114 |
});
|
48115 |
}
|
48116 |
|
48117 |
-
/* harmony default export */
|
48118 |
|
48119 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/keyboard-shortcuts/index.js
|
48120 |
/**
|
@@ -48231,7 +48332,7 @@ function KeyboardShortcutsRegister() {
|
|
48231 |
}
|
48232 |
|
48233 |
KeyboardShortcuts.Register = KeyboardShortcutsRegister;
|
48234 |
-
/* harmony default export */
|
48235 |
|
48236 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/selection-scroll-into-view/index.js
|
48237 |
/**
|
@@ -48483,7 +48584,7 @@ function ObserveTyping(_ref) {
|
|
48483 |
*/
|
48484 |
|
48485 |
|
48486 |
-
/* harmony default export */
|
48487 |
|
48488 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/typewriter/index.js
|
48489 |
|
@@ -48721,7 +48822,7 @@ const TypewriterOrIEBypass = isIE ? props => props.children : Typewriter;
|
|
48721 |
* can vary. It is the last clicked or scrolled to position.
|
48722 |
*/
|
48723 |
|
48724 |
-
/* harmony default export */
|
48725 |
|
48726 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-no-recursive-renders/index.js
|
48727 |
|
@@ -48804,7 +48905,54 @@ const closeSmall = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
48804 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
48805 |
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"
|
48806 |
}));
|
48807 |
-
/* harmony default export */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48808 |
|
48809 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/publish-date-time-picker/index.js
|
48810 |
|
@@ -48816,6 +48964,10 @@ const closeSmall = (0,external_wp_element_namespaceObject.createElement)(externa
|
|
48816 |
|
48817 |
|
48818 |
|
|
|
|
|
|
|
|
|
48819 |
|
48820 |
|
48821 |
function PublishDateTimePicker(_ref, ref) {
|
@@ -48827,27 +48979,21 @@ function PublishDateTimePicker(_ref, ref) {
|
|
48827 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
48828 |
ref: ref,
|
48829 |
className: "block-editor-publish-date-time-picker"
|
48830 |
-
}, (0,external_wp_element_namespaceObject.createElement)(
|
48831 |
-
|
48832 |
-
|
48833 |
-
|
48834 |
-
|
48835 |
-
|
48836 |
-
|
48837 |
-
|
48838 |
-
}, (0,external_wp_i18n_namespaceObject.__)('Now')), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
|
48839 |
-
className: "block-editor-publish-date-time-picker__close",
|
48840 |
-
icon: close_small,
|
48841 |
-
label: (0,external_wp_i18n_namespaceObject.__)('Close'),
|
48842 |
-
onClick: onClose
|
48843 |
-
})), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.DateTimePicker, _extends({
|
48844 |
__nextRemoveHelpButton: true,
|
48845 |
__nextRemoveResetButton: true,
|
48846 |
onChange: onChange
|
48847 |
}, additionalProps)));
|
48848 |
}
|
48849 |
|
48850 |
-
/* harmony default export */
|
48851 |
|
48852 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/index.js
|
48853 |
/*
|
@@ -48894,6 +49040,7 @@ function PublishDateTimePicker(_ref, ref) {
|
|
48894 |
|
48895 |
|
48896 |
|
|
|
48897 |
|
48898 |
|
48899 |
|
@@ -48937,6 +49084,7 @@ function PublishDateTimePicker(_ref, ref) {
|
|
48937 |
|
48938 |
|
48939 |
|
|
|
48940 |
|
48941 |
|
48942 |
|
@@ -49285,7 +49433,7 @@ function hashOptions(options) {
|
|
49285 |
return hash;
|
49286 |
}
|
49287 |
|
49288 |
-
/* harmony default export */
|
49289 |
|
49290 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/index.js
|
49291 |
|
@@ -49304,7 +49452,8 @@ function hashOptions(options) {
|
|
49304 |
|
49305 |
|
49306 |
|
49307 |
-
}();
|
|
|
49308 |
(window.wp = window.wp || {}).blockEditor = __webpack_exports__;
|
49309 |
/******/ })()
|
49310 |
;
|
1 |
+
/******/ (() => { // webpackBootstrap
|
2 |
/******/ var __webpack_modules__ = ({
|
3 |
|
4 |
/***/ 6411:
|
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 |
/***/ }),
|
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 |
/***/ }),
|
390 |
|
391 |
/***/ 1198:
|
392 |
+
/***/ ((__unused_webpack_module, exports) => {
|
393 |
|
394 |
"use strict";
|
395 |
/*istanbul ignore start*/
|
700 |
/***/ }),
|
701 |
|
702 |
/***/ 1973:
|
703 |
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
704 |
|
705 |
"use strict";
|
706 |
var __webpack_unused_export__;
|
745 |
/***/ }),
|
746 |
|
747 |
/***/ 1345:
|
748 |
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
749 |
|
750 |
"use strict";
|
751 |
|
886 |
/***/ }),
|
887 |
|
888 |
/***/ 5425:
|
889 |
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
890 |
|
891 |
"use strict";
|
892 |
|
896 |
/***/ }),
|
897 |
|
898 |
/***/ 5022:
|
899 |
+
/***/ ((module) => {
|
900 |
|
901 |
"use strict";
|
902 |
|
1342 |
/***/ }),
|
1343 |
|
1344 |
/***/ 8575:
|
1345 |
+
/***/ ((module) => {
|
1346 |
|
1347 |
if (typeof Object.create === 'function') {
|
1348 |
// implementation from standard node.js 'util' module
|
1372 |
/***/ }),
|
1373 |
|
1374 |
/***/ 9894:
|
1375 |
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1376 |
|
1377 |
// Load in dependencies
|
1378 |
var computedStyle = __webpack_require__(4827);
|
1476 |
/***/ }),
|
1477 |
|
1478 |
/***/ 5372:
|
1479 |
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1480 |
|
1481 |
"use strict";
|
1482 |
/**
|
1548 |
/***/ }),
|
1549 |
|
1550 |
/***/ 2652:
|
1551 |
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1552 |
|
1553 |
/**
|
1554 |
* Copyright (c) 2013-present, Facebook, Inc.
|
1567 |
/***/ }),
|
1568 |
|
1569 |
/***/ 9567:
|
1570 |
+
/***/ ((module) => {
|
1571 |
|
1572 |
"use strict";
|
1573 |
/**
|
1721 |
/***/ }),
|
1722 |
|
1723 |
/***/ 773:
|
1724 |
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
1725 |
|
1726 |
"use strict";
|
1727 |
var __webpack_unused_export__;
|
1734 |
/***/ }),
|
1735 |
|
1736 |
/***/ 3124:
|
1737 |
+
/***/ ((module) => {
|
1738 |
|
1739 |
var traverse = module.exports = function (obj) {
|
1740 |
return new Traverse(obj);
|
2055 |
/***/ }),
|
2056 |
|
2057 |
/***/ 9196:
|
2058 |
+
/***/ ((module) => {
|
2059 |
|
2060 |
"use strict";
|
2061 |
module.exports = window["React"];
|
2090 |
/******/
|
2091 |
/************************************************************************/
|
2092 |
/******/ /* webpack/runtime/compat get default export */
|
2093 |
+
/******/ (() => {
|
2094 |
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
2095 |
+
/******/ __webpack_require__.n = (module) => {
|
2096 |
/******/ var getter = module && module.__esModule ?
|
2097 |
+
/******/ () => (module['default']) :
|
2098 |
+
/******/ () => (module);
|
2099 |
/******/ __webpack_require__.d(getter, { a: getter });
|
2100 |
/******/ return getter;
|
2101 |
/******/ };
|
2102 |
+
/******/ })();
|
2103 |
/******/
|
2104 |
/******/ /* webpack/runtime/define property getters */
|
2105 |
+
/******/ (() => {
|
2106 |
/******/ // define getter functions for harmony exports
|
2107 |
+
/******/ __webpack_require__.d = (exports, definition) => {
|
2108 |
/******/ for(var key in definition) {
|
2109 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
2110 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
2111 |
/******/ }
|
2112 |
/******/ }
|
2113 |
/******/ };
|
2114 |
+
/******/ })();
|
2115 |
/******/
|
2116 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
2117 |
+
/******/ (() => {
|
2118 |
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
2119 |
+
/******/ })();
|
2120 |
/******/
|
2121 |
/******/ /* webpack/runtime/make namespace object */
|
2122 |
+
/******/ (() => {
|
2123 |
/******/ // define __esModule on exports
|
2124 |
+
/******/ __webpack_require__.r = (exports) => {
|
2125 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
2126 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
2127 |
/******/ }
|
2128 |
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
2129 |
/******/ };
|
2130 |
+
/******/ })();
|
2131 |
/******/
|
2132 |
/************************************************************************/
|
2133 |
var __webpack_exports__ = {};
|
2134 |
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
2135 |
+
(() => {
|
2136 |
"use strict";
|
2137 |
// ESM COMPAT FLAG
|
2138 |
__webpack_require__.r(__webpack_exports__);
|
2139 |
|
2140 |
// EXPORTS
|
2141 |
__webpack_require__.d(__webpack_exports__, {
|
2142 |
+
"AlignmentControl": () => (/* reexport */ AlignmentControl),
|
2143 |
+
"AlignmentToolbar": () => (/* reexport */ AlignmentToolbar),
|
2144 |
+
"Autocomplete": () => (/* reexport */ autocomplete),
|
2145 |
+
"BlockAlignmentControl": () => (/* reexport */ BlockAlignmentControl),
|
2146 |
+
"BlockAlignmentToolbar": () => (/* reexport */ BlockAlignmentToolbar),
|
2147 |
+
"BlockBreadcrumb": () => (/* reexport */ block_breadcrumb),
|
2148 |
+
"BlockColorsStyleSelector": () => (/* reexport */ color_style_selector),
|
2149 |
+
"BlockContextProvider": () => (/* reexport */ BlockContextProvider),
|
2150 |
+
"BlockControls": () => (/* reexport */ block_controls),
|
2151 |
+
"BlockEdit": () => (/* reexport */ BlockEdit),
|
2152 |
+
"BlockEditorKeyboardShortcuts": () => (/* reexport */ keyboard_shortcuts),
|
2153 |
+
"BlockEditorProvider": () => (/* reexport */ provider),
|
2154 |
+
"BlockFormatControls": () => (/* reexport */ BlockFormatControls),
|
2155 |
+
"BlockIcon": () => (/* reexport */ block_icon),
|
2156 |
+
"BlockInspector": () => (/* reexport */ block_inspector),
|
2157 |
+
"BlockList": () => (/* reexport */ BlockList),
|
2158 |
+
"BlockMover": () => (/* reexport */ block_mover),
|
2159 |
+
"BlockNavigationDropdown": () => (/* reexport */ dropdown),
|
2160 |
+
"BlockPreview": () => (/* reexport */ block_preview),
|
2161 |
+
"BlockSelectionClearer": () => (/* reexport */ BlockSelectionClearer),
|
2162 |
+
"BlockSettingsMenu": () => (/* reexport */ block_settings_menu),
|
2163 |
+
"BlockSettingsMenuControls": () => (/* reexport */ block_settings_menu_controls),
|
2164 |
+
"BlockStyles": () => (/* reexport */ block_styles),
|
2165 |
+
"BlockTitle": () => (/* reexport */ BlockTitle),
|
2166 |
+
"BlockToolbar": () => (/* reexport */ block_toolbar),
|
2167 |
+
"BlockTools": () => (/* reexport */ BlockTools),
|
2168 |
+
"BlockVerticalAlignmentControl": () => (/* reexport */ BlockVerticalAlignmentControl),
|
2169 |
+
"BlockVerticalAlignmentToolbar": () => (/* reexport */ BlockVerticalAlignmentToolbar),
|
2170 |
+
"ButtonBlockAppender": () => (/* reexport */ button_block_appender),
|
2171 |
+
"ButtonBlockerAppender": () => (/* reexport */ ButtonBlockerAppender),
|
2172 |
+
"ColorPalette": () => (/* reexport */ color_palette),
|
2173 |
+
"ColorPaletteControl": () => (/* reexport */ ColorPaletteControl),
|
2174 |
+
"ContrastChecker": () => (/* reexport */ contrast_checker),
|
2175 |
+
"CopyHandler": () => (/* reexport */ copy_handler),
|
2176 |
+
"DefaultBlockAppender": () => (/* reexport */ default_block_appender),
|
2177 |
+
"FontSizePicker": () => (/* reexport */ font_size_picker),
|
2178 |
+
"InnerBlocks": () => (/* reexport */ inner_blocks),
|
2179 |
+
"Inserter": () => (/* reexport */ inserter),
|
2180 |
+
"InspectorAdvancedControls": () => (/* reexport */ InspectorAdvancedControls),
|
2181 |
+
"InspectorControls": () => (/* reexport */ inspector_controls),
|
2182 |
+
"JustifyContentControl": () => (/* reexport */ JustifyContentControl),
|
2183 |
+
"JustifyToolbar": () => (/* reexport */ JustifyToolbar),
|
2184 |
+
"LineHeightControl": () => (/* reexport */ line_height_control),
|
2185 |
+
"MediaPlaceholder": () => (/* reexport */ media_placeholder),
|
2186 |
+
"MediaReplaceFlow": () => (/* reexport */ media_replace_flow),
|
2187 |
+
"MediaUpload": () => (/* reexport */ media_upload),
|
2188 |
+
"MediaUploadCheck": () => (/* reexport */ media_upload_check),
|
2189 |
+
"MultiSelectScrollIntoView": () => (/* reexport */ MultiSelectScrollIntoView),
|
2190 |
+
"NavigableToolbar": () => (/* reexport */ navigable_toolbar),
|
2191 |
+
"ObserveTyping": () => (/* reexport */ observe_typing),
|
2192 |
+
"PanelColorSettings": () => (/* reexport */ panel_color_settings),
|
2193 |
+
"PlainText": () => (/* reexport */ plain_text),
|
2194 |
+
"RichText": () => (/* reexport */ rich_text),
|
2195 |
+
"RichTextShortcut": () => (/* reexport */ RichTextShortcut),
|
2196 |
+
"RichTextToolbarButton": () => (/* reexport */ RichTextToolbarButton),
|
2197 |
+
"SETTINGS_DEFAULTS": () => (/* reexport */ SETTINGS_DEFAULTS),
|
2198 |
+
"SkipToSelectedBlock": () => (/* reexport */ skip_to_selected_block),
|
2199 |
+
"ToolSelector": () => (/* reexport */ tool_selector),
|
2200 |
+
"Typewriter": () => (/* reexport */ typewriter),
|
2201 |
+
"URLInput": () => (/* reexport */ url_input),
|
2202 |
+
"URLInputButton": () => (/* reexport */ url_input_button),
|
2203 |
+
"URLPopover": () => (/* reexport */ url_popover),
|
2204 |
+
"Warning": () => (/* reexport */ warning),
|
2205 |
+
"WritingFlow": () => (/* reexport */ writing_flow),
|
2206 |
+
"__experimentalBlockAlignmentMatrixControl": () => (/* reexport */ block_alignment_matrix_control),
|
2207 |
+
"__experimentalBlockFullHeightAligmentControl": () => (/* reexport */ block_full_height_alignment_control),
|
2208 |
+
"__experimentalBlockPatternSetup": () => (/* reexport */ block_pattern_setup),
|
2209 |
+
"__experimentalBlockPatternsList": () => (/* reexport */ block_patterns_list),
|
2210 |
+
"__experimentalBlockVariationPicker": () => (/* reexport */ block_variation_picker),
|
2211 |
+
"__experimentalBlockVariationTransforms": () => (/* reexport */ block_variation_transforms),
|
2212 |
+
"__experimentalBorderRadiusControl": () => (/* reexport */ BorderRadiusControl),
|
2213 |
+
"__experimentalColorGradientControl": () => (/* reexport */ control),
|
2214 |
+
"__experimentalColorGradientSettingsDropdown": () => (/* reexport */ ColorGradientSettingsDropdown),
|
2215 |
+
"__experimentalDateFormatPicker": () => (/* reexport */ DateFormatPicker),
|
2216 |
+
"__experimentalDuotoneControl": () => (/* reexport */ duotone_control),
|
2217 |
+
"__experimentalElementButtonClassName": () => (/* reexport */ __experimentalElementButtonClassName),
|
2218 |
+
"__experimentalFontAppearanceControl": () => (/* reexport */ FontAppearanceControl),
|
2219 |
+
"__experimentalFontFamilyControl": () => (/* reexport */ FontFamilyControl),
|
2220 |
+
"__experimentalGetBorderClassesAndStyles": () => (/* reexport */ getBorderClassesAndStyles),
|
2221 |
+
"__experimentalGetColorClassesAndStyles": () => (/* reexport */ getColorClassesAndStyles),
|
2222 |
+
"__experimentalGetGradientClass": () => (/* reexport */ __experimentalGetGradientClass),
|
2223 |
+
"__experimentalGetGradientObjectByGradientValue": () => (/* reexport */ __experimentalGetGradientObjectByGradientValue),
|
2224 |
+
"__experimentalGetMatchingVariation": () => (/* reexport */ __experimentalGetMatchingVariation),
|
2225 |
+
"__experimentalGetSpacingClassesAndStyles": () => (/* reexport */ getSpacingClassesAndStyles),
|
2226 |
+
"__experimentalImageEditingProvider": () => (/* reexport */ ImageEditingProvider),
|
2227 |
+
"__experimentalImageEditor": () => (/* reexport */ ImageEditor),
|
2228 |
+
"__experimentalImageSizeControl": () => (/* reexport */ ImageSizeControl),
|
2229 |
+
"__experimentalImageURLInputUI": () => (/* reexport */ ImageURLInputUI),
|
2230 |
+
"__experimentalInspectorPopoverHeader": () => (/* reexport */ InspectorPopoverHeader),
|
2231 |
+
"__experimentalLayoutStyle": () => (/* reexport */ LayoutStyle),
|
2232 |
+
"__experimentalLetterSpacingControl": () => (/* reexport */ LetterSpacingControl),
|
2233 |
+
"__experimentalLibrary": () => (/* reexport */ library),
|
2234 |
+
"__experimentalLinkControl": () => (/* reexport */ link_control),
|
2235 |
+
"__experimentalLinkControlSearchInput": () => (/* reexport */ search_input),
|
2236 |
+
"__experimentalLinkControlSearchItem": () => (/* reexport */ search_item),
|
2237 |
+
"__experimentalLinkControlSearchResults": () => (/* reexport */ LinkControlSearchResults),
|
2238 |
+
"__experimentalListView": () => (/* reexport */ components_list_view),
|
2239 |
+
"__experimentalPanelColorGradientSettings": () => (/* reexport */ panel_color_gradient_settings),
|
2240 |
+
"__experimentalPreviewOptions": () => (/* reexport */ PreviewOptions),
|
2241 |
+
"__experimentalPublishDateTimePicker": () => (/* reexport */ publish_date_time_picker),
|
2242 |
+
"__experimentalResponsiveBlockControl": () => (/* reexport */ responsive_block_control),
|
2243 |
+
"__experimentalTextDecorationControl": () => (/* reexport */ TextDecorationControl),
|
2244 |
+
"__experimentalTextTransformControl": () => (/* reexport */ TextTransformControl),
|
2245 |
+
"__experimentalUnitControl": () => (/* reexport */ UnitControl),
|
2246 |
+
"__experimentalUseBlockOverlayActive": () => (/* reexport */ useBlockOverlayActive),
|
2247 |
+
"__experimentalUseBlockPreview": () => (/* reexport */ useBlockPreview),
|
2248 |
+
"__experimentalUseBorderProps": () => (/* reexport */ useBorderProps),
|
2249 |
+
"__experimentalUseColorProps": () => (/* reexport */ useColorProps),
|
2250 |
+
"__experimentalUseCustomSides": () => (/* reexport */ useCustomSides),
|
2251 |
+
"__experimentalUseGradient": () => (/* reexport */ __experimentalUseGradient),
|
2252 |
+
"__experimentalUseMultipleOriginColorsAndGradients": () => (/* reexport */ useMultipleOriginColorsAndGradients),
|
2253 |
+
"__experimentalUseNoRecursiveRenders": () => (/* reexport */ useNoRecursiveRenders),
|
2254 |
+
"__experimentalUseResizeCanvas": () => (/* reexport */ useResizeCanvas),
|
2255 |
+
"__unstableBlockNameContext": () => (/* reexport */ block_name_context),
|
2256 |
+
"__unstableBlockSettingsMenuFirstItem": () => (/* reexport */ block_settings_menu_first_item),
|
2257 |
+
"__unstableBlockToolbarLastItem": () => (/* reexport */ block_toolbar_last_item),
|
2258 |
+
"__unstableEditorStyles": () => (/* reexport */ EditorStyles),
|
2259 |
+
"__unstableIframe": () => (/* reexport */ iframe),
|
2260 |
+
"__unstableInserterMenuExtension": () => (/* reexport */ inserter_menu_extension),
|
2261 |
+
"__unstablePresetDuotoneFilter": () => (/* reexport */ PresetDuotoneFilter),
|
2262 |
+
"__unstableRichTextInputEvent": () => (/* reexport */ __unstableRichTextInputEvent),
|
2263 |
+
"__unstableUseBlockSelectionClearer": () => (/* reexport */ useBlockSelectionClearer),
|
2264 |
+
"__unstableUseClipboardHandler": () => (/* reexport */ useClipboardHandler),
|
2265 |
+
"__unstableUseMouseMoveTypingReset": () => (/* reexport */ useMouseMoveTypingReset),
|
2266 |
+
"__unstableUseTypewriter": () => (/* reexport */ useTypewriter),
|
2267 |
+
"__unstableUseTypingObserver": () => (/* reexport */ useTypingObserver),
|
2268 |
+
"createCustomColorsHOC": () => (/* reexport */ createCustomColorsHOC),
|
2269 |
+
"getColorClassName": () => (/* reexport */ getColorClassName),
|
2270 |
+
"getColorObjectByAttributeValues": () => (/* reexport */ getColorObjectByAttributeValues),
|
2271 |
+
"getColorObjectByColorValue": () => (/* reexport */ getColorObjectByColorValue),
|
2272 |
+
"getFontSize": () => (/* reexport */ getFontSize),
|
2273 |
+
"getFontSizeClass": () => (/* reexport */ getFontSizeClass),
|
2274 |
+
"getFontSizeObjectByValue": () => (/* reexport */ getFontSizeObjectByValue),
|
2275 |
+
"getGradientSlugByValue": () => (/* reexport */ getGradientSlugByValue),
|
2276 |
+
"getGradientValueBySlug": () => (/* reexport */ getGradientValueBySlug),
|
2277 |
+
"getPxFromCssUnit": () => (/* reexport */ parse_css_unit_to_px),
|
2278 |
+
"store": () => (/* reexport */ store),
|
2279 |
+
"storeConfig": () => (/* reexport */ storeConfig),
|
2280 |
+
"transformStyles": () => (/* reexport */ transform_styles),
|
2281 |
+
"useBlockDisplayInformation": () => (/* reexport */ useBlockDisplayInformation),
|
2282 |
+
"useBlockEditContext": () => (/* reexport */ useBlockEditContext),
|
2283 |
+
"useBlockProps": () => (/* reexport */ useBlockProps),
|
2284 |
+
"useCachedTruthy": () => (/* reexport */ useCachedTruthy),
|
2285 |
+
"useInnerBlocksProps": () => (/* reexport */ useInnerBlocksProps),
|
2286 |
+
"useSetting": () => (/* reexport */ useSetting),
|
2287 |
+
"withColorContext": () => (/* reexport */ with_color_context),
|
2288 |
+
"withColors": () => (/* reexport */ withColors),
|
2289 |
+
"withFontSizes": () => (/* reexport */ with_font_sizes)
|
2290 |
});
|
2291 |
|
2292 |
// NAMESPACE OBJECT: ./packages/block-editor/build-module/store/selectors.js
|
2293 |
var selectors_namespaceObject = {};
|
2294 |
__webpack_require__.r(selectors_namespaceObject);
|
2295 |
__webpack_require__.d(selectors_namespaceObject, {
|
2296 |
+
"__experimentalGetActiveBlockIdByBlockNames": () => (__experimentalGetActiveBlockIdByBlockNames),
|
2297 |
+
"__experimentalGetAllowedBlocks": () => (__experimentalGetAllowedBlocks),
|
2298 |
+
"__experimentalGetAllowedPatterns": () => (__experimentalGetAllowedPatterns),
|
2299 |
+
"__experimentalGetBlockListSettingsForBlocks": () => (__experimentalGetBlockListSettingsForBlocks),
|
2300 |
+
"__experimentalGetDirectInsertBlock": () => (__experimentalGetDirectInsertBlock),
|
2301 |
+
"__experimentalGetGlobalBlocksByName": () => (__experimentalGetGlobalBlocksByName),
|
2302 |
+
"__experimentalGetLastBlockAttributeChanges": () => (__experimentalGetLastBlockAttributeChanges),
|
2303 |
+
"__experimentalGetParsedPattern": () => (__experimentalGetParsedPattern),
|
2304 |
+
"__experimentalGetPatternTransformItems": () => (__experimentalGetPatternTransformItems),
|
2305 |
+
"__experimentalGetPatternsByBlockTypes": () => (__experimentalGetPatternsByBlockTypes),
|
2306 |
+
"__experimentalGetReusableBlockTitle": () => (__experimentalGetReusableBlockTitle),
|
2307 |
+
"__unstableGetBlockWithoutInnerBlocks": () => (__unstableGetBlockWithoutInnerBlocks),
|
2308 |
+
"__unstableGetClientIdWithClientIdsTree": () => (__unstableGetClientIdWithClientIdsTree),
|
2309 |
+
"__unstableGetClientIdsTree": () => (__unstableGetClientIdsTree),
|
2310 |
+
"__unstableGetSelectedBlocksWithPartialSelection": () => (__unstableGetSelectedBlocksWithPartialSelection),
|
2311 |
+
"__unstableGetVisibleBlocks": () => (__unstableGetVisibleBlocks),
|
2312 |
+
"__unstableIsFullySelected": () => (__unstableIsFullySelected),
|
2313 |
+
"__unstableIsLastBlockChangeIgnored": () => (__unstableIsLastBlockChangeIgnored),
|
2314 |
+
"__unstableIsSelectionCollapsed": () => (__unstableIsSelectionCollapsed),
|
2315 |
+
"__unstableIsSelectionMergeable": () => (__unstableIsSelectionMergeable),
|
2316 |
+
"areInnerBlocksControlled": () => (areInnerBlocksControlled),
|
2317 |
+
"canEditBlock": () => (canEditBlock),
|
2318 |
+
"canInsertBlockType": () => (canInsertBlockType),
|
2319 |
+
"canInsertBlocks": () => (canInsertBlocks),
|
2320 |
+
"canLockBlockType": () => (canLockBlockType),
|
2321 |
+
"canMoveBlock": () => (canMoveBlock),
|
2322 |
+
"canMoveBlocks": () => (canMoveBlocks),
|
2323 |
+
"canRemoveBlock": () => (canRemoveBlock),
|
2324 |
+
"canRemoveBlocks": () => (canRemoveBlocks),
|
2325 |
+
"didAutomaticChange": () => (didAutomaticChange),
|
2326 |
+
"getAdjacentBlockClientId": () => (getAdjacentBlockClientId),
|
2327 |
+
"getBlock": () => (getBlock),
|
2328 |
+
"getBlockAttributes": () => (getBlockAttributes),
|
2329 |
+
"getBlockCount": () => (getBlockCount),
|
2330 |
+
"getBlockHierarchyRootClientId": () => (getBlockHierarchyRootClientId),
|
2331 |
+
"getBlockIndex": () => (getBlockIndex),
|
2332 |
+
"getBlockInsertionPoint": () => (getBlockInsertionPoint),
|
2333 |
+
"getBlockListSettings": () => (getBlockListSettings),
|
2334 |
+
"getBlockMode": () => (getBlockMode),
|
2335 |
+
"getBlockName": () => (getBlockName),
|
2336 |
+
"getBlockOrder": () => (getBlockOrder),
|
2337 |
+
"getBlockParents": () => (getBlockParents),
|
2338 |
+
"getBlockParentsByBlockName": () => (getBlockParentsByBlockName),
|
2339 |
+
"getBlockRootClientId": () => (getBlockRootClientId),
|
2340 |
+
"getBlockSelectionEnd": () => (getBlockSelectionEnd),
|
2341 |
+
"getBlockSelectionStart": () => (getBlockSelectionStart),
|
2342 |
+
"getBlockTransformItems": () => (getBlockTransformItems),
|
2343 |
+
"getBlocks": () => (getBlocks),
|
2344 |
+
"getBlocksByClientId": () => (getBlocksByClientId),
|
2345 |
+
"getClientIdsOfDescendants": () => (getClientIdsOfDescendants),
|
2346 |
+
"getClientIdsWithDescendants": () => (getClientIdsWithDescendants),
|
2347 |
+
"getDraggedBlockClientIds": () => (getDraggedBlockClientIds),
|
2348 |
+
"getFirstMultiSelectedBlockClientId": () => (getFirstMultiSelectedBlockClientId),
|
2349 |
+
"getGlobalBlockCount": () => (getGlobalBlockCount),
|
2350 |
+
"getInserterItems": () => (getInserterItems),
|
2351 |
+
"getLastMultiSelectedBlockClientId": () => (getLastMultiSelectedBlockClientId),
|
2352 |
+
"getLowestCommonAncestorWithSelectedBlock": () => (getLowestCommonAncestorWithSelectedBlock),
|
2353 |
+
"getMultiSelectedBlockClientIds": () => (getMultiSelectedBlockClientIds),
|
2354 |
+
"getMultiSelectedBlocks": () => (getMultiSelectedBlocks),
|
2355 |
+
"getMultiSelectedBlocksEndClientId": () => (getMultiSelectedBlocksEndClientId),
|
2356 |
+
"getMultiSelectedBlocksStartClientId": () => (getMultiSelectedBlocksStartClientId),
|
2357 |
+
"getNextBlockClientId": () => (getNextBlockClientId),
|
2358 |
+
"getPreviousBlockClientId": () => (getPreviousBlockClientId),
|
2359 |
+
"getSelectedBlock": () => (getSelectedBlock),
|
2360 |
+
"getSelectedBlockClientId": () => (getSelectedBlockClientId),
|
2361 |
+
"getSelectedBlockClientIds": () => (getSelectedBlockClientIds),
|
2362 |
+
"getSelectedBlockCount": () => (getSelectedBlockCount),
|
2363 |
+
"getSelectedBlocksInitialCaretPosition": () => (getSelectedBlocksInitialCaretPosition),
|
2364 |
+
"getSelectionEnd": () => (getSelectionEnd),
|
2365 |
+
"getSelectionStart": () => (getSelectionStart),
|
2366 |
+
"getSettings": () => (getSettings),
|
2367 |
+
"getTemplate": () => (getTemplate),
|
2368 |
+
"getTemplateLock": () => (getTemplateLock),
|
2369 |
+
"hasBlockMovingClientId": () => (selectors_hasBlockMovingClientId),
|
2370 |
+
"hasInserterItems": () => (hasInserterItems),
|
2371 |
+
"hasMultiSelection": () => (hasMultiSelection),
|
2372 |
+
"hasSelectedBlock": () => (hasSelectedBlock),
|
2373 |
+
"hasSelectedInnerBlock": () => (hasSelectedInnerBlock),
|
2374 |
+
"isAncestorBeingDragged": () => (isAncestorBeingDragged),
|
2375 |
+
"isAncestorMultiSelected": () => (isAncestorMultiSelected),
|
2376 |
+
"isBlockBeingDragged": () => (isBlockBeingDragged),
|
2377 |
+
"isBlockHighlighted": () => (isBlockHighlighted),
|
2378 |
+
"isBlockInsertionPointVisible": () => (isBlockInsertionPointVisible),
|
2379 |
+
"isBlockMultiSelected": () => (isBlockMultiSelected),
|
2380 |
+
"isBlockSelected": () => (isBlockSelected),
|
2381 |
+
"isBlockValid": () => (isBlockValid),
|
2382 |
+
"isBlockVisible": () => (isBlockVisible),
|
2383 |
+
"isBlockWithinSelection": () => (isBlockWithinSelection),
|
2384 |
+
"isCaretWithinFormattedText": () => (isCaretWithinFormattedText),
|
2385 |
+
"isDraggingBlocks": () => (isDraggingBlocks),
|
2386 |
+
"isFirstMultiSelectedBlock": () => (isFirstMultiSelectedBlock),
|
2387 |
+
"isLastBlockChangePersistent": () => (isLastBlockChangePersistent),
|
2388 |
+
"isMultiSelecting": () => (selectors_isMultiSelecting),
|
2389 |
+
"isNavigationMode": () => (selectors_isNavigationMode),
|
2390 |
+
"isSelectionEnabled": () => (selectors_isSelectionEnabled),
|
2391 |
+
"isTyping": () => (selectors_isTyping),
|
2392 |
+
"isValidTemplate": () => (isValidTemplate),
|
2393 |
+
"wasBlockJustInserted": () => (wasBlockJustInserted)
|
2394 |
});
|
2395 |
|
2396 |
// NAMESPACE OBJECT: ./packages/block-editor/build-module/store/actions.js
|
2397 |
var actions_namespaceObject = {};
|
2398 |
__webpack_require__.r(actions_namespaceObject);
|
2399 |
__webpack_require__.d(actions_namespaceObject, {
|
2400 |
+
"__unstableDeleteSelection": () => (__unstableDeleteSelection),
|
2401 |
+
"__unstableExpandSelection": () => (__unstableExpandSelection),
|
2402 |
+
"__unstableMarkAutomaticChange": () => (__unstableMarkAutomaticChange),
|
2403 |
+
"__unstableMarkLastChangeAsPersistent": () => (__unstableMarkLastChangeAsPersistent),
|
2404 |
+
"__unstableMarkNextChangeAsNotPersistent": () => (__unstableMarkNextChangeAsNotPersistent),
|
2405 |
+
"__unstableSaveReusableBlock": () => (__unstableSaveReusableBlock),
|
2406 |
+
"__unstableSplitSelection": () => (__unstableSplitSelection),
|
2407 |
+
"clearSelectedBlock": () => (clearSelectedBlock),
|
2408 |
+
"duplicateBlocks": () => (duplicateBlocks),
|
2409 |
+
"enterFormattedText": () => (enterFormattedText),
|
2410 |
+
"exitFormattedText": () => (exitFormattedText),
|
2411 |
+
"flashBlock": () => (flashBlock),
|
2412 |
+
"hideInsertionPoint": () => (hideInsertionPoint),
|
2413 |
+
"insertAfterBlock": () => (insertAfterBlock),
|
2414 |
+
"insertBeforeBlock": () => (insertBeforeBlock),
|
2415 |
+
"insertBlock": () => (insertBlock),
|
2416 |
+
"insertBlocks": () => (insertBlocks),
|
2417 |
+
"insertDefaultBlock": () => (insertDefaultBlock),
|
2418 |
+
"mergeBlocks": () => (mergeBlocks),
|
2419 |
+
"moveBlockToPosition": () => (moveBlockToPosition),
|
2420 |
+
"moveBlocksDown": () => (moveBlocksDown),
|
2421 |
+
"moveBlocksToPosition": () => (moveBlocksToPosition),
|
2422 |
+
"moveBlocksUp": () => (moveBlocksUp),
|
2423 |
+
"multiSelect": () => (multiSelect),
|
2424 |
+
"receiveBlocks": () => (receiveBlocks),
|
2425 |
+
"removeBlock": () => (removeBlock),
|
2426 |
+
"removeBlocks": () => (removeBlocks),
|
2427 |
+
"replaceBlock": () => (replaceBlock),
|
2428 |
+
"replaceBlocks": () => (replaceBlocks),
|
2429 |
+
"replaceInnerBlocks": () => (replaceInnerBlocks),
|
2430 |
+
"resetBlocks": () => (resetBlocks),
|
2431 |
+
"resetSelection": () => (resetSelection),
|
2432 |
+
"selectBlock": () => (selectBlock),
|
2433 |
+
"selectNextBlock": () => (selectNextBlock),
|
2434 |
+
"selectPreviousBlock": () => (selectPreviousBlock),
|
2435 |
+
"selectionChange": () => (selectionChange),
|
2436 |
+
"setBlockMovingClientId": () => (setBlockMovingClientId),
|
2437 |
+
"setBlockVisibility": () => (setBlockVisibility),
|
2438 |
+
"setHasControlledInnerBlocks": () => (setHasControlledInnerBlocks),
|
2439 |
+
"setNavigationMode": () => (setNavigationMode),
|
2440 |
+
"setTemplateValidity": () => (setTemplateValidity),
|
2441 |
+
"showInsertionPoint": () => (showInsertionPoint),
|
2442 |
+
"startDraggingBlocks": () => (startDraggingBlocks),
|
2443 |
+
"startMultiSelect": () => (startMultiSelect),
|
2444 |
+
"startTyping": () => (startTyping),
|
2445 |
+
"stopDraggingBlocks": () => (stopDraggingBlocks),
|
2446 |
+
"stopMultiSelect": () => (stopMultiSelect),
|
2447 |
+
"stopTyping": () => (stopTyping),
|
2448 |
+
"synchronizeTemplate": () => (synchronizeTemplate),
|
2449 |
+
"toggleBlockHighlight": () => (toggleBlockHighlight),
|
2450 |
+
"toggleBlockMode": () => (toggleBlockMode),
|
2451 |
+
"toggleSelection": () => (toggleSelection),
|
2452 |
+
"updateBlock": () => (updateBlock),
|
2453 |
+
"updateBlockAttributes": () => (updateBlockAttributes),
|
2454 |
+
"updateBlockListSettings": () => (updateBlockListSettings),
|
2455 |
+
"updateSettings": () => (updateSettings),
|
2456 |
+
"validateBlocksToTemplate": () => (validateBlocksToTemplate)
|
2457 |
});
|
2458 |
|
2459 |
;// CONCATENATED MODULE: external ["wp","blocks"]
|
2460 |
+
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
|
2461 |
;// CONCATENATED MODULE: external ["wp","hooks"]
|
2462 |
+
const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
|
2463 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/compat.js
|
2464 |
/**
|
2465 |
* WordPress dependencies
|
2500 |
return _extends.apply(this, arguments);
|
2501 |
}
|
2502 |
;// CONCATENATED MODULE: external ["wp","element"]
|
2503 |
+
const external_wp_element_namespaceObject = window["wp"]["element"];
|
2504 |
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
2505 |
var classnames = __webpack_require__(4403);
|
2506 |
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
2507 |
;// CONCATENATED MODULE: external "lodash"
|
2508 |
+
const external_lodash_namespaceObject = window["lodash"];
|
2509 |
;// CONCATENATED MODULE: external ["wp","compose"]
|
2510 |
+
const external_wp_compose_namespaceObject = window["wp"]["compose"];
|
2511 |
;// CONCATENATED MODULE: external ["wp","components"]
|
2512 |
+
const external_wp_components_namespaceObject = window["wp"]["components"];
|
2513 |
;// CONCATENATED MODULE: external ["wp","data"]
|
2514 |
+
const external_wp_data_namespaceObject = window["wp"]["data"];
|
2515 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/groups.js
|
2516 |
/**
|
2517 |
* WordPress dependencies
|
2529 |
other: BlockControlsOther,
|
2530 |
parent: BlockControlsParent
|
2531 |
};
|
2532 |
+
/* harmony default export */ const block_controls_groups = (groups);
|
2533 |
|
2534 |
;// CONCATENATED MODULE: external ["wp","i18n"]
|
2535 |
+
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
2536 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/defaults.js
|
2537 |
/**
|
2538 |
* WordPress dependencies
|
4436 |
|
4437 |
return state;
|
4438 |
}
|
4439 |
+
/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
|
4440 |
blocks,
|
4441 |
isTyping,
|
4442 |
draggedBlocks,
|
4757 |
}
|
4758 |
|
4759 |
;// CONCATENATED MODULE: external ["wp","primitives"]
|
4760 |
+
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
|
4761 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/symbol.js
|
4762 |
|
4763 |
|
4771 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
4772 |
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"
|
4773 |
}));
|
4774 |
+
/* harmony default export */ const library_symbol = (symbol);
|
4775 |
|
4776 |
;// CONCATENATED MODULE: external ["wp","richText"]
|
4777 |
+
const external_wp_richText_namespaceObject = window["wp"]["richText"];
|
4778 |
;// CONCATENATED MODULE: external ["wp","deprecated"]
|
4779 |
+
const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
|
4780 |
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
|
4781 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/utils.js
|
4782 |
/**
|
6121 |
return list;
|
6122 |
}
|
6123 |
|
6124 |
+
if (Array.isArray(list)) {
|
6125 |
// TODO: when there is a canonical way to detect that we are editing a post
|
6126 |
// the following check should be changed to something like:
|
6127 |
// if ( list.includes( 'core/post-content' ) && getEditorMode() === 'post-content' && item === null )
|
7250 |
}, state => [state.blocks.visibility]);
|
7251 |
|
7252 |
;// CONCATENATED MODULE: external ["wp","a11y"]
|
7253 |
+
const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
|
7254 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/actions.js
|
7255 |
/**
|
7256 |
* External dependencies
|
9032 |
}, props));
|
9033 |
};
|
9034 |
|
9035 |
+
/* harmony default export */ const block_controls = (BlockControls);
|
9036 |
|
9037 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-left.js
|
9038 |
|
9047 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9048 |
d: "M9 9v6h11V9H9zM4 20h1.5V4H4v16z"
|
9049 |
}));
|
9050 |
+
/* harmony default export */ const justify_left = (justifyLeft);
|
9051 |
|
9052 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-center.js
|
9053 |
|
9062 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9063 |
d: "M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"
|
9064 |
}));
|
9065 |
+
/* harmony default export */ const justify_center = (justifyCenter);
|
9066 |
|
9067 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-right.js
|
9068 |
|
9077 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9078 |
d: "M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"
|
9079 |
}));
|
9080 |
+
/* harmony default export */ const justify_right = (justifyRight);
|
9081 |
|
9082 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-space-between.js
|
9083 |
|
9092 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9093 |
d: "M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"
|
9094 |
}));
|
9095 |
+
/* harmony default export */ const justify_space_between = (justifySpaceBetween);
|
9096 |
|
9097 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-right.js
|
9098 |
|
9107 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9108 |
d: "M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"
|
9109 |
}));
|
9110 |
+
/* harmony default export */ const arrow_right = (arrowRight);
|
9111 |
|
9112 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-down.js
|
9113 |
|
9122 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
9123 |
d: "M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"
|
9124 |
}));
|
9125 |
+
/* harmony default export */ const arrow_down = (arrowDown);
|
9126 |
|
9127 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/utils.js
|
9128 |
/**
|
9441 |
}
|
9442 |
|
9443 |
;// CONCATENATED MODULE: external ["wp","warning"]
|
9444 |
+
const external_wp_warning_namespaceObject = window["wp"]["warning"];
|
9445 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/groups.js
|
9446 |
/**
|
9447 |
* WordPress dependencies
|
9461 |
dimensions: InspectorControlsDimensions,
|
9462 |
typography: InspectorControlsTypography
|
9463 |
};
|
9464 |
+
/* harmony default export */ const inspector_controls_groups = (groups_groups);
|
9465 |
|
9466 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/fill.js
|
9467 |
|
9784 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/inspector-controls/README.md
|
9785 |
*/
|
9786 |
|
9787 |
+
/* harmony default export */ const inspector_controls = (InspectorControls);
|
9788 |
|
9789 |
;// CONCATENATED MODULE: external ["wp","isShallowEqual"]
|
9790 |
+
const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"];
|
9791 |
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
|
9792 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/use-popover-scroll.js
|
9793 |
/**
|
9828 |
}, [scrollableRef]);
|
9829 |
}
|
9830 |
|
9831 |
+
/* harmony default export */ const use_popover_scroll = (usePopoverScroll);
|
9832 |
|
9833 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-popover/index.js
|
9834 |
|
10763 |
*/
|
10764 |
|
10765 |
|
10766 |
+
/* harmony default export */ const ui = (BlockVerticalAlignmentUI);
|
10767 |
|
10768 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-vertical-alignment-control/index.js
|
10769 |
|
10868 |
}, extraProps));
|
10869 |
}
|
10870 |
|
10871 |
+
/* harmony default export */ const justify_content_control_ui = (JustifyContentUI);
|
10872 |
|
10873 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/justify-content-control/index.js
|
10874 |
|
10935 |
bottom: 'flex-end'
|
10936 |
};
|
10937 |
const flexWrapOptions = ['wrap', 'nowrap'];
|
10938 |
+
/* harmony default export */ const flex = ({
|
10939 |
name: 'flex',
|
10940 |
label: (0,external_wp_i18n_namespaceObject.__)('Flex'),
|
10941 |
inspectorControls: function FlexLayoutInspectorControls(_ref) {
|
11240 |
});
|
11241 |
}
|
11242 |
|
11243 |
+
/* harmony default export */ const build_module_icon = (Icon);
|
11244 |
|
11245 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-center.js
|
11246 |
|
11255 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11256 |
d: "M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"
|
11257 |
}));
|
11258 |
+
/* harmony default export */ const position_center = (positionCenter);
|
11259 |
|
11260 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-wide.js
|
11261 |
|
11270 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11271 |
d: "M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"
|
11272 |
}));
|
11273 |
+
/* harmony default export */ const stretch_wide = (stretchWide);
|
11274 |
|
11275 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/flow.js
|
11276 |
|
11289 |
|
11290 |
|
11291 |
|
11292 |
+
/* harmony default export */ const flow = ({
|
11293 |
name: 'default',
|
11294 |
label: (0,external_wp_i18n_namespaceObject.__)('Flow'),
|
11295 |
inspectorControls: function DefaultLayoutInspectorControls(_ref) {
|
11670 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11671 |
d: "M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"
|
11672 |
}));
|
11673 |
+
/* harmony default export */ const align_none = (alignNone);
|
11674 |
|
11675 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-left.js
|
11676 |
|
11685 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11686 |
d: "M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"
|
11687 |
}));
|
11688 |
+
/* harmony default export */ const position_left = (positionLeft);
|
11689 |
|
11690 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-right.js
|
11691 |
|
11700 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11701 |
d: "M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"
|
11702 |
}));
|
11703 |
+
/* harmony default export */ const position_right = (positionRight);
|
11704 |
|
11705 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-full-width.js
|
11706 |
|
11715 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
11716 |
d: "M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"
|
11717 |
}));
|
11718 |
+
/* harmony default export */ const stretch_full_width = (stretchFullWidth);
|
11719 |
|
11720 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/constants.js
|
11721 |
/**
|
11856 |
return (0,external_wp_element_namespaceObject.createElement)(UIComponent, _extends({}, commonProps, extraProps));
|
11857 |
}
|
11858 |
|
11859 |
+
/* harmony default export */ const block_alignment_control_ui = (BlockAlignmentUI);
|
11860 |
|
11861 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/index.js
|
11862 |
|
12546 |
return generateRule(style, options, ['color', 'background'], 'backgroundColor');
|
12547 |
}
|
12548 |
};
|
12549 |
+
/* harmony default export */ const color_background = (background);
|
12550 |
|
12551 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/color/gradient.js
|
12552 |
/**
|
12559 |
return generateRule(style, options, ['color', 'gradient'], 'background');
|
12560 |
}
|
12561 |
};
|
12562 |
+
/* harmony default export */ const color_gradient = (gradient);
|
12563 |
|
12564 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/color/text.js
|
12565 |
/**
|
12572 |
return generateRule(style, options, ['color', 'text'], 'color');
|
12573 |
}
|
12574 |
};
|
12575 |
+
/* harmony default export */ const color_text = (text_text);
|
12576 |
|
12577 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/color/index.js
|
12578 |
/**
|
12581 |
|
12582 |
|
12583 |
|
12584 |
+
/* harmony default export */ const color = ([color_text, color_gradient, color_background]);
|
12585 |
|
12586 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/spacing/padding.js
|
12587 |
/**
|
12594 |
return generateBoxRules(style, options, ['spacing', 'padding'], 'padding');
|
12595 |
}
|
12596 |
};
|
12597 |
+
/* harmony default export */ const spacing_padding = (padding);
|
12598 |
|
12599 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/spacing/margin.js
|
12600 |
/**
|
12607 |
return generateBoxRules(style, options, ['spacing', 'margin'], 'margin');
|
12608 |
}
|
12609 |
};
|
12610 |
+
/* harmony default export */ const spacing_margin = (margin);
|
12611 |
|
12612 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/spacing/index.js
|
12613 |
/**
|
12615 |
*/
|
12616 |
|
12617 |
|
12618 |
+
/* harmony default export */ const spacing = ([spacing_margin, spacing_padding]);
|
12619 |
|
12620 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/typography/index.js
|
12621 |
/**
|
12664 |
return generateRule(style, options, ['typography', 'textTransform'], 'textTransform');
|
12665 |
}
|
12666 |
};
|
12667 |
+
/* harmony default export */ const typography = ([fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textDecoration, textTransform]);
|
12668 |
|
12669 |
;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/index.js
|
12670 |
/**
|
12732 |
}
|
12733 |
|
12734 |
;// CONCATENATED MODULE: external ["wp","dom"]
|
12735 |
+
const external_wp_dom_namespaceObject = window["wp"]["dom"];
|
12736 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-context/index.js
|
12737 |
|
12738 |
|
12775 |
children: children
|
12776 |
});
|
12777 |
}
|
12778 |
+
/* harmony default export */ const block_context = (block_context_Context);
|
12779 |
|
12780 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/edit.js
|
12781 |
|
12843 |
className: className
|
12844 |
}));
|
12845 |
};
|
12846 |
+
/* harmony default export */ const edit = ((0,external_wp_components_namespaceObject.withFilters)('editor.BlockEdit')(Edit));
|
12847 |
|
12848 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/index.js
|
12849 |
|
12900 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
12901 |
d: "M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"
|
12902 |
}));
|
12903 |
+
/* harmony default export */ const more_horizontal = (moreHorizontal);
|
12904 |
|
12905 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/warning/index.js
|
12906 |
|
12960 |
*/
|
12961 |
|
12962 |
|
12963 |
+
/* harmony default export */ const warning = (Warning);
|
12964 |
|
12965 |
// EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
|
12966 |
var character = __webpack_require__(1973);
|
13076 |
}));
|
13077 |
}
|
13078 |
|
13079 |
+
/* harmony default export */ const block_compare = (BlockCompare);
|
13080 |
|
13081 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-invalid-warning.js
|
13082 |
|
13163 |
return (0,external_wp_blocks_namespaceObject.createBlock)(name, attributes, innerBlocks);
|
13164 |
};
|
13165 |
|
13166 |
+
/* harmony default export */ const block_invalid_warning = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)((select, _ref3) => {
|
13167 |
let {
|
13168 |
clientId
|
13169 |
} = _ref3;
|
13212 |
const block_crash_warning_warning = (0,external_wp_element_namespaceObject.createElement)(warning, {
|
13213 |
className: "block-editor-block-list__block-crash-warning"
|
13214 |
}, (0,external_wp_i18n_namespaceObject.__)('This block has encountered an error and cannot be previewed.'));
|
13215 |
+
/* harmony default export */ const block_crash_warning = (() => block_crash_warning_warning);
|
13216 |
|
13217 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-crash-boundary.js
|
13218 |
/**
|
13244 |
|
13245 |
}
|
13246 |
|
13247 |
+
/* harmony default export */ const block_crash_boundary = (BlockCrashBoundary);
|
13248 |
|
13249 |
// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
|
13250 |
var lib = __webpack_require__(773);
|
13316 |
});
|
13317 |
}
|
13318 |
|
13319 |
+
/* harmony default export */ const block_html = (BlockHTML);
|
13320 |
|
13321 |
;// CONCATENATED MODULE: ./packages/block-editor/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.js
|
13322 |
let updateQueue = makeQueue();
|
17286 |
|
17287 |
|
17288 |
;// CONCATENATED MODULE: external "ReactDOM"
|
17289 |
+
const external_ReactDOM_namespaceObject = window["ReactDOM"];
|
17290 |
;// CONCATENATED MODULE: ./packages/block-editor/node_modules/@react-spring/web/dist/react-spring-web.esm.js
|
17291 |
|
17292 |
|
17702 |
return ref;
|
17703 |
}
|
17704 |
|
17705 |
+
/* harmony default export */ const use_moving_animation = (useMovingAnimation);
|
17706 |
|
17707 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/dom.js
|
17708 |
const BLOCK_SELECTOR = '.block-editor-block-list__block';
|
18185 |
}
|
18186 |
|
18187 |
;// CONCATENATED MODULE: external ["wp","keycodes"]
|
18188 |
+
const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
|
18189 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js
|
18190 |
/**
|
18191 |
* WordPress dependencies
|
18815 |
|
18816 |
};
|
18817 |
});
|
18818 |
+
/* harmony default export */ const 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
|
18819 |
// see issue for more info
|
18820 |
// https://github.com/WordPress/gutenberg/issues/17013
|
18821 |
(0,external_wp_compose_namespaceObject.ifCondition)(_ref5 => {
|
18826 |
}), (0,external_wp_components_namespaceObject.withFilters)('editor.BlockListBlock'))(BlockListBlock));
|
18827 |
|
18828 |
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
|
18829 |
+
const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
|
18830 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/plus.js
|
18831 |
|
18832 |
|
18840 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
18841 |
d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"
|
18842 |
}));
|
18843 |
+
/* harmony default export */ const library_plus = (plus);
|
18844 |
|
18845 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tips.js
|
18846 |
|
18866 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Tip, null, globalTips[randomIndex]);
|
18867 |
}
|
18868 |
|
18869 |
+
/* harmony default export */ const tips = (Tips);
|
18870 |
|
18871 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
|
18872 |
|
18881 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
18882 |
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"
|
18883 |
}));
|
18884 |
+
/* harmony default export */ const block_default = (blockDefault);
|
18885 |
|
18886 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
|
18887 |
|
18932 |
*/
|
18933 |
|
18934 |
|
18935 |
+
/* harmony default export */ const block_icon = ((0,external_wp_element_namespaceObject.memo)(BlockIcon));
|
18936 |
|
18937 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-card/index.js
|
18938 |
|
18981 |
}, description)));
|
18982 |
}
|
18983 |
|
18984 |
+
/* harmony default export */ const block_card = (BlockCard);
|
18985 |
|
18986 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/with-registry-provider.js
|
18987 |
|
19031 |
}, props)));
|
19032 |
});
|
19033 |
}, 'withRegistryProvider');
|
19034 |
+
/* harmony default export */ const with_registry_provider = (withRegistryProvider);
|
19035 |
|
19036 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/use-block-sync.js
|
19037 |
/**
|
19050 |
*/
|
19051 |
|
19052 |
|
19053 |
+
|
19054 |
+
const use_block_sync_noop = () => {};
|
19055 |
/**
|
19056 |
* A function to call when the block value has been updated in the block-editor
|
19057 |
* store.
|
19104 |
* controlling sources do not become dirty.
|
19105 |
*/
|
19106 |
|
19107 |
+
|
19108 |
function useBlockSync(_ref) {
|
19109 |
let {
|
19110 |
clientId = null,
|
19111 |
value: controlledBlocks,
|
19112 |
selection: controlledSelection,
|
19113 |
+
onChange = use_block_sync_noop,
|
19114 |
+
onInput = use_block_sync_noop
|
19115 |
} = _ref;
|
19116 |
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
|
19117 |
const {
|
19320 |
return (0,external_wp_element_namespaceObject.createElement)(BlockRefsProvider, null, children);
|
19321 |
}
|
19322 |
|
19323 |
+
/* harmony default export */ const provider = (with_registry_provider(BlockEditorProvider));
|
19324 |
|
19325 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/live.js
|
19326 |
|
19718 |
}
|
19719 |
|
19720 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-arrow-nav.js
|
|
|
|
|
|
|
|
|
19721 |
/**
|
19722 |
* WordPress dependencies
|
19723 |
*/
|
19725 |
|
19726 |
|
19727 |
|
|
|
19728 |
/**
|
19729 |
* Internal dependencies
|
19730 |
*/
|
19747 |
|
19748 |
if (isVertical && !hasModifier) {
|
19749 |
return true;
|
19750 |
+
}
|
|
|
19751 |
|
19752 |
const {
|
19753 |
tagName
|
19754 |
+
} = element; // Native inputs should not navigate horizontally, unless they are simple types that don't need left/right arrow keys.
|
19755 |
+
|
19756 |
+
if (tagName === 'INPUT') {
|
19757 |
+
const simpleInputTypes = ['button', 'checkbox', 'color', 'file', 'image', 'radio', 'reset', 'submit'];
|
19758 |
+
return simpleInputTypes.includes(element.getAttribute('type'));
|
19759 |
+
} // Native textareas should not navigate horizontally.
|
19760 |
+
|
19761 |
+
|
19762 |
+
return tagName !== 'TEXTAREA';
|
19763 |
}
|
19764 |
/**
|
19765 |
* Returns the optimal tab target from the given focused element in the desired
|
19782 |
let focusableNodes = external_wp_dom_namespaceObject.focus.focusable.find(containerElement);
|
19783 |
|
19784 |
if (isReverse) {
|
19785 |
+
focusableNodes.reverse();
|
19786 |
} // Consider as candidates those focusables after the current target. It's
|
19787 |
// assumed this can only be reached if the target is focusable (on its
|
19788 |
// keydown event), so no need to verify it exists in the set.
|
19817 |
return true;
|
19818 |
}
|
19819 |
|
19820 |
+
return focusableNodes.find(isTabCandidate);
|
19821 |
}
|
19822 |
function useArrowNav() {
|
19823 |
const {
|
19954 |
}
|
19955 |
|
19956 |
;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
|
19957 |
+
const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
|
19958 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-select-all.js
|
19959 |
/**
|
19960 |
* External dependencies
|
20582 |
*/
|
20583 |
|
20584 |
|
20585 |
+
/* harmony default export */ const writing_flow = ((0,external_wp_element_namespaceObject.forwardRef)(WritingFlow));
|
20586 |
|
20587 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/iframe/index.js
|
20588 |
|
20859 |
}, children))), iframeDocument.documentElement)), tabIndex >= 0 && after);
|
20860 |
}
|
20861 |
|
20862 |
+
/* harmony default export */ const iframe = ((0,external_wp_element_namespaceObject.forwardRef)(Iframe));
|
20863 |
|
20864 |
;// CONCATENATED MODULE: ./packages/block-editor/node_modules/colord/index.mjs
|
20865 |
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()})};
|
21577 |
/**
|
21578 |
* Expose `Compiler`.
|
21579 |
*/
|
21580 |
+
/* harmony default export */ const compiler = (Compiler);
|
21581 |
/**
|
21582 |
* Initialize a compiler.
|
21583 |
*/
|
21638 |
* Expose compiler.
|
21639 |
*/
|
21640 |
|
21641 |
+
/* harmony default export */ const compress = (compress_Compiler);
|
21642 |
/**
|
21643 |
* Initialize a new `Compiler`.
|
21644 |
*/
|
21807 |
* Expose compiler.
|
21808 |
*/
|
21809 |
|
21810 |
+
/* harmony default export */ const identity = (identity_Compiler);
|
21811 |
/**
|
21812 |
* Initialize a new `Compiler`.
|
21813 |
*/
|
22046 |
}
|
22047 |
}
|
22048 |
|
22049 |
+
/* harmony default export */ const transform_styles_traverse = (traverseCSS);
|
22050 |
|
22051 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/url-rewrite.js
|
22052 |
/**
|
22182 |
return node;
|
22183 |
};
|
22184 |
|
22185 |
+
/* harmony default export */ const url_rewrite = (rewrite);
|
22186 |
|
22187 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/wrap.js
|
22188 |
/**
|
22234 |
};
|
22235 |
};
|
22236 |
|
22237 |
+
/* harmony default export */ const transforms_wrap = (wrap);
|
22238 |
|
22239 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/index.js
|
22240 |
/**
|
22286 |
});
|
22287 |
};
|
22288 |
|
22289 |
+
/* harmony default export */ const transform_styles = (transform_styles_transformStyles);
|
22290 |
|
22291 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/editor-styles/index.js
|
22292 |
|
22464 |
}))));
|
22465 |
}
|
22466 |
|
22467 |
+
/* harmony default export */ const auto = (AutoBlockPreview);
|
22468 |
|
22469 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/index.js
|
22470 |
|
22535 |
* @return {WPComponent} The component to be rendered.
|
22536 |
*/
|
22537 |
|
22538 |
+
/* harmony default export */ const block_preview = ((0,external_wp_element_namespaceObject.memo)(BlockPreview));
|
22539 |
/**
|
22540 |
* This hook is used to lightly mark an element as a block preview wrapper
|
22541 |
* element. Call this hook and pass the returned props to the element to mark as
|
22634 |
}));
|
22635 |
}
|
22636 |
|
22637 |
+
/* harmony default export */ const preview_panel = (InserterPreviewPanel);
|
22638 |
|
22639 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/context.js
|
22640 |
/**
|
22642 |
*/
|
22643 |
|
22644 |
const InserterListboxContext = (0,external_wp_element_namespaceObject.createContext)();
|
22645 |
+
/* harmony default export */ const context = (InserterListboxContext);
|
22646 |
|
22647 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/item.js
|
22648 |
|
22692 |
});
|
22693 |
}
|
22694 |
|
22695 |
+
/* harmony default export */ const inserter_listbox_item = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxItem));
|
22696 |
|
22697 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/drag-handle.js
|
22698 |
|
22709 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
22710 |
d: "M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"
|
22711 |
}));
|
22712 |
+
/* harmony default export */ const drag_handle = (dragHandle);
|
22713 |
|
22714 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/draggable-chip.js
|
22715 |
|
22790 |
});
|
22791 |
};
|
22792 |
|
22793 |
+
/* harmony default export */ const inserter_draggable_blocks = (InserterDraggableBlocks);
|
22794 |
|
22795 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-list-item/index.js
|
22796 |
|
22925 |
});
|
22926 |
}
|
22927 |
|
22928 |
+
/* harmony default export */ const inserter_list_item = ((0,external_wp_element_namespaceObject.memo)(InserterListItem));
|
22929 |
|
22930 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/group.js
|
22931 |
|
22962 |
}, props));
|
22963 |
}
|
22964 |
|
22965 |
+
/* harmony default export */ const group = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxGroup));
|
22966 |
|
22967 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/row.js
|
22968 |
|
22988 |
}, props));
|
22989 |
}
|
22990 |
|
22991 |
+
/* harmony default export */ const inserter_listbox_row = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxRow));
|
22992 |
|
22993 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-types-list/index.js
|
22994 |
|
23039 |
})))), children);
|
23040 |
}
|
23041 |
|
23042 |
+
/* harmony default export */ const block_types_list = (BlockTypesList);
|
23043 |
|
23044 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/panel.js
|
23045 |
|
23066 |
}, children));
|
23067 |
}
|
23068 |
|
23069 |
+
/* harmony default export */ const panel = (InserterPanel);
|
23070 |
|
23071 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
|
23072 |
/**
|
23119 |
return [items, categories, collections, onSelectItem];
|
23120 |
};
|
23121 |
|
23122 |
+
/* harmony default export */ const use_block_types_state = (useBlockTypesState);
|
23123 |
|
23124 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/index.js
|
23125 |
|
23150 |
}, children);
|
23151 |
}
|
23152 |
|
23153 |
+
/* harmony default export */ const inserter_listbox = (InserterListbox);
|
23154 |
|
23155 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-types-tab.js
|
23156 |
|
23284 |
}));
|
23285 |
})));
|
23286 |
}
|
23287 |
+
/* harmony default export */ const block_types_tab = (BlockTypesTab);
|
23288 |
|
23289 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/pattern-panel.js
|
23290 |
|
23359 |
}, (0,external_wp_i18n_namespaceObject._x)('Explore', 'Label for showing all block patterns'))));
|
23360 |
}
|
23361 |
|
23362 |
+
/* harmony default export */ const pattern_panel = (PatternInserterPanel);
|
23363 |
|
23364 |
;// CONCATENATED MODULE: external ["wp","notices"]
|
23365 |
+
const external_wp_notices_namespaceObject = window["wp"]["notices"];
|
23366 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.js
|
23367 |
/**
|
23368 |
* External dependencies
|
23419 |
return [patterns, patternCategories, onClickPattern];
|
23420 |
};
|
23421 |
|
23422 |
+
/* harmony default export */ const use_patterns_state = (usePatternsState);
|
23423 |
|
23424 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-patterns-list/index.js
|
23425 |
|
23520 |
}));
|
23521 |
}
|
23522 |
|
23523 |
+
/* harmony default export */ const block_patterns_list = (BlockPatternList);
|
23524 |
|
23525 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/sidebar.js
|
23526 |
|
23594 |
}));
|
23595 |
}
|
23596 |
|
23597 |
+
/* harmony default export */ const sidebar = (PatternExplorerSidebar);
|
23598 |
|
23599 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/no-results.js
|
23600 |
|
23614 |
}), (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No results found.')));
|
23615 |
}
|
23616 |
|
23617 |
+
/* harmony default export */ const no_results = (InserterNoResults);
|
23618 |
|
23619 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.js
|
23620 |
/**
|
23736 |
return [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint];
|
23737 |
}
|
23738 |
|
23739 |
+
/* harmony default export */ const use_insertion_point = (useInsertionPoint);
|
23740 |
|
23741 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-items.js
|
23742 |
/**
|
23793 |
};
|
23794 |
|
23795 |
const removeMatchingTerms = (unmatchedTerms, unprocessedTerms) => {
|
23796 |
+
return unmatchedTerms.filter(term => !getNormalizedSearchTerms(unprocessedTerms).some(unprocessedTerm => unprocessedTerm.includes(term)));
|
23797 |
};
|
23798 |
|
23799 |
const searchBlockItems = (items, categories, collections, searchInput) => {
|
24007 |
})));
|
24008 |
}
|
24009 |
|
24010 |
+
/* harmony default export */ const patterns_list = (PatternList);
|
24011 |
|
24012 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/explorer.js
|
24013 |
|
24060 |
}, (0,external_wp_element_namespaceObject.createElement)(PatternsExplorer, restProps));
|
24061 |
}
|
24062 |
|
24063 |
+
/* harmony default export */ const explorer = (PatternsExplorerModal);
|
24064 |
|
24065 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-tab.js
|
24066 |
|
24197 |
}));
|
24198 |
}
|
24199 |
|
24200 |
+
/* harmony default export */ const block_patterns_tab = (BlockPatternsTabs);
|
24201 |
|
24202 |
;// CONCATENATED MODULE: external ["wp","url"]
|
24203 |
+
const external_wp_url_namespaceObject = window["wp"]["url"];
|
24204 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/reusable-blocks-tab.js
|
24205 |
|
24206 |
|
24280 |
})
|
24281 |
}, (0,external_wp_i18n_namespaceObject.__)('Manage Reusable blocks'))));
|
24282 |
}
|
24283 |
+
/* harmony default export */ const reusable_blocks_tab = (ReusableBlocksTab);
|
24284 |
|
24285 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-menu-extension/index.js
|
24286 |
/**
|
24292 |
Slot
|
24293 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableInserterMenuExtension');
|
24294 |
__unstableInserterMenuExtension.Slot = Slot;
|
24295 |
+
/* harmony default export */ const inserter_menu_extension = (__unstableInserterMenuExtension);
|
24296 |
|
24297 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-results.js
|
24298 |
|
24442 |
}));
|
24443 |
}
|
24444 |
|
24445 |
+
/* harmony default export */ const search_results = (InserterSearchResults);
|
24446 |
|
24447 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tabs.js
|
24448 |
|
24499 |
}, children);
|
24500 |
}
|
24501 |
|
24502 |
+
/* harmony default export */ const tabs = (InserterTabs);
|
24503 |
|
24504 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/menu.js
|
24505 |
|
24651 |
}));
|
24652 |
}
|
24653 |
|
24654 |
+
/* harmony default export */ const menu = ((0,external_wp_element_namespaceObject.forwardRef)(InserterMenu));
|
24655 |
|
24656 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/quick-inserter.js
|
24657 |
|
24984 |
|
24985 |
}
|
24986 |
|
24987 |
+
/* harmony default export */ const inserter = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)((select, _ref4) => {
|
24988 |
let {
|
24989 |
clientId,
|
24990 |
rootClientId
|
25229 |
__experimentalIsQuick: true
|
25230 |
}));
|
25231 |
}
|
25232 |
+
/* harmony default export */ const default_block_appender = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)((select, ownProps) => {
|
25233 |
const {
|
25234 |
getBlockCount,
|
25235 |
getSettings,
|
25357 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/button-block-appender/README.md
|
25358 |
*/
|
25359 |
|
25360 |
+
/* harmony default export */ const button_block_appender = ((0,external_wp_element_namespaceObject.forwardRef)(ButtonBlockAppender));
|
25361 |
|
25362 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list-appender/index.js
|
25363 |
|
25450 |
}, appender);
|
25451 |
}
|
25452 |
|
25453 |
+
/* harmony default export */ const block_list_appender = ((0,external_wp_data_namespaceObject.withSelect)((select, _ref2) => {
|
25454 |
let {
|
25455 |
rootClientId
|
25456 |
} = _ref2;
|
25641 |
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
|
25642 |
}
|
25643 |
|
25644 |
+
/* harmony default export */ const inbetween = (BlockPopoverInbetween);
|
25645 |
|
25646 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/insertion-point.js
|
25647 |
|
26453 |
});
|
26454 |
};
|
26455 |
|
26456 |
+
/* harmony default export */ const block_draggable = (BlockDraggable);
|
26457 |
|
26458 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-selection-button.js
|
26459 |
|
26705 |
})))));
|
26706 |
}
|
26707 |
|
26708 |
+
/* harmony default export */ const block_selection_button = (BlockSelectionButton);
|
26709 |
|
26710 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/navigable-toolbar/index.js
|
26711 |
|
26867 |
}, props), children);
|
26868 |
}
|
26869 |
|
26870 |
+
/* harmony default export */ const navigable_toolbar = (NavigableToolbar);
|
26871 |
|
26872 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right.js
|
26873 |
|
26882 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
26883 |
d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
|
26884 |
}));
|
26885 |
+
/* harmony default export */ const chevron_right = (chevronRight);
|
26886 |
|
26887 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-left.js
|
26888 |
|
26897 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
26898 |
d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
|
26899 |
}));
|
26900 |
+
/* harmony default export */ const chevron_left = (chevronLeft);
|
26901 |
|
26902 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-up.js
|
26903 |
|
26912 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
26913 |
d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
|
26914 |
}));
|
26915 |
+
/* harmony default export */ const chevron_up = (chevronUp);
|
26916 |
|
26917 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-down.js
|
26918 |
|
26927 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
26928 |
d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
|
26929 |
}));
|
26930 |
+
/* harmony default export */ const chevron_down = (chevronDown);
|
26931 |
|
26932 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/mover-description.js
|
26933 |
/**
|
27344 |
*/
|
27345 |
|
27346 |
|
27347 |
+
/* harmony default export */ const block_mover = (BlockMover);
|
27348 |
|
27349 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/utils.js
|
|
|
|
|
|
|
|
|
27350 |
/**
|
27351 |
* WordPress dependencies
|
27352 |
*/
|
27353 |
|
|
|
27354 |
const {
|
27355 |
clearTimeout: utils_clearTimeout,
|
27356 |
setTimeout: utils_setTimeout
|
27357 |
} = window;
|
27358 |
+
|
27359 |
+
const utils_noop = () => {};
|
27360 |
+
|
27361 |
const DEBOUNCE_TIMEOUT = 200;
|
27362 |
/**
|
27363 |
* Hook that creates a showMover state, as well as debounced show/hide callbacks.
|
27374 |
ref,
|
27375 |
isFocused,
|
27376 |
debounceTimeout = DEBOUNCE_TIMEOUT,
|
27377 |
+
onChange = utils_noop
|
27378 |
} = _ref;
|
27379 |
const [showMovers, setShowMovers] = (0,external_wp_element_namespaceObject.useState)(false);
|
27380 |
const timeoutRef = (0,external_wp_element_namespaceObject.useRef)();
|
27458 |
let {
|
27459 |
ref,
|
27460 |
debounceTimeout = DEBOUNCE_TIMEOUT,
|
27461 |
+
onChange = utils_noop
|
27462 |
} = _ref2;
|
27463 |
const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
|
27464 |
const {
|
27634 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
27635 |
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"
|
27636 |
}));
|
27637 |
+
/* harmony default export */ const library_copy = (copy);
|
27638 |
|
27639 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/preview-block-popover.js
|
27640 |
|
27725 |
}));
|
27726 |
};
|
27727 |
|
27728 |
+
/* harmony default export */ const block_transformations_menu = (BlockTransformationsMenu);
|
27729 |
|
27730 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/check.js
|
27731 |
|
27740 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
27741 |
d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
|
27742 |
}));
|
27743 |
+
/* harmony default export */ const library_check = (check);
|
27744 |
|
27745 |
;// CONCATENATED MODULE: external ["wp","tokenList"]
|
27746 |
+
const external_wp_tokenList_namespaceObject = window["wp"]["tokenList"];
|
27747 |
var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_namespaceObject);
|
27748 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/utils.js
|
27749 |
/**
|
27948 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/menu-items.js
|
27949 |
|
27950 |
|
|
|
|
|
|
|
|
|
27951 |
/**
|
27952 |
* WordPress dependencies
|
27953 |
*/
|
27954 |
|
27955 |
|
|
|
27956 |
/**
|
27957 |
* Internal dependencies
|
27958 |
*/
|
27959 |
|
27960 |
|
27961 |
+
|
27962 |
+
const menu_items_noop = () => {};
|
27963 |
+
|
27964 |
function BlockStylesMenuItems(_ref) {
|
27965 |
let {
|
27966 |
clientId,
|
27967 |
+
onSwitch = menu_items_noop
|
27968 |
} = _ref;
|
27969 |
const {
|
27970 |
onSelect,
|
28180 |
}, []), [patterns, selectedBlocks]);
|
28181 |
};
|
28182 |
|
28183 |
+
/* harmony default export */ const use_transformed_patterns = (useTransformedPatterns);
|
28184 |
|
28185 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/pattern-transformations-menu.js
|
28186 |
|
28293 |
}, pattern.description));
|
28294 |
}
|
28295 |
|
28296 |
+
/* harmony default export */ const pattern_transformations_menu = (PatternTransformationsMenu);
|
28297 |
|
28298 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/index.js
|
28299 |
|
28491 |
blocks: blocks
|
28492 |
});
|
28493 |
};
|
28494 |
+
/* harmony default export */ const block_switcher = (BlockSwitcher);
|
28495 |
|
28496 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/block-toolbar-last-item.js
|
28497 |
/**
|
28503 |
Slot: block_toolbar_last_item_Slot
|
28504 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableBlockToolbarLastItem');
|
28505 |
__unstableBlockToolbarLastItem.Slot = block_toolbar_last_item_Slot;
|
28506 |
+
/* harmony default export */ const block_toolbar_last_item = (__unstableBlockToolbarLastItem);
|
28507 |
|
28508 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/more-vertical.js
|
28509 |
|
28518 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
28519 |
d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
|
28520 |
}));
|
28521 |
+
/* harmony default export */ const more_vertical = (moreVertical);
|
28522 |
|
28523 |
;// CONCATENATED MODULE: external ["wp","blob"]
|
28524 |
+
const external_wp_blob_namespaceObject = window["wp"]["blob"];
|
28525 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/pasting.js
|
28526 |
/**
|
28527 |
* WordPress dependencies
|
28734 |
}
|
28735 |
|
28736 |
const serialized = (0,external_wp_blocks_namespaceObject.serialize)(blocks);
|
28737 |
+
event.clipboardData.setData('text/plain', toPlainText(serialized));
|
28738 |
event.clipboardData.setData('text/html', serialized);
|
28739 |
}
|
28740 |
}
|
28790 |
ref: useClipboardHandler()
|
28791 |
}, children);
|
28792 |
}
|
28793 |
+
/**
|
28794 |
+
* Given a string of HTML representing serialized blocks, returns the plain
|
28795 |
+
* text extracted after stripping the HTML of any tags and fixing line breaks.
|
28796 |
+
*
|
28797 |
+
* @param {string} html Serialized blocks.
|
28798 |
+
* @return {string} The plain-text content with any html removed.
|
28799 |
+
*/
|
28800 |
+
|
28801 |
+
|
28802 |
+
function toPlainText(html) {
|
28803 |
+
// Manually handle BR tags as line breaks prior to `stripHTML` call
|
28804 |
+
html = html.replace(/<br>/g, '\n');
|
28805 |
+
const plainText = (0,external_wp_dom_namespaceObject.__unstableStripHTML)(html).trim(); // Merge any consecutive line breaks
|
28806 |
+
|
28807 |
+
return plainText.replace(/\n\n+/g, '\n\n');
|
28808 |
+
}
|
28809 |
/**
|
28810 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/copy-handler/README.md
|
28811 |
*/
|
28812 |
|
28813 |
|
28814 |
+
/* harmony default export */ const copy_handler = (CopyHandler);
|
28815 |
|
28816 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-actions/index.js
|
28817 |
/**
|
28948 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-mode-toggle.js
|
28949 |
|
28950 |
|
|
|
|
|
|
|
|
|
28951 |
/**
|
28952 |
* WordPress dependencies
|
28953 |
*/
|
28956 |
|
28957 |
|
28958 |
|
|
|
28959 |
/**
|
28960 |
* Internal dependencies
|
28961 |
*/
|
28962 |
|
28963 |
|
28964 |
+
|
28965 |
+
const block_mode_toggle_noop = () => {};
|
28966 |
+
|
28967 |
function BlockModeToggle(_ref) {
|
28968 |
let {
|
28969 |
blockType,
|
28982 |
onClick: onToggleMode
|
28983 |
}, !small && label);
|
28984 |
}
|
28985 |
+
/* harmony default export */ const block_mode_toggle = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)((select, _ref2) => {
|
28986 |
let {
|
28987 |
clientId
|
28988 |
} = _ref2;
|
29000 |
};
|
29001 |
}), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, _ref3) => {
|
29002 |
let {
|
29003 |
+
onToggle = block_mode_toggle_noop,
|
29004 |
clientId
|
29005 |
} = _ref3;
|
29006 |
return {
|
29051 |
|
29052 |
|
29053 |
|
29054 |
+
/* harmony default export */ const block_html_convert_button = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)((select, _ref) => {
|
29055 |
let {
|
29056 |
clientId
|
29057 |
} = _ref;
|
29081 |
Slot: block_settings_menu_first_item_Slot
|
29082 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableBlockSettingsMenuFirstItem');
|
29083 |
__unstableBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot;
|
29084 |
+
/* harmony default export */ const block_settings_menu_first_item = (__unstableBlockSettingsMenuFirstItem);
|
29085 |
|
29086 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/index.js
|
29087 |
|
29250 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29251 |
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"
|
29252 |
}));
|
29253 |
+
/* harmony default export */ const library_unlock = (unlock);
|
29254 |
|
29255 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/lock.js
|
29256 |
|
29265 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29266 |
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"
|
29267 |
}));
|
29268 |
+
/* harmony default export */ const library_lock = (lock);
|
29269 |
|
29270 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-lock/use-block-lock.js
|
29271 |
/**
|
29579 |
}
|
29580 |
|
29581 |
BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
|
29582 |
+
/* harmony default export */ const block_settings_menu_controls = (BlockSettingsMenuControls);
|
29583 |
|
29584 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js
|
29585 |
|
29614 |
|
29615 |
|
29616 |
|
29617 |
+
|
29618 |
+
const block_settings_dropdown_noop = () => {};
|
29619 |
+
|
29620 |
const block_settings_dropdown_POPOVER_PROPS = {
|
29621 |
className: 'block-editor-block-settings-menu__popover',
|
29622 |
position: 'bottom right',
|
29629 |
onCopy
|
29630 |
} = _ref;
|
29631 |
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(() => (0,external_wp_blocks_namespaceObject.serialize)(blocks), onCopy);
|
29632 |
+
|
29633 |
+
const copyMenuItemLabel = (0,external_wp_i18n_namespaceObject._n)('Copy block', 'Copy blocks', blocks.length);
|
29634 |
+
|
29635 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
29636 |
ref: ref
|
29637 |
+
}, copyMenuItemLabel);
|
29638 |
}
|
29639 |
|
29640 |
function BlockSettingsDropdown(_ref2) {
|
29699 |
if (ids && ids[0]) {
|
29700 |
__experimentalSelectBlock(ids[0]);
|
29701 |
}
|
29702 |
+
} : block_settings_dropdown_noop, [__experimentalSelectBlock]);
|
29703 |
const blockTitle = useBlockDisplayTitle(firstBlockClientId, 25);
|
29704 |
const updateSelectionAfterRemove = (0,external_wp_element_namespaceObject.useCallback)(__experimentalSelectBlock ? () => {
|
29705 |
const blockToSelect = previousBlockClientId || nextBlockClientId;
|
29711 |
!selectedBlockClientIds.includes(blockToSelect)) {
|
29712 |
__experimentalSelectBlock(blockToSelect);
|
29713 |
}
|
29714 |
+
} : block_settings_dropdown_noop, [__experimentalSelectBlock, previousBlockClientId, nextBlockClientId, selectedBlockClientIds]);
|
29715 |
const label = (0,external_wp_i18n_namespaceObject.sprintf)(
|
29716 |
/* translators: %s: block name */
|
29717 |
(0,external_wp_i18n_namespaceObject.__)('Remove %s'), blockTitle);
|
29807 |
});
|
29808 |
});
|
29809 |
}
|
29810 |
+
/* harmony default export */ const block_settings_dropdown = (BlockSettingsDropdown);
|
29811 |
|
29812 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/index.js
|
29813 |
|
29832 |
toggleProps: toggleProps
|
29833 |
}, props))));
|
29834 |
}
|
29835 |
+
/* harmony default export */ const block_settings_menu = (BlockSettingsMenu);
|
29836 |
|
29837 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-lock/toolbar.js
|
29838 |
|
29899 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29900 |
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"
|
29901 |
}));
|
29902 |
+
/* harmony default export */ const library_group = (group_group);
|
29903 |
|
29904 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/row.js
|
29905 |
|
29914 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29915 |
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"
|
29916 |
}));
|
29917 |
+
/* harmony default export */ const library_row = (row);
|
29918 |
|
29919 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/stack.js
|
29920 |
|
29929 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
29930 |
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"
|
29931 |
}));
|
29932 |
+
/* harmony default export */ const library_stack = (stack);
|
29933 |
|
29934 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/toolbar.js
|
29935 |
|
30037 |
}));
|
30038 |
}
|
30039 |
|
30040 |
+
/* harmony default export */ const toolbar = (BlockGroupToolbar);
|
30041 |
|
30042 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/block-name-context.js
|
30043 |
/**
|
30047 |
|
30048 |
const __unstableBlockNameContext = (0,external_wp_element_namespaceObject.createContext)('');
|
30049 |
|
30050 |
+
/* harmony default export */ const block_name_context = (__unstableBlockNameContext);
|
30051 |
|
30052 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/index.js
|
30053 |
|
30198 |
*/
|
30199 |
|
30200 |
|
30201 |
+
/* harmony default export */ const block_toolbar = (BlockToolbar);
|
30202 |
|
30203 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
|
30204 |
|
30277 |
}));
|
30278 |
}
|
30279 |
|
30280 |
+
/* harmony default export */ const block_contextual_toolbar = (BlockContextualToolbar);
|
30281 |
|
30282 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/selected-block-popover.js
|
30283 |
|
30537 |
clientId: clientId
|
30538 |
}));
|
30539 |
}, 'withClientId');
|
30540 |
+
/* harmony default export */ const with_client_id = (withClientId);
|
30541 |
|
30542 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/button-block-appender.js
|
30543 |
|
30570 |
onAddBlock: onAddBlock
|
30571 |
});
|
30572 |
};
|
30573 |
+
/* harmony default export */ const inner_blocks_button_block_appender = (with_client_id(button_block_appender_ButtonBlockAppender));
|
30574 |
|
30575 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/default-block-appender.js
|
30576 |
|
30600 |
rootClientId: clientId
|
30601 |
});
|
30602 |
};
|
30603 |
+
/* harmony default export */ const inner_blocks_default_block_appender = ((0,external_wp_compose_namespaceObject.compose)([with_client_id, (0,external_wp_data_namespaceObject.withSelect)((select, _ref2) => {
|
30604 |
let {
|
30605 |
clientId
|
30606 |
} = _ref2;
|
31398 |
*/
|
31399 |
|
31400 |
|
31401 |
+
/* harmony default export */ const inner_blocks = (ForwardedInnerBlocks);
|
31402 |
|
31403 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/index.js
|
31404 |
|
31773 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
31774 |
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"
|
31775 |
}));
|
31776 |
+
/* harmony default export */ const library_link = (link_link);
|
31777 |
|
31778 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/link-off.js
|
31779 |
|
31788 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
31789 |
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"
|
31790 |
}));
|
31791 |
+
/* harmony default export */ const link_off = (linkOff);
|
31792 |
|
31793 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/linked-button.js
|
31794 |
|
32959 |
return (0,external_wp_element_namespaceObject.createElement)(ColorGradientControlSelect, props);
|
32960 |
}
|
32961 |
|
32962 |
+
/* harmony default export */ const control = (ColorGradientControl);
|
32963 |
|
32964 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/dropdown.js
|
32965 |
|
33234 |
*/
|
33235 |
|
33236 |
|
33237 |
+
/* harmony default export */ const contrast_checker = (ContrastChecker);
|
33238 |
|
33239 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/color-panel.js
|
33240 |
|
34146 |
*/
|
34147 |
|
34148 |
|
34149 |
+
/* harmony default export */ const line_height_control = (LineHeightControl);
|
34150 |
|
34151 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/line-height.js
|
34152 |
|
34757 |
*/
|
34758 |
|
34759 |
|
34760 |
+
/* harmony default export */ const font_size_picker = (FontSizePicker);
|
34761 |
|
34762 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/font-size.js
|
34763 |
|
35028 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
35029 |
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"
|
35030 |
}));
|
35031 |
+
/* harmony default export */ const format_underline = (formatUnderline);
|
35032 |
|
35033 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-strikethrough.js
|
35034 |
|
35043 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
35044 |
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"
|
35045 |
}));
|
35046 |
+
/* harmony default export */ const format_strikethrough = (formatStrikethrough);
|
35047 |
|
35048 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-decoration-control/index.js
|
35049 |
|
35215 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
35216 |
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"
|
35217 |
}));
|
35218 |
+
/* harmony default export */ const format_uppercase = (formatUppercase);
|
35219 |
|
35220 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-lowercase.js
|
35221 |
|
35230 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
35231 |
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"
|
35232 |
}));
|
35233 |
+
/* harmony default export */ const format_lowercase = (formatLowercase);
|
35234 |
|
35235 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-capitalize.js
|
35236 |
|
35245 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
35246 |
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"
|
35247 |
}));
|
35248 |
+
/* harmony default export */ const format_capitalize = (formatCapitalize);
|
35249 |
|
35250 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-transform-control/index.js
|
35251 |
|
36054 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
36055 |
d: "M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"
|
36056 |
}));
|
36057 |
+
/* harmony default export */ const library_filter = (filter);
|
36058 |
|
36059 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/duotone-control/index.js
|
36060 |
|
36124 |
});
|
36125 |
}
|
36126 |
|
36127 |
+
/* harmony default export */ const duotone_control = (DuotoneControl);
|
36128 |
|
36129 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/duotone.js
|
36130 |
|
36500 |
|
36501 |
|
36502 |
const layoutBlockSupportKey = '__experimentalLayout';
|
36503 |
+
/**
|
36504 |
+
* Generates the utility classnames for the given blocks layout attributes.
|
36505 |
+
* This method was primarily added to reintroduce classnames that were removed
|
36506 |
+
* in the 5.9 release (https://github.com/WordPress/gutenberg/issues/38719), rather
|
36507 |
+
* than providing an extensive list of all possible layout classes. The plan is to
|
36508 |
+
* have the style engine generate a more extensive list of utility classnames which
|
36509 |
+
* will then replace this method.
|
36510 |
+
*
|
36511 |
+
* @param { Array } attributes Array of block attributes.
|
36512 |
+
*
|
36513 |
+
* @return { Array } Array of CSS classname strings.
|
36514 |
+
*/
|
36515 |
+
|
36516 |
+
function getLayoutClasses(attributes) {
|
36517 |
+
var _attributes$layout, _attributes$layout2, _attributes$layout3;
|
36518 |
+
|
36519 |
+
const layoutClassnames = [];
|
36520 |
+
|
36521 |
+
if (!attributes.layout) {
|
36522 |
+
return layoutClassnames;
|
36523 |
+
}
|
36524 |
+
|
36525 |
+
if (attributes !== null && attributes !== void 0 && (_attributes$layout = attributes.layout) !== null && _attributes$layout !== void 0 && _attributes$layout.orientation) {
|
36526 |
+
layoutClassnames.push(`is-${(0,external_lodash_namespaceObject.kebabCase)(attributes.layout.orientation)}`);
|
36527 |
+
}
|
36528 |
+
|
36529 |
+
if (attributes !== null && attributes !== void 0 && (_attributes$layout2 = attributes.layout) !== null && _attributes$layout2 !== void 0 && _attributes$layout2.justifyContent) {
|
36530 |
+
layoutClassnames.push(`is-content-justification-${(0,external_lodash_namespaceObject.kebabCase)(attributes.layout.justifyContent)}`);
|
36531 |
+
}
|
36532 |
+
|
36533 |
+
if (attributes !== null && attributes !== void 0 && (_attributes$layout3 = attributes.layout) !== null && _attributes$layout3 !== void 0 && _attributes$layout3.flexWrap && attributes.layout.flexWrap === 'nowrap') {
|
36534 |
+
layoutClassnames.push('is-nowrap');
|
36535 |
+
}
|
36536 |
+
|
36537 |
+
return layoutClassnames;
|
36538 |
+
}
|
36539 |
|
36540 |
function LayoutPanel(_ref) {
|
36541 |
let {
|
36704 |
default: defaultBlockLayout
|
36705 |
} = (0,external_wp_blocks_namespaceObject.getBlockSupport)(name, layoutBlockSupportKey) || {};
|
36706 |
const usedLayout = layout !== null && layout !== void 0 && layout.inherit ? defaultThemeLayout : layout || defaultBlockLayout || {};
|
36707 |
+
const layoutClasses = shouldRenderLayoutStyles ? getLayoutClasses(attributes) : null;
|
36708 |
const className = classnames_default()(props === null || props === void 0 ? void 0 : props.className, {
|
36709 |
[`wp-container-${id}`]: shouldRenderLayoutStyles
|
36710 |
+
}, layoutClasses);
|
36711 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, shouldRenderLayoutStyles && element && (0,external_wp_element_namespaceObject.createPortal)((0,external_wp_element_namespaceObject.createElement)(LayoutStyle, {
|
36712 |
blockName: name,
|
36713 |
selector: `.wp-container-${id}`,
|
37231 |
* @return {Function} Higher-order component.
|
37232 |
*/
|
37233 |
|
37234 |
+
/* harmony default export */ const with_font_sizes = (function () {
|
37235 |
for (var _len = arguments.length, fontSizeNames = new Array(_len), _key = 0; _key < _len; _key++) {
|
37236 |
fontSizeNames[_key] = arguments[_key];
|
37237 |
}
|
37344 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37345 |
d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"
|
37346 |
}));
|
37347 |
+
/* harmony default export */ const align_left = (alignLeft);
|
37348 |
|
37349 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-center.js
|
37350 |
|
37359 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37360 |
d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"
|
37361 |
}));
|
37362 |
+
/* harmony default export */ const align_center = (align_center_alignCenter);
|
37363 |
|
37364 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-right.js
|
37365 |
|
37374 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37375 |
d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"
|
37376 |
}));
|
37377 |
+
/* harmony default export */ const align_right = (alignRight);
|
37378 |
|
37379 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/ui.js
|
37380 |
|
37456 |
}, extraProps));
|
37457 |
}
|
37458 |
|
37459 |
+
/* harmony default export */ const alignment_control_ui = (AlignmentUI);
|
37460 |
|
37461 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/index.js
|
37462 |
|
37507 |
|
37508 |
|
37509 |
|
37510 |
+
|
37511 |
+
const block_noop = () => {};
|
37512 |
+
|
37513 |
const block_SHOWN_BLOCK_TYPES = 9;
|
37514 |
/** @typedef {import('@wordpress/components').WPCompleter} WPCompleter */
|
37515 |
|
37541 |
rootClientId: getBlockInsertionPoint().rootClientId
|
37542 |
};
|
37543 |
}, []);
|
37544 |
+
const [items, categories, collections] = use_block_types_state(rootClientId, block_noop);
|
37545 |
const filteredItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
|
37546 |
const initialFilteredItems = !!filterValue.trim() ? searchBlockItems(items, categories, collections, filterValue) : (0,external_lodash_namespaceObject.orderBy)(items, ['frecency'], ['desc']);
|
37547 |
return initialFilteredItems.filter(item => item.name !== selectedBlockName).slice(0, block_SHOWN_BLOCK_TYPES);
|
37591 |
*/
|
37592 |
|
37593 |
|
37594 |
+
/* harmony default export */ const autocompleters_block = (createBlockCompleter());
|
37595 |
|
37596 |
;// CONCATENATED MODULE: external ["wp","apiFetch"]
|
37597 |
+
const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
|
37598 |
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
|
37599 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/page.js
|
37600 |
|
37609 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37610 |
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"
|
37611 |
}));
|
37612 |
+
/* harmony default export */ const library_page = (page);
|
37613 |
|
37614 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/post.js
|
37615 |
|
37624 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37625 |
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"
|
37626 |
}));
|
37627 |
+
/* harmony default export */ const library_post = (post);
|
37628 |
|
37629 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/autocompleters/link.js
|
37630 |
|
37689 |
*/
|
37690 |
|
37691 |
|
37692 |
+
/* harmony default export */ const autocompleters_link = (createLinkCompleter());
|
37693 |
|
37694 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/autocomplete/index.js
|
37695 |
|
37772 |
*/
|
37773 |
|
37774 |
|
37775 |
+
/* harmony default export */ const autocomplete = (BlockEditorAutocomplete);
|
37776 |
|
37777 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/fullscreen.js
|
37778 |
|
37787 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37788 |
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"
|
37789 |
}));
|
37790 |
+
/* harmony default export */ const library_fullscreen = (fullscreen);
|
37791 |
|
37792 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-full-height-alignment-control/index.js
|
37793 |
|
37815 |
});
|
37816 |
}
|
37817 |
|
37818 |
+
/* harmony default export */ const block_full_height_alignment_control = (BlockFullHeightAlignmentControl);
|
37819 |
|
37820 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-matrix-control/index.js
|
37821 |
|
37822 |
|
|
|
|
|
|
|
|
|
37823 |
/**
|
37824 |
* WordPress dependencies
|
37825 |
*/
|
37827 |
|
37828 |
|
37829 |
|
37830 |
+
const block_alignment_matrix_control_noop = () => {};
|
37831 |
|
37832 |
function BlockAlignmentMatrixControl(props) {
|
37833 |
const {
|
37834 |
label = (0,external_wp_i18n_namespaceObject.__)('Change matrix alignment'),
|
37835 |
+
onChange = block_alignment_matrix_control_noop,
|
37836 |
value = 'center',
|
37837 |
isDisabled
|
37838 |
} = props;
|
37876 |
});
|
37877 |
}
|
37878 |
|
37879 |
+
/* harmony default export */ const block_alignment_matrix_control = (BlockAlignmentMatrixControl);
|
37880 |
|
37881 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right-small.js
|
37882 |
|
37891 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
37892 |
d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
|
37893 |
}));
|
37894 |
+
/* harmony default export */ const chevron_right_small = (chevronRightSmall);
|
37895 |
|
37896 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-breadcrumb/index.js
|
37897 |
|
37989 |
;
|
37990 |
}
|
37991 |
|
37992 |
+
/* harmony default export */ const block_breadcrumb = (BlockBreadcrumb);
|
37993 |
|
37994 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-content-overlay/index.js
|
37995 |
/**
|
38110 |
});
|
38111 |
};
|
38112 |
|
38113 |
+
/* harmony default export */ const color_style_selector = (BlockColorsStyleSelector);
|
38114 |
|
38115 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/list-view.js
|
38116 |
|
38125 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
38126 |
d: "M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"
|
38127 |
}));
|
38128 |
+
/* harmony default export */ const list_view = (listView);
|
38129 |
|
38130 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/leaf.js
|
38131 |
|
38294 |
}))));
|
38295 |
}
|
38296 |
|
38297 |
+
/* harmony default export */ const block_select_button = ((0,external_wp_element_namespaceObject.forwardRef)(ListViewBlockSelectButton));
|
38298 |
|
38299 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block-contents.js
|
38300 |
|
38380 |
}, props));
|
38381 |
});
|
38382 |
});
|
38383 |
+
/* harmony default export */ const block_contents = (ListViewBlockContents);
|
38384 |
|
38385 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/context.js
|
38386 |
/**
|
38391 |
const useListViewContext = () => (0,external_wp_element_namespaceObject.useContext)(ListViewContext);
|
38392 |
|
38393 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/utils.js
|
|
|
|
|
|
|
|
|
38394 |
/**
|
38395 |
* WordPress dependencies
|
38396 |
*/
|
38397 |
|
|
|
38398 |
const getBlockPositionDescription = (position, siblingCount, level) => (0,external_wp_i18n_namespaceObject.sprintf)(
|
38399 |
/* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
|
38400 |
(0,external_wp_i18n_namespaceObject.__)('Block %1$d of %2$d, Level %3$d'), position, siblingCount, level);
|
38408 |
* @return {boolean} Whether the block is in multi-selection set.
|
38409 |
*/
|
38410 |
|
38411 |
+
const isClientIdSelected = (clientId, selectedBlockClientIds) => Array.isArray(selectedBlockClientIds) && selectedBlockClientIds.length ? selectedBlockClientIds.indexOf(clientId) !== -1 : selectedBlockClientIds === clientId;
|
38412 |
/**
|
38413 |
* From a start and end clientId of potentially different nesting levels,
|
38414 |
* return the nearest-depth ids that have a common level of depth in the
|
38687 |
}));
|
38688 |
}
|
38689 |
|
38690 |
+
/* harmony default export */ const list_view_block = ((0,external_wp_element_namespaceObject.memo)(ListViewBlock));
|
38691 |
|
38692 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/branch.js
|
38693 |
|
38843 |
ListViewBranch.defaultProps = {
|
38844 |
selectBlock: () => {}
|
38845 |
};
|
38846 |
+
/* harmony default export */ const branch = ((0,external_wp_element_namespaceObject.memo)(ListViewBranch));
|
38847 |
|
38848 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/drop-indicator.js
|
38849 |
|
39567 |
}))));
|
39568 |
}
|
39569 |
|
39570 |
+
/* harmony default export */ const components_list_view = ((0,external_wp_element_namespaceObject.forwardRef)(ListView));
|
39571 |
|
39572 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-navigation/dropdown.js
|
39573 |
|
39649 |
});
|
39650 |
}
|
39651 |
|
39652 |
+
/* harmony default export */ const dropdown = ((0,external_wp_element_namespaceObject.forwardRef)(BlockNavigationDropdown));
|
39653 |
|
39654 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/preview-panel.js
|
39655 |
|
39732 |
// The value is the equivalent of the container's right position.
|
39733 |
|
39734 |
|
39735 |
+
const DEFAULT_POSITION_TOP = 16;
|
39736 |
+
|
39737 |
+
const block_styles_noop = () => {}; // Block Styles component for the Settings Sidebar.
|
39738 |
+
|
39739 |
|
39740 |
function BlockStyles(_ref3) {
|
39741 |
let {
|
39742 |
clientId,
|
39743 |
+
onSwitch = block_styles_noop,
|
39744 |
+
onHoverClassName = block_styles_noop,
|
39745 |
scope
|
39746 |
} = _ref3;
|
39747 |
const {
|
39830 |
}
|
39831 |
|
39832 |
BlockStyles.Slot = BlockStylesPreviewPanelSlot;
|
39833 |
+
/* harmony default export */ const block_styles = (BlockStyles);
|
39834 |
|
39835 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/layout.js
|
39836 |
|
39845 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
39846 |
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"
|
39847 |
}));
|
39848 |
+
/* harmony default export */ const library_layout = (layout);
|
39849 |
|
39850 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-picker/index.js
|
39851 |
|
39903 |
}, (0,external_wp_i18n_namespaceObject.__)('Skip'))));
|
39904 |
}
|
39905 |
|
39906 |
+
/* harmony default export */ const block_variation_picker = (BlockVariationPicker);
|
39907 |
|
39908 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/grid.js
|
39909 |
|
39920 |
fillRule: "evenodd",
|
39921 |
clipRule: "evenodd"
|
39922 |
}));
|
39923 |
+
/* harmony default export */ const library_grid = (grid);
|
39924 |
|
39925 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/constants.js
|
39926 |
const VIEWMODES = {
|
40018 |
}));
|
40019 |
};
|
40020 |
|
40021 |
+
/* harmony default export */ const setup_toolbar = (SetupToolbar);
|
40022 |
|
40023 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/use-patterns-setup.js
|
40024 |
/**
|
40048 |
}, [clientId, blockName, filterPatternsFn]);
|
40049 |
}
|
40050 |
|
40051 |
+
/* harmony default export */ const use_patterns_setup = (usePatternsSetup);
|
40052 |
|
40053 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/index.js
|
40054 |
|
40180 |
clientId,
|
40181 |
blockName,
|
40182 |
filterPatternsFn,
|
40183 |
+
startBlankComponent = null,
|
40184 |
onBlockPatternSelect
|
40185 |
} = _ref4;
|
40186 |
const [viewMode, setViewMode] = (0,external_wp_element_namespaceObject.useState)(VIEWMODES.carousel);
|
40233 |
})));
|
40234 |
};
|
40235 |
|
40236 |
+
/* harmony default export */ const block_pattern_setup = (BlockPatternSetup);
|
40237 |
|
40238 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-transforms/index.js
|
40239 |
|
40387 |
});
|
40388 |
}
|
40389 |
|
40390 |
+
/* harmony default export */ const block_variation_transforms = (__experimentalBlockVariationTransforms);
|
40391 |
|
40392 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/with-color-context.js
|
40393 |
|
40407 |
*/
|
40408 |
|
40409 |
|
40410 |
+
/* harmony default export */ const with_color_context = ((0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => {
|
40411 |
return props => {
|
40412 |
const colorsFeature = useSetting('color.palette');
|
40413 |
const disableCustomColorsFeature = !useSetting('color.custom');
|
40432 |
*/
|
40433 |
|
40434 |
|
40435 |
+
/* harmony default export */ const color_palette = (with_color_context(external_wp_components_namespaceObject.ColorPalette));
|
40436 |
|
40437 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/control.js
|
40438 |
|
40457 |
}
|
40458 |
|
40459 |
;// CONCATENATED MODULE: external ["wp","date"]
|
40460 |
+
const external_wp_date_namespaceObject = window["wp"]["date"];
|
40461 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/date-format-picker/index.js
|
40462 |
|
40463 |
|
40693 |
return (0,external_wp_element_namespaceObject.createElement)(PanelColorGradientSettingsSingleSelect, props);
|
40694 |
};
|
40695 |
|
40696 |
+
/* harmony default export */ const panel_color_gradient_settings = (PanelColorGradientSettings);
|
40697 |
|
40698 |
;// CONCATENATED MODULE: ./node_modules/react-easy-crop/node_modules/tslib/tslib.es6.js
|
40699 |
/*! *****************************************************************************
|
41649 |
return Cropper;
|
41650 |
}((external_React_default()).Component);
|
41651 |
|
41652 |
+
/* harmony default export */ const index_module = (Cropper);
|
41653 |
|
41654 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/constants.js
|
41655 |
const constants_MIN_ZOOM = 100;
|
41991 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
41992 |
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"
|
41993 |
}));
|
41994 |
+
/* harmony default export */ const library_search = (search);
|
41995 |
|
41996 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/zoom-dropdown.js
|
41997 |
|
42053 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42054 |
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"
|
42055 |
}));
|
42056 |
+
/* harmony default export */ const aspect_ratio = (aspectRatio);
|
42057 |
|
42058 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.js
|
42059 |
|
42192 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42193 |
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"
|
42194 |
}));
|
42195 |
+
/* harmony default export */ const rotate_right = (rotateRight);
|
42196 |
|
42197 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/rotation-button.js
|
42198 |
|
42369 |
|
42370 |
|
42371 |
const IMAGE_SIZE_PRESETS = [25, 50, 75, 100];
|
42372 |
+
|
42373 |
+
const image_size_control_noop = () => {};
|
42374 |
+
|
42375 |
function ImageSizeControl(_ref) {
|
42376 |
let {
|
42377 |
imageWidth,
|
42382 |
width,
|
42383 |
height,
|
42384 |
onChange,
|
42385 |
+
onChangeImage = image_size_control_noop
|
42386 |
} = _ref;
|
42387 |
const {
|
42388 |
currentHeight,
|
42449 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
42450 |
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"
|
42451 |
}));
|
42452 |
+
/* harmony default export */ const keyboard_return = (keyboardReturn);
|
42453 |
|
42454 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/settings-drawer.js
|
42455 |
|
42456 |
|
|
|
|
|
|
|
|
|
42457 |
/**
|
42458 |
* WordPress dependencies
|
42459 |
*/
|
42460 |
|
42461 |
|
42462 |
|
42463 |
+
const settings_drawer_noop = () => {};
|
42464 |
|
42465 |
const LinkControlSettingsDrawer = _ref => {
|
42466 |
let {
|
42467 |
value,
|
42468 |
+
onChange = settings_drawer_noop,
|
42469 |
settings
|
42470 |
} = _ref;
|
42471 |
|
42493 |
}, (0,external_wp_i18n_namespaceObject.__)('Currently selected link settings')), theSettings);
|
42494 |
};
|
42495 |
|
42496 |
+
/* harmony default export */ const settings_drawer = (LinkControlSettingsDrawer);
|
42497 |
|
42498 |
// EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js
|
42499 |
var dom_scroll_into_view_lib = __webpack_require__(5425);
|
42524 |
*/
|
42525 |
|
42526 |
|
42527 |
+
/**
|
42528 |
+
* Whether the argument is a function.
|
42529 |
+
*
|
42530 |
+
* @param {*} maybeFunc The argument to check.
|
42531 |
+
* @return {boolean} True if the argument is a function, false otherwise.
|
42532 |
+
*/
|
42533 |
+
|
42534 |
+
function isFunction(maybeFunc) {
|
42535 |
+
return typeof maybeFunc === 'function';
|
42536 |
+
}
|
42537 |
|
42538 |
class URLInput extends external_wp_element_namespaceObject.Component {
|
42539 |
constructor(props) {
|
42963 |
};
|
42964 |
};
|
42965 |
|
42966 |
+
if (isFunction(renderSuggestions) && showSuggestions && !!suggestions.length) {
|
42967 |
return renderSuggestions({
|
42968 |
suggestions,
|
42969 |
selectedSuggestion,
|
42975 |
});
|
42976 |
}
|
42977 |
|
42978 |
+
if (!isFunction(renderSuggestions) && showSuggestions && !!suggestions.length) {
|
42979 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
|
42980 |
position: "bottom",
|
42981 |
focusOnMount: false
|
42999 |
*/
|
43000 |
|
43001 |
|
43002 |
+
/* harmony default export */ const 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) => {
|
43003 |
// If a link suggestions handler is already provided then
|
43004 |
// bail.
|
43005 |
+
if (isFunction(props.__experimentalFetchLinkSuggestions)) {
|
43006 |
return;
|
43007 |
}
|
43008 |
|
43022 |
* External dependencies
|
43023 |
*/
|
43024 |
|
|
|
43025 |
/**
|
43026 |
* WordPress dependencies
|
43027 |
*/
|
43046 |
let text;
|
43047 |
|
43048 |
if (buttonText) {
|
43049 |
+
text = typeof buttonText === 'function' ? buttonText(searchTerm) : buttonText;
|
43050 |
} else {
|
43051 |
text = (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)(
|
43052 |
/* translators: %s: search term. */
|
43069 |
className: "block-editor-link-control__search-item-title"
|
43070 |
}, text)));
|
43071 |
};
|
43072 |
+
/* harmony default export */ const search_create_button = (LinkControlSearchCreate);
|
43073 |
|
43074 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/globe.js
|
43075 |
|
43084 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43085 |
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"
|
43086 |
}));
|
43087 |
+
/* harmony default export */ const library_globe = (globe);
|
43088 |
|
43089 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-item.js
|
43090 |
|
43146 |
return suggestion.type === 'post_tag' ? 'tag' : suggestion.type;
|
43147 |
}
|
43148 |
|
43149 |
+
/* harmony default export */ const search_item = (LinkControlSearchItem);
|
43150 |
|
43151 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/constants.js
|
43152 |
/**
|
43450 |
|
43451 |
const noopSearchHandler = () => Promise.resolve([]);
|
43452 |
|
43453 |
+
const search_input_noop = () => {};
|
43454 |
+
|
43455 |
const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef)((_ref, ref) => {
|
43456 |
let {
|
43457 |
value,
|
43460 |
className = null,
|
43461 |
placeholder = null,
|
43462 |
withCreateSuggestion = false,
|
43463 |
+
onCreateSuggestion = search_input_noop,
|
43464 |
+
onChange = search_input_noop,
|
43465 |
+
onSelect = search_input_noop,
|
43466 |
showSuggestions = true,
|
43467 |
renderSuggestions = props => (0,external_wp_element_namespaceObject.createElement)(LinkControlSearchResults, props),
|
43468 |
fetchSuggestions = null,
|
43563 |
ref: ref
|
43564 |
}), children);
|
43565 |
});
|
43566 |
+
/* harmony default export */ const search_input = (LinkControlSearchInput);
|
43567 |
|
43568 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/info.js
|
43569 |
|
43578 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43579 |
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"
|
43580 |
}));
|
43581 |
+
/* harmony default export */ const library_info = (info);
|
43582 |
|
43583 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/pencil.js
|
43584 |
|
43593 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
43594 |
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"
|
43595 |
}));
|
43596 |
+
/* harmony default export */ const library_pencil = (pencil);
|
43597 |
|
43598 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/edit.js
|
43599 |
/**
|
43600 |
* Internal dependencies
|
43601 |
*/
|
43602 |
|
43603 |
+
/* harmony default export */ const library_edit = (library_pencil);
|
43604 |
|
43605 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/viewer-slot.js
|
43606 |
/**
|
43612 |
Fill: ViewerFill
|
43613 |
} = (0,external_wp_components_namespaceObject.createSlotFill)('BlockEditorLinkControlViewer');
|
43614 |
|
43615 |
+
/* harmony default export */ const viewer_slot = ((/* unused pure expression or super */ null && (ViewerSlot)));
|
43616 |
|
43617 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/use-rich-url-data.js
|
43618 |
/**
|
43699 |
return state;
|
43700 |
}
|
43701 |
|
43702 |
+
/* harmony default export */ const use_rich_url_data = (useRemoteUrlData);
|
43703 |
|
43704 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/link-preview.js
|
43705 |
|
43911 |
* External dependencies
|
43912 |
*/
|
43913 |
|
|
|
43914 |
/**
|
43915 |
* WordPress dependencies
|
43916 |
*/
|
44006 |
* @property {Function} renderControlBottom Optional controls to be rendered at the bottom of the component.
|
44007 |
*/
|
44008 |
|
44009 |
+
const link_control_noop = () => {};
|
44010 |
/**
|
44011 |
* Renders a link control. A link control is a controlled input which maintains
|
44012 |
* a value associated with a link (HTML anchor element) and relevant settings
|
44015 |
* @param {WPLinkControlProps} props Component props.
|
44016 |
*/
|
44017 |
|
44018 |
+
|
44019 |
function LinkControl(_ref) {
|
44020 |
var _currentInputValue$tr, _value$url, _value$url$trim;
|
44021 |
|
44023 |
searchInputPlaceholder,
|
44024 |
value,
|
44025 |
settings = DEFAULT_LINK_SETTINGS,
|
44026 |
+
onChange = link_control_noop,
|
44027 |
onRemove,
|
44028 |
noDirectEntry = false,
|
44029 |
showSuggestions = true,
|
44218 |
}
|
44219 |
|
44220 |
LinkControl.ViewerFill = ViewerFill;
|
44221 |
+
/* harmony default export */ const link_control = (LinkControl);
|
44222 |
|
44223 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/media.js
|
44224 |
|
44233 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
44234 |
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"
|
44235 |
}));
|
44236 |
+
/* harmony default export */ const library_media = (media);
|
44237 |
|
44238 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/upload.js
|
44239 |
|
44248 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
44249 |
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"
|
44250 |
}));
|
44251 |
+
/* harmony default export */ const library_upload = (upload);
|
44252 |
+
|
44253 |
+
;// CONCATENATED MODULE: ./packages/icons/build-module/library/post-featured-image.js
|
44254 |
+
|
44255 |
+
|
44256 |
+
/**
|
44257 |
+
* WordPress dependencies
|
44258 |
+
*/
|
44259 |
+
|
44260 |
+
const postFeaturedImage = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
|
44261 |
+
xmlns: "http://www.w3.org/2000/svg",
|
44262 |
+
viewBox: "0 0 24 24"
|
44263 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
44264 |
+
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"
|
44265 |
+
}));
|
44266 |
+
/* harmony default export */ const post_featured_image = (postFeaturedImage);
|
44267 |
|
44268 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/index.js
|
44269 |
/**
|
44284 |
*/
|
44285 |
|
44286 |
|
44287 |
+
/* harmony default export */ const media_upload = ((0,external_wp_components_namespaceObject.withFilters)('editor.MediaUpload')(MediaUpload));
|
44288 |
|
44289 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/check.js
|
44290 |
/**
|
44313 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-upload/README.md
|
44314 |
*/
|
44315 |
|
44316 |
+
/* harmony default export */ const media_upload_check = (MediaUploadCheck);
|
44317 |
|
44318 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-replace-flow/index.js
|
44319 |
|
44345 |
|
44346 |
|
44347 |
|
44348 |
+
const media_replace_flow_noop = () => {};
|
44349 |
+
|
44350 |
const MediaReplaceFlow = _ref => {
|
44351 |
let {
|
44352 |
mediaURL,
|
44357 |
onError,
|
44358 |
onSelect,
|
44359 |
onSelectURL,
|
44360 |
+
onToggleFeaturedImage,
|
44361 |
+
useFeaturedImage,
|
44362 |
+
onFilesUpload = media_replace_flow_noop,
|
44363 |
name = (0,external_wp_i18n_namespaceObject.__)('Replace'),
|
44364 |
createNotice,
|
44365 |
removeNotice,
|
44399 |
};
|
44400 |
|
44401 |
const selectMedia = (media, closeMenu) => {
|
44402 |
+
if (useFeaturedImage && onToggleFeaturedImage) {
|
44403 |
+
onToggleFeaturedImage();
|
44404 |
+
}
|
44405 |
+
|
44406 |
closeMenu();
|
44407 |
setMediaURLValue(media === null || media === void 0 ? void 0 : media.url); // Calling `onSelect` after the state update since it might unmount the component.
|
44408 |
|
44472 |
} = _ref4;
|
44473 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.NavigableMenu, {
|
44474 |
className: "block-editor-media-replace-flow__media-upload-menu"
|
44475 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(media_upload, {
|
44476 |
gallery: gallery,
|
44477 |
addToGallery: addToGallery,
|
44478 |
multiple: multiple,
|
44505 |
}
|
44506 |
}, (0,external_wp_i18n_namespaceObject.__)('Upload'));
|
44507 |
}
|
44508 |
+
}))), onToggleFeaturedImage && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
44509 |
+
icon: post_featured_image,
|
44510 |
+
onClick: onToggleFeaturedImage,
|
44511 |
+
isPressed: useFeaturedImage
|
44512 |
+
}, (0,external_wp_i18n_namespaceObject.__)('Use featured image')), children), onSelectURL && // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
44513 |
(0,external_wp_element_namespaceObject.createElement)("form", {
|
44514 |
className: "block-editor-media-flow__url-input"
|
44515 |
}, (0,external_wp_element_namespaceObject.createElement)("span", {
|
44516 |
className: "block-editor-media-replace-flow__image-url-label"
|
44517 |
+
}, (0,external_wp_i18n_namespaceObject.__)('Current media URL:')), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Tooltip, {
|
44518 |
+
text: mediaURLValue,
|
44519 |
+
position: "bottom"
|
44520 |
+
}, (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)(link_control, {
|
44521 |
value: {
|
44522 |
url: mediaURLValue
|
44523 |
},
|
44531 |
onSelectURL(url);
|
44532 |
editMediaButtonRef.current.focus();
|
44533 |
}
|
44534 |
+
})))));
|
44535 |
}
|
44536 |
});
|
44537 |
};
|
44540 |
*/
|
44541 |
|
44542 |
|
44543 |
+
/* harmony default export */ const media_replace_flow = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
|
44544 |
const {
|
44545 |
createNotice,
|
44546 |
removeNotice
|
44728 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/url-popover/README.md
|
44729 |
*/
|
44730 |
|
44731 |
+
/* harmony default export */ const url_popover = (URLPopover);
|
44732 |
|
44733 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-placeholder/index.js
|
44734 |
|
44737 |
* External dependencies
|
44738 |
*/
|
44739 |
|
|
|
44740 |
/**
|
44741 |
* WordPress dependencies
|
44742 |
*/
|
44755 |
|
44756 |
|
44757 |
|
44758 |
+
const media_placeholder_noop = () => {};
|
44759 |
+
|
44760 |
const InsertFromURLPopover = _ref => {
|
44761 |
let {
|
44762 |
src,
|
44805 |
onCancel,
|
44806 |
onSelectURL,
|
44807 |
onDoubleClick,
|
44808 |
+
onFilesPreUpload = media_placeholder_noop,
|
44809 |
+
onHTMLDrop = media_placeholder_noop,
|
44810 |
children,
|
44811 |
mediaLibraryButton,
|
44812 |
placeholder,
|
45101 |
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-placeholder/README.md
|
45102 |
*/
|
45103 |
|
45104 |
+
/* harmony default export */ const media_placeholder = ((0,external_wp_components_namespaceObject.withFilters)('editor.MediaPlaceholder')(MediaPlaceholder));
|
45105 |
|
45106 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/panel-color-settings/index.js
|
45107 |
|
45139 |
}, props));
|
45140 |
};
|
45141 |
|
45142 |
+
/* harmony default export */ const panel_color_settings = (PanelColorSettings);
|
45143 |
|
45144 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar/index.js
|
45145 |
|
45206 |
}));
|
45207 |
};
|
45208 |
|
45209 |
+
/* harmony default export */ const format_toolbar = (FormatToolbar);
|
45210 |
|
45211 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar-container.js
|
45212 |
|
45247 |
}, (0,external_wp_element_namespaceObject.createElement)(format_toolbar, null));
|
45248 |
};
|
45249 |
|
45250 |
+
/* harmony default export */ const format_toolbar_container = (FormatToolbarContainer);
|
45251 |
|
45252 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-undo-automatic-change.js
|
45253 |
/**
|
45356 |
}
|
45357 |
|
45358 |
;// CONCATENATED MODULE: external ["wp","shortcode"]
|
45359 |
+
const external_wp_shortcode_namespaceObject = window["wp"]["shortcode"];
|
45360 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/utils.js
|
45361 |
|
45362 |
|
46782 |
*/
|
46783 |
|
46784 |
|
46785 |
+
/* harmony default export */ const rich_text = (ForwardedRichTextContainer);
|
46786 |
|
46787 |
|
46788 |
|
46822 |
*/
|
46823 |
|
46824 |
|
46825 |
+
/* harmony default export */ const editable_text = (EditableText);
|
46826 |
|
46827 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/plain-text/index.js
|
46828 |
|
46870 |
onChange: event => onChange(event.target.value)
|
46871 |
}, remainingProps));
|
46872 |
});
|
46873 |
+
/* harmony default export */ const plain_text = (PlainText);
|
46874 |
|
46875 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/responsive-block-control/label.js
|
46876 |
|
46991 |
}, !isResponsive && defaultControl, isResponsive && (renderResponsiveControls ? renderResponsiveControls(viewports) : defaultResponsiveControls()))));
|
46992 |
}
|
46993 |
|
46994 |
+
/* harmony default export */ const responsive_block_control = (ResponsiveBlockControl);
|
46995 |
|
46996 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/shortcut.js
|
46997 |
/**
|
47172 |
});
|
47173 |
}
|
47174 |
|
47175 |
+
/* harmony default export */ const tool_selector = ((0,external_wp_element_namespaceObject.forwardRef)(ToolSelector));
|
47176 |
|
47177 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/unit-control/index.js
|
47178 |
|
47214 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47215 |
d: "M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"
|
47216 |
}));
|
47217 |
+
/* harmony default export */ const arrow_left = (arrowLeft);
|
47218 |
|
47219 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/button.js
|
47220 |
|
47296 |
*/
|
47297 |
|
47298 |
|
47299 |
+
/* harmony default export */ const url_input_button = (URLInputButton);
|
47300 |
|
47301 |
;// CONCATENATED MODULE: ./packages/icons/build-module/library/close.js
|
47302 |
|
47311 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
47312 |
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"
|
47313 |
}));
|
47314 |
+
/* harmony default export */ const library_close = (close_close);
|
47315 |
|
47316 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/image-url-input-ui.js
|
47317 |
|
47607 |
/* translators: button label text should, if possible, be under 16 characters. */
|
47608 |
children: (0,external_wp_i18n_namespaceObject.__)('Preview')
|
47609 |
};
|
47610 |
+
const menuProps = {
|
47611 |
+
'aria-label': (0,external_wp_i18n_namespaceObject.__)('Preview options')
|
47612 |
+
};
|
47613 |
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
|
47614 |
className: "block-editor-post-preview__dropdown",
|
47615 |
popoverProps: popoverProps,
|
47616 |
toggleProps: toggleProps,
|
47617 |
+
menuProps: menuProps,
|
47618 |
icon: null
|
47619 |
}, () => (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
47620 |
className: "block-editor-post-preview__button-resize",
|
47740 |
*/
|
47741 |
|
47742 |
|
47743 |
+
/* harmony default export */ const skip_to_selected_block = ((0,external_wp_data_namespaceObject.withSelect)(select => {
|
47744 |
return {
|
47745 |
selectedBlockClientId: select(store).getBlockSelectionStart()
|
47746 |
};
|
47747 |
})(SkipToSelectedBlock));
|
47748 |
|
47749 |
;// CONCATENATED MODULE: external ["wp","wordcount"]
|
47750 |
+
const external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
|
47751 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/multi-selection-inspector/index.js
|
47752 |
|
47753 |
|
47789 |
(0,external_wp_i18n_namespaceObject._n)('%d word', '%d words', words), words))));
|
47790 |
}
|
47791 |
|
47792 |
+
/* harmony default export */ const multi_selection_inspector = ((0,external_wp_data_namespaceObject.withSelect)(select => {
|
47793 |
const {
|
47794 |
getMultiSelectedBlocks
|
47795 |
} = select(store);
|
48031 |
*/
|
48032 |
|
48033 |
|
48034 |
+
/* harmony default export */ const block_inspector = (BlockInspector);
|
48035 |
|
48036 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/index.js
|
48037 |
|
48169 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/library.js
|
48170 |
|
48171 |
|
|
|
|
|
|
|
|
|
48172 |
/**
|
48173 |
* WordPress dependencies
|
48174 |
*/
|
48175 |
|
48176 |
|
|
|
48177 |
/**
|
48178 |
* Internal dependencies
|
48179 |
*/
|
48181 |
|
48182 |
|
48183 |
|
48184 |
+
const library_noop = () => {};
|
48185 |
+
|
48186 |
function InserterLibrary(_ref, ref) {
|
48187 |
let {
|
48188 |
rootClientId,
|
48192 |
showMostUsedBlocks = false,
|
48193 |
__experimentalInsertionIndex,
|
48194 |
__experimentalFilterValue,
|
48195 |
+
onSelect = library_noop,
|
48196 |
shouldFocusBlock = false
|
48197 |
} = _ref;
|
48198 |
const destinationRootClientId = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
48215 |
});
|
48216 |
}
|
48217 |
|
48218 |
+
/* harmony default export */ const library = ((0,external_wp_element_namespaceObject.forwardRef)(InserterLibrary));
|
48219 |
|
48220 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/keyboard-shortcuts/index.js
|
48221 |
/**
|
48332 |
}
|
48333 |
|
48334 |
KeyboardShortcuts.Register = KeyboardShortcutsRegister;
|
48335 |
+
/* harmony default export */ const keyboard_shortcuts = (KeyboardShortcuts);
|
48336 |
|
48337 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/selection-scroll-into-view/index.js
|
48338 |
/**
|
48584 |
*/
|
48585 |
|
48586 |
|
48587 |
+
/* harmony default export */ const observe_typing = (ObserveTyping);
|
48588 |
|
48589 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/typewriter/index.js
|
48590 |
|
48822 |
* can vary. It is the last clicked or scrolled to position.
|
48823 |
*/
|
48824 |
|
48825 |
+
/* harmony default export */ const typewriter = (TypewriterOrIEBypass);
|
48826 |
|
48827 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-no-recursive-renders/index.js
|
48828 |
|
48905 |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
|
48906 |
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"
|
48907 |
}));
|
48908 |
+
/* harmony default export */ const close_small = (closeSmall);
|
48909 |
+
|
48910 |
+
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-popover-header/index.js
|
48911 |
+
|
48912 |
+
|
48913 |
+
/**
|
48914 |
+
* WordPress dependencies
|
48915 |
+
*/
|
48916 |
+
|
48917 |
+
|
48918 |
+
|
48919 |
+
function InspectorPopoverHeader(_ref) {
|
48920 |
+
let {
|
48921 |
+
title,
|
48922 |
+
help,
|
48923 |
+
actions = [],
|
48924 |
+
onClose
|
48925 |
+
} = _ref;
|
48926 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
|
48927 |
+
className: "block-editor-inspector-popover-header",
|
48928 |
+
spacing: 4
|
48929 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
|
48930 |
+
alignment: "center"
|
48931 |
+
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
|
48932 |
+
className: "block-editor-inspector-popover-header__heading",
|
48933 |
+
level: 2,
|
48934 |
+
size: 13
|
48935 |
+
}, title), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, null), actions.map(_ref2 => {
|
48936 |
+
let {
|
48937 |
+
label,
|
48938 |
+
icon,
|
48939 |
+
onClick
|
48940 |
+
} = _ref2;
|
48941 |
+
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
|
48942 |
+
key: label,
|
48943 |
+
className: "block-editor-inspector-popover-header__action",
|
48944 |
+
label: label,
|
48945 |
+
icon: icon,
|
48946 |
+
variant: !icon && 'tertiary',
|
48947 |
+
onClick: onClick
|
48948 |
+
}, !icon && label);
|
48949 |
+
}), onClose && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
|
48950 |
+
className: "block-editor-inspector-popover-header__action",
|
48951 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Close'),
|
48952 |
+
icon: close_small,
|
48953 |
+
onClick: onClose
|
48954 |
+
})), help && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalText, null, help));
|
48955 |
+
}
|
48956 |
|
48957 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/publish-date-time-picker/index.js
|
48958 |
|
48964 |
|
48965 |
|
48966 |
|
48967 |
+
/**
|
48968 |
+
* Internal dependencies
|
48969 |
+
*/
|
48970 |
+
|
48971 |
|
48972 |
|
48973 |
function PublishDateTimePicker(_ref, ref) {
|
48979 |
return (0,external_wp_element_namespaceObject.createElement)("div", {
|
48980 |
ref: ref,
|
48981 |
className: "block-editor-publish-date-time-picker"
|
48982 |
+
}, (0,external_wp_element_namespaceObject.createElement)(InspectorPopoverHeader, {
|
48983 |
+
title: (0,external_wp_i18n_namespaceObject.__)('Publish'),
|
48984 |
+
actions: [{
|
48985 |
+
label: (0,external_wp_i18n_namespaceObject.__)('Now'),
|
48986 |
+
onClick: () => onChange === null || onChange === void 0 ? void 0 : onChange(null)
|
48987 |
+
}],
|
48988 |
+
onClose: onClose
|
48989 |
+
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.DateTimePicker, _extends({
|
|
|
|
|
|
|
|
|
|
|
|
|
48990 |
__nextRemoveHelpButton: true,
|
48991 |
__nextRemoveResetButton: true,
|
48992 |
onChange: onChange
|
48993 |
}, additionalProps)));
|
48994 |
}
|
48995 |
|
48996 |
+
/* harmony default export */ const publish_date_time_picker = ((0,external_wp_element_namespaceObject.forwardRef)(PublishDateTimePicker));
|
48997 |
|
48998 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/index.js
|
48999 |
/*
|
49040 |
|
49041 |
|
49042 |
|
49043 |
+
|
49044 |
|
49045 |
|
49046 |
|
49084 |
|
49085 |
|
49086 |
|
49087 |
+
|
49088 |
|
49089 |
|
49090 |
|
49433 |
return hash;
|
49434 |
}
|
49435 |
|
49436 |
+
/* harmony default export */ const parse_css_unit_to_px = (memoizedGetPxFromCssUnit);
|
49437 |
|
49438 |
;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/index.js
|
49439 |
|
49452 |
|
49453 |
|
49454 |
|
49455 |
+
})();
|
49456 |
+
|
49457 |
(window.wp = window.wp || {}).blockEditor = __webpack_exports__;
|
49458 |
/******/ })()
|
49459 |
;
|
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-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-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-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'e1942ea2ff20f2e79475');
|
build/block-editor/index.min.js
CHANGED
@@ -1,109 +1,109 @@
|
|
1 |
-
!function(){var e={6411:function(e,t){var n,o;void 0===(o="function"==typeof(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()},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]})),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",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",r.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),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 s(e){var t=r.get(e);t&&t.destroy()}function a(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],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})?n.apply(t,[e,t]):n)||(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 s in n)o.call(n,s)&&n[s]&&e.push(s);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,s=0,a=0;l<i;l++){var c=t[l];if(c.removed){if(c.value=e.join(o.slice(a,a+c.count)),a+=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(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 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 s(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 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 f(){for(var n=-1*u;n<=u;n+=2){var l=void 0,d=p[n-1],m=p[n+1],f=(m?m.newPos:0)-n;d&&(p[n-1]=void 0);var g=d&&d.newPos+1<a,h=m&&0<=f&&f<c;if(g||h){if(!g||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)),f=i.extractCommon(l,t,e,n),l.newPos+1>=a&&f+1>=c)return s(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();f()||e()}),0)}();else for(;u<=d;){var g=f();if(g)return g}},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,s=i-o,a=0;i+1<r&&s+1<l&&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: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,s=n.alignWithLeft,a=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),f=o.offset(e),g=o.outerHeight(e),h=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:f.left-S.left-c,top:f.top-S.top-a},E={left:f.left+h-(S.left+w)+d,top:f.top+g-(S.top+B)+u},_=S):(v=o.offset(t),b=t.clientHeight,k=t.clientWidth,_={left:t.scrollLeft,top:t.scrollTop},y={left:f.left-(v.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-c,top:f.top-(v.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},E={left:f.left+h-(v.left+k+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:f.top+g-(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):l||((i=void 0===i||!!i)?o.scrollTop(t,_.top+y.top):o.scrollTop(t,_.top+E.top)),r&&(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):l||((s=void 0===s||!!s)?o.scrollLeft(t,_.left+y.left):o.scrollLeft(t,_.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 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="",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(s.test(n)&&!a.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 f(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 s;s="border"===r?r+n[i]+"Width":r+n[i],o+=parseFloat(c(e,s))||0}return o}function g(e){return null!=e&&e==e.window}var h={};function v(e,t,n){if(g(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 s=void 0!==r||l,a=r||i;if(-1===n)return s?a-f(e,["border","padding"],o):i;if(s){var u=2===n?-f(e,["border"],o):f(e,["margin"],o);return a+(1===n?0:u)}return i+f(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 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 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)&&_(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&&k(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];h[e]=function(t,o){return void 0===o?t&&k(t,e,-1):t?(c(t),d(t)&&(o+=f(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={},r=void 0,l=void 0;for(l in t)t.hasOwnProperty(l)&&(r=parseFloat(_(e,l))||0,o[l]=r+t[l]-n[l]);_(e,o)}(e,t)},isWindow:g,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(g(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(g(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 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}},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 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: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 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 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),a=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return s.createElement("textarea",l({},a,{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: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,l({},e,{innerRef:t}))}))},773:function(e,t,n){"use strict";var o=n(5438);t.Z=o.TextareaAutosize},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={},f=!0,g={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){g.isRoot||(g.parent.node[g.key]=e),g.node=e,t&&(f=!1)},delete:function(e){delete g.parent.node[g.key],e&&(f=!1)},remove:function(e){s(g.parent.node)?g.parent.node.splice(g.key,1):delete g.parent.node[g.key],e&&(f=!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(){f=!1}};if(!u)return g;function h(){if("object"==typeof g.node&&null!==g.node){g.keys&&g.node_===g.node||(g.keys=l(g.node)),g.isLeaf=0==g.keys.length;for(var e=0;e<i.length;e++)if(i[e].node_===d){g.circular=i[e];break}}else g.isLeaf=!0,g.keys=null;g.notLeaf=!g.isLeaf,g.notRoot=!g.isRoot}h();var v=t.call(g,g.node);return void 0!==v&&g.update&&g.update(v),m.before&&m.before.call(g,g.node),f?("object"!=typeof g.node||null===g.node||g.circular||(i.push(g),h(),a(g.keys,(function(t,r){o.push(t),m.pre&&m.pre.call(g,g.node[t],t);var l=e(g.node[t]);n&&c.call(g.node,t)&&(g.node[t]=l.node),l.isLast=r==g.keys.length-1,l.isFirst=0==r,m.post&&m.post.call(g,l),o.pop()})),i.pop()),m.after&&m.after.call(g,g.node),g):g}(e).node}function r(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(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 s=r(o);return e.push(o),t.push(s),a(l(o),(function(e){s[e]=n(o[e])})),e.pop(),t.pop(),s}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 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(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 Vv},AlignmentToolbar:function(){return Hv},Autocomplete:function(){return Zv},BlockAlignmentControl:function(){return Kr},BlockAlignmentToolbar:function(){return qr},BlockBreadcrumb:function(){return tb},BlockColorsStyleSelector:function(){return ib},BlockContextProvider:function(){return pl},BlockControls:function(){return so},BlockEdit:function(){return hl},BlockEditorKeyboardShortcuts:function(){return xy},BlockEditorProvider:function(){return Kc},BlockFormatControls:function(){return io},BlockIcon:function(){return Wc},BlockInspector:function(){return Sy},BlockList:function(){return Of},BlockMover:function(){return om},BlockNavigationDropdown:function(){return Bb},BlockPreview:function(){return kd},BlockSelectionClearer:function(){return Zc},BlockSettingsMenu:function(){return rf},BlockSettingsMenuControls:function(){return ef},BlockStyles:function(){return Nb},BlockTitle:function(){return Up},BlockToolbar:function(){return mf},BlockTools:function(){return wy},BlockVerticalAlignmentControl:function(){return pr},BlockVerticalAlignmentToolbar:function(){return mr},ButtonBlockAppender:function(){return Rp},ButtonBlockerAppender:function(){return Pp},ColorPalette:function(){return Kb},ColorPaletteControl:function(){return qb},ContrastChecker:function(){return Ng},CopyHandler:function(){return Om},DefaultBlockAppender:function(){return Tp},FontSizePicker:function(){return hh},InnerBlocks:function(){return Mf},Inserter:function(){return xp},InspectorAdvancedControls:function(){return Ao},InspectorControls:function(){return Do},JustifyContentControl:function(){return hr},JustifyToolbar:function(){return vr},LineHeightControl:function(){return Xg},MediaPlaceholder:function(){return y_},MediaReplaceFlow:function(){return g_},MediaUpload:function(){return m_},MediaUploadCheck:function(){return f_},MultiSelectScrollIntoView:function(){return Ty},NavigableToolbar:function(){return Kp},ObserveTyping:function(){return My},PanelColorSettings:function(){return E_},PlainText:function(){return Z_},RichText:function(){return K_},RichTextShortcut:function(){return J_},RichTextToolbarButton:function(){return ey},SETTINGS_DEFAULTS:function(){return v},SkipToSelectedBlock:function(){return by},ToolSelector:function(){return oy},Typewriter:function(){return Oy},URLInput:function(){return Hk},URLInputButton:function(){return sy},URLPopover:function(){return b_},Warning:function(){return bl},WritingFlow:function(){return uu},__experimentalBlockAlignmentMatrixControl:function(){return Jv},__experimentalBlockFullHeightAligmentControl:function(){return Xv},__experimentalBlockPatternSetup:function(){return Gb},__experimentalBlockPatternsList:function(){return Gd},__experimentalBlockVariationPicker:function(){return Rb},__experimentalBlockVariationTransforms:function(){return $b},__experimentalBorderRadiusControl:function(){return Xf},__experimentalColorGradientControl:function(){return wg},__experimentalColorGradientSettingsDropdown:function(){return Tg},__experimentalDateFormatPicker:function(){return Qb},__experimentalDuotoneControl:function(){return rv},__experimentalElementButtonClassName:function(){return Uy},__experimentalFontAppearanceControl:function(){return Qg},__experimentalFontFamilyControl:function(){return ah},__experimentalGetBorderClassesAndStyles:function(){return _v},__experimentalGetColorClassesAndStyles:function(){return Ev},__experimentalGetGradientClass:function(){return vg},__experimentalGetGradientObjectByGradientValue:function(){return kg},__experimentalGetMatchingVariation:function(){return Wy},__experimentalGetSpacingClassesAndStyles:function(){return wv},__experimentalImageEditingProvider:function(){return Ck},__experimentalImageEditor:function(){return Mk},__experimentalImageSizeControl:function(){return Ak},__experimentalImageURLInputUI:function(){return gy},__experimentalLayoutStyle:function(){return Dr},__experimentalLetterSpacingControl:function(){return Fh},__experimentalLibrary:function(){return By},__experimentalLinkControl:function(){return u_},__experimentalLinkControlSearchInput:function(){return n_},__experimentalLinkControlSearchItem:function(){return Wk},__experimentalLinkControlSearchResults:function(){return Zk},__experimentalListView:function(){return Sb},__experimentalPanelColorGradientSettings:function(){return ok},__experimentalPreviewOptions:function(){return hy},__experimentalPublishDateTimePicker:function(){return Gy},__experimentalResponsiveBlockControl:function(){return X_},__experimentalTextDecorationControl:function(){return Bh},__experimentalTextTransformControl:function(){return Lh},__experimentalUnitControl:function(){return ry},__experimentalUseBlockOverlayActive:function(){return nb},__experimentalUseBlockPreview:function(){return _d},__experimentalUseBorderProps:function(){return yv},__experimentalUseColorProps:function(){return Sv},__experimentalUseCustomSides:function(){return er},__experimentalUseGradient:function(){return yg},__experimentalUseNoRecursiveRenders:function(){return Vy},__experimentalUseResizeCanvas:function(){return vy},__unstableBlockNameContext:function(){return pf},__unstableBlockSettingsMenuFirstItem:function(){return Um},__unstableBlockToolbarLastItem:function(){return Pm},__unstableEditorStyles:function(){return gd},__unstableIframe:function(){return mu},__unstableInserterMenuExtension:function(){return vp},__unstablePresetDuotoneFilter:function(){return fv},__unstableRichTextInputEvent:function(){return ty},__unstableUseBlockSelectionClearer:function(){return Yc},__unstableUseClipboardHandler:function(){return Dm},__unstableUseMouseMoveTypingReset:function(){return Py},__unstableUseTypewriter:function(){return Dy},__unstableUseTypingObserver:function(){return Ry},createCustomColorsHOC:function(){return Nv},getColorClassName:function(){return ng},getColorObjectByAttributeValues:function(){return eg},getColorObjectByColorValue:function(){return tg},getFontSize:function(){return mh},getFontSizeClass:function(){return gh},getFontSizeObjectByValue:function(){return fh},getGradientSlugByValue:function(){return _g},getGradientValueBySlug:function(){return bg},getPxFromCssUnit:function(){return eE},store:function(){return Qn},storeConfig:function(){return Zn},transformStyles:function(){return pd},useBlockDisplayInformation:function(){return Hp},useBlockEditContext:function(){return to},useBlockProps:function(){return Mc},useCachedTruthy:function(){return Bv},useInnerBlocksProps:function(){return Rf},useSetting:function(){return So},withColorContext:function(){return jb},withColors:function(){return Pv},withFontSizes:function(){return Mv}});var e={};n.r(e),n.d(e,{__experimentalGetActiveBlockIdByBlockNames:function(){return Ot},__experimentalGetAllowedBlocks:function(){return vt},__experimentalGetAllowedPatterns:function(){return yt},__experimentalGetBlockListSettingsForBlocks:function(){return It},__experimentalGetDirectInsertBlock:function(){return bt},__experimentalGetGlobalBlocksByName:function(){return J},__experimentalGetLastBlockAttributeChanges:function(){return Nt},__experimentalGetParsedPattern:function(){return kt},__experimentalGetPatternTransformItems:function(){return Ct},__experimentalGetPatternsByBlockTypes:function(){return Et},__experimentalGetReusableBlockTitle:function(){return xt},__unstableGetBlockWithoutInnerBlocks:function(){return j},__unstableGetClientIdWithClientIdsTree:function(){return q},__unstableGetClientIdsTree:function(){return Y},__unstableGetSelectedBlocksWithPartialSelection:function(){return Re},__unstableGetVisibleBlocks:function(){return Vt},__unstableIsFullySelected:function(){return Te},__unstableIsLastBlockChangeIgnored:function(){return Tt},__unstableIsSelectionCollapsed:function(){return Ne},__unstableIsSelectionMergeable:function(){return Pe},areInnerBlocksControlled:function(){return Dt},canEditBlock:function(){return st},canInsertBlockType:function(){return tt},canInsertBlocks:function(){return nt},canLockBlockType:function(){return at},canMoveBlock:function(){return lt},canMoveBlocks:function(){return it},canRemoveBlock:function(){return ot},canRemoveBlocks:function(){return rt},didAutomaticChange:function(){return Lt},getAdjacentBlockClientId:function(){return ge},getBlock:function(){return $},getBlockAttributes:function(){return W},getBlockCount:function(){return te},getBlockHierarchyRootClientId:function(){return me},getBlockIndex:function(){return Le},getBlockInsertionPoint:function(){return qe},getBlockListSettings:function(){return St},getBlockMode:function(){return He},getBlockName:function(){return G},getBlockOrder:function(){return Me},getBlockParents:function(){return de},getBlockParentsByBlockName:function(){return pe},getBlockRootClientId:function(){return ue},getBlockSelectionEnd:function(){return le},getBlockSelectionStart:function(){return re},getBlockTransformItems:function(){return gt},getBlocks:function(){return K},getBlocksByClientId:function(){return ee},getClientIdsOfDescendants:function(){return Z},getClientIdsWithDescendants:function(){return Q},getDraggedBlockClientIds:function(){return We},getFirstMultiSelectedBlockClientId:function(){return Ee},getGlobalBlockCount:function(){return X},getInserterItems:function(){return ft},getLastMultiSelectedBlockClientId:function(){return Ce},getLowestCommonAncestorWithSelectedBlock:function(){return fe},getMultiSelectedBlockClientIds:function(){return _e},getMultiSelectedBlocks:function(){return ye},getMultiSelectedBlocksEndClientId:function(){return xe},getMultiSelectedBlocksStartClientId:function(){return Ie},getNextBlockClientId:function(){return ve},getPreviousBlockClientId:function(){return he},getSelectedBlock:function(){return ce},getSelectedBlockClientId:function(){return ae},getSelectedBlockClientIds:function(){return ke},getSelectedBlockCount:function(){return ie},getSelectedBlocksInitialCaretPosition:function(){return be},getSelectionEnd:function(){return oe},getSelectionStart:function(){return ne},getSettings:function(){return wt},getTemplate:function(){return Qe},getTemplateLock:function(){return Xe},hasBlockMovingClientId:function(){return Mt},hasInserterItems:function(){return ht},hasMultiSelection:function(){return Fe},hasSelectedBlock:function(){return se},hasSelectedInnerBlock:function(){return De},isAncestorBeingDragged:function(){return je},isAncestorMultiSelected:function(){return Be},isBlockBeingDragged:function(){return $e},isBlockHighlighted:function(){return At},isBlockInsertionPointVisible:function(){return Ye},isBlockMultiSelected:function(){return we},isBlockSelected:function(){return Ae},isBlockValid:function(){return U},isBlockVisible:function(){return zt},isBlockWithinSelection:function(){return Oe},isCaretWithinFormattedText:function(){return Ke},isDraggingBlocks:function(){return Ue},isFirstMultiSelectedBlock:function(){return Se},isLastBlockChangePersistent:function(){return Bt},isMultiSelecting:function(){return ze},isNavigationMode:function(){return Rt},isSelectionEnabled:function(){return Ve},isTyping:function(){return Ge},isValidTemplate:function(){return Ze},wasBlockJustInserted:function(){return Ft}});var t={};n.r(t),n.d(t,{__unstableDeleteSelection:function(){return vn},__unstableExpandSelection:function(){return kn},__unstableMarkAutomaticChange:function(){return zn},__unstableMarkLastChangeAsPersistent:function(){return On},__unstableMarkNextChangeAsNotPersistent:function(){return Fn},__unstableSaveReusableBlock:function(){return Dn},__unstableSplitSelection:function(){return bn},clearSelectedBlock:function(){return en},duplicateBlocks:function(){return Gn},enterFormattedText:function(){return Nn},exitFormattedText:function(){return Pn},flashBlock:function(){return jn},hideInsertionPoint:function(){return fn},insertAfterBlock:function(){return Wn},insertBeforeBlock:function(){return Un},insertBlock:function(){return dn},insertBlocks:function(){return pn},insertDefaultBlock:function(){return Mn},mergeBlocks:function(){return yn},moveBlockToPosition:function(){return un},moveBlocksDown:function(){return sn},moveBlocksToPosition:function(){return cn},moveBlocksUp:function(){return an},multiSelect:function(){return Jt},receiveBlocks:function(){return $t},removeBlock:function(){return Cn},removeBlocks:function(){return En},replaceBlock:function(){return rn},replaceBlocks:function(){return on},replaceInnerBlocks:function(){return Sn},resetBlocks:function(){return Gt},resetSelection:function(){return Wt},selectBlock:function(){return qt},selectNextBlock:function(){return Zt},selectPreviousBlock:function(){return Yt},selectionChange:function(){return Rn},setBlockMovingClientId:function(){return Hn},setBlockVisibility:function(){return qn},setHasControlledInnerBlocks:function(){return Kn},setNavigationMode:function(){return Vn},setTemplateValidity:function(){return gn},showInsertionPoint:function(){return mn},startDraggingBlocks:function(){return xn},startMultiSelect:function(){return Qt},startTyping:function(){return Bn},stopDraggingBlocks:function(){return Tn},stopMultiSelect:function(){return Xt},stopTyping:function(){return In},synchronizeTemplate:function(){return hn},toggleBlockHighlight:function(){return $n},toggleBlockMode:function(){return wn},toggleSelection:function(){return tn},updateBlock:function(){return Kt},updateBlockAttributes:function(){return jt},updateBlockListSettings:function(){return Ln},updateSettings:function(){return An},validateBlocksToTemplate:function(){return Ut}});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}).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 s=window.wp.element,a=n(4403),c=n.n(a),u=window.lodash,d=window.wp.compose,p=window.wp.components,m=window.wp.data,f={default:(0,p.createSlotFill)("BlockControls"),block:(0,p.createSlotFill)("BlockControlsBlock"),inline:(0,p.createSlotFill)("BlockFormatControls"),other:(0,p.createSlotFill)("BlockControlsOther"),parent:(0,p.createSlotFill)("BlockControlsParent")},g=window.wp.i18n;const h={insertUsage:{}},v={alignWide:!1,supportsLayout:!0,colors:[{name:(0,g.__)("Black"),slug:"black",color:"#000000"},{name:(0,g.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,g.__)("White"),slug:"white",color:"#ffffff"},{name:(0,g.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,g.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,g.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,g.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,g.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,g.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,g.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,g.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,g.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,g._x)("Small","font size name"),size:13,slug:"small"},{name:(0,g._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,g._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,g._x)("Large","font size name"),size:36,slug:"large"},{name:(0,g._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,g.__)("Thumbnail")},{slug:"medium",name:(0,g.__)("Medium")},{slug:"large",name:(0,g.__)("Large")},{slug:"full",name:(0,g.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!1,generateAnchors:!1,gradients:[{name:(0,g.__)("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,g.__)("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,g.__)("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,g.__)("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,g.__)("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,g.__)("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,g.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,g.__)("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,g.__)("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,g.__)("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,g.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,g.__)("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),...(0,u.castArray)(t),...e.slice(n)]}function k(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)}function _(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,_(r,o))})),n}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce(((e,n)=>Object.assign(e,{[n.clientId]:t},y(n.innerBlocks,n.clientId))),{})}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.identity;const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n[r.clientId]=t(r)}return n}function C(e){return E(e,(e=>(0,u.omit)(e,"attributes")))}function S(e){return E(e,(e=>e.attributes))}function w(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&(0,u.isEqual)(e.clientIds,t.clientIds)&&function(e,t){return(0,u.isEqual)((0,u.keys)(e),(0,u.keys)(t))}(e.attributes,t.attributes)}function B(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[t.clientId],innerBlocks:t.innerBlocks.map((e=>n[e.clientId]))});return n}function I(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 x=(0,u.flow)(m.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,u.mapValues)(t.attributes,((n,r)=>{const{name:l}=t.byClientId[r];return"core/block"===l&&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=B(o,n.blocks);o.tree=I(o,{...o.tree,...e},n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=I(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=I(o,{...o.tree,...e},n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=B(o,n.blocks);o.tree=I(o,{...(0,u.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=I(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=I(o,(0,u.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),n.toRootClientId&&e.push(n.toRootClientId),n.fromRootClientId&&n.fromRootClientId||e.push(""),o.tree=I(o,o.tree,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=I(o,o.tree,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=(0,u.keys)((0,u.omitBy)(o.attributes,((e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId)));o.tree=I(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 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,...(0,u.reduce)(o,((e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e)),{})}),l}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:C(n.blocks),attributes:S(n.blocks),order:_(n.blocks),parents:y(n.blocks),controlledInnerBlocks:{},visibility:{}},o=B(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 s;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(s=null==o?void 0:o.isPersistentChange)||void 0===s||s;return o.isPersistentChange===e?o:{...l,isPersistentChange:e}}return l={...l,isPersistentChange:i?!n:!w(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,...C(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=(0,u.omit)(t.updates,"attributes");return(0,u.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...(0,u.omit)(e,t.replacedClientIds),...C(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.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,...S(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)=>({...n,[o]:(0,u.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,((t,n,r)=>{var l,i;return n!==t[r]&&((t=(l=e[o])===(i=t)?{...l}:i)[r]=n),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,u.omit)(e,t.replacedClientIds),...S(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.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=_(t.blocks);return{...e,...(0,u.omit)(n,""),"":((null==e?void 0:e[""])||[]).concat(n[""])}}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=_(t.blocks,n),{index:l=o.length}=t;return{...e,...r,[n]:b(o,r[n],l)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:l=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:k(e[o],t,l,r.length)}}return{...e,[n]:(0,u.without)(e[n],...r),[o]:b(e[o],r,l)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=(0,u.first)(n),l=e[o];if(!l.length||r===(0,u.first)(l))return e;const i=l.indexOf(r);return{...e,[o]:k(l,i,i-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=(0,u.first)(n),l=(0,u.last)(n),i=e[o];if(!i.length||l===(0,u.last)(i))return e;const s=i.indexOf(r);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=_(t.blocks);return(0,u.flow)([e=>(0,u.omit)(e,t.replacedClientIds),e=>({...e,...(0,u.omit)(o,"")}),e=>(0,u.mapValues)(e,(e=>(0,u.reduce)(e,((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.flow)([e=>(0,u.omit)(e,t.removedClientIds),e=>(0,u.mapValues)(e,(e=>(0,u.without)(e,...t.removedClientIds)))])(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,...y(t.blocks)};case"INSERT_BLOCKS":return{...e,...y(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,u.omit)(e,t.replacedClientIds),...y(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.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},visibility(){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}});function T(){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 N=(0,m.combineReducers)({blocks:x,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},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:s}=l;return{selectionStart:i,selectionEnd:s};case"MULTI_SELECT":const{start:a,end:c}=l;return a===(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:a},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:T(r.selectionStart,l),selectionEnd:T(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;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return 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,u.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?(0,u.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?(0,u.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:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};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;switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return 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,m.select)(r.store).getActiveBlockVariation(l,o);let s=null!=i&&i.name?`${l}/${i.name}`:l;const a={name:s};return"core/block"===l&&(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(e,t){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 null},isNavigationMode:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode: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_NAVIGATION_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":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}}),P={};function R(e){return[e]}function M(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 L(e,t){var n,o=t||R;function r(e){var t,o,r,l,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):(r=new WeakMap,s.set(o,r),s=r)}return s.has(P)||((l=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=a,s.set(P,l)),s.get(P)}function l(){n=new WeakMap}function i(){var t,n,l,i,s,a=arguments.length;for(i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];for((t=r(s=o.apply(null,i))).isUniqueByDependants||(t.lastDependants&&!M(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),n=t.head;n;){if(M(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 A=window.wp.primitives,D=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.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"})),O=window.wp.richText,F=window.wp.deprecated,z=n.n(F);function V(e){const{multiline:t,__unstableMultilineWrapperTags:n,__unstablePreserveWhiteSpace:o}=e;return{multilineTag:t,multilineWrapperTags:n,preserveWhiteSpace:o}}const H=[];function G(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:r}=n;return r?`core/social-link-${r}`:o}return n?n.name:null}function U(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function W(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}function $(e,t){return e.blocks.byClientId[t]?e.blocks.tree[t]:null}const j=L(((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:W(e,t)}:null}),((e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]));function K(e,t){var n;const o=t&&Dt(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree[o])||void 0===n?void 0:n.innerBlocks)||H}const q=L(((e,t)=>({clientId:t,innerBlocks:Y(e,t)})),(e=>[e.blocks.order])),Y=L((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.map)(Me(e,t),(t=>q(e,t)))}),(e=>[e.blocks.order])),Z=L(((e,t)=>{const n=[];for(const o of t)for(const t of Me(e,o))n.push(t,...Z(e,[t]));return n}),(e=>[e.blocks.order])),Q=L((e=>{const t=[];for(const n of Me(e))t.push(n,...Z(e,[n]));return t}),(e=>[e.blocks.order])),X=L(((e,t)=>{const n=Q(e);return t?(0,u.reduce)(n,((n,o)=>e.blocks.byClientId[o].name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),J=L(((e,t)=>{if(!t)return H;const n=Q(e).filter((n=>e.blocks.byClientId[n].name===t));return n.length>0?n:H}),(e=>[e.blocks.order,e.blocks.byClientId])),ee=L(((e,t)=>(0,u.map)((0,u.castArray)(t),(t=>$(e,t)))),((e,t)=>(0,u.map)((0,u.castArray)(t),(t=>e.blocks.tree[t]))));function te(e,t){return Me(e,t).length}function ne(e){return e.selection.selectionStart}function oe(e){return e.selection.selectionEnd}function re(e){return e.selection.selectionStart.clientId}function le(e){return e.selection.selectionEnd.clientId}function ie(e){return _e(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 ae(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function ce(e){const t=ae(e);return t?$(e,t):null}function ue(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const de=L((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])),pe=L((function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=de(e,t,o);return(0,u.map)((0,u.filter)((0,u.map)(r,(t=>({id:t,name:G(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 me(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function fe(e,t){const n=ae(e),o=[...de(e,t),t],r=[...de(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 ge(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=ae(e)),void 0===t&&(t=n<0?Ee(e):Ce(e)),!t)return null;const o=ue(e,t);if(null===o)return null;const{order:r}=e.blocks,l=r[o],i=l.indexOf(t),s=i+1*n;return s<0||s===l.length?null:l[s]}function he(e,t){return ge(e,t,-1)}function ve(e,t){return ge(e,t,1)}function be(e){return e.initialPosition}const ke=L((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return H;if(t.clientId===n.clientId)return[t.clientId];const o=ue(e,t.clientId);if(null===o)return H;const r=Me(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 _e(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?H:ke(e)}const ye=L((e=>{const t=_e(e);return t.length?t.map((t=>$(e,t))):H}),(e=>[...ke.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Ee(e){return(0,u.first)(_e(e))||null}function Ce(e){return(0,u.last)(_e(e))||null}function Se(e,t){return Ee(e)===t}function we(e,t){return-1!==_e(e).indexOf(t)}const Be=L(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=ue(e,n),o=we(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Ie(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function xe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Te(e){const t=ne(e),n=oe(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Ne(e){const t=ne(e),n=oe(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function Pe(e,t){const n=ne(e),o=oe(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=ue(e,n.clientId);if(l!==ue(e,o.clientId))return!1;const i=Me(e,l);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=$(e,c);if(!(0,r.getBlockType)(d.name).merge)return!1;const p=$(e,u);if(p.name===d.name)return!0;const m=(0,r.switchToBlockType)(p,d.name);return m&&m.length}const Re=e=>{const t=ne(e),n=oe(e);if(t.clientId===n.clientId)return H;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return H;const o=ue(e,t.clientId);if(o!==ue(e,n.clientId))return H;const l=Me(e,o),i=l.indexOf(t.clientId),s=l.indexOf(n.clientId),[a,c]=i>s?[n,t]:[t,n],u=$(e,a.clientId),d=(0,r.getBlockType)(u.name),p=$(e,c.clientId),m=(0,r.getBlockType)(p.name),f=u.attributes[a.attributeKey],g=p.attributes[c.attributeKey],h=d.attributes[a.attributeKey],v=m.attributes[c.attributeKey];let b=(0,O.create)({html:f,...V(h)}),k=(0,O.create)({html:g,...V(v)});return b=(0,O.remove)(b,0,a.offset),k=(0,O.remove)(k,c.offset,k.text.length),[{...u,attributes:{...u.attributes,[a.attributeKey]:(0,O.toHTMLString)({value:b,...V(h)})}},{...p,attributes:{...p.attributes,[c.attributeKey]:(0,O.toHTMLString)({value:k,...V(v)})}}]};function Me(e,t){return e.blocks.order[t||""]||H}function Le(e,t){return Me(e,ue(e,t)).indexOf(t)}function Ae(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function De(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,u.some)(Me(e,t),(t=>Ae(e,t)||we(e,t)||n&&De(e,t,n)))}function Oe(e,t){if(!t)return!1;const n=_e(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function Fe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function ze(e){return e.isMultiSelecting}function Ve(e){return e.isSelectionEnabled}function He(e,t){return e.blocksMode[t]||"visual"}function Ge(e){return e.isTyping}function Ue(e){return!!e.draggedBlocks.length}function We(e){return e.draggedBlocks}function $e(e,t){return e.draggedBlocks.includes(t)}function je(e,t){if(!Ue(e))return!1;const n=de(e,t);return(0,u.some)(n,(t=>$e(e,t)))}function Ke(){return z()('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:r}}=e;if(null!==o)return o;const{clientId:l}=r;return l?(t=ue(e,l)||void 0,n=Le(e,r.clientId)+1):n=Me(e).length,{rootClientId:t,index:n}}function Ye(e){return null!==e.insertionPoint}function Ze(e){return e.template.isValid}function Qe(e){return e.settings.template}function Xe(e,t){if(!t)return e.settings.templateLock;const n=St(e,t);return n?n.templateLock:null}const Je=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,u.isBoolean)(e)?e:(0,u.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},et=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}=wt(e),s=Je(i,t,!0);if(!s)return!1;const a=!!Xe(e,o);if(a)return!1;const c=St(e,o);if(o&&void 0===c)return!1;const d=null==c?void 0:c.allowedBlocks,p=Je(d,t),m=n.parent,f=G(e,o),g=Je(m,f);let h=!0;const v=n.ancestor;if(v){const t=[o,...de(e,o)];h=(0,u.some)(t,(t=>Je(v,G(e,t))))}const b=h&&(null===p&&null===g||!0===p||!0===g);return b?(0,l.applyFilters)("blockEditor.__unstableCanInsertBlockType",b,n,o,{getBlock:$.bind(null,e),getBlockParentsByBlockName:pe.bind(null,e)}):b},tt=L(et,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]));function nt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>tt(e,G(e,t),n)))}function ot(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=W(e,t);if(null===o)return!0;const{lock:r}=o,l=!!Xe(e,n);return void 0===r||void 0===(null==r?void 0:r.remove)?!l:!(null!=r&&r.remove)}function rt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>ot(e,t,n)))}function lt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=W(e,t);if(null===o)return;const{lock:r}=o,l="all"===Xe(e,n);return void 0===r||void 0===(null==r?void 0:r.move)?!l:!(null!=r&&r.move)}function it(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>lt(e,t,n)))}function st(e,t){const n=W(e,t);if(null===n)return!0;const{lock:o}=n;return!(null!=o&&o.edit)}function at(e,t){var n;return!!(0,r.hasBlockSupport)(t,"lock",!0)&&!(null===(n=e.settings)||void 0===n||!n.canLockBlocks)}function ct(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 ut=(e,t,n)=>!!(0,r.hasBlockSupport)(t,"inserter",!0)&&et(e,t.name,n),dt=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:l=0}=ct(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:pt(r,l)}},pt=(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}},mt=(e,t)=>{let{buildScope:n="inserter"}=t;return t=>{const o=t.name;let l=!1;(0,r.hasBlockSupport)(t.name,"multiple",!0)||(l=(0,u.some)(ee(e,Q(e)),{name:t.name}));const{time:i,count:s=0}=ct(e,o)||{},a={id:o,name:t.name,title:t.title,icon:t.icon,isDisabled:l,frecency:pt(i,s)};if("transform"===n)return a;const c=(0,r.getBlockVariations)(t.name,"inserter");return{...a,initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:c,example:t.example,utility:1}}},ft=L((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=mt(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=D;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,l=(0,r.getBlockType)(t+o);l&&(n=l.icon)}}const l=`core/block/${t.id}`,{time:i,count:a=0}=ct(e,l)||{},c=pt(i,a);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=>ut(e,n,t))).map(n),a=et(e,"core/block",t)?Pt(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=dt(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,...a]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Pt(e),(0,r.getBlockTypes)()])),gt=L((function(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const l=(0,u.castArray)(t),[i]=l,s=mt(e,{buildScope:"transform"}),a=(0,r.getBlockTypes)().filter((t=>ut(e,t,o))).map(s),c=(0,u.mapKeys)(a,(e=>{let{name:t}=e;return t}));c["*"]={frecency:1/0,id:"*",isDisabled:!1,name:"*",title:(0,g.__)("Unwrap"),icon:null===(n=c[null==i?void 0:i.name])||void 0===n?void 0:n.icon};const d=(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,u.orderBy)(d,(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)()])),ht=L((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=(0,u.some)((0,r.getBlockTypes)(),(n=>ut(e,n,t)));if(n)return!0;const o=et(e,"core/block",t)&&Pt(e).length>0;return o}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Pt(e),(0,r.getBlockTypes)()])),vt=L((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return(0,u.filter)((0,r.getBlockTypes)(),(n=>ut(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,r.getBlockTypes)()])),bt=L((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($(e,o))?r:null:r:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree[t]])),kt=L(((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])),_t=L((e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=wt(e);return t.filter((e=>{let{inserter:t=!0}=e;return!!t})).map((t=>{let{name:n}=t;return kt(e,n)})).filter((e=>{let{blocks:t}=e;return((e,t)=>{if((0,u.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!Je(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)}))}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes])),yt=L((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=_t(e),o=(0,u.filter)(n,(n=>{let{blocks:o}=n;return o.every((n=>{let{name:o}=n;return tt(e,o,t)}))}));return o}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]])),Et=L((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return H;const o=yt(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)=>[...yt.getDependants(e,t)])),Ct=L((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return H;if(t.some((t=>{let{clientId:n,innerBlocks:o}=t;return o.length||Dt(e,n)})))return H;const o=Array.from(new Set(t.map((e=>{let{name:t}=e;return t}))));return Et(e,o,n)}),((e,t)=>[...Et.getDependants(e,t)]));function St(e,t){return e.blockListSettings[t]}function wt(e){return e.settings}function Bt(e){return e.blocks.isPersistentChange}const It=L((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])),xt=L(((e,t)=>{var n;const o=(0,u.find)(Pt(e),(e=>e.id===t));return o?null===(n=o.title)||void 0===n?void 0:n.raw:null}),(e=>[Pt(e)]));function Tt(e){return e.blocks.isIgnoredChange}function Nt(e){return e.lastBlockAttributesChange}function Pt(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:H}function Rt(e){return e.isNavigationMode}function Mt(e){return e.hasBlockMovingClientId}function Lt(e){return!!e.automaticChangeStatus}function At(e,t){return e.highlightedBlock===t}function Dt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const Ot=L(((e,t)=>{if(!t.length)return null;const n=ae(e);if(t.includes(G(e,n)))return n;const o=_e(e),r=pe(e,n||o[0],t);return r?(0,u.last)(r):null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function Ft(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}function zt(e,t){var n,o;return null===(n=null===(o=e.blocks.visibility)||void 0===o?void 0:o[t])||void 0===n||n}const Vt=L((e=>new Set(Object.keys(e.blocks.visibility).filter((t=>e.blocks.visibility[t])))),(e=>[e.blocks.visibility]));var Ht=window.wp.a11y;const Gt=e=>t=>{let{dispatch:n}=t;n({type:"RESET_BLOCKS",blocks:e}),n(Ut(e))},Ut=e=>t=>{let{select:n,dispatch:o}=t;const l=n.getTemplate(),i=n.getTemplateLock(),s=!l||"all"!==i||(0,r.doBlocksMatchTemplate)(e,l);if(s!==n.isValidTemplate())return o.setTemplateValidity(s),s};function Wt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function $t(e){return z()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function jt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:(0,u.castArray)(e),attributes:t,uniqueByBlock:n}}function Kt(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function qt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Yt=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getPreviousBlockClientId(e);r&&o.selectBlock(r,-1)},Zt=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getNextBlockClientId(e);r&&o.selectBlock(r)};function Qt(){return{type:"START_MULTI_SELECT"}}function Xt(){return{type:"STOP_MULTI_SELECT"}}const Jt=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,Ht.speak)((0,g.sprintf)(
|
2 |
/* translators: %s: number of selected blocks */
|
3 |
-
(0,g._n)("%s block selected.","%s blocks selected.",i),i),"assertive")}};function en(){return{type:"CLEAR_SELECTED_BLOCK"}}function tn(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function nn(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,s=l[n];return{...e,attributes:{...i,className:`${o||""} is-style-${s}`.trim()}}}))}const on=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:s}=l;e=(0,u.castArray)(e),t=nn((0,u.castArray)(t),i.getSettings());const a=i.getBlockRootClientId((0,u.first)(e));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:r}),s((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 on(e,t)}const ln=e=>(t,n)=>o=>{let{select:r,dispatch:l}=o;r.canMoveBlocks(t,n)&&l({type:e,clientIds:(0,u.castArray)(t),rootClientId:n})},sn=ln("MOVE_BLOCKS_DOWN"),an=ln("MOVE_BLOCKS_UP"),cn=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 un(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 cn([e],t,n,o)}function dn(e,t,n,o,r){return pn([e],t,n,o,0,r)}const pn=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:s,dispatch:a}=i;(0,u.isObject)(r)&&(l=r,r=0,z()("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=nn((0,u.castArray)(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?r:null,meta:l})}};function mn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function fn(){return{type:"HIDE_INSERTION_POINT"}}function gn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const hn=()=>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)},vn=e=>t=>{let{registry:n,select:o,dispatch:l}=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 d,p;c.indexOf(i.clientId)>c.indexOf(s.clientId)?(d=s,p=i):(d=i,p=s);const m=e?p:d,f=o.getBlock(m.clientId),g=(0,r.getBlockType)(f.name);if(!g.merge)return;const h=d,v=p,b=o.getBlock(h.clientId),k=(0,r.getBlockType)(b.name),_=o.getBlock(v.clientId),y=(0,r.getBlockType)(_.name),E=b.attributes[h.attributeKey],C=_.attributes[v.attributeKey],S=k.attributes[h.attributeKey],w=y.attributes[v.attributeKey];let B=(0,O.create)({html:E,...V(S)}),I=(0,O.create)({html:C,...V(w)});B=(0,O.remove)(B,h.offset,B.text.length),I=(0,O.insert)(I,"",0,v.offset);const x=(0,r.cloneBlock)(b,{[h.attributeKey]:(0,O.toHTMLString)({value:B,...V(S)})}),T=(0,r.cloneBlock)(_,{[v.attributeKey]:(0,O.toHTMLString)({value:I,...V(w)})}),N=e?x:T,P=b.name===_.name?[N]:(0,r.switchToBlockType)(N,g.name);if(!P||!P.length)return;let R;if(e){const e=P.pop();R=g.merge(e.attributes,T.attributes)}else{const e=P.shift();R=g.merge(x.attributes,e.attributes)}const M=(0,u.findKey)(R,(e=>"string"==typeof e&&-1!==e.indexOf(""))),L=R[M],A=(0,O.create)({html:L,...V(g.attributes[M])}),D=A.text.indexOf(""),F=(0,O.remove)(A,D,D+1),z=(0,O.toHTMLString)({value:F,...V(g.attributes[M])});R[M]=z;const H=o.getSelectedBlockClientIds(),G=[...e?P:[],{...f,attributes:{...f.attributes,...R}},...e?[]:P];n.batch((()=>{l.selectionChange(f.clientId,M,D,D),l.replaceBlocks(H,G,0,o.getSelectedBlocksInitialCaretPosition())}))},bn=()=>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 s=t.getBlockOrder(i);let a,c;s.indexOf(o.clientId)>s.indexOf(l.clientId)?(a=l,c=o):(a=o,c=l);const u=a,d=c,p=t.getBlock(u.clientId),m=(0,r.getBlockType)(p.name),f=t.getBlock(d.clientId),g=(0,r.getBlockType)(f.name),h=p.attributes[u.attributeKey],v=f.attributes[d.attributeKey],b=m.attributes[u.attributeKey],k=g.attributes[d.attributeKey];let _=(0,O.create)({html:h,...V(b)}),y=(0,O.create)({html:v,...V(k)});_=(0,O.remove)(_,u.offset,_.text.length),y=(0,O.remove)(y,0,d.offset),n.replaceBlocks(t.getSelectedBlockClientIds(),[{...p,attributes:{...p.attributes,[u.attributeKey]:(0,O.toHTMLString)({value:_,...V(b)})}},(0,r.createBlock)((0,r.getDefaultBlockName)()),{...f,attributes:{...f.attributes,[d.attributeKey]:(0,O.toHTMLString)({value:y,...V(k)})}}],1,t.getSelectedBlocksInitialCaretPosition())},kn=()=>e=>{let{select:t,dispatch:n}=e;const o=t.getSelectionStart(),r=t.getSelectionEnd();n.selectionChange({start:{clientId:o.clientId},end:{clientId:r.clientId}})},yn=(e,t)=>n=>{let{select:o,dispatch:l}=n;const i=[e,t];l({type:"MERGE_BLOCKS",blocks:i});const[s,a]=i,c=o.getBlock(s),d=(0,r.getBlockType)(c.name);if(d&&!d.merge)return void l.selectBlock(c.clientId);const p=o.getBlock(a),m=(0,r.getBlockType)(p.name),{clientId:f,attributeKey:g,offset:h}=o.getSelectionStart(),v=(f===s?d:m).attributes[g],b=(f===s||f===a)&&void 0!==g&&void 0!==h&&!!v;v||("number"==typeof g?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 g):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const k=(0,r.cloneBlock)(c),_=(0,r.cloneBlock)(p);if(b){const e=f===s?k:_,t=e.attributes[g],n=(0,O.insert)((0,O.create)({html:t,...V(v)}),"",h,h);e.attributes[g]=(0,O.toHTMLString)({value:n,...V(v)})}const y=c.name===p.name?[_]:(0,r.switchToBlockType)(_,c.name);if(!y||!y.length)return;const E=d.merge(k.attributes,y[0].attributes);if(b){const e=(0,u.findKey)(E,(e=>"string"==typeof e&&-1!==e.indexOf(""))),t=E[e],n=(0,O.create)({html:t,...V(d.attributes[e])}),o=n.text.indexOf(""),r=(0,O.remove)(n,o,o+1),i=(0,O.toHTMLString)({value:r,...V(d.attributes[e])});E[e]=i,l.selectionChange(c.clientId,e,o,o)}l.replaceBlocks([c.clientId,p.clientId],[{...c,attributes:{...c.attributes,...E}},...y.slice(1)],0)},En=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=(0,u.castArray)(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 Cn(e,t){return En([e],t)}function Sn(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 wn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Bn(){return{type:"START_TYPING"}}function In(){return{type:"STOP_TYPING"}}function xn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Tn(){return{type:"STOP_DRAGGING_BLOCKS"}}function Nn(){return z()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function Pn(){return z()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function Rn(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const Mn=(e,t,n)=>o=>{let{dispatch:l}=o;const i=(0,r.getDefaultBlockName)();if(!i)return;const s=(0,r.createBlock)(i,e);return l.insertBlock(s,n,t)};function Ln(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function An(e){return{type:"UPDATE_SETTINGS",settings:e}}function Dn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function On(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Fn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const zn=()=>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"})}))},Vn=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{dispatch:n}=t;n({type:"SET_NAVIGATION_MODE",isNavigationMode:e}),e?(0,Ht.speak)((0,g.__)("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.")):(0,Ht.speak)((0,g.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}},Hn=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,Ht.speak)((0,g.__)("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."))}},Gn=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((0,u.some)(i,(e=>!e)))return;if(i.map((e=>e.name)).some((e=>!(0,r.hasBlockSupport)(e,"multiple",!0))))return;const s=o.getBlockRootClientId(e[0]),a=o.getBlockIndex((0,u.last)((0,u.castArray)(e))),c=i.map((e=>(0,r.__experimentalCloneSanitizedBlock)(e)));return l.insertBlocks(c,a+1,s,t),c.length>1&&t&&l.multiSelect((0,u.first)(c).clientId,(0,u.last)(c).clientId),c.map((e=>e.clientId))}},Un=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)},Wn=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 $n(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const jn=e=>async t=>{let{dispatch:n}=t;n($n(e,!0)),await new Promise((e=>setTimeout(e,150))),n($n(e,!1))};function Kn(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function qn(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}const Yn="core/block-editor",Zn={reducer:N,selectors:e,actions:t},Qn=(0,m.createReduxStore)(Yn,{...Zn,persist:["preferences"]});(0,m.registerStore)(Yn,{...Zn,persist:["preferences"]});const Xn={name:"",isSelected:!1},Jn=(0,s.createContext)(Xn),{Provider:eo}=Jn;function to(){return(0,s.useContext)(Jn)}function no(){const{isSelected:e,clientId:t,name:n}=to();return(0,m.useSelect)((o=>{if(e)return!0;const{getBlockName:r,isFirstMultiSelectedBlock:l,getMultiSelectedBlockClientIds:i}=o(Qn);return!!l(t)&&i().every((e=>r(e)===n))}),[t,e,n])}function oo(e){let{group:t="default",controls:n,children:o,__experimentalShareWithChildBlocks:l=!1}=e;const i=function(e,t){const n=no(),{clientId:o}=to(),l=(0,m.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:l}=e(Qn),{hasBlockSupport:i}=e(r.store);return t&&i(n(o),"__experimentalExposeControlsToChildren",!1)&&l(o)}),[t,o]);var i;return n?null===(i=f[e])||void 0===i?void 0:i.Fill:l?f.parent.Fill:null}(t,l);return i?(0,s.createElement)(p.__experimentalStyleProvider,{document:document},(0,s.createElement)(i,null,(e=>{const r=(0,u.isEmpty)(e)?null:e;return(0,s.createElement)(p.__experimentalToolbarContext.Provider,{value:r},"default"===t&&(0,s.createElement)(p.ToolbarGroup,{controls:n}),o)}))):null}function ro(e){let{group:t="default",...n}=e;const o=(0,s.useContext)(p.__experimentalToolbarContext),r=f[t].Slot,l=(0,p.__experimentalUseSlot)(r.__unstableName);return Boolean(l.fills&&l.fills.length)?"default"===t?(0,s.createElement)(r,i({},n,{bubblesVirtually:!0,fillProps:o})):(0,s.createElement)(p.ToolbarGroup,null,(0,s.createElement)(r,i({},n,{bubblesVirtually:!0,fillProps:o}))):null}const lo=oo;lo.Slot=ro;const io=e=>(0,s.createElement)(oo,i({group:"inline"},e));io.Slot=e=>(0,s.createElement)(ro,i({group:"inline"},e));var so=lo,ao=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),co=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),uo=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),po=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),mo=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"})),fo=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"}));function go(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.split(",").map((e=>`.editor-styles-wrapper ${e} ${t}`)).join(",")}const ho=(0,s.createContext)({refs:new Map,callbacks:new Map});function vo(e){let{children:t}=e;const n=(0,s.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,s.createElement)(ho.Provider,{value:n},t)}function bo(e){const{refs:t,callbacks:n}=(0,s.useContext)(ho),o=(0,s.useRef)();return(0,s.useLayoutEffect)((()=>(t.set(o,e),()=>{t.delete(o)})),[e]),(0,d.useRefEffect)((t=>{o.current=t,n.forEach(((n,o)=>{e===n&&o(t)}))}),[e])}function ko(e){const{refs:t}=(0,s.useContext)(ho),n=(0,s.useRef)();return n.current=e,(0,s.useMemo)((()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}})),[])}function _o(e){const{callbacks:t}=(0,s.useContext)(ho),n=ko(e),[o,r]=(0,s.useState)(null);return(0,s.useLayoutEffect)((()=>{if(e)return t.set(r,e),()=>{t.delete(r)}}),[e]),n.current||o}const yo=["color","border","typography","spacing"],Eo={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0: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=>void 0===e.fontSizes?void 0: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},Co={"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.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"};function So(e){const{name:t,clientId:n}=to();return(0,m.useSelect)((o=>{if(yo.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let l;const i=(e=>Co[e]||e)(e);[...o(Qn).getBlockParents(n),n].forEach((e=>{const n=o(Qn).getBlockName(e);if((0,r.hasBlockSupport)(n,"__experimentalSettings",!1)){var s;const n=o(Qn).getBlockAttributes(e),r=null!==(s=(0,u.get)(n,`settings.blocks.${t}.${i}`))&&void 0!==s?s:(0,u.get)(n,`settings.${i}`);void 0!==r&&(l=r)}}));const s=o(Qn).getSettings();if(void 0===l){var a;const e=`__experimentalFeatures.${i}`,n=`__experimentalFeatures.blocks.${t}.${i}`;l=null!==(a=(0,u.get)(s,n))&&void 0!==a?a:(0,u.get)(s,e)}var c,d;if(void 0!==l)return r.__EXPERIMENTAL_PATHS_WITH_MERGE[i]?null!==(c=null!==(d=l.custom)&&void 0!==d?d:l.theme)&&void 0!==c?c:l.default:l;const p=Eo[i]?Eo[i](s):void 0;return void 0!==p?p:"typography.dropCap"===i||void 0}),[t,n,e])}window.wp.warning;var wo={default:(0,p.createSlotFill)("InspectorControls"),advanced:(0,p.createSlotFill)("InspectorAdvancedControls"),border:(0,p.createSlotFill)("InspectorControlsBorder"),color:(0,p.createSlotFill)("InspectorControlsColor"),dimensions:(0,p.createSlotFill)("InspectorControlsDimensions"),typography:(0,p.createSlotFill)("InspectorControlsTypography")};function Bo(e){var t;let{__experimentalGroup:n="default",children:o}=e;const r=no(),l=null===(t=wo[n])||void 0===t?void 0:t.Fill;return l?r?(0,s.createElement)(p.__experimentalStyleProvider,{document:document},(0,s.createElement)(l,null,(e=>{const t=(0,u.isEmpty)(e)?null:e;return(0,s.createElement)(p.__experimentalToolsPanelContext.Provider,{value:t},o)}))):null:("undefined"!=typeof process&&process.env,null)}const Io=e=>{if(!(0,u.isObject)(e)||Array.isArray(e))return e;const t=(0,u.pickBy)((0,u.mapValues)(e,Io),u.identity);return(0,u.isEmpty)(t)?void 0:t};function xo(e,t,n){return(0,u.setWith)(e?(0,u.clone)(e):{},t,n,u.clone)}function To(e,t,n,o,r,l){var i;if((0,u.every)(e,(e=>!e)))return n;if(1===l.length&&n.innerBlocks.length===o.length)return n;let s=null===(i=o[0])||void 0===i?void 0:i.attributes;if(l.length>1&&o.length>1){if(!o[r])return n;var a;s=null===(a=o[r])||void 0===a?void 0:a.attributes}let c=n;return(0,u.forEach)(e,((e,n)=>{e&&t[n].forEach((e=>{const t=(0,u.get)(s,e);t&&(c={...c,attributes:xo(c.attributes,e,t)})}))})),c}function No(e,t,n){const o=(0,r.getBlockSupport)(e,t),l=null==o?void 0:o.__experimentalSkipSerialization;return Array.isArray(l)?l.includes(n):l}function Po(e){let{children:t,group:n,label:o}=e;const{updateBlockAttributes:r}=(0,m.useDispatch)(Qn),{getBlockAttributes:l,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:a,hasMultiSelection:c}=(0,m.useSelect)(Qn),u=a(),d=(0,s.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},n=c()?i():[u];n.forEach((n=>{const{style:o}=l(n);let r={style:o};e.forEach((e=>{r={...r,...e(r)}})),r={...r,style:Io(r.style)},t[n]=r})),r(n,t,!0)}),[Io,l,i,c,u,r]);return(0,s.createElement)(p.__experimentalToolsPanel,{className:`${n}-block-support-panel`,label:o,resetAll:d,key:u,panelId:u,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},t)}function Ro(e){let{Slot:t,...n}=e;const o=(0,s.useContext)(p.__experimentalToolsPanelContext);return(0,s.createElement)(t,i({},n,{fillProps:o,bubblesVirtually:!0}))}function Mo(e){var t;let{__experimentalGroup:n="default",label:o,...r}=e;const l=null===(t=wo[n])||void 0===t?void 0:t.Slot,a=(0,p.__experimentalUseSlot)(null==l?void 0:l.__unstableName);return l&&a?Boolean(a.fills&&a.fills.length)?o?(0,s.createElement)(Po,{group:n,label:o},(0,s.createElement)(Ro,i({},r,{Slot:l}))):(0,s.createElement)(l,i({},r,{bubblesVirtually:!0})):null:("undefined"!=typeof process&&process.env,null)}const Lo=Bo;Lo.Slot=Mo;const Ao=e=>(0,s.createElement)(Bo,i({},e,{__experimentalGroup:"advanced"}));Ao.Slot=e=>(0,s.createElement)(Mo,i({},e,{__experimentalGroup:"advanced"})),Ao.slotName="InspectorAdvancedControls";var Do=Lo,Oo=window.wp.isShallowEqual,Fo=n.n(Oo),zo=function(e){return(0,d.useRefEffect)((t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}}),[e])};function Vo(e){let{clientId:t,bottomClientId:n,children:o,__unstableRefreshSize:r,__unstableCoverTarget:l=!1,__unstablePopoverSlot:a,__unstableContentRef:u,...d}=e;const m=_o(t),f=_o(null!=n?n:t),g=zo(u),h=(0,s.useMemo)((()=>m&&f===m?{position:"absolute",width:m.offsetWidth,height:m.offsetHeight}:{}),[m,f,r]);if(!m||n&&!f)return null;const v={top:m,bottom:f};return(0,s.createElement)(p.Popover,i({ref:g,animate:!1,position:"top right left",focusOnMount:!1,anchorRef:v,__unstableSlotName:a||null,__unstableObserveElement:m,__unstableForcePosition:!0,__unstableShift:!0},d,{className:c()("block-editor-block-popover",d.className)}),l&&(0,s.createElement)("div",{style:h},o),!l&&o)}function Ho(e){const t=(0,r.getBlockSupport)(e,Yo);return!!(!0===t||null!=t&&t.margin)}function Go(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!So("spacing.margin"),n=!tr(e,"margin");return!Ho(e)||t||n}function Uo(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,l=(0,p.__experimentalUseCustomUnits)({availableUnits:So("spacing.units")||["%","px","em","rem","vw"]}),i=er(n,"margin"),a=i&&i.some((e=>Qo.includes(e)));return Go(e)?null:s.Platform.select({web:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.margin,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,margin:e}};r({style:Io(t)})},label:(0,g.__)("Margin"),sides:i,units:l,allowReset:!1,splitOnAxis:a})),native:null})}function Wo(e){var t,n;let{clientId:o,attributes:r}=e;const l=null==r||null===(t=r.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.margin,i=(0,s.useMemo)((()=>{var e,t,n,o;return{borderTopWidth:null!==(e=null==l?void 0:l.top)&&void 0!==e?e:0,borderRightWidth:null!==(t=null==l?void 0:l.right)&&void 0!==t?t:0,borderBottomWidth:null!==(n=null==l?void 0:l.bottom)&&void 0!==n?n:0,borderLeftWidth:null!==(o=null==l?void 0:l.left)&&void 0!==o?o:0,top:null!=l&&l.top?`-${l.top}`:0,right:null!=l&&l.right?`-${l.right}`:0,bottom:null!=l&&l.bottom?`-${l.bottom}`:0,left:null!=l&&l.left?`-${l.left}`:0}}),[l]),[a,c]=(0,s.useState)(!1),u=(0,s.useRef)(l),d=(0,s.useRef)(),p=()=>{d.current&&window.clearTimeout(d.current)};return(0,s.useEffect)((()=>(Fo()(l,u.current)||(c(!0),u.current=l,p(),d.current=setTimeout((()=>{c(!1)}),400)),()=>p())),[l]),a?(0,s.createElement)(Vo,{clientId:o,__unstableCoverTarget:!0,__unstableRefreshSize:l},(0,s.createElement)("div",{className:"block-editor__padding-visualizer",style:i})):null}function $o(e){const t=(0,r.getBlockSupport)(e,Yo);return!!(!0===t||null!=t&&t.padding)}function jo(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!So("spacing.padding"),n=!tr(e,"padding");return!$o(e)||t||n}function Ko(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,l=(0,p.__experimentalUseCustomUnits)({availableUnits:So("spacing.units")||["%","px","em","rem","vw"]}),i=er(n,"padding"),a=i&&i.some((e=>Qo.includes(e)));return jo(e)?null:s.Platform.select({web:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.padding,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,padding:e}};r({style:Io(t)})},label:(0,g.__)("Padding"),sides:i,units:l,allowReset:!1,splitOnAxis:a})),native:null})}function qo(e){var t,n;let{clientId:o,attributes:r}=e;const l=null==r||null===(t=r.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding,i=(0,s.useMemo)((()=>{var e,t,n,o;return{borderTopWidth:null!==(e=null==l?void 0:l.top)&&void 0!==e?e:0,borderRightWidth:null!==(t=null==l?void 0:l.right)&&void 0!==t?t:0,borderBottomWidth:null!==(n=null==l?void 0:l.bottom)&&void 0!==n?n:0,borderLeftWidth:null!==(o=null==l?void 0:l.left)&&void 0!==o?o:0}}),[l]),[a,c]=(0,s.useState)(!1),u=(0,s.useRef)(l),d=(0,s.useRef)(),p=()=>{d.current&&window.clearTimeout(d.current)};return(0,s.useEffect)((()=>(Fo()(l,u.current)||(c(!0),u.current=l,p(),d.current=setTimeout((()=>{c(!1)}),400)),()=>p())),[l]),a?(0,s.createElement)(Vo,{clientId:o,__unstableCoverTarget:!0,__unstableRefreshSize:l},(0,s.createElement)("div",{className:"block-editor__padding-visualizer",style:i})):null}const Yo="spacing",Zo=["top","right","bottom","left"],Qo=["vertical","horizontal"];function Xo(e){const t=rr(e),n=jo(e),o=Go(e),l=Jo(e),i=(a=e.name,"web"===s.Platform.OS&&(nr(a)||$o(a)||Ho(a)));var a;if(l||!i)return null;const c=(0,r.getBlockSupport)(e.name,[Yo,"__experimentalDefaultControls"]),u=e=>t=>{var n;return{...t,style:{...t.style,spacing:{...null===(n=t.style)||void 0===n?void 0:n.spacing,[e]:void 0}}}};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Do,{__experimentalGroup:"dimensions"},!n&&(0,s.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding)}(e),label:(0,g.__)("Padding"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Io({...o,spacing:{...null==o?void 0:o.spacing,padding:void 0}})})}(e),resetAllFilter:u("padding"),isShownByDefault:null==c?void 0:c.padding,panelId:e.clientId},(0,s.createElement)(Ko,e)),!o&&(0,s.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.margin)}(e),label:(0,g.__)("Margin"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Io({...o,spacing:{...null==o?void 0:o.spacing,margin:void 0}})})}(e),resetAllFilter:u("margin"),isShownByDefault:null==c?void 0:c.margin,panelId:e.clientId},(0,s.createElement)(Uo,e)),!t&&(0,s.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.blockGap)}(e),label:(0,g.__)("Block spacing"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:{...o,spacing:{...null==o?void 0:o.spacing,blockGap:void 0}}})}(e),resetAllFilter:u("blockGap"),isShownByDefault:null==c?void 0:c.blockGap,panelId:e.clientId},(0,s.createElement)(lr,e))),!n&&(0,s.createElement)(qo,e),!o&&(0,s.createElement)(Wo,e))}const Jo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=rr(e),n=jo(e),o=Go(e);return t&&n&&o};function er(e,t){var n;const o=(0,r.getBlockSupport)(e,Yo);if(o&&"boolean"!=typeof o[t])return Array.isArray(o[t])?o[t]:null!==(n=o[t])&&void 0!==n&&n.sides?o[t].sides:void 0}function tr(e,t){const n=er(e,t);return!(n&&n.some((e=>Zo.includes(e)))&&n.some((e=>Qo.includes(e)))&&(console.warn(`The ${t} support for the "${e}" block can not be configured to support both axial and arbitrary sides.`),1))}function nr(e){const t=(0,r.getBlockSupport)(e,Yo);return!!(!0===t||null!=t&&t.blockGap)}function or(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:null==e?void 0:e.top,left:t?e:null==e?void 0:e.left}}function rr(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!So("spacing.blockGap");return!nr(e)||t}function lr(e){var t;const{clientId:n,attributes:{style:o},name:r,setAttributes:l}=e,i=(0,p.__experimentalUseCustomUnits)({availableUnits:So("spacing.units")||["%","px","em","rem","vw"]}),a=er(r,"blockGap"),c=ko(n);if(rr(e))return null;const u=a&&a.some((e=>Qo.includes(e))),d=e=>{var t;let n=e;e&&u&&(n={...or(e)});const r={...o,spacing:{...null==o?void 0:o.spacing,blockGap:n}};l({style:Io(r)});const i=(null===(t=window)||void 0===t?void 0:t.navigator.userAgent)&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome ")&&!window.navigator.userAgent.includes("Chromium ");var s;c.current&&i&&(null===(s=c.current.parentNode)||void 0===s||s.replaceChild(c.current,c.current))},m=or(null==o||null===(t=o.spacing)||void 0===t?void 0:t.blockGap),f=u?{...m,right:null==m?void 0:m.left,bottom:null==m?void 0:m.top}:null==m?void 0:m.top;return s.Platform.select({web:(0,s.createElement)(s.Fragment,null,u?(0,s.createElement)(p.__experimentalBoxControl,{label:(0,g.__)("Block spacing"),min:0,onChange:d,units:i,sides:a,values:f,allowReset:!1,splitOnAxis:u}):(0,s.createElement)(p.__experimentalUnitControl,{label:(0,g.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:d,units:i,value:f})),native:null})}const ir=(0,s.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(p.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),sr=(0,s.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(p.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),ar={top:{icon:(0,s.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(p.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:(0,g._x)("Align top","Block vertical alignment setting")},center:{icon:sr,title:(0,g._x)("Align middle","Block vertical alignment setting")},bottom:{icon:ir,title:(0,g._x)("Align bottom","Block vertical alignment setting")}},cr=["top","center","bottom"],ur={isAlternate:!0};var dr=function(e){let{value:t,onChange:n,controls:o=cr,isCollapsed:r=!0,isToolbar:l}=e;const a=ar[t],c=ar.top,u=l?p.ToolbarGroup:p.ToolbarDropdownMenu,d=l?{isCollapsed:r}:{};return(0,s.createElement)(u,i({popoverProps:ur,icon:a?a.icon:c.icon,label:(0,g._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((e=>{return{...ar[e],isActive:t===e,role:r?"menuitemradio":void 0,onClick:(o=e,()=>n(t===o?void 0:o))};var o}))},d))};const pr=e=>(0,s.createElement)(dr,i({},e,{isToolbar:!1})),mr=e=>(0,s.createElement)(dr,i({},e,{isToolbar:!0})),fr={left:ao,center:co,right:uo,"space-between":po};var gr=function(e){let{allowedControls:t=["left","center","right","space-between"],isCollapsed:n=!0,onChange:o,value:r,popoverProps:l,isToolbar:a}=e;const c=e=>{o(e===r?void 0:e)},u=r?fr[r]:fr.left,d=[{name:"left",icon:ao,title:(0,g.__)("Justify items left"),isActive:"left"===r,onClick:()=>c("left")},{name:"center",icon:co,title:(0,g.__)("Justify items center"),isActive:"center"===r,onClick:()=>c("center")},{name:"right",icon:uo,title:(0,g.__)("Justify items right"),isActive:"right"===r,onClick:()=>c("right")},{name:"space-between",icon:po,title:(0,g.__)("Space between items"),isActive:"space-between"===r,onClick:()=>c("space-between")}],m=a?p.ToolbarGroup:p.ToolbarDropdownMenu,f=a?{isCollapsed:n}:{};return(0,s.createElement)(m,i({icon:u,popoverProps:l,label:(0,g.__)("Change items justification"),controls:d.filter((e=>t.includes(e.name)))},f))};const hr=e=>(0,s.createElement)(gr,i({},e,{isToolbar:!1})),vr=e=>(0,s.createElement)(gr,i({},e,{isToolbar:!0})),br={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},kr={left:"flex-start",right:"flex-end",center:"center"},_r={top:"flex-start",center:"center",bottom:"flex-end"},yr=["wrap","nowrap"];var Er={name:"flex",label:(0,g.__)("Flex"),inspectorControls:function(e){let{layout:t={},onChange:n,layoutBlockSupport:o={}}=e;const{allowOrientation:r=!0}=o;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.Flex,null,(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(Sr,{layout:t,onChange:n})),(0,s.createElement)(p.FlexItem,null,r&&(0,s.createElement)(Br,{layout:t,onChange:n}))),(0,s.createElement)(wr,{layout:t,onChange:n}))},toolBarControls:function(e){let{layout:t={},onChange:n,layoutBlockSupport:o}=e;if(null!=o&&o.allowSwitching)return null;const{allowVerticalAlignment:r=!0}=o;return(0,s.createElement)(so,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(Sr,{layout:t,onChange:n,isToolbar:!0}),r&&"vertical"!==(null==t?void 0:t.orientation)&&(0,s.createElement)(Cr,{layout:t,onChange:n,isToolbar:!0}))},save:function(e){var t,n;let{selector:o,layout:l,style:i,blockName:a}=e;const{orientation:c="horizontal"}=l,u=So("spacing.blockGap"),d=(0,r.getBlockSupport)(a,["spacing","blockGap","__experimentalDefault"])||"0.5em",p=null!==u,m=null!=i&&null!==(t=i.spacing)&&void 0!==t&&t.blockGap&&!No(a,"spacing","blockGap")?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";const n=or(e);if(!n)return null;const o=(null==n?void 0:n.top)||t,r=(null==n?void 0:n.left)||t;return o===r?o:`${o} ${r}`}(null==i||null===(n=i.spacing)||void 0===n?void 0:n.blockGap,d):`var( --wp--style--block-gap, ${d} )`,f=br[l.justifyContent]||br.left,g=yr.includes(l.flexWrap)?l.flexWrap:"wrap",h=`\n\t\tflex-direction: row;\n\t\talign-items: ${_r[l.verticalAlignment]||_r.center};\n\t\tjustify-content: ${f};\n\t\t`,v=`\n\t\tflex-direction: column;\n\t\talign-items: ${kr[l.justifyContent]||kr.left};\n\t\t`;return(0,s.createElement)("style",null,`\n\t\t\t\t${go(o)} {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-wrap: ${g};\n\t\t\t\t\tgap: ${p?m:d};\n\t\t\t\t\t${"horizontal"===c?h:v}\n\t\t\t\t}\n\n\t\t\t\t${go(o,"> *")} {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\t\t\t`)},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function Cr(e){let{layout:t,onChange:n,isToolbar:o=!1}=e;const{verticalAlignment:r=_r.center}=t,l=e=>{n({...t,verticalAlignment:e})};if(o)return(0,s.createElement)(pr,{onChange:l,value:r});const i=[{value:"flex-start",label:(0,g.__)("Align items top")},{value:"center",label:(0,g.__)("Align items center")},{value:"flex-end",label:(0,g.__)("Align items bottom")}];return(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,s.createElement)("legend",null,(0,g.__)("Vertical alignment")),(0,s.createElement)("div",null,i.map(((e,t,n)=>(0,s.createElement)(p.Button,{key:e,label:n,icon:t,isPressed:r===e,onClick:()=>l(e)})))))}function Sr(e){let{layout:t,onChange:n,isToolbar:o=!1}=e;const{justifyContent:r="left",orientation:l="horizontal"}=t,i=e=>{n({...t,justifyContent:e})},a=["left","center","right"];if("horizontal"===l&&a.push("space-between"),o)return(0,s.createElement)(hr,{allowedControls:a,value:r,onChange:i,popoverProps:{position:"bottom right",isAlternate:!0}});const c=[{value:"left",icon:ao,label:(0,g.__)("Justify items left")},{value:"center",icon:co,label:(0,g.__)("Justify items center")},{value:"right",icon:uo,label:(0,g.__)("Justify items right")}];return"horizontal"===l&&c.push({value:"space-between",icon:po,label:(0,g.__)("Space between items")}),(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-justification-controls"},(0,s.createElement)("legend",null,(0,g.__)("Justification")),(0,s.createElement)("div",null,c.map((e=>{let{value:t,icon:n,label:o}=e;return(0,s.createElement)(p.Button,{key:t,label:o,icon:n,isPressed:r===t,onClick:()=>i(t)})}))))}function wr(e){let{layout:t,onChange:n}=e;const{flexWrap:o="wrap"}=t;return(0,s.createElement)(p.ToggleControl,{label:(0,g.__)("Allow to wrap to multiple lines"),onChange:e=>{n({...t,flexWrap:e?"wrap":"nowrap"})},checked:"wrap"===o})}function Br(e){let{layout:t,onChange:n}=e;const{orientation:o="horizontal"}=t;return(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-orientation-controls"},(0,s.createElement)("legend",null,(0,g.__)("Orientation")),(0,s.createElement)(p.Button,{label:"horizontal",icon:mo,isPressed:"horizontal"===o,onClick:()=>n({...t,orientation:"horizontal"})}),(0,s.createElement)(p.Button,{label:"vertical",icon:fo,isPressed:"vertical"===o,onClick:()=>n({...t,orientation:"vertical"})}))}var Ir=function(e){let{icon:t,size:n=24,...o}=e;return(0,s.cloneElement)(t,{width:n,height:n,...o})},xr=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"})),Tr=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"}));const Nr=[{name:"default",label:(0,g.__)("Flow"),inspectorControls:function(e){let{layout:t,onChange:n}=e;const{wideSize:o,contentSize:r}=t,l=(0,p.__experimentalUseCustomUnits)({availableUnits:So("spacing.units")||["%","px","em","rem","vw"]});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,s.createElement)(p.__experimentalUnitControl,{label:(0,g.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,contentSize:e})},units:l}),(0,s.createElement)(Ir,{icon:xr})),(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,s.createElement)(p.__experimentalUnitControl,{label:(0,g.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,wideSize:e})},units:l}),(0,s.createElement)(Ir,{icon:Tr}))),(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},(0,s.createElement)(p.Button,{variant:"secondary",isSmall:!0,disabled:!r&&!o,onClick:()=>n({contentSize:void 0,wideSize:void 0,inherit:!1})},(0,g.__)("Reset"))),(0,s.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,g.__)("Customize the width for all elements that are assigned to the center or wide columns.")))},toolBarControls:function(){return null},save:function(e){var t;let{selector:n,layout:o={},style:r,blockName:l}=e;const{contentSize:i,wideSize:a}=o,c=null!==So("spacing.blockGap"),u=or(null==r||null===(t=r.spacing)||void 0===t?void 0:t.blockGap),d=null!=u&&u.top&&!No(l,"spacing","blockGap")?null==u?void 0:u.top:"var( --wp--style--block-gap )";let p=i||a?`\n\t\t\t\t\t${go(n,"> :where(:not(.alignleft):not(.alignright))")} {\n\t\t\t\t\t\tmax-width: ${null!=i?i:a};\n\t\t\t\t\t\tmargin-left: auto !important;\n\t\t\t\t\t\tmargin-right: auto !important;\n\t\t\t\t\t}\n\t\t\t\t\t${go(n,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=a?a:i};\n\t\t\t\t\t}\n\t\t\t\t\t${go(n,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";return p+=`\n\t\t\t${go(n,"> .alignleft")} {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-inline-start: 0;\n\t\t\t\tmargin-inline-end: 2em;\n\t\t\t}\n\t\t\t${go(n,"> .alignright")} {\n\t\t\t\tfloat: right;\n\t\t\t\tmargin-inline-start: 2em;\n\t\t\t\tmargin-inline-end: 0;\n\t\t\t}\n\n\t\t\t${go(n,"> .aligncenter")} {\n\t\t\t\tmargin-left: auto !important;\n\t\t\t\tmargin-right: auto !important;\n\t\t\t}\n\t\t`,c&&(p+=`\n\t\t\t\t${go(n,"> *")} {\n\t\t\t\t\tmargin-block-start: 0;\n\t\t\t\t\tmargin-block-end: 0;\n\t\t\t\t}\n\t\t\t\t${go(n,"> * + *")} {\n\t\t\t\t\tmargin-block-start: ${d};\n\t\t\t\t}\n\t\t\t`),(0,s.createElement)("style",null,p)},getOrientation:()=>"vertical",getAlignments(e){const t=function(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,
|
6 |
// translators: %s: container size (i.e. 600px etc)
|
7 |
-
o.wide=(0,g.sprintf)((0,g.__)("Max %s wide"),n)),o}(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}},Er];function Pr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return Nr.find((t=>t.name===e))}const Rr={type:"default"},Mr=(0,s.createContext)(Rr),Lr=Mr.Provider;function Ar(){return(0,s.useContext)(Mr)}function Dr(e){let{layout:t={},...n}=e;const o=Pr(t.type);return o?(0,s.createElement)(o.save,i({layout:t},n)):null}const Or=["none","left","center","right","wide","full"],Fr=["wide","full"];function zr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Or;e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n}=(0,m.useSelect)((e=>{const{getSettings:t}=e(Qn),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout}}),[]),o=Ar(),r=Pr(null==o?void 0:o.type),l=r.getAlignments(o);if(n){const t=l.filter((t=>{let{name:n}=t;return e.includes(n)}));return 1===t.length&&"none"===t[0].name?[]:t}if("default"!==r.name)return[];const{alignments:i=Or}=o,s=e.filter((e=>(o.alignments||t||!Fr.includes(e))&&i.includes(e))).map((e=>({name:e})));return 1===s.length&&"none"===s[0].name?[]:s}var Vr=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),Hr=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),Gr=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),Ur=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));const Wr={none:{icon:Vr,title:(0,g._x)("None","Alignment option")},left:{icon:Hr,title:(0,g.__)("Align left")},center:{icon:xr,title:(0,g.__)("Align center")},right:{icon:Gr,title:(0,g.__)("Align right")},wide:{icon:Tr,title:(0,g.__)("Wide width")},full:{icon:Ur,title:(0,g.__)("Full width")}},$r={isAlternate:!0};var jr=function(e){let{value:t,onChange:n,controls:o,isToolbar:r,isCollapsed:l=!0}=e;const a=zr(o);if(!a.length)return null;function u(e){n([t,"none"].includes(e)?void 0:e)}const d=Wr[t],m=Wr.none,f=r?p.ToolbarGroup:p.ToolbarDropdownMenu,h={popoverProps:$r,icon:d?d.icon:m.icon,label:(0,g.__)("Align"),toggleProps:{describedBy:(0,g.__)("Change alignment")}},v=r?{isCollapsed:l,controls:a.map((e=>{let{name:n}=e;return{...Wr[n],isActive:t===n||!t&&"none"===n,role:l?"menuitemradio":void 0,onClick:()=>u(n)}}))}:{children:e=>{let{onClose:n}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},a.map((e=>{let{name:o,info:r}=e;const{icon:l,title:i}=Wr[o],a=o===t||!t&&"none"===o;return(0,s.createElement)(p.MenuItem,{key:o,icon:l,iconPosition:"left",className:c()("components-dropdown-menu__menu-item",{"is-active":a}),isSelected:a,onClick:()=>{u(o),n()},role:"menuitemradio",info:r},i)}))))}};return(0,s.createElement)(f,i({},h,v))};const Kr=e=>(0,s.createElement)(jr,i({},e,{isToolbar:!1})),qr=e=>(0,s.createElement)(jr,i({},e,{isToolbar:!0})),Yr=["left","center","right","wide","full"],Zr=["wide","full"];function Qr(e){let t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?Yr.filter((t=>e.includes(t))):!0===e?[...Yr]:[],!o||!0===e&&!n?(0,u.without)(t,...Zr):t}const Xr=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n}=t,o=zr(Qr((0,r.getBlockSupport)(n,"align"),(0,r.hasBlockSupport)(n,"alignWide",!0))).map((e=>{let{name:t}=e;return t}));return(0,s.createElement)(s.Fragment,null,!!o.length&&(0,s.createElement)(so,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(Kr,{value:t.attributes.align,onChange:e=>{if(!e){var n,o;const l=(0,r.getBlockType)(t.name);(null==l||null===(n=l.attributes)||void 0===n||null===(o=n.align)||void 0===o?void 0:o.default)&&(e="")}t.setAttributes({align:e})},controls:o})),(0,s.createElement)(e,t))}),"withToolbarControls"),Jr=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{align:l}=o,a=zr(Qr((0,r.getBlockSupport)(n,"align"),(0,r.hasBlockSupport)(n,"alignWide",!0)));if(void 0===l)return(0,s.createElement)(e,t);let c=t.wrapperProps;return a.some((e=>e.name===l))&&(c={...c,"data-align":l}),(0,s.createElement)(e,i({},t,{wrapperProps:c}))}));(0,l.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return(0,u.has)(e.attributes,["align","type"])||(0,r.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Yr,""]}}),e})),(0,l.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Jr),(0,l.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Xr),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return Qr((0,r.getBlockSupport)(t,"align"),(0,r.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=c()(`align${o}`,e.className)),e})),(0,l.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){return(0,u.has)(e.attributes,["lock","type"])||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));const el=/[\s#]/g,tl={type:"string",source:"attribute",attribute:"id",selector:"*"},nl=(0,d.createHigherOrderComponent)((e=>t=>{if((0,r.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===s.Platform.OS,o=(0,s.createElement)(p.TextControl,{className:"html-anchor-control",label:(0,g.__)("HTML anchor"),help:(0,s.createElement)(s.Fragment,null,(0,g.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&(0,s.createElement)(p.ExternalLink,{href:(0,g.__)("https://wordpress.org/support/article/page-jumps/")},(0,g.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:(0,g.__)("Add an anchor"),onChange:e=>{e=e.replace(el,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),n&&(0,s.createElement)(Do,{__experimentalGroup:"advanced"},o),!n&&"core/heading"===t.name&&(0,s.createElement)(Do,null,(0,s.createElement)(p.PanelBody,{title:(0,g.__)("Heading settings")},o)))}return(0,s.createElement)(e,t)}),"withInspectorControl");(0,l.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return(0,u.has)(e.attributes,["anchor","type"])||(0,r.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:tl}),e})),(0,l.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",nl),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return(0,r.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const ol=(0,d.createHigherOrderComponent)((e=>t=>(0,r.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),(0,s.createElement)(Do,{__experimentalGroup:"advanced"},(0,s.createElement)(p.TextControl,{autoComplete:"off",label:(0,g.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:(0,g.__)("Separate multiple classes with spaces.")}))):(0,s.createElement)(e,t)),"withInspectorControl");(0,l.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return(0,r.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,l.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",ol),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return(0,r.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=c()(e.className,n.className)),e})),(0,l.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){if(!(0,r.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){var l;const o=null===(l=t[n])||void 0===l?void 0:l.attributes.className;if(o)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,r.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=(0,u.uniq)([(0,r.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=(0,r.getBlockDefaultClassName)(t.name)),e}));const rl="var:";function ll(e,t,n,o){const r=(0,u.get)(e,n);return r?[{selector:null==t?void 0:t.selector,key:o,value:sl(r)}]:[]}function il(e,t,n,o){const r=(0,u.get)(e,n);if(!r)return[];const l=[];if("string"==typeof r)l.push({selector:null==t?void 0:t.selector,key:o,value:r});else{const e=["top","right","bottom","left"].reduce(((e,n)=>{const l=(0,u.get)(r,[n]);return l&&e.push({selector:null==t?void 0:t.selector,key:`${o}${(0,u.upperFirst)(n)}`,value:l}),e}),[]);l.push(...e)}return l}function sl(e){return"string"==typeof e&&e.startsWith(rl)?`var(--wp--${e.slice(rl.length).split("|").join("--")})`:e}const al=[{name:"text",generate:(e,t)=>ll(e,t,["color","text"],"color")},{name:"gradient",generate:(e,t)=>ll(e,t,["color","gradient"],"background")},{name:"background",generate:(e,t)=>ll(e,t,["color","background"],"backgroundColor")},{name:"margin",generate:(e,t)=>il(e,t,["spacing","margin"],"margin")},{name:"padding",generate:(e,t)=>il(e,t,["spacing","padding"],"padding")},{name:"fontSize",generate:(e,t)=>ll(e,t,["typography","fontSize"],"fontSize")},{name:"fontStyle",generate:(e,t)=>ll(e,t,["typography","fontStyle"],"fontStyle")},{name:"fontWeight",generate:(e,t)=>ll(e,t,["typography","fontWeight"],"fontWeight")},{name:"letterSpacing",generate:(e,t)=>ll(e,t,["typography","letterSpacing"],"letterSpacing")},{name:"letterSpacing",generate:(e,t)=>ll(e,t,["typography","lineHeight"],"lineHeight")},{name:"textDecoration",generate:(e,t)=>ll(e,t,["typography","textDecoration"],"textDecoration")},{name:"textTransform",generate:(e,t)=>ll(e,t,["typography","textTransform"],"textTransform")}];function cl(e,t){const n=[];return al.forEach((o=>{"function"==typeof o.generate&&n.push(...o.generate(e,t))})),n}var ul=window.wp.dom;const dl=(0,s.createContext)({});function pl(e){let{value:t,children:n}=e;const o=(0,s.useContext)(dl),r=(0,s.useMemo)((()=>({...o,...t})),[o,t]);return(0,s.createElement)(dl.Provider,{value:r,children:n})}var ml=dl;const fl={};var gl=(0,p.withFilters)("editor.BlockEdit")((e=>{const{attributes:t={},name:n}=e,o=(0,r.getBlockType)(n),l=(0,s.useContext)(ml),a=(0,s.useMemo)((()=>o&&o.usesContext?(0,u.pick)(l,o.usesContext):fl),[o,l]);if(!o)return null;const d=o.edit||o.save;if(o.apiVersion>1)return(0,s.createElement)(d,i({},e,{context:a}));const p=(0,r.hasBlockSupport)(o,"className",!0)?(0,r.getBlockDefaultClassName)(n):null,m=c()(p,t.className);return(0,s.createElement)(d,i({},e,{context:a,className:m}))}));function hl(e){const{name:t,isSelected:n,clientId:o}=e,r={name:t,isSelected:n,clientId:o};return(0,s.createElement)(eo,{value:(0,s.useMemo)((()=>r),Object.values(r))},(0,s.createElement)(gl,e))}var vl=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})),bl=function(e){let{className:t,actions:n,children:o,secondaryActions:r}=e;return(0,s.createElement)("div",{style:{display:"contents",all:"initial"}},(0,s.createElement)("div",{className:c()(t,"block-editor-warning")},(0,s.createElement)("div",{className:"block-editor-warning__contents"},(0,s.createElement)("p",{className:"block-editor-warning__message"},o),(s.Children.count(n)>0||r)&&(0,s.createElement)("div",{className:"block-editor-warning__actions"},s.Children.count(n)>0&&s.Children.map(n,((e,t)=>(0,s.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),r&&(0,s.createElement)(p.DropdownMenu,{className:"block-editor-warning__secondary",icon:vl,label:(0,g.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,s.createElement)(p.MenuGroup,null,r.map(((e,t)=>(0,s.createElement)(p.MenuItem,{onClick:e.onClick,key:t},e.title))))))))))},kl=n(1973);function _l(e){let{title:t,rawContent:n,renderedContent:o,action:r,actionText:l,className:i}=e;return(0,s.createElement)("div",{className:i},(0,s.createElement)("div",{className:"block-editor-block-compare__content"},(0,s.createElement)("h2",{className:"block-editor-block-compare__heading"},t),(0,s.createElement)("div",{className:"block-editor-block-compare__html"},n),(0,s.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,s.createElement)(s.RawHTML,null,(0,ul.safeHTML)(o)))),(0,s.createElement)("div",{className:"block-editor-block-compare__action"},(0,s.createElement)(p.Button,{variant:"secondary",tabIndex:"0",onClick:r},l)))}var yl=function(e){let{block:t,onKeep:n,onConvert:o,convertor:l,convertButtonText:i}=e;const a=(d=l(t),(0,u.castArray)(d).map((e=>(0,r.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var d;const p=(m=t.originalContent,f=a,(0,kl.Kx)(m,f).map(((e,t)=>{const n=c()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,s.createElement)("span",{key:t,className:n},e.value)})));var m,f;return(0,s.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,s.createElement)(_l,{title:(0,g.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:(0,g.__)("Convert to HTML"),rawContent:t.originalContent,renderedContent:t.originalContent}),(0,s.createElement)(_l,{title:(0,g.__)("After Conversion"),className:"block-editor-block-compare__converted",action:o,actionText:i,rawContent:p,renderedContent:a}))};const El=e=>(0,r.rawHandler)({HTML:e.originalContent});var Cl=(0,d.compose)([(0,m.withSelect)(((e,t)=>{let{clientId:n}=t;return{block:e(Qn).getBlock(n)}})),(0,m.withDispatch)(((e,t)=>{let{block:n}=t;const{replaceBlock:o}=e(Qn);return{convertToClassic(){o(n.clientId,(e=>(0,r.createBlock)("core/freeform",{content:e.originalContent}))(n))},convertToHTML(){o(n.clientId,(e=>(0,r.createBlock)("core/html",{content:e.originalContent}))(n))},convertToBlocks(){o(n.clientId,El(n))},attemptBlockRecovery(){o(n.clientId,(e=>{let{name:t,attributes:n,innerBlocks:o}=e;return(0,r.createBlock)(t,n,o)})(n))}}}))])((function(e){let{convertToHTML:t,convertToBlocks:n,convertToClassic:o,attemptBlockRecovery:l,block:i}=e;const a=!!(0,r.getBlockType)("core/html"),[c,u]=(0,s.useState)(!1),d=(0,s.useCallback)((()=>u(!0)),[]),m=(0,s.useCallback)((()=>u(!1)),[]),f=(0,s.useMemo)((()=>[{
|
8 |
// translators: Button to fix block content
|
9 |
-
title:(0,g._x)("Resolve","imperative verb"),onClick:d},a&&{title:(0,g.__)("Convert to HTML"),onClick:t},{title:(0,g.__)("Convert to Classic Block"),onClick:o}].filter(Boolean)),[d,t,o]);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(bl,{actions:[(0,s.createElement)(p.Button,{key:"recover",onClick:l,variant:"primary"},(0,g.__)("Attempt Block Recovery"))],secondaryActions:f},(0,g.__)("This block contains unexpected or invalid content.")),c&&(0,s.createElement)(p.Modal,{title:// translators: Dialog title to fix block content
|
10 |
-
(0,g.__)("Resolve Block"),onRequestClose:m,className:"block-editor-block-compare"},(0,s.createElement)(yl,{block:i,onKeep:t,onConvert:n,convertor:El,convertButtonText:(0,g.__)("Convert to Blocks")})))}));const Sl=(0,s.createElement)(bl,{className:"block-editor-block-list__block-crash-warning"},(0,g.__)("This block has encountered an error and cannot be previewed."));var wl=()=>Sl;class Bl extends s.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var Il=Bl,xl=n(773),Tl=function(e){let{clientId:t}=e;const[n,o]=(0,s.useState)(""),l=(0,m.useSelect)((e=>e(Qn).getBlock(t)),[t]),{updateBlock:i}=(0,m.useDispatch)(Qn);return(0,s.useEffect)((()=>{o((0,r.getBlockContent)(l))}),[l]),(0,s.createElement)(xl.Z,{className:"block-editor-block-list__block-html-textarea",value:n,onBlur:()=>{const e=(0,r.getBlockType)(l.name);if(!e)return;const s=(0,r.getBlockAttributes)(e,n,l.attributes),a=n||(0,r.getSaveContent)(e,s),[c]=n?(0,r.validateBlock)({...l,attributes:s,originalContent:a}):[!0];i(t,{attributes:s,originalContent:a,isValid:c}),n||o({content:a})},onChange:e=>o(e.target.value)})};let Nl=jl();const Pl=e=>Gl(e,Nl);let Rl=jl();Pl.write=e=>Gl(e,Rl);let Ml=jl();Pl.onStart=e=>Gl(e,Ml);let Ll=jl();Pl.onFrame=e=>Gl(e,Ll);let Al=jl();Pl.onFinish=e=>Gl(e,Al);let Dl=[];Pl.setTimeout=(e,t)=>{let n=Pl.now()+t,o=()=>{let e=Dl.findIndex((e=>e.cancel==o));~e&&Dl.splice(e,1),Vl-=~e?1:0},r={time:n,handler:e,cancel:o};return Dl.splice(Ol(n),0,r),Vl+=1,Ul(),r};let Ol=e=>~(~Dl.findIndex((t=>t.time>e))||~Dl.length);Pl.cancel=e=>{Ml.delete(e),Ll.delete(e),Nl.delete(e),Rl.delete(e),Al.delete(e)},Pl.sync=e=>{Hl=!0,Pl.batchedUpdates(e),Hl=!1},Pl.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,Pl.onStart(n)}return o.handler=e,o.cancel=()=>{Ml.delete(n),t=null},o};let Fl="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Pl.use=e=>Fl=e,Pl.now="undefined"!=typeof performance?()=>performance.now():Date.now,Pl.batchedUpdates=e=>e(),Pl.catch=console.error,Pl.frameLoop="always",Pl.advance=()=>{"demand"!==Pl.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):$l()};let zl=-1,Vl=0,Hl=!1;function Gl(e,t){Hl?(t.delete(e),e(0)):(t.add(e),Ul())}function Ul(){zl<0&&(zl=0,"demand"!==Pl.frameLoop&&Fl(Wl))}function Wl(){~zl&&(Fl(Wl),Pl.batchedUpdates($l))}function $l(){let e=zl;zl=Pl.now();let t=Ol(zl);t&&(Kl(Dl.splice(0,t),(e=>e.handler())),Vl-=t),Ml.flush(),Nl.flush(e?Math.min(64,zl-e):16.667),Ll.flush(),Rl.flush(),Al.flush(),Vl||(zl=-1)}function jl(){let e=new Set,t=e;return{add(n){Vl+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Vl-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Vl-=t.size,Kl(t,(t=>t(n)&&e.add(t))),Vl+=e.size,t=e)}}}function Kl(e,t){e.forEach((e=>{try{t(e)}catch(e){Pl.catch(e)}}))}var ql=n(9196),Yl=n.n(ql);function Zl(){}const Ql={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Xl(e,t){if(Ql.arr(e)){if(!Ql.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Jl=(e,t)=>e.forEach(t);function ei(e,t,n){if(Ql.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);else for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const ti=e=>Ql.und(e)?[]:Ql.arr(e)?e:[e];function ni(e,t){if(e.size){const n=Array.from(e);e.clear(),Jl(n,t)}}const oi=(e,...t)=>ni(e,(e=>e(...t))),ri=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let li,ii,si=null,ai=!1,ci=Zl;var ui=Object.freeze({__proto__:null,get createStringInterpolator(){return li},get to(){return ii},get colors(){return si},get skipAnimation(){return ai},get willAdvance(){return ci},assign:e=>{e.to&&(ii=e.to),e.now&&(Pl.now=e.now),void 0!==e.colors&&(si=e.colors),null!=e.skipAnimation&&(ai=e.skipAnimation),e.createStringInterpolator&&(li=e.createStringInterpolator),e.requestAnimationFrame&&Pl.use(e.requestAnimationFrame),e.batchedUpdates&&(Pl.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ci=e.willAdvance),e.frameLoop&&(Pl.frameLoop=e.frameLoop)}});const di=new Set;let pi=[],mi=[],fi=0;const gi={get idle(){return!di.size&&!pi.length},start(e){fi>e.priority?(di.add(e),Pl.onStart(hi)):(vi(e),Pl(ki))},advance:ki,sort(e){if(fi)Pl.onFrame((()=>gi.sort(e)));else{const t=pi.indexOf(e);~t&&(pi.splice(t,1),bi(e))}},clear(){pi=[],di.clear()}};function hi(){di.forEach(vi),di.clear(),Pl(ki)}function vi(e){pi.includes(e)||bi(e)}function bi(e){pi.splice(function(t,n){const o=t.findIndex((t=>t.priority>e.priority));return o<0?t.length:o}(pi),0,e)}function ki(e){const t=mi;for(let n=0;n<pi.length;n++){const o=pi[n];fi=o.priority,o.idle||(ci(o),o.advance(e),o.idle||t.push(o))}return fi=0,mi=pi,mi.length=0,pi=t,pi.length>0}const _i="[-+]?\\d*\\.?\\d+",yi=_i+"%";function Ei(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Ci=new RegExp("rgb"+Ei(_i,_i,_i)),Si=new RegExp("rgba"+Ei(_i,_i,_i,_i)),wi=new RegExp("hsl"+Ei(_i,yi,yi)),Bi=new RegExp("hsla"+Ei(_i,yi,yi,_i)),Ii=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,xi=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ti=/^#([0-9a-fA-F]{6})$/,Ni=/^#([0-9a-fA-F]{8})$/;function Pi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ri(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,l=Pi(r,o,e+1/3),i=Pi(r,o,e),s=Pi(r,o,e-1/3);return Math.round(255*l)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function Mi(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Li(e){return(parseFloat(e)%360+360)%360/360}function Ai(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Di(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Oi(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ti.exec(e))?parseInt(t[1]+"ff",16)>>>0:si&&void 0!==si[e]?si[e]:(t=Ci.exec(e))?(Mi(t[1])<<24|Mi(t[2])<<16|Mi(t[3])<<8|255)>>>0:(t=Si.exec(e))?(Mi(t[1])<<24|Mi(t[2])<<16|Mi(t[3])<<8|Ai(t[4]))>>>0:(t=Ii.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ni.exec(e))?parseInt(t[1],16)>>>0:(t=xi.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=wi.exec(e))?(255|Ri(Li(t[1]),Di(t[2]),Di(t[3])))>>>0:(t=Bi.exec(e))?(Ri(Li(t[1]),Di(t[2]),Di(t[3]))|Ai(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Fi=(e,t,n)=>{if(Ql.fun(e))return e;if(Ql.arr(e))return Fi({range:e,output:t,extrapolate:n});if(Ql.str(e.output[0]))return li(e);const o=e,r=o.output,l=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",s=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,l);return function(e,t,n,o,r,l,i,s,a){let c=a?a(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=l(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o,c)}(e,l[t],l[t+1],r[t],r[t+1],a,i,s,o.map)}};function zi(){return(zi=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}).apply(this,arguments)}const Vi=Symbol.for("FluidValue.get"),Hi=Symbol.for("FluidValue.observers"),Gi=e=>Boolean(e&&e[Vi]),Ui=e=>e&&e[Vi]?e[Vi]():e,Wi=e=>e[Hi]||null;function $i(e,t){let n=e[Hi];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class ji{constructor(e){if(this[Vi]=void 0,this[Hi]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Ki(this,e)}}const Ki=(e,t)=>Zi(e,Vi,t);function qi(e,t){if(e[Vi]){let n=e[Hi];n||Zi(e,Hi,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Yi(e,t){let n=e[Hi];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[Hi]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const Zi=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Qi=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Xi=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ji=new RegExp(`(${Qi.source})(%|[a-z]+)`,"i"),es=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ts=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ns=e=>{const[t,n]=os(e);if(!t||ri())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||e}return n&&ts.test(n)?ns(n):n||e},os=e=>{const t=ts.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]};let rs;const ls=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,is=e=>{rs||(rs=si?new RegExp(`(${Object.keys(si).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ui(e).replace(ts,ns).replace(Xi,Oi).replace(rs,Oi))),n=t.map((e=>e.match(Qi).map(Number))),o=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Fi(zi({},e,{output:t}))));return e=>{var n;const r=!Ji.test(t[0])&&(null==(n=t.find((e=>Ji.test(e))))?void 0:n.replace(Qi,""));let l=0;return t[0].replace(Qi,(()=>`${o[l++](e)}${r||""}`)).replace(es,ls)}},ss="react-spring: ",as=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${ss}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},cs=as(console.warn),us=as(console.warn);function ds(e){return Ql.str(e)&&("#"==e[0]||/\d/.test(e)||!ri()&&ts.test(e)||e in(si||{}))}const ps="undefined"!=typeof window&&window.document&&window.document.createElement?ql.useLayoutEffect:ql.useEffect;function ms(){const e=(0,ql.useState)()[1],t=(()=>{const e=(0,ql.useRef)(!1);return ps((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const fs=e=>(0,ql.useEffect)(e,gs),gs=[];function hs(e){const t=(0,ql.useRef)();return(0,ql.useEffect)((()=>{t.current=e})),t.current}const vs=Symbol.for("Animated:node"),bs=e=>e&&e[vs],ks=(e,t)=>{return n=e,o=vs,r=t,Object.defineProperty(n,o,{value:r,writable:!0,configurable:!0});var n,o,r},_s=e=>e&&e[vs]&&e[vs].getPayload();class ys{constructor(){this.payload=void 0,ks(this,this)}getPayload(){return this.payload||[]}}class Es extends ys{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,Ql.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Es(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ql.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ql.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Cs extends Es{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Fi({output:[e,e]})}static create(e){return new Cs(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Ql.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Fi({output:[this.getValue(),e]})),this._value=0,super.reset()}}const Ss={dependencies:null};class ws extends ys{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ei(this.source,((n,o)=>{var r;(r=n)&&r[vs]===r?t[o]=n.getValue(e):Gi(n)?t[o]=Ui(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Jl(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return ei(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ss.dependencies&&Gi(e)&&Ss.dependencies.add(e);const t=_s(e);t&&Jl(t,(e=>this.add(e)))}}class Bs extends ws{constructor(e){super(e)}static create(e){return new Bs(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Is)),!0)}}function Is(e){return(ds(e)?Cs:Es).create(e)}function xs(e){const t=bs(e);return t?t.constructor:Ql.arr(e)?Bs:ds(e)?Cs:Es}function Ts(){return(Ts=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}).apply(this,arguments)}const Ns=(e,t)=>{const n=!Ql.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,ql.forwardRef)(((o,r)=>{const l=(0,ql.useRef)(null),i=n&&(0,ql.useCallback)((e=>{l.current=function(e,t){return e&&(Ql.fun(e)?e(t):e.current=t),t}(r,e)}),[r]),[s,a]=function(e,t){const n=new Set;return Ss.dependencies=n,e.style&&(e=Ts({},e,{style:t.createAnimatedStyle(e.style)})),e=new ws(e),Ss.dependencies=null,[e,n]}(o,t),c=ms(),u=()=>{const e=l.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},d=new Ps(u,a),p=(0,ql.useRef)();ps((()=>(p.current=d,Jl(a,(e=>qi(e,d))),()=>{p.current&&(Jl(p.current.deps,(e=>Yi(e,p.current))),Pl.cancel(p.current.update))}))),(0,ql.useEffect)(u,[]),fs((()=>()=>{const e=p.current;Jl(e.deps,(t=>Yi(t,e)))}));const m=t.getComponentProps(s.getValue());return ql.createElement(e,Ts({},m,{ref:i}))}))};class Ps{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Pl.write(this.update)}}const Rs=Symbol.for("AnimatedComponent"),Ms=e=>Ql.str(e)?e:e&&Ql.str(e.displayName)?e.displayName:Ql.fun(e)&&e.name||null;function Ls(){return(Ls=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}).apply(this,arguments)}function As(e,...t){return Ql.fun(e)?e(...t):e}const Ds=(e,t)=>!0===e||!!(t&&e&&(Ql.fun(e)?e(t):ti(e).includes(t))),Os=(e,t)=>Ql.obj(e)?t&&e[t]:e,Fs=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,zs=e=>e,Vs=(e,t=zs)=>{let n=Hs;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const n=t(e[r],r);Ql.und(n)||(o[r]=n)}return o},Hs=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Gs={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Us(e){const t=function(e){const t={};let n=0;if(ei(e,((e,o)=>{Gs[o]||(t[o]=e,n++)})),n)return t}(e);if(t){const n={to:t};return ei(e,((e,o)=>o in t||(n[o]=e))),n}return Ls({},e)}function Ws(e){return e=Ui(e),Ql.arr(e)?e.map(Ws):ds(e)?ui.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function $s(e){for(const t in e)return!0;return!1}function js(e){return Ql.fun(e)||Ql.arr(e)&&Ql.obj(e[0])}function Ks(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function qs(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}Math.PI,Math.PI;const Ys=Ls({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class Zs{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Ys)}}function Qs(e,t){if(Ql.und(t.decay)){const n=!Ql.und(t.tension)||!Ql.und(t.friction);!n&&Ql.und(t.frequency)&&Ql.und(t.damping)&&Ql.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Xs=[];class Js{constructor(){this.changed=!1,this.values=Xs,this.toValues=null,this.fromValues=Xs,this.to=void 0,this.from=void 0,this.config=new Zs,this.immediate=!1}}function ea(e,{key:t,props:n,defaultProps:o,state:r,actions:l}){return new Promise(((i,s)=>{var a;let c,u,d=Ds(null!=(a=n.cancel)?a:null==o?void 0:o.cancel,t);if(d)f();else{Ql.und(n.pause)||(r.paused=Ds(n.pause,t));let e=null==o?void 0:o.pause;!0!==e&&(e=r.paused||Ds(e,t)),c=As(n.delay||0,t),e?(r.resumeQueue.add(m),l.pause()):(l.resume(),m())}function p(){r.resumeQueue.add(m),r.timeouts.delete(u),u.cancel(),c=u.time-Pl.now()}function m(){c>0&&!ui.skipAnimation?(r.delayed=!0,u=Pl.setTimeout(f,c),r.pauseQueue.add(p),r.timeouts.add(u)):f()}function f(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(p),r.timeouts.delete(u),e<=(r.cancelId||0)&&(d=!0);try{l.start(Ls({},n,{callId:e,cancel:d}),i)}catch(e){s(e)}}}))}const ta=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?ra(e.get()):t.every((e=>e.noop))?na(e.get()):oa(e.get(),t.every((e=>e.finished))),na=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),oa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ra=e=>({value:e,cancelled:!0,finished:!1});function la(e,t,n,o){const{callId:r,parentId:l,onRest:i}=t,{asyncTo:s,promise:a}=n;return l||e!==s||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const c=Vs(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),m=e=>{const t=r<=(n.cancelId||0)&&ra(o)||r!==n.asyncId&&oa(o,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const l=new sa,i=new aa;return(async()=>{if(ui.skipAnimation)throw ia(n),i.result=oa(o,!1),d(i),i;m(l);const s=Ql.obj(e)?Ls({},e):Ls({},t,{to:e});s.parentId=r,ei(c,((e,t)=>{Ql.und(s[t])&&(s[t]=e)}));const a=await o.start(s);return m(l),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),a})()};let g;if(ui.skipAnimation)return ia(n),oa(o,!1);try{let t;t=Ql.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,o.stop.bind(o))),await Promise.all([t.then(u),p]),g=oa(o.get(),!0,!1)}catch(e){if(e instanceof sa)g=e.result;else{if(!(e instanceof aa))throw e;g=e.result}}finally{r==n.asyncId&&(n.asyncId=l,n.asyncTo=l?s:void 0,n.promise=l?a:void 0)}return Ql.fun(i)&&Pl.batchedUpdates((()=>{i(g,o,o.item)})),g})():a}function ia(e,t){ni(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class sa extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class aa extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ca=e=>e instanceof da;let ua=1;class da extends ji{constructor(...e){super(...e),this.id=ua++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=bs(this);return e&&e.getValue()}to(...e){return ui.to(this,e)}interpolate(...e){return cs(`${ss}The "interpolate" function is deprecated in v9 (use "to" instead)`),ui.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){$i(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||gi.sort(this),$i(this,{type:"priority",parent:this,priority:e})}}const pa=Symbol.for("SpringPhase"),ma=e=>(1&e[pa])>0,fa=e=>(2&e[pa])>0,ga=e=>(4&e[pa])>0,ha=(e,t)=>t?e[pa]|=3:e[pa]&=-3,va=(e,t)=>t?e[pa]|=4:e[pa]&=-5;class ba extends da{constructor(e,t){if(super(),this.key=void 0,this.animation=new Js,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ql.und(e)||!Ql.und(t)){const n=Ql.obj(e)?Ls({},e):Ls({},t,{from:e});Ql.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(fa(this)||this._state.asyncTo)||ga(this)}get goal(){return Ui(this.animation.to)}get velocity(){const e=bs(this);return e instanceof Es?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return ma(this)}get isAnimating(){return fa(this)}get isPaused(){return ga(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const o=this.animation;let{config:r,toValues:l}=o;const i=_s(o.to);!i&&Gi(o.to)&&(l=ti(Ui(o.to))),o.values.forEach(((s,a)=>{if(s.done)return;const c=s.constructor==Cs?1:i?i[a].lastPosition:l[a];let u=o.immediate,d=c;if(!u){if(d=s.lastPosition,r.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=o.fromValues[a],l=null!=s.v0?s.v0:s.v0=Ql.arr(r.velocity)?r.velocity[a]:r.velocity;let i;if(Ql.und(r.duration))if(r.decay){const e=!0===r.decay?.998:r.decay,o=Math.exp(-(1-e)*t);d=n+l/(1-e)*(1-o),u=Math.abs(s.lastPosition-d)<.1,i=l*o}else{i=null==s.lastVelocity?l:s.lastVelocity;const t=r.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n))),o=r.restVelocity||t/10,a=r.clamp?0:r.bounce,p=!Ql.und(a),m=n==c?s.v0>0:n<c;let f,g=!1;const h=1,v=Math.ceil(e/h);for(let e=0;e<v&&(f=Math.abs(i)>o,f||(u=Math.abs(c-d)<=t,!u));++e)p&&(g=d==c||d>c==m,g&&(i=-i*a,d=c)),i+=(1e-6*-r.tension*(d-c)+.001*-r.friction*i)/r.mass*h,d+=i*h}else{let o=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,s.durationProgress>0&&(s.elapsedTime=r.duration*s.durationProgress,t=s.elapsedTime+=e)),o=(r.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,s.durationProgress=o),d=n+r.easing(o)*(c-n),i=(d-s.lastPosition)/e,u=1==o}s.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[a].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,r.round)&&(n=!0)}));const s=bs(this),a=s.getValue();if(t){const e=Ui(o.to);a===e&&!n||r.decay?n&&r.decay&&this._onChange(a):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(a)}set(e){return Pl.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(fa(this)){const{to:e,config:t}=this.animation;Pl.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ql.und(e)?(n=this.queue||[],this.queue=[]):n=[Ql.obj(e)?e:Ls({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>ta(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ia(this._state,e&&this._lastCallId),Pl.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:o}=e;n=Ql.obj(n)?n[t]:n,(null==n||js(n))&&(n=void 0),o=Ql.obj(o)?o[t]:o,null==o&&(o=void 0);const r={to:n,from:o};return ma(this)||(e.reverse&&([n,o]=[o,n]),o=Ui(o),Ql.und(o)?bs(this)||this._set(n):this._set(o)),r}_update(e,t){let n=Ls({},e);const{key:o,defaultProps:r}=this;n.default&&Object.assign(r,Vs(n,((e,t)=>/^on/.test(t)?Os(e,o):e))),wa(this,n,"onProps"),Ba(this,"onProps",n,this);const l=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return ea(++this._lastCallId,{key:o,props:n,defaultProps:r,state:i,actions:{pause:()=>{ga(this)||(va(this,!0),oi(i.pauseQueue),Ba(this,"onPause",oa(this,ka(this,this.animation.to)),this))},resume:()=>{ga(this)&&(va(this,!1),fa(this)&&this._resume(),oi(i.resumeQueue),Ba(this,"onResume",oa(this,ka(this,this.animation.to)),this))},start:this._merge.bind(this,l)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=_a(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ra(this));const o=!Ql.und(e.to),r=!Ql.und(e.from);if(o||r){if(!(t.callId>this._lastToId))return n(ra(this));this._lastToId=t.callId}const{key:l,defaultProps:i,animation:s}=this,{to:a,from:c}=s;let{to:u=a,from:d=c}=e;!r||o||t.default&&!Ql.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!Xl(d,c);p&&(s.from=d),d=Ui(d);const m=!Xl(u,a);m&&this._focus(u);const f=js(t.to),{config:g}=s,{decay:h,velocity:v}=g;(o||r)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Qs(n=Ls({},n),t),t=Ls({},n,t)),Qs(e,t),Object.assign(e,t);for(const t in Ys)null==e[t]&&(e[t]=Ys[t]);let{mass:o,frequency:r,damping:l}=e;Ql.und(r)||(r<.01&&(r=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*l*o/r)}(g,As(t.config,l),t.config!==i.config?As(i.config,l):void 0);let b=bs(this);if(!b||Ql.und(u))return n(oa(this,!0));const k=Ql.und(t.reset)?r&&!t.default:!Ql.und(d)&&Ds(t.reset,l),_=k?d:this.get(),y=Ws(u),E=Ql.num(y)||Ql.arr(y)||ds(y),C=!f&&(!E||Ds(i.immediate||t.immediate,l));if(m){const e=xs(u);if(e!==b.constructor){if(!C)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(y)}}const S=b.constructor;let w=Gi(u),B=!1;if(!w){const e=k||!ma(this)&&p;(m||e)&&(B=Xl(Ws(_),y),w=!B),(Xl(s.immediate,C)||C)&&Xl(g.decay,h)&&Xl(g.velocity,v)||(w=!0)}if(B&&fa(this)&&(s.changed&&!k?w=!0:w||this._stop(a)),!f&&((w||Gi(a))&&(s.values=b.getPayload(),s.toValues=Gi(u)?null:S==Cs?[1]:ti(y)),s.immediate!=C&&(s.immediate=C,C||k||this._set(a)),w)){const{onRest:e}=s;Jl(Sa,(e=>wa(this,t,e)));const o=oa(this,ka(this,a));oi(this._pendingCalls,o),this._pendingCalls.add(n),s.changed&&Pl.batchedUpdates((()=>{s.changed=!k,null==e||e(o,this),k?As(i.onRest,o):null==s.onStart||s.onStart(o,this)}))}k&&this._set(_),f?n(la(t.to,t,this._state,this)):w?this._start():fa(this)&&!m?this._pendingCalls.add(n):n(na(_))}_focus(e){const t=this.animation;e!==t.to&&(Wi(this)&&this._detach(),t.to=e,Wi(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Gi(t)&&(qi(t,this),ca(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Gi(e)&&Yi(e,this)}_set(e,t=!0){const n=Ui(e);if(!Ql.und(n)){const e=bs(this);if(!e||!Xl(n,e.getValue())){const o=xs(n);e&&e.constructor==o?e.setValue(n):ks(this,o.create(n)),e&&Pl.batchedUpdates((()=>{this._onChange(n,t)}))}}return bs(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ba(this,"onStart",oa(this,ka(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),As(this.animation.onChange,e,this)),As(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;bs(this).reset(Ui(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),fa(this)||(ha(this,!0),ga(this)||this._resume())}_resume(){ui.skipAnimation?this.finish():gi.start(this)}_stop(e,t){if(fa(this)){ha(this,!1);const n=this.animation;Jl(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),$i(this,{type:"idle",parent:this});const o=t?ra(this.get()):oa(this.get(),ka(this,null!=e?e:n.to));oi(this._pendingCalls,o),n.changed&&(n.changed=!1,Ba(this,"onRest",o,this))}}}function ka(e,t){const n=Ws(t);return Xl(Ws(e.get()),n)}function _a(e,t=e.loop,n=e.to){let o=As(t);if(o){const r=!0!==o&&Us(o),l=(r||e).reverse,i=!r||r.reset;return ya(Ls({},e,{loop:t,default:!1,pause:void 0,to:!l||js(n)?n:void 0,from:i?e.from:void 0,reset:i},r))}}function ya(e){const{to:t,from:n}=e=Us(e),o=new Set;return Ql.obj(t)&&Ca(t,o),Ql.obj(n)&&Ca(n,o),e.keys=o.size?Array.from(o):null,e}function Ea(e){const t=ya(e);return Ql.und(t.default)&&(t.default=Vs(t)),t}function Ca(e,t){ei(e,((e,n)=>null!=e&&t.add(n)))}const Sa=["onStart","onRest","onChange","onPause","onResume"];function wa(e,t,n){e.animation[n]=t[n]!==Fs(t,n)?Os(t[n],e.key):void 0}function Ba(e,t,...n){var o,r,l,i;null==(o=(r=e.animation)[t])||o.call(r,...n),null==(l=(i=e.defaultProps)[t])||l.call(i,...n)}const Ia=["onStart","onChange","onRest"];let xa=1;class Ta{constructor(e,t){this.id=xa++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(Ls({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Ql.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ya(e)),this}start(e){let{queue:t}=this;return e?t=ti(e).map(ya):this.queue=[],this._flush?this._flush(this,t):(Da(this,t),Na(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Jl(ti(t),(t=>n[t].stop(!!e)))}else ia(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Ql.und(e))this.start({pause:!0});else{const t=this.springs;Jl(ti(e),(e=>t[e].pause()))}return this}resume(e){if(Ql.und(e))this.start({pause:!1});else{const t=this.springs;Jl(ti(e),(e=>t[e].resume()))}return this}each(e){ei(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,ni(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const l=!o&&this._started,i=r||l&&n.size?this.get():null;r&&t.size&&ni(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),l&&(this._started=!1,ni(n,(([e,t])=>{t.value=i,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}Pl.onFrame(this._onFrame)}}function Na(e,t){return Promise.all(t.map((t=>Pa(e,t)))).then((t=>ta(e,t)))}async function Pa(e,t,n){const{keys:o,to:r,from:l,loop:i,onRest:s,onResolve:a}=t,c=Ql.obj(t.default)&&t.default;i&&(t.loop=!1),!1===r&&(t.to=null),!1===l&&(t.from=null);const u=Ql.arr(r)||Ql.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Jl(Ia,(n=>{const o=t[n];if(Ql.fun(o)){const r=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=r.get(o);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,oi(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(o||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),m=!0===t.cancel||!0===Fs(t,"cancel");(u||m&&d.asyncId)&&p.push(ea(++e._lastAsyncId,{props:t,state:d,actions:{pause:Zl,resume:Zl,start(t,n){m?(ia(d,e._lastAsyncId),n(ra(e))):(t.onRest=s,n(la(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=ta(e,await Promise.all(p));if(i&&f.finished&&(!n||!f.noop)){const n=_a(t,i,r);if(n)return Da(e,[n]),Pa(e,n,!0)}return a&&Pl.batchedUpdates((()=>a(f,e,e.item))),f}function Ra(e,t){const n=Ls({},e.springs);return t&&Jl(ti(t),(e=>{Ql.und(e.keys)&&(e=ya(e)),Ql.obj(e.to)||(e=Ls({},e,{to:void 0})),Aa(n,e,(e=>La(e)))})),Ma(e,n),n}function Ma(e,t){ei(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,qi(t,e))}))}function La(e,t){const n=new ba;return n.key=e,t&&qi(n,t),n}function Aa(e,t,n){t.keys&&Jl(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function Da(e,t){Jl(t,(t=>{Aa(e.springs,t,(t=>La(t,e)))}))}const Oa=["children"],Fa=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,Oa);const o=(0,ql.useContext)(za),r=n.pause||!!o.pause,l=n.immediate||!!o.immediate;n=function(e,t){const[n]=(0,ql.useState)((()=>({inputs:t,result:e()}))),o=(0,ql.useRef)(),r=o.current;let l=r;return l?Boolean(t&&l.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,l.inputs))||(l={inputs:t,result:e()}):l=n,(0,ql.useEffect)((()=>{o.current=l,r==n&&(n.inputs=n.result=void 0)}),[l]),l.result}((()=>({pause:r,immediate:l})),[r,l]);const{Provider:i}=za;return ql.createElement(i,{value:n},t)},za=(Va=Fa,Ha={},Object.assign(Va,ql.createContext(Ha)),Va.Provider._context=Va,Va.Consumer._context=Va,Va);var Va,Ha;Fa.Provider=za.Provider,Fa.Consumer=za.Consumer;const Ga=()=>{const e=[],t=function(t){us(`${ss}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const o=[];return Jl(e,((e,r)=>{if(Ql.und(t))o.push(e.start());else{const l=n(t,e,r);l&&o.push(e.start(l))}})),o};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Jl(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Jl(e,(e=>e.resume(...arguments))),this},t.set=function(t){Jl(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Jl(e,((e,o)=>{if(Ql.und(t))n.push(e.start());else{const r=this._getProps(t,e,o);r&&n.push(e.start(r))}})),n},t.stop=function(){return Jl(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Jl(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Ql.fun(e)?e(n,t):e};return t._getProps=n,t};function Ua(e,t,n){const o=Ql.fun(t)&&t;o&&!n&&(n=[]);const r=(0,ql.useMemo)((()=>o||3==arguments.length?Ga():void 0),[]),l=(0,ql.useRef)(0),i=ms(),s=(0,ql.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=Ra(e,t);return l.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?Na(e,t):new Promise((o=>{Ma(e,n),s.queue.push((()=>{o(Na(e,t))})),i()}))}})),[]),a=(0,ql.useRef)([...s.ctrls]),c=[],u=hs(e)||0;function d(e,n){for(let r=e;r<n;r++){const e=a.current[r]||(a.current[r]=new Ta(null,s.flush)),n=o?o(r,e):t[r];n&&(c[r]=Ea(n))}}(0,ql.useMemo)((()=>{Jl(a.current.slice(e,u),(e=>{Ks(e,r),e.stop(!0)})),a.current.length=e,d(u,e)}),[e]),(0,ql.useMemo)((()=>{d(0,Math.min(u,e))}),n);const p=a.current.map(((e,t)=>Ra(e,c[t]))),m=(0,ql.useContext)(Fa),f=hs(m),g=m!==f&&$s(m);ps((()=>{l.current++,s.ctrls=a.current;const{queue:e}=s;e.length&&(s.queue=[],Jl(e,(e=>e()))),Jl(a.current,((e,t)=>{null==r||r.add(e),g&&e.start({default:m});const n=c[t];n&&(qs(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),fs((()=>()=>{Jl(s.ctrls,(e=>e.stop(!0)))}));const h=p.map((e=>Ls({},e)));return r?[h,r]:h}let Wa;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Wa||(Wa={}));class $a extends da{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Fi(...t);const n=this._get(),o=xs(n);ks(this,o.create(n))}advance(e){const t=this._get();Xl(t,this.get())||(bs(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ka(this._active)&&qa(this)}_get(){const e=Ql.arr(this.source)?this.source.map(Ui):ti(Ui(this.source));return this.calc(...e)}_start(){this.idle&&!Ka(this._active)&&(this.idle=!1,Jl(_s(this),(e=>{e.done=!1})),ui.skipAnimation?(Pl.batchedUpdates((()=>this.advance())),qa(this)):gi.start(this))}_attach(){let e=1;Jl(ti(this.source),(t=>{Gi(t)&&qi(t,this),ca(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Jl(ti(this.source),(e=>{Gi(e)&&Yi(e,this)})),this._active.clear(),qa(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=ti(this.source).reduce(((e,t)=>Math.max(e,(ca(t)?t.priority:0)+1)),0))}}function ja(e){return!1!==e.idle}function Ka(e){return!e.size||Array.from(e).every(ja)}function qa(e){e.idle||(e.idle=!0,Jl(_s(e),(e=>{e.done=!0})),$i(e,{type:"idle",parent:e}))}ui.assign({createStringInterpolator:is,to:(e,t)=>new $a(e,t)}),gi.advance;var Ya=window.ReactDOM;function Za(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const Qa=["style","children","scrollTop","scrollLeft"],Xa=/^--/;function Ja(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Xa.test(e)||tc.hasOwnProperty(e)&&tc[e]?(""+t).trim():t+"px"}const ec={};let tc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const nc=["Webkit","Ms","Moz","O"];tc=Object.keys(tc).reduce(((e,t)=>(nc.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),tc);const oc=["x","y","z"],rc=/^(matrix|translate|scale|rotate|skew)/,lc=/^(translate)/,ic=/^(rotate|skew)/,sc=(e,t)=>Ql.num(e)&&0!==e?e+t:e,ac=(e,t)=>Ql.arr(e)?e.every((e=>ac(e,t))):Ql.num(e)?e===t:parseFloat(e)===t;class cc extends ws{constructor(e){let{x:t,y:n,z:o}=e,r=Za(e,oc);const l=[],i=[];(t||n||o)&&(l.push([t||0,n||0,o||0]),i.push((e=>[`translate3d(${e.map((e=>sc(e,"px"))).join(",")})`,ac(e,0)]))),ei(r,((e,t)=>{if("transform"===t)l.push([e||""]),i.push((e=>[e,""===e]));else if(rc.test(t)){if(delete r[t],Ql.und(e))return;const n=lc.test(t)?"px":ic.test(t)?"deg":"";l.push(ti(e)),i.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${sc(r,n)})`,ac(r,0)]:e=>[`${t}(${e.map((e=>sc(e,n))).join(",")})`,ac(e,t.startsWith("scale")?1:0)])}})),l.length&&(r.transform=new uc(l,i)),super(r)}}class uc extends ji{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Jl(this.inputs,((n,o)=>{const r=Ui(n[0]),[l,i]=this.transforms[o](Ql.arr(r)?r:n.map(Ui));e+=" "+l,t=t&&i})),t?"none":e}observerAdded(e){1==e&&Jl(this.inputs,(e=>Jl(e,(e=>Gi(e)&&qi(e,this)))))}observerRemoved(e){0==e&&Jl(this.inputs,(e=>Jl(e,(e=>Gi(e)&&Yi(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),$i(this,e)}}const dc=["scrollTop","scrollLeft"];ui.assign({batchedUpdates:Ya.unstable_batchedUpdates,createStringInterpolator:is,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const pc=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new ws(e)),getComponentProps:o=(e=>e)}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},l=e=>{const t=Ms(e)||"Anonymous";return(e=Ql.str(e)?l[e]||(l[e]=Ns(e,r)):e[Rs]||(e[Rs]=Ns(e,r))).displayName=`Animated(${t})`,e};return ei(e,((t,n)=>{Ql.arr(e)&&(n=Ms(t)),l[n]=l(t)})),{animated:l}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,o=t,{style:r,children:l,scrollTop:i,scrollLeft:s}=o,a=Za(o,Qa),c=Object.values(a),u=Object.keys(a).map((t=>n||e.hasAttribute(t)?t:ec[t]||(ec[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==l&&(e.textContent=l);for(let t in r)if(r.hasOwnProperty(t)){const n=Ja(t,r[t]);Xa.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new cc(e),getComponentProps:e=>Za(e,dc)}).animated,mc=e=>e+1,fc=e=>({top:e.offsetTop,left:e.offsetLeft});var gc=function(e){let{isSelected:t,adjustScrolling:n,enableAnimation:o,triggerAnimationOnChange:r}=e;const l=(0,s.useRef)(),i=(0,d.useReducedMotion)()||!o,[a,c]=(0,s.useReducer)(mc,0),[u,p]=(0,s.useReducer)(mc,0),[m,f]=(0,s.useState)({x:0,y:0}),g=(0,s.useMemo)((()=>l.current?fc(l.current):null),[r]),h=(0,s.useMemo)((()=>{if(!n||!l.current)return()=>{};const e=(0,ul.getScrollContainer)(l.current);if(!e)return()=>{};const t=l.current.getBoundingClientRect();return()=>{const n=l.current.getBoundingClientRect().top-t.top;n&&(e.scrollTop+=n)}}),[r,n]);function v(e){let{value:n}=e,{x:o,y:r}=n;o=Math.round(o),r=Math.round(r),o===v.x&&r===v.y||(function(e){let{x:n,y:o}=e;if(!l.current)return;const r=0===n&&0===o;l.current.style.transformOrigin=r?"":"center",l.current.style.transform=r?"":`translate3d(${n}px,${o}px,0)`,l.current.style.zIndex=!t||r?"":"1",h()}({x:o,y:r}),v.x=o,v.y=r)}return(0,s.useLayoutEffect)((()=>{a&&p()}),[a]),(0,s.useLayoutEffect)((()=>{if(!g)return;if(i)return void h();l.current.style.transform="";const e=fc(l.current);c(),f({x:Math.round(g.left-e.left),y:Math.round(g.top-e.top)})}),[r]),v.x=0,v.y=0,function(e,t){const n=Ql.fun(e),[[o],r]=Ua(1,n?e:[e],n?t||[]:t)}({from:{x:m.x,y:m.y},to:{x:0,y:0},reset:a!==u,config:{mass:5,tension:2e3,friction:200},immediate:i,onChange:v}),l};const hc=".block-editor-block-list__block",vc=".block-list-appender",bc=".block-editor-button-block-appender";function kc(e,t){return t.closest([hc,vc,bc].join(","))===e}function _c(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(hc);return t?t.id.slice("block-".length):void 0}function yc(e){const t=(0,s.useRef)(),n=function(e){return(0,m.useSelect)((t=>{const{getSelectedBlocksInitialCaretPosition:n,isNavigationMode:o,isBlockSelected:r}=t(Qn);if(r(e)&&!o())return n()}),[e])}(e),{isBlockSelected:o,isMultiSelecting:r}=(0,m.useSelect)(Qn);return(0,s.useEffect)((()=>{if(!o(e)||r())return;if(null==n)return;if(!t.current)return;const{ownerDocument:l}=t.current;if(t.current.contains(l.activeElement))return;const i=ul.focus.tabbable.find(t.current).filter((e=>(0,ul.isTextField)(e))),s=-1===n,a=(s?u.last:u.first)(i)||t.current;if(kc(t.current,a)){if(!t.current.getAttribute("contenteditable")){const e=ul.focus.tabbable.findNext(t.current);if(e&&kc(t.current,e)&&(0,ul.isFormElement)(e))return void e.focus()}(0,ul.placeCaretAtHorizontalEdge)(a,s)}else t.current.focus()}),[n,e]),t}function Ec(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function Cc(){const e=(0,m.useSelect)((e=>{const{isNavigationMode:t,getSettings:n}=e(Qn);return t()||n().outlineMode}),[]);return(0,d.useRefEffect)((t=>{if(e)return t.addEventListener("mouseout",Ec),t.addEventListener("mouseover",Ec),()=>{t.removeEventListener("mouseout",Ec),t.removeEventListener("mouseover",Ec),t.classList.remove("is-hovered")}}),[e])}function Sc(e){return(0,m.useSelect)((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:l,isBlockMultiSelected:i,getBlockName:s,getSettings:a,hasSelectedInnerBlock:u,isTyping:d}=t(Qn),{outlineMode:p}=a(),m=n(e),f=l(e),g=s(e),h=u(e,!0);return c()({"is-selected":f,"is-highlighted":o(e),"is-multi-selected":i(e),"is-reusable":(0,r.isReusableBlock)((0,r.getBlockType)(g)),"is-dragging":m,"has-child-selected":h,"remove-outline":f&&p&&d()})}),[e])}function wc(e){return(0,m.useSelect)((t=>{const n=t(Qn).getBlockName(e),o=(0,r.getBlockType)(n);if((null==o?void 0:o.apiVersion)>1)return(0,r.getBlockDefaultClassName)(n)}),[e])}function Bc(e){return(0,m.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(Qn),l=o(e);if(null==l||!l.className)return;const i=(0,r.getBlockType)(n(e));return(null==i?void 0:i.apiVersion)>1?l.className:void 0}),[e])}function Ic(e){return(0,m.useSelect)((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:r,getBlockRootClientId:l,isBlockSelected:i}=t(Qn);if(!i(e))return;const s=n();return s?c()("is-block-moving-mode",{"can-insert-moving-block":o(r(s),l(e))}):void 0}),[e])}function xc(e){const{isBlockSelected:t}=(0,m.useSelect)(Qn),{selectBlock:n,selectionChange:o}=(0,m.useDispatch)(Qn);return(0,d.useRefEffect)((r=>{function l(l){r.parentElement.closest('[contenteditable="true"]')||(t(e)?l.target.isContentEditable||o(e):kc(r,l.target)&&n(e))}return r.addEventListener("focusin",l),()=>{r.removeEventListener("focusin",l)}}),[t,n])}var Tc=window.wp.keycodes;function Nc(e){const t=(0,m.useSelect)((t=>t(Qn).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:o}=(0,m.useSelect)(Qn),{insertDefaultBlock:r,removeBlock:l}=(0,m.useDispatch)(Qn);return(0,d.useRefEffect)((i=>{if(t)return i.addEventListener("keydown",s),i.addEventListener("dragstart",a),()=>{i.removeEventListener("keydown",s),i.removeEventListener("dragstart",a)};function s(t){const{keyCode:s,target:a}=t;s!==Tc.ENTER&&s!==Tc.BACKSPACE&&s!==Tc.DELETE||a!==i||(0,ul.isTextField)(a)||(t.preventDefault(),s===Tc.ENTER?r({},n(e),o(e)+1):l(e))}function a(e){e.preventDefault()}}),[e,t,n,o,r,l])}function Pc(e){const{isNavigationMode:t,isBlockSelected:n}=(0,m.useSelect)(Qn),{setNavigationMode:o,selectBlock:r}=(0,m.useDispatch)(Qn);return(0,d.useRefEffect)((l=>{function i(l){t()&&!l.defaultPrevented&&(l.preventDefault(),n(e)?o(!1):r(e))}return l.addEventListener("mousedown",i),()=>{l.addEventListener("mousedown",i)}}),[e,t,n,o])}function Rc(){const e=(0,s.useContext)(Af);return(0,d.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function Mc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{__unstableIsHtml:t,__unstableIsDisabled:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:o,className:l,wrapperProps:i={},isAligned:a}=(0,s.useContext)(Lc),{index:u,mode:p,name:f,blockApiVersion:h,blockTitle:v,isPartOfSelection:b,adjustScrolling:k,enableAnimation:_}=(0,m.useSelect)((e=>{const{getBlockIndex:t,getBlockMode:n,getBlockName:l,isTyping:i,getGlobalBlockCount:s,isBlockSelected:a,isBlockMultiSelected:c,isAncestorMultiSelected:u,isFirstMultiSelectedBlock:d}=e(Qn),p=a(o),m=c(o)||u(o),f=l(o),g=(0,r.getBlockType)(f);return{index:t(o),mode:n(o),name:f,blockApiVersion:(null==g?void 0:g.apiVersion)||1,blockTitle:null==g?void 0:g.title,isPartOfSelection:p||m,adjustScrolling:p||d(o),enableAnimation:!i()&&s()<=200}}),[o]),y=(0,g.sprintf)((0,g.__)("Block: %s"),v),E="html"!==p||t?"":"-visual",C=(0,d.useMergeRefs)([e.ref,yc(o),bo(o),xc(o),Nc(o),Pc(o),Cc(),Rc(),gc({isSelected:b,adjustScrolling:k,enableAnimation:_,triggerAnimationOnChange:u}),(0,d.useDisabled)({isDisabled:!n})]),S=to();return h<2&&o===S.clientId&&"undefined"!=typeof process&&process.env,{...i,...e,ref:C,id:`block-${o}${E}`,tabIndex:0,role:"document","aria-label":y,"data-block":o,"data-type":f,"data-title":v,className:c()(c()("block-editor-block-list__block",{"wp-block":!a}),l,e.className,i.className,Sc(o),wc(o),Bc(o),Ic(o)),style:{...i.style,...e.style}}}Mc.save=r.__unstableGetBlockProps;const Lc=(0,s.createContext)();function Ac(e){let{children:t,isHtml:n,...o}=e;return(0,s.createElement)("div",Mc(o,{__unstableIsHtml:n}),t)}const Dc=(0,m.withSelect)(((e,t)=>{let{clientId:n,rootClientId:o}=t;const{isBlockSelected:r,getBlockMode:l,isSelectionEnabled:i,getTemplateLock:s,__unstableGetBlockWithoutInnerBlocks:a,canRemoveBlock:c,canMoveBlock:u}=e(Qn),d=a(n),p=r(n),m=s(o),f=c(n,o),g=u(n,o),{name:h,attributes:v,isValid:b}=d||{};return{mode:l(n),isSelectionEnabled:i(),isLocked:!!m,canRemove:f,canMove:g,block:d,name:h,attributes:v,isValid:b,isSelected:p}})),Oc=(0,m.withDispatch)(((e,t,n)=>{let{select:o}=n;const{updateBlockAttributes:l,insertBlocks:i,mergeBlocks:s,replaceBlocks:a,toggleSelection:c,__unstableMarkLastChangeAsPersistent:u}=e(Qn);return{setAttributes(e){const{getMultiSelectedBlockClientIds:n}=o(Qn),r=n(),{clientId:i}=t,s=r.length?r:[i];l(s,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;i(e,n,o)},onInsertBlocksAfter(e){const{clientId:n,rootClientId:r}=t,{getBlockIndex:l}=o(Qn),s=l(n);i(e,s+1,r)},onMerge(e){const{clientId:n}=t,{getPreviousBlockClientId:r,getNextBlockClientId:l}=o(Qn);if(e){const e=l(n);e&&s(n,e)}else{const e=r(n);e&&s(e,n)}},onReplace(e,n,o){e.length&&!(0,r.isUnmodifiedDefaultBlock)(e[e.length-1])&&u(),a([t.clientId],e,n,o)},toggleSelection(e){c(e)}}}));var Fc=(0,d.compose)(d.pure,Dc,Oc,(0,d.ifCondition)((e=>{let{block:t}=e;return!!t})),(0,p.withFilters)("editor.BlockListBlock"))((function(e){var t;let{block:{__unstableBlockSource:n},mode:o,isLocked:l,canRemove:i,clientId:a,isSelected:d,isSelectionEnabled:p,className:f,name:g,isValid:h,attributes:v,wrapperProps:b,setAttributes:k,onReplace:_,onInsertBlocksAfter:y,onMerge:E,toggleSelection:C}=e;const S=(0,m.useSelect)((e=>{const{getSettings:t}=e(Qn);return t().supportsLayout}),[]),{removeBlock:w}=(0,m.useDispatch)(Qn),B=(0,s.useCallback)((()=>w(a)),[a]);let I=(0,s.createElement)(hl,{name:g,isSelected:d,attributes:v,setAttributes:k,insertBlocksAfter:l?void 0:y,onReplace:i?_:void 0,onRemove:i?B:void 0,mergeBlocks:i?E:void 0,clientId:a,isSelectionEnabled:p,toggleSelection:C});const x=(0,r.getBlockType)(g);null!=x&&x.getEditWrapperProps&&(b=function(e,t){const n={...e,...t};return e&&t&&e.className&&t.className&&(n.className=c()(e.className,t.className)),e&&t&&e.style&&t.style&&(n.style={...e.style,...t.style}),n}(b,x.getEditWrapperProps(v)));const T=b&&!!b["data-align"]&&!S;let N;if(T&&(I=(0,s.createElement)("div",{className:"wp-block","data-align":b["data-align"]},I)),h)N="html"===o?(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{style:{display:"none"}},I),(0,s.createElement)(Ac,{isHtml:!0},(0,s.createElement)(Tl,{clientId:a}))):(null==x?void 0:x.apiVersion)>1?I:(0,s.createElement)(Ac,b,I);else{const e=n?(0,r.serializeRawBlock)(n):(0,r.getSaveContent)(x,v);N=(0,s.createElement)(Ac,{className:"has-warning"},(0,s.createElement)(Cl,{clientId:a}),(0,s.createElement)(s.RawHTML,null,(0,ul.safeHTML)(e)))}const P={clientId:a,className:null!==(t=b)&&void 0!==t&&t["data-align"]&&S?c()(f,`align${b["data-align"]}`):f,wrapperProps:(0,u.omit)(b,["data-align"]),isAligned:T},R=(0,s.useMemo)((()=>P),Object.values(P));return(0,s.createElement)(Lc.Provider,{value:R},(0,s.createElement)(Il,{fallback:(0,s.createElement)(Ac,{className:"has-warning"},(0,s.createElement)(wl,null))},N))})),zc=window.wp.htmlEntities,Vc=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const Hc=[(0,s.createInterpolateElement)((0,g.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,s.createElement)("kbd",null)}),(0,s.createInterpolateElement)((0,g.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,s.createElement)("kbd",null)}),(0,s.createInterpolateElement)((0,g.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,s.createElement)("kbd",null)}),(0,g.__)("Drag files into the editor to automatically insert media blocks."),(0,g.__)("Change a block's type by pressing the block icon on the toolbar.")];var Gc=function(){const[e]=(0,s.useState)(Math.floor(Math.random()*Hc.length));return(0,s.createElement)(p.Tip,null,Hc[e])},Uc=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.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"})),Wc=(0,s.memo)((function(e){var t;let{icon:n,showColors:o=!1,className:r}=e;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Uc});const l=(0,s.createElement)(p.Icon,{icon:n&&n.src?n.src:n}),i=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return(0,s.createElement)("span",{style:i,className:c()("block-editor-block-icon",r,{"has-colors":o})},l)})),$c=function(e){let{title:t,icon:n,description:o,blockType:r}=e;return r&&(z()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:t,icon:n,description:o}=r)),(0,s.createElement)("div",{className:"block-editor-block-card"},(0,s.createElement)(Wc,{icon:n,showColors:!0}),(0,s.createElement)("div",{className:"block-editor-block-card__content"},(0,s.createElement)("h2",{className:"block-editor-block-card__title"},t),(0,s.createElement)("span",{className:"block-editor-block-card__description"},o)))};function jc(e){let{clientId:t=null,value:n,selection:o,onChange:l=u.noop,onInput:i=u.noop}=e;const a=(0,m.useRegistry)(),{resetBlocks:c,resetSelection:d,replaceInnerBlocks:p,setHasControlledInnerBlocks:f,__unstableMarkNextChangeAsNotPersistent:g}=a.dispatch(Qn),{getBlockName:h,getBlocks:v}=a.select(Qn),b=(0,m.useSelect)((e=>!t||e(Qn).areInnerBlocksControlled(t)),[t]),k=(0,s.useRef)({incoming:null,outgoing:[]}),_=(0,s.useRef)(!1),y=()=>{n&&(g(),t?a.batch((()=>{f(t,!0);const e=n.map((e=>(0,r.cloneBlock)(e)));_.current&&(k.current.incoming=e),g(),p(t,e)})):(_.current&&(k.current.incoming=n),c(n)))},E=(0,s.useRef)(i),C=(0,s.useRef)(l);(0,s.useEffect)((()=>{E.current=i,C.current=l}),[i,l]),(0,s.useEffect)((()=>{k.current.outgoing.includes(n)?(0,u.last)(k.current.outgoing)===n&&(k.current.outgoing=[]):v(t)!==n&&(k.current.outgoing=[],y(),o&&d(o.selectionStart,o.selectionEnd,o.initialPosition))}),[n,t]),(0,s.useEffect)((()=>{b||(k.current.outgoing=[],y())}),[b]),(0,s.useEffect)((()=>{const{getSelectionStart:e,getSelectionEnd:n,getSelectedBlocksInitialCaretPosition:o,isLastBlockChangePersistent:r,__unstableIsLastBlockChangeIgnored:l,areInnerBlocksControlled:i}=a.select(Qn);let s=v(t),c=r(),u=!1;_.current=!0;const d=a.subscribe((()=>{if(null!==t&&null===h(t))return;if(t&&!i(t))return;const a=r(),d=v(t),p=d!==s;if(s=d,p&&(k.current.incoming||l()))return k.current.incoming=null,void(c=a);(p||u&&!p&&a&&!c)&&(c=a,k.current.outgoing.push(s),(c?C.current:E.current)(s,{selection:{selectionStart:e(),selectionEnd:n(),initialPosition:o()}})),u=p}));return()=>d()}),[a,t])}var Kc=(0,d.createHigherOrderComponent)((e=>(0,m.withRegistry)((t=>{let{useSubRegistry:n=!0,registry:o,...r}=t;if(!n)return(0,s.createElement)(e,i({registry:o},r));const[l,a]=(0,s.useState)(null);return(0,s.useEffect)((()=>{const e=(0,m.createRegistry)({},o);e.registerStore(Yn,Zn),a(e)}),[o]),l?(0,s.createElement)(m.RegistryProvider,{value:l},(0,s.createElement)(e,i({registry:l},r))):null}))),"withRegistryProvider")((function(e){const{children:t,settings:n}=e,{updateSettings:o}=(0,m.useDispatch)(Qn);return(0,s.useEffect)((()=>{o(n)}),[n]),jc(e),(0,s.createElement)(vo,null,t)}));function qc(e){let{onClick:t}=e;return(0,s.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},(0,s.createElement)(p.Disabled,null,(0,s.createElement)(Of,null)))}function Yc(){const{hasSelectedBlock:e,hasMultiSelection:t}=(0,m.useSelect)(Qn),{clearSelectedBlock:n}=(0,m.useDispatch)(Qn);return(0,d.useRefEffect)((o=>{function r(r){(e()||t())&&r.target===o&&n()}return o.addEventListener("mousedown",r),()=>{o.removeEventListener("mousedown",r)}}),[e,t,n])}function Zc(e){return(0,s.createElement)("div",i({ref:Yc()},e))}function Qc(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:l,__unstableIsFullySelected:i}=e(Qn);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:l(),isFullSelection:i()}}function Xc(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:l}=(0,m.useSelect)(Qc,[]),i=ko(r),s=ko((0,u.first)(n)),a=ko((0,u.last)(n));return(0,d.useRefEffect)((c=>{const{ownerDocument:u}=c,{defaultView:d}=u;if(null==e)return;if(!o||t){if(!r||t)return;const e=d.getSelection();if(e.rangeCount&&!e.isCollapsed){const t=i.current,{startContainer:n,endContainer:o}=e.getRangeAt(0);!t||t.contains(n)&&t.contains(o)||e.removeAllRanges()}return}const{length:p}=n;if(p<2)return;if(!l)return;if(c.contentEditable=!0,c.focus(),!s.current||!a.current)return;const m=d.getSelection(),f=u.createRange();f.setStartBefore(s.current),f.setEndAfter(a.current),m.removeAllRanges(),m.addRange(f)}),[o,t,n,r,e,l])}function Jc(e,t,n,o){let r,l=ul.focus.focusable.find(n);return t&&(l=(0,u.reverse)(l)),l=l.slice(l.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),(0,u.find)(l,(function(e){if(!ul.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}))}function eu(){const{getSelectedBlockClientId:e,getMultiSelectedBlocksEndClientId:t,getPreviousBlockClientId:n,getNextBlockClientId:o,getSettings:r,hasMultiSelection:l}=(0,m.useSelect)(Qn);return(0,d.useRefEffect)((i=>{let s;function a(){s=null}function c(a){const{keyCode:c,target:u}=a,d=c===Tc.UP,p=c===Tc.DOWN,m=c===Tc.LEFT,f=c===Tc.RIGHT,g=d||m,h=m||f,v=d||p,b=h||v,k=a.shiftKey,_=k||a.ctrlKey||a.altKey||a.metaKey,y=v?ul.isVerticalEdge:ul.isHorizontalEdge,{ownerDocument:E}=i,{defaultView:C}=E;if(l())return;if(v?s||(s=(0,ul.computeCaretRect)(C)):s=null,a.defaultPrevented)return;if(!b)return;if(!function(e,t,n){if((t===Tc.UP||t===Tc.DOWN)&&!n)return!0;const{tagName:o}=e;return"INPUT"!==o&&"TEXTAREA"!==o}(u,c,_))return;const S=(0,ul.isRTL)(u)?!g:g,{keepCaretInsideBlock:w}=r(),B=e();if(k){const e=t(),r=n(e||B),l=o(e||B);(g&&r||!g&&l)&&function(e,t){const n=Jc(e,t,i);return!n||!function(e,t){return e.closest(hc)===t.closest(hc)}(e,n)}(u,g)&&y(u,g)&&(i.contentEditable=!0,i.focus())}else if(v&&(0,ul.isVerticalEdge)(u,g)&&!w){const e=Jc(u,g,i,!0);e&&((0,ul.placeCaretAtVerticalEdge)(e,g,s),a.preventDefault())}else if(h&&C.getSelection().isCollapsed&&(0,ul.isHorizontalEdge)(u,S)&&!w){const e=Jc(u,S,i);(0,ul.placeCaretAtHorizontalEdge)(e,g),a.preventDefault()}}return i.addEventListener("mousedown",a),i.addEventListener("keydown",c),()=>{i.removeEventListener("mousedown",a),i.removeEventListener("keydown",c)}}),[])}var tu=window.wp.keyboardShortcuts;function nu(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,m.useSelect)(Qn),{multiSelect:o}=(0,m.useDispatch)(Qn),r=(0,tu.__unstableUseShortcutEventMatch)();return(0,d.useRefEffect)((l=>{function i(l){if(!r("core/block-editor/select-all",l))return;const i=t();if(i.length<2&&!(0,ul.isEntirelySelected)(l.target))return;const[s]=i,a=n(s);let c=e(a);i.length===c.length&&(c=e(n(a)));const d=(0,u.first)(c),p=(0,u.last)(c);d!==p&&(o(d,p),l.preventDefault())}return l.addEventListener("keydown",i),()=>{l.removeEventListener("keydown",i)}}),[])}function ou(e,t){e.contentEditable=t,t&&e.focus()}function ru(){const{startMultiSelect:e,stopMultiSelect:t}=(0,m.useDispatch)(Qn),{isSelectionEnabled:n,hasMultiSelection:o}=(0,m.useSelect)(Qn);return(0,d.useRefEffect)((r=>{const{ownerDocument:l}=r,{defaultView:i}=l;let s,a;function c(){t(),i.removeEventListener("mouseup",c),a=i.requestAnimationFrame((()=>{if(o())return;ou(r,!1);const e=i.getSelection();if(e.rangeCount){const{commonAncestorContainer:t}=e.getRangeAt(0);s.contains(t)&&s.focus()}}))}function u(t){let{buttons:o,target:a}=t;1===o&&a.getAttribute("contenteditable")&&n()&&(s=l.activeElement,e(),i.addEventListener("mouseup",c),ou(r,!0))}return r.addEventListener("mouseout",u),()=>{r.removeEventListener("mouseout",u),i.removeEventListener("mouseup",c),i.cancelAnimationFrame(a)}}),[e,t,n,o])}function lu(e,t){e.contentEditable=t,t&&e.focus()}function iu(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,m.useDispatch)(Qn),{getBlockParents:o,getBlockSelectionStart:r}=(0,m.useSelect)(Qn);return(0,d.useRefEffect)((n=>{const{ownerDocument:l}=n,{defaultView:i}=l;function s(l){const s=i.getSelection();if(!s.rangeCount)return void lu(n,!1);const a=l.shiftKey&&"mouseup"===l.type;if(s.isCollapsed&&!a)return void lu(n,!1);let c=_c(function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE?t:t.childNodes[n]}(s)),u=_c(function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE?t:t.childNodes[n-1]}(s));if(a){const e=r(),t=_c(l.target),n=t!==u;(c===u&&s.isCollapsed||!u||n)&&(u=t),c!==e&&(c=e)}if(void 0!==c||void 0!==u)if(c===u)t(c);else{const t=[...o(c),c],n=[...o(u),u],r=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,n);e(t[r],n[r])}else lu(n,!1)}function a(){l.addEventListener("selectionchange",s),i.addEventListener("mouseup",s)}function c(){l.removeEventListener("selectionchange",s),i.removeEventListener("mouseup",s)}function u(){c(),a()}return a(),n.addEventListener("focusin",u),()=>{c(),n.removeEventListener("focusin",u)}}),[e,t,n,o])}function su(){const{selectBlock:e}=(0,m.useDispatch)(Qn),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=(0,m.useSelect)(Qn);return(0,d.useRefEffect)((r=>{function l(l){if(!t()||0!==l.button)return;const i=n(),s=_c(l.target);l.shiftKey?i!==s&&(r.contentEditable=!0,r.focus()):o()&&e(s)}return r.addEventListener("mousedown",l),()=>{r.removeEventListener("mousedown",l)}}),[e,t,n,o])}function au(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,__unstableIsSelectionMergeable:n,hasMultiSelection:o}=(0,m.useSelect)(Qn),{replaceBlocks:l,__unstableSplitSelection:i,removeBlocks:s,__unstableDeleteSelection:a,__unstableExpandSelection:c}=(0,m.useDispatch)(Qn);return(0,d.useRefEffect)((u=>{function d(e){var t;o()&&null!==(t=e.inputType)&&void 0!==t&&t.startsWith("format")&&e.preventDefault()}function p(d){d.defaultPrevented||o()&&(d.keyCode===Tc.ENTER?(u.contentEditable=!1,d.preventDefault(),e()?l(t(),(0,r.createBlock)((0,r.getDefaultBlockName)())):i()):d.keyCode===Tc.BACKSPACE||d.keyCode===Tc.DELETE?(u.contentEditable=!1,d.preventDefault(),e()?s(t()):n()?a(d.keyCode===Tc.DELETE):c()):1!==d.key.length||d.metaKey||d.ctrlKey||(u.contentEditable=!1,n()?a(d.keyCode===Tc.DELETE):(d.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges())))}function m(e){o()&&(u.contentEditable=!1,n()?a():(e.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges()))}return u.addEventListener("beforeinput",d),u.addEventListener("keydown",p),u.addEventListener("compositionstart",m),()=>{u.removeEventListener("beforeinput",d),u.removeEventListener("keydown",p),u.removeEventListener("compositionstart",m)}}),[])}function cu(){const[e,t,n]=function(){const e=(0,s.useRef)(),t=(0,s.useRef)(),n=(0,s.useRef)(),o=(0,s.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:l,getBlockCount:i}=(0,m.useSelect)(Qn),{setNavigationMode:a}=(0,m.useDispatch)(Qn),c=(0,m.useSelect)((e=>e(Qn).isNavigationMode()),[])?void 0:"0",u=(0,s.useRef)();function p(t){if(u.current)u.current=null;else if(r())e.current.focus();else if(l())o.current.focus();else{a(!0);const n=t.target.compareDocumentPosition(e.current)&t.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";ul.focus.tabbable[n](t.target).focus()}}const f=(0,s.createElement)("div",{ref:t,tabIndex:c,onFocus:p}),g=(0,s.createElement)("div",{ref:n,tabIndex:c,onFocus:p}),h=(0,d.useRefEffect)((s=>{function c(e){if(e.defaultPrevented)return;if(e.keyCode===Tc.ESCAPE&&!r())return e.preventDefault(),void a(!0);if(e.keyCode!==Tc.TAB)return;const o=e.shiftKey,i=o?"findPrevious":"findNext";if(!r()&&!l())return void(e.target===s&&a(!0));if(((0,ul.isFormElement)(e.target)||e.target.getAttribute("data-block")===l())&&(0,ul.isFormElement)(ul.focus.tabbable[i](e.target)))return;const c=o?t:n;u.current=!0,c.current.focus({preventScroll:!0})}function d(e){o.current=e.target;const{ownerDocument:t}=s;e.relatedTarget||t.activeElement!==t.body||0!==i()||s.focus()}function p(o){var r;if(o.keyCode!==Tc.TAB)return;if("region"===(null===(r=o.target)||void 0===r?void 0:r.getAttribute("role")))return;if(e.current===o.target)return;const l=o.shiftKey?"findPrevious":"findNext",i=ul.focus.tabbable[l](o.target);i!==t.current&&i!==n.current||(o.preventDefault(),i.focus({preventScroll:!0}))}const{ownerDocument:m}=s,{defaultView:f}=m;return f.addEventListener("keydown",p),s.addEventListener("keydown",c),s.addEventListener("focusout",d),()=>{f.removeEventListener("keydown",p),s.removeEventListener("keydown",c),s.removeEventListener("focusout",d)}}),[]);return[f,(0,d.useMergeRefs)([e,h]),g]}(),o=(0,m.useSelect)((e=>e(Qn).hasMultiSelection()),[]);return[e,(0,d.useMergeRefs)([t,au(),ru(),iu(),su(),Xc(),nu(),eu(),(0,d.useRefEffect)((e=>{if(e.tabIndex=-1,e.contentEditable=o,o)return e.setAttribute("aria-label",(0,g.__)("Multiple selected blocks")),()=>{e.removeAttribute("aria-label")}}),[o])]),n]}var uu=(0,s.forwardRef)((function(e,t){let{children:n,...o}=e;const[r,l,a]=cu();return(0,s.createElement)(s.Fragment,null,r,(0,s.createElement)("div",i({},o,{ref:(0,d.useMergeRefs)([l,t]),className:c()(o.className,"block-editor-writing-flow")}),n),a)}));const du="editor-styles-wrapper";function pu(e){return(0,s.useMemo)((()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)}),[e])}var mu=(0,s.forwardRef)((function(e,t){let{contentRef:n,children:o,head:r,tabIndex:l=0,assets:a,...u}=e;const[,m]=(0,s.useReducer)((()=>({}))),[f,h]=(0,s.useState)(),[v,b]=(0,s.useState)([]),k=pu(null==a?void 0:a.styles),_=pu(null==a?void 0:a.scripts),y=Yc(),[E,C,S]=cu(),w=(0,d.useRefEffect)((e=>{function t(){const{contentDocument:t,ownerDocument:n}=e,{readyState:o,documentElement:r}=t;return("interactive"===o||"complete"===o)&&(function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],l={};for(const t in e)l[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();l.clientX+=e.left,l.clientY+=e.top}const i=new r(e.type,l);!n.dispatchEvent(i)&&e.preventDefault()}const r=["dragover"];for(const t of r)e.addEventListener(t,o)}(t),h(t),y(r),b(Array.from(n.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),t.dir=n.dir,r.removeChild(t.head),r.removeChild(t.body),!0)}return e.addEventListener("load",t),()=>e.removeEventListener("load",t)}),[]),B=(0,d.useRefEffect)((e=>{_.reduce(((t,n)=>t.then((()=>async function(e,t){let{id:n,src:o}=t;return new Promise(((t,r)=>{const l=e.ownerDocument.createElement("script");l.id=n,o?(l.src=o,l.onload=()=>t(),l.onerror=()=>r()):t(),e.appendChild(l)}))}(e,n)))),Promise.resolve()).finally((()=>{m()}))}),[]),I=(0,d.useMergeRefs)([n,y,C]),x=(0,d.useRefEffect)((e=>{Array.from(document.styleSheets).forEach((t=>{try{t.cssRules}catch(e){return}const{ownerNode:n,cssRules:o}=t;if(o&&"LINK"===n.tagName&&"wp-reset-editor-styles-css"!==n.id&&Array.from(o).find((e=>{let{selectorText:t}=e;return t&&(t.includes(`.${du}`)||t.includes(".wp-block"))}))&&!e.ownerDocument.getElementById(n.id)){e.appendChild(n.cloneNode(!0));const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.appendChild(o.cloneNode(!0))}}))}),[]);return r=(0,s.createElement)(s.Fragment,null,(0,s.createElement)("style",null,"body{margin:0}"),k.map((e=>{let{tagName:t,href:n,id:o,rel:r,media:l,textContent:i}=e;const a=t.toLowerCase();return"style"===a?(0,s.createElement)(a,{id:o,key:o},i):(0,s.createElement)(a,{href:n,id:o,rel:r,media:l,key:o})})),r),(0,s.createElement)(s.Fragment,null,l>=0&&E,(0,s.createElement)("iframe",i({},u,{ref:(0,d.useMergeRefs)([t,w]),tabIndex:l,srcDoc:"<!doctype html>",title:(0,g.__)("Editor canvas")}),f&&(0,s.createPortal)((0,s.createElement)(s.Fragment,null,(0,s.createElement)("head",{ref:B},r),(0,s.createElement)("body",{ref:I,className:c()(du,...v)},(0,s.createElement)("div",{style:{display:"none"},ref:x}),(0,s.createElement)(p.__experimentalStyleProvider,{document:f},o))),f.documentElement)),l>=0&&S)})),fu={grad:.9,turn:360,rad:360/(2*Math.PI)},gu=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},hu=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},vu=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},bu=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ku=function(e){return{r:vu(e.r,0,255),g:vu(e.g,0,255),b:vu(e.b,0,255),a:vu(e.a)}},_u=function(e){return{r:hu(e.r),g:hu(e.g),b:hu(e.b),a:hu(e.a,3)}},yu=/^#([0-9a-f]{3,8})$/i,Eu=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Cu=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=Math.max(t,n,o),i=l-Math.min(t,n,o),s=i?l===t?(n-o)/i:l===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:l?i/l*100:0,v:l/255*100,a:r}},Su=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var l=Math.floor(t),i=o*(1-n),s=o*(1-(t-l)*n),a=o*(1-(1-t+l)*n),c=l%6;return{r:255*[o,s,i,i,a,o][c],g:255*[a,o,o,s,i,i][c],b:255*[i,i,a,o,o,s][c],a:r}},wu=function(e){return{h:bu(e.h),s:vu(e.s,0,100),l:vu(e.l,0,100),a:vu(e.a)}},Bu=function(e){return{h:hu(e.h),s:hu(e.s),l:hu(e.l),a:hu(e.a,3)}},Iu=function(e){return Su((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},xu=function(e){return{h:(t=Cu(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},Tu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Nu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pu=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ru=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Mu={string:[[function(e){var t=yu.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?hu(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?hu(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Pu.exec(e)||Ru.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ku({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(e){var t=Tu.exec(e)||Nu.exec(e);if(!t)return null;var n,o,r=wu({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(fu[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Iu(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=void 0===r?1:r;return gu(t)&&gu(n)&&gu(o)?ku({r:Number(t),g:Number(n),b:Number(o),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,l=void 0===r?1:r;if(!gu(t)||!gu(n)||!gu(o))return null;var i=wu({h:Number(t),s:Number(n),l:Number(o),a:Number(l)});return Iu(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,l=void 0===r?1:r;if(!gu(t)||!gu(n)||!gu(o))return null;var i=function(e){return{h:bu(e.h),s:vu(e.s,0,100),v:vu(e.v,0,100),a:vu(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(l)});return Su(i)},"hsv"]]},Lu=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},Au=function(e,t){var n=xu(e);return{h:n.h,s:vu(n.s+100*t,0,100),l:n.l,a:n.a}},Du=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ou=function(e,t){var n=xu(e);return{h:n.h,s:n.s,l:vu(n.l+100*t,0,100),a:n.a}},Fu=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Lu(e.trim(),Mu.string):"object"==typeof e&&null!==e?Lu(e,Mu.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed
|
1 |
+
(()=>{var e={6411:function(e,t){var n,o;void 0===(o="function"==typeof(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()},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]})),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",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",r.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),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 s(e){var t=r.get(e);t&&t.destroy()}function a(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],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})?n.apply(t,[e,t]):n)||(e.exports=o)},4403:(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 s in n)o.call(n,s)&&n[s]&&e.push(s);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: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,r){for(var l=0,i=t.length,s=0,a=0;l<i;l++){var c=t[l];if(c.removed){if(c.value=e.join(o.slice(a,a+c.count)),a+=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(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 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 s(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 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 l=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?(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>=a&&g+1>=c)return s(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 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 r=t.length,l=n.length,i=e.newPos,s=i-o,a=0;i+1<r&&s+1<l&&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 r.diff(e,t,n)};var r=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 r=n.allowHorizontalScroll,l=n.onlyScrollIfNeeded,i=n.alignWithTop,s=n.alignWithLeft,a=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),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):l||((i=void 0===i||!!i)?o.scrollTop(t,_.top+y.top):o.scrollTop(t,_.top+E.top)),r&&(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):l||((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 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 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="",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(s.test(n)&&!a.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 s;s="border"===r?r+n[i]+"Width":r+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"],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 s=void 0!==r||l,a=r||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,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 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 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)&&_(e,l,t[l])}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={},r=void 0,l=void 0;for(l in t)t.hasOwnProperty(l)&&(r=parseFloat(_(e,l))||0,o[l]=r+t[l]-n[l]);_(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 r(e);window.scrollTo(t,l(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(h(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},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 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 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}},5372:(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 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:l,resetWarningCache:r};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,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 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 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),a=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return s.createElement("textarea",l({},a,{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: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,l({},e,{innerRef:t}))}))},773:(e,t,n)=>{"use strict";var o=n(5438);t.Z=o.TextareaAutosize},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?r(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=l(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,r){o.push(t),m.pre&&m.pre.call(h,h.node[t],t);var l=e(h.node[t]);n&&c.call(h.node,t)&&(h.node[t]=l.node),l.isLast=r==h.keys.length-1,l.isFirst=0==r,m.post&&m.post.call(h,l),o.pop()})),i.pop()),m.after&&m.after.call(h,h.node),h):h}(e).node}function r(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(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 s=r(o);return e.push(o),t.push(s),a(l(o),(function(e){s[e]=n(o[e])})),e.pop(),t.pop(),s}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 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(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: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=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:()=>jv,AlignmentToolbar:()=>Kv,Autocomplete:()=>ob,BlockAlignmentControl:()=>Kr,BlockAlignmentToolbar:()=>qr,BlockBreadcrumb:()=>cb,BlockColorsStyleSelector:()=>gb,BlockContextProvider:()=>pl,BlockControls:()=>so,BlockEdit:()=>fl,BlockEditorKeyboardShortcuts:()=>jy,BlockEditorProvider:()=>Yc,BlockFormatControls:()=>io,BlockIcon:()=>Wc,BlockInspector:()=>Hy,BlockList:()=>Gg,BlockMover:()=>lm,BlockNavigationDropdown:()=>Lb,BlockPreview:()=>yd,BlockSelectionClearer:()=>Xc,BlockSettingsMenu:()=>ug,BlockSettingsMenuControls:()=>lg,BlockStyles:()=>zb,BlockTitle:()=>$p,BlockToolbar:()=>bg,BlockTools:()=>Gy,BlockVerticalAlignmentControl:()=>pr,BlockVerticalAlignmentToolbar:()=>mr,ButtonBlockAppender:()=>Lp,ButtonBlockerAppender:()=>Rp,ColorPalette:()=>nk,ColorPaletteControl:()=>ok,ContrastChecker:()=>Ah,CopyHandler:()=>Hm,DefaultBlockAppender:()=>Pp,FontSizePicker:()=>Ef,InnerBlocks:()=>Fg,Inserter:()=>Np,InspectorAdvancedControls:()=>Ao,InspectorControls:()=>Do,JustifyContentControl:()=>fr,JustifyToolbar:()=>vr,LineHeightControl:()=>of,MediaPlaceholder:()=>F_,MediaReplaceFlow:()=>M_,MediaUpload:()=>T_,MediaUploadCheck:()=>N_,MultiSelectScrollIntoView:()=>Ky,NavigableToolbar:()=>Yp,ObserveTyping:()=>Qy,PanelColorSettings:()=>z_,PlainText:()=>my,RichText:()=>uy,RichTextShortcut:()=>fy,RichTextToolbarButton:()=>vy,SETTINGS_DEFAULTS:()=>v,SkipToSelectedBlock:()=>Ay,ToolSelector:()=>_y,Typewriter:()=>tE,URLInput:()=>Jk,URLInputButton:()=>Sy,URLPopover:()=>A_,Warning:()=>bl,WritingFlow:()=>pu,__experimentalBlockAlignmentMatrixControl:()=>sb,__experimentalBlockFullHeightAligmentControl:()=>lb,__experimentalBlockPatternSetup:()=>Qb,__experimentalBlockPatternsList:()=>Wd,__experimentalBlockVariationPicker:()=>Hb,__experimentalBlockVariationTransforms:()=>ek,__experimentalBorderRadiusControl:()=>oh,__experimentalColorGradientControl:()=>Nh,__experimentalColorGradientSettingsDropdown:()=>Lh,__experimentalDateFormatPicker:()=>ik,__experimentalDuotoneControl:()=>uv,__experimentalElementButtonClassName:()=>aE,__experimentalFontAppearanceControl:()=>nf,__experimentalFontFamilyControl:()=>gf,__experimentalGetBorderClassesAndStyles:()=>Bv,__experimentalGetColorClassesAndStyles:()=>xv,__experimentalGetGradientClass:()=>Eh,__experimentalGetGradientObjectByGradientValue:()=>Sh,__experimentalGetMatchingVariation:()=>cE,__experimentalGetSpacingClassesAndStyles:()=>Pv,__experimentalImageEditingProvider:()=>Mk,__experimentalImageEditor:()=>Gk,__experimentalImageSizeControl:()=>$k,__experimentalImageURLInputUI:()=>My,__experimentalInspectorPopoverHeader:()=>iE,__experimentalLayoutStyle:()=>Dr,__experimentalLetterSpacingControl:()=>Wf,__experimentalLibrary:()=>Wy,__experimentalLinkControl:()=>w_,__experimentalLinkControlSearchInput:()=>h_,__experimentalLinkControlSearchItem:()=>n_,__experimentalLinkControlSearchResults:()=>a_,__experimentalListView:()=>Mb,__experimentalPanelColorGradientSettings:()=>pk,__experimentalPreviewOptions:()=>Ry,__experimentalPublishDateTimePicker:()=>sE,__experimentalResponsiveBlockControl:()=>hy,__experimentalTextDecorationControl:()=>Mf,__experimentalTextTransformControl:()=>Vf,__experimentalUnitControl:()=>yy,__experimentalUseBlockOverlayActive:()=>ub,__experimentalUseBlockPreview:()=>Ed,__experimentalUseBorderProps:()=>Iv,__experimentalUseColorProps:()=>Nv,__experimentalUseCustomSides:()=>er,__experimentalUseGradient:()=>Bh,__experimentalUseMultipleOriginColorsAndGradients:()=>ch,__experimentalUseNoRecursiveRenders:()=>rE,__experimentalUseResizeCanvas:()=>Ly,__unstableBlockNameContext:()=>vg,__unstableBlockSettingsMenuFirstItem:()=>qm,__unstableBlockToolbarLastItem:()=>Am,__unstableEditorStyles:()=>vd,__unstableIframe:()=>hu,__unstableInserterMenuExtension:()=>kp,__unstablePresetDuotoneFilter:()=>_v,__unstableRichTextInputEvent:()=>by,__unstableUseBlockSelectionClearer:()=>Qc,__unstableUseClipboardHandler:()=>Vm,__unstableUseMouseMoveTypingReset:()=>Yy,__unstableUseTypewriter:()=>eE,__unstableUseTypingObserver:()=>Zy,createCustomColorsHOC:()=>Dv,getColorClassName:()=>sh,getColorObjectByAttributeValues:()=>lh,getColorObjectByColorValue:()=>ih,getFontSize:()=>kf,getFontSizeClass:()=>yf,getFontSizeObjectByValue:()=>_f,getGradientSlugByValue:()=>wh,getGradientValueBySlug:()=>Ch,getPxFromCssUnit:()=>kE,store:()=>Qn,storeConfig:()=>Zn,transformStyles:()=>gd,useBlockDisplayInformation:()=>Up,useBlockEditContext:()=>to,useBlockProps:()=>Rc,useCachedTruthy:()=>Mv,useInnerBlocksProps:()=>Og,useSetting:()=>So,withColorContext:()=>tk,withColors:()=>Ov,withFontSizes:()=>zv});var e={};n.r(e),n.d(e,{__experimentalGetActiveBlockIdByBlockNames:()=>Ot,__experimentalGetAllowedBlocks:()=>vt,__experimentalGetAllowedPatterns:()=>yt,__experimentalGetBlockListSettingsForBlocks:()=>It,__experimentalGetDirectInsertBlock:()=>bt,__experimentalGetGlobalBlocksByName:()=>J,__experimentalGetLastBlockAttributeChanges:()=>Nt,__experimentalGetParsedPattern:()=>kt,__experimentalGetPatternTransformItems:()=>Ct,__experimentalGetPatternsByBlockTypes:()=>Et,__experimentalGetReusableBlockTitle:()=>xt,__unstableGetBlockWithoutInnerBlocks:()=>j,__unstableGetClientIdWithClientIdsTree:()=>q,__unstableGetClientIdsTree:()=>Y,__unstableGetSelectedBlocksWithPartialSelection:()=>Me,__unstableGetVisibleBlocks:()=>Vt,__unstableIsFullySelected:()=>Te,__unstableIsLastBlockChangeIgnored:()=>Tt,__unstableIsSelectionCollapsed:()=>Ne,__unstableIsSelectionMergeable:()=>Pe,areInnerBlocksControlled:()=>Dt,canEditBlock:()=>st,canInsertBlockType:()=>tt,canInsertBlocks:()=>nt,canLockBlockType:()=>at,canMoveBlock:()=>lt,canMoveBlocks:()=>it,canRemoveBlock:()=>ot,canRemoveBlocks:()=>rt,didAutomaticChange:()=>Lt,getAdjacentBlockClientId:()=>he,getBlock:()=>$,getBlockAttributes:()=>W,getBlockCount:()=>te,getBlockHierarchyRootClientId:()=>me,getBlockIndex:()=>Le,getBlockInsertionPoint:()=>qe,getBlockListSettings:()=>St,getBlockMode:()=>He,getBlockName:()=>G,getBlockOrder:()=>Re,getBlockParents:()=>de,getBlockParentsByBlockName:()=>pe,getBlockRootClientId:()=>ue,getBlockSelectionEnd:()=>le,getBlockSelectionStart:()=>re,getBlockTransformItems:()=>ht,getBlocks:()=>K,getBlocksByClientId:()=>ee,getClientIdsOfDescendants:()=>Z,getClientIdsWithDescendants:()=>Q,getDraggedBlockClientIds:()=>We,getFirstMultiSelectedBlockClientId:()=>Ee,getGlobalBlockCount:()=>X,getInserterItems:()=>gt,getLastMultiSelectedBlockClientId:()=>Ce,getLowestCommonAncestorWithSelectedBlock:()=>ge,getMultiSelectedBlockClientIds:()=>_e,getMultiSelectedBlocks:()=>ye,getMultiSelectedBlocksEndClientId:()=>xe,getMultiSelectedBlocksStartClientId:()=>Ie,getNextBlockClientId:()=>ve,getPreviousBlockClientId:()=>fe,getSelectedBlock:()=>ce,getSelectedBlockClientId:()=>ae,getSelectedBlockClientIds:()=>ke,getSelectedBlockCount:()=>ie,getSelectedBlocksInitialCaretPosition:()=>be,getSelectionEnd:()=>oe,getSelectionStart:()=>ne,getSettings:()=>wt,getTemplate:()=>Qe,getTemplateLock:()=>Xe,hasBlockMovingClientId:()=>Rt,hasInserterItems:()=>ft,hasMultiSelection:()=>Fe,hasSelectedBlock:()=>se,hasSelectedInnerBlock:()=>De,isAncestorBeingDragged:()=>je,isAncestorMultiSelected:()=>Be,isBlockBeingDragged:()=>$e,isBlockHighlighted:()=>At,isBlockInsertionPointVisible:()=>Ye,isBlockMultiSelected:()=>we,isBlockSelected:()=>Ae,isBlockValid:()=>U,isBlockVisible:()=>zt,isBlockWithinSelection:()=>Oe,isCaretWithinFormattedText:()=>Ke,isDraggingBlocks:()=>Ue,isFirstMultiSelectedBlock:()=>Se,isLastBlockChangePersistent:()=>Bt,isMultiSelecting:()=>ze,isNavigationMode:()=>Mt,isSelectionEnabled:()=>Ve,isTyping:()=>Ge,isValidTemplate:()=>Ze,wasBlockJustInserted:()=>Ft});var t={};n.r(t),n.d(t,{__unstableDeleteSelection:()=>vn,__unstableExpandSelection:()=>kn,__unstableMarkAutomaticChange:()=>zn,__unstableMarkLastChangeAsPersistent:()=>On,__unstableMarkNextChangeAsNotPersistent:()=>Fn,__unstableSaveReusableBlock:()=>Dn,__unstableSplitSelection:()=>bn,clearSelectedBlock:()=>en,duplicateBlocks:()=>Gn,enterFormattedText:()=>Nn,exitFormattedText:()=>Pn,flashBlock:()=>jn,hideInsertionPoint:()=>gn,insertAfterBlock:()=>Wn,insertBeforeBlock:()=>Un,insertBlock:()=>dn,insertBlocks:()=>pn,insertDefaultBlock:()=>Rn,mergeBlocks:()=>yn,moveBlockToPosition:()=>un,moveBlocksDown:()=>sn,moveBlocksToPosition:()=>cn,moveBlocksUp:()=>an,multiSelect:()=>Jt,receiveBlocks:()=>$t,removeBlock:()=>Cn,removeBlocks:()=>En,replaceBlock:()=>rn,replaceBlocks:()=>on,replaceInnerBlocks:()=>Sn,resetBlocks:()=>Gt,resetSelection:()=>Wt,selectBlock:()=>qt,selectNextBlock:()=>Zt,selectPreviousBlock:()=>Yt,selectionChange:()=>Mn,setBlockMovingClientId:()=>Hn,setBlockVisibility:()=>qn,setHasControlledInnerBlocks:()=>Kn,setNavigationMode:()=>Vn,setTemplateValidity:()=>hn,showInsertionPoint:()=>mn,startDraggingBlocks:()=>xn,startMultiSelect:()=>Qt,startTyping:()=>Bn,stopDraggingBlocks:()=>Tn,stopMultiSelect:()=>Xt,stopTyping:()=>In,synchronizeTemplate:()=>fn,toggleBlockHighlight:()=>$n,toggleBlockMode:()=>wn,toggleSelection:()=>tn,updateBlock:()=>Kt,updateBlockAttributes:()=>jt,updateBlockListSettings:()=>Ln,updateSettings:()=>An,validateBlocksToTemplate:()=>Ut});const 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}).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}));const s=window.wp.element;var a=n(4403),c=n.n(a);const u=window.lodash,d=window.wp.compose,p=window.wp.components,m=window.wp.data,g={default:(0,p.createSlotFill)("BlockControls"),block:(0,p.createSlotFill)("BlockControlsBlock"),inline:(0,p.createSlotFill)("BlockFormatControls"),other:(0,p.createSlotFill)("BlockControlsOther"),parent:(0,p.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,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!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),...(0,u.castArray)(t),...e.slice(n)]}function k(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)}function _(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,_(r,o))})),n}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce(((e,n)=>Object.assign(e,{[n.clientId]:t},y(n.innerBlocks,n.clientId))),{})}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.identity;const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n[r.clientId]=t(r)}return n}function C(e){return E(e,(e=>(0,u.omit)(e,"attributes")))}function S(e){return E(e,(e=>e.attributes))}function w(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&(0,u.isEqual)(e.clientIds,t.clientIds)&&function(e,t){return(0,u.isEqual)((0,u.keys)(e),(0,u.keys)(t))}(e.attributes,t.attributes)}function B(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[t.clientId],innerBlocks:t.innerBlocks.map((e=>n[e.clientId]))});return n}function I(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 x=(0,u.flow)(m.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,u.mapValues)(t.attributes,((n,r)=>{const{name:l}=t.byClientId[r];return"core/block"===l&&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=B(o,n.blocks);o.tree=I(o,{...o.tree,...e},n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=I(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=I(o,{...o.tree,...e},n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=B(o,n.blocks);o.tree=I(o,{...(0,u.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=I(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=I(o,(0,u.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),n.toRootClientId&&e.push(n.toRootClientId),n.fromRootClientId&&n.fromRootClientId||e.push(""),o.tree=I(o,o.tree,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=I(o,o.tree,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=(0,u.keys)((0,u.omitBy)(o.attributes,((e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId)));o.tree=I(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 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,...(0,u.reduce)(o,((e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e)),{})}),l}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:C(n.blocks),attributes:S(n.blocks),order:_(n.blocks),parents:y(n.blocks),controlledInnerBlocks:{},visibility:{}},o=B(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 s;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(s=null==o?void 0:o.isPersistentChange)||void 0===s||s;return o.isPersistentChange===e?o:{...l,isPersistentChange:e}}return l={...l,isPersistentChange:i?!n:!w(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,...C(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=(0,u.omit)(t.updates,"attributes");return(0,u.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...(0,u.omit)(e,t.replacedClientIds),...C(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.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,...S(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)=>({...n,[o]:(0,u.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,((t,n,r)=>{var l,i;return n!==t[r]&&((t=(l=e[o])===(i=t)?{...l}:i)[r]=n),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,u.omit)(e,t.replacedClientIds),...S(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.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=_(t.blocks);return{...e,...(0,u.omit)(n,""),"":((null==e?void 0:e[""])||[]).concat(n[""])}}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=_(t.blocks,n),{index:l=o.length}=t;return{...e,...r,[n]:b(o,r[n],l)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:l=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:k(e[o],t,l,r.length)}}return{...e,[n]:(0,u.without)(e[n],...r),[o]:b(e[o],r,l)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=(0,u.first)(n),l=e[o];if(!l.length||r===(0,u.first)(l))return e;const i=l.indexOf(r);return{...e,[o]:k(l,i,i-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=(0,u.first)(n),l=(0,u.last)(n),i=e[o];if(!i.length||l===(0,u.last)(i))return e;const s=i.indexOf(r);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=_(t.blocks);return(0,u.flow)([e=>(0,u.omit)(e,t.replacedClientIds),e=>({...e,...(0,u.omit)(o,"")}),e=>(0,u.mapValues)(e,(e=>(0,u.reduce)(e,((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.flow)([e=>(0,u.omit)(e,t.removedClientIds),e=>(0,u.mapValues)(e,(e=>(0,u.without)(e,...t.removedClientIds)))])(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,...y(t.blocks)};case"INSERT_BLOCKS":return{...e,...y(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,u.omit)(e,t.replacedClientIds),...y(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.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},visibility(){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}});function T(){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,m.combineReducers)({blocks:x,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},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:s}=l;return{selectionStart:i,selectionEnd:s};case"MULTI_SELECT":const{start:a,end:c}=l;return a===(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:a},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:T(r.selectionStart,l),selectionEnd:T(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;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return 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,u.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?(0,u.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?(0,u.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:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};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;switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return 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:l}=n,i=(0,m.select)(r.store).getActiveBlockVariation(l,o);let s=null!=i&&i.name?`${l}/${i.name}`:l;const a={name:s};return"core/block"===l&&(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(e,t){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 null},isNavigationMode:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode: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_NAVIGATION_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":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}});var P={};function M(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 L(e,t){var n,o=t||M;function r(e){var t,o,r,l,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):(r=new WeakMap,s.set(o,r),s=r)}return s.has(P)||((l=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=a,s.set(P,l)),s.get(P)}function l(){n=new WeakMap}function i(){var t,n,l,i,s,a=arguments.length;for(i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];for((t=r(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=l,l(),i}const A=window.wp.primitives,D=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.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"})),O=window.wp.richText,F=window.wp.deprecated;var z=n.n(F);function V(e){const{multiline:t,__unstableMultilineWrapperTags:n,__unstablePreserveWhiteSpace:o}=e;return{multilineTag:t,multilineWrapperTags:n,preserveWhiteSpace:o}}const H=[];function G(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:r}=n;return r?`core/social-link-${r}`:o}return n?n.name:null}function U(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function W(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}function $(e,t){return e.blocks.byClientId[t]?e.blocks.tree[t]:null}const j=L(((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:W(e,t)}:null}),((e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]));function K(e,t){var n;const o=t&&Dt(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree[o])||void 0===n?void 0:n.innerBlocks)||H}const q=L(((e,t)=>({clientId:t,innerBlocks:Y(e,t)})),(e=>[e.blocks.order])),Y=L((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.map)(Re(e,t),(t=>q(e,t)))}),(e=>[e.blocks.order])),Z=L(((e,t)=>{const n=[];for(const o of t)for(const t of Re(e,o))n.push(t,...Z(e,[t]));return n}),(e=>[e.blocks.order])),Q=L((e=>{const t=[];for(const n of Re(e))t.push(n,...Z(e,[n]));return t}),(e=>[e.blocks.order])),X=L(((e,t)=>{const n=Q(e);return t?(0,u.reduce)(n,((n,o)=>e.blocks.byClientId[o].name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),J=L(((e,t)=>{if(!t)return H;const n=Q(e).filter((n=>e.blocks.byClientId[n].name===t));return n.length>0?n:H}),(e=>[e.blocks.order,e.blocks.byClientId])),ee=L(((e,t)=>(0,u.map)((0,u.castArray)(t),(t=>$(e,t)))),((e,t)=>(0,u.map)((0,u.castArray)(t),(t=>e.blocks.tree[t]))));function te(e,t){return Re(e,t).length}function ne(e){return e.selection.selectionStart}function oe(e){return e.selection.selectionEnd}function re(e){return e.selection.selectionStart.clientId}function le(e){return e.selection.selectionEnd.clientId}function ie(e){return _e(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 ae(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function ce(e){const t=ae(e);return t?$(e,t):null}function ue(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const de=L((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])),pe=L((function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=de(e,t,o);return(0,u.map)((0,u.filter)((0,u.map)(r,(t=>({id:t,name:G(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 me(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function ge(e,t){const n=ae(e),o=[...de(e,t),t],r=[...de(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=ae(e)),void 0===t&&(t=n<0?Ee(e):Ce(e)),!t)return null;const o=ue(e,t);if(null===o)return null;const{order:r}=e.blocks,l=r[o],i=l.indexOf(t),s=i+1*n;return s<0||s===l.length?null:l[s]}function fe(e,t){return he(e,t,-1)}function ve(e,t){return he(e,t,1)}function be(e){return e.initialPosition}const ke=L((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return H;if(t.clientId===n.clientId)return[t.clientId];const o=ue(e,t.clientId);if(null===o)return H;const r=Re(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 _e(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?H:ke(e)}const ye=L((e=>{const t=_e(e);return t.length?t.map((t=>$(e,t))):H}),(e=>[...ke.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Ee(e){return(0,u.first)(_e(e))||null}function Ce(e){return(0,u.last)(_e(e))||null}function Se(e,t){return Ee(e)===t}function we(e,t){return-1!==_e(e).indexOf(t)}const Be=L(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=ue(e,n),o=we(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Ie(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function xe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Te(e){const t=ne(e),n=oe(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Ne(e){const t=ne(e),n=oe(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function Pe(e,t){const n=ne(e),o=oe(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=ue(e,n.clientId);if(l!==ue(e,o.clientId))return!1;const i=Re(e,l);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=$(e,c);if(!(0,r.getBlockType)(d.name).merge)return!1;const p=$(e,u);if(p.name===d.name)return!0;const m=(0,r.switchToBlockType)(p,d.name);return m&&m.length}const Me=e=>{const t=ne(e),n=oe(e);if(t.clientId===n.clientId)return H;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return H;const o=ue(e,t.clientId);if(o!==ue(e,n.clientId))return H;const l=Re(e,o),i=l.indexOf(t.clientId),s=l.indexOf(n.clientId),[a,c]=i>s?[n,t]:[t,n],u=$(e,a.clientId),d=(0,r.getBlockType)(u.name),p=$(e,c.clientId),m=(0,r.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,O.create)({html:g,...V(f)}),k=(0,O.create)({html:h,...V(v)});return b=(0,O.remove)(b,0,a.offset),k=(0,O.remove)(k,c.offset,k.text.length),[{...u,attributes:{...u.attributes,[a.attributeKey]:(0,O.toHTMLString)({value:b,...V(f)})}},{...p,attributes:{...p.attributes,[c.attributeKey]:(0,O.toHTMLString)({value:k,...V(v)})}}]};function Re(e,t){return e.blocks.order[t||""]||H}function Le(e,t){return Re(e,ue(e,t)).indexOf(t)}function Ae(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function De(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,u.some)(Re(e,t),(t=>Ae(e,t)||we(e,t)||n&&De(e,t,n)))}function Oe(e,t){if(!t)return!1;const n=_e(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function Fe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function ze(e){return e.isMultiSelecting}function Ve(e){return e.isSelectionEnabled}function He(e,t){return e.blocksMode[t]||"visual"}function Ge(e){return e.isTyping}function Ue(e){return!!e.draggedBlocks.length}function We(e){return e.draggedBlocks}function $e(e,t){return e.draggedBlocks.includes(t)}function je(e,t){if(!Ue(e))return!1;const n=de(e,t);return(0,u.some)(n,(t=>$e(e,t)))}function Ke(){return z()('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:r}}=e;if(null!==o)return o;const{clientId:l}=r;return l?(t=ue(e,l)||void 0,n=Le(e,r.clientId)+1):n=Re(e).length,{rootClientId:t,index:n}}function Ye(e){return null!==e.insertionPoint}function Ze(e){return e.template.isValid}function Qe(e){return e.settings.template}function Xe(e,t){if(!t)return e.settings.templateLock;const n=St(e,t);return n?n.templateLock:null}const Je=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,u.isBoolean)(e)?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},et=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}=wt(e),s=Je(i,t,!0);if(!s)return!1;const a=!!Xe(e,o);if(a)return!1;const c=St(e,o);if(o&&void 0===c)return!1;const d=null==c?void 0:c.allowedBlocks,p=Je(d,t),m=n.parent,g=G(e,o),h=Je(m,g);let f=!0;const v=n.ancestor;if(v){const t=[o,...de(e,o)];f=(0,u.some)(t,(t=>Je(v,G(e,t))))}const b=f&&(null===p&&null===h||!0===p||!0===h);return b?(0,l.applyFilters)("blockEditor.__unstableCanInsertBlockType",b,n,o,{getBlock:$.bind(null,e),getBlockParentsByBlockName:pe.bind(null,e)}):b},tt=L(et,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]));function nt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>tt(e,G(e,t),n)))}function ot(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=W(e,t);if(null===o)return!0;const{lock:r}=o,l=!!Xe(e,n);return void 0===r||void 0===(null==r?void 0:r.remove)?!l:!(null!=r&&r.remove)}function rt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>ot(e,t,n)))}function lt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=W(e,t);if(null===o)return;const{lock:r}=o,l="all"===Xe(e,n);return void 0===r||void 0===(null==r?void 0:r.move)?!l:!(null!=r&&r.move)}function it(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>lt(e,t,n)))}function st(e,t){const n=W(e,t);if(null===n)return!0;const{lock:o}=n;return!(null!=o&&o.edit)}function at(e,t){var n;return!!(0,r.hasBlockSupport)(t,"lock",!0)&&!(null===(n=e.settings)||void 0===n||!n.canLockBlocks)}function ct(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 ut=(e,t,n)=>!!(0,r.hasBlockSupport)(t,"inserter",!0)&&et(e,t.name,n),dt=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:l=0}=ct(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:pt(r,l)}},pt=(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}},mt=(e,t)=>{let{buildScope:n="inserter"}=t;return t=>{const o=t.name;let l=!1;(0,r.hasBlockSupport)(t.name,"multiple",!0)||(l=(0,u.some)(ee(e,Q(e)),{name:t.name}));const{time:i,count:s=0}=ct(e,o)||{},a={id:o,name:t.name,title:t.title,icon:t.icon,isDisabled:l,frecency:pt(i,s)};if("transform"===n)return a;const c=(0,r.getBlockVariations)(t.name,"inserter");return{...a,initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:c,example:t.example,utility:1}}},gt=L((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=mt(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=D;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,l=(0,r.getBlockType)(t+o);l&&(n=l.icon)}}const l=`core/block/${t.id}`,{time:i,count:a=0}=ct(e,l)||{},c=pt(i,a);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=>ut(e,n,t))).map(n),a=et(e,"core/block",t)?Pt(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=dt(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,...a]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Pt(e),(0,r.getBlockTypes)()])),ht=L((function(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const l=(0,u.castArray)(t),[i]=l,s=mt(e,{buildScope:"transform"}),a=(0,r.getBlockTypes)().filter((t=>ut(e,t,o))).map(s),c=(0,u.mapKeys)(a,(e=>{let{name:t}=e;return 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 d=(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,u.orderBy)(d,(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)()])),ft=L((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=(0,u.some)((0,r.getBlockTypes)(),(n=>ut(e,n,t)));if(n)return!0;const o=et(e,"core/block",t)&&Pt(e).length>0;return o}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Pt(e),(0,r.getBlockTypes)()])),vt=L((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return(0,u.filter)((0,r.getBlockTypes)(),(n=>ut(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,r.getBlockTypes)()])),bt=L((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($(e,o))?r:null:r:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree[t]])),kt=L(((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])),_t=L((e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=wt(e);return t.filter((e=>{let{inserter:t=!0}=e;return!!t})).map((t=>{let{name:n}=t;return kt(e,n)})).filter((e=>{let{blocks:t}=e;return((e,t)=>{if((0,u.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!Je(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)}))}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes])),yt=L((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=_t(e),o=(0,u.filter)(n,(n=>{let{blocks:o}=n;return o.every((n=>{let{name:o}=n;return tt(e,o,t)}))}));return o}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]])),Et=L((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return H;const o=yt(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)=>[...yt.getDependants(e,t)])),Ct=L((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return H;if(t.some((t=>{let{clientId:n,innerBlocks:o}=t;return o.length||Dt(e,n)})))return H;const o=Array.from(new Set(t.map((e=>{let{name:t}=e;return t}))));return Et(e,o,n)}),((e,t)=>[...Et.getDependants(e,t)]));function St(e,t){return e.blockListSettings[t]}function wt(e){return e.settings}function Bt(e){return e.blocks.isPersistentChange}const It=L((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])),xt=L(((e,t)=>{var n;const o=(0,u.find)(Pt(e),(e=>e.id===t));return o?null===(n=o.title)||void 0===n?void 0:n.raw:null}),(e=>[Pt(e)]));function Tt(e){return e.blocks.isIgnoredChange}function Nt(e){return e.lastBlockAttributesChange}function Pt(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:H}function Mt(e){return e.isNavigationMode}function Rt(e){return e.hasBlockMovingClientId}function Lt(e){return!!e.automaticChangeStatus}function At(e,t){return e.highlightedBlock===t}function Dt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const Ot=L(((e,t)=>{if(!t.length)return null;const n=ae(e);if(t.includes(G(e,n)))return n;const o=_e(e),r=pe(e,n||o[0],t);return r?(0,u.last)(r):null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function Ft(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}function zt(e,t){var n,o;return null===(n=null===(o=e.blocks.visibility)||void 0===o?void 0:o[t])||void 0===n||n}const Vt=L((e=>new Set(Object.keys(e.blocks.visibility).filter((t=>e.blocks.visibility[t])))),(e=>[e.blocks.visibility])),Ht=window.wp.a11y,Gt=e=>t=>{let{dispatch:n}=t;n({type:"RESET_BLOCKS",blocks:e}),n(Ut(e))},Ut=e=>t=>{let{select:n,dispatch:o}=t;const l=n.getTemplate(),i=n.getTemplateLock(),s=!l||"all"!==i||(0,r.doBlocksMatchTemplate)(e,l);if(s!==n.isValidTemplate())return o.setTemplateValidity(s),s};function Wt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function $t(e){return z()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function jt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:(0,u.castArray)(e),attributes:t,uniqueByBlock:n}}function Kt(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function qt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Yt=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getPreviousBlockClientId(e);r&&o.selectBlock(r,-1)},Zt=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getNextBlockClientId(e);r&&o.selectBlock(r)};function Qt(){return{type:"START_MULTI_SELECT"}}function Xt(){return{type:"STOP_MULTI_SELECT"}}const Jt=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,Ht.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 en(){return{type:"CLEAR_SELECTED_BLOCK"}}function tn(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function nn(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,s=l[n];return{...e,attributes:{...i,className:`${o||""} is-style-${s}`.trim()}}}))}const on=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:s}=l;e=(0,u.castArray)(e),t=nn((0,u.castArray)(t),i.getSettings());const a=i.getBlockRootClientId((0,u.first)(e));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:r}),s((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 on(e,t)}const ln=e=>(t,n)=>o=>{let{select:r,dispatch:l}=o;r.canMoveBlocks(t,n)&&l({type:e,clientIds:(0,u.castArray)(t),rootClientId:n})},sn=ln("MOVE_BLOCKS_DOWN"),an=ln("MOVE_BLOCKS_UP"),cn=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 un(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 cn([e],t,n,o)}function dn(e,t,n,o,r){return pn([e],t,n,o,0,r)}const pn=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:s,dispatch:a}=i;(0,u.isObject)(r)&&(l=r,r=0,z()("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=nn((0,u.castArray)(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?r:null,meta:l})}};function mn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function gn(){return{type:"HIDE_INSERTION_POINT"}}function hn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const fn=()=>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)},vn=e=>t=>{let{registry:n,select:o,dispatch:l}=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 d,p;c.indexOf(i.clientId)>c.indexOf(s.clientId)?(d=s,p=i):(d=i,p=s);const m=e?p:d,g=o.getBlock(m.clientId),h=(0,r.getBlockType)(g.name);if(!h.merge)return;const f=d,v=p,b=o.getBlock(f.clientId),k=(0,r.getBlockType)(b.name),_=o.getBlock(v.clientId),y=(0,r.getBlockType)(_.name),E=b.attributes[f.attributeKey],C=_.attributes[v.attributeKey],S=k.attributes[f.attributeKey],w=y.attributes[v.attributeKey];let B=(0,O.create)({html:E,...V(S)}),I=(0,O.create)({html:C,...V(w)});B=(0,O.remove)(B,f.offset,B.text.length),I=(0,O.insert)(I,"",0,v.offset);const x=(0,r.cloneBlock)(b,{[f.attributeKey]:(0,O.toHTMLString)({value:B,...V(S)})}),T=(0,r.cloneBlock)(_,{[v.attributeKey]:(0,O.toHTMLString)({value:I,...V(w)})}),N=e?x:T,P=b.name===_.name?[N]:(0,r.switchToBlockType)(N,h.name);if(!P||!P.length)return;let M;if(e){const e=P.pop();M=h.merge(e.attributes,T.attributes)}else{const e=P.shift();M=h.merge(x.attributes,e.attributes)}const R=(0,u.findKey)(M,(e=>"string"==typeof e&&-1!==e.indexOf(""))),L=M[R],A=(0,O.create)({html:L,...V(h.attributes[R])}),D=A.text.indexOf(""),F=(0,O.remove)(A,D,D+1),z=(0,O.toHTMLString)({value:F,...V(h.attributes[R])});M[R]=z;const H=o.getSelectedBlockClientIds(),G=[...e?P:[],{...g,attributes:{...g.attributes,...M}},...e?[]:P];n.batch((()=>{l.selectionChange(g.clientId,R,D,D),l.replaceBlocks(H,G,0,o.getSelectedBlocksInitialCaretPosition())}))},bn=()=>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 s=t.getBlockOrder(i);let a,c;s.indexOf(o.clientId)>s.indexOf(l.clientId)?(a=l,c=o):(a=o,c=l);const u=a,d=c,p=t.getBlock(u.clientId),m=(0,r.getBlockType)(p.name),g=t.getBlock(d.clientId),h=(0,r.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,O.create)({html:f,...V(b)}),y=(0,O.create)({html:v,...V(k)});_=(0,O.remove)(_,u.offset,_.text.length),y=(0,O.remove)(y,0,d.offset),n.replaceBlocks(t.getSelectedBlockClientIds(),[{...p,attributes:{...p.attributes,[u.attributeKey]:(0,O.toHTMLString)({value:_,...V(b)})}},(0,r.createBlock)((0,r.getDefaultBlockName)()),{...g,attributes:{...g.attributes,[d.attributeKey]:(0,O.toHTMLString)({value:y,...V(k)})}}],1,t.getSelectedBlocksInitialCaretPosition())},kn=()=>e=>{let{select:t,dispatch:n}=e;const o=t.getSelectionStart(),r=t.getSelectionEnd();n.selectionChange({start:{clientId:o.clientId},end:{clientId:r.clientId}})},yn=(e,t)=>n=>{let{select:o,dispatch:l}=n;const i=[e,t];l({type:"MERGE_BLOCKS",blocks:i});const[s,a]=i,c=o.getBlock(s),d=(0,r.getBlockType)(c.name);if(d&&!d.merge)return void l.selectBlock(c.clientId);const p=o.getBlock(a),m=(0,r.getBlockType)(p.name),{clientId:g,attributeKey:h,offset:f}=o.getSelectionStart(),v=(g===s?d:m).attributes[h],b=(g===s||g===a)&&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,r.cloneBlock)(c),_=(0,r.cloneBlock)(p);if(b){const e=g===s?k:_,t=e.attributes[h],n=(0,O.insert)((0,O.create)({html:t,...V(v)}),"",f,f);e.attributes[h]=(0,O.toHTMLString)({value:n,...V(v)})}const y=c.name===p.name?[_]:(0,r.switchToBlockType)(_,c.name);if(!y||!y.length)return;const E=d.merge(k.attributes,y[0].attributes);if(b){const e=(0,u.findKey)(E,(e=>"string"==typeof e&&-1!==e.indexOf(""))),t=E[e],n=(0,O.create)({html:t,...V(d.attributes[e])}),o=n.text.indexOf(""),r=(0,O.remove)(n,o,o+1),i=(0,O.toHTMLString)({value:r,...V(d.attributes[e])});E[e]=i,l.selectionChange(c.clientId,e,o,o)}l.replaceBlocks([c.clientId,p.clientId],[{...c,attributes:{...c.attributes,...E}},...y.slice(1)],0)},En=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=(0,u.castArray)(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 Cn(e,t){return En([e],t)}function Sn(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 wn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Bn(){return{type:"START_TYPING"}}function In(){return{type:"STOP_TYPING"}}function xn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Tn(){return{type:"STOP_DRAGGING_BLOCKS"}}function Nn(){return z()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function Pn(){return z()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function Mn(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const Rn=(e,t,n)=>o=>{let{dispatch:l}=o;const i=(0,r.getDefaultBlockName)();if(!i)return;const s=(0,r.createBlock)(i,e);return l.insertBlock(s,n,t)};function Ln(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function An(e){return{type:"UPDATE_SETTINGS",settings:e}}function Dn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function On(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Fn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const zn=()=>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"})}))},Vn=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{dispatch:n}=t;n({type:"SET_NAVIGATION_MODE",isNavigationMode:e}),e?(0,Ht.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.")):(0,Ht.speak)((0,h.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}},Hn=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,Ht.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."))}},Gn=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((0,u.some)(i,(e=>!e)))return;if(i.map((e=>e.name)).some((e=>!(0,r.hasBlockSupport)(e,"multiple",!0))))return;const s=o.getBlockRootClientId(e[0]),a=o.getBlockIndex((0,u.last)((0,u.castArray)(e))),c=i.map((e=>(0,r.__experimentalCloneSanitizedBlock)(e)));return l.insertBlocks(c,a+1,s,t),c.length>1&&t&&l.multiSelect((0,u.first)(c).clientId,(0,u.last)(c).clientId),c.map((e=>e.clientId))}},Un=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)},Wn=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 $n(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const jn=e=>async t=>{let{dispatch:n}=t;n($n(e,!0)),await new Promise((e=>setTimeout(e,150))),n($n(e,!1))};function Kn(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function qn(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}const Yn="core/block-editor",Zn={reducer:N,selectors:e,actions:t},Qn=(0,m.createReduxStore)(Yn,{...Zn,persist:["preferences"]});(0,m.registerStore)(Yn,{...Zn,persist:["preferences"]});const Xn={name:"",isSelected:!1},Jn=(0,s.createContext)(Xn),{Provider:eo}=Jn;function to(){return(0,s.useContext)(Jn)}function no(){const{isSelected:e,clientId:t,name:n}=to();return(0,m.useSelect)((o=>{if(e)return!0;const{getBlockName:r,isFirstMultiSelectedBlock:l,getMultiSelectedBlockClientIds:i}=o(Qn);return!!l(t)&&i().every((e=>r(e)===n))}),[t,e,n])}function oo(e){let{group:t="default",controls:n,children:o,__experimentalShareWithChildBlocks:l=!1}=e;const i=function(e,t){const n=no(),{clientId:o}=to(),l=(0,m.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:l}=e(Qn),{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,s.createElement)(p.__experimentalStyleProvider,{document},(0,s.createElement)(i,null,(e=>{const r=(0,u.isEmpty)(e)?null:e;return(0,s.createElement)(p.__experimentalToolbarContext.Provider,{value:r},"default"===t&&(0,s.createElement)(p.ToolbarGroup,{controls:n}),o)}))):null}function ro(e){let{group:t="default",...n}=e;const o=(0,s.useContext)(p.__experimentalToolbarContext),r=g[t].Slot,l=(0,p.__experimentalUseSlot)(r.__unstableName);return Boolean(l.fills&&l.fills.length)?"default"===t?(0,s.createElement)(r,i({},n,{bubblesVirtually:!0,fillProps:o})):(0,s.createElement)(p.ToolbarGroup,null,(0,s.createElement)(r,i({},n,{bubblesVirtually:!0,fillProps:o}))):null}const lo=oo;lo.Slot=ro;const io=e=>(0,s.createElement)(oo,i({group:"inline"},e));io.Slot=e=>(0,s.createElement)(ro,i({group:"inline"},e));const so=lo,ao=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),co=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),uo=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),po=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),mo=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"})),go=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"}));function ho(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.split(",").map((e=>`.editor-styles-wrapper ${e} ${t}`)).join(",")}const fo=(0,s.createContext)({refs:new Map,callbacks:new Map});function vo(e){let{children:t}=e;const n=(0,s.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,s.createElement)(fo.Provider,{value:n},t)}function bo(e){const{refs:t,callbacks:n}=(0,s.useContext)(fo),o=(0,s.useRef)();return(0,s.useLayoutEffect)((()=>(t.set(o,e),()=>{t.delete(o)})),[e]),(0,d.useRefEffect)((t=>{o.current=t,n.forEach(((n,o)=>{e===n&&o(t)}))}),[e])}function ko(e){const{refs:t}=(0,s.useContext)(fo),n=(0,s.useRef)();return n.current=e,(0,s.useMemo)((()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}})),[])}function _o(e){const{callbacks:t}=(0,s.useContext)(fo),n=ko(e),[o,r]=(0,s.useState)(null);return(0,s.useLayoutEffect)((()=>{if(e)return t.set(r,e),()=>{t.delete(r)}}),[e]),n.current||o}const yo=["color","border","typography","spacing"],Eo={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0: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=>void 0===e.fontSizes?void 0: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},Co={"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.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"};function So(e){const{name:t,clientId:n}=to();return(0,m.useSelect)((o=>{if(yo.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let l;const i=(e=>Co[e]||e)(e);[...o(Qn).getBlockParents(n),n].forEach((e=>{const n=o(Qn).getBlockName(e);if((0,r.hasBlockSupport)(n,"__experimentalSettings",!1)){var s;const n=o(Qn).getBlockAttributes(e),r=null!==(s=(0,u.get)(n,`settings.blocks.${t}.${i}`))&&void 0!==s?s:(0,u.get)(n,`settings.${i}`);void 0!==r&&(l=r)}}));const s=o(Qn).getSettings();if(void 0===l){var a;const e=`__experimentalFeatures.${i}`,n=`__experimentalFeatures.blocks.${t}.${i}`;l=null!==(a=(0,u.get)(s,n))&&void 0!==a?a:(0,u.get)(s,e)}var c,d;if(void 0!==l)return r.__EXPERIMENTAL_PATHS_WITH_MERGE[i]?null!==(c=null!==(d=l.custom)&&void 0!==d?d:l.theme)&&void 0!==c?c:l.default:l;const p=Eo[i]?Eo[i](s):void 0;return void 0!==p?p:"typography.dropCap"===i||void 0}),[t,n,e])}window.wp.warning;const wo={default:(0,p.createSlotFill)("InspectorControls"),advanced:(0,p.createSlotFill)("InspectorAdvancedControls"),border:(0,p.createSlotFill)("InspectorControlsBorder"),color:(0,p.createSlotFill)("InspectorControlsColor"),dimensions:(0,p.createSlotFill)("InspectorControlsDimensions"),typography:(0,p.createSlotFill)("InspectorControlsTypography")};function Bo(e){var t;let{__experimentalGroup:n="default",children:o}=e;const r=no(),l=null===(t=wo[n])||void 0===t?void 0:t.Fill;return l?r?(0,s.createElement)(p.__experimentalStyleProvider,{document},(0,s.createElement)(l,null,(e=>{const t=(0,u.isEmpty)(e)?null:e;return(0,s.createElement)(p.__experimentalToolsPanelContext.Provider,{value:t},o)}))):null:("undefined"!=typeof process&&process.env,null)}const Io=e=>{if(!(0,u.isObject)(e)||Array.isArray(e))return e;const t=(0,u.pickBy)((0,u.mapValues)(e,Io),u.identity);return(0,u.isEmpty)(t)?void 0:t};function xo(e,t,n){return(0,u.setWith)(e?(0,u.clone)(e):{},t,n,u.clone)}function To(e,t,n,o,r,l){var i;if((0,u.every)(e,(e=>!e)))return n;if(1===l.length&&n.innerBlocks.length===o.length)return n;let s=null===(i=o[0])||void 0===i?void 0:i.attributes;if(l.length>1&&o.length>1){if(!o[r])return n;var a;s=null===(a=o[r])||void 0===a?void 0:a.attributes}let c=n;return(0,u.forEach)(e,((e,n)=>{e&&t[n].forEach((e=>{const t=(0,u.get)(s,e);t&&(c={...c,attributes:xo(c.attributes,e,t)})}))})),c}function No(e,t,n){const o=(0,r.getBlockSupport)(e,t),l=null==o?void 0:o.__experimentalSkipSerialization;return Array.isArray(l)?l.includes(n):l}function Po(e){let{children:t,group:n,label:o}=e;const{updateBlockAttributes:r}=(0,m.useDispatch)(Qn),{getBlockAttributes:l,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:a,hasMultiSelection:c}=(0,m.useSelect)(Qn),u=a(),d=(0,s.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},n=c()?i():[u];n.forEach((n=>{const{style:o}=l(n);let r={style:o};e.forEach((e=>{r={...r,...e(r)}})),r={...r,style:Io(r.style)},t[n]=r})),r(n,t,!0)}),[Io,l,i,c,u,r]);return(0,s.createElement)(p.__experimentalToolsPanel,{className:`${n}-block-support-panel`,label:o,resetAll:d,key:u,panelId:u,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},t)}function Mo(e){let{Slot:t,...n}=e;const o=(0,s.useContext)(p.__experimentalToolsPanelContext);return(0,s.createElement)(t,i({},n,{fillProps:o,bubblesVirtually:!0}))}function Ro(e){var t;let{__experimentalGroup:n="default",label:o,...r}=e;const l=null===(t=wo[n])||void 0===t?void 0:t.Slot,a=(0,p.__experimentalUseSlot)(null==l?void 0:l.__unstableName);return l&&a?Boolean(a.fills&&a.fills.length)?o?(0,s.createElement)(Po,{group:n,label:o},(0,s.createElement)(Mo,i({},r,{Slot:l}))):(0,s.createElement)(l,i({},r,{bubblesVirtually:!0})):null:("undefined"!=typeof process&&process.env,null)}const Lo=Bo;Lo.Slot=Ro;const Ao=e=>(0,s.createElement)(Bo,i({},e,{__experimentalGroup:"advanced"}));Ao.Slot=e=>(0,s.createElement)(Ro,i({},e,{__experimentalGroup:"advanced"})),Ao.slotName="InspectorAdvancedControls";const Do=Lo,Oo=window.wp.isShallowEqual;var Fo=n.n(Oo);const zo=function(e){return(0,d.useRefEffect)((t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}}),[e])};function Vo(e){let{clientId:t,bottomClientId:n,children:o,__unstableRefreshSize:r,__unstableCoverTarget:l=!1,__unstablePopoverSlot:a,__unstableContentRef:u,...d}=e;const m=_o(t),g=_o(null!=n?n:t),h=zo(u),f=(0,s.useMemo)((()=>m&&g===m?{position:"absolute",width:m.offsetWidth,height:m.offsetHeight}:{}),[m,g,r]);if(!m||n&&!g)return null;const v={top:m,bottom:g};return(0,s.createElement)(p.Popover,i({ref:h,animate:!1,position:"top right left",focusOnMount:!1,anchorRef:v,__unstableSlotName:a||null,__unstableObserveElement:m,__unstableForcePosition:!0,__unstableShift:!0},d,{className:c()("block-editor-block-popover",d.className)}),l&&(0,s.createElement)("div",{style:f},o),!l&&o)}function Ho(e){const t=(0,r.getBlockSupport)(e,Yo);return!!(!0===t||null!=t&&t.margin)}function Go(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!So("spacing.margin"),n=!tr(e,"margin");return!Ho(e)||t||n}function Uo(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,l=(0,p.__experimentalUseCustomUnits)({availableUnits:So("spacing.units")||["%","px","em","rem","vw"]}),i=er(n,"margin"),a=i&&i.some((e=>Qo.includes(e)));return Go(e)?null:s.Platform.select({web:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.margin,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,margin:e}};r({style:Io(t)})},label:(0,h.__)("Margin"),sides:i,units:l,allowReset:!1,splitOnAxis:a})),native:null})}function Wo(e){var t,n;let{clientId:o,attributes:r}=e;const l=null==r||null===(t=r.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.margin,i=(0,s.useMemo)((()=>{var e,t,n,o;return{borderTopWidth:null!==(e=null==l?void 0:l.top)&&void 0!==e?e:0,borderRightWidth:null!==(t=null==l?void 0:l.right)&&void 0!==t?t:0,borderBottomWidth:null!==(n=null==l?void 0:l.bottom)&&void 0!==n?n:0,borderLeftWidth:null!==(o=null==l?void 0:l.left)&&void 0!==o?o:0,top:null!=l&&l.top?`-${l.top}`:0,right:null!=l&&l.right?`-${l.right}`:0,bottom:null!=l&&l.bottom?`-${l.bottom}`:0,left:null!=l&&l.left?`-${l.left}`:0}}),[l]),[a,c]=(0,s.useState)(!1),u=(0,s.useRef)(l),d=(0,s.useRef)(),p=()=>{d.current&&window.clearTimeout(d.current)};return(0,s.useEffect)((()=>(Fo()(l,u.current)||(c(!0),u.current=l,p(),d.current=setTimeout((()=>{c(!1)}),400)),()=>p())),[l]),a?(0,s.createElement)(Vo,{clientId:o,__unstableCoverTarget:!0,__unstableRefreshSize:l},(0,s.createElement)("div",{className:"block-editor__padding-visualizer",style:i})):null}function $o(e){const t=(0,r.getBlockSupport)(e,Yo);return!!(!0===t||null!=t&&t.padding)}function jo(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!So("spacing.padding"),n=!tr(e,"padding");return!$o(e)||t||n}function Ko(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,l=(0,p.__experimentalUseCustomUnits)({availableUnits:So("spacing.units")||["%","px","em","rem","vw"]}),i=er(n,"padding"),a=i&&i.some((e=>Qo.includes(e)));return jo(e)?null:s.Platform.select({web:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.padding,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,padding:e}};r({style:Io(t)})},label:(0,h.__)("Padding"),sides:i,units:l,allowReset:!1,splitOnAxis:a})),native:null})}function qo(e){var t,n;let{clientId:o,attributes:r}=e;const l=null==r||null===(t=r.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding,i=(0,s.useMemo)((()=>{var e,t,n,o;return{borderTopWidth:null!==(e=null==l?void 0:l.top)&&void 0!==e?e:0,borderRightWidth:null!==(t=null==l?void 0:l.right)&&void 0!==t?t:0,borderBottomWidth:null!==(n=null==l?void 0:l.bottom)&&void 0!==n?n:0,borderLeftWidth:null!==(o=null==l?void 0:l.left)&&void 0!==o?o:0}}),[l]),[a,c]=(0,s.useState)(!1),u=(0,s.useRef)(l),d=(0,s.useRef)(),p=()=>{d.current&&window.clearTimeout(d.current)};return(0,s.useEffect)((()=>(Fo()(l,u.current)||(c(!0),u.current=l,p(),d.current=setTimeout((()=>{c(!1)}),400)),()=>p())),[l]),a?(0,s.createElement)(Vo,{clientId:o,__unstableCoverTarget:!0,__unstableRefreshSize:l},(0,s.createElement)("div",{className:"block-editor__padding-visualizer",style:i})):null}const Yo="spacing",Zo=["top","right","bottom","left"],Qo=["vertical","horizontal"];function Xo(e){const t=rr(e),n=jo(e),o=Go(e),l=Jo(e),i=(a=e.name,"web"===s.Platform.OS&&(nr(a)||$o(a)||Ho(a)));var a;if(l||!i)return null;const c=(0,r.getBlockSupport)(e.name,[Yo,"__experimentalDefaultControls"]),u=e=>t=>{var n;return{...t,style:{...t.style,spacing:{...null===(n=t.style)||void 0===n?void 0:n.spacing,[e]:void 0}}}};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Do,{__experimentalGroup:"dimensions"},!n&&(0,s.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding)}(e),label:(0,h.__)("Padding"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Io({...o,spacing:{...null==o?void 0:o.spacing,padding:void 0}})})}(e),resetAllFilter:u("padding"),isShownByDefault:null==c?void 0:c.padding,panelId:e.clientId},(0,s.createElement)(Ko,e)),!o&&(0,s.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.margin)}(e),label:(0,h.__)("Margin"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Io({...o,spacing:{...null==o?void 0:o.spacing,margin:void 0}})})}(e),resetAllFilter:u("margin"),isShownByDefault:null==c?void 0:c.margin,panelId:e.clientId},(0,s.createElement)(Uo,e)),!t&&(0,s.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.blockGap)}(e),label:(0,h.__)("Block spacing"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:{...o,spacing:{...null==o?void 0:o.spacing,blockGap:void 0}}})}(e),resetAllFilter:u("blockGap"),isShownByDefault:null==c?void 0:c.blockGap,panelId:e.clientId},(0,s.createElement)(lr,e))),!n&&(0,s.createElement)(qo,e),!o&&(0,s.createElement)(Wo,e))}const Jo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=rr(e),n=jo(e),o=Go(e);return t&&n&&o};function er(e,t){var n;const o=(0,r.getBlockSupport)(e,Yo);if(o&&"boolean"!=typeof o[t])return Array.isArray(o[t])?o[t]:null!==(n=o[t])&&void 0!==n&&n.sides?o[t].sides:void 0}function tr(e,t){const n=er(e,t);return!(n&&n.some((e=>Zo.includes(e)))&&n.some((e=>Qo.includes(e)))&&(console.warn(`The ${t} support for the "${e}" block can not be configured to support both axial and arbitrary sides.`),1))}function nr(e){const t=(0,r.getBlockSupport)(e,Yo);return!!(!0===t||null!=t&&t.blockGap)}function or(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:null==e?void 0:e.top,left:t?e:null==e?void 0:e.left}}function rr(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!So("spacing.blockGap");return!nr(e)||t}function lr(e){var t;const{clientId:n,attributes:{style:o},name:r,setAttributes:l}=e,i=(0,p.__experimentalUseCustomUnits)({availableUnits:So("spacing.units")||["%","px","em","rem","vw"]}),a=er(r,"blockGap"),c=ko(n);if(rr(e))return null;const u=a&&a.some((e=>Qo.includes(e))),d=e=>{var t;let n=e;e&&u&&(n={...or(e)});const r={...o,spacing:{...null==o?void 0:o.spacing,blockGap:n}};l({style:Io(r)});const i=(null===(t=window)||void 0===t?void 0:t.navigator.userAgent)&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome ")&&!window.navigator.userAgent.includes("Chromium ");var s;c.current&&i&&(null===(s=c.current.parentNode)||void 0===s||s.replaceChild(c.current,c.current))},m=or(null==o||null===(t=o.spacing)||void 0===t?void 0:t.blockGap),g=u?{...m,right:null==m?void 0:m.left,bottom:null==m?void 0:m.top}:null==m?void 0:m.top;return s.Platform.select({web:(0,s.createElement)(s.Fragment,null,u?(0,s.createElement)(p.__experimentalBoxControl,{label:(0,h.__)("Block spacing"),min:0,onChange:d,units:i,sides:a,values:g,allowReset:!1,splitOnAxis:u}):(0,s.createElement)(p.__experimentalUnitControl,{label:(0,h.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:d,units:i,value:g})),native:null})}const ir=(0,s.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(p.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),sr=(0,s.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(p.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),ar={top:{icon:(0,s.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(p.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:(0,h._x)("Align top","Block vertical alignment setting")},center:{icon:sr,title:(0,h._x)("Align middle","Block vertical alignment setting")},bottom:{icon:ir,title:(0,h._x)("Align bottom","Block vertical alignment setting")}},cr=["top","center","bottom"],ur={isAlternate:!0},dr=function(e){let{value:t,onChange:n,controls:o=cr,isCollapsed:r=!0,isToolbar:l}=e;const a=ar[t],c=ar.top,u=l?p.ToolbarGroup:p.ToolbarDropdownMenu,d=l?{isCollapsed:r}:{};return(0,s.createElement)(u,i({popoverProps:ur,icon:a?a.icon:c.icon,label:(0,h._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((e=>{return{...ar[e],isActive:t===e,role:r?"menuitemradio":void 0,onClick:(o=e,()=>n(t===o?void 0:o))};var o}))},d))},pr=e=>(0,s.createElement)(dr,i({},e,{isToolbar:!1})),mr=e=>(0,s.createElement)(dr,i({},e,{isToolbar:!0})),gr={left:ao,center:co,right:uo,"space-between":po},hr=function(e){let{allowedControls:t=["left","center","right","space-between"],isCollapsed:n=!0,onChange:o,value:r,popoverProps:l,isToolbar:a}=e;const c=e=>{o(e===r?void 0:e)},u=r?gr[r]:gr.left,d=[{name:"left",icon:ao,title:(0,h.__)("Justify items left"),isActive:"left"===r,onClick:()=>c("left")},{name:"center",icon:co,title:(0,h.__)("Justify items center"),isActive:"center"===r,onClick:()=>c("center")},{name:"right",icon:uo,title:(0,h.__)("Justify items right"),isActive:"right"===r,onClick:()=>c("right")},{name:"space-between",icon:po,title:(0,h.__)("Space between items"),isActive:"space-between"===r,onClick:()=>c("space-between")}],m=a?p.ToolbarGroup:p.ToolbarDropdownMenu,g=a?{isCollapsed:n}:{};return(0,s.createElement)(m,i({icon:u,popoverProps:l,label:(0,h.__)("Change items justification"),controls:d.filter((e=>t.includes(e.name)))},g))},fr=e=>(0,s.createElement)(hr,i({},e,{isToolbar:!1})),vr=e=>(0,s.createElement)(hr,i({},e,{isToolbar:!0})),br={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},kr={left:"flex-start",right:"flex-end",center:"center"},_r={top:"flex-start",center:"center",bottom:"flex-end"},yr=["wrap","nowrap"],Er={name:"flex",label:(0,h.__)("Flex"),inspectorControls:function(e){let{layout:t={},onChange:n,layoutBlockSupport:o={}}=e;const{allowOrientation:r=!0}=o;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.Flex,null,(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(Sr,{layout:t,onChange:n})),(0,s.createElement)(p.FlexItem,null,r&&(0,s.createElement)(Br,{layout:t,onChange:n}))),(0,s.createElement)(wr,{layout:t,onChange:n}))},toolBarControls:function(e){let{layout:t={},onChange:n,layoutBlockSupport:o}=e;if(null!=o&&o.allowSwitching)return null;const{allowVerticalAlignment:r=!0}=o;return(0,s.createElement)(so,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(Sr,{layout:t,onChange:n,isToolbar:!0}),r&&"vertical"!==(null==t?void 0:t.orientation)&&(0,s.createElement)(Cr,{layout:t,onChange:n,isToolbar:!0}))},save:function(e){var t,n;let{selector:o,layout:l,style:i,blockName:a}=e;const{orientation:c="horizontal"}=l,u=So("spacing.blockGap"),d=(0,r.getBlockSupport)(a,["spacing","blockGap","__experimentalDefault"])||"0.5em",p=null!==u,m=null!=i&&null!==(t=i.spacing)&&void 0!==t&&t.blockGap&&!No(a,"spacing","blockGap")?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";const n=or(e);if(!n)return null;const o=(null==n?void 0:n.top)||t,r=(null==n?void 0:n.left)||t;return o===r?o:`${o} ${r}`}(null==i||null===(n=i.spacing)||void 0===n?void 0:n.blockGap,d):`var( --wp--style--block-gap, ${d} )`,g=br[l.justifyContent]||br.left,h=yr.includes(l.flexWrap)?l.flexWrap:"wrap",f=`\n\t\tflex-direction: row;\n\t\talign-items: ${_r[l.verticalAlignment]||_r.center};\n\t\tjustify-content: ${g};\n\t\t`,v=`\n\t\tflex-direction: column;\n\t\talign-items: ${kr[l.justifyContent]||kr.left};\n\t\t`;return(0,s.createElement)("style",null,`\n\t\t\t\t${ho(o)} {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-wrap: ${h};\n\t\t\t\t\tgap: ${p?m:d};\n\t\t\t\t\t${"horizontal"===c?f:v}\n\t\t\t\t}\n\n\t\t\t\t${ho(o,"> *")} {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\t\t\t`)},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function Cr(e){let{layout:t,onChange:n,isToolbar:o=!1}=e;const{verticalAlignment:r=_r.center}=t,l=e=>{n({...t,verticalAlignment:e})};if(o)return(0,s.createElement)(pr,{onChange:l,value:r});const i=[{value:"flex-start",label:(0,h.__)("Align items top")},{value:"center",label:(0,h.__)("Align items center")},{value:"flex-end",label:(0,h.__)("Align items bottom")}];return(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,s.createElement)("legend",null,(0,h.__)("Vertical alignment")),(0,s.createElement)("div",null,i.map(((e,t,n)=>(0,s.createElement)(p.Button,{key:e,label:n,icon:t,isPressed:r===e,onClick:()=>l(e)})))))}function Sr(e){let{layout:t,onChange:n,isToolbar:o=!1}=e;const{justifyContent:r="left",orientation:l="horizontal"}=t,i=e=>{n({...t,justifyContent:e})},a=["left","center","right"];if("horizontal"===l&&a.push("space-between"),o)return(0,s.createElement)(fr,{allowedControls:a,value:r,onChange:i,popoverProps:{position:"bottom right",isAlternate:!0}});const c=[{value:"left",icon:ao,label:(0,h.__)("Justify items left")},{value:"center",icon:co,label:(0,h.__)("Justify items center")},{value:"right",icon:uo,label:(0,h.__)("Justify items right")}];return"horizontal"===l&&c.push({value:"space-between",icon:po,label:(0,h.__)("Space between items")}),(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-justification-controls"},(0,s.createElement)("legend",null,(0,h.__)("Justification")),(0,s.createElement)("div",null,c.map((e=>{let{value:t,icon:n,label:o}=e;return(0,s.createElement)(p.Button,{key:t,label:o,icon:n,isPressed:r===t,onClick:()=>i(t)})}))))}function wr(e){let{layout:t,onChange:n}=e;const{flexWrap:o="wrap"}=t;return(0,s.createElement)(p.ToggleControl,{label:(0,h.__)("Allow to wrap to multiple lines"),onChange:e=>{n({...t,flexWrap:e?"wrap":"nowrap"})},checked:"wrap"===o})}function Br(e){let{layout:t,onChange:n}=e;const{orientation:o="horizontal"}=t;return(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-orientation-controls"},(0,s.createElement)("legend",null,(0,h.__)("Orientation")),(0,s.createElement)(p.Button,{label:"horizontal",icon:mo,isPressed:"horizontal"===o,onClick:()=>n({...t,orientation:"horizontal"})}),(0,s.createElement)(p.Button,{label:"vertical",icon:go,isPressed:"vertical"===o,onClick:()=>n({...t,orientation:"vertical"})}))}const Ir=function(e){let{icon:t,size:n=24,...o}=e;return(0,s.cloneElement)(t,{width:n,height:n,...o})},xr=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"})),Tr=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),Nr=[{name:"default",label:(0,h.__)("Flow"),inspectorControls:function(e){let{layout:t,onChange:n}=e;const{wideSize:o,contentSize:r}=t,l=(0,p.__experimentalUseCustomUnits)({availableUnits:So("spacing.units")||["%","px","em","rem","vw"]});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,s.createElement)(p.__experimentalUnitControl,{label:(0,h.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,contentSize:e})},units:l}),(0,s.createElement)(Ir,{icon:xr})),(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,s.createElement)(p.__experimentalUnitControl,{label:(0,h.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,wideSize:e})},units:l}),(0,s.createElement)(Ir,{icon:Tr}))),(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},(0,s.createElement)(p.Button,{variant:"secondary",isSmall:!0,disabled:!r&&!o,onClick:()=>n({contentSize:void 0,wideSize:void 0,inherit:!1})},(0,h.__)("Reset"))),(0,s.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,h.__)("Customize the width for all elements that are assigned to the center or wide columns.")))},toolBarControls:function(){return null},save:function(e){var t;let{selector:n,layout:o={},style:r,blockName:l}=e;const{contentSize:i,wideSize:a}=o,c=null!==So("spacing.blockGap"),u=or(null==r||null===(t=r.spacing)||void 0===t?void 0:t.blockGap),d=null!=u&&u.top&&!No(l,"spacing","blockGap")?null==u?void 0:u.top:"var( --wp--style--block-gap )";let p=i||a?`\n\t\t\t\t\t${ho(n,"> :where(:not(.alignleft):not(.alignright))")} {\n\t\t\t\t\t\tmax-width: ${null!=i?i:a};\n\t\t\t\t\t\tmargin-left: auto !important;\n\t\t\t\t\t\tmargin-right: auto !important;\n\t\t\t\t\t}\n\t\t\t\t\t${ho(n,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=a?a:i};\n\t\t\t\t\t}\n\t\t\t\t\t${ho(n,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";return p+=`\n\t\t\t${ho(n,"> .alignleft")} {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-inline-start: 0;\n\t\t\t\tmargin-inline-end: 2em;\n\t\t\t}\n\t\t\t${ho(n,"> .alignright")} {\n\t\t\t\tfloat: right;\n\t\t\t\tmargin-inline-start: 2em;\n\t\t\t\tmargin-inline-end: 0;\n\t\t\t}\n\n\t\t\t${ho(n,"> .aligncenter")} {\n\t\t\t\tmargin-left: auto !important;\n\t\t\t\tmargin-right: auto !important;\n\t\t\t}\n\t\t`,c&&(p+=`\n\t\t\t\t${ho(n,"> *")} {\n\t\t\t\t\tmargin-block-start: 0;\n\t\t\t\t\tmargin-block-end: 0;\n\t\t\t\t}\n\t\t\t\t${ho(n,"> * + *")} {\n\t\t\t\t\tmargin-block-start: ${d};\n\t\t\t\t}\n\t\t\t`),(0,s.createElement)("style",null,p)},getOrientation:()=>"vertical",getAlignments(e){const t=function(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,h.sprintf)((0,h.__)("Max %s wide"),t)),r.test(n)&&(
|
6 |
// translators: %s: container size (i.e. 600px etc)
|
7 |
+
o.wide=(0,h.sprintf)((0,h.__)("Max %s wide"),n)),o}(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}},Er];function Pr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return Nr.find((t=>t.name===e))}const Mr={type:"default"},Rr=(0,s.createContext)(Mr),Lr=Rr.Provider;function Ar(){return(0,s.useContext)(Rr)}function Dr(e){let{layout:t={},...n}=e;const o=Pr(t.type);return o?(0,s.createElement)(o.save,i({layout:t},n)):null}const Or=["none","left","center","right","wide","full"],Fr=["wide","full"];function zr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Or;e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n}=(0,m.useSelect)((e=>{const{getSettings:t}=e(Qn),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout}}),[]),o=Ar(),r=Pr(null==o?void 0:o.type),l=r.getAlignments(o);if(n){const t=l.filter((t=>{let{name:n}=t;return e.includes(n)}));return 1===t.length&&"none"===t[0].name?[]:t}if("default"!==r.name)return[];const{alignments:i=Or}=o,s=e.filter((e=>(o.alignments||t||!Fr.includes(e))&&i.includes(e))).map((e=>({name:e})));return 1===s.length&&"none"===s[0].name?[]:s}const Vr=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),Hr=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),Gr=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),Ur=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),Wr={none:{icon:Vr,title:(0,h._x)("None","Alignment option")},left:{icon:Hr,title:(0,h.__)("Align left")},center:{icon:xr,title:(0,h.__)("Align center")},right:{icon:Gr,title:(0,h.__)("Align right")},wide:{icon:Tr,title:(0,h.__)("Wide width")},full:{icon:Ur,title:(0,h.__)("Full width")}},$r={isAlternate:!0},jr=function(e){let{value:t,onChange:n,controls:o,isToolbar:r,isCollapsed:l=!0}=e;const a=zr(o);if(!a.length)return null;function u(e){n([t,"none"].includes(e)?void 0:e)}const d=Wr[t],m=Wr.none,g=r?p.ToolbarGroup:p.ToolbarDropdownMenu,f={popoverProps:$r,icon:d?d.icon:m.icon,label:(0,h.__)("Align"),toggleProps:{describedBy:(0,h.__)("Change alignment")}},v=r?{isCollapsed:l,controls:a.map((e=>{let{name:n}=e;return{...Wr[n],isActive:t===n||!t&&"none"===n,role:l?"menuitemradio":void 0,onClick:()=>u(n)}}))}:{children:e=>{let{onClose:n}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},a.map((e=>{let{name:o,info:r}=e;const{icon:l,title:i}=Wr[o],a=o===t||!t&&"none"===o;return(0,s.createElement)(p.MenuItem,{key:o,icon:l,iconPosition:"left",className:c()("components-dropdown-menu__menu-item",{"is-active":a}),isSelected:a,onClick:()=>{u(o),n()},role:"menuitemradio",info:r},i)}))))}};return(0,s.createElement)(g,i({},f,v))},Kr=e=>(0,s.createElement)(jr,i({},e,{isToolbar:!1})),qr=e=>(0,s.createElement)(jr,i({},e,{isToolbar:!0})),Yr=["left","center","right","wide","full"],Zr=["wide","full"];function Qr(e){let t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?Yr.filter((t=>e.includes(t))):!0===e?[...Yr]:[],!o||!0===e&&!n?(0,u.without)(t,...Zr):t}const Xr=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n}=t,o=zr(Qr((0,r.getBlockSupport)(n,"align"),(0,r.hasBlockSupport)(n,"alignWide",!0))).map((e=>{let{name:t}=e;return t}));return(0,s.createElement)(s.Fragment,null,!!o.length&&(0,s.createElement)(so,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(Kr,{value:t.attributes.align,onChange:e=>{if(!e){var n,o;const l=(0,r.getBlockType)(t.name);(null==l||null===(n=l.attributes)||void 0===n||null===(o=n.align)||void 0===o?void 0:o.default)&&(e="")}t.setAttributes({align:e})},controls:o})),(0,s.createElement)(e,t))}),"withToolbarControls"),Jr=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{align:l}=o,a=zr(Qr((0,r.getBlockSupport)(n,"align"),(0,r.hasBlockSupport)(n,"alignWide",!0)));if(void 0===l)return(0,s.createElement)(e,t);let c=t.wrapperProps;return a.some((e=>e.name===l))&&(c={...c,"data-align":l}),(0,s.createElement)(e,i({},t,{wrapperProps:c}))}));(0,l.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return(0,u.has)(e.attributes,["align","type"])||(0,r.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Yr,""]}}),e})),(0,l.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Jr),(0,l.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Xr),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return Qr((0,r.getBlockSupport)(t,"align"),(0,r.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=c()(`align${o}`,e.className)),e})),(0,l.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){return(0,u.has)(e.attributes,["lock","type"])||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));const el=/[\s#]/g,tl={type:"string",source:"attribute",attribute:"id",selector:"*"},nl=(0,d.createHigherOrderComponent)((e=>t=>{if((0,r.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===s.Platform.OS,o=(0,s.createElement)(p.TextControl,{className:"html-anchor-control",label:(0,h.__)("HTML anchor"),help:(0,s.createElement)(s.Fragment,null,(0,h.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&(0,s.createElement)(p.ExternalLink,{href:(0,h.__)("https://wordpress.org/support/article/page-jumps/")},(0,h.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:(0,h.__)("Add an anchor"),onChange:e=>{e=e.replace(el,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),n&&(0,s.createElement)(Do,{__experimentalGroup:"advanced"},o),!n&&"core/heading"===t.name&&(0,s.createElement)(Do,null,(0,s.createElement)(p.PanelBody,{title:(0,h.__)("Heading settings")},o)))}return(0,s.createElement)(e,t)}),"withInspectorControl");(0,l.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return(0,u.has)(e.attributes,["anchor","type"])||(0,r.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:tl}),e})),(0,l.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",nl),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return(0,r.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const ol=(0,d.createHigherOrderComponent)((e=>t=>(0,r.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),(0,s.createElement)(Do,{__experimentalGroup:"advanced"},(0,s.createElement)(p.TextControl,{autoComplete:"off",label:(0,h.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:(0,h.__)("Separate multiple classes with spaces.")}))):(0,s.createElement)(e,t)),"withInspectorControl");(0,l.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return(0,r.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,l.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",ol),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return(0,r.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=c()(e.className,n.className)),e})),(0,l.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){if(!(0,r.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){var l;const o=null===(l=t[n])||void 0===l?void 0:l.attributes.className;if(o)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,r.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=(0,u.uniq)([(0,r.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=(0,r.getBlockDefaultClassName)(t.name)),e}));const rl="var:";function ll(e,t,n,o){const r=(0,u.get)(e,n);return r?[{selector:null==t?void 0:t.selector,key:o,value:sl(r)}]:[]}function il(e,t,n,o){const r=(0,u.get)(e,n);if(!r)return[];const l=[];if("string"==typeof r)l.push({selector:null==t?void 0:t.selector,key:o,value:r});else{const e=["top","right","bottom","left"].reduce(((e,n)=>{const l=(0,u.get)(r,[n]);return l&&e.push({selector:null==t?void 0:t.selector,key:`${o}${(0,u.upperFirst)(n)}`,value:l}),e}),[]);l.push(...e)}return l}function sl(e){return"string"==typeof e&&e.startsWith(rl)?`var(--wp--${e.slice(rl.length).split("|").join("--")})`:e}const al=[{name:"text",generate:(e,t)=>ll(e,t,["color","text"],"color")},{name:"gradient",generate:(e,t)=>ll(e,t,["color","gradient"],"background")},{name:"background",generate:(e,t)=>ll(e,t,["color","background"],"backgroundColor")},{name:"margin",generate:(e,t)=>il(e,t,["spacing","margin"],"margin")},{name:"padding",generate:(e,t)=>il(e,t,["spacing","padding"],"padding")},{name:"fontSize",generate:(e,t)=>ll(e,t,["typography","fontSize"],"fontSize")},{name:"fontStyle",generate:(e,t)=>ll(e,t,["typography","fontStyle"],"fontStyle")},{name:"fontWeight",generate:(e,t)=>ll(e,t,["typography","fontWeight"],"fontWeight")},{name:"letterSpacing",generate:(e,t)=>ll(e,t,["typography","letterSpacing"],"letterSpacing")},{name:"letterSpacing",generate:(e,t)=>ll(e,t,["typography","lineHeight"],"lineHeight")},{name:"textDecoration",generate:(e,t)=>ll(e,t,["typography","textDecoration"],"textDecoration")},{name:"textTransform",generate:(e,t)=>ll(e,t,["typography","textTransform"],"textTransform")}];function cl(e,t){const n=[];return al.forEach((o=>{"function"==typeof o.generate&&n.push(...o.generate(e,t))})),n}const ul=window.wp.dom,dl=(0,s.createContext)({});function pl(e){let{value:t,children:n}=e;const o=(0,s.useContext)(dl),r=(0,s.useMemo)((()=>({...o,...t})),[o,t]);return(0,s.createElement)(dl.Provider,{value:r,children:n})}const ml=dl,gl={},hl=(0,p.withFilters)("editor.BlockEdit")((e=>{const{attributes:t={},name:n}=e,o=(0,r.getBlockType)(n),l=(0,s.useContext)(ml),a=(0,s.useMemo)((()=>o&&o.usesContext?(0,u.pick)(l,o.usesContext):gl),[o,l]);if(!o)return null;const d=o.edit||o.save;if(o.apiVersion>1)return(0,s.createElement)(d,i({},e,{context:a}));const p=(0,r.hasBlockSupport)(o,"className",!0)?(0,r.getBlockDefaultClassName)(n):null,m=c()(p,t.className);return(0,s.createElement)(d,i({},e,{context:a,className:m}))}));function fl(e){const{name:t,isSelected:n,clientId:o}=e,r={name:t,isSelected:n,clientId:o};return(0,s.createElement)(eo,{value:(0,s.useMemo)((()=>r),Object.values(r))},(0,s.createElement)(hl,e))}const vl=(0,s.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(A.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})),bl=function(e){let{className:t,actions:n,children:o,secondaryActions:r}=e;return(0,s.createElement)("div",{style:{display:"contents",all:"initial"}},(0,s.createElement)("div",{className:c()(t,"block-editor-warning")},(0,s.createElement)("div",{className:"block-editor-warning__contents"},(0,s.createElement)("p",{className:"block-editor-warning__message"},o),(s.Children.count(n)>0||r)&&(0,s.createElement)("div",{className:"block-editor-warning__actions"},s.Children.count(n)>0&&s.Children.map(n,((e,t)=>(0,s.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),r&&(0,s.createElement)(p.DropdownMenu,{className:"block-editor-warning__secondary",icon:vl,label:(0,h.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,s.createElement)(p.MenuGroup,null,r.map(((e,t)=>(0,s.createElement)(p.MenuItem,{onClick:e.onClick,key:t},e.title))))))))))};var kl=n(1973);function _l(e){let{title:t,rawContent:n,renderedContent:o,action:r,actionText:l,className:i}=e;return(0,s.createElement)("div",{className:i},(0,s.createElement)("div",{className:"block-editor-block-compare__content"},(0,s.createElement)("h2",{className:"block-editor-block-compare__heading"},t),(0,s.createElement)("div",{className:"block-editor-block-compare__html"},n),(0,s.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,s.createElement)(s.RawHTML,null,(0,ul.safeHTML)(o)))),(0,s.createElement)("div",{className:"block-editor-block-compare__action"},(0,s.createElement)(p.Button,{variant:"secondary",tabIndex:"0",onClick:r},l)))}const yl=function(e){let{block:t,onKeep:n,onConvert:o,convertor:l,convertButtonText:i}=e;const a=(d=l(t),(0,u.castArray)(d).map((e=>(0,r.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var d;const p=(m=t.originalContent,g=a,(0,kl.Kx)(m,g).map(((e,t)=>{const n=c()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,s.createElement)("span",{key:t,className:n},e.value)})));var m,g;return(0,s.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,s.createElement)(_l,{title:(0,h.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:(0,h.__)("Convert to HTML"),rawContent:t.originalContent,renderedContent:t.originalContent}),(0,s.createElement)(_l,{title:(0,h.__)("After Conversion"),className:"block-editor-block-compare__converted",action:o,actionText:i,rawContent:p,renderedContent:a}))},El=e=>(0,r.rawHandler)({HTML:e.originalContent}),Cl=(0,d.compose)([(0,m.withSelect)(((e,t)=>{let{clientId:n}=t;return{block:e(Qn).getBlock(n)}})),(0,m.withDispatch)(((e,t)=>{let{block:n}=t;const{replaceBlock:o}=e(Qn);return{convertToClassic(){o(n.clientId,(e=>(0,r.createBlock)("core/freeform",{content:e.originalContent}))(n))},convertToHTML(){o(n.clientId,(e=>(0,r.createBlock)("core/html",{content:e.originalContent}))(n))},convertToBlocks(){o(n.clientId,El(n))},attemptBlockRecovery(){o(n.clientId,(e=>{let{name:t,attributes:n,innerBlocks:o}=e;return(0,r.createBlock)(t,n,o)})(n))}}}))])((function(e){let{convertToHTML:t,convertToBlocks:n,convertToClassic:o,attemptBlockRecovery:l,block:i}=e;const a=!!(0,r.getBlockType)("core/html"),[c,u]=(0,s.useState)(!1),d=(0,s.useCallback)((()=>u(!0)),[]),m=(0,s.useCallback)((()=>u(!1)),[]),g=(0,s.useMemo)((()=>[{
|
8 |
// translators: Button to fix block content
|
|
|
|