| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
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 __export = (target, all) => { 11 for (var name in all) 12 __defProp(target, name, { get: all[name], enumerable: true }); 13 }; 14 var __copyProps = (to, from, except, desc) => { 15 if (from && typeof from === "object" || typeof from === "function") { 16 for (let key of __getOwnPropNames(from)) 17 if (!__hasOwnProp.call(to, key) && key !== except) 18 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 19 } 20 return to; 21 }; 22 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( 23 // If the importer is in node compatibility mode or this is not an ESM 24 // file that has been converted to a CommonJS file using a Babel- 25 // compatible transform (i.e. "__esModule" has not been set), then set 26 // "default" to the CommonJS "module.exports" for node compatibility. 27 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, 28 mod 29 )); 30 31 // package-external:@wordpress/data 32 var require_data = __commonJS({ 33 "package-external:@wordpress/data"(exports, module) { 34 module.exports = window.wp.data; 35 } 36 }); 37 38 // package-external:@wordpress/core-data 39 var require_core_data = __commonJS({ 40 "package-external:@wordpress/core-data"(exports, module) { 41 module.exports = window.wp.coreData; 42 } 43 }); 44 45 // package-external:@wordpress/element 46 var require_element = __commonJS({ 47 "package-external:@wordpress/element"(exports, module) { 48 module.exports = window.wp.element; 49 } 50 }); 51 52 // package-external:@wordpress/primitives 53 var require_primitives = __commonJS({ 54 "package-external:@wordpress/primitives"(exports, module) { 55 module.exports = window.wp.primitives; 56 } 57 }); 58 59 // vendor-external:react/jsx-runtime 60 var require_jsx_runtime = __commonJS({ 61 "vendor-external:react/jsx-runtime"(exports, module) { 62 module.exports = window.ReactJSXRuntime; 63 } 64 }); 65 66 // vendor-external:react 67 var require_react = __commonJS({ 68 "vendor-external:react"(exports, module) { 69 module.exports = window.React; 70 } 71 }); 72 73 // vendor-external:react-dom 74 var require_react_dom = __commonJS({ 75 "vendor-external:react-dom"(exports, module) { 76 module.exports = window.ReactDOM; 77 } 78 }); 79 80 // package-external:@wordpress/warning 81 var require_warning = __commonJS({ 82 "package-external:@wordpress/warning"(exports, module) { 83 module.exports = window.wp.warning; 84 } 85 }); 86 87 // package-external:@wordpress/i18n 88 var require_i18n = __commonJS({ 89 "package-external:@wordpress/i18n"(exports, module) { 90 module.exports = window.wp.i18n; 91 } 92 }); 93 94 // package-external:@wordpress/html-entities 95 var require_html_entities = __commonJS({ 96 "package-external:@wordpress/html-entities"(exports, module) { 97 module.exports = window.wp.htmlEntities; 98 } 99 }); 100 101 // packages/core-fields/build-module/wp_template/author/view.mjs 102 var import_data = __toESM(require_data(), 1); 103 var import_core_data = __toESM(require_core_data(), 1); 104 105 // packages/icons/build-module/library/comment-author-avatar.mjs 106 var import_primitives = __toESM(require_primitives(), 1); 107 var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); 108 var comment_author_avatar_default = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ 109 /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M8 18.0476V16C8 14.8954 8.89543 14 10 14H14C15.1046 14 16 14.8954 16 16V18.0476" }), 110 /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M12 4.75C7.99594 4.75 4.75 7.99593 4.75 12C4.75 16.0041 7.99593 19.25 12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75Z", strokeLinejoin: "round" }), 111 /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M13.75 10C13.75 10.9665 12.9665 11.75 12 11.75C11.0335 11.75 10.25 10.9665 10.25 10C10.25 9.0335 11.0335 8.25 12 8.25C12.9665 8.25 13.75 9.0335 13.75 10Z" }) 112 ] }); 113 114 // packages/icons/build-module/library/globe.mjs 115 var import_primitives2 = __toESM(require_primitives(), 1); 116 var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1); 117 var globe_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "M12 4.75C8.87453 4.75 6.21099 6.72773 5.19257 9.5M18.8074 14.5C19.0937 13.7207 19.25 12.8786 19.25 12C19.25 11.1214 19.0937 10.2793 18.8074 9.5C17.789 6.72773 15.1255 4.75 12 4.75M12 4.75C11 5.5 9 8.63218 9 12C9 15.3678 11 18.5 12 19.25M12 4.75C13 5.5 15 8.63218 15 12C15 15.3678 13 18.5 12 19.25M5.19257 9.5C4.90628 10.2793 4.75 11.1214 4.75 12C4.75 12.8786 4.90629 13.7207 5.19257 14.5C6.21099 17.2723 8.87453 19.25 12 19.25M12 19.25C15.1255 19.25 17.789 17.2723 18.8074 14.5M5.19257 9.5L18.8074 9.5M5.19257 14.5L18.8074 14.5", strokeLinejoin: "round" }) }); 118 119 // packages/icons/build-module/library/layout.mjs 120 var import_primitives3 = __toESM(require_primitives(), 1); 121 var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1); 122 var layout_default = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75" }) }); 123 124 // packages/icons/build-module/library/plugins.mjs 125 var import_primitives4 = __toESM(require_primitives(), 1); 126 var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1); 127 var plugins_default = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.Path, { d: "M15.3995 11.5711L12.2175 8.38909L10.273 6.44454L7.67678 9.04074C7.3017 9.41581 7.09099 9.92452 7.09099 10.455L7.09099 13.455C7.09099 13.7202 6.98563 13.9745 6.7981 14.1621L5.14645 15.8137C4.95118 16.009 4.95118 16.3256 5.14645 16.5208L7.26777 18.6421C7.46303 18.8374 7.77961 18.8374 7.97487 18.6421L9.62652 16.9905C9.81406 16.8029 10.0684 16.6976 10.3336 16.6976H13.3336C13.8641 16.6976 14.3728 16.4869 14.7478 16.1118L17.344 13.5156L15.3995 11.5711ZM12.2175 8.38909L16.1066 4.5M15.3995 11.5711L19.2886 7.68198" }) }); 128 129 // packages/ui/build-module/avatar/index.mjs 130 var avatar_exports = {}; 131 __export(avatar_exports, { 132 Fallback: () => Fallback, 133 Image: () => Image, 134 Initials: () => Initials, 135 Root: () => Root 136 }); 137 138 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/avatar/index.parts.mjs 139 var index_parts_exports = {}; 140 __export(index_parts_exports, { 141 Fallback: () => AvatarFallback, 142 Image: () => AvatarImage, 143 Root: () => AvatarRoot 144 }); 145 146 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/avatar/root/AvatarRoot.mjs 147 var React6 = __toESM(require_react(), 1); 148 149 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useRenderElement.mjs 150 var React4 = __toESM(require_react(), 1); 151 152 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useRefWithInit.mjs 153 var React = __toESM(require_react(), 1); 154 var UNINITIALIZED = {}; 155 function useRefWithInit(init, initArg) { 156 const ref = React.useRef(UNINITIALIZED); 157 if (ref.current === UNINITIALIZED) { 158 ref.current = init(initArg); 159 } 160 return ref; 161 } 162 163 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useMergedRefs.mjs 164 function useMergedRefs(a, b, c, d) { 165 const forkRef = useRefWithInit(createForkRef).current; 166 if (didChange(forkRef, a, b, c, d)) { 167 update(forkRef, [a, b, c, d]); 168 } 169 return forkRef.callback; 170 } 171 function useMergedRefsN(refs) { 172 const forkRef = useRefWithInit(createForkRef).current; 173 if (didChangeN(forkRef, refs)) { 174 update(forkRef, refs); 175 } 176 return forkRef.callback; 177 } 178 function createForkRef() { 179 return { 180 callback: null, 181 cleanup: null, 182 refs: [] 183 }; 184 } 185 function didChange(forkRef, a, b, c, d) { 186 return forkRef.refs[0] !== a || forkRef.refs[1] !== b || forkRef.refs[2] !== c || forkRef.refs[3] !== d; 187 } 188 function didChangeN(forkRef, newRefs) { 189 return forkRef.refs.length !== newRefs.length || forkRef.refs.some((ref, index) => ref !== newRefs[index]); 190 } 191 function update(forkRef, refs) { 192 forkRef.refs = refs; 193 if (refs.every((ref) => ref == null)) { 194 forkRef.callback = null; 195 return; 196 } 197 forkRef.callback = (instance) => { 198 if (forkRef.cleanup) { 199 forkRef.cleanup(); 200 forkRef.cleanup = null; 201 } 202 if (instance != null) { 203 const cleanupCallbacks = Array(refs.length).fill(null); 204 for (let i = 0; i < refs.length; i += 1) { 205 const ref = refs[i]; 206 if (ref == null) { 207 continue; 208 } 209 switch (typeof ref) { 210 case "function": { 211 const refCleanup = ref(instance); 212 if (typeof refCleanup === "function") { 213 cleanupCallbacks[i] = refCleanup; 214 } 215 break; 216 } 217 case "object": { 218 ref.current = instance; 219 break; 220 } 221 default: 222 } 223 } 224 forkRef.cleanup = () => { 225 for (let i = 0; i < refs.length; i += 1) { 226 const ref = refs[i]; 227 if (ref == null) { 228 continue; 229 } 230 switch (typeof ref) { 231 case "function": { 232 const cleanupCallback = cleanupCallbacks[i]; 233 if (typeof cleanupCallback === "function") { 234 cleanupCallback(); 235 } else { 236 void ref(null); 237 } 238 break; 239 } 240 case "object": { 241 ref.current = null; 242 break; 243 } 244 default: 245 } 246 } 247 }; 248 } 249 }; 250 } 251 252 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/getReactElementRef.mjs 253 var React3 = __toESM(require_react(), 1); 254 255 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/reactVersion.mjs 256 var React2 = __toESM(require_react(), 1); 257 var majorVersion = parseInt(React2.version, 10); 258 function isReactVersionAtLeast(reactVersionToCheck) { 259 return majorVersion >= reactVersionToCheck; 260 } 261 262 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/getReactElementRef.mjs 263 function getReactElementRef(element) { 264 if (!/* @__PURE__ */ React3.isValidElement(element)) { 265 return null; 266 } 267 const reactElement = element; 268 const propsWithRef = reactElement.props; 269 return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null; 270 } 271 272 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/mergeObjects.mjs 273 function mergeObjects(a, b) { 274 if (a && !b) { 275 return a; 276 } 277 if (!a && b) { 278 return b; 279 } 280 if (a || b) { 281 return { 282 ...a, 283 ...b 284 }; 285 } 286 return void 0; 287 } 288 289 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/createLogOnce.mjs 290 var loggedMessages; 291 if (true) { 292 loggedMessages = /* @__PURE__ */ new Set(); 293 } 294 function createLogOnce(severity, prefix) { 295 return function logOnce(...messages) { 296 if (true) { 297 const message = messages.join(" "); 298 const output = prefix ? `$prefix}: $message}` : message; 299 const key = `$severity}:$output}`; 300 if (!loggedMessages.has(key)) { 301 loggedMessages.add(key); 302 if (severity === "warn") { 303 console.warn(output); 304 } else { 305 console.error(output); 306 } 307 } 308 } 309 }; 310 } 311 312 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/warn.mjs 313 var warn = createLogOnce("warn", "Base UI"); 314 315 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/empty.mjs 316 function NOOP() { 317 } 318 var EMPTY_ARRAY = Object.freeze([]); 319 var EMPTY_OBJECT = Object.freeze({}); 320 321 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/getStateAttributesProps.mjs 322 function getStateAttributesProps(state, customMapping) { 323 const props = {}; 324 for (const key in state) { 325 const value = state[key]; 326 if (customMapping?.hasOwnProperty(key)) { 327 const customProps = customMapping[key](value); 328 if (customProps != null) { 329 Object.assign(props, customProps); 330 } 331 continue; 332 } 333 if (value === true) { 334 props[`data-$key.toLowerCase()}`] = ""; 335 } else if (value) { 336 props[`data-$key.toLowerCase()}`] = value.toString(); 337 } 338 } 339 return props; 340 } 341 342 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/resolveClassName.mjs 343 function resolveClassName(className, state) { 344 return typeof className === "function" ? className(state) : className; 345 } 346 347 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/resolveStyle.mjs 348 function resolveStyle(style, state) { 349 return typeof style === "function" ? style(state) : style; 350 } 351 352 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/merge-props/mergeProps.mjs 353 var EMPTY_PROPS = {}; 354 function mergeProps(a, b, c, d, e) { 355 if (!c && !d && !e && !a) { 356 return createInitialMergedProps(b); 357 } 358 let merged = createInitialMergedProps(a); 359 if (b) { 360 merged = mergeInto(merged, b); 361 } 362 if (c) { 363 merged = mergeInto(merged, c); 364 } 365 if (d) { 366 merged = mergeInto(merged, d); 367 } 368 if (e) { 369 merged = mergeInto(merged, e); 370 } 371 return merged; 372 } 373 function mergePropsN(props) { 374 if (props.length === 0) { 375 return EMPTY_PROPS; 376 } 377 if (props.length === 1) { 378 return createInitialMergedProps(props[0]); 379 } 380 let merged = createInitialMergedProps(props[0]); 381 for (let i = 1; i < props.length; i += 1) { 382 merged = mergeInto(merged, props[i]); 383 } 384 return merged; 385 } 386 function createInitialMergedProps(inputProps) { 387 if (isPropsGetter(inputProps)) { 388 return { 389 ...inputProps(EMPTY_PROPS) 390 }; 391 } 392 return copyInitialProps(inputProps); 393 } 394 function mergeInto(merged, inputProps) { 395 if (isPropsGetter(inputProps)) { 396 return inputProps(merged); 397 } 398 return mutablyMergeInto(merged, inputProps); 399 } 400 function copyInitialProps(inputProps) { 401 const copiedProps = { 402 ...inputProps 403 }; 404 for (const propName in copiedProps) { 405 const propValue = copiedProps[propName]; 406 if (isEventHandler(propName, propValue)) { 407 copiedProps[propName] = wrapEventHandler(propValue); 408 } 409 } 410 return copiedProps; 411 } 412 function mutablyMergeInto(mergedProps, externalProps) { 413 if (!externalProps) { 414 return mergedProps; 415 } 416 for (const propName in externalProps) { 417 const externalPropValue = externalProps[propName]; 418 switch (propName) { 419 case "style": { 420 mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue); 421 break; 422 } 423 case "className": { 424 mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue); 425 break; 426 } 427 default: { 428 if (isEventHandler(propName, externalPropValue)) { 429 mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue); 430 } else { 431 mergedProps[propName] = externalPropValue; 432 } 433 } 434 } 435 } 436 return mergedProps; 437 } 438 function isEventHandler(key, value) { 439 const code0 = key.charCodeAt(0); 440 const code1 = key.charCodeAt(1); 441 const code2 = key.charCodeAt(2); 442 return code0 === 111 && code1 === 110 && code2 >= 65 && code2 <= 90 && (typeof value === "function" || typeof value === "undefined"); 443 } 444 function isPropsGetter(inputProps) { 445 return typeof inputProps === "function"; 446 } 447 function mergeEventHandlers(ourHandler, theirHandler) { 448 if (!theirHandler) { 449 return ourHandler; 450 } 451 if (!ourHandler) { 452 return wrapEventHandler(theirHandler); 453 } 454 return (...args) => { 455 const event = args[0]; 456 if (isSyntheticEvent(event)) { 457 const baseUIEvent = event; 458 makeEventPreventable(baseUIEvent); 459 const result2 = theirHandler(...args); 460 if (!baseUIEvent.baseUIHandlerPrevented) { 461 ourHandler?.(...args); 462 } 463 return result2; 464 } 465 const result = theirHandler(...args); 466 ourHandler?.(...args); 467 return result; 468 }; 469 } 470 function wrapEventHandler(handler) { 471 if (!handler) { 472 return handler; 473 } 474 return (...args) => { 475 const event = args[0]; 476 if (isSyntheticEvent(event)) { 477 makeEventPreventable(event); 478 } 479 return handler(...args); 480 }; 481 } 482 function makeEventPreventable(event) { 483 event.preventBaseUIHandler = () => { 484 event.baseUIHandlerPrevented = true; 485 }; 486 return event; 487 } 488 function mergeClassNames(ourClassName, theirClassName) { 489 if (theirClassName) { 490 if (ourClassName) { 491 return theirClassName + " " + ourClassName; 492 } 493 return theirClassName; 494 } 495 return ourClassName; 496 } 497 function isSyntheticEvent(event) { 498 return event != null && typeof event === "object" && "nativeEvent" in event; 499 } 500 501 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useRenderElement.mjs 502 var import_react = __toESM(require_react(), 1); 503 function useRenderElement(element, componentProps, params = {}) { 504 let renderProp = componentProps.render; 505 if (params.enabled !== false) { 506 renderProp = unwrapLazyRenderProp(renderProp); 507 } 508 const outProps = useRenderElementProps(componentProps, params, renderProp); 509 if (params.enabled === false) { 510 return null; 511 } 512 const state = params.state ?? EMPTY_OBJECT; 513 return evaluateRenderProp(element, renderProp, outProps, state); 514 } 515 function useRenderElementProps(componentProps, params, renderProp) { 516 const { 517 className: classNameProp, 518 style: styleProp 519 } = componentProps; 520 const { 521 state = EMPTY_OBJECT, 522 ref, 523 props, 524 stateAttributesMapping: stateAttributesMapping2, 525 enabled = true 526 } = params; 527 const className = enabled ? resolveClassName(classNameProp, state) : void 0; 528 const style = enabled ? resolveStyle(styleProp, state) : void 0; 529 const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping2) : EMPTY_OBJECT; 530 const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : void 0; 531 const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT; 532 if (typeof document !== "undefined") { 533 if (!enabled) { 534 void useMergedRefs(null, null); 535 } else if (Array.isArray(ref)) { 536 outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]); 537 } else { 538 outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref); 539 } 540 } 541 if (!enabled) { 542 return EMPTY_OBJECT; 543 } 544 if (className !== void 0) { 545 outProps.className = mergeClassNames(outProps.className, className); 546 } 547 if (style !== void 0) { 548 outProps.style = mergeObjects(outProps.style, style); 549 } 550 return outProps; 551 } 552 function resolveRenderFunctionProps(props) { 553 if (Array.isArray(props)) { 554 return mergePropsN(props); 555 } 556 return mergeProps(void 0, props); 557 } 558 var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"); 559 var COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/; 560 var LOWERCASE_CHARACTER_PATTERN = /[a-z]/; 561 function unwrapLazyRenderProp(render2) { 562 if (render2?.$$typeof !== REACT_LAZY_TYPE) { 563 return render2; 564 } 565 const unwrapped = React4.Children.toArray(render2)[0]; 566 return /* @__PURE__ */ React4.isValidElement(unwrapped) ? unwrapped : render2; 567 } 568 function evaluateRenderProp(element, render2, props, state) { 569 if (render2) { 570 if (typeof render2 === "function") { 571 if (true) { 572 warnIfRenderPropLooksLikeComponent(render2); 573 } 574 return render2(props, state); 575 } 576 const mergedProps = mergeProps(props, render2.props); 577 mergedProps.ref = props.ref; 578 if (true) { 579 if (!/* @__PURE__ */ React4.isValidElement(render2)) { 580 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")); 581 } 582 } 583 return /* @__PURE__ */ React4.cloneElement(render2, mergedProps); 584 } 585 return renderTag(element, props); 586 } 587 function warnIfRenderPropLooksLikeComponent(renderFn) { 588 const functionName = renderFn.name; 589 if (functionName.length === 0) { 590 return; 591 } 592 if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) { 593 return; 594 } 595 if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) { 596 return; 597 } 598 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"); 599 } 600 function renderTag(Tag, props) { 601 if (Tag === "button") { 602 return /* @__PURE__ */ (0, import_react.createElement)("button", { 603 type: "button", 604 ...props, 605 key: props.key 606 }); 607 } 608 if (Tag === "img") { 609 return /* @__PURE__ */ (0, import_react.createElement)("img", { 610 alt: "", 611 ...props, 612 key: props.key 613 }); 614 } 615 return /* @__PURE__ */ React4.createElement(Tag, props); 616 } 617 618 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/avatar/root/AvatarRootContext.mjs 619 var React5 = __toESM(require_react(), 1); 620 var AvatarRootContext = /* @__PURE__ */ React5.createContext(void 0); 621 if (true) AvatarRootContext.displayName = "AvatarRootContext"; 622 function useAvatarRootContext() { 623 const context = React5.useContext(AvatarRootContext); 624 if (context === void 0) { 625 throw new Error(true ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." : formatErrorMessage_default(13)); 626 } 627 return context; 628 } 629 630 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/avatar/root/stateAttributesMapping.mjs 631 var avatarStateAttributesMapping = { 632 imageLoadingStatus: () => null 633 }; 634 635 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/avatar/root/AvatarRoot.mjs 636 var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1); 637 var AvatarRoot = /* @__PURE__ */ React6.forwardRef(function AvatarRoot2(componentProps, forwardedRef) { 638 const { 639 className, 640 render: render2, 641 style, 642 ...elementProps 643 } = componentProps; 644 const [imageLoadingStatus, setImageLoadingStatus] = React6.useState("idle"); 645 const state = { 646 imageLoadingStatus 647 }; 648 const contextValue = React6.useMemo(() => ({ 649 imageLoadingStatus, 650 setImageLoadingStatus 651 }), [imageLoadingStatus, setImageLoadingStatus]); 652 const element = useRenderElement("span", componentProps, { 653 state, 654 ref: forwardedRef, 655 props: elementProps, 656 stateAttributesMapping: avatarStateAttributesMapping 657 }); 658 return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarRootContext.Provider, { 659 value: contextValue, 660 children: element 661 }); 662 }); 663 if (true) AvatarRoot.displayName = "AvatarRoot"; 664 665 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/avatar/image/AvatarImage.mjs 666 var React13 = __toESM(require_react(), 1); 667 668 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/safeReact.mjs 669 var React7 = __toESM(require_react(), 1); 670 var SafeReact = { 671 ...React7 672 }; 673 674 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useStableCallback.mjs 675 var useInsertionEffect = SafeReact.useInsertionEffect; 676 var useSafeInsertionEffect = ( 677 // React 17 doesn't have useInsertionEffect. 678 useInsertionEffect && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late. 679 useInsertionEffect !== SafeReact.useLayoutEffect ? useInsertionEffect : (fn) => fn() 680 ); 681 function useStableCallback(callback) { 682 const stable = useRefWithInit(createStableCallback).current; 683 stable.next = callback; 684 useSafeInsertionEffect(stable.effect); 685 return stable.trampoline; 686 } 687 function createStableCallback() { 688 const stable = { 689 next: void 0, 690 callback: assertNotCalled, 691 trampoline: (...args) => stable.callback?.(...args), 692 effect: () => { 693 stable.callback = stable.next; 694 } 695 }; 696 return stable; 697 } 698 function assertNotCalled() { 699 if (true) { 700 throw ( 701 /* minify-error-disabled */ 702 new Error("Base UI: Cannot call an event handler while rendering.") 703 ); 704 } 705 } 706 707 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useIsoLayoutEffect.mjs 708 var React8 = __toESM(require_react(), 1); 709 var noop = () => { 710 }; 711 var useIsoLayoutEffect = typeof document !== "undefined" ? React8.useLayoutEffect : noop; 712 713 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useOpenChangeComplete.mjs 714 var React10 = __toESM(require_react(), 1); 715 716 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useAnimationsFinished.mjs 717 var ReactDOM = __toESM(require_react_dom(), 1); 718 719 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useOnMount.mjs 720 var React9 = __toESM(require_react(), 1); 721 function useOnMount(fn) { 722 React9.useEffect(fn, EMPTY_ARRAY); 723 } 724 725 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useAnimationFrame.mjs 726 var EMPTY = null; 727 var LAST_RAF = globalThis.requestAnimationFrame; 728 var Scheduler = class { 729 /* This implementation uses an array as a backing data-structure for frame callbacks. 730 * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it 731 * never calls the native `cancelAnimationFrame` if there are no frames left. This can 732 * be much more efficient if there is a call pattern that alterns as 733 * "request-cancel-request-cancel-…". 734 * But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation 735 * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */ 736 callbacks = []; 737 callbacksCount = 0; 738 nextId = 1; 739 startId = 1; 740 isScheduled = false; 741 tick = (timestamp) => { 742 this.isScheduled = false; 743 const currentCallbacks = this.callbacks; 744 const currentCallbacksCount = this.callbacksCount; 745 this.callbacks = []; 746 this.callbacksCount = 0; 747 this.startId = this.nextId; 748 if (currentCallbacksCount > 0) { 749 for (let i = 0; i < currentCallbacks.length; i += 1) { 750 currentCallbacks[i]?.(timestamp); 751 } 752 } 753 }; 754 request(fn) { 755 const id = this.nextId; 756 this.nextId += 1; 757 this.callbacks.push(fn); 758 this.callbacksCount += 1; 759 const didRAFChange = LAST_RAF !== requestAnimationFrame && (LAST_RAF = requestAnimationFrame, true); 760 if (!this.isScheduled || didRAFChange) { 761 requestAnimationFrame(this.tick); 762 this.isScheduled = true; 763 } 764 return id; 765 } 766 cancel(id) { 767 const index = id - this.startId; 768 if (index < 0 || index >= this.callbacks.length) { 769 return; 770 } 771 if (this.callbacks[index] === null) { 772 return; 773 } 774 this.callbacks[index] = null; 775 this.callbacksCount -= 1; 776 } 777 }; 778 var scheduler = new Scheduler(); 779 var AnimationFrame = class _AnimationFrame { 780 static create() { 781 return new _AnimationFrame(); 782 } 783 static request(fn) { 784 return scheduler.request(fn); 785 } 786 static cancel(id) { 787 return scheduler.cancel(id); 788 } 789 currentId = EMPTY; 790 /** 791 * Executes `fn` after `delay`, clearing any previously scheduled call. 792 */ 793 request(fn) { 794 this.cancel(); 795 this.currentId = scheduler.request(() => { 796 this.currentId = EMPTY; 797 fn(); 798 }); 799 } 800 cancel = () => { 801 if (this.currentId !== EMPTY) { 802 scheduler.cancel(this.currentId); 803 this.currentId = EMPTY; 804 } 805 }; 806 disposeEffect = () => { 807 return this.cancel; 808 }; 809 }; 810 function useAnimationFrame() { 811 const timeout = useRefWithInit(AnimationFrame.create).current; 812 useOnMount(timeout.disposeEffect); 813 return timeout; 814 } 815 816 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/resolveRef.mjs 817 function resolveRef(maybeRef) { 818 if (maybeRef == null) { 819 return maybeRef; 820 } 821 return "current" in maybeRef ? maybeRef.current : maybeRef; 822 } 823 824 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/getFiniteAnimations.mjs 825 function getFiniteAnimations(element, options) { 826 return element.getAnimations(options).filter((animation) => { 827 const timing = animation.effect?.getTiming(); 828 return timing?.duration !== Infinity && timing?.iterations !== Infinity; 829 }); 830 } 831 832 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/TransitionStatusDataAttributes.mjs 833 var startingStyle = "data-starting-style"; 834 var endingStyle = "data-ending-style"; 835 836 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useAnimationsFinished.mjs 837 var pendingCallbacks = null; 838 function flushBeforePaint(fn) { 839 if (!pendingCallbacks) { 840 const callbacks = []; 841 pendingCallbacks = callbacks; 842 queueMicrotask(() => { 843 pendingCallbacks = null; 844 ReactDOM.flushSync(() => { 845 for (const callback of callbacks) { 846 callback(); 847 } 848 }); 849 }); 850 } 851 pendingCallbacks.push(fn); 852 } 853 function useAnimationsFinished(elementOrRef, waitForStartingStyleRemoved = false, batch = false) { 854 const frame = useAnimationFrame(); 855 return useStableCallback((fnToExecute, signal = null) => { 856 frame.cancel(); 857 const element = resolveRef(elementOrRef); 858 if (element == null) { 859 return; 860 } 861 const resolvedElement = element; 862 const done = () => { 863 if (!batch) { 864 ReactDOM.flushSync(fnToExecute); 865 return; 866 } 867 flushBeforePaint(() => { 868 if (!signal?.aborted) { 869 fnToExecute(); 870 } 871 }); 872 }; 873 if (typeof resolvedElement.getAnimations !== "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) { 874 fnToExecute(); 875 return; 876 } 877 function exec() { 878 Promise.all(getFiniteAnimations(resolvedElement).map((animation) => animation.finished.then(NOOP))).then(() => { 879 if (!signal?.aborted) { 880 done(); 881 } 882 }, () => { 883 if (signal?.aborted) { 884 return; 885 } 886 const currentAnimations = getFiniteAnimations(resolvedElement); 887 if (currentAnimations.some((animation) => animation.pending || animation.playState !== "finished")) { 888 exec(); 889 return; 890 } 891 done(); 892 }); 893 } 894 if (waitForStartingStyleRemoved) { 895 const startingStyleAttribute = startingStyle; 896 if (!resolvedElement.hasAttribute(startingStyleAttribute)) { 897 frame.request(exec); 898 return; 899 } 900 const attributeObserver = new MutationObserver(() => { 901 if (!resolvedElement.hasAttribute(startingStyleAttribute)) { 902 attributeObserver.disconnect(); 903 exec(); 904 } 905 }); 906 attributeObserver.observe(resolvedElement, { 907 attributes: true, 908 attributeFilter: [startingStyleAttribute] 909 }); 910 signal?.addEventListener("abort", () => attributeObserver.disconnect(), { 911 once: true 912 }); 913 return; 914 } 915 frame.request(exec); 916 }); 917 } 918 919 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useOpenChangeComplete.mjs 920 function useOpenChangeComplete(parameters) { 921 const { 922 enabled = true, 923 open, 924 ref, 925 batch = false, 926 onComplete: onCompleteParam 927 } = parameters; 928 const onComplete = useStableCallback(onCompleteParam); 929 const runOnceAnimationsFinish = useAnimationsFinished(ref, open, batch); 930 React10.useEffect(() => { 931 if (!enabled) { 932 return void 0; 933 } 934 const abortController = new AbortController(); 935 runOnceAnimationsFinish(onComplete, abortController.signal); 936 return () => { 937 abortController.abort(); 938 }; 939 }, [enabled, open, onComplete, runOnceAnimationsFinish]); 940 } 941 942 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/stateAttributesMapping.mjs 943 var STARTING_HOOK = { 944 [startingStyle]: "" 945 }; 946 var ENDING_HOOK = { 947 [endingStyle]: "" 948 }; 949 var transitionStatusMapping = { 950 transitionStatus(value) { 951 if (value === "starting") { 952 return STARTING_HOOK; 953 } 954 if (value === "ending") { 955 return ENDING_HOOK; 956 } 957 return null; 958 } 959 }; 960 961 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useTransitionStatus.mjs 962 var React11 = __toESM(require_react(), 1); 963 function useTransitionStatus(open, enableIdleState = false, deferEndingState = false, animateInitialOpen = false) { 964 const [transitionStatus, setTransitionStatus] = React11.useState(open && enableIdleState ? "idle" : void 0); 965 const [mounted, setMounted] = React11.useState(open && !animateInitialOpen); 966 if (open && !mounted) { 967 setMounted(true); 968 setTransitionStatus("starting"); 969 } 970 if (!open && mounted && transitionStatus !== "ending" && !deferEndingState) { 971 setTransitionStatus("ending"); 972 } 973 if (!open && !mounted && transitionStatus === "ending") { 974 setTransitionStatus(void 0); 975 } 976 useIsoLayoutEffect(() => { 977 if (!open && mounted && transitionStatus !== "ending" && deferEndingState) { 978 const frame = AnimationFrame.request(() => { 979 setTransitionStatus("ending"); 980 }); 981 return () => { 982 AnimationFrame.cancel(frame); 983 }; 984 } 985 return void 0; 986 }, [open, mounted, transitionStatus, deferEndingState]); 987 useIsoLayoutEffect(() => { 988 if (!open || enableIdleState || transitionStatus === void 0) { 989 return void 0; 990 } 991 const frame = AnimationFrame.request(() => { 992 setTransitionStatus(void 0); 993 }); 994 return () => { 995 AnimationFrame.cancel(frame); 996 }; 997 }, [enableIdleState, open, transitionStatus]); 998 useIsoLayoutEffect(() => { 999 if (!open || !enableIdleState) { 1000 return void 0; 1001 } 1002 if (open && mounted && transitionStatus !== "idle") { 1003 setTransitionStatus("starting"); 1004 } 1005 const frame = AnimationFrame.request(() => { 1006 setTransitionStatus("idle"); 1007 }); 1008 return () => { 1009 AnimationFrame.cancel(frame); 1010 }; 1011 }, [enableIdleState, open, mounted, transitionStatus]); 1012 return { 1013 mounted, 1014 setMounted, 1015 transitionStatus 1016 }; 1017 } 1018 1019 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/avatar/image/useImageLoadingStatus.mjs 1020 var React12 = __toESM(require_react(), 1); 1021 function useImageLoadingStatus(src, { 1022 referrerPolicy, 1023 crossOrigin, 1024 sizes, 1025 srcSet 1026 }, enabled) { 1027 const state = React12.useState("idle"); 1028 const setLoadingStatus = state[1]; 1029 useIsoLayoutEffect(() => { 1030 if (!enabled) { 1031 return NOOP; 1032 } 1033 if (!src && !srcSet) { 1034 setLoadingStatus("error"); 1035 return NOOP; 1036 } 1037 let isMounted = true; 1038 const image = new window.Image(); 1039 const updateStatus = (status) => () => { 1040 if (!isMounted) { 1041 return; 1042 } 1043 setLoadingStatus(status); 1044 }; 1045 setLoadingStatus("loading"); 1046 image.onload = updateStatus("loaded"); 1047 image.onerror = updateStatus("error"); 1048 if (referrerPolicy) { 1049 image.referrerPolicy = referrerPolicy; 1050 } 1051 image.crossOrigin = crossOrigin ?? null; 1052 if (sizes) { 1053 image.sizes = sizes; 1054 } 1055 if (srcSet) { 1056 image.srcset = srcSet; 1057 } 1058 if (src) { 1059 image.src = src; 1060 } 1061 if (image.complete) { 1062 setLoadingStatus(image.naturalWidth > 0 ? "loaded" : "error"); 1063 } 1064 return () => { 1065 isMounted = false; 1066 }; 1067 }, [enabled, src, srcSet, sizes, crossOrigin, referrerPolicy, setLoadingStatus]); 1068 return state; 1069 } 1070 1071 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/avatar/image/AvatarImage.mjs 1072 var stateAttributesMapping = { 1073 ...avatarStateAttributesMapping, 1074 ...transitionStatusMapping 1075 }; 1076 var AvatarImage = /* @__PURE__ */ React13.forwardRef(function AvatarImage2(componentProps, forwardedRef) { 1077 const { 1078 className, 1079 render: render2, 1080 onLoadingStatusChange: onLoadingStatusChangeProp, 1081 keepMounted = false, 1082 style, 1083 // Split out so they can be applied after every other prop. React 17 and 18 set attributes in 1084 // props order, and Safari and Firefox start fetching as soon as `src` lands, ignoring a 1085 // `loading` or `srcSet` that arrives after it. React 19 orders these itself. 1086 sizes, 1087 srcSet, 1088 src, 1089 ...elementProps 1090 } = componentProps; 1091 const { 1092 setImageLoadingStatus: setRootImageLoadingStatus 1093 } = useAvatarRootContext(); 1094 const [imageLoadingStatus, setImageLoadingStatus] = useImageLoadingStatus(src, componentProps, !keepMounted); 1095 const isVisible = imageLoadingStatus === "loaded"; 1096 const { 1097 mounted, 1098 transitionStatus, 1099 setMounted 1100 } = useTransitionStatus(isVisible); 1101 const imageRef = React13.useRef(null); 1102 const initialCommitRef = React13.useRef(true); 1103 useIsoLayoutEffect(() => { 1104 if (!keepMounted) { 1105 return; 1106 } 1107 const isInitialCommit = initialCommitRef.current; 1108 initialCommitRef.current = false; 1109 const image = imageRef.current; 1110 if (!image) { 1111 return; 1112 } 1113 if (!image.complete) { 1114 setImageLoadingStatus("loading"); 1115 return; 1116 } 1117 const status = image.naturalWidth > 0 ? "loaded" : "error"; 1118 setImageLoadingStatus(status); 1119 if (status === "loaded" && isInitialCommit) { 1120 setMounted(true); 1121 } 1122 }, [keepMounted, src, srcSet, sizes, elementProps.crossOrigin, elementProps.referrerPolicy, render2, setImageLoadingStatus, setMounted]); 1123 const renderedStatusProps = keepMounted ? { 1124 // Presence no longer implies the image loaded, so the not-loaded states need their own 1125 // styling hooks. Scoped to `keepMounted` so the default mode, where the element only 1126 // exists once loaded, doesn't pick them up while it animates out. 1127 "data-loading": imageLoadingStatus === "loading" ? "" : void 0, 1128 "data-error": imageLoadingStatus === "error" ? "" : void 0, 1129 // Until the image is displayable, the fallback owns the accessible name; without this 1130 // both would be exposed to assistive technology at once (including in server HTML). 1131 "aria-hidden": imageLoadingStatus !== "loaded" || void 0, 1132 onLoad() { 1133 setImageLoadingStatus("loaded"); 1134 }, 1135 onError() { 1136 setImageLoadingStatus("error"); 1137 } 1138 } : void 0; 1139 const handleLoadingStatusChange = useStableCallback((status) => { 1140 onLoadingStatusChangeProp?.(status); 1141 setRootImageLoadingStatus(status); 1142 }); 1143 useIsoLayoutEffect(() => { 1144 if (imageLoadingStatus !== "idle") { 1145 handleLoadingStatusChange(imageLoadingStatus); 1146 } 1147 }, [imageLoadingStatus, handleLoadingStatusChange]); 1148 useIsoLayoutEffect(() => { 1149 return () => setRootImageLoadingStatus("idle"); 1150 }, [setRootImageLoadingStatus]); 1151 useOpenChangeComplete({ 1152 enabled: !isVisible, 1153 open: isVisible, 1154 ref: imageRef, 1155 onComplete() { 1156 if (!isVisible) { 1157 setMounted(false); 1158 } 1159 } 1160 }); 1161 const state = { 1162 imageLoadingStatus, 1163 // The element never unmounts with `keepMounted`, so an exit transition would play and then 1164 // reverse itself once the status is cleared. `data-loading`/`data-error` cover that state. 1165 transitionStatus: keepMounted && transitionStatus === "ending" ? void 0 : transitionStatus 1166 }; 1167 const shouldRender = keepMounted || mounted; 1168 const sourceProps = {}; 1169 if (sizes !== void 0) { 1170 sourceProps.sizes = sizes; 1171 } 1172 if (srcSet !== void 0) { 1173 sourceProps.srcSet = srcSet; 1174 } 1175 if (src !== void 0) { 1176 sourceProps.src = src; 1177 } 1178 const element = useRenderElement("img", componentProps, { 1179 state, 1180 ref: [forwardedRef, imageRef], 1181 props: [renderedStatusProps, elementProps, sourceProps], 1182 stateAttributesMapping, 1183 enabled: shouldRender 1184 }); 1185 if (!shouldRender) { 1186 return null; 1187 } 1188 return element; 1189 }); 1190 if (true) AvatarImage.displayName = "AvatarImage"; 1191 1192 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/avatar/fallback/AvatarFallback.mjs 1193 var React14 = __toESM(require_react(), 1); 1194 1195 // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useTimeout.mjs 1196 var EMPTY2 = 0; 1197 var Timeout = class _Timeout { 1198 static create() { 1199 return new _Timeout(); 1200 } 1201 currentId = EMPTY2; 1202 /** 1203 * Executes `fn` after `delay`, clearing any previously scheduled call. 1204 */ 1205 start(delay, fn) { 1206 this.clear(); 1207 this.currentId = setTimeout(() => { 1208 this.currentId = EMPTY2; 1209 fn(); 1210 }, delay); 1211 } 1212 isStarted() { 1213 return this.currentId !== EMPTY2; 1214 } 1215 clear = () => { 1216 if (this.currentId !== EMPTY2) { 1217 clearTimeout(this.currentId); 1218 this.currentId = EMPTY2; 1219 } 1220 }; 1221 disposeEffect = () => { 1222 return this.clear; 1223 }; 1224 }; 1225 function useTimeout() { 1226 const timeout = useRefWithInit(Timeout.create).current; 1227 useOnMount(timeout.disposeEffect); 1228 return timeout; 1229 } 1230 1231 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/avatar/fallback/AvatarFallback.mjs 1232 var AvatarFallback = /* @__PURE__ */ React14.forwardRef(function AvatarFallback2(componentProps, forwardedRef) { 1233 const { 1234 className, 1235 render: render2, 1236 delay = 0, 1237 style, 1238 ...elementProps 1239 } = componentProps; 1240 const { 1241 imageLoadingStatus 1242 } = useAvatarRootContext(); 1243 const [delayPassed, setDelayPassed] = React14.useState(delay === 0); 1244 const timeout = useTimeout(); 1245 React14.useEffect(() => { 1246 if (delay > 0) { 1247 timeout.start(delay, () => setDelayPassed(true)); 1248 } else { 1249 setDelayPassed(true); 1250 } 1251 return timeout.clear; 1252 }, [timeout, delay]); 1253 const state = { 1254 imageLoadingStatus 1255 }; 1256 const element = useRenderElement("span", componentProps, { 1257 state, 1258 ref: forwardedRef, 1259 props: elementProps, 1260 stateAttributesMapping: avatarStateAttributesMapping, 1261 enabled: imageLoadingStatus !== "loaded" && (delay === 0 || delayPassed) 1262 }); 1263 return element; 1264 }); 1265 if (true) AvatarFallback.displayName = "AvatarFallback"; 1266 1267 // node_modules/.store/clsx@2.1.1-XOLP1vUL9vEGfpiXm37fAw/node_modules/clsx/dist/clsx.mjs 1268 function r(e) { 1269 var t, f, n = ""; 1270 if ("string" == typeof e || "number" == typeof e) n += e; 1271 else if ("object" == typeof e) if (Array.isArray(e)) { 1272 var o = e.length; 1273 for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f); 1274 } else for (f in e) e[f] && (n && (n += " "), n += f); 1275 return n; 1276 } 1277 function clsx() { 1278 for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t); 1279 return n; 1280 } 1281 var clsx_default = clsx; 1282 1283 // packages/ui/build-module/avatar/root.mjs 1284 var import_element = __toESM(require_element(), 1); 1285 1286 // packages/ui/build-module/avatar/dev-warnings.mjs 1287 var import_warning = __toESM(require_warning(), 1); 1288 function warnAvatarColor(color) { 1289 if (color === void 0) { 1290 return; 1291 } 1292 const tokens = color.match( 1293 /\/\*[\s\S]*?(?:\*\/|$)|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|(?:[-\w\u0080-\uFFFF]|\\(?:[\da-fA-F]{1,6}[ \t\r\n\f]?|[^\r\n\f]))+/g 1294 ); 1295 if (tokens?.some((token) => token.toLowerCase() === "currentcolor")) { 1296 (0, import_warning.default)( 1297 "Avatar.Root: `color` contains `currentColor`, which can produce insufficient contrast in colored fallbacks. Use a color that does not depend on the foreground." 1298 ); 1299 return; 1300 } 1301 if (typeof CSS === "undefined" || !CSS.supports) { 1302 return; 1303 } 1304 if (!CSS.supports("color", color)) { 1305 (0, import_warning.default)( 1306 "Avatar.Root: The browser does not support the `color` value. Use a valid CSS color supported by this browser." 1307 ); 1308 } else if ( 1309 // Browsers without relative colors retain the neutral fallback. 1310 CSS.supports("color", "rgb(from red r g b / 1)") && !CSS.supports("color", `rgb(from $color} r g b / 1)`) 1311 ) { 1312 (0, import_warning.default)( 1313 "Avatar.Root: `color` cannot be used as a colored fallback fill. Use an explicit CSS color instead of a CSS-wide keyword such as `inherit`." 1314 ); 1315 } 1316 } 1317 1318 // packages/ui/build-module/avatar/root.mjs 1319 var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1); 1320 var STYLE_HASH_ATTRIBUTE = "data-wp-hash"; 1321 function getRuntime() { 1322 const globalScope = globalThis; 1323 if (globalScope.__wpStyleRuntime) { 1324 return globalScope.__wpStyleRuntime; 1325 } 1326 globalScope.__wpStyleRuntime = { 1327 documents: /* @__PURE__ */ new Map(), 1328 styles: /* @__PURE__ */ new Map(), 1329 injectedStyles: /* @__PURE__ */ new WeakMap() 1330 }; 1331 if (typeof document !== "undefined") { 1332 registerDocument(document); 1333 } 1334 return globalScope.__wpStyleRuntime; 1335 } 1336 function documentContainsStyleHash(targetDocument, hash) { 1337 if (!targetDocument.head) { 1338 return false; 1339 } 1340 for (const style of targetDocument.head.querySelectorAll( 1341 `style[$STYLE_HASH_ATTRIBUTE}]` 1342 )) { 1343 if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) { 1344 return true; 1345 } 1346 } 1347 return false; 1348 } 1349 function injectStyle(targetDocument, hash, css) { 1350 if (!targetDocument.head) { 1351 return; 1352 } 1353 const runtime = getRuntime(); 1354 let injectedStyles = runtime.injectedStyles.get(targetDocument); 1355 if (!injectedStyles) { 1356 injectedStyles = /* @__PURE__ */ new Set(); 1357 runtime.injectedStyles.set(targetDocument, injectedStyles); 1358 } 1359 if (injectedStyles.has(hash)) { 1360 return; 1361 } 1362 if (documentContainsStyleHash(targetDocument, hash)) { 1363 injectedStyles.add(hash); 1364 return; 1365 } 1366 const style = targetDocument.createElement("style"); 1367 style.setAttribute(STYLE_HASH_ATTRIBUTE, hash); 1368 style.appendChild(targetDocument.createTextNode(css)); 1369 targetDocument.head.appendChild(style); 1370 injectedStyles.add(hash); 1371 } 1372 function registerDocument(targetDocument) { 1373 const runtime = getRuntime(); 1374 runtime.documents.set( 1375 targetDocument, 1376 (runtime.documents.get(targetDocument) ?? 0) + 1 1377 ); 1378 for (const [hash, css] of runtime.styles) { 1379 injectStyle(targetDocument, hash, css); 1380 } 1381 return () => { 1382 const count = runtime.documents.get(targetDocument); 1383 if (count === void 0) { 1384 return; 1385 } 1386 if (count <= 1) { 1387 runtime.documents.delete(targetDocument); 1388 return; 1389 } 1390 runtime.documents.set(targetDocument, count - 1); 1391 }; 1392 } 1393 function registerStyle(hash, css) { 1394 const runtime = getRuntime(); 1395 runtime.styles.set(hash, css); 1396 for (const targetDocument of runtime.documents.keys()) { 1397 injectStyle(targetDocument, hash, css); 1398 } 1399 } 1400 if (typeof process === "undefined" || true) { 1401 registerStyle("37477070fb", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.ccc29f9575c4c758__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}"); 1402 } 1403 var resets_default = { "box-sizing": "ccc29f9575c4c758__box-sizing" }; 1404 if (typeof process === "undefined" || true) { 1405 registerStyle("726f348f3f", "._78c10a0773e51a91__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)}._5b33aa2d48624b4f__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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-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,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-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)}}._980b3b4776ac8f81__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._43e478b4279a076c__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._698099e25b0fb1a6__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)._326aee4184d261fd__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}.e9576240835601ba__a,.e9576240835601ba__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 transparent);transition:var(--_gcd-a-transition,none)}._3f05789653864a73__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._3c72ff72abe57859__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._79d16267c15d9eb2__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}"); 1406 } 1407 var global_css_defense_default = { "button": "_78c10a0773e51a91__button", "input": "_5b33aa2d48624b4f__input", "textarea": "_980b3b4776ac8f81__textarea", "div": "_43e478b4279a076c__div", "p": "_698099e25b0fb1a6__p", "heading": "_326aee4184d261fd__heading", "a": "e9576240835601ba__a", "ol": "_3f05789653864a73__ol", "li": "_3c72ff72abe57859__li", "span": "_79d16267c15d9eb2__span" }; 1408 if (typeof process === "undefined" || true) { 1409 registerStyle("2657a3ab0c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a9728400af96db77__root{--_wp-ui-avatar-size:var(--wpds-dimension-size-md,32px);--_gcd-span-position:relative;--_gcd-span-display:inline-flex;--_gcd-span-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-span-font-size:var(--_wp-ui-avatar-font-size);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-sm,12px);align-items:center;background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);block-size:var(--_wp-ui-avatar-size);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:50%;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:inline-flex;flex-shrink:0;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--_wp-ui-avatar-font-size);font-weight:var(--wpds-typography-font-weight-emphasis,600);inline-size:var(--_wp-ui-avatar-size);justify-content:center;line-height:1;position:relative;vertical-align:middle}._81a33c129d7cbe31__has-color:after{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--_wp-ui-avatar-color);border-radius:inherit;content:"";inset:calc(var(--wpds-border-width-xs, 1px)*-1);pointer-events:none;position:absolute}._32e65dea77285874__is-square{border-radius:var(--wpds-border-radius-sm,2px)}._7d2020337343df5a__is-xs{--_wp-ui-avatar-size:var(--wpds-dimension-size-2xs,16px);--_wp-ui-avatar-font-size:calc(var(--_wp-ui-avatar-size)/2)}._216fb78a075c5ab4__is-sm{--_wp-ui-avatar-size:var(--wpds-dimension-size-sm,24px);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-xs,11px)}.b552ab04a3b94ae9__is-lg{--_wp-ui-avatar-size:var(--wpds-dimension-size-lg,40px);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-md,13px)}.f8a7646462ff80d1__is-xl{--_wp-ui-avatar-size:calc(var(--wpds-dimension-size-md, 32px)*2);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-xl,20px)}._411c43ac028fe4be__image,._7883f856336224e2__fallback{block-size:100%;border-radius:inherit;inline-size:100%;inset:0;position:absolute}._411c43ac028fe4be__image{object-fit:cover;@media not (prefers-reduced-motion){transition:opacity var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1));&[data-error],&[data-loading],&[data-starting-style]{opacity:0}}&[data-ending-style],&[data-error],&[data-loading]{visibility:hidden}}._7883f856336224e2__fallback{--_gcd-span-position:absolute;--_gcd-span-display:flex;align-items:center;display:flex;justify-content:center;overflow:hidden;white-space:nowrap;>svg{block-size:100%;flex-shrink:0;inline-size:100%}>.dc9b5131d4746aa6__person-icon{block-size:110%;color:var(--wpds-color-stroke-surface-neutral-strong,#8d8d8d);inline-size:110%;translate:0 15%}}@media not (forced-colors:active){@supports (color:rgb(from green r g b/1)) and (color:color(from green srgb-linear round(up,r) g b/1)){._81a33c129d7cbe31__has-color:has(>._7883f856336224e2__fallback){border:none}._81a33c129d7cbe31__has-color:has(>._7883f856336224e2__fallback):after{content:none}._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback{--_wp-ui-avatar-background:rgb(from var(--_wp-ui-avatar-color) clamp(0,r,255) clamp(0,g,255) clamp(0,b,255)/1);--_wp-ui-avatar-contrast-target:4.55;background-color:var(--_wp-ui-avatar-background)}._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback>.dc9b5131d4746aa6__person-icon{--_wp-ui-avatar-contrast-target:3.05}._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback,._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback>.dc9b5131d4746aa6__person-icon{--_wp-ui-avatar-luminance:calc(0.2126 * r + 0.7152 * g + 0.0722 * b);--_wp-ui-avatar-light-foreground:round(up,clamp(0,calc(0.17913 - var(--_wp-ui-avatar-luminance)),1));--_wp-ui-avatar-dark-tint:clamp(0,calc(((var(--_wp-ui-avatar-luminance) + 0.05)/var(--_wp-ui-avatar-contrast-target) - 0.05)/max(0.000001, var(--_wp-ui-avatar-luminance))),1);--_wp-ui-avatar-light-tint:clamp(0,calc((1.05 - var(--_wp-ui-avatar-contrast-target)*(var(--_wp-ui-avatar-luminance) + 0.05))/max(0.000001, 1 - var(--_wp-ui-avatar-luminance))),1);--_wp-ui-avatar-tint:calc(var(--_wp-ui-avatar-light-foreground)*var(--_wp-ui-avatar-light-tint) + (1 - var(--_wp-ui-avatar-light-foreground))*var(--_wp-ui-avatar-dark-tint));color:color(from var(--_wp-ui-avatar-background) srgb-linear calc(var(--_wp-ui-avatar-light-foreground) + (r - var(--_wp-ui-avatar-light-foreground)) * var(--_wp-ui-avatar-tint)) calc(var(--_wp-ui-avatar-light-foreground) + (g - var(--_wp-ui-avatar-light-foreground)) * var(--_wp-ui-avatar-tint)) calc(var(--_wp-ui-avatar-light-foreground) + (b - var(--_wp-ui-avatar-light-foreground)) * var(--_wp-ui-avatar-tint))/1)}}}}}'); 1410 } 1411 var style_default = { "root": "a9728400af96db77__root", "has-color": "_81a33c129d7cbe31__has-color", "is-square": "_32e65dea77285874__is-square", "is-xs": "_7d2020337343df5a__is-xs", "is-sm": "_216fb78a075c5ab4__is-sm", "is-lg": "b552ab04a3b94ae9__is-lg", "is-xl": "f8a7646462ff80d1__is-xl", "image": "_411c43ac028fe4be__image", "fallback": "_7883f856336224e2__fallback", "person-icon": "dc9b5131d4746aa6__person-icon" }; 1412 var Root = (0, import_element.forwardRef)( 1413 function AvatarRoot3({ size = "md", shape = "circle", color, className, style, ...props }, ref) { 1414 if (true) { 1415 warnAvatarColor(color); 1416 } 1417 const customProperties = color === void 0 ? style : { ...style, "--_wp-ui-avatar-color": color }; 1418 return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)( 1419 index_parts_exports.Root, 1420 { 1421 ref, 1422 style: customProperties, 1423 className: clsx_default( 1424 resets_default["box-sizing"], 1425 global_css_defense_default.span, 1426 style_default.root, 1427 style_default[`is-$size}`], 1428 shape === "square" && style_default["is-square"], 1429 color !== void 0 && style_default["has-color"], 1430 className 1431 ), 1432 ...props 1433 } 1434 ); 1435 } 1436 ); 1437 1438 // packages/ui/build-module/avatar/image.mjs 1439 var import_element2 = __toESM(require_element(), 1); 1440 var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1); 1441 var STYLE_HASH_ATTRIBUTE2 = "data-wp-hash"; 1442 function getRuntime2() { 1443 const globalScope = globalThis; 1444 if (globalScope.__wpStyleRuntime) { 1445 return globalScope.__wpStyleRuntime; 1446 } 1447 globalScope.__wpStyleRuntime = { 1448 documents: /* @__PURE__ */ new Map(), 1449 styles: /* @__PURE__ */ new Map(), 1450 injectedStyles: /* @__PURE__ */ new WeakMap() 1451 }; 1452 if (typeof document !== "undefined") { 1453 registerDocument2(document); 1454 } 1455 return globalScope.__wpStyleRuntime; 1456 } 1457 function documentContainsStyleHash2(targetDocument, hash) { 1458 if (!targetDocument.head) { 1459 return false; 1460 } 1461 for (const style of targetDocument.head.querySelectorAll( 1462 `style[$STYLE_HASH_ATTRIBUTE2}]` 1463 )) { 1464 if (style.getAttribute(STYLE_HASH_ATTRIBUTE2) === hash) { 1465 return true; 1466 } 1467 } 1468 return false; 1469 } 1470 function injectStyle2(targetDocument, hash, css) { 1471 if (!targetDocument.head) { 1472 return; 1473 } 1474 const runtime = getRuntime2(); 1475 let injectedStyles = runtime.injectedStyles.get(targetDocument); 1476 if (!injectedStyles) { 1477 injectedStyles = /* @__PURE__ */ new Set(); 1478 runtime.injectedStyles.set(targetDocument, injectedStyles); 1479 } 1480 if (injectedStyles.has(hash)) { 1481 return; 1482 } 1483 if (documentContainsStyleHash2(targetDocument, hash)) { 1484 injectedStyles.add(hash); 1485 return; 1486 } 1487 const style = targetDocument.createElement("style"); 1488 style.setAttribute(STYLE_HASH_ATTRIBUTE2, hash); 1489 style.appendChild(targetDocument.createTextNode(css)); 1490 targetDocument.head.appendChild(style); 1491 injectedStyles.add(hash); 1492 } 1493 function registerDocument2(targetDocument) { 1494 const runtime = getRuntime2(); 1495 runtime.documents.set( 1496 targetDocument, 1497 (runtime.documents.get(targetDocument) ?? 0) + 1 1498 ); 1499 for (const [hash, css] of runtime.styles) { 1500 injectStyle2(targetDocument, hash, css); 1501 } 1502 return () => { 1503 const count = runtime.documents.get(targetDocument); 1504 if (count === void 0) { 1505 return; 1506 } 1507 if (count <= 1) { 1508 runtime.documents.delete(targetDocument); 1509 return; 1510 } 1511 runtime.documents.set(targetDocument, count - 1); 1512 }; 1513 } 1514 function registerStyle2(hash, css) { 1515 const runtime = getRuntime2(); 1516 runtime.styles.set(hash, css); 1517 for (const targetDocument of runtime.documents.keys()) { 1518 injectStyle2(targetDocument, hash, css); 1519 } 1520 } 1521 if (typeof process === "undefined" || true) { 1522 registerStyle2("2657a3ab0c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a9728400af96db77__root{--_wp-ui-avatar-size:var(--wpds-dimension-size-md,32px);--_gcd-span-position:relative;--_gcd-span-display:inline-flex;--_gcd-span-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-span-font-size:var(--_wp-ui-avatar-font-size);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-sm,12px);align-items:center;background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);block-size:var(--_wp-ui-avatar-size);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:50%;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:inline-flex;flex-shrink:0;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--_wp-ui-avatar-font-size);font-weight:var(--wpds-typography-font-weight-emphasis,600);inline-size:var(--_wp-ui-avatar-size);justify-content:center;line-height:1;position:relative;vertical-align:middle}._81a33c129d7cbe31__has-color:after{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--_wp-ui-avatar-color);border-radius:inherit;content:"";inset:calc(var(--wpds-border-width-xs, 1px)*-1);pointer-events:none;position:absolute}._32e65dea77285874__is-square{border-radius:var(--wpds-border-radius-sm,2px)}._7d2020337343df5a__is-xs{--_wp-ui-avatar-size:var(--wpds-dimension-size-2xs,16px);--_wp-ui-avatar-font-size:calc(var(--_wp-ui-avatar-size)/2)}._216fb78a075c5ab4__is-sm{--_wp-ui-avatar-size:var(--wpds-dimension-size-sm,24px);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-xs,11px)}.b552ab04a3b94ae9__is-lg{--_wp-ui-avatar-size:var(--wpds-dimension-size-lg,40px);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-md,13px)}.f8a7646462ff80d1__is-xl{--_wp-ui-avatar-size:calc(var(--wpds-dimension-size-md, 32px)*2);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-xl,20px)}._411c43ac028fe4be__image,._7883f856336224e2__fallback{block-size:100%;border-radius:inherit;inline-size:100%;inset:0;position:absolute}._411c43ac028fe4be__image{object-fit:cover;@media not (prefers-reduced-motion){transition:opacity var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1));&[data-error],&[data-loading],&[data-starting-style]{opacity:0}}&[data-ending-style],&[data-error],&[data-loading]{visibility:hidden}}._7883f856336224e2__fallback{--_gcd-span-position:absolute;--_gcd-span-display:flex;align-items:center;display:flex;justify-content:center;overflow:hidden;white-space:nowrap;>svg{block-size:100%;flex-shrink:0;inline-size:100%}>.dc9b5131d4746aa6__person-icon{block-size:110%;color:var(--wpds-color-stroke-surface-neutral-strong,#8d8d8d);inline-size:110%;translate:0 15%}}@media not (forced-colors:active){@supports (color:rgb(from green r g b/1)) and (color:color(from green srgb-linear round(up,r) g b/1)){._81a33c129d7cbe31__has-color:has(>._7883f856336224e2__fallback){border:none}._81a33c129d7cbe31__has-color:has(>._7883f856336224e2__fallback):after{content:none}._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback{--_wp-ui-avatar-background:rgb(from var(--_wp-ui-avatar-color) clamp(0,r,255) clamp(0,g,255) clamp(0,b,255)/1);--_wp-ui-avatar-contrast-target:4.55;background-color:var(--_wp-ui-avatar-background)}._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback>.dc9b5131d4746aa6__person-icon{--_wp-ui-avatar-contrast-target:3.05}._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback,._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback>.dc9b5131d4746aa6__person-icon{--_wp-ui-avatar-luminance:calc(0.2126 * r + 0.7152 * g + 0.0722 * b);--_wp-ui-avatar-light-foreground:round(up,clamp(0,calc(0.17913 - var(--_wp-ui-avatar-luminance)),1));--_wp-ui-avatar-dark-tint:clamp(0,calc(((var(--_wp-ui-avatar-luminance) + 0.05)/var(--_wp-ui-avatar-contrast-target) - 0.05)/max(0.000001, var(--_wp-ui-avatar-luminance))),1);--_wp-ui-avatar-light-tint:clamp(0,calc((1.05 - var(--_wp-ui-avatar-contrast-target)*(var(--_wp-ui-avatar-luminance) + 0.05))/max(0.000001, 1 - var(--_wp-ui-avatar-luminance))),1);--_wp-ui-avatar-tint:calc(var(--_wp-ui-avatar-light-foreground)*var(--_wp-ui-avatar-light-tint) + (1 - var(--_wp-ui-avatar-light-foreground))*var(--_wp-ui-avatar-dark-tint));color:color(from var(--_wp-ui-avatar-background) srgb-linear calc(var(--_wp-ui-avatar-light-foreground) + (r - var(--_wp-ui-avatar-light-foreground)) * var(--_wp-ui-avatar-tint)) calc(var(--_wp-ui-avatar-light-foreground) + (g - var(--_wp-ui-avatar-light-foreground)) * var(--_wp-ui-avatar-tint)) calc(var(--_wp-ui-avatar-light-foreground) + (b - var(--_wp-ui-avatar-light-foreground)) * var(--_wp-ui-avatar-tint))/1)}}}}}'); 1523 } 1524 var style_default2 = { "root": "a9728400af96db77__root", "has-color": "_81a33c129d7cbe31__has-color", "is-square": "_32e65dea77285874__is-square", "is-xs": "_7d2020337343df5a__is-xs", "is-sm": "_216fb78a075c5ab4__is-sm", "is-lg": "b552ab04a3b94ae9__is-lg", "is-xl": "f8a7646462ff80d1__is-xl", "image": "_411c43ac028fe4be__image", "fallback": "_7883f856336224e2__fallback", "person-icon": "dc9b5131d4746aa6__person-icon" }; 1525 var Image = (0, import_element2.forwardRef)( 1526 function AvatarImage3({ className, ...props }, ref) { 1527 return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)( 1528 index_parts_exports.Image, 1529 { 1530 ref, 1531 className: clsx_default(style_default2.image, className), 1532 ...props 1533 } 1534 ); 1535 } 1536 ); 1537 1538 // packages/ui/build-module/avatar/fallback.mjs 1539 var import_element5 = __toESM(require_element(), 1); 1540 var import_primitives6 = __toESM(require_primitives(), 1); 1541 1542 // packages/ui/build-module/icon/icon.mjs 1543 var import_element3 = __toESM(require_element(), 1); 1544 var import_primitives5 = __toESM(require_primitives(), 1); 1545 var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1); 1546 var Icon = (0, import_element3.forwardRef)( 1547 function UnforwardedIcon({ icon, size = 24, style, ...restProps }, ref) { 1548 const mergedStyle = icon.props.style || style ? { ...icon.props.style, ...style } : void 0; 1549 return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)( 1550 import_primitives5.SVG, 1551 { 1552 ref, 1553 ...icon.props, 1554 ...restProps, 1555 ...mergedStyle ? { style: mergedStyle } : {}, 1556 width: size, 1557 height: size 1558 } 1559 ); 1560 } 1561 ); 1562 1563 // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/use-render/useRender.mjs 1564 function useRender(params) { 1565 return useRenderElement(params.defaultTagName ?? "div", params, params); 1566 } 1567 1568 // packages/ui/build-module/avatar/fallback-with-loading-delay.mjs 1569 var import_element4 = __toESM(require_element(), 1); 1570 var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1); 1571 function FallbackElement({ 1572 elementProps, 1573 render: render2, 1574 state, 1575 enabled 1576 }) { 1577 return useRender({ 1578 defaultTagName: "span", 1579 // Forward the original state without adding useRender's automatic data attributes. 1580 render: typeof render2 === "function" ? (props) => render2(props, state) : render2, 1581 props: { ...elementProps }, 1582 enabled 1583 }); 1584 } 1585 var FallbackWithLoadingDelay = (0, import_element4.forwardRef)(function AvatarFallbackWithLoadingDelay({ delay = 0, render: render2, ...props }, ref) { 1586 const [delayPassed, setDelayPassed] = (0, import_element4.useState)(delay === 0); 1587 (0, import_element4.useEffect)(() => { 1588 if (delay === 0) { 1589 setDelayPassed(true); 1590 return; 1591 } 1592 const timeout = setTimeout(() => setDelayPassed(true), delay); 1593 return () => clearTimeout(timeout); 1594 }, [delay]); 1595 return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)( 1596 index_parts_exports.Fallback, 1597 { 1598 ...props, 1599 ref, 1600 delay: 0, 1601 render: (elementProps, state) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)( 1602 FallbackElement, 1603 { 1604 elementProps, 1605 render: render2, 1606 state, 1607 enabled: state.imageLoadingStatus !== "loading" || delayPassed 1608 } 1609 ) 1610 } 1611 ); 1612 }); 1613 1614 // packages/ui/build-module/avatar/fallback.mjs 1615 var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1); 1616 var STYLE_HASH_ATTRIBUTE3 = "data-wp-hash"; 1617 function getRuntime3() { 1618 const globalScope = globalThis; 1619 if (globalScope.__wpStyleRuntime) { 1620 return globalScope.__wpStyleRuntime; 1621 } 1622 globalScope.__wpStyleRuntime = { 1623 documents: /* @__PURE__ */ new Map(), 1624 styles: /* @__PURE__ */ new Map(), 1625 injectedStyles: /* @__PURE__ */ new WeakMap() 1626 }; 1627 if (typeof document !== "undefined") { 1628 registerDocument3(document); 1629 } 1630 return globalScope.__wpStyleRuntime; 1631 } 1632 function documentContainsStyleHash3(targetDocument, hash) { 1633 if (!targetDocument.head) { 1634 return false; 1635 } 1636 for (const style of targetDocument.head.querySelectorAll( 1637 `style[$STYLE_HASH_ATTRIBUTE3}]` 1638 )) { 1639 if (style.getAttribute(STYLE_HASH_ATTRIBUTE3) === hash) { 1640 return true; 1641 } 1642 } 1643 return false; 1644 } 1645 function injectStyle3(targetDocument, hash, css) { 1646 if (!targetDocument.head) { 1647 return; 1648 } 1649 const runtime = getRuntime3(); 1650 let injectedStyles = runtime.injectedStyles.get(targetDocument); 1651 if (!injectedStyles) { 1652 injectedStyles = /* @__PURE__ */ new Set(); 1653 runtime.injectedStyles.set(targetDocument, injectedStyles); 1654 } 1655 if (injectedStyles.has(hash)) { 1656 return; 1657 } 1658 if (documentContainsStyleHash3(targetDocument, hash)) { 1659 injectedStyles.add(hash); 1660 return; 1661 } 1662 const style = targetDocument.createElement("style"); 1663 style.setAttribute(STYLE_HASH_ATTRIBUTE3, hash); 1664 style.appendChild(targetDocument.createTextNode(css)); 1665 targetDocument.head.appendChild(style); 1666 injectedStyles.add(hash); 1667 } 1668 function registerDocument3(targetDocument) { 1669 const runtime = getRuntime3(); 1670 runtime.documents.set( 1671 targetDocument, 1672 (runtime.documents.get(targetDocument) ?? 0) + 1 1673 ); 1674 for (const [hash, css] of runtime.styles) { 1675 injectStyle3(targetDocument, hash, css); 1676 } 1677 return () => { 1678 const count = runtime.documents.get(targetDocument); 1679 if (count === void 0) { 1680 return; 1681 } 1682 if (count <= 1) { 1683 runtime.documents.delete(targetDocument); 1684 return; 1685 } 1686 runtime.documents.set(targetDocument, count - 1); 1687 }; 1688 } 1689 function registerStyle3(hash, css) { 1690 const runtime = getRuntime3(); 1691 runtime.styles.set(hash, css); 1692 for (const targetDocument of runtime.documents.keys()) { 1693 injectStyle3(targetDocument, hash, css); 1694 } 1695 } 1696 if (typeof process === "undefined" || true) { 1697 registerStyle3("726f348f3f", "._78c10a0773e51a91__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)}._5b33aa2d48624b4f__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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-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,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-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)}}._980b3b4776ac8f81__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._43e478b4279a076c__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._698099e25b0fb1a6__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)._326aee4184d261fd__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}.e9576240835601ba__a,.e9576240835601ba__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 transparent);transition:var(--_gcd-a-transition,none)}._3f05789653864a73__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._3c72ff72abe57859__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._79d16267c15d9eb2__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}"); 1698 } 1699 var global_css_defense_default2 = { "button": "_78c10a0773e51a91__button", "input": "_5b33aa2d48624b4f__input", "textarea": "_980b3b4776ac8f81__textarea", "div": "_43e478b4279a076c__div", "p": "_698099e25b0fb1a6__p", "heading": "_326aee4184d261fd__heading", "a": "e9576240835601ba__a", "ol": "_3f05789653864a73__ol", "li": "_3c72ff72abe57859__li", "span": "_79d16267c15d9eb2__span" }; 1700 if (typeof process === "undefined" || true) { 1701 registerStyle3("2657a3ab0c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a9728400af96db77__root{--_wp-ui-avatar-size:var(--wpds-dimension-size-md,32px);--_gcd-span-position:relative;--_gcd-span-display:inline-flex;--_gcd-span-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-span-font-size:var(--_wp-ui-avatar-font-size);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-sm,12px);align-items:center;background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);block-size:var(--_wp-ui-avatar-size);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:50%;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:inline-flex;flex-shrink:0;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--_wp-ui-avatar-font-size);font-weight:var(--wpds-typography-font-weight-emphasis,600);inline-size:var(--_wp-ui-avatar-size);justify-content:center;line-height:1;position:relative;vertical-align:middle}._81a33c129d7cbe31__has-color:after{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--_wp-ui-avatar-color);border-radius:inherit;content:"";inset:calc(var(--wpds-border-width-xs, 1px)*-1);pointer-events:none;position:absolute}._32e65dea77285874__is-square{border-radius:var(--wpds-border-radius-sm,2px)}._7d2020337343df5a__is-xs{--_wp-ui-avatar-size:var(--wpds-dimension-size-2xs,16px);--_wp-ui-avatar-font-size:calc(var(--_wp-ui-avatar-size)/2)}._216fb78a075c5ab4__is-sm{--_wp-ui-avatar-size:var(--wpds-dimension-size-sm,24px);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-xs,11px)}.b552ab04a3b94ae9__is-lg{--_wp-ui-avatar-size:var(--wpds-dimension-size-lg,40px);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-md,13px)}.f8a7646462ff80d1__is-xl{--_wp-ui-avatar-size:calc(var(--wpds-dimension-size-md, 32px)*2);--_wp-ui-avatar-font-size:var(--wpds-typography-font-size-xl,20px)}._411c43ac028fe4be__image,._7883f856336224e2__fallback{block-size:100%;border-radius:inherit;inline-size:100%;inset:0;position:absolute}._411c43ac028fe4be__image{object-fit:cover;@media not (prefers-reduced-motion){transition:opacity var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1));&[data-error],&[data-loading],&[data-starting-style]{opacity:0}}&[data-ending-style],&[data-error],&[data-loading]{visibility:hidden}}._7883f856336224e2__fallback{--_gcd-span-position:absolute;--_gcd-span-display:flex;align-items:center;display:flex;justify-content:center;overflow:hidden;white-space:nowrap;>svg{block-size:100%;flex-shrink:0;inline-size:100%}>.dc9b5131d4746aa6__person-icon{block-size:110%;color:var(--wpds-color-stroke-surface-neutral-strong,#8d8d8d);inline-size:110%;translate:0 15%}}@media not (forced-colors:active){@supports (color:rgb(from green r g b/1)) and (color:color(from green srgb-linear round(up,r) g b/1)){._81a33c129d7cbe31__has-color:has(>._7883f856336224e2__fallback){border:none}._81a33c129d7cbe31__has-color:has(>._7883f856336224e2__fallback):after{content:none}._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback{--_wp-ui-avatar-background:rgb(from var(--_wp-ui-avatar-color) clamp(0,r,255) clamp(0,g,255) clamp(0,b,255)/1);--_wp-ui-avatar-contrast-target:4.55;background-color:var(--_wp-ui-avatar-background)}._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback>.dc9b5131d4746aa6__person-icon{--_wp-ui-avatar-contrast-target:3.05}._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback,._81a33c129d7cbe31__has-color>._7883f856336224e2__fallback>.dc9b5131d4746aa6__person-icon{--_wp-ui-avatar-luminance:calc(0.2126 * r + 0.7152 * g + 0.0722 * b);--_wp-ui-avatar-light-foreground:round(up,clamp(0,calc(0.17913 - var(--_wp-ui-avatar-luminance)),1));--_wp-ui-avatar-dark-tint:clamp(0,calc(((var(--_wp-ui-avatar-luminance) + 0.05)/var(--_wp-ui-avatar-contrast-target) - 0.05)/max(0.000001, var(--_wp-ui-avatar-luminance))),1);--_wp-ui-avatar-light-tint:clamp(0,calc((1.05 - var(--_wp-ui-avatar-contrast-target)*(var(--_wp-ui-avatar-luminance) + 0.05))/max(0.000001, 1 - var(--_wp-ui-avatar-luminance))),1);--_wp-ui-avatar-tint:calc(var(--_wp-ui-avatar-light-foreground)*var(--_wp-ui-avatar-light-tint) + (1 - var(--_wp-ui-avatar-light-foreground))*var(--_wp-ui-avatar-dark-tint));color:color(from var(--_wp-ui-avatar-background) srgb-linear calc(var(--_wp-ui-avatar-light-foreground) + (r - var(--_wp-ui-avatar-light-foreground)) * var(--_wp-ui-avatar-tint)) calc(var(--_wp-ui-avatar-light-foreground) + (g - var(--_wp-ui-avatar-light-foreground)) * var(--_wp-ui-avatar-tint)) calc(var(--_wp-ui-avatar-light-foreground) + (b - var(--_wp-ui-avatar-light-foreground)) * var(--_wp-ui-avatar-tint))/1)}}}}}'); 1702 } 1703 var style_default3 = { "root": "a9728400af96db77__root", "has-color": "_81a33c129d7cbe31__has-color", "is-square": "_32e65dea77285874__is-square", "is-xs": "_7d2020337343df5a__is-xs", "is-sm": "_216fb78a075c5ab4__is-sm", "is-lg": "b552ab04a3b94ae9__is-lg", "is-xl": "f8a7646462ff80d1__is-xl", "image": "_411c43ac028fe4be__image", "fallback": "_7883f856336224e2__fallback", "person-icon": "dc9b5131d4746aa6__person-icon" }; 1704 var person = /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)( 1705 import_primitives6.SVG, 1706 { 1707 xmlns: "http://www.w3.org/2000/svg", 1708 viewBox: "0 0 24 24", 1709 style: { fill: "none" }, 1710 stroke: "currentColor", 1711 strokeWidth: 1.5, 1712 children: [ 1713 /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_primitives6.Circle, { cx: 12, cy: 8, r: 5 }), 1714 /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_primitives6.Path, { d: "M20 21a8 8 0 0 0-16 0" }) 1715 ] 1716 } 1717 ); 1718 var Fallback = (0, import_element5.forwardRef)( 1719 function AvatarFallback3({ 1720 className, 1721 children = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)( 1722 Icon, 1723 { 1724 icon: person, 1725 role: "presentation", 1726 className: style_default3["person-icon"] 1727 } 1728 ), 1729 ...props 1730 }, ref) { 1731 return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)( 1732 FallbackWithLoadingDelay, 1733 { 1734 ref, 1735 className: clsx_default( 1736 style_default3.fallback, 1737 global_css_defense_default2.span, 1738 className 1739 ), 1740 ...props, 1741 children 1742 } 1743 ); 1744 } 1745 ); 1746 1747 // packages/ui/build-module/avatar/initials.mjs 1748 var import_element6 = __toESM(require_element(), 1); 1749 var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1); 1750 var Initials = (0, import_element6.forwardRef)( 1751 function AvatarInitials({ name, locale, ...props }, ref) { 1752 const segmenter = new Intl.Segmenter(locale, { 1753 granularity: "grapheme" 1754 }); 1755 const words = name?.trim().split(/\s+/) ?? []; 1756 const initials = words.filter((_, index) => index === 0 || index === words.length - 1).map( 1757 (word) => segmenter.segment(word).containing(0)?.segment ?? "" 1758 ).join("").toLocaleUpperCase(locale); 1759 return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Fallback, { ...props, ref, children: initials || void 0 }); 1760 } 1761 ); 1762 1763 // packages/ui/build-module/stack/stack.mjs 1764 var import_element7 = __toESM(require_element(), 1); 1765 var STYLE_HASH_ATTRIBUTE4 = "data-wp-hash"; 1766 function getRuntime4() { 1767 const globalScope = globalThis; 1768 if (globalScope.__wpStyleRuntime) { 1769 return globalScope.__wpStyleRuntime; 1770 } 1771 globalScope.__wpStyleRuntime = { 1772 documents: /* @__PURE__ */ new Map(), 1773 styles: /* @__PURE__ */ new Map(), 1774 injectedStyles: /* @__PURE__ */ new WeakMap() 1775 }; 1776 if (typeof document !== "undefined") { 1777 registerDocument4(document); 1778 } 1779 return globalScope.__wpStyleRuntime; 1780 } 1781 function documentContainsStyleHash4(targetDocument, hash) { 1782 if (!targetDocument.head) { 1783 return false; 1784 } 1785 for (const style of targetDocument.head.querySelectorAll( 1786 `style[$STYLE_HASH_ATTRIBUTE4}]` 1787 )) { 1788 if (style.getAttribute(STYLE_HASH_ATTRIBUTE4) === hash) { 1789 return true; 1790 } 1791 } 1792 return false; 1793 } 1794 function injectStyle4(targetDocument, hash, css) { 1795 if (!targetDocument.head) { 1796 return; 1797 } 1798 const runtime = getRuntime4(); 1799 let injectedStyles = runtime.injectedStyles.get(targetDocument); 1800 if (!injectedStyles) { 1801 injectedStyles = /* @__PURE__ */ new Set(); 1802 runtime.injectedStyles.set(targetDocument, injectedStyles); 1803 } 1804 if (injectedStyles.has(hash)) { 1805 return; 1806 } 1807 if (documentContainsStyleHash4(targetDocument, hash)) { 1808 injectedStyles.add(hash); 1809 return; 1810 } 1811 const style = targetDocument.createElement("style"); 1812 style.setAttribute(STYLE_HASH_ATTRIBUTE4, hash); 1813 style.appendChild(targetDocument.createTextNode(css)); 1814 targetDocument.head.appendChild(style); 1815 injectedStyles.add(hash); 1816 } 1817 function registerDocument4(targetDocument) { 1818 const runtime = getRuntime4(); 1819 runtime.documents.set( 1820 targetDocument, 1821 (runtime.documents.get(targetDocument) ?? 0) + 1 1822 ); 1823 for (const [hash, css] of runtime.styles) { 1824 injectStyle4(targetDocument, hash, css); 1825 } 1826 return () => { 1827 const count = runtime.documents.get(targetDocument); 1828 if (count === void 0) { 1829 return; 1830 } 1831 if (count <= 1) { 1832 runtime.documents.delete(targetDocument); 1833 return; 1834 } 1835 runtime.documents.set(targetDocument, count - 1); 1836 }; 1837 } 1838 function registerStyle4(hash, css) { 1839 const runtime = getRuntime4(); 1840 runtime.styles.set(hash, css); 1841 for (const targetDocument of runtime.documents.keys()) { 1842 injectStyle4(targetDocument, hash, css); 1843 } 1844 } 1845 if (typeof process === "undefined" || true) { 1846 registerStyle4("67591fa198", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._8e8e79c1a2eec43b__stack{display:flex}}}"); 1847 } 1848 var style_default4 = { "stack": "_8e8e79c1a2eec43b__stack" }; 1849 var gapTokens = { 1850 xs: "var(--wpds-dimension-gap-xs, 4px)", 1851 sm: "var(--wpds-dimension-gap-sm, 8px)", 1852 md: "var(--wpds-dimension-gap-md, 12px)", 1853 lg: "var(--wpds-dimension-gap-lg, 16px)", 1854 xl: "var(--wpds-dimension-gap-xl, 24px)", 1855 "2xl": "var(--wpds-dimension-gap-2xl, 32px)", 1856 "3xl": "var(--wpds-dimension-gap-3xl, 40px)" 1857 }; 1858 var Stack = (0, import_element7.forwardRef)( 1859 function UnforwardedStack({ direction, gap, align, justify, wrap, render: render2, ...props }, ref) { 1860 const style = { 1861 gap: gap && gapTokens[gap], 1862 alignItems: align, 1863 justifyContent: justify, 1864 flexDirection: direction, 1865 flexWrap: wrap 1866 }; 1867 const element = useRender({ 1868 render: render2, 1869 ref, 1870 props: mergeProps(props, { 1871 style, 1872 className: style_default4.stack 1873 }) 1874 }); 1875 return element; 1876 } 1877 ); 1878 1879 // packages/core-fields/build-module/shared/author/avatar.mjs 1880 var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1); 1881 var STYLE_HASH_ATTRIBUTE5 = "data-wp-hash"; 1882 function getRuntime5() { 1883 const globalScope = globalThis; 1884 if (globalScope.__wpStyleRuntime) { 1885 return globalScope.__wpStyleRuntime; 1886 } 1887 globalScope.__wpStyleRuntime = { 1888 documents: /* @__PURE__ */ new Map(), 1889 styles: /* @__PURE__ */ new Map(), 1890 injectedStyles: /* @__PURE__ */ new WeakMap() 1891 }; 1892 if (typeof document !== "undefined") { 1893 registerDocument5(document); 1894 } 1895 return globalScope.__wpStyleRuntime; 1896 } 1897 function documentContainsStyleHash5(targetDocument, hash) { 1898 if (!targetDocument.head) { 1899 return false; 1900 } 1901 for (const style of targetDocument.head.querySelectorAll( 1902 `style[$STYLE_HASH_ATTRIBUTE5}]` 1903 )) { 1904 if (style.getAttribute(STYLE_HASH_ATTRIBUTE5) === hash) { 1905 return true; 1906 } 1907 } 1908 return false; 1909 } 1910 function injectStyle5(targetDocument, hash, css) { 1911 if (!targetDocument.head) { 1912 return; 1913 } 1914 const runtime = getRuntime5(); 1915 let injectedStyles = runtime.injectedStyles.get(targetDocument); 1916 if (!injectedStyles) { 1917 injectedStyles = /* @__PURE__ */ new Set(); 1918 runtime.injectedStyles.set(targetDocument, injectedStyles); 1919 } 1920 if (injectedStyles.has(hash)) { 1921 return; 1922 } 1923 if (documentContainsStyleHash5(targetDocument, hash)) { 1924 injectedStyles.add(hash); 1925 return; 1926 } 1927 const style = targetDocument.createElement("style"); 1928 style.setAttribute(STYLE_HASH_ATTRIBUTE5, hash); 1929 style.appendChild(targetDocument.createTextNode(css)); 1930 targetDocument.head.appendChild(style); 1931 injectedStyles.add(hash); 1932 } 1933 function registerDocument5(targetDocument) { 1934 const runtime = getRuntime5(); 1935 runtime.documents.set( 1936 targetDocument, 1937 (runtime.documents.get(targetDocument) ?? 0) + 1 1938 ); 1939 for (const [hash, css] of runtime.styles) { 1940 injectStyle5(targetDocument, hash, css); 1941 } 1942 return () => { 1943 const count = runtime.documents.get(targetDocument); 1944 if (count === void 0) { 1945 return; 1946 } 1947 if (count <= 1) { 1948 runtime.documents.delete(targetDocument); 1949 return; 1950 } 1951 runtime.documents.set(targetDocument, count - 1); 1952 }; 1953 } 1954 function registerStyle5(hash, css) { 1955 const runtime = getRuntime5(); 1956 runtime.styles.set(hash, css); 1957 for (const targetDocument of runtime.documents.keys()) { 1958 injectStyle5(targetDocument, hash, css); 1959 } 1960 } 1961 if (typeof process === "undefined" || true) { 1962 registerStyle5("efeba968e6", "._4d84143be9dae462__icon,.dd9b5d817b3207dc__avatar{align-items:center;block-size:1lh;display:flex;flex-shrink:0;inline-size:var(--wpds-dimension-size-2xs,16px)}._4d84143be9dae462__icon svg{fill:currentColor;margin-inline:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2)}.de468aa290326111__name{overflow:hidden;text-overflow:ellipsis}"); 1963 } 1964 var style_default5 = { "avatar": "dd9b5d817b3207dc__avatar", "icon": "_4d84143be9dae462__icon", "name": "de468aa290326111__name" }; 1965 function AuthorAvatar({ src }) { 1966 return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: style_default5.avatar, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(avatar_exports.Root, { size: "xs", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(avatar_exports.Image, { src, alt: "", keepMounted: true }) }) }); 1967 } 1968 1969 // packages/core-fields/build-module/wp_template/author/view.mjs 1970 var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1); 1971 var STYLE_HASH_ATTRIBUTE6 = "data-wp-hash"; 1972 function getRuntime6() { 1973 const globalScope = globalThis; 1974 if (globalScope.__wpStyleRuntime) { 1975 return globalScope.__wpStyleRuntime; 1976 } 1977 globalScope.__wpStyleRuntime = { 1978 documents: /* @__PURE__ */ new Map(), 1979 styles: /* @__PURE__ */ new Map(), 1980 injectedStyles: /* @__PURE__ */ new WeakMap() 1981 }; 1982 if (typeof document !== "undefined") { 1983 registerDocument6(document); 1984 } 1985 return globalScope.__wpStyleRuntime; 1986 } 1987 function documentContainsStyleHash6(targetDocument, hash) { 1988 if (!targetDocument.head) { 1989 return false; 1990 } 1991 for (const style of targetDocument.head.querySelectorAll( 1992 `style[$STYLE_HASH_ATTRIBUTE6}]` 1993 )) { 1994 if (style.getAttribute(STYLE_HASH_ATTRIBUTE6) === hash) { 1995 return true; 1996 } 1997 } 1998 return false; 1999 } 2000 function injectStyle6(targetDocument, hash, css) { 2001 if (!targetDocument.head) { 2002 return; 2003 } 2004 const runtime = getRuntime6(); 2005 let injectedStyles = runtime.injectedStyles.get(targetDocument); 2006 if (!injectedStyles) { 2007 injectedStyles = /* @__PURE__ */ new Set(); 2008 runtime.injectedStyles.set(targetDocument, injectedStyles); 2009 } 2010 if (injectedStyles.has(hash)) { 2011 return; 2012 } 2013 if (documentContainsStyleHash6(targetDocument, hash)) { 2014 injectedStyles.add(hash); 2015 return; 2016 } 2017 const style = targetDocument.createElement("style"); 2018 style.setAttribute(STYLE_HASH_ATTRIBUTE6, hash); 2019 style.appendChild(targetDocument.createTextNode(css)); 2020 targetDocument.head.appendChild(style); 2021 injectedStyles.add(hash); 2022 } 2023 function registerDocument6(targetDocument) { 2024 const runtime = getRuntime6(); 2025 runtime.documents.set( 2026 targetDocument, 2027 (runtime.documents.get(targetDocument) ?? 0) + 1 2028 ); 2029 for (const [hash, css] of runtime.styles) { 2030 injectStyle6(targetDocument, hash, css); 2031 } 2032 return () => { 2033 const count = runtime.documents.get(targetDocument); 2034 if (count === void 0) { 2035 return; 2036 } 2037 if (count <= 1) { 2038 runtime.documents.delete(targetDocument); 2039 return; 2040 } 2041 runtime.documents.set(targetDocument, count - 1); 2042 }; 2043 } 2044 function registerStyle6(hash, css) { 2045 const runtime = getRuntime6(); 2046 runtime.styles.set(hash, css); 2047 for (const targetDocument of runtime.documents.keys()) { 2048 injectStyle6(targetDocument, hash, css); 2049 } 2050 } 2051 if (typeof process === "undefined" || true) { 2052 registerStyle6("efeba968e6", "._4d84143be9dae462__icon,.dd9b5d817b3207dc__avatar{align-items:center;block-size:1lh;display:flex;flex-shrink:0;inline-size:var(--wpds-dimension-size-2xs,16px)}._4d84143be9dae462__icon svg{fill:currentColor;margin-inline:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2)}.de468aa290326111__name{overflow:hidden;text-overflow:ellipsis}"); 2053 } 2054 var style_default6 = { "avatar": "dd9b5d817b3207dc__avatar", "icon": "_4d84143be9dae462__icon", "name": "de468aa290326111__name" }; 2055 function getIconForSource(originalSource) { 2056 switch (originalSource) { 2057 case "theme": 2058 return layout_default; 2059 case "plugin": 2060 return plugins_default; 2061 case "site": 2062 return globe_default; 2063 default: 2064 return comment_author_avatar_default; 2065 } 2066 } 2067 function TemplateAuthorView({ item }) { 2068 const originalSource = item.original_source; 2069 const icon = getIconForSource(originalSource); 2070 const text = item.author_text; 2071 const authorId = item.author; 2072 const imageUrl = (0, import_data.useSelect)( 2073 (select) => { 2074 if (originalSource === "site") { 2075 const siteData = select(import_core_data.store).getEntityRecord("root", "__unstableBase"); 2076 const logoId = siteData?.site_logo; 2077 if (!logoId) { 2078 return void 0; 2079 } 2080 return select(import_core_data.store).getEntityRecord("postType", "attachment", logoId)?.source_url; 2081 } 2082 if (originalSource !== "user" || !authorId) { 2083 return void 0; 2084 } 2085 return select(import_core_data.store).getUser(authorId)?.avatar_urls?.[48]; 2086 }, 2087 [originalSource, authorId] 2088 ); 2089 return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Stack, { direction: "row", gap: "xs", align: "flex-start", children: [ 2090 imageUrl && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(AuthorAvatar, { src: imageUrl }), 2091 !imageUrl && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: style_default6.icon, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { icon }) }), 2092 /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: style_default6.name, children: text }) 2093 ] }); 2094 } 2095 2096 // packages/core-fields/build-module/wp_template/author/get-author-elements.mjs 2097 var import_data2 = __toESM(require_data(), 1); 2098 var import_core_data2 = __toESM(require_core_data(), 1); 2099 async function getAuthorElements(postType) { 2100 const records = await (0, import_data2.resolveSelect)(import_core_data2.store).getEntityRecords( 2101 "postType", 2102 postType, 2103 { per_page: -1, _fields: "id,author_text" } 2104 ); 2105 const seen = /* @__PURE__ */ new Set(); 2106 const elements = []; 2107 for (const record of records ?? []) { 2108 const value = record.author_text; 2109 if (value && !seen.has(value)) { 2110 seen.add(value); 2111 elements.push({ value, label: value }); 2112 } 2113 } 2114 return elements; 2115 } 2116 2117 // packages/core-fields/build-module/wp_template/author/field.mjs 2118 var fieldExtensions = { 2119 getValue: ({ item }) => item.author_text, 2120 render: TemplateAuthorView, 2121 getElements: () => getAuthorElements("wp_template") 2122 }; 2123 2124 // packages/core-fields/build-module/wp_template/description/utils.mjs 2125 var import_html_entities = __toESM(require_html_entities(), 1); 2126 var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1); 2127 var isCustomTemplate = (item) => item.source === "custom" && !item.has_theme_file && !!item.is_custom; 2128 var getValue = ({ item }) => (0, import_html_entities.decodeEntities)(item.description || ""); 2129 var render = ({ item }) => { 2130 const { description } = item; 2131 return description ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: (0, import_html_entities.decodeEntities)(description) }) : null; 2132 }; 2133 2134 // packages/core-fields/build-module/wp_template/description/field.mjs 2135 var fieldExtensions2 = { 2136 getValue, 2137 render, 2138 isVisible: isCustomTemplate 2139 }; 2140 2141 // packages/core-fields/build-module/wp_template/description_readonly/field.mjs 2142 var fieldExtensions3 = { 2143 getValue, 2144 render, 2145 // Shown when the description cannot be edited and there is one. 2146 isVisible: (item) => !isCustomTemplate(item) && !!item.description 2147 }; 2148 2149 // packages/core-fields/build-module/wp_template/default_comment_status/field.mjs 2150 var import_i18n = __toESM(require_i18n(), 1); 2151 var fieldExtensions4 = { 2152 getValue: ({ item }) => item.default_comment_status || "", 2153 setValue: ({ value }) => ({ 2154 default_comment_status: value || null 2155 }), 2156 render: ({ item }) => item.default_comment_status === "open" ? (0, import_i18n.__)("Comments open") : (0, import_i18n.__)("Comments closed") 2157 }; 2158 2159 // packages/core-fields/build-module/wp_template/posts_page_title/field.mjs 2160 var fieldExtensions5 = { 2161 getValue: ({ item }) => { 2162 const title = item.title; 2163 if (typeof title === "string") { 2164 return title; 2165 } 2166 return title?.raw ?? ""; 2167 }, 2168 setValue: ({ value }) => ({ title: value }) 2169 }; 2170 2171 // packages/core-fields/build-module/wp_template/posts_per_page/field.mjs 2172 var fieldExtensions6 = { 2173 getValue: ({ item }) => item.posts_per_page ?? 1, 2174 setValue: ({ value }) => ({ posts_per_page: value }) 2175 }; 2176 2177 // packages/core-fields/build-module/shared/title/get-item-title.mjs 2178 var import_html_entities2 = __toESM(require_html_entities(), 1); 2179 var import_i18n2 = __toESM(require_i18n(), 1); 2180 function getItemTitle(item, fallback = (0, import_i18n2.__)("(no title)")) { 2181 let title = ""; 2182 if (typeof item.title === "string") { 2183 title = (0, import_html_entities2.decodeEntities)(item.title); 2184 } else if (item.title && "rendered" in item.title) { 2185 title = (0, import_html_entities2.decodeEntities)(item.title.rendered ?? ""); 2186 } else if (item.title && "raw" in item.title) { 2187 title = (0, import_html_entities2.decodeEntities)(item.title.raw ?? ""); 2188 } 2189 return title || fallback; 2190 } 2191 2192 // packages/core-fields/build-module/shared/title/view.mjs 2193 var import_i18n3 = __toESM(require_i18n(), 1); 2194 var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1); 2195 var STYLE_HASH_ATTRIBUTE7 = "data-wp-hash"; 2196 function getRuntime7() { 2197 const globalScope = globalThis; 2198 if (globalScope.__wpStyleRuntime) { 2199 return globalScope.__wpStyleRuntime; 2200 } 2201 globalScope.__wpStyleRuntime = { 2202 documents: /* @__PURE__ */ new Map(), 2203 styles: /* @__PURE__ */ new Map(), 2204 injectedStyles: /* @__PURE__ */ new WeakMap() 2205 }; 2206 if (typeof document !== "undefined") { 2207 registerDocument7(document); 2208 } 2209 return globalScope.__wpStyleRuntime; 2210 } 2211 function documentContainsStyleHash7(targetDocument, hash) { 2212 if (!targetDocument.head) { 2213 return false; 2214 } 2215 for (const style of targetDocument.head.querySelectorAll( 2216 `style[$STYLE_HASH_ATTRIBUTE7}]` 2217 )) { 2218 if (style.getAttribute(STYLE_HASH_ATTRIBUTE7) === hash) { 2219 return true; 2220 } 2221 } 2222 return false; 2223 } 2224 function injectStyle7(targetDocument, hash, css) { 2225 if (!targetDocument.head) { 2226 return; 2227 } 2228 const runtime = getRuntime7(); 2229 let injectedStyles = runtime.injectedStyles.get(targetDocument); 2230 if (!injectedStyles) { 2231 injectedStyles = /* @__PURE__ */ new Set(); 2232 runtime.injectedStyles.set(targetDocument, injectedStyles); 2233 } 2234 if (injectedStyles.has(hash)) { 2235 return; 2236 } 2237 if (documentContainsStyleHash7(targetDocument, hash)) { 2238 injectedStyles.add(hash); 2239 return; 2240 } 2241 const style = targetDocument.createElement("style"); 2242 style.setAttribute(STYLE_HASH_ATTRIBUTE7, hash); 2243 style.appendChild(targetDocument.createTextNode(css)); 2244 targetDocument.head.appendChild(style); 2245 injectedStyles.add(hash); 2246 } 2247 function registerDocument7(targetDocument) { 2248 const runtime = getRuntime7(); 2249 runtime.documents.set( 2250 targetDocument, 2251 (runtime.documents.get(targetDocument) ?? 0) + 1 2252 ); 2253 for (const [hash, css] of runtime.styles) { 2254 injectStyle7(targetDocument, hash, css); 2255 } 2256 return () => { 2257 const count = runtime.documents.get(targetDocument); 2258 if (count === void 0) { 2259 return; 2260 } 2261 if (count <= 1) { 2262 runtime.documents.delete(targetDocument); 2263 return; 2264 } 2265 runtime.documents.set(targetDocument, count - 1); 2266 }; 2267 } 2268 function registerStyle7(hash, css) { 2269 const runtime = getRuntime7(); 2270 runtime.styles.set(hash, css); 2271 for (const targetDocument of runtime.documents.keys()) { 2272 injectStyle7(targetDocument, hash, css); 2273 } 2274 } 2275 if (typeof process === "undefined" || true) { 2276 registerStyle7("a4585ee5f7", "._6f88745c59f7b1df__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.bfcb43aba334e5f0__pattern-title>span:first-child{flex:1}"); 2277 } 2278 var style_default7 = { "title": "_6f88745c59f7b1df__title", "pattern-title": "bfcb43aba334e5f0__pattern-title" }; 2279 function BaseTitleView({ 2280 item, 2281 className, 2282 children 2283 }) { 2284 const renderedTitle = getItemTitle(item); 2285 return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)( 2286 Stack, 2287 { 2288 direction: "row", 2289 align: "center", 2290 justify: "flex-start", 2291 gap: "sm", 2292 className: clsx_default("fields-field__title", style_default7.title, className), 2293 children: [ 2294 /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: renderedTitle || (0, import_i18n3.__)("(no title)") }), 2295 children 2296 ] 2297 } 2298 ); 2299 } 2300 function TitleView({ item }) { 2301 return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(BaseTitleView, { item }); 2302 } 2303 2304 // packages/core-fields/build-module/wp_template/title/field.mjs 2305 var fieldExtensions7 = { 2306 getValue: ({ item }) => getItemTitle(item), 2307 render: TitleView 2308 }; 2309 2310 // packages/core-fields/build-module/wp_template/index.mjs 2311 var fields = { 2312 author: fieldExtensions, 2313 description: fieldExtensions2, 2314 description_readonly: fieldExtensions3, 2315 posts_page_title: fieldExtensions5, 2316 posts_per_page: fieldExtensions6, 2317 default_comment_status: fieldExtensions4, 2318 title: fieldExtensions7 2319 }; 2320 var wp_template_default = fields; 2321 export { 2322 wp_template_default as default 2323 };
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Mon Nov 30 08:20:01 2026 | Cross-referenced by PHPXref |