PluginProbe
Gutenberg / 23.3.0
Gutenberg v23.3.0
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / build / widgets / welcome / render.js

render.js in Gutenberg 23.3.0, at build/widgets/welcome/render.js

1,465 lines 64.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var __create = Object.create;
2 var __defProp = Object.defineProperty;
3 var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4 var __getOwnPropNames = Object.getOwnPropertyNames;
5 var __getProtoOf = Object.getPrototypeOf;
6 var __hasOwnProp = Object.prototype.hasOwnProperty;
7 var __commonJS = (cb, mod) => function __require() {
8 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9 };
10 var __copyProps = (to, from, except, desc) => {
11 if (from && typeof from === "object" || typeof from === "function") {
12 for (let key of __getOwnPropNames(from))
13 if (!__hasOwnProp.call(to, key) && key !== except)
14 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15 }
16 return to;
17 };
18 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19 // If the importer is in node compatibility mode or this is not an ESM
20 // file that has been converted to a CommonJS file using a Babel-
21 // compatible transform (i.e. "__esModule" has not been set), then set
22 // "default" to the CommonJS "module.exports" for node compatibility.
23 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24 mod
25 ));
26
27 // package-external:@wordpress/core-data
28 var require_core_data = __commonJS({
29 "package-external:@wordpress/core-data"(exports, module) {
30 module.exports = window.wp.coreData;
31 }
32 });
33
34 // package-external:@wordpress/data
35 var require_data = __commonJS({
36 "package-external:@wordpress/data"(exports, module) {
37 module.exports = window.wp.data;
38 }
39 });
40
41 // package-external:@wordpress/i18n
42 var require_i18n = __commonJS({
43 "package-external:@wordpress/i18n"(exports, module) {
44 module.exports = window.wp.i18n;
45 }
46 });
47
48 // package-external:@wordpress/element
49 var require_element = __commonJS({
50 "package-external:@wordpress/element"(exports, module) {
51 module.exports = window.wp.element;
52 }
53 });
54
55 // package-external:@wordpress/primitives
56 var require_primitives = __commonJS({
57 "package-external:@wordpress/primitives"(exports, module) {
58 module.exports = window.wp.primitives;
59 }
60 });
61
62 // vendor-external:react/jsx-runtime
63 var require_jsx_runtime = __commonJS({
64 "vendor-external:react/jsx-runtime"(exports, module) {
65 module.exports = window.ReactJSXRuntime;
66 }
67 });
68
69 // vendor-external:react
70 var require_react = __commonJS({
71 "vendor-external:react"(exports, module) {
72 module.exports = window.React;
73 }
74 });
75
76 // widgets/welcome/render.tsx
77 var import_core_data = __toESM(require_core_data());
78 var import_data = __toESM(require_data());
79 var import_i18n3 = __toESM(require_i18n());
80
81 // packages/icons/build-module/library/layout.mjs
82 var import_primitives = __toESM(require_primitives(), 1);
83 var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
84 var layout_default = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { 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" }) });
85
86 // packages/icons/build-module/library/pencil.mjs
87 var import_primitives2 = __toESM(require_primitives(), 1);
88 var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
89 var pencil_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z" }) });
90
91 // packages/icons/build-module/library/styles.mjs
92 var import_primitives3 = __toESM(require_primitives(), 1);
93 var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
94 var styles_default = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z" }) });
95
96 // node_modules/clsx/dist/clsx.mjs
97 function r(e) {
98 var t, f, n = "";
99 if ("string" == typeof e || "number" == typeof e) n += e;
100 else if ("object" == typeof e) if (Array.isArray(e)) {
101 var o = e.length;
102 for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
103 } else for (f in e) e[f] && (n && (n += " "), n += f);
104 return n;
105 }
106 function clsx() {
107 for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
108 return n;
109 }
110 var clsx_default = clsx;
111
112 // node_modules/@base-ui/utils/esm/useRefWithInit.js
113 var React = __toESM(require_react(), 1);
114 var UNINITIALIZED = {};
115 function useRefWithInit(init, initArg) {
116 const ref = React.useRef(UNINITIALIZED);
117 if (ref.current === UNINITIALIZED) {
118 ref.current = init(initArg);
119 }
120 return ref;
121 }
122
123 // node_modules/@base-ui/utils/esm/warn.js
124 var set;
125 if (true) {
126 set = /* @__PURE__ */ new Set();
127 }
128 function warn(...messages) {
129 if (true) {
130 const messageKey = messages.join(" ");
131 if (!set.has(messageKey)) {
132 set.add(messageKey);
133 console.warn(`Base UI: ${messageKey}`);
134 }
135 }
136 }
137
138 // node_modules/@base-ui/react/esm/internals/useRenderElement.js
139 var React4 = __toESM(require_react(), 1);
140
141 // node_modules/@base-ui/utils/esm/useMergedRefs.js
142 function useMergedRefs(a, b, c, d) {
143 const forkRef = useRefWithInit(createForkRef).current;
144 if (didChange(forkRef, a, b, c, d)) {
145 update(forkRef, [a, b, c, d]);
146 }
147 return forkRef.callback;
148 }
149 function useMergedRefsN(refs) {
150 const forkRef = useRefWithInit(createForkRef).current;
151 if (didChangeN(forkRef, refs)) {
152 update(forkRef, refs);
153 }
154 return forkRef.callback;
155 }
156 function createForkRef() {
157 return {
158 callback: null,
159 cleanup: null,
160 refs: []
161 };
162 }
163 function didChange(forkRef, a, b, c, d) {
164 return forkRef.refs[0] !== a || forkRef.refs[1] !== b || forkRef.refs[2] !== c || forkRef.refs[3] !== d;
165 }
166 function didChangeN(forkRef, newRefs) {
167 return forkRef.refs.length !== newRefs.length || forkRef.refs.some((ref, index) => ref !== newRefs[index]);
168 }
169 function update(forkRef, refs) {
170 forkRef.refs = refs;
171 if (refs.every((ref) => ref == null)) {
172 forkRef.callback = null;
173 return;
174 }
175 forkRef.callback = (instance) => {
176 if (forkRef.cleanup) {
177 forkRef.cleanup();
178 forkRef.cleanup = null;
179 }
180 if (instance != null) {
181 const cleanupCallbacks = Array(refs.length).fill(null);
182 for (let i = 0; i < refs.length; i += 1) {
183 const ref = refs[i];
184 if (ref == null) {
185 continue;
186 }
187 switch (typeof ref) {
188 case "function": {
189 const refCleanup = ref(instance);
190 if (typeof refCleanup === "function") {
191 cleanupCallbacks[i] = refCleanup;
192 }
193 break;
194 }
195 case "object": {
196 ref.current = instance;
197 break;
198 }
199 default:
200 }
201 }
202 forkRef.cleanup = () => {
203 for (let i = 0; i < refs.length; i += 1) {
204 const ref = refs[i];
205 if (ref == null) {
206 continue;
207 }
208 switch (typeof ref) {
209 case "function": {
210 const cleanupCallback = cleanupCallbacks[i];
211 if (typeof cleanupCallback === "function") {
212 cleanupCallback();
213 } else {
214 ref(null);
215 }
216 break;
217 }
218 case "object": {
219 ref.current = null;
220 break;
221 }
222 default:
223 }
224 }
225 };
226 }
227 };
228 }
229
230 // node_modules/@base-ui/utils/esm/getReactElementRef.js
231 var React3 = __toESM(require_react(), 1);
232
233 // node_modules/@base-ui/utils/esm/reactVersion.js
234 var React2 = __toESM(require_react(), 1);
235 var majorVersion = parseInt(React2.version, 10);
236 function isReactVersionAtLeast(reactVersionToCheck) {
237 return majorVersion >= reactVersionToCheck;
238 }
239
240 // node_modules/@base-ui/utils/esm/getReactElementRef.js
241 function getReactElementRef(element) {
242 if (!/* @__PURE__ */ React3.isValidElement(element)) {
243 return null;
244 }
245 const reactElement = element;
246 const propsWithRef = reactElement.props;
247 return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null;
248 }
249
250 // node_modules/@base-ui/utils/esm/mergeObjects.js
251 function mergeObjects(a, b) {
252 if (a && !b) {
253 return a;
254 }
255 if (!a && b) {
256 return b;
257 }
258 if (a || b) {
259 return {
260 ...a,
261 ...b
262 };
263 }
264 return void 0;
265 }
266
267 // node_modules/@base-ui/utils/esm/empty.js
268 var EMPTY_ARRAY = Object.freeze([]);
269 var EMPTY_OBJECT = Object.freeze({});
270
271 // node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js
272 function getStateAttributesProps(state, customMapping) {
273 const props = {};
274 for (const key in state) {
275 const value = state[key];
276 if (customMapping?.hasOwnProperty(key)) {
277 const customProps = customMapping[key](value);
278 if (customProps != null) {
279 Object.assign(props, customProps);
280 }
281 continue;
282 }
283 if (value === true) {
284 props[`data-${key.toLowerCase()}`] = "";
285 } else if (value) {
286 props[`data-${key.toLowerCase()}`] = value.toString();
287 }
288 }
289 return props;
290 }
291
292 // node_modules/@base-ui/react/esm/utils/resolveClassName.js
293 function resolveClassName(className, state) {
294 return typeof className === "function" ? className(state) : className;
295 }
296
297 // node_modules/@base-ui/react/esm/utils/resolveStyle.js
298 function resolveStyle(style, state) {
299 return typeof style === "function" ? style(state) : style;
300 }
301
302 // node_modules/@base-ui/react/esm/merge-props/mergeProps.js
303 var EMPTY_PROPS = {};
304 function mergeProps(a, b, c, d, e) {
305 if (!c && !d && !e && !a) {
306 return createInitialMergedProps(b);
307 }
308 let merged = createInitialMergedProps(a);
309 if (b) {
310 merged = mergeInto(merged, b);
311 }
312 if (c) {
313 merged = mergeInto(merged, c);
314 }
315 if (d) {
316 merged = mergeInto(merged, d);
317 }
318 if (e) {
319 merged = mergeInto(merged, e);
320 }
321 return merged;
322 }
323 function mergePropsN(props) {
324 if (props.length === 0) {
325 return EMPTY_PROPS;
326 }
327 if (props.length === 1) {
328 return createInitialMergedProps(props[0]);
329 }
330 let merged = createInitialMergedProps(props[0]);
331 for (let i = 1; i < props.length; i += 1) {
332 merged = mergeInto(merged, props[i]);
333 }
334 return merged;
335 }
336 function createInitialMergedProps(inputProps) {
337 if (isPropsGetter(inputProps)) {
338 return {
339 ...resolvePropsGetter(inputProps, EMPTY_PROPS)
340 };
341 }
342 return copyInitialProps(inputProps);
343 }
344 function mergeInto(merged, inputProps) {
345 if (isPropsGetter(inputProps)) {
346 return resolvePropsGetter(inputProps, merged);
347 }
348 return mutablyMergeInto(merged, inputProps);
349 }
350 function copyInitialProps(inputProps) {
351 const copiedProps = {
352 ...inputProps
353 };
354 for (const propName in copiedProps) {
355 const propValue = copiedProps[propName];
356 if (isEventHandler(propName, propValue)) {
357 copiedProps[propName] = wrapEventHandler(propValue);
358 }
359 }
360 return copiedProps;
361 }
362 function mutablyMergeInto(mergedProps, externalProps) {
363 if (!externalProps) {
364 return mergedProps;
365 }
366 for (const propName in externalProps) {
367 const externalPropValue = externalProps[propName];
368 switch (propName) {
369 case "style": {
370 mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue);
371 break;
372 }
373 case "className": {
374 mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue);
375 break;
376 }
377 default: {
378 if (isEventHandler(propName, externalPropValue)) {
379 mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue);
380 } else {
381 mergedProps[propName] = externalPropValue;
382 }
383 }
384 }
385 }
386 return mergedProps;
387 }
388 function isEventHandler(key, value) {
389 const code0 = key.charCodeAt(0);
390 const code1 = key.charCodeAt(1);
391 const code2 = key.charCodeAt(2);
392 return code0 === 111 && code1 === 110 && code2 >= 65 && code2 <= 90 && (typeof value === "function" || typeof value === "undefined");
393 }
394 function isPropsGetter(inputProps) {
395 return typeof inputProps === "function";
396 }
397 function resolvePropsGetter(inputProps, previousProps) {
398 if (isPropsGetter(inputProps)) {
399 return inputProps(previousProps);
400 }
401 return inputProps ?? EMPTY_PROPS;
402 }
403 function mergeEventHandlers(ourHandler, theirHandler) {
404 if (!theirHandler) {
405 return ourHandler;
406 }
407 if (!ourHandler) {
408 return wrapEventHandler(theirHandler);
409 }
410 return (...args) => {
411 const event = args[0];
412 if (isSyntheticEvent(event)) {
413 const baseUIEvent = event;
414 makeEventPreventable(baseUIEvent);
415 const result2 = theirHandler(...args);
416 if (!baseUIEvent.baseUIHandlerPrevented) {
417 ourHandler?.(...args);
418 }
419 return result2;
420 }
421 const result = theirHandler(...args);
422 ourHandler?.(...args);
423 return result;
424 };
425 }
426 function wrapEventHandler(handler) {
427 if (!handler) {
428 return handler;
429 }
430 return (...args) => {
431 const event = args[0];
432 if (isSyntheticEvent(event)) {
433 makeEventPreventable(event);
434 }
435 return handler(...args);
436 };
437 }
438 function makeEventPreventable(event) {
439 event.preventBaseUIHandler = () => {
440 event.baseUIHandlerPrevented = true;
441 };
442 return event;
443 }
444 function mergeClassNames(ourClassName, theirClassName) {
445 if (theirClassName) {
446 if (ourClassName) {
447 return theirClassName + " " + ourClassName;
448 }
449 return theirClassName;
450 }
451 return ourClassName;
452 }
453 function isSyntheticEvent(event) {
454 return event != null && typeof event === "object" && "nativeEvent" in event;
455 }
456
457 // node_modules/@base-ui/react/esm/internals/useRenderElement.js
458 var import_react = __toESM(require_react(), 1);
459 function useRenderElement(element, componentProps, params = {}) {
460 const renderProp = componentProps.render;
461 const outProps = useRenderElementProps(componentProps, params);
462 if (params.enabled === false) {
463 return null;
464 }
465 const state = params.state ?? EMPTY_OBJECT;
466 return evaluateRenderProp(element, renderProp, outProps, state);
467 }
468 function useRenderElementProps(componentProps, params = {}) {
469 const {
470 className: classNameProp,
471 style: styleProp,
472 render: renderProp
473 } = componentProps;
474 const {
475 state = EMPTY_OBJECT,
476 ref,
477 props,
478 stateAttributesMapping,
479 enabled = true
480 } = params;
481 const className = enabled ? resolveClassName(classNameProp, state) : void 0;
482 const style = enabled ? resolveStyle(styleProp, state) : void 0;
483 const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping) : EMPTY_OBJECT;
484 const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : void 0;
485 const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;
486 if (typeof document !== "undefined") {
487 if (!enabled) {
488 useMergedRefs(null, null);
489 } else if (Array.isArray(ref)) {
490 outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);
491 } else {
492 outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);
493 }
494 }
495 if (!enabled) {
496 return EMPTY_OBJECT;
497 }
498 if (className !== void 0) {
499 outProps.className = mergeClassNames(outProps.className, className);
500 }
501 if (style !== void 0) {
502 outProps.style = mergeObjects(outProps.style, style);
503 }
504 return outProps;
505 }
506 function resolveRenderFunctionProps(props) {
507 if (Array.isArray(props)) {
508 return mergePropsN(props);
509 }
510 return mergeProps(void 0, props);
511 }
512 var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
513 var COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;
514 var LOWERCASE_CHARACTER_PATTERN = /[a-z]/;
515 function evaluateRenderProp(element, render, props, state) {
516 if (render) {
517 if (typeof render === "function") {
518 if (true) {
519 warnIfRenderPropLooksLikeComponent(render);
520 }
521 return render(props, state);
522 }
523 const mergedProps = mergeProps(props, render.props);
524 mergedProps.ref = props.ref;
525 let newElement = render;
526 if (newElement?.$$typeof === REACT_LAZY_TYPE) {
527 const children = React4.Children.toArray(render);
528 newElement = children[0];
529 }
530 if (true) {
531 if (!/* @__PURE__ */ React4.isValidElement(newElement)) {
532 throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.", "A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.", "https://base-ui.com/r/invalid-render-prop"].join("\n"));
533 }
534 }
535 return /* @__PURE__ */ React4.cloneElement(newElement, mergedProps);
536 }
537 if (element) {
538 if (typeof element === "string") {
539 return renderTag(element, props);
540 }
541 }
542 throw new Error(true ? "Base UI: Render element or function are not defined." : formatErrorMessage_default(8));
543 }
544 function warnIfRenderPropLooksLikeComponent(renderFn) {
545 const functionName = renderFn.name;
546 if (functionName.length === 0) {
547 return;
548 }
549 if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) {
550 return;
551 }
552 if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) {
553 return;
554 }
555 warn(`The \`render\` prop received a function named \`${functionName}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
556 }
557 function renderTag(Tag, props) {
558 if (Tag === "button") {
559 return /* @__PURE__ */ (0, import_react.createElement)("button", {
560 type: "button",
561 ...props,
562 key: props.key
563 });
564 }
565 if (Tag === "img") {
566 return /* @__PURE__ */ (0, import_react.createElement)("img", {
567 alt: "",
568 ...props,
569 key: props.key
570 });
571 }
572 return /* @__PURE__ */ React4.createElement(Tag, props);
573 }
574
575 // node_modules/@base-ui/react/esm/use-render/useRender.js
576 function useRender(params) {
577 return useRenderElement(params.defaultTagName ?? "div", params, params);
578 }
579
580 // packages/ui/build-module/text/text.mjs
581 var import_element = __toESM(require_element(), 1);
582 var STYLE_HASH_ATTRIBUTE = "data-wp-hash";
583 function getRuntime() {
584 const globalScope = globalThis;
585 if (globalScope.__wpStyleRuntime) {
586 return globalScope.__wpStyleRuntime;
587 }
588 globalScope.__wpStyleRuntime = {
589 documents: /* @__PURE__ */ new Map(),
590 styles: /* @__PURE__ */ new Map(),
591 injectedStyles: /* @__PURE__ */ new WeakMap()
592 };
593 if (typeof document !== "undefined") {
594 registerDocument(document);
595 }
596 return globalScope.__wpStyleRuntime;
597 }
598 function documentContainsStyleHash(targetDocument, hash) {
599 if (!targetDocument.head) {
600 return false;
601 }
602 for (const style of targetDocument.head.querySelectorAll(
603 `style[${STYLE_HASH_ATTRIBUTE}]`
604 )) {
605 if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {
606 return true;
607 }
608 }
609 return false;
610 }
611 function injectStyle(targetDocument, hash, css) {
612 if (!targetDocument.head) {
613 return;
614 }
615 const runtime = getRuntime();
616 let injectedStyles = runtime.injectedStyles.get(targetDocument);
617 if (!injectedStyles) {
618 injectedStyles = /* @__PURE__ */ new Set();
619 runtime.injectedStyles.set(targetDocument, injectedStyles);
620 }
621 if (injectedStyles.has(hash)) {
622 return;
623 }
624 if (documentContainsStyleHash(targetDocument, hash)) {
625 injectedStyles.add(hash);
626 return;
627 }
628 const style = targetDocument.createElement("style");
629 style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);
630 style.appendChild(targetDocument.createTextNode(css));
631 targetDocument.head.appendChild(style);
632 injectedStyles.add(hash);
633 }
634 function registerDocument(targetDocument) {
635 const runtime = getRuntime();
636 runtime.documents.set(
637 targetDocument,
638 (runtime.documents.get(targetDocument) ?? 0) + 1
639 );
640 for (const [hash, css] of runtime.styles) {
641 injectStyle(targetDocument, hash, css);
642 }
643 return () => {
644 const count = runtime.documents.get(targetDocument);
645 if (count === void 0) {
646 return;
647 }
648 if (count <= 1) {
649 runtime.documents.delete(targetDocument);
650 return;
651 }
652 runtime.documents.set(targetDocument, count - 1);
653 };
654 }
655 function registerStyle(hash, css) {
656 const runtime = getRuntime();
657 runtime.styles.set(hash, css);
658 for (const targetDocument of runtime.documents.keys()) {
659 injectStyle(targetDocument, hash, css);
660 }
661 }
662 if (typeof process === "undefined" || true) {
663 registerStyle("0c8601dd83", '@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}');
664 }
665 var style_default = { "text": "_83ed8a8da5dd50ea__text", "heading-2xl": "_14437cfb77831647__heading-2xl", "heading-xl": "_3c78b7fa9b4072dd__heading-xl", "heading-lg": "aa58f227716bcde2__heading-lg", "heading-md": "fc4da56d8dfe52c4__heading-md", "heading-sm": "a9b78c7c82e8dff7__heading-sm", "body-xl": "_305ff559e52180d5__body-xl", "body-lg": "ca1aa3fc2029e958__body-lg", "body-md": "_131101940be12424__body-md", "body-sm": "_0e8d87a42c1f75fa__body-sm" };
666 if (typeof process === "undefined" || true) {
667 registerStyle("1fb29d3a3c", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");
668 }
669 var global_css_defense_default = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
670 var Text = (0, import_element.forwardRef)(function Text2({ variant = "body-md", render, className, ...props }, ref) {
671 const element = useRender({
672 render,
673 defaultTagName: "span",
674 ref,
675 props: mergeProps(props, {
676 className: clsx_default(
677 style_default.text,
678 global_css_defense_default.heading,
679 global_css_defense_default.p,
680 style_default[variant],
681 className
682 )
683 })
684 });
685 return element;
686 });
687
688 // packages/ui/build-module/icon/icon.mjs
689 var import_element2 = __toESM(require_element(), 1);
690 var import_primitives4 = __toESM(require_primitives(), 1);
691 var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
692 var Icon = (0, import_element2.forwardRef)(function Icon2({ icon, size = 24, ...restProps }, ref) {
693 return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
694 import_primitives4.SVG,
695 {
696 ref,
697 fill: "currentColor",
698 ...icon.props,
699 ...restProps,
700 width: size,
701 height: size
702 }
703 );
704 });
705
706 // packages/ui/build-module/stack/stack.mjs
707 var import_element3 = __toESM(require_element(), 1);
708 var STYLE_HASH_ATTRIBUTE2 = "data-wp-hash";
709 function getRuntime2() {
710 const globalScope = globalThis;
711 if (globalScope.__wpStyleRuntime) {
712 return globalScope.__wpStyleRuntime;
713 }
714 globalScope.__wpStyleRuntime = {
715 documents: /* @__PURE__ */ new Map(),
716 styles: /* @__PURE__ */ new Map(),
717 injectedStyles: /* @__PURE__ */ new WeakMap()
718 };
719 if (typeof document !== "undefined") {
720 registerDocument2(document);
721 }
722 return globalScope.__wpStyleRuntime;
723 }
724 function documentContainsStyleHash2(targetDocument, hash) {
725 if (!targetDocument.head) {
726 return false;
727 }
728 for (const style of targetDocument.head.querySelectorAll(
729 `style[${STYLE_HASH_ATTRIBUTE2}]`
730 )) {
731 if (style.getAttribute(STYLE_HASH_ATTRIBUTE2) === hash) {
732 return true;
733 }
734 }
735 return false;
736 }
737 function injectStyle2(targetDocument, hash, css) {
738 if (!targetDocument.head) {
739 return;
740 }
741 const runtime = getRuntime2();
742 let injectedStyles = runtime.injectedStyles.get(targetDocument);
743 if (!injectedStyles) {
744 injectedStyles = /* @__PURE__ */ new Set();
745 runtime.injectedStyles.set(targetDocument, injectedStyles);
746 }
747 if (injectedStyles.has(hash)) {
748 return;
749 }
750 if (documentContainsStyleHash2(targetDocument, hash)) {
751 injectedStyles.add(hash);
752 return;
753 }
754 const style = targetDocument.createElement("style");
755 style.setAttribute(STYLE_HASH_ATTRIBUTE2, hash);
756 style.appendChild(targetDocument.createTextNode(css));
757 targetDocument.head.appendChild(style);
758 injectedStyles.add(hash);
759 }
760 function registerDocument2(targetDocument) {
761 const runtime = getRuntime2();
762 runtime.documents.set(
763 targetDocument,
764 (runtime.documents.get(targetDocument) ?? 0) + 1
765 );
766 for (const [hash, css] of runtime.styles) {
767 injectStyle2(targetDocument, hash, css);
768 }
769 return () => {
770 const count = runtime.documents.get(targetDocument);
771 if (count === void 0) {
772 return;
773 }
774 if (count <= 1) {
775 runtime.documents.delete(targetDocument);
776 return;
777 }
778 runtime.documents.set(targetDocument, count - 1);
779 };
780 }
781 function registerStyle2(hash, css) {
782 const runtime = getRuntime2();
783 runtime.styles.set(hash, css);
784 for (const targetDocument of runtime.documents.keys()) {
785 injectStyle2(targetDocument, hash, css);
786 }
787 }
788 if (typeof process === "undefined" || true) {
789 registerStyle2("b51ff41489", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}");
790 }
791 var style_default2 = { "stack": "_19ce0419607e1896__stack" };
792 var gapTokens = {
793 xs: "var(--wpds-dimension-gap-xs, 4px)",
794 sm: "var(--wpds-dimension-gap-sm, 8px)",
795 md: "var(--wpds-dimension-gap-md, 12px)",
796 lg: "var(--wpds-dimension-gap-lg, 16px)",
797 xl: "var(--wpds-dimension-gap-xl, 24px)",
798 "2xl": "var(--wpds-dimension-gap-2xl, 32px)",
799 "3xl": "var(--wpds-dimension-gap-3xl, 40px)"
800 };
801 var Stack = (0, import_element3.forwardRef)(function Stack2({ direction, gap, align, justify, wrap, render, ...props }, ref) {
802 const style = {
803 gap: gap && gapTokens[gap],
804 alignItems: align,
805 justifyContent: justify,
806 flexDirection: direction,
807 flexWrap: wrap
808 };
809 const element = useRender({
810 render,
811 ref,
812 props: mergeProps(props, { style, className: style_default2.stack })
813 });
814 return element;
815 });
816
817 // packages/ui/build-module/link/link.mjs
818 var import_element4 = __toESM(require_element(), 1);
819 var import_i18n = __toESM(require_i18n(), 1);
820 var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
821 var STYLE_HASH_ATTRIBUTE3 = "data-wp-hash";
822 function getRuntime3() {
823 const globalScope = globalThis;
824 if (globalScope.__wpStyleRuntime) {
825 return globalScope.__wpStyleRuntime;
826 }
827 globalScope.__wpStyleRuntime = {
828 documents: /* @__PURE__ */ new Map(),
829 styles: /* @__PURE__ */ new Map(),
830 injectedStyles: /* @__PURE__ */ new WeakMap()
831 };
832 if (typeof document !== "undefined") {
833 registerDocument3(document);
834 }
835 return globalScope.__wpStyleRuntime;
836 }
837 function documentContainsStyleHash3(targetDocument, hash) {
838 if (!targetDocument.head) {
839 return false;
840 }
841 for (const style of targetDocument.head.querySelectorAll(
842 `style[${STYLE_HASH_ATTRIBUTE3}]`
843 )) {
844 if (style.getAttribute(STYLE_HASH_ATTRIBUTE3) === hash) {
845 return true;
846 }
847 }
848 return false;
849 }
850 function injectStyle3(targetDocument, hash, css) {
851 if (!targetDocument.head) {
852 return;
853 }
854 const runtime = getRuntime3();
855 let injectedStyles = runtime.injectedStyles.get(targetDocument);
856 if (!injectedStyles) {
857 injectedStyles = /* @__PURE__ */ new Set();
858 runtime.injectedStyles.set(targetDocument, injectedStyles);
859 }
860 if (injectedStyles.has(hash)) {
861 return;
862 }
863 if (documentContainsStyleHash3(targetDocument, hash)) {
864 injectedStyles.add(hash);
865 return;
866 }
867 const style = targetDocument.createElement("style");
868 style.setAttribute(STYLE_HASH_ATTRIBUTE3, hash);
869 style.appendChild(targetDocument.createTextNode(css));
870 targetDocument.head.appendChild(style);
871 injectedStyles.add(hash);
872 }
873 function registerDocument3(targetDocument) {
874 const runtime = getRuntime3();
875 runtime.documents.set(
876 targetDocument,
877 (runtime.documents.get(targetDocument) ?? 0) + 1
878 );
879 for (const [hash, css] of runtime.styles) {
880 injectStyle3(targetDocument, hash, css);
881 }
882 return () => {
883 const count = runtime.documents.get(targetDocument);
884 if (count === void 0) {
885 return;
886 }
887 if (count <= 1) {
888 runtime.documents.delete(targetDocument);
889 return;
890 }
891 runtime.documents.set(targetDocument, count - 1);
892 };
893 }
894 function registerStyle3(hash, css) {
895 const runtime = getRuntime3();
896 runtime.styles.set(hash, css);
897 for (const targetDocument of runtime.documents.keys()) {
898 injectStyle3(targetDocument, hash, css);
899 }
900 }
901 if (typeof process === "undefined" || true) {
902 registerStyle3("e3ae230cea", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");
903 }
904 var resets_default = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
905 if (typeof process === "undefined" || true) {
906 registerStyle3("2a5ab8f3a7", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid #0000;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}");
907 }
908 var focus_default = { "outset-ring--focus": "_08e8a2e44959f892__outset-ring--focus", "outset-ring--focus-except-active": "e25b2bdd7aa21721__outset-ring--focus-except-active", "outset-ring--focus-visible": "d0541bc9dd9dc7b6__outset-ring--focus-visible", "outset-ring--focus-within": "cd83dfc2126a0846__outset-ring--focus-within", "outset-ring--focus-within-except-active": "_970d04df7376df67__outset-ring--focus-within-except-active", "outset-ring--focus-within-visible": "c5cb3ee4bddaa8e4__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "ecadb9e080e2dfa5__outset-ring--focus-parent-visible" };
909 if (typeof process === "undefined" || true) {
910 registerStyle3("90a23568f8", '@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-fg-interactive-neutral,#1e1e1e);color:var(--wpds-color-fg-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-fg-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-fg-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-regular,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}');
911 }
912 var style_default3 = { "link": "d4250949359b05ce__link", "is-brand": "c6055659b8e2cd2c__is-brand", "is-neutral": "_92e0dfcaeee15b88__is-neutral", "is-unstyled": "cf122a9bf1035d42__is-unstyled", "link-icon": "_0cb411afac4c86c7__link-icon" };
913 if (typeof process === "undefined" || true) {
914 registerStyle3("1fb29d3a3c", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");
915 }
916 var global_css_defense_default2 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
917 var Link = (0, import_element4.forwardRef)(function Link2({
918 children,
919 variant = "default",
920 tone = "brand",
921 openInNewTab = false,
922 render,
923 className,
924 ...props
925 }, ref) {
926 const element = useRender({
927 render,
928 defaultTagName: "a",
929 ref,
930 props: mergeProps(props, {
931 className: clsx_default(
932 global_css_defense_default2.a,
933 resets_default["box-sizing"],
934 focus_default["outset-ring--focus"],
935 variant !== "unstyled" && style_default3.link,
936 variant !== "unstyled" && style_default3[`is-${tone}`],
937 variant === "unstyled" && style_default3["is-unstyled"],
938 className
939 ),
940 target: openInNewTab ? "_blank" : void 0,
941 children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
942 children,
943 openInNewTab && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
944 "span",
945 {
946 className: style_default3["link-icon"],
947 role: "img",
948 "aria-label": (
949 /* translators: accessibility text appended to link text */
950 (0, import_i18n.__)("(opens in a new tab)")
951 )
952 }
953 )
954 ] })
955 })
956 });
957 return element;
958 });
959
960 // widgets/welcome/components/banner/banner.tsx
961 var import_i18n2 = __toESM(require_i18n());
962
963 // widgets/welcome/components/header-background/header-background.tsx
964 var import_element5 = __toESM(require_element());
965 var import_primitives5 = __toESM(require_primitives());
966
967 // packages/style-runtime/src/index.ts
968 var STYLE_HASH_ATTRIBUTE4 = "data-wp-hash";
969 function getRuntime4() {
970 const globalScope = globalThis;
971 if (globalScope.__wpStyleRuntime) {
972 return globalScope.__wpStyleRuntime;
973 }
974 globalScope.__wpStyleRuntime = {
975 documents: /* @__PURE__ */ new Map(),
976 styles: /* @__PURE__ */ new Map(),
977 injectedStyles: /* @__PURE__ */ new WeakMap()
978 };
979 if (typeof document !== "undefined") {
980 registerDocument4(document);
981 }
982 return globalScope.__wpStyleRuntime;
983 }
984 function documentContainsStyleHash4(targetDocument, hash) {
985 if (!targetDocument.head) {
986 return false;
987 }
988 for (const style of targetDocument.head.querySelectorAll(
989 `style[${STYLE_HASH_ATTRIBUTE4}]`
990 )) {
991 if (style.getAttribute(STYLE_HASH_ATTRIBUTE4) === hash) {
992 return true;
993 }
994 }
995 return false;
996 }
997 function injectStyle4(targetDocument, hash, css) {
998 if (!targetDocument.head) {
999 return;
1000 }
1001 const runtime = getRuntime4();
1002 let injectedStyles = runtime.injectedStyles.get(targetDocument);
1003 if (!injectedStyles) {
1004 injectedStyles = /* @__PURE__ */ new Set();
1005 runtime.injectedStyles.set(targetDocument, injectedStyles);
1006 }
1007 if (injectedStyles.has(hash)) {
1008 return;
1009 }
1010 if (documentContainsStyleHash4(targetDocument, hash)) {
1011 injectedStyles.add(hash);
1012 return;
1013 }
1014 const style = targetDocument.createElement("style");
1015 style.setAttribute(STYLE_HASH_ATTRIBUTE4, hash);
1016 style.appendChild(targetDocument.createTextNode(css));
1017 targetDocument.head.appendChild(style);
1018 injectedStyles.add(hash);
1019 }
1020 function registerDocument4(targetDocument) {
1021 const runtime = getRuntime4();
1022 runtime.documents.set(
1023 targetDocument,
1024 (runtime.documents.get(targetDocument) ?? 0) + 1
1025 );
1026 for (const [hash, css] of runtime.styles) {
1027 injectStyle4(targetDocument, hash, css);
1028 }
1029 return () => {
1030 const count = runtime.documents.get(targetDocument);
1031 if (count === void 0) {
1032 return;
1033 }
1034 if (count <= 1) {
1035 runtime.documents.delete(targetDocument);
1036 return;
1037 }
1038 runtime.documents.set(targetDocument, count - 1);
1039 };
1040 }
1041 function registerStyle4(hash, css) {
1042 const runtime = getRuntime4();
1043 runtime.styles.set(hash, css);
1044 for (const targetDocument of runtime.documents.keys()) {
1045 injectStyle4(targetDocument, hash, css);
1046 }
1047 }
1048
1049 // widgets/welcome/components/header-background/header-background.module.css
1050 if (typeof process === "undefined" || true) {
1051 registerStyle4("7554282f0a", "._2dc6908d13f9b567__root{block-size:100%;inline-size:100%;inset:0;pointer-events:none;position:absolute;z-index:0}.ce013c8671de98ad__glint{transform:translateX(-360px)}@media not (prefers-reduced-motion){.ce013c8671de98ad__glint{animation:eaaa6cd949ed5785__welcomeVersionGlint 10s var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1)) 3s 3}}@keyframes eaaa6cd949ed5785__welcomeVersionGlint{0%{transform:translateX(-360px)}50%{transform:translateX(1040px)}to{transform:translateX(1040px)}}");
1052 }
1053 var header_background_default = { "root": "_2dc6908d13f9b567__root", "glint": "ce013c8671de98ad__glint", "welcomeVersionGlint": "eaaa6cd949ed5785__welcomeVersionGlint" };
1054
1055 // widgets/welcome/components/header-background/header-background.tsx
1056 var import_jsx_runtime6 = __toESM(require_jsx_runtime());
1057 var GLYPH_HEIGHT = 200;
1058 var GLYPHS = {
1059 "0": {
1060 advance: 150,
1061 strokes: [{ d: "M76 30 a48 82 0 1 0 0 164 a48 82 0 1 0 0 -164 Z" }]
1062 },
1063 "1": { advance: 110, strokes: [{ d: "M30 56 L74 22 L74 202" }] },
1064 "2": {
1065 advance: 150,
1066 strokes: [
1067 { d: "M34 66 A44 40 0 1 1 120 70 C120 112 38 152 30 196 L124 196" }
1068 ]
1069 },
1070 "3": {
1071 advance: 150,
1072 strokes: [{ d: "M34 54 A42 36 0 1 1 80 102 A50 48 0 1 1 30 174" }]
1073 },
1074 "4": { advance: 150, strokes: [{ d: "M106 196 V40 L28 138 H128" }] },
1075 "5": {
1076 advance: 150,
1077 strokes: [{ d: "M114 40 H58 L57 104 H74 A46 48 0 1 1 50 186" }]
1078 },
1079 "6": {
1080 advance: 150,
1081 strokes: [
1082 {
1083 d: "M28 143 a46 46 0 1 0 92 0 a46 46 0 1 0 -92 0",
1084 vec: [-39, 156, 78, 39],
1085 stops: "ring"
1086 },
1087 { d: "M117 34 L42 110", vec: [97, -18, -56, 135] }
1088 ]
1089 },
1090 "7": { advance: 150, strokes: [{ d: "M30 24 H128 L64 202" }] },
1091 "8": {
1092 advance: 150,
1093 strokes: [
1094 {
1095 d: "M76 26 a38 38 0 1 0 0 76 a38 38 0 1 0 0 -76",
1096 vec: [120, 16, 30, 200]
1097 },
1098 {
1099 d: "M76 106 a46 46 0 1 0 0 92 a46 46 0 1 0 0 -92",
1100 vec: [120, 16, 30, 200]
1101 }
1102 ]
1103 },
1104 "9": {
1105 advance: 150,
1106 strokes: [
1107 {
1108 d: "M30 82 a46 46 0 1 0 92 0 a46 46 0 1 0 -92 0",
1109 vec: [190, 69, 73, 186],
1110 stops: "ring"
1111 },
1112 { d: "M33 190 L109 115", vec: [54, 243, 207, 90] }
1113 ]
1114 },
1115 ".": { advance: 80, circles: [{ cx: 40, cy: 178, r: 26 }] }
1116 };
1117 var VIEW_WIDTH = 1e3;
1118 var VIEW_HEIGHT = 300;
1119 var RIGHT_MARGIN = 40;
1120 var GLYPH_GAP = 2;
1121 var GLYPH_TOP = (VIEW_HEIGHT - GLYPH_HEIGHT) / 2;
1122 var STOP_SETS = {
1123 // Ring of the 6/9: light at the bottom, near-black where the stem lands.
1124 ring: [
1125 ["var(--banner-accent-warm)", 0],
1126 ["var(--banner-accent-brand)", 0.665],
1127 ["var(--banner-accent-dark)", 1]
1128 ],
1129 // Stems and plain digits: near-black to light along the stroke.
1130 linear: [
1131 ["var(--banner-accent-dark)", 0],
1132 ["var(--banner-accent-brand)", 0.5],
1133 ["var(--banner-accent-warm)", 1]
1134 ]
1135 };
1136 function HeaderBackground({ version: version2 }) {
1137 const idBase = (0, import_element5.useId)();
1138 const maskId = `${idBase}-glint-mask`;
1139 const glintId = `${idBase}-glint`;
1140 const placed = [];
1141 let cursor = VIEW_WIDTH - RIGHT_MARGIN;
1142 const chars = Array.from(version2);
1143 for (let i = chars.length - 1; i >= 0; i--) {
1144 const char = chars[i];
1145 if (!char) {
1146 continue;
1147 }
1148 const glyph = GLYPHS[char];
1149 if (!glyph) {
1150 continue;
1151 }
1152 const x = cursor - glyph.advance;
1153 placed.unshift({ key: `${i}-${char}`, x, char, glyph });
1154 cursor = x - GLYPH_GAP;
1155 }
1156 const strokeId = (glyphIndex, strokeIndex) => `${idBase}-${glyphIndex}-${strokeIndex}`;
1157 const renderGlyphs = (forMask) => placed.map(({ key, x, char, glyph }, glyphIndex) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1158 import_primitives5.G,
1159 {
1160 "data-glyph": char,
1161 transform: `translate(${x} ${GLYPH_TOP})`,
1162 children: [
1163 glyph.strokes?.map((stroke, strokeIndex) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1164 import_primitives5.Path,
1165 {
1166 d: stroke.d,
1167 stroke: forMask ? "white" : `url(#${strokeId(
1168 glyphIndex,
1169 strokeIndex
1170 )})`
1171 },
1172 strokeIndex
1173 )),
1174 glyph.circles?.map((circle, circleIndex) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1175 import_primitives5.Circle,
1176 {
1177 cx: circle.cx,
1178 cy: circle.cy,
1179 r: circle.r,
1180 fill: forMask ? "white" : "var(--banner-accent-brand)"
1181 },
1182 circleIndex
1183 ))
1184 ]
1185 },
1186 key
1187 ));
1188 return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1189 import_primitives5.SVG,
1190 {
1191 className: header_background_default.root,
1192 preserveAspectRatio: "xMaxYMid slice",
1193 fill: "none",
1194 viewBox: `0 0 ${VIEW_WIDTH} ${VIEW_HEIGHT}`,
1195 xmlns: "http://www.w3.org/2000/svg",
1196 children: [
1197 /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1198 import_primitives5.G,
1199 {
1200 fill: "none",
1201 strokeLinecap: "round",
1202 strokeLinejoin: "round",
1203 strokeWidth: "44",
1204 children: renderGlyphs(false)
1205 }
1206 ),
1207 /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives5.G, { mask: `url(#${maskId})`, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1208 import_primitives5.Rect,
1209 {
1210 className: header_background_default.glint,
1211 x: "0",
1212 y: "0",
1213 width: "300",
1214 height: VIEW_HEIGHT,
1215 fill: `url(#${glintId})`
1216 }
1217 ) }),
1218 /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_primitives5.Defs, { children: [
1219 placed.flatMap(
1220 ({ glyph }, glyphIndex) => (glyph.strokes ?? []).map((stroke, strokeIndex) => {
1221 const [x1, y1, x2, y2] = stroke.vec ?? [
1222 glyph.advance * 0.8,
1223 6,
1224 glyph.advance * 0.15,
1225 196
1226 ];
1227 return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1228 import_primitives5.LinearGradient,
1229 {
1230 id: strokeId(glyphIndex, strokeIndex),
1231 gradientUnits: "userSpaceOnUse",
1232 x1,
1233 y1,
1234 x2,
1235 y2,
1236 children: STOP_SETS[stroke.stops ?? "linear"].map(
1237 ([color, offset]) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1238 import_primitives5.Stop,
1239 {
1240 offset,
1241 stopColor: color
1242 },
1243 offset
1244 )
1245 )
1246 },
1247 `${glyphIndex}-${strokeIndex}`
1248 );
1249 })
1250 ),
1251 /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_primitives5.LinearGradient, { id: glintId, x1: "0", y1: "0", x2: "1", y2: "0.55", children: [
1252 /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1253 import_primitives5.Stop,
1254 {
1255 offset: "0",
1256 stopColor: "var(--banner-glint)",
1257 stopOpacity: "0"
1258 }
1259 ),
1260 /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1261 import_primitives5.Stop,
1262 {
1263 offset: "0.4",
1264 stopColor: "var(--banner-glint)",
1265 stopOpacity: "0"
1266 }
1267 ),
1268 /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1269 import_primitives5.Stop,
1270 {
1271 offset: "0.5",
1272 stopColor: "var(--banner-glint)",
1273 stopOpacity: "0.65"
1274 }
1275 ),
1276 /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1277 import_primitives5.Stop,
1278 {
1279 offset: "0.6",
1280 stopColor: "var(--banner-glint)",
1281 stopOpacity: "0"
1282 }
1283 ),
1284 /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1285 import_primitives5.Stop,
1286 {
1287 offset: "1",
1288 stopColor: "var(--banner-glint)",
1289 stopOpacity: "0"
1290 }
1291 )
1292 ] }),
1293 /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1294 "mask",
1295 {
1296 id: maskId,
1297 maskUnits: "userSpaceOnUse",
1298 x: "0",
1299 y: "0",
1300 width: VIEW_WIDTH,
1301 height: VIEW_HEIGHT,
1302 children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1303 import_primitives5.G,
1304 {
1305 fill: "none",
1306 strokeLinecap: "round",
1307 strokeLinejoin: "round",
1308 strokeWidth: "44",
1309 children: renderGlyphs(true)
1310 }
1311 )
1312 }
1313 )
1314 ] })
1315 ]
1316 }
1317 );
1318 }
1319
1320 // widgets/welcome/components/banner/banner.module.css
1321 if (typeof process === "undefined" || true) {
1322 registerStyle4("6f5ef9fec9", ".b895e30353489bf2__banner{--banner-bg:var(--wpds-color-bg-interactive-neutral-strong,#2d2d2d);--banner-fg:var(--wpds-color-fg-interactive-neutral-strong,#f0f0f0);--banner-accent-brand:var(--wpds-color-bg-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--banner-accent-warm:color-mix(in srgb,var(--wpds-color-stroke-surface-warning,#d0b481) 60%,var(--wpds-color-bg-surface-neutral-strong,#fff));--banner-accent-dark:var(--wpds-color-fg-content-neutral,#1e1e1e);--banner-glint:color-mix(in srgb,var(--banner-fg) 80%,var(--banner-accent-warm));background-color:var(--banner-bg);background-image:linear-gradient(108deg,var(--banner-bg) 0,var(--banner-bg) 26%,var(--banner-accent-brand) 66%,var(--banner-accent-warm) 100%);color:var(--banner-fg);min-height:clamp(180px,20cqi,320px);overflow:hidden;padding:var(--wpds-dimension-padding-3xl,32px);position:relative}._4e4405b6dd233bb1__bannerContent{position:relative;z-index:1}._97b3d6d6e1182c1e__bannerLink{color:inherit;text-decoration:underline;text-underline-offset:.2em}@container (max-width: 420px){.b895e30353489bf2__banner{padding:var(--wpds-dimension-padding-lg,16px)}}");
1323 }
1324 var banner_default = { "banner": "b895e30353489bf2__banner", "bannerContent": "_4e4405b6dd233bb1__bannerContent", "bannerLink": "_97b3d6d6e1182c1e__bannerLink" };
1325
1326 // widgets/welcome/components/banner/banner.tsx
1327 var import_jsx_runtime7 = __toESM(require_jsx_runtime());
1328 var DISPLAY_VERSION = "7.1";
1329 function Banner() {
1330 return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { className: banner_default.banner, direction: "column", justify: "center", children: [
1331 /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(HeaderBackground, { version: DISPLAY_VERSION }),
1332 /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1333 Stack,
1334 {
1335 className: banner_default.bannerContent,
1336 gap: "sm",
1337 direction: "column",
1338 children: [
1339 /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { variant: "heading-2xl", children: (0, import_i18n2.__)("Welcome to WordPress!") }),
1340 /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { variant: "heading-lg", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1341 Link,
1342 {
1343 className: banner_default.bannerLink,
1344 href: "/wp-admin/about.php",
1345 variant: "unstyled",
1346 children: (0, import_i18n2.sprintf)(
1347 /* translators: %s: Current WordPress version. */
1348 (0, import_i18n2.__)("Learn more about the %s version."),
1349 DISPLAY_VERSION
1350 )
1351 }
1352 ) })
1353 ]
1354 }
1355 )
1356 ] });
1357 }
1358
1359 // widgets/welcome/components/feature-highlight/feature-highlight.module.css
1360 if (typeof process === "undefined" || true) {
1361 registerStyle4("a009d3fc8d", ".ec4cdaa2ef617aad__iconBox{background-color:var(--wpds-color-bg-interactive-neutral-strong,#2d2d2d);block-size:calc(var(--wpds-dimension-padding-2xl, 24px)*2);border-radius:var(--wpds-border-radius-md,4px);color:var(--wpds-color-fg-interactive-neutral-strong,#f0f0f0);flex-shrink:0;inline-size:calc(var(--wpds-dimension-padding-2xl, 24px)*2)}");
1362 }
1363 var feature_highlight_default = { "iconBox": "ec4cdaa2ef617aad__iconBox" };
1364
1365 // widgets/welcome/components/feature-highlight/feature-highlight.tsx
1366 var import_jsx_runtime8 = __toESM(require_jsx_runtime());
1367 function FeatureHighlight({
1368 icon,
1369 title,
1370 description,
1371 ctaUrl,
1372 ctaLabel
1373 }) {
1374 return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Stack, { direction: "row", gap: "lg", align: "start", children: [
1375 /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1376 Stack,
1377 {
1378 className: feature_highlight_default.iconBox,
1379 direction: "column",
1380 align: "center",
1381 justify: "center",
1382 children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { icon })
1383 }
1384 ),
1385 /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Stack, { direction: "column", gap: "sm", children: [
1386 /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { variant: "heading-md", render: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", {}), children: title }),
1387 /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { render: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", {}), children: description }),
1388 /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Link, { href: ctaUrl, children: ctaLabel })
1389 ] })
1390 ] });
1391 }
1392
1393 // widgets/welcome/style.module.css
1394 if (typeof process === "undefined" || true) {
1395 registerStyle4("65df814a93", "._2f6622b092c712f3__root{container-type:inline-size;min-height:100%}.d2e844d428fd4410__columns{align-items:center;display:grid;flex:1;gap:var(--wpds-dimension-gap-2xl,32px);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px);padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@container (max-width: 420px){.d2e844d428fd4410__columns{margin:0;padding:var(--wpds-dimension-padding-lg,16px)}}");
1396 }
1397 var style_default4 = { "root": "_2f6622b092c712f3__root", "columns": "d2e844d428fd4410__columns" };
1398
1399 // widgets/welcome/render.tsx
1400 var import_jsx_runtime9 = __toESM(require_jsx_runtime());
1401 function WelcomeBanner() {
1402 const isClassicTheme = (0, import_data.useSelect)(
1403 (select) => select(import_core_data.store).getCurrentTheme()?.is_block_theme === false,
1404 []
1405 );
1406 const customizeFeature = isClassicTheme ? {
1407 icon: layout_default,
1408 title: (0, import_i18n3.__)("Start customizing"),
1409 description: (0, import_i18n3.__)(
1410 "Configure your site\u2019s logo, header, menus, and more in the Customizer."
1411 ),
1412 ctaUrl: "/wp-admin/customize.php",
1413 ctaLabel: (0, import_i18n3.__)("Open the Customizer")
1414 } : {
1415 icon: layout_default,
1416 title: (0, import_i18n3.__)("Customize your entire site with block themes"),
1417 description: (0, import_i18n3.__)(
1418 "Design everything on your site \u2014 from the header down to the footer, all using blocks and patterns."
1419 ),
1420 ctaUrl: "/wp-admin/site-editor.php",
1421 ctaLabel: (0, import_i18n3.__)("Open site editor")
1422 };
1423 const stylesFeature = isClassicTheme ? {
1424 icon: styles_default,
1425 title: (0, import_i18n3.__)("Discover a new way to build your site"),
1426 description: (0, import_i18n3.__)(
1427 "There is a new kind of WordPress theme, called a block theme, that lets you build the site you\u2019ve always wanted \u2014 with blocks and styles."
1428 ),
1429 ctaUrl: "https://wordpress.org/documentation/article/block-themes/",
1430 ctaLabel: (0, import_i18n3.__)("Learn about block themes")
1431 } : {
1432 icon: styles_default,
1433 title: (0, import_i18n3.__)("Switch up your site\u2019s look & feel with Styles"),
1434 description: (0, import_i18n3.__)(
1435 "Tweak your site, or give it a whole new look! Get creative \u2014 how about a new color palette or font?"
1436 ),
1437 ctaUrl: "/wp-admin/site-editor.php?p=%2Fstyles",
1438 ctaLabel: (0, import_i18n3.__)("Edit styles")
1439 };
1440 return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Stack, { className: style_default4.root, direction: "column", gap: "lg", children: [
1441 /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Banner, {}),
1442 /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Stack, { className: style_default4.columns, children: [
1443 /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1444 FeatureHighlight,
1445 {
1446 icon: pencil_default,
1447 title: (0, import_i18n3.__)(
1448 "Author rich content with blocks and patterns"
1449 ),
1450 description: (0, import_i18n3.__)(
1451 "Block patterns are pre-configured block layouts. Use them to get inspired or create new pages in a flash."
1452 ),
1453 ctaUrl: "/wp-admin/post-new.php?post_type=page",
1454 ctaLabel: (0, import_i18n3.__)("Add a new page")
1455 }
1456 ),
1457 /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(FeatureHighlight, { ...customizeFeature }),
1458 /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(FeatureHighlight, { ...stylesFeature })
1459 ] })
1460 ] });
1461 }
1462 export {
1463 WelcomeBanner as default
1464 };
1465