| @@ -45,12 +45,36 @@ | ||
| 45 | 45 | module.exports = window.ReactDOM; |
| 46 | 46 | } |
| 47 | 47 | }); |
| 48 | 48 | |
| 49 | - // vendor-external:react-dom/client | |
| 49 | + // node_modules/react-dom/client.js | |
| 50 | 50 | var require_client = __commonJS({ |
| 51 | - "vendor-external:react-dom/client"(exports, module) { | |
| 52 | - module.exports = window.ReactDOM; | |
| 51 | + "node_modules/react-dom/client.js"(exports) { | |
| 52 | + "use strict"; | |
| 53 | + var m = require_react_dom(); | |
| 54 | + if (false) { | |
| 55 | + exports.createRoot = m.createRoot; | |
| 56 | + exports.hydrateRoot = m.hydrateRoot; | |
| 57 | + } else { | |
| 58 | + i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | |
| 59 | + exports.createRoot = function(c, o) { | |
| 60 | + i.usingClientEntryPoint = true; | |
| 61 | + try { | |
| 62 | + return m.createRoot(c, o); | |
| 63 | + } finally { | |
| 64 | + i.usingClientEntryPoint = false; | |
| 65 | + } | |
| 66 | + }; | |
| 67 | + exports.hydrateRoot = function(c, h, o) { | |
| 68 | + i.usingClientEntryPoint = true; | |
| 69 | + try { | |
| 70 | + return m.hydrateRoot(c, h, o); | |
| 71 | + } finally { | |
| 72 | + i.usingClientEntryPoint = false; | |
| 73 | + } | |
| 74 | + }; | |
| 75 | + } | |
| 76 | + var i; | |
| 53 | 77 | } |
| 54 | 78 | }); |
| 55 | 79 | |
| 56 | 80 | // package-external:@wordpress/escape-html |
| @@ -160,9 +184,9 @@ | ||
| 160 | 184 | leadingTextStart, |
| 161 | 185 | children: [] |
| 162 | 186 | }; |
| 163 | 187 | } |
| 164 | - function createInterpolateElement(interpolatedString, conversionMap) { | |
| 188 | + var createInterpolateElement = (interpolatedString, conversionMap) => { | |
| 165 | 189 | indoc = interpolatedString; |
| 166 | 190 | offset = 0; |
| 167 | 191 | output = []; |
| 168 | 192 | stack = []; |
| @@ -174,9 +198,9 @@ | ||
| 174 | 198 | } |
| 175 | 199 | do { |
| 176 | 200 | } while (proceed(conversionMap)); |
| 177 | 201 | return (0, import_react.createElement)(import_react.Fragment, null, ...output); |
| 178 | - } | |
| 202 | + }; | |
| 179 | 203 | var isValidConversionMap = (conversionMap) => { |
| 180 | 204 | const isObject2 = typeof conversionMap === "object" && conversionMap !== null; |
| 181 | 205 | const values = isObject2 && Object.values(conversionMap); |
| 182 | 206 | return isObject2 && values.length > 0 && values.every((element) => (0, import_react.isValidElement)(element)); |