@sanity/ui 3.4.2 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/_chunks/refractor.cjs +18 -0
  2. package/dist/_chunks/refractor.cjs.map +1 -0
  3. package/dist/_chunks/refractor.js +9 -7
  4. package/dist/_chunks/refractor.js.map +1 -1
  5. package/dist/_chunks/{tabList.mjs → tabList.cjs} +988 -599
  6. package/dist/_chunks/tabList.cjs.map +1 -0
  7. package/dist/_chunks/tabList.js +537 -1047
  8. package/dist/_chunks/tabList.js.map +1 -1
  9. package/dist/_chunks/{theme.mjs → theme.cjs} +266 -11
  10. package/dist/_chunks/theme.cjs.map +1 -0
  11. package/dist/_chunks/{theme.d.mts → theme.d.cts} +11 -11
  12. package/dist/_chunks/{theme.d.mts.map → theme.d.cts.map} +1 -1
  13. package/dist/_chunks/theme.d.ts +10 -10
  14. package/dist/_chunks/theme.js +10 -265
  15. package/dist/_chunks/theme.js.map +1 -1
  16. package/dist/_chunks/{useTheme.d.mts → useTheme.d.cts} +26 -41
  17. package/dist/_chunks/useTheme.d.cts.map +1 -0
  18. package/dist/_chunks/useTheme.d.ts +24 -39
  19. package/dist/_chunks/useTheme.d.ts.map +1 -1
  20. package/dist/_visual-editing.cjs +3 -0
  21. package/dist/{_visual-editing.d.mts → _visual-editing.d.cts} +1 -1
  22. package/dist/_visual-editing.js +2 -3
  23. package/dist/{index.mjs → index.cjs} +570 -664
  24. package/dist/index.cjs.map +1 -0
  25. package/dist/{index.d.mts → index.d.cts} +12 -33
  26. package/dist/index.d.cts.map +1 -0
  27. package/dist/index.d.ts +9 -30
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +578 -653
  30. package/dist/index.js.map +1 -1
  31. package/dist/theme.cjs +3 -0
  32. package/dist/{theme.d.mts → theme.d.cts} +1 -1
  33. package/dist/theme.js +2 -3
  34. package/package.json +22 -22
  35. package/dist/_chunks/refractor.mjs +0 -21
  36. package/dist/_chunks/refractor.mjs.map +0 -1
  37. package/dist/_chunks/tabList.mjs.map +0 -1
  38. package/dist/_chunks/theme.mjs.map +0 -1
  39. package/dist/_chunks/useTheme.d.mts.map +0 -1
  40. package/dist/_visual-editing.mjs +0 -2
  41. package/dist/index.d.mts.map +0 -1
  42. package/dist/index.mjs.map +0 -1
  43. package/dist/theme.mjs +0 -2
@@ -1,22 +1,22 @@
1
- import { X as getTheme_v2, Z as createColorTheme$1, a as parseColor$1, c as rgbToHex$1, d as screen$1, f as multiply$1, l as rgbToHsl$1, n as buildTheme, o as hexToRgb$1, r as rgba$1, s as hslToRgb$1, t as getScopedTheme } from "./theme.mjs";
2
- import { c } from "react-compiler-runtime";
3
- import { Children, cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useDebugValue, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
4
- import { isValidElementType } from "react-is";
5
- import { ThemeProvider, css, keyframes, styled, useTheme } from "styled-components";
6
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
- import { SpinnerIcon } from "@sanity/icons/Spinner";
8
- import { useEffectEvent } from "use-effect-event";
9
- import { ResizeObserver } from "@juggle/resize-observer";
10
- import { arrow, autoPlacement, autoUpdate, detectOverflow, flip, hide, offset, shift, useFloating } from "@floating-ui/react-dom";
11
- import { AnimatePresence, motion } from "motion/react";
12
- import { createPortal } from "react-dom";
13
- import { CloseIcon } from "@sanity/icons/Close";
14
- import { ChevronRightIcon } from "@sanity/icons/ChevronRight";
1
+ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = (to, from, except, desc) => {
2
+ if (from && typeof from == "object" || typeof from == "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) key = keys[i], !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
3
+ get: ((k) => from[k]).bind(null, key),
4
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
5
+ });
6
+ return to;
7
+ }, __toESM = (mod, isNodeMode, target) => (target = mod == null ? {} : __create(__getProtoOf(mod)), __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
8
+ value: mod,
9
+ enumerable: !0
10
+ }) : target, mod));
11
+ const require_theme = require("./theme.cjs");
12
+ let react_compiler_runtime = require("react-compiler-runtime"), react = require("react");
13
+ react = __toESM(react, 1);
14
+ let react_is = require("react-is"), styled_components = require("styled-components"), react_jsx_runtime = require("react/jsx-runtime"), _sanity_icons_Spinner = require("@sanity/icons/Spinner"), use_effect_event = require("use-effect-event"), _juggle_resize_observer = require("@juggle/resize-observer"), _floating_ui_react_dom = require("@floating-ui/react-dom"), motion_react = require("motion/react"), react_dom = require("react-dom"), _sanity_icons_Close = require("@sanity/icons/Close"), _sanity_icons_ChevronRight = require("@sanity/icons/ChevronRight");
15
15
  /**
16
16
  * @public
17
17
  * @deprecated Use `createColorTheme` from `@sanity/ui/theme` instead.
18
18
  */
19
- const createColorTheme = createColorTheme$1, hexToRgb = hexToRgb$1, hslToRgb = hslToRgb$1, multiply = multiply$1, parseColor = parseColor$1, rgbToHex = rgbToHex$1, rgbToHsl = rgbToHsl$1, rgba = rgba$1, screen = screen$1, studioTheme = buildTheme(), EMPTY_ARRAY = [], EMPTY_RECORD = {}, POPOVER_MOTION_DURATION = .2, POPOVER_MOTION_PROPS = {
19
+ const createColorTheme = require_theme.Z, hexToRgb = require_theme.o, hslToRgb = require_theme.s, multiply = require_theme.f, parseColor = require_theme.a, rgbToHex = require_theme.c, rgbToHsl = require_theme.l, rgba = require_theme.r, screen = require_theme.d, studioTheme = require_theme.n(), EMPTY_ARRAY = [], EMPTY_RECORD = {}, POPOVER_MOTION_DURATION = .2, POPOVER_MOTION_PROPS = {
20
20
  card: {
21
21
  initial: {
22
22
  scale: .97,
@@ -121,7 +121,7 @@ function _getArrayProp(val, defaultVal) {
121
121
  function _getResponsiveSpace(theme, props, spaceIndexes = EMPTY_ARRAY) {
122
122
  if (!Array.isArray(spaceIndexes)) throw Error("the property must be array of numbers");
123
123
  if (spaceIndexes.length === 0) return null;
124
- let { media, space } = getTheme_v2(theme);
124
+ let { media, space } = require_theme.X(theme);
125
125
  return _responsive(media, spaceIndexes, (spaceIndex) => _fillCSSObject(props, rem(space[spaceIndex])));
126
126
  }
127
127
  /**
@@ -129,7 +129,7 @@ function _getResponsiveSpace(theme, props, spaceIndexes = EMPTY_ARRAY) {
129
129
  * @internal
130
130
  */
131
131
  function responsiveFont(fontKey, props) {
132
- let { $size, $weight } = props, { font, media } = getTheme_v2(props.theme), { family, sizes, weights } = font[fontKey], fontWeight = $weight && weights[$weight] || weights.regular, defaultSize = sizes[2], base = {
132
+ let { $size, $weight } = props, { font, media } = require_theme.X(props.theme), { family, sizes, weights } = font[fontKey], fontWeight = $weight && weights[$weight] || weights.regular, defaultSize = sizes[2], base = {
133
133
  position: "relative",
134
134
  fontFamily: family,
135
135
  fontWeight: `${fontWeight}`,
@@ -179,7 +179,7 @@ function fontSize(size) {
179
179
  * @internal
180
180
  */
181
181
  function responsiveTextAlignStyle(props) {
182
- let { media } = getTheme_v2(props.theme);
182
+ let { media } = require_theme.X(props.theme);
183
183
  return _responsive(media, props.$align, (textAlign) => ({ textAlign }));
184
184
  }
185
185
  /**
@@ -221,10 +221,10 @@ function createGlobalScopedContext(key, defaultValue) {
221
221
  * Prevent errors about re-renders on React SSR on Next.js App Router
222
222
  */
223
223
  if (typeof document > "u") {
224
- let context = createContext(defaultValue);
224
+ let context = (0, react.createContext)(defaultValue);
225
225
  return context.displayName = key, context;
226
226
  }
227
- return globalScope[symbol] = globalScope[symbol] || createContext(defaultValue), globalScope[symbol];
227
+ return globalScope[symbol] = globalScope[symbol] || (0, react.createContext)(defaultValue), globalScope[symbol];
228
228
  }
229
229
  /**
230
230
  * @internal
@@ -233,8 +233,8 @@ const ThemeContext = createGlobalScopedContext("@sanity/ui/context/theme", null)
233
233
  /**
234
234
  * @public
235
235
  */
236
- function ThemeProvider$1(props) {
237
- let $ = c(15), parentTheme = useContext(ThemeContext), { children } = props, scheme = props.scheme ?? (parentTheme?.scheme || "light"), rootTheme = props.theme ?? (parentTheme?.theme || null), tone = props.tone ?? (parentTheme?.tone || "default"), t0;
236
+ function ThemeProvider(props) {
237
+ let $ = (0, react_compiler_runtime.c)(15), parentTheme = (0, react.useContext)(ThemeContext), { children } = props, scheme = props.scheme ?? (parentTheme?.scheme || "light"), rootTheme = props.theme ?? (parentTheme?.theme || null), tone = props.tone ?? (parentTheme?.tone || "default"), t0;
238
238
  bb0: {
239
239
  if (!rootTheme) {
240
240
  t0 = null;
@@ -255,30 +255,29 @@ function ThemeProvider$1(props) {
255
255
  break bb1;
256
256
  }
257
257
  let t2;
258
- $[4] !== rootTheme || $[5] !== scheme || $[6] !== tone ? (t2 = getScopedTheme(rootTheme, scheme, tone), $[4] = rootTheme, $[5] = scheme, $[6] = tone, $[7] = t2) : t2 = $[7], t1 = t2;
258
+ $[4] !== rootTheme || $[5] !== scheme || $[6] !== tone ? (t2 = require_theme.t(rootTheme, scheme, tone), $[4] = rootTheme, $[5] = scheme, $[6] = tone, $[7] = t2) : t2 = $[7], t1 = t2;
259
259
  }
260
260
  let theme = t1;
261
261
  if (!theme) {
262
262
  let t2;
263
- return $[8] === Symbol.for("react.memo_cache_sentinel") ? (t2 = /* @__PURE__ */ jsx("pre", { children: "ThemeProvider: no \"theme\" property provided" }), $[8] = t2) : t2 = $[8], t2;
263
+ return $[8] === Symbol.for("react.memo_cache_sentinel") ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", { children: "ThemeProvider: no \"theme\" property provided" }), $[8] = t2) : t2 = $[8], t2;
264
264
  }
265
265
  let t2;
266
- $[9] !== children || $[10] !== theme ? (t2 = /* @__PURE__ */ jsx(ThemeProvider, {
266
+ $[9] !== children || $[10] !== theme ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(styled_components.ThemeProvider, {
267
267
  theme,
268
268
  children
269
269
  }), $[9] = children, $[10] = theme, $[11] = t2) : t2 = $[11];
270
270
  let t3;
271
- return $[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ jsx(ThemeContext.Provider, {
271
+ return $[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ThemeContext.Provider, {
272
272
  value: themeContext,
273
273
  children: t2
274
274
  }), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14], t3;
275
275
  }
276
- ThemeProvider$1.displayName = "ThemeProvider";
277
276
  /**
278
277
  * @public
279
278
  */
280
279
  function useRootTheme() {
281
- let value = useContext(ThemeContext);
280
+ let value = (0, react.useContext)(ThemeContext);
282
281
  if (!value) throw Error("useRootTheme(): missing context value");
283
282
  return value;
284
283
  }
@@ -286,26 +285,26 @@ function useRootTheme() {
286
285
  * @public
287
286
  */
288
287
  function ThemeColorProvider(props) {
289
- let $ = c(5), { children, scheme, tone } = props, root = useRootTheme(), t0 = scheme || root.scheme, t1;
290
- return $[0] !== children || $[1] !== root.theme || $[2] !== t0 || $[3] !== tone ? (t1 = /* @__PURE__ */ jsx(ThemeProvider$1, {
288
+ let $ = (0, react_compiler_runtime.c)(5), { children, scheme, tone } = props, root = useRootTheme(), t0 = scheme || root.scheme, t1;
289
+ return $[0] !== children || $[1] !== root.theme || $[2] !== t0 || $[3] !== tone ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ThemeProvider, {
291
290
  scheme: t0,
292
291
  theme: root.theme,
293
292
  tone,
294
293
  children
295
294
  }), $[0] = children, $[1] = root.theme, $[2] = t0, $[3] = tone, $[4] = t1) : t1 = $[4], t1;
296
295
  }
297
- ThemeColorProvider.displayName = "ThemeColorProvider";
298
296
  /**
299
297
  * @public
300
298
  */
301
- function useTheme$1() {
302
- return useTheme();
299
+ function useTheme() {
300
+ return (0, styled_components.useTheme)();
303
301
  }
304
302
  /**
305
303
  * @public
306
304
  */
307
305
  function useTheme_v2() {
308
- return getTheme_v2(useTheme());
306
+ let $ = (0, react_compiler_runtime.c)(2), t0 = (0, styled_components.useTheme)(), t1;
307
+ return $[0] === t0 ? t1 = $[1] : (t1 = require_theme.X(t0), $[0] = t0, $[1] = t1), t1;
309
308
  }
310
309
  function responsiveBorderStyle() {
311
310
  return [
@@ -317,23 +316,23 @@ function responsiveBorderStyle() {
317
316
  ];
318
317
  }
319
318
  function border(props) {
320
- let { card, media } = getTheme_v2(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
319
+ let { card, media } = require_theme.X(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
321
320
  return _responsive(media, props.$border, (value) => value ? { "&&": { border: borderStyle } } : { "&&": { border: 0 } });
322
321
  }
323
322
  function borderTop(props) {
324
- let { card, media } = getTheme_v2(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
323
+ let { card, media } = require_theme.X(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
325
324
  return _responsive(media, props.$borderTop, (value) => value ? { "&&": { borderTop: borderStyle } } : { "&&": { borderTop: 0 } });
326
325
  }
327
326
  function borderRight(props) {
328
- let { card, media } = getTheme_v2(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
327
+ let { card, media } = require_theme.X(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
329
328
  return _responsive(media, props.$borderRight, (value) => value ? { "&&": { borderRight: borderStyle } } : { "&&": { borderRight: 0 } });
330
329
  }
331
330
  function borderBottom(props) {
332
- let { card, media } = getTheme_v2(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
331
+ let { card, media } = require_theme.X(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
333
332
  return _responsive(media, props.$borderBottom, (value) => value ? { "&&": { borderBottom: borderStyle } } : { "&&": { borderBottom: 0 } });
334
333
  }
335
334
  function borderLeft(props) {
336
- let { card, media } = getTheme_v2(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
335
+ let { card, media } = require_theme.X(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
337
336
  return _responsive(media, props.$borderLeft, (value) => value ? { "&&": { borderLeft: borderStyle } } : { "&&": { borderLeft: 0 } });
338
337
  }
339
338
  const BASE_STYLE$3 = { "&[data-as=\"ul\"],&[data-as=\"ol\"]": { listStyle: "none" } }, BOX_SIZING = {
@@ -355,19 +354,19 @@ function responsiveBoxStyle() {
355
354
  ];
356
355
  }
357
356
  function responsiveBoxDisplayStyle(props) {
358
- let { media } = getTheme_v2(props.theme);
357
+ let { media } = require_theme.X(props.theme);
359
358
  return _responsive(media, props.$display, (display) => ({ "&:not([hidden])": { display } }));
360
359
  }
361
360
  function responsiveBoxSizingStyle(props) {
362
- let { media } = getTheme_v2(props.theme);
361
+ let { media } = require_theme.X(props.theme);
363
362
  return _responsive(media, props.$sizing, (sizing) => ({ boxSizing: BOX_SIZING[sizing] }));
364
363
  }
365
364
  function responsiveBoxHeightStyle(props) {
366
- let { media } = getTheme_v2(props.theme);
365
+ let { media } = require_theme.X(props.theme);
367
366
  return _responsive(media, props.$height, (height) => ({ height: BOX_HEIGHT[height] }));
368
367
  }
369
368
  function responsiveBoxOverflowStyle(props) {
370
- let { media } = getTheme_v2(props.theme);
369
+ let { media } = require_theme.X(props.theme);
371
370
  return _responsive(media, props.$overflow, (overflow) => ({ overflow }));
372
371
  }
373
372
  const BASE_STYLE$2 = {
@@ -378,7 +377,7 @@ function flexItemStyle() {
378
377
  return [BASE_STYLE$2, responsiveFlexItemStyle];
379
378
  }
380
379
  function responsiveFlexItemStyle(props) {
381
- let { media } = getTheme_v2(props.theme);
380
+ let { media } = require_theme.X(props.theme);
382
381
  return props.$flex ? _responsive(media, props.$flex, (flex) => ({ flex: `${flex}` })) : EMPTY_ARRAY;
383
382
  }
384
383
  const BASE_STYLE$1 = { "&&:not([hidden])": { display: "flex" } };
@@ -393,23 +392,23 @@ function responsiveFlexStyle() {
393
392
  ];
394
393
  }
395
394
  function responsiveFlexAlignStyle(props) {
396
- let { media } = getTheme_v2(props.theme);
395
+ let { media } = require_theme.X(props.theme);
397
396
  return _responsive(media, props.$align, (align) => ({ alignItems: align }));
398
397
  }
399
398
  function responsiveFlexGapStyle(props) {
400
- let { media, space } = getTheme_v2(props.theme);
399
+ let { media, space } = require_theme.X(props.theme);
401
400
  return _responsive(media, props.$gap, (gap) => ({ gap: gap ? rem(space[gap]) : void 0 }));
402
401
  }
403
402
  function responsiveFlexWrapStyle(props) {
404
- let { media } = getTheme_v2(props.theme);
403
+ let { media } = require_theme.X(props.theme);
405
404
  return _responsive(media, props.$wrap, (wrap) => ({ flexWrap: wrap }));
406
405
  }
407
406
  function responsiveFlexJustifyStyle(props) {
408
- let { media } = getTheme_v2(props.theme);
407
+ let { media } = require_theme.X(props.theme);
409
408
  return _responsive(media, props.$justify, (justify) => ({ justifyContent: justify }));
410
409
  }
411
410
  function responsiveFlexDirectionStyle(props) {
412
- let { media } = getTheme_v2(props.theme);
411
+ let { media } = require_theme.X(props.theme);
413
412
  return _responsive(media, props.$direction, (direction) => ({ flexDirection: direction }));
414
413
  }
415
414
  function focusRingBorderStyle(border) {
@@ -442,27 +441,27 @@ const GRID_ITEM_ROW = {
442
441
  full: "1 / -1"
443
442
  };
444
443
  function responsiveGridItemRowStyle(props) {
445
- let { media } = getTheme_v2(props.theme);
444
+ let { media } = require_theme.X(props.theme);
446
445
  return _responsive(media, props.$row, (row) => typeof row == "number" ? { gridRow: `span ${row} / span ${row}` } : { gridRow: GRID_ITEM_ROW[row] });
447
446
  }
448
447
  function responsiveGridItemRowStartStyle(props) {
449
- let { media } = getTheme_v2(props.theme);
448
+ let { media } = require_theme.X(props.theme);
450
449
  return _responsive(media, props.$rowStart, (rowStart) => ({ gridRowStart: `${rowStart}` }));
451
450
  }
452
451
  function responsiveGridItemRowEndStyle(props) {
453
- let { media } = getTheme_v2(props.theme);
452
+ let { media } = require_theme.X(props.theme);
454
453
  return _responsive(media, props.$rowEnd, (rowEnd) => ({ gridRowEnd: `${rowEnd}` }));
455
454
  }
456
455
  function responsiveGridItemColumnStyle(props) {
457
- let { media } = getTheme_v2(props.theme);
456
+ let { media } = require_theme.X(props.theme);
458
457
  return _responsive(media, props.$column, (column) => typeof column == "number" ? { gridColumn: `span ${column} / span ${column}` } : { gridColumn: GRID_ITEM_COLUMN[column] });
459
458
  }
460
459
  function responsiveGridItemColumnStartStyle(props) {
461
- let { media } = getTheme_v2(props.theme);
460
+ let { media } = require_theme.X(props.theme);
462
461
  return _responsive(media, props.$columnStart, (columnStart) => ({ gridColumnStart: `${columnStart}` }));
463
462
  }
464
463
  function responsiveGridItemColumnEndStyle(props) {
465
- let { media } = getTheme_v2(props.theme);
464
+ let { media } = require_theme.X(props.theme);
466
465
  return _responsive(media, props.$columnEnd, (columnEnd) => ({ gridColumnEnd: `${columnEnd}` }));
467
466
  }
468
467
  const GRID_CSS = {
@@ -493,39 +492,39 @@ function responsiveGridStyle() {
493
492
  ];
494
493
  }
495
494
  function responsiveGridAutoFlowStyle(props) {
496
- let { media } = getTheme_v2(props.theme);
495
+ let { media } = require_theme.X(props.theme);
497
496
  return _responsive(media, props.$autoFlow, (autoFlow) => ({ gridAutoFlow: autoFlow }));
498
497
  }
499
498
  function responsiveGridAutoRowsStyle(props) {
500
- let { media } = getTheme_v2(props.theme);
499
+ let { media } = require_theme.X(props.theme);
501
500
  return _responsive(media, props.$autoRows, (autoRows) => ({ gridAutoRows: autoRows && GRID_AUTO_ROWS[autoRows] }));
502
501
  }
503
502
  function responsiveGridAutoColsStyle(props) {
504
- let { media } = getTheme_v2(props.theme);
503
+ let { media } = require_theme.X(props.theme);
505
504
  return _responsive(media, props.$autoCols, (autoCols) => ({ gridAutoColumns: autoCols && GRID_AUTO_COLUMS[autoCols] }));
506
505
  }
507
506
  function responsiveGridColumnsStyle(props) {
508
- let { media } = getTheme_v2(props.theme);
507
+ let { media } = require_theme.X(props.theme);
509
508
  return _responsive(media, props.$columns, (columns) => ({ gridTemplateColumns: columns && `repeat(${columns},minmax(0,1fr));` }));
510
509
  }
511
510
  function responsiveGridRowsStyle(props) {
512
- let { media } = getTheme_v2(props.theme);
511
+ let { media } = require_theme.X(props.theme);
513
512
  return _responsive(media, props.$rows, (rows) => ({ gridTemplateRows: rows && `repeat(${rows},minmax(0,1fr));` }));
514
513
  }
515
514
  function responsiveGridGapStyle(props) {
516
- let { media, space } = getTheme_v2(props.theme);
515
+ let { media, space } = require_theme.X(props.theme);
517
516
  return _responsive(media, props.$gap, (gap) => ({ gridGap: gap ? rem(space[gap]) : void 0 }));
518
517
  }
519
518
  function responsiveGridGapXStyle(props) {
520
- let { media, space } = getTheme_v2(props.theme);
519
+ let { media, space } = require_theme.X(props.theme);
521
520
  return _responsive(media, props.$gapX, (gapX) => ({ columnGap: gapX ? rem(space[gapX]) : void 0 }));
522
521
  }
523
522
  function responsiveGridGapYStyle(props) {
524
- let { media, space } = getTheme_v2(props.theme);
523
+ let { media, space } = require_theme.X(props.theme);
525
524
  return _responsive(media, props.$gapY, (gapY) => ({ rowGap: gapY ? rem(space[gapY]) : void 0 }));
526
525
  }
527
526
  function responsiveInputPaddingStyle(props) {
528
- let { $fontSize, $iconLeft, $iconRight, $padding, $space } = props, { font, media, space } = getTheme_v2(props.theme), len = Math.max($padding.length, $space.length, $fontSize.length), _padding = [], _space = [], _fontSize = [];
527
+ let { $fontSize, $iconLeft, $iconRight, $padding, $space } = props, { font, media, space } = require_theme.X(props.theme), len = Math.max($padding.length, $space.length, $fontSize.length), _padding = [], _space = [], _fontSize = [];
529
528
  for (let i = 0; i < len; i += 1) _fontSize[i] = $fontSize[i] === void 0 ? _fontSize[i - 1] : $fontSize[i], _padding[i] = $padding[i] === void 0 ? _padding[i - 1] : $padding[i], _space[i] = $space[i] === void 0 ? _space[i - 1] : $space[i];
530
529
  return _responsive(media, _padding, (_, i) => {
531
530
  let size = font.text.sizes[_fontSize[i]] || font.text.sizes[2], emSize = size.lineHeight - size.ascenderHeight - size.descenderHeight, p = space[_padding[i]], s = space[_space[i]], styles = {
@@ -543,16 +542,16 @@ function responsiveInputPaddingIconRightStyle(props) {
543
542
  $iconRight: !0
544
543
  });
545
544
  }
546
- const ROOT_STYLE = css`&:not([hidden]){display:flex;}align-items:center;`;
545
+ const ROOT_STYLE = styled_components.css`&:not([hidden]){display:flex;}align-items:center;`;
547
546
  function textInputRootStyle() {
548
547
  return ROOT_STYLE;
549
548
  }
550
549
  function textInputBaseStyle(props) {
551
- let { $scheme, $tone, $weight } = props, { color, font } = getTheme_v2(props.theme);
552
- return css`appearance:none;background:none;border:0;border-radius:0;outline:none;width:100%;box-sizing:border-box;font-family:${font.text.family};font-weight:${$weight && font.text.weights[$weight] || font.text.weights.regular};margin:0;position:relative;z-index:1;display:block;&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus,&:-webkit-autofill:active{-webkit-text-fill-color:var(--input-fg-color) !important;transition:background-color 5000s;transition-delay:86400s;}&[data-as='textarea']{resize:none;}color:var(--input-fg-color);&::placeholder{color:var(--input-placeholder-color);}&[data-scheme='${$scheme}'][data-tone='${$tone}']{--input-fg-color:${color.input.default.enabled.fg};--input-placeholder-color:${color.input.default.enabled.placeholder};&:not(:invalid):not(:disabled):not(:read-only){--input-fg-color:${color.input.default.enabled.fg};--input-placeholder-color:${color.input.default.enabled.placeholder};}&:not(:invalid):disabled{--input-fg-color:${color.input.default.disabled.fg};--input-placeholder-color:${color.input.default.disabled.placeholder};}&:invalid{--input-fg-color:${color.input.invalid.enabled.fg};--input-placeholder-color:${color.input.invalid.enabled.placeholder};}&:read-only{--input-fg-color:${color.input.default.readOnly.fg};--input-placeholder-color:${color.input.default.readOnly.placeholder};}}`;
550
+ let { $scheme, $tone, $weight } = props, { color, font } = require_theme.X(props.theme);
551
+ return styled_components.css`appearance:none;background:none;border:0;border-radius:0;outline:none;width:100%;box-sizing:border-box;font-family:${font.text.family};font-weight:${$weight && font.text.weights[$weight] || font.text.weights.regular};margin:0;position:relative;z-index:1;display:block;&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus,&:-webkit-autofill:active{-webkit-text-fill-color:var(--input-fg-color) !important;transition:background-color 5000s;transition-delay:86400s;}&[data-as='textarea']{resize:none;}color:var(--input-fg-color);&::placeholder{color:var(--input-placeholder-color);}&[data-scheme='${$scheme}'][data-tone='${$tone}']{--input-fg-color:${color.input.default.enabled.fg};--input-placeholder-color:${color.input.default.enabled.placeholder};&:not(:invalid):not(:disabled):not(:read-only){--input-fg-color:${color.input.default.enabled.fg};--input-placeholder-color:${color.input.default.enabled.placeholder};}&:not(:invalid):disabled{--input-fg-color:${color.input.default.disabled.fg};--input-placeholder-color:${color.input.default.disabled.placeholder};}&:invalid{--input-fg-color:${color.input.invalid.enabled.fg};--input-placeholder-color:${color.input.invalid.enabled.placeholder};}&:read-only{--input-fg-color:${color.input.default.readOnly.fg};--input-placeholder-color:${color.input.default.readOnly.placeholder};}}`;
553
552
  }
554
553
  function textInputFontSizeStyle(props) {
555
- let { font, media } = getTheme_v2(props.theme);
554
+ let { font, media } = require_theme.X(props.theme);
556
555
  return _responsive(media, props.$fontSize, (sizeIndex) => {
557
556
  let size = font.text.sizes[sizeIndex] || font.text.sizes[2];
558
557
  return {
@@ -562,8 +561,8 @@ function textInputFontSizeStyle(props) {
562
561
  });
563
562
  }
564
563
  function textInputRepresentationStyle(props) {
565
- let { $hasPrefix, $hasSuffix, $scheme, $tone, $unstableDisableFocusRing } = props, { color, input } = getTheme_v2(props.theme);
566
- return css`--input-box-shadow:none;position:absolute;top:0;left:0;right:0;bottom:0;display:block;pointer-events:none;z-index:0;background-color:var(--card-bg-color);box-shadow:var(--input-box-shadow);border-top-left-radius:${$hasPrefix ? 0 : void 0};border-bottom-left-radius:${$hasPrefix ? 0 : void 0};border-top-right-radius:${$hasSuffix ? 0 : void 0};border-bottom-right-radius:${$hasSuffix ? 0 : void 0};&[data-scheme='${$scheme}'][data-tone='${$tone}']{--card-bg-color:${color.input.default.enabled.bg};--card-fg-color:${color.input.default.enabled.fg};*:not(:disabled) + &[data-border]{--input-box-shadow:${focusRingBorderStyle({
564
+ let { $hasPrefix, $hasSuffix, $scheme, $tone, $unstableDisableFocusRing } = props, { color, input } = require_theme.X(props.theme);
565
+ return styled_components.css`--input-box-shadow:none;position:absolute;top:0;left:0;right:0;bottom:0;display:block;pointer-events:none;z-index:0;background-color:var(--card-bg-color);box-shadow:var(--input-box-shadow);border-top-left-radius:${$hasPrefix ? 0 : void 0};border-bottom-left-radius:${$hasPrefix ? 0 : void 0};border-top-right-radius:${$hasSuffix ? 0 : void 0};border-bottom-right-radius:${$hasSuffix ? 0 : void 0};&[data-scheme='${$scheme}'][data-tone='${$tone}']{--card-bg-color:${color.input.default.enabled.bg};--card-fg-color:${color.input.default.enabled.fg};*:not(:disabled) + &[data-border]{--input-box-shadow:${focusRingBorderStyle({
567
566
  color: color.input.default.enabled.border,
568
567
  width: input.border.width
569
568
  })};}*:not(:disabled):invalid + &{--card-bg-color:${color.input.invalid.enabled.bg};--card-fg-color:${color.input.invalid.enabled.fg};&[data-border]{--input-box-shadow:${focusRingBorderStyle({
@@ -614,7 +613,7 @@ function responsivePaddingStyle(props) {
614
613
  ].filter(Boolean);
615
614
  }
616
615
  function responsiveRadiusStyle(props) {
617
- let { media, radius } = getTheme_v2(props.theme);
616
+ let { media, radius } = require_theme.X(props.theme);
618
617
  return _responsive(media, props.$radius, (value) => {
619
618
  let borderRadius = 0;
620
619
  return typeof value == "number" && (borderRadius = rem(radius[value])), value === "full" && (borderRadius = "9999px"), { borderRadius };
@@ -627,18 +626,18 @@ function shadowStyle(shadow, outlineWidth = 1) {
627
626
  return shadow ? { boxShadow: `${`0 0 0 ${rem(outlineWidth)} var(--card-shadow-outline-color)`}, ${toBoxShadow(shadow.umbra, "var(--card-shadow-umbra-color)")}, ${toBoxShadow(shadow.penumbra, "var(--card-shadow-penumbra-color)")}, ${toBoxShadow(shadow.ambient, "var(--card-shadow-ambient-color)")}` } : EMPTY_RECORD;
628
627
  }
629
628
  function responsiveShadowStyle(props) {
630
- let { card, media, shadow } = getTheme_v2(props.theme);
629
+ let { card, media, shadow } = require_theme.X(props.theme);
631
630
  return _responsive(media, props.$shadow, (index) => shadowStyle(shadow[index], card.shadow.outline));
632
631
  }
633
632
  /** @internal */
634
- const SpanWithTextOverflow = styled.span.withConfig({
633
+ const SpanWithTextOverflow = styled_components.styled.span.withConfig({
635
634
  displayName: "SpanWithTextOverflow",
636
635
  componentId: "sc-xkyu3h-0"
637
- })`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`, StyledBox = /* @__PURE__ */ styled.div.withConfig({
636
+ })`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`, StyledBox = /* @__PURE__ */ styled_components.styled.div.withConfig({
638
637
  displayName: "StyledBox",
639
- componentId: "sc-7yq461-0"
640
- })(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), BoxComponent = forwardRef(function(props, ref) {
641
- let $ = c(115), deprecated_column, deprecated_columnEnd, deprecated_columnStart, deprecated_row, deprecated_rowEnd, deprecated_rowStart, flex, gridColumn, gridColumnEnd, gridColumnStart, gridRow, gridRowEnd, gridRowStart, height, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, restProps, sizing, t0, t1, t2, t3;
638
+ componentId: "sc-yj6ffl-0"
639
+ })(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = (0, react.forwardRef)(function Box(props, ref) {
640
+ let $ = (0, react_compiler_runtime.c)(115), deprecated_column, deprecated_columnEnd, deprecated_columnStart, deprecated_row, deprecated_rowEnd, deprecated_rowStart, flex, gridColumn, gridColumnEnd, gridColumnStart, gridRow, gridRowEnd, gridRowStart, height, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, restProps, sizing, t0, t1, t2, t3;
642
641
  $[0] === props ? (deprecated_column = $[1], deprecated_columnEnd = $[2], deprecated_columnStart = $[3], deprecated_row = $[4], deprecated_rowEnd = $[5], deprecated_rowStart = $[6], flex = $[7], gridColumn = $[8], gridColumnEnd = $[9], gridColumnStart = $[10], gridRow = $[11], gridRowEnd = $[12], gridRowStart = $[13], height = $[14], marginBottom = $[15], marginLeft = $[16], marginRight = $[17], marginTop = $[18], marginX = $[19], marginY = $[20], overflow = $[21], paddingBottom = $[22], paddingLeft = $[23], paddingRight = $[24], paddingTop = $[25], paddingX = $[26], paddingY = $[27], restProps = $[28], sizing = $[29], t0 = $[30], t1 = $[31], t2 = $[32], t3 = $[33]) : ({as: t0, gridColumn, column: deprecated_column, gridColumnStart, columnStart: deprecated_columnStart, gridColumnEnd, columnEnd: deprecated_columnEnd, display: t1, flex, height, margin: t2, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, padding: t3, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, gridRow, row: deprecated_row, gridRowStart, rowStart: deprecated_rowStart, gridRowEnd, rowEnd: deprecated_rowEnd, sizing, ...restProps} = props, $[0] = props, $[1] = deprecated_column, $[2] = deprecated_columnEnd, $[3] = deprecated_columnStart, $[4] = deprecated_row, $[5] = deprecated_rowEnd, $[6] = deprecated_rowStart, $[7] = flex, $[8] = gridColumn, $[9] = gridColumnEnd, $[10] = gridColumnStart, $[11] = gridRow, $[12] = gridRowEnd, $[13] = gridRowStart, $[14] = height, $[15] = marginBottom, $[16] = marginLeft, $[17] = marginRight, $[18] = marginTop, $[19] = marginX, $[20] = marginY, $[21] = overflow, $[22] = paddingBottom, $[23] = paddingLeft, $[24] = paddingRight, $[25] = paddingTop, $[26] = paddingX, $[27] = paddingY, $[28] = restProps, $[29] = sizing, $[30] = t0, $[31] = t1, $[32] = t2, $[33] = t3);
643
642
  let asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, column = gridColumn === void 0 ? deprecated_column : gridColumn, columnStart = gridColumnStart === void 0 ? deprecated_columnStart : gridColumnStart, columnEnd = gridColumnEnd === void 0 ? deprecated_columnEnd : gridColumnEnd, row = gridRow === void 0 ? deprecated_row : gridRow, rowStart = gridRowStart === void 0 ? deprecated_rowStart : gridRowStart, rowEnd = gridRowEnd === void 0 ? deprecated_rowEnd : gridRowEnd, t4 = typeof asProp == "string" ? asProp : void 0, t5;
644
643
  $[34] === column ? t5 = $[35] : (t5 = _getArrayProp(column), $[34] = column, $[35] = t5);
@@ -691,7 +690,7 @@ const SpanWithTextOverflow = styled.span.withConfig({
691
690
  let t29;
692
691
  $[82] === sizing ? t29 = $[83] : (t29 = _getArrayProp(sizing), $[82] = sizing, $[83] = t29);
693
692
  let t30;
694
- return $[84] !== asProp || $[85] !== props.children || $[86] !== ref || $[87] !== restProps || $[88] !== t10 || $[89] !== t11 || $[90] !== t12 || $[91] !== t13 || $[92] !== t14 || $[93] !== t15 || $[94] !== t16 || $[95] !== t17 || $[96] !== t18 || $[97] !== t19 || $[98] !== t20 || $[99] !== t21 || $[100] !== t22 || $[101] !== t23 || $[102] !== t24 || $[103] !== t25 || $[104] !== t26 || $[105] !== t27 || $[106] !== t28 || $[107] !== t29 || $[108] !== t4 || $[109] !== t5 || $[110] !== t6 || $[111] !== t7 || $[112] !== t8 || $[113] !== t9 ? (t30 = /* @__PURE__ */ jsx(StyledBox, {
693
+ return $[84] !== asProp || $[85] !== props.children || $[86] !== ref || $[87] !== restProps || $[88] !== t10 || $[89] !== t11 || $[90] !== t12 || $[91] !== t13 || $[92] !== t14 || $[93] !== t15 || $[94] !== t16 || $[95] !== t17 || $[96] !== t18 || $[97] !== t19 || $[98] !== t20 || $[99] !== t21 || $[100] !== t22 || $[101] !== t23 || $[102] !== t24 || $[103] !== t25 || $[104] !== t26 || $[105] !== t27 || $[106] !== t28 || $[107] !== t29 || $[108] !== t4 || $[109] !== t5 || $[110] !== t6 || $[111] !== t7 || $[112] !== t8 || $[113] !== t9 ? (t30 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledBox, {
695
694
  "data-as": t4,
696
695
  "data-ui": "Box",
697
696
  ...restProps,
@@ -725,37 +724,29 @@ const SpanWithTextOverflow = styled.span.withConfig({
725
724
  children: props.children
726
725
  }), $[84] = asProp, $[85] = props.children, $[86] = ref, $[87] = restProps, $[88] = t10, $[89] = t11, $[90] = t12, $[91] = t13, $[92] = t14, $[93] = t15, $[94] = t16, $[95] = t17, $[96] = t18, $[97] = t19, $[98] = t20, $[99] = t21, $[100] = t22, $[101] = t23, $[102] = t24, $[103] = t25, $[104] = t26, $[105] = t27, $[106] = t28, $[107] = t29, $[108] = t4, $[109] = t5, $[110] = t6, $[111] = t7, $[112] = t8, $[113] = t9, $[114] = t30) : t30 = $[114], t30;
727
726
  });
728
- BoxComponent.displayName = "ForwardRef(Box)";
729
- /**
730
- * The `Box` component is a basic layout wrapper component which provides utility properties
731
- * for flex, margins and padding.
732
- *
733
- * @public
734
- */
735
- const Box = BoxComponent;
736
727
  function textBaseStyle(props) {
737
- let { $accent, $muted } = props, { font } = getTheme_v2(props.theme);
738
- return css`color:var(--card-fg-color);${$accent && css`color:var(--card-accent-fg-color);`} ${$muted && css`color:var(--card-muted-fg-color);`} & code{font-family:${font.code.family};border-radius:1px;background-color:var(--card-code-bg-color);color:var(--card-code-fg-color);}& a{text-decoration:none;border-radius:1px;color:var(--card-link-color);outline:none;@media (hover:hover){&:hover{text-decoration:underline;}}&:focus{box-shadow:0 0 0 1px var(--card-bg-color),0 0 0 3px var(--card-focus-ring-color);}&:focus:not(:focus-visible){box-shadow:none;}}& strong{font-weight:${font.text.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;color:var(--card-icon-color);& path{vector-effect:non-scaling-stroke !important;}}`;
728
+ let { $accent, $muted } = props, { font } = require_theme.X(props.theme);
729
+ return styled_components.css`color:var(--card-fg-color);${$accent && styled_components.css`color:var(--card-accent-fg-color);`} ${$muted && styled_components.css`color:var(--card-muted-fg-color);`} & code{font-family:${font.code.family};border-radius:1px;background-color:var(--card-code-bg-color);color:var(--card-code-fg-color);}& a{text-decoration:none;border-radius:1px;color:var(--card-link-color);outline:none;@media (hover:hover){&:hover{text-decoration:underline;}}&:focus{box-shadow:0 0 0 1px var(--card-bg-color),0 0 0 3px var(--card-focus-ring-color);}&:focus:not(:focus-visible){box-shadow:none;}}& strong{font-weight:${font.text.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;color:var(--card-icon-color);& path{vector-effect:non-scaling-stroke !important;}}`;
739
730
  }
740
- const StyledText = /* @__PURE__ */ styled.div.withConfig({
731
+ const StyledText = /* @__PURE__ */ styled_components.styled.div.withConfig({
741
732
  displayName: "StyledText",
742
- componentId: "sc-aca14k-0"
743
- })(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), TextComponent = forwardRef(function(props, ref) {
744
- let $ = c(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
733
+ componentId: "sc-d4ufel-0"
734
+ })(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), Text = (0, react.forwardRef)(function Text(props, ref) {
735
+ let $ = (0, react_compiler_runtime.c)(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
745
736
  $[0] === props ? (align = $[1], childrenProp = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], textOverflow = $[7], weight = $[8]) : ({accent: t0, align, children: childrenProp, muted: t1, size: t2, textOverflow, weight, ...restProps} = props, $[0] = props, $[1] = align, $[2] = childrenProp, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = textOverflow, $[8] = weight);
746
737
  let accent = t0 !== void 0 && t0, muted = t1 !== void 0 && t1, size = t2 === void 0 ? 2 : t2, children = childrenProp;
747
738
  if (textOverflow === "ellipsis") {
748
739
  let t3;
749
- $[9] === children ? t3 = $[10] : (t3 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t3), children = t3;
740
+ $[9] === children ? t3 = $[10] : (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t3), children = t3;
750
741
  }
751
742
  let t3;
752
743
  $[11] === align ? t3 = $[12] : (t3 = _getArrayProp(align), $[11] = align, $[12] = t3);
753
744
  let t4;
754
745
  $[13] === size ? t4 = $[14] : (t4 = _getArrayProp(size), $[13] = size, $[14] = t4);
755
746
  let t5;
756
- $[15] === children ? t5 = $[16] : (t5 = /* @__PURE__ */ jsx("span", { children }), $[15] = children, $[16] = t5);
747
+ $[15] === children ? t5 = $[16] : (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children }), $[15] = children, $[16] = t5);
757
748
  let t6;
758
- return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsx(StyledText, {
749
+ return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledText, {
759
750
  "data-ui": "Text",
760
751
  ...restProps,
761
752
  $accent: accent,
@@ -766,18 +757,11 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
766
757
  $weight: weight,
767
758
  children: t5
768
759
  }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
769
- });
770
- TextComponent.displayName = "ForwardRef(Text)";
771
- /**
772
- * The `Text` component is an agile, themed typographic element.
773
- *
774
- * @public
775
- */
776
- const Text = TextComponent, StyledFlex = /* @__PURE__ */ styled(Box).withConfig({
760
+ }), StyledFlex = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
777
761
  displayName: "StyledFlex",
778
- componentId: "sc-r9nqck-0"
779
- })(flexItemStyle, responsiveFlexStyle), FlexComponent = forwardRef(function(props, ref) {
780
- let $ = c(27), align, as, gap, justify, restProps, t0, wrap;
762
+ componentId: "sc-ux9uze-0"
763
+ })(flexItemStyle, responsiveFlexStyle), Flex = (0, react.forwardRef)(function Flex(props, ref) {
764
+ let $ = (0, react_compiler_runtime.c)(27), align, as, gap, justify, restProps, t0, wrap;
781
765
  $[0] === props ? (align = $[1], as = $[2], gap = $[3], justify = $[4], restProps = $[5], t0 = $[6], wrap = $[7]) : ({align, as, direction: t0, gap, justify, wrap, ...restProps} = props, $[0] = props, $[1] = align, $[2] = as, $[3] = gap, $[4] = justify, $[5] = restProps, $[6] = t0, $[7] = wrap);
782
766
  let direction = t0 === void 0 ? "row" : t0, t1;
783
767
  $[8] === align ? t1 = $[9] : (t1 = _getArrayProp(align), $[8] = align, $[9] = t1);
@@ -790,7 +774,7 @@ const Text = TextComponent, StyledFlex = /* @__PURE__ */ styled(Box).withConfig(
790
774
  let t5;
791
775
  $[16] === wrap ? t5 = $[17] : (t5 = _getArrayProp(wrap), $[16] = wrap, $[17] = t5);
792
776
  let t6;
793
- return $[18] !== as || $[19] !== ref || $[20] !== restProps || $[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledFlex, {
777
+ return $[18] !== as || $[19] !== ref || $[20] !== restProps || $[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledFlex, {
794
778
  "data-ui": "Flex",
795
779
  ...restProps,
796
780
  $align: t1,
@@ -801,28 +785,20 @@ const Text = TextComponent, StyledFlex = /* @__PURE__ */ styled(Box).withConfig(
801
785
  forwardedAs: as,
802
786
  ref
803
787
  }), $[18] = as, $[19] = ref, $[20] = restProps, $[21] = t1, $[22] = t2, $[23] = t3, $[24] = t4, $[25] = t5, $[26] = t6) : t6 = $[26], t6;
804
- });
805
- FlexComponent.displayName = "ForwardRef(Flex)";
806
- /**
807
- * The `Flex` component is a wrapper component for flexible elements (`Box`, `Card` and `Flex`).
808
- *
809
- * @public
810
- */
811
- const Flex = FlexComponent, rotate = keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, StyledSpinner = styled(Text).withConfig({
788
+ }), rotate = styled_components.keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, StyledSpinner = (0, styled_components.styled)(Text).withConfig({
812
789
  displayName: "StyledSpinner",
813
- componentId: "sc-6ky9bg-0"
814
- })`& > span > svg{animation:${rotate} 500ms linear infinite;}`, Spinner = forwardRef(function(props, ref) {
815
- let $ = c(4), t0;
816
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(SpinnerIcon, {}), $[0] = t0) : t0 = $[0];
790
+ componentId: "sc-10l2iw-0"
791
+ })`& > span > svg{animation:${rotate} 500ms linear infinite;}`, Spinner = (0, react.forwardRef)(function Spinner(props, ref) {
792
+ let $ = (0, react_compiler_runtime.c)(4), t0;
793
+ $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_Spinner.SpinnerIcon, {}), $[0] = t0) : t0 = $[0];
817
794
  let t1;
818
- return $[1] !== props || $[2] !== ref ? (t1 = /* @__PURE__ */ jsx(StyledSpinner, {
795
+ return $[1] !== props || $[2] !== ref ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSpinner, {
819
796
  "data-ui": "Spinner",
820
797
  ...props,
821
798
  ref,
822
799
  children: t0
823
800
  }), $[1] = props, $[2] = ref, $[3] = t1) : t1 = $[3], t1;
824
801
  });
825
- Spinner.displayName = "ForwardRef(Spinner)";
826
802
  /**
827
803
  * @internal
828
804
  */
@@ -906,8 +882,8 @@ function _cardColorStyle(base, color, checkered = !1) {
906
882
  * @internal
907
883
  */
908
884
  function buttonBaseStyles(props) {
909
- let { $width } = props, { style } = getTheme_v2(props.theme);
910
- return css`${style?.button};-webkit-font-smoothing:inherit;appearance:none;display:inline-flex;align-items:center;font:inherit;border:0;outline:none;user-select:none;text-decoration:none;border:0;box-sizing:border-box;padding:0;margin:0;white-space:nowrap;text-align:left;position:relative;vertical-align:top;${$width === "fill" && css`width:-moz-available;width:-webkit-fill-available;width:stretch;`} & > span{display:block;flex:1;min-width:0;border-radius:inherit;}&::-moz-focus-inner{border:0;padding:0;}`;
885
+ let { $width } = props, { style } = require_theme.X(props.theme);
886
+ return styled_components.css`${style?.button};-webkit-font-smoothing:inherit;appearance:none;display:inline-flex;align-items:center;font:inherit;border:0;outline:none;user-select:none;text-decoration:none;border:0;box-sizing:border-box;padding:0;margin:0;white-space:nowrap;text-align:left;position:relative;vertical-align:top;${$width === "fill" && styled_components.css`width:-moz-available;width:-webkit-fill-available;width:stretch;`} & > span{display:block;flex:1;min-width:0;border-radius:inherit;}&::-moz-focus-inner{border:0;padding:0;}`;
911
887
  }
912
888
  function combineBoxShadow(...boxShadows) {
913
889
  return boxShadows.filter(Boolean).join(",");
@@ -916,7 +892,7 @@ function combineBoxShadow(...boxShadows) {
916
892
  * @internal
917
893
  */
918
894
  function buttonColorStyles(props) {
919
- let { $mode } = props, { button, color: baseColor, style } = getTheme_v2(props.theme);
895
+ let { $mode } = props, { button, color: baseColor, style } = require_theme.X(props.theme);
920
896
  props.$mode;
921
897
  let mode = baseColor.button[$mode] || baseColor.button.default, color = mode[props.$tone] || mode.default, border = {
922
898
  width: button.border.width,
@@ -951,14 +927,14 @@ function buttonColorStyles(props) {
951
927
  style?.button?.root
952
928
  ].filter(Boolean);
953
929
  }
954
- const StyledButton = /* @__PURE__ */ styled.button.withConfig({
930
+ const StyledButton = /* @__PURE__ */ styled_components.styled.button.withConfig({
955
931
  displayName: "StyledButton",
956
- componentId: "sc-u1hrlw-0"
957
- })(responsiveRadiusStyle, buttonBaseStyles, buttonColorStyles), LoadingBox = styled.div.withConfig({
932
+ componentId: "sc-rwh0gh-0"
933
+ })(responsiveRadiusStyle, buttonBaseStyles, buttonColorStyles), LoadingBox = styled_components.styled.div.withConfig({
958
934
  displayName: "LoadingBox",
959
- componentId: "sc-u1hrlw-1"
960
- })`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`, ButtonComponent = forwardRef(function(props, ref) {
961
- let $ = c(87), IconComponent, IconRightComponent, children, disabled, gap, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, textWeight, width;
935
+ componentId: "sc-rwh0gh-1"
936
+ })`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`, Button = (0, react.forwardRef)(function Button(props, ref) {
937
+ let $ = (0, react_compiler_runtime.c)(87), IconComponent, IconRightComponent, children, disabled, gap, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, textWeight, width;
962
938
  $[0] === props ? (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], gap = $[5], loading = $[6], paddingBottomProp = $[7], paddingLeftProp = $[8], paddingRightProp = $[9], paddingTopProp = $[10], paddingXProp = $[11], paddingYProp = $[12], restProps = $[13], selected = $[14], t0 = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21], t7 = $[22], t8 = $[23], text = $[24], textAlign = $[25], textWeight = $[26], width = $[27]) : ({children, disabled, fontSize: t0, icon: IconComponent, iconRight: IconRightComponent, justify: t1, loading, mode: t2, padding: t3, paddingX: paddingXProp, paddingY: paddingYProp, paddingTop: paddingTopProp, paddingBottom: paddingBottomProp, paddingLeft: paddingLeftProp, paddingRight: paddingRightProp, radius: t4, selected, gap, space: t5, text, textAlign, textWeight, tone: t6, type: t7, muted: t8, width, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = gap, $[6] = loading, $[7] = paddingBottomProp, $[8] = paddingLeftProp, $[9] = paddingRightProp, $[10] = paddingTopProp, $[11] = paddingXProp, $[12] = paddingYProp, $[13] = restProps, $[14] = selected, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6, $[22] = t7, $[23] = t8, $[24] = text, $[25] = textAlign, $[26] = textWeight, $[27] = width);
963
939
  let fontSize = t0 === void 0 ? 1 : t0, justifyProp = t1 === void 0 ? "center" : t1, mode = t2 === void 0 ? "default" : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, deprecated_space = t5 === void 0 ? 3 : t5, tone = t6 === void 0 ? "default" : t6, type = t7 === void 0 ? "button" : t7, muted = t8 !== void 0 && t8, { button } = useTheme_v2(), t9;
964
940
  $[28] === justifyProp ? t9 = $[29] : (t9 = _getArrayProp(justifyProp), $[28] = justifyProp, $[29] = t9);
@@ -991,21 +967,21 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
991
967
  paddingRight
992
968
  }, $[48] = padding, $[49] = paddingBottom, $[50] = paddingLeft, $[51] = paddingRight, $[52] = paddingTop, $[53] = paddingX, $[54] = paddingY, $[55] = t20) : t20 = $[55];
993
969
  let boxProps = t20, t21 = !!(loading || disabled), t22 = selected ? "" : void 0, t23 = !!(loading || disabled), t24;
994
- $[56] === loading ? t24 = $[57] : (t24 = !!loading && /* @__PURE__ */ jsx(LoadingBox, { children: /* @__PURE__ */ jsx(Spinner, {}) }), $[56] = loading, $[57] = t24);
970
+ $[56] === loading ? t24 = $[57] : (t24 = !!loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadingBox, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Spinner, {}) }), $[56] = loading, $[57] = t24);
995
971
  let t25;
996
- $[58] !== IconComponent || $[59] !== IconRightComponent || $[60] !== boxProps || $[61] !== button || $[62] !== fontSize || $[63] !== justify || $[64] !== muted || $[65] !== spacing || $[66] !== text || $[67] !== textAlign || $[68] !== textWeight ? (t25 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsx(Box, {
972
+ $[58] !== IconComponent || $[59] !== IconRightComponent || $[60] !== boxProps || $[61] !== button || $[62] !== fontSize || $[63] !== justify || $[64] !== muted || $[65] !== spacing || $[66] !== text || $[67] !== textAlign || $[68] !== textWeight ? (t25 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
997
973
  as: "span",
998
974
  ...boxProps,
999
- children: /* @__PURE__ */ jsxs(Flex, {
975
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Flex, {
1000
976
  as: "span",
1001
977
  justify,
1002
978
  gap: spacing,
1003
979
  children: [
1004
- IconComponent && /* @__PURE__ */ jsxs(Text, {
980
+ IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
1005
981
  size: fontSize,
1006
- children: [isValidElement(IconComponent) && IconComponent, isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})]
982
+ children: [(0, react.isValidElement)(IconComponent) && IconComponent, (0, react_is.isValidElementType)(IconComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconComponent, {})]
1007
983
  }),
1008
- text && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text, {
984
+ text && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, {
1009
985
  muted,
1010
986
  align: textAlign,
1011
987
  size: fontSize,
@@ -1013,21 +989,21 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1013
989
  weight: textWeight ?? button.textWeight,
1014
990
  children: text
1015
991
  }) }),
1016
- IconRightComponent && /* @__PURE__ */ jsxs(Text, {
992
+ IconRightComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
1017
993
  size: fontSize,
1018
- children: [isValidElement(IconRightComponent) && IconRightComponent, isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})]
994
+ children: [(0, react.isValidElement)(IconRightComponent) && IconRightComponent, (0, react_is.isValidElementType)(IconRightComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRightComponent, {})]
1019
995
  })
1020
996
  ]
1021
997
  })
1022
998
  }), $[58] = IconComponent, $[59] = IconRightComponent, $[60] = boxProps, $[61] = button, $[62] = fontSize, $[63] = justify, $[64] = muted, $[65] = spacing, $[66] = text, $[67] = textAlign, $[68] = textWeight, $[69] = t25) : t25 = $[69];
1023
999
  let t26;
1024
- $[70] !== boxProps || $[71] !== children ? (t26 = children && /* @__PURE__ */ jsx(Box, {
1000
+ $[70] !== boxProps || $[71] !== children ? (t26 = children && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
1025
1001
  as: "span",
1026
1002
  ...boxProps,
1027
1003
  children
1028
1004
  }), $[70] = boxProps, $[71] = children, $[72] = t26) : t26 = $[72];
1029
1005
  let t27;
1030
- return $[73] !== mode || $[74] !== radius || $[75] !== ref || $[76] !== restProps || $[77] !== t21 || $[78] !== t22 || $[79] !== t23 || $[80] !== t24 || $[81] !== t25 || $[82] !== t26 || $[83] !== tone || $[84] !== type || $[85] !== width ? (t27 = /* @__PURE__ */ jsxs(StyledButton, {
1006
+ return $[73] !== mode || $[74] !== radius || $[75] !== ref || $[76] !== restProps || $[77] !== t21 || $[78] !== t22 || $[79] !== t23 || $[80] !== t24 || $[81] !== t25 || $[82] !== t26 || $[83] !== tone || $[84] !== type || $[85] !== width ? (t27 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledButton, {
1031
1007
  "data-ui": "Button",
1032
1008
  ...restProps,
1033
1009
  $mode: mode,
@@ -1046,24 +1022,19 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1046
1022
  ]
1047
1023
  }), $[73] = mode, $[74] = radius, $[75] = ref, $[76] = restProps, $[77] = t21, $[78] = t22, $[79] = t23, $[80] = t24, $[81] = t25, $[82] = t26, $[83] = tone, $[84] = type, $[85] = width, $[86] = t27) : t27 = $[86], t27;
1048
1024
  });
1049
- ButtonComponent.displayName = "ForwardRef(Button)";
1050
- /**
1051
- * @public
1052
- */
1053
- const Button = ButtonComponent;
1054
1025
  function cardStyle(props) {
1055
1026
  return [cardBaseStyle(props), cardColorStyle(props)];
1056
1027
  }
1057
1028
  function cardBaseStyle(props) {
1058
- let { $checkered } = props, { space } = getTheme_v2(props.theme);
1059
- return css`${$checkered && css`background-size:${space[3]}px ${space[3]}px;background-position:50% 50%;background-image:var(--card-bg-image);`} &[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{outline:none;text-decoration:none;}&[data-as='pre']{font:inherit;}`;
1029
+ let { $checkered } = props, { space } = require_theme.X(props.theme);
1030
+ return styled_components.css`${$checkered && styled_components.css`background-size:${space[3]}px ${space[3]}px;background-position:50% 50%;background-image:var(--card-bg-image);`} &[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{outline:none;text-decoration:none;}&[data-as='pre']{font:inherit;}`;
1060
1031
  }
1061
1032
  function cardColorStyle(props) {
1062
- let { $checkered, $focusRing, $muted } = props, { card, color, style } = getTheme_v2(props.theme), border = {
1033
+ let { $checkered, $focusRing, $muted } = props, { card, color, style } = require_theme.X(props.theme), border = {
1063
1034
  width: card.border.width,
1064
1035
  color: "var(--card-border-color)"
1065
1036
  };
1066
- return css`color-scheme:${color._dark ? "dark" : "light"};${_cardColorStyle(color, color, $checkered)} background-color:${$muted ? "var(--card-muted-bg-color)" : "var(--card-bg-color)"};color:var(--card-fg-color);&[data-as='button']{--card-focus-ring-box-shadow:none;cursor:default;box-shadow:var(--card-focus-ring-box-shadow);&:disabled{${_cardColorStyle(color, color.selectable.default.disabled, $checkered)}}&:not(:disabled){&[data-pressed]{${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}}&[data-selected]{${_cardColorStyle(color, color.selectable.default.selected, $checkered)}}@media (hover:hover){&:not([data-pressed]):not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, color.selectable.default.hovered, $checkered)}}&:active{${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}}}}&:focus-visible{--card-focus-ring-box-shadow:${$focusRing ? focusRingStyle({
1037
+ return styled_components.css`color-scheme:${color._dark ? "dark" : "light"};${_cardColorStyle(color, color, $checkered)} background-color:${$muted ? "var(--card-muted-bg-color)" : "var(--card-bg-color)"};color:var(--card-fg-color);&[data-as='button']{--card-focus-ring-box-shadow:none;cursor:default;box-shadow:var(--card-focus-ring-box-shadow);&:disabled{${_cardColorStyle(color, color.selectable.default.disabled, $checkered)}}&:not(:disabled){&[data-pressed]{${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}}&[data-selected]{${_cardColorStyle(color, color.selectable.default.selected, $checkered)}}@media (hover:hover){&:not([data-pressed]):not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, color.selectable.default.hovered, $checkered)}}&:active{${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}}}}&:focus-visible{--card-focus-ring-box-shadow:${$focusRing ? focusRingStyle({
1067
1038
  base: color,
1068
1039
  border,
1069
1040
  focusRing: card.focusRing
@@ -1073,13 +1044,13 @@ function cardColorStyle(props) {
1073
1044
  focusRing: card.focusRing
1074
1045
  }) : void 0};}}}${style?.card?.root}`;
1075
1046
  }
1076
- const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
1047
+ const StyledCard = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
1077
1048
  displayName: "StyledCard",
1078
- componentId: "sc-5721dn-0"
1079
- })(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), CardComponent = forwardRef(function(props, ref) {
1080
- let $ = c(56), asProp, border, borderBottom, borderLeft, borderRight, borderTop, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
1049
+ componentId: "sc-p2pbep-0"
1050
+ })(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = (0, react.forwardRef)(function Card(props, ref) {
1051
+ let $ = (0, react_compiler_runtime.c)(56), asProp, border, borderBottom, borderLeft, borderRight, borderTop, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
1081
1052
  $[0] === props ? (asProp = $[1], border = $[2], borderBottom = $[3], borderLeft = $[4], borderRight = $[5], borderTop = $[6], muted = $[7], pressed = $[8], restProps = $[9], scheme = $[10], selected = $[11], shadow = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16]) : ({__unstable_checkered: t0, __unstable_focusRing: t1, as: asProp, border, borderTop, borderRight, borderBottom, borderLeft, muted, pressed, radius: t2, scheme, selected, shadow, tone: t3, ...restProps} = props, $[0] = props, $[1] = asProp, $[2] = border, $[3] = borderBottom, $[4] = borderLeft, $[5] = borderRight, $[6] = borderTop, $[7] = muted, $[8] = pressed, $[9] = restProps, $[10] = scheme, $[11] = selected, $[12] = shadow, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3);
1082
- let checkered = t0 !== void 0 && t0, focusRing = t1 !== void 0 && t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme, t6;
1053
+ let checkered = t0 !== void 0 && t0, focusRing = t1 !== void 0 && t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = (0, react_is.isValidElementType)(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme, t6;
1083
1054
  $[17] === border ? t6 = $[18] : (t6 = _getArrayProp(border), $[17] = border, $[18] = t6);
1084
1055
  let t7;
1085
1056
  $[19] === borderTop ? t7 = $[20] : (t7 = _getArrayProp(borderTop), $[19] = borderTop, $[20] = t7);
@@ -1094,7 +1065,7 @@ const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
1094
1065
  let t12;
1095
1066
  $[29] === shadow ? t12 = $[30] : (t12 = _getArrayProp(shadow), $[29] = shadow, $[30] = t12);
1096
1067
  let t13 = checkered ? "" : void 0, t14 = pressed ? "" : void 0, t15 = selected ? "" : void 0, t16;
1097
- $[31] !== as || $[32] !== checkered || $[33] !== focusRing || $[34] !== muted || $[35] !== ref || $[36] !== restProps || $[37] !== rootTheme.scheme || $[38] !== selected || $[39] !== t10 || $[40] !== t11 || $[41] !== t12 || $[42] !== t13 || $[43] !== t14 || $[44] !== t15 || $[45] !== t4 || $[46] !== t6 || $[47] !== t7 || $[48] !== t8 || $[49] !== t9 || $[50] !== tone ? (t16 = /* @__PURE__ */ jsx(StyledCard, {
1068
+ $[31] !== as || $[32] !== checkered || $[33] !== focusRing || $[34] !== muted || $[35] !== ref || $[36] !== restProps || $[37] !== rootTheme.scheme || $[38] !== selected || $[39] !== t10 || $[40] !== t11 || $[41] !== t12 || $[42] !== t13 || $[43] !== t14 || $[44] !== t15 || $[45] !== t4 || $[46] !== t6 || $[47] !== t7 || $[48] !== t8 || $[49] !== t9 || $[50] !== tone ? (t16 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledCard, {
1098
1069
  "data-as": t4,
1099
1070
  "data-scheme": t5,
1100
1071
  "data-ui": "Card",
@@ -1119,29 +1090,18 @@ const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
1119
1090
  selected
1120
1091
  }), $[31] = as, $[32] = checkered, $[33] = focusRing, $[34] = muted, $[35] = ref, $[36] = restProps, $[37] = rootTheme.scheme, $[38] = selected, $[39] = t10, $[40] = t11, $[41] = t12, $[42] = t13, $[43] = t14, $[44] = t15, $[45] = t4, $[46] = t6, $[47] = t7, $[48] = t8, $[49] = t9, $[50] = tone, $[51] = t16) : t16 = $[51];
1121
1092
  let t17;
1122
- return $[52] !== scheme || $[53] !== t16 || $[54] !== tone ? (t17 = /* @__PURE__ */ jsx(ThemeColorProvider, {
1093
+ return $[52] !== scheme || $[53] !== t16 || $[54] !== tone ? (t17 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ThemeColorProvider, {
1123
1094
  scheme,
1124
1095
  tone,
1125
1096
  children: t16
1126
1097
  }), $[52] = scheme, $[53] = t16, $[54] = tone, $[55] = t17) : t17 = $[55], t17;
1127
1098
  });
1128
- CardComponent.displayName = "ForwardRef(Card)";
1129
- /**
1130
- * The `Card` component acts much like a `Box`, but with a background and foreground color.
1131
- * Components within a `Card` inherit its colors.
1132
- *
1133
- * @public
1134
- */
1135
- const Card = CardComponent;
1136
1099
  /**
1137
1100
  * @public
1138
1101
  */
1139
- function useClickOutsideEvent(listener, elementsArg = () => EMPTY_ARRAY, boundaryElement) {
1140
- /**
1141
- * The `useEffectEvent` hook allow us to always see the latest value of `listener`, `elementsArg` and `boundaryElement` without needing to
1142
- * juggle `useState`, `useRef` and `useState` to make sure the `mousedown` event listener isn't constantly being added and removed.
1143
- */
1144
- let onEvent = useEffectEvent((evt) => {
1102
+ function useClickOutsideEvent(listener, t0, boundaryElement) {
1103
+ let $ = (0, react_compiler_runtime.c)(9), elementsArg = t0 === void 0 ? _temp$8 : t0, t1;
1104
+ $[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
1145
1105
  if (!listener) return;
1146
1106
  let target = evt.target;
1147
1107
  if (!(target instanceof Node)) return;
@@ -1150,27 +1110,34 @@ function useClickOutsideEvent(listener, elementsArg = () => EMPTY_ARRAY, boundar
1150
1110
  let elements = elementsArg().flat();
1151
1111
  for (let el of elements) if (el && (target === el || el.contains(target))) return;
1152
1112
  listener(evt);
1153
- }), hasListener = !!listener;
1154
- useEffect(() => {
1113
+ }, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
1114
+ let onEvent = (0, use_effect_event.useEffectEvent)(t1), hasListener = !!listener, t2;
1115
+ $[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
1155
1116
  if (!hasListener) return;
1156
- let handleEvent = (evt) => onEvent(evt);
1117
+ let handleEvent = (evt_0) => onEvent(evt_0);
1157
1118
  return document.addEventListener("mousedown", handleEvent), () => {
1158
1119
  document.removeEventListener("mousedown", handleEvent);
1159
1120
  };
1160
- }, [hasListener]), useDebugValue(listener ? "MouseDown On" : "MouseDown Off");
1121
+ }, $[4] = hasListener, $[5] = onEvent, $[6] = t2) : t2 = $[6];
1122
+ let t3;
1123
+ $[7] === hasListener ? t3 = $[8] : (t3 = [hasListener], $[7] = hasListener, $[8] = t3), (0, react.useEffect)(t2, t3), (0, react.useDebugValue)(listener ? "MouseDown On" : "MouseDown Off");
1124
+ }
1125
+ function _temp$8() {
1126
+ return EMPTY_ARRAY;
1161
1127
  }
1162
1128
  /**
1163
1129
  * @beta
1164
1130
  */
1165
1131
  function useCustomValidity(ref, customValidity) {
1166
- useEffect(() => {
1132
+ let $ = (0, react_compiler_runtime.c)(4), t0, t1;
1133
+ $[0] !== customValidity || $[1] !== ref ? (t0 = () => {
1167
1134
  ref.current?.setCustomValidity(customValidity || "");
1168
- }, [customValidity, ref]);
1135
+ }, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), (0, react.useEffect)(t0, t1);
1169
1136
  }
1170
1137
  /**
1171
1138
  * @internal
1172
1139
  */
1173
- const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
1140
+ const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : _juggle_resize_observer.ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
1174
1141
  function _createElementRectValueListener() {
1175
1142
  return { subscribe(element, subscriber) {
1176
1143
  let resizeObserver = new _ResizeObserver(([entry]) => {
@@ -1208,10 +1175,10 @@ function _createElementSizeObserver() {
1208
1175
  * @beta
1209
1176
  */
1210
1177
  function useElementSize(element) {
1211
- let [size, setSize] = useState(null);
1212
- return useEffect(() => {
1178
+ let $ = (0, react_compiler_runtime.c)(3), [size, setSize] = (0, react.useState)(null), t0, t1;
1179
+ return $[0] === element ? (t0 = $[1], t1 = $[2]) : (t0 = () => {
1213
1180
  if (element) return _elementSizeObserver.subscribe(element, setSize);
1214
- }, [element]), size;
1181
+ }, t1 = [element], $[0] = element, $[1] = t0, $[2] = t1), (0, react.useEffect)(t0, t1), size;
1215
1182
  }
1216
1183
  /**
1217
1184
  * Adds global keydown event listener to the window.
@@ -1221,11 +1188,15 @@ function useElementSize(element) {
1221
1188
  * @beta
1222
1189
  */
1223
1190
  function useGlobalKeyDown(onKeyDown, options) {
1224
- let handleKeyDown = useEffectEvent((event) => onKeyDown(event));
1225
- useEffect(() => {
1226
- let handler = (event) => handleKeyDown(event);
1191
+ let $ = (0, react_compiler_runtime.c)(7), t0;
1192
+ $[0] === onKeyDown ? t0 = $[1] : (t0 = (event) => onKeyDown(event), $[0] = onKeyDown, $[1] = t0);
1193
+ let handleKeyDown = (0, use_effect_event.useEffectEvent)(t0), t1;
1194
+ $[2] !== handleKeyDown || $[3] !== options ? (t1 = () => {
1195
+ let handler = (event_0) => handleKeyDown(event_0);
1227
1196
  return window.addEventListener("keydown", handler, options), () => window.removeEventListener("keydown", handler, options);
1228
- }, [options]);
1197
+ }, $[2] = handleKeyDown, $[3] = options, $[4] = t1) : t1 = $[4];
1198
+ let t2;
1199
+ $[5] === options ? t2 = $[6] : (t2 = [options], $[5] = options, $[6] = t2), (0, react.useEffect)(t1, t2);
1229
1200
  }
1230
1201
  /**
1231
1202
  * Efficiently subscribes to `window.matchMedia` queries
@@ -1235,10 +1206,15 @@ function useGlobalKeyDown(onKeyDown, options) {
1235
1206
  * @public
1236
1207
  */
1237
1208
  function useMatchMedia(mediaQueryString, getServerSnapshot) {
1238
- return useDebugValue(mediaQueryString), useSyncExternalStore(useCallback((onStoreChange) => {
1209
+ let $ = (0, react_compiler_runtime.c)(4);
1210
+ (0, react.useDebugValue)(mediaQueryString);
1211
+ let t0;
1212
+ $[0] === mediaQueryString ? t0 = $[1] : (t0 = (onStoreChange) => {
1239
1213
  let media = window.matchMedia(mediaQueryString);
1240
1214
  return media.addEventListener("change", onStoreChange), () => media.removeEventListener("change", onStoreChange);
1241
- }, [mediaQueryString]), () => window.matchMedia(mediaQueryString).matches, getServerSnapshot);
1215
+ }, $[0] = mediaQueryString, $[1] = t0);
1216
+ let t1;
1217
+ return $[2] === mediaQueryString ? t1 = $[3] : (t1 = () => window.matchMedia(mediaQueryString).matches, $[2] = mediaQueryString, $[3] = t1), (0, react.useSyncExternalStore)(t0, t1, getServerSnapshot);
1242
1218
  }
1243
1219
  function _getMediaQuery(media, index) {
1244
1220
  return index === 0 ? `screen and (max-width: ${media[index] - 1}px)` : index === media.length ? `screen and (min-width: ${media[index - 1]}px)` : `screen and (min-width: ${media[index - 1]}px) and (max-width: ${media[index] - 1}px)`;
@@ -1256,24 +1232,24 @@ function _createMediaStore(media) {
1256
1232
  }
1257
1233
  }
1258
1234
  return sizes;
1259
- };
1260
- return {
1261
- getSnapshot: () => {
1262
- for (let { index, mq } of getSizes()) if (mq.matches) return index;
1263
- return 0;
1264
- },
1265
- subscribe: (onStoreChange) => {
1266
- let disposeFns = [];
1267
- for (let { mq } of getSizes()) {
1268
- let handleChange = () => {
1269
- mq.matches && onStoreChange();
1270
- };
1271
- mq.addEventListener("change", handleChange), disposeFns.push(() => mq.removeEventListener("change", handleChange));
1272
- }
1273
- return () => {
1274
- for (let disposeFn of disposeFns) disposeFn();
1235
+ }, getSnapshot = () => {
1236
+ for (let { index, mq } of getSizes()) if (mq.matches) return index;
1237
+ return 0;
1238
+ }, subscribe = (onStoreChange) => {
1239
+ let disposeFns = [];
1240
+ for (let { mq } of getSizes()) {
1241
+ let handleChange = () => {
1242
+ mq.matches && onStoreChange();
1275
1243
  };
1244
+ mq.addEventListener("change", handleChange), disposeFns.push(() => mq.removeEventListener("change", handleChange));
1276
1245
  }
1246
+ return () => {
1247
+ for (let disposeFn of disposeFns) disposeFn();
1248
+ };
1249
+ };
1250
+ return {
1251
+ getSnapshot,
1252
+ subscribe
1277
1253
  };
1278
1254
  }
1279
1255
  /**
@@ -1291,8 +1267,10 @@ function getServerSnapshot() {
1291
1267
  * @beta
1292
1268
  */
1293
1269
  function useMediaIndex() {
1294
- let { media } = useTheme_v2(), store = useMemo(() => _createMediaStore(media), [media]);
1295
- return useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
1270
+ let $ = (0, react_compiler_runtime.c)(2), { media } = useTheme_v2(), t0;
1271
+ $[0] === media ? t0 = $[1] : (t0 = _createMediaStore(media), $[0] = media, $[1] = t0);
1272
+ let store = t0;
1273
+ return (0, react.useSyncExternalStore)(store.subscribe, store.getSnapshot, getServerSnapshot);
1296
1274
  }
1297
1275
  /**
1298
1276
  * Returns true if a dark color scheme is preferred, false if a light color scheme is preferred or the preference is not known.
@@ -1305,8 +1283,11 @@ function useMediaIndex() {
1305
1283
  *
1306
1284
  * @public
1307
1285
  */
1308
- function usePrefersDark(getServerSnapshot = () => !1) {
1309
- return useMatchMedia("(prefers-color-scheme: dark)", getServerSnapshot);
1286
+ function usePrefersDark(t0) {
1287
+ return useMatchMedia("(prefers-color-scheme: dark)", t0 === void 0 ? _temp$7 : t0);
1288
+ }
1289
+ function _temp$7() {
1290
+ return !1;
1310
1291
  }
1311
1292
  /**
1312
1293
  * Returns true if motion should be reduced
@@ -1319,14 +1300,17 @@ function usePrefersDark(getServerSnapshot = () => !1) {
1319
1300
  *
1320
1301
  * @public
1321
1302
  */
1322
- function usePrefersReducedMotion(getServerSnapshot = () => !1) {
1323
- return useMatchMedia("(prefers-reduced-motion: reduce)", getServerSnapshot);
1303
+ function usePrefersReducedMotion(t0) {
1304
+ return useMatchMedia("(prefers-reduced-motion: reduce)", t0 === void 0 ? _temp$6 : t0);
1305
+ }
1306
+ function _temp$6() {
1307
+ return !1;
1324
1308
  }
1325
- const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
1309
+ const StyledGrid = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
1326
1310
  displayName: "StyledGrid",
1327
- componentId: "sc-p9qx07-0"
1328
- })(responsiveGridStyle), GridComponent = forwardRef(function(props, ref) {
1329
- let $ = c(44), as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, gridTemplateColumns, gridTemplateRows, restProps, rows;
1311
+ componentId: "sc-1yxm55-0"
1312
+ })(responsiveGridStyle), Grid = (0, react.forwardRef)(function Grid(props, ref) {
1313
+ let $ = (0, react_compiler_runtime.c)(44), as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, gridTemplateColumns, gridTemplateRows, restProps, rows;
1330
1314
  $[0] === props ? (as = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], children = $[5], columns = $[6], gap = $[7], gapX = $[8], gapY = $[9], gridTemplateColumns = $[10], gridTemplateRows = $[11], restProps = $[12], rows = $[13]) : ({as, autoRows, autoCols, autoFlow, columns, gridTemplateColumns, gap, gapX, gapY, rows, gridTemplateRows, children, ...restProps} = props, $[0] = props, $[1] = as, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = children, $[6] = columns, $[7] = gap, $[8] = gapX, $[9] = gapY, $[10] = gridTemplateColumns, $[11] = gridTemplateRows, $[12] = restProps, $[13] = rows);
1331
1315
  let t0 = typeof as == "string" ? as : void 0, t1;
1332
1316
  $[14] === autoRows ? t1 = $[15] : (t1 = _getArrayProp(autoRows), $[14] = autoRows, $[15] = t1);
@@ -1345,7 +1329,7 @@ const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
1345
1329
  let t9 = gridTemplateRows === void 0 ? rows : gridTemplateRows, t10;
1346
1330
  $[28] === t9 ? t10 = $[29] : (t10 = _getArrayProp(t9), $[28] = t9, $[29] = t10);
1347
1331
  let t11;
1348
- return $[30] !== as || $[31] !== children || $[32] !== ref || $[33] !== restProps || $[34] !== t0 || $[35] !== t1 || $[36] !== t10 || $[37] !== t2 || $[38] !== t3 || $[39] !== t5 || $[40] !== t6 || $[41] !== t7 || $[42] !== t8 ? (t11 = /* @__PURE__ */ jsx(StyledGrid, {
1332
+ return $[30] !== as || $[31] !== children || $[32] !== ref || $[33] !== restProps || $[34] !== t0 || $[35] !== t1 || $[36] !== t10 || $[37] !== t2 || $[38] !== t3 || $[39] !== t5 || $[40] !== t6 || $[41] !== t7 || $[42] !== t8 ? (t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledGrid, {
1349
1333
  "data-as": t0,
1350
1334
  "data-ui": "Grid",
1351
1335
  ...restProps,
@@ -1362,13 +1346,6 @@ const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
1362
1346
  children
1363
1347
  }), $[30] = as, $[31] = children, $[32] = ref, $[33] = restProps, $[34] = t0, $[35] = t1, $[36] = t10, $[37] = t2, $[38] = t3, $[39] = t5, $[40] = t6, $[41] = t7, $[42] = t8, $[43] = t11) : t11 = $[43], t11;
1364
1348
  });
1365
- GridComponent.displayName = "ForwardRef(Grid)";
1366
- /**
1367
- * The `Grid` component is for building 2-dimensional layers (based on CSS grid).
1368
- *
1369
- * @public
1370
- */
1371
- const Grid = GridComponent;
1372
1349
  function inlineBaseStyle() {
1373
1350
  return {
1374
1351
  lineHeight: "0",
@@ -1380,7 +1357,7 @@ function inlineBaseStyle() {
1380
1357
  };
1381
1358
  }
1382
1359
  function inlineSpaceStyle(props) {
1383
- let { media, space } = getTheme_v2(props.theme);
1360
+ let { media, space } = require_theme.X(props.theme);
1384
1361
  return _responsive(media, props.$space, (spaceIndex) => {
1385
1362
  let _space = rem(spaceIndex === .5 ? space[1] / 2 : space[spaceIndex]);
1386
1363
  return {
@@ -1389,18 +1366,18 @@ function inlineSpaceStyle(props) {
1389
1366
  };
1390
1367
  });
1391
1368
  }
1392
- const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
1369
+ const StyledInline = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
1393
1370
  displayName: "StyledInline",
1394
- componentId: "sc-aabqmb-0"
1395
- })(inlineBaseStyle, inlineSpaceStyle), InlineComponent = forwardRef(function(props, ref) {
1396
- let $ = c(16), as, childrenProp, deprecated_space, gap, restProps;
1371
+ componentId: "sc-8j2qbm-0"
1372
+ })(inlineBaseStyle, inlineSpaceStyle), Inline = (0, react.forwardRef)(function Inline(props, ref) {
1373
+ let $ = (0, react_compiler_runtime.c)(16), as, childrenProp, deprecated_space, gap, restProps;
1397
1374
  $[0] === props ? (as = $[1], childrenProp = $[2], deprecated_space = $[3], gap = $[4], restProps = $[5]) : ({as, children: childrenProp, gap, space: deprecated_space, ...restProps} = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = deprecated_space, $[4] = gap, $[5] = restProps);
1398
1375
  let spacing = gap === void 0 ? deprecated_space : gap, t0;
1399
- $[6] === childrenProp ? t0 = $[7] : (t0 = Children.map(childrenProp, _temp$4), $[6] = childrenProp, $[7] = t0);
1376
+ $[6] === childrenProp ? t0 = $[7] : (t0 = react.Children.map(childrenProp, _temp$5), $[6] = childrenProp, $[7] = t0);
1400
1377
  let children = t0, t1;
1401
1378
  $[8] === spacing ? t1 = $[9] : (t1 = _getArrayProp(spacing), $[8] = spacing, $[9] = t1);
1402
1379
  let t2 = ref, t3;
1403
- return $[10] !== as || $[11] !== children || $[12] !== restProps || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ jsx(StyledInline, {
1380
+ return $[10] !== as || $[11] !== children || $[12] !== restProps || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledInline, {
1404
1381
  "data-ui": "Inline",
1405
1382
  ...restProps,
1406
1383
  $space: t1,
@@ -1409,56 +1386,42 @@ const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
1409
1386
  children
1410
1387
  }), $[10] = as, $[11] = children, $[12] = restProps, $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15], t3;
1411
1388
  });
1412
- InlineComponent.displayName = "ForwardRef(Inline)";
1413
- /**
1414
- * The `Inline` component is a layout utility for aligning and spacing items horizontally.
1415
- *
1416
- * @public
1417
- */
1418
- const Inline = InlineComponent;
1419
- function _temp$4(child) {
1420
- return child && /* @__PURE__ */ jsx("div", { children: child });
1389
+ function _temp$5(child) {
1390
+ return child && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: child });
1421
1391
  }
1422
1392
  function kbdStyle() {
1423
- return css`--card-bg-color:var(--card-kbd-bg-color);--card-border-color:var(--card-kbd-border-color);--card-fg-color:var(--card-kbd-fg-color);box-shadow:inset 0 0 0 1px var(--card-border-color);background:var(--card-bg-color);font:inherit;vertical-align:top;&:not([hidden]){display:inline-block;}`;
1393
+ return styled_components.css`--card-bg-color:var(--card-kbd-bg-color);--card-border-color:var(--card-kbd-border-color);--card-fg-color:var(--card-kbd-fg-color);box-shadow:inset 0 0 0 1px var(--card-border-color);background:var(--card-bg-color);font:inherit;vertical-align:top;&:not([hidden]){display:inline-block;}`;
1424
1394
  }
1425
- const StyledKBD = /* @__PURE__ */ styled.kbd.withConfig({
1395
+ const StyledKBD = /* @__PURE__ */ styled_components.styled.kbd.withConfig({
1426
1396
  displayName: "StyledKBD",
1427
- componentId: "sc-ielwjm-0"
1428
- })(responsiveRadiusStyle, kbdStyle), KBDComponent = forwardRef(function(props, ref) {
1429
- let $ = c(19), children, restProps, t0, t1, t2;
1397
+ componentId: "sc-pgjv2l-0"
1398
+ })(responsiveRadiusStyle, kbdStyle), KBD = (0, react.forwardRef)(function KBD(props, ref) {
1399
+ let $ = (0, react_compiler_runtime.c)(19), children, restProps, t0, t1, t2;
1430
1400
  $[0] === props ? (children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5]) : ({children, fontSize: t0, padding: t1, radius: t2, ...restProps} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2);
1431
1401
  let fontSize = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? 2 : t2, t3;
1432
1402
  $[6] === radius ? t3 = $[7] : (t3 = _getArrayProp(radius), $[6] = radius, $[7] = t3);
1433
1403
  let t4;
1434
- $[8] !== children || $[9] !== fontSize ? (t4 = /* @__PURE__ */ jsx(Text, {
1404
+ $[8] !== children || $[9] !== fontSize ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, {
1435
1405
  as: "span",
1436
1406
  size: fontSize,
1437
1407
  weight: "semibold",
1438
1408
  children
1439
1409
  }), $[8] = children, $[9] = fontSize, $[10] = t4) : t4 = $[10];
1440
1410
  let t5;
1441
- $[11] !== padding || $[12] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, {
1411
+ $[11] !== padding || $[12] !== t4 ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
1442
1412
  as: "span",
1443
1413
  padding,
1444
1414
  children: t4
1445
1415
  }), $[11] = padding, $[12] = t4, $[13] = t5) : t5 = $[13];
1446
1416
  let t6;
1447
- return $[14] !== ref || $[15] !== restProps || $[16] !== t3 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledKBD, {
1417
+ return $[14] !== ref || $[15] !== restProps || $[16] !== t3 || $[17] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledKBD, {
1448
1418
  "data-ui": "KBD",
1449
1419
  ...restProps,
1450
1420
  $radius: t3,
1451
1421
  ref,
1452
1422
  children: t5
1453
1423
  }), $[14] = ref, $[15] = restProps, $[16] = t3, $[17] = t5, $[18] = t6) : t6 = $[18], t6;
1454
- });
1455
- KBDComponent.displayName = "ForwardRef(KBD)";
1456
- /**
1457
- * Used to define some text as keyboard input.
1458
- *
1459
- * @public
1460
- */
1461
- const KBD = KBDComponent, origin = {
1424
+ }), origin = {
1462
1425
  name: "@sanity/ui/origin",
1463
1426
  fn({ middlewareData, placement, rects }) {
1464
1427
  let [side] = placement.split("-"), floatingWidth = rects.floating.width, floatingHeight = rects.floating.height, shiftX = middlewareData.shift?.x || 0, shiftY = middlewareData.shift?.y || 0;
@@ -1514,17 +1477,17 @@ function getRoundedCommands(points) {
1514
1477
  function compileCommands(cmds) {
1515
1478
  return cmds.map((n, idx) => n.type === "point" ? `${idx === 0 ? "M" : "L"} ${n.x} ${n.y}` : n.type === "curve" ? `C ${n.startControl.x} ${n.startControl.y} ${n.endControl.x} ${n.endControl.y} ${n.curveEnd.x} ${n.curveEnd.y}` : "").join(" ");
1516
1479
  }
1517
- const StyledArrow = /* @__PURE__ */ styled.div.withConfig({
1480
+ const StyledArrow = /* @__PURE__ */ styled_components.styled.div.withConfig({
1518
1481
  displayName: "StyledArrow",
1519
- componentId: "sc-d20m08-0"
1520
- })(({ $w: w }) => css`position:absolute;width:${w}px;height:${w}px;:empty + &{display:none;}& > svg{display:block;line-height:0;transform-origin:${w / 2}px ${w / 2}px;}[data-placement^='top'] > &{bottom:-${w}px;& > svg{transform:rotate(0);}}[data-placement^='right'] > &{left:-${w}px;& > svg{transform:rotate(90deg);}}[data-placement^='left'] > &{right:-${w}px;& > svg{transform:rotate(-90deg);}}[data-placement^='bottom'] > &{top:-${w}px;& > svg{transform:rotate(180deg);}}`), StrokePath = styled.path.withConfig({
1482
+ componentId: "sc-1ev21f-0"
1483
+ })(({ $w: w }) => styled_components.css`position:absolute;width:${w}px;height:${w}px;:empty + &{display:none;}& > svg{display:block;line-height:0;transform-origin:${w / 2}px ${w / 2}px;}[data-placement^='top'] > &{bottom:-${w}px;& > svg{transform:rotate(0);}}[data-placement^='right'] > &{left:-${w}px;& > svg{transform:rotate(90deg);}}[data-placement^='left'] > &{right:-${w}px;& > svg{transform:rotate(-90deg);}}[data-placement^='bottom'] > &{top:-${w}px;& > svg{transform:rotate(180deg);}}`), StrokePath = styled_components.styled.path.withConfig({
1521
1484
  displayName: "StrokePath",
1522
- componentId: "sc-d20m08-1"
1523
- })`stroke:var(--card-shadow-outline-color);`, ShapePath = styled.path.withConfig({
1485
+ componentId: "sc-1ev21f-1"
1486
+ })`stroke:var(--card-shadow-outline-color);`, ShapePath = styled_components.styled.path.withConfig({
1524
1487
  displayName: "ShapePath",
1525
- componentId: "sc-d20m08-2"
1526
- })`fill:var(--card-bg-color);`, Arrow = forwardRef(function(props, ref) {
1527
- let $ = c(29), h, restProps, t0, w;
1488
+ componentId: "sc-1ev21f-2"
1489
+ })`fill:var(--card-bg-color);`, Arrow = (0, react.forwardRef)(function Arrow(props, ref) {
1490
+ let $ = (0, react_compiler_runtime.c)(29), h, restProps, t0, w;
1528
1491
  $[0] === props ? (h = $[1], restProps = $[2], t0 = $[3], w = $[4]) : ({width: w, height: h, radius: t0, ...restProps} = props, $[0] = props, $[1] = h, $[2] = restProps, $[3] = t0, $[4] = w);
1529
1492
  let radius = t0 === void 0 ? 0 : t0, { card } = useTheme_v2(), strokeWidth = card.shadow.outline, center = w / 2, t1;
1530
1493
  $[5] !== center || $[6] !== h || $[7] !== radius || $[8] !== w ? (t1 = compileCommands(getRoundedCommands([
@@ -1553,9 +1516,9 @@ const StyledArrow = /* @__PURE__ */ styled.div.withConfig({
1553
1516
  }
1554
1517
  ])), $[5] = center, $[6] = h, $[7] = radius, $[8] = w, $[9] = t1) : t1 = $[9];
1555
1518
  let path = t1, strokePath = `${path}`, fillPath = `${path} M ${w} -1 M 0 -1 Z`, t2 = `0 0 ${w} ${w}`, t3;
1556
- $[10] !== strokeWidth || $[11] !== w ? (t3 = /* @__PURE__ */ jsx("mask", {
1519
+ $[10] !== strokeWidth || $[11] !== w ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("mask", {
1557
1520
  id: "stroke-mask",
1558
- children: /* @__PURE__ */ jsx("rect", {
1521
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
1559
1522
  x: 0,
1560
1523
  y: strokeWidth,
1561
1524
  width: w,
@@ -1564,15 +1527,15 @@ const StyledArrow = /* @__PURE__ */ styled.div.withConfig({
1564
1527
  })
1565
1528
  }), $[10] = strokeWidth, $[11] = w, $[12] = t3) : t3 = $[12];
1566
1529
  let t4 = strokeWidth * 2, t5;
1567
- $[13] !== strokePath || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsx(StrokePath, {
1530
+ $[13] !== strokePath || $[14] !== t4 ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StrokePath, {
1568
1531
  d: strokePath,
1569
1532
  mask: "url(#stroke-mask)",
1570
1533
  strokeWidth: t4
1571
1534
  }), $[13] = strokePath, $[14] = t4, $[15] = t5) : t5 = $[15];
1572
1535
  let t6;
1573
- $[16] === fillPath ? t6 = $[17] : (t6 = /* @__PURE__ */ jsx(ShapePath, { d: fillPath }), $[16] = fillPath, $[17] = t6);
1536
+ $[16] === fillPath ? t6 = $[17] : (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ShapePath, { d: fillPath }), $[16] = fillPath, $[17] = t6);
1574
1537
  let t7;
1575
- $[18] !== t2 || $[19] !== t3 || $[20] !== t5 || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ jsxs("svg", {
1538
+ $[18] !== t2 || $[19] !== t3 || $[20] !== t5 || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
1576
1539
  width: w,
1577
1540
  height: w,
1578
1541
  viewBox: t2,
@@ -1583,15 +1546,13 @@ const StyledArrow = /* @__PURE__ */ styled.div.withConfig({
1583
1546
  ]
1584
1547
  }), $[18] = t2, $[19] = t3, $[20] = t5, $[21] = t6, $[22] = w, $[23] = t7) : t7 = $[23];
1585
1548
  let t8;
1586
- return $[24] !== ref || $[25] !== restProps || $[26] !== t7 || $[27] !== w ? (t8 = /* @__PURE__ */ jsx(StyledArrow, {
1549
+ return $[24] !== ref || $[25] !== restProps || $[26] !== t7 || $[27] !== w ? (t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledArrow, {
1587
1550
  ...restProps,
1588
1551
  $w: w,
1589
1552
  ref,
1590
1553
  children: t7
1591
1554
  }), $[24] = ref, $[25] = restProps, $[26] = t7, $[27] = w, $[28] = t8) : t8 = $[28], t8;
1592
- });
1593
- Arrow.displayName = "ForwardRef(Arrow)";
1594
- const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null);
1555
+ }), BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null);
1595
1556
  function isRecord(value) {
1596
1557
  return !!(value && typeof value == "object" && !Array.isArray(value));
1597
1558
  }
@@ -1603,7 +1564,7 @@ const DEFAULT_VALUE = {
1603
1564
  * @public
1604
1565
  */
1605
1566
  function useBoundaryElement() {
1606
- let value = useContext(BoundaryElementContext);
1567
+ let value = (0, react.useContext)(BoundaryElementContext);
1607
1568
  if (value && (!isRecord(value) || value.version !== 0)) throw Error("useBoundaryElement(): the context value is not compatible");
1608
1569
  return value || DEFAULT_VALUE;
1609
1570
  }
@@ -1618,16 +1579,16 @@ const LayerContext = createGlobalScopedContext("@sanity/ui/context/layer", null)
1618
1579
  * @public
1619
1580
  */
1620
1581
  function LayerProvider(props) {
1621
- let $ = c(21), { children, zOffset: t0 } = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = useContext(LayerContext), t1;
1582
+ let $ = (0, react_compiler_runtime.c)(21), { children, zOffset: t0 } = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = (0, react.useContext)(LayerContext), t1;
1622
1583
  $[0] === parentContextValue ? t1 = $[1] : (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1);
1623
1584
  let parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1, t2;
1624
1585
  $[2] === zOffsetProp ? t2 = $[3] : (t2 = _getArrayProp(zOffsetProp), $[2] = zOffsetProp, $[3] = t2);
1625
1586
  let zOffset = t2, maxMediaIndex = zOffset.length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + zOffset[mediaIndex] : zOffset[mediaIndex], t3;
1626
1587
  $[4] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {}, $[4] = t3) : t3 = $[4];
1627
- let [, setChildLayers] = useState(t3), [size, setSize] = useState(0), isTopLayer = size === 0, t4;
1588
+ let [, setChildLayers] = (0, react.useState)(t3), [size, setSize] = (0, react.useState)(0), isTopLayer = size === 0, t4;
1628
1589
  $[5] !== parentRegisterChild || $[6] !== setChildLayers ? (t4 = (childLevel) => {
1629
1590
  let parentDispose = parentRegisterChild?.(childLevel);
1630
- return childLevel === void 0 ? setSize(_temp$3) : setChildLayers((state) => {
1591
+ return childLevel === void 0 ? setSize(_temp$4) : setChildLayers((state) => {
1631
1592
  let prevLen = state[childLevel] ?? 0, nextState = {
1632
1593
  ...state,
1633
1594
  [childLevel]: prevLen + 1
@@ -1641,7 +1602,7 @@ function LayerProvider(props) {
1641
1602
  };
1642
1603
  }, $[5] = parentRegisterChild, $[6] = setChildLayers, $[7] = t4) : t4 = $[7];
1643
1604
  let registerChild = t4, t5, t6;
1644
- $[8] !== level || $[9] !== parentRegisterChild ? (t5 = () => parentRegisterChild?.(level), t6 = [level, parentRegisterChild], $[8] = level, $[9] = parentRegisterChild, $[10] = t5, $[11] = t6) : (t5 = $[10], t6 = $[11]), useEffect(t5, t6);
1605
+ $[8] !== level || $[9] !== parentRegisterChild ? (t5 = () => parentRegisterChild?.(level), t6 = [level, parentRegisterChild], $[8] = level, $[9] = parentRegisterChild, $[10] = t5, $[11] = t6) : (t5 = $[10], t6 = $[11]), (0, react.useEffect)(t5, t6);
1645
1606
  let t7;
1646
1607
  $[12] !== isTopLayer || $[13] !== level || $[14] !== registerChild || $[15] !== size || $[16] !== zIndex ? (t7 = {
1647
1608
  version: 0,
@@ -1652,7 +1613,7 @@ function LayerProvider(props) {
1652
1613
  zIndex
1653
1614
  }, $[12] = isTopLayer, $[13] = level, $[14] = registerChild, $[15] = size, $[16] = zIndex, $[17] = t7) : t7 = $[17];
1654
1615
  let value = t7, t8;
1655
- return $[18] !== children || $[19] !== value ? (t8 = /* @__PURE__ */ jsx(LayerContext.Provider, {
1616
+ return $[18] !== children || $[19] !== value ? (t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LayerContext.Provider, {
1656
1617
  value,
1657
1618
  children
1658
1619
  }), $[18] = children, $[19] = value, $[20] = t8) : t8 = $[20], t8;
@@ -1660,34 +1621,35 @@ function LayerProvider(props) {
1660
1621
  function _temp2$2(v_0) {
1661
1622
  return v_0 - 1;
1662
1623
  }
1663
- function _temp$3(v) {
1624
+ function _temp$4(v) {
1664
1625
  return v + 1;
1665
1626
  }
1666
- LayerProvider.displayName = "LayerProvider";
1667
1627
  /**
1668
1628
  * @public
1669
1629
  */
1670
1630
  function useLayer() {
1671
- let value = useContext(LayerContext);
1631
+ let $ = (0, react_compiler_runtime.c)(2), value = (0, react.useContext)(LayerContext);
1672
1632
  if (!value) throw Error("useLayer(): missing context value");
1673
1633
  try {
1674
- return getLayerContext(value);
1675
- } catch (err) {
1634
+ let t1;
1635
+ return $[0] === value ? t1 = $[1] : (t1 = getLayerContext(value), $[0] = value, $[1] = t1), t1;
1636
+ } catch (t0) {
1637
+ let err = t0;
1676
1638
  throw err instanceof Error ? Error(`useLayer(): ${err.message}`) : Error(`useLayer(): ${err}`);
1677
1639
  }
1678
1640
  }
1679
- const StyledLayer = /* @__PURE__ */ styled.div.withConfig({
1641
+ const StyledLayer = /* @__PURE__ */ styled_components.styled.div.withConfig({
1680
1642
  displayName: "StyledLayer",
1681
- componentId: "sc-h90030-0"
1682
- })({ position: "relative" }), LayerChildren = forwardRef(function(props, forwardedRef) {
1683
- let $ = c(22), children, onActivate, onFocus, restProps, t0;
1643
+ componentId: "sc-100e5i-0"
1644
+ })({ position: "relative" }), LayerChildren = (0, react.forwardRef)(function LayerChildren(props, forwardedRef) {
1645
+ let $ = (0, react_compiler_runtime.c)(22), children, onActivate, onFocus, restProps, t0;
1684
1646
  $[0] === props ? (children = $[1], onActivate = $[2], onFocus = $[3], restProps = $[4], t0 = $[5]) : ({children, onActivate, onFocus, style: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = onActivate, $[3] = onFocus, $[4] = restProps, $[5] = t0);
1685
- let style = t0 === void 0 ? EMPTY_RECORD : t0, { zIndex, isTopLayer } = useLayer(), lastFocusedRef = useRef(null), ref = useRef(null), isTopLayerRef = useRef(isTopLayer), t1;
1686
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => ref.current, $[6] = t1) : t1 = $[6], useImperativeHandle(forwardedRef, t1);
1647
+ let style = t0 === void 0 ? EMPTY_RECORD : t0, { zIndex, isTopLayer } = useLayer(), lastFocusedRef = (0, react.useRef)(null), ref = (0, react.useRef)(null), isTopLayerRef = (0, react.useRef)(isTopLayer), t1;
1648
+ $[6] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => ref.current, $[6] = t1) : t1 = $[6], (0, react.useImperativeHandle)(forwardedRef, t1);
1687
1649
  let t2, t3;
1688
1650
  $[7] !== isTopLayer || $[8] !== onActivate ? (t2 = () => {
1689
1651
  isTopLayerRef.current !== isTopLayer && isTopLayer && onActivate?.({ activeElement: lastFocusedRef.current }), isTopLayerRef.current = isTopLayer;
1690
- }, t3 = [isTopLayer, onActivate], $[7] = isTopLayer, $[8] = onActivate, $[9] = t2, $[10] = t3) : (t2 = $[9], t3 = $[10]), useEffect(t2, t3);
1652
+ }, t3 = [isTopLayer, onActivate], $[7] = isTopLayer, $[8] = onActivate, $[9] = t2, $[10] = t3) : (t2 = $[9], t3 = $[10]), (0, react.useEffect)(t2, t3);
1691
1653
  let t4;
1692
1654
  $[11] !== isTopLayer || $[12] !== onFocus ? (t4 = (event) => {
1693
1655
  onFocus?.(event);
@@ -1700,7 +1662,7 @@ const StyledLayer = /* @__PURE__ */ styled.div.withConfig({
1700
1662
  zIndex
1701
1663
  }, $[14] = style, $[15] = zIndex, $[16] = t5) : t5 = $[16];
1702
1664
  let t6;
1703
- return $[17] !== children || $[18] !== handleFocus || $[19] !== restProps || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledLayer, {
1665
+ return $[17] !== children || $[18] !== handleFocus || $[19] !== restProps || $[20] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledLayer, {
1704
1666
  ...restProps,
1705
1667
  "data-ui": "Layer",
1706
1668
  onFocus: handleFocus,
@@ -1708,23 +1670,21 @@ const StyledLayer = /* @__PURE__ */ styled.div.withConfig({
1708
1670
  style: t5,
1709
1671
  children
1710
1672
  }), $[17] = children, $[18] = handleFocus, $[19] = restProps, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
1711
- }), Layer = forwardRef(function(props, ref) {
1712
- let $ = c(11), children, restProps, t0;
1673
+ }), Layer = (0, react.forwardRef)(function Layer(props, ref) {
1674
+ let $ = (0, react_compiler_runtime.c)(11), children, restProps, t0;
1713
1675
  $[0] === props ? (children = $[1], restProps = $[2], t0 = $[3]) : ({children, zOffset: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0);
1714
1676
  let zOffset = t0 === void 0 ? 1 : t0, t1;
1715
- $[4] !== children || $[5] !== ref || $[6] !== restProps ? (t1 = /* @__PURE__ */ jsx(LayerChildren, {
1677
+ $[4] !== children || $[5] !== ref || $[6] !== restProps ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LayerChildren, {
1716
1678
  ...restProps,
1717
1679
  ref,
1718
1680
  children
1719
1681
  }), $[4] = children, $[5] = ref, $[6] = restProps, $[7] = t1) : t1 = $[7];
1720
1682
  let t2;
1721
- return $[8] !== t1 || $[9] !== zOffset ? (t2 = /* @__PURE__ */ jsx(LayerProvider, {
1683
+ return $[8] !== t1 || $[9] !== zOffset ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LayerProvider, {
1722
1684
  zOffset,
1723
1685
  children: t1
1724
1686
  }), $[8] = t1, $[9] = zOffset, $[10] = t2) : t2 = $[10], t2;
1725
- });
1726
- Layer.displayName = "ForwardRef(Layer)";
1727
- const key = "@sanity/ui/context/portal", elementKey = Symbol.for(`${key}/element`);
1687
+ }), key = "@sanity/ui/context/portal", elementKey = Symbol.for(`${key}/element`);
1728
1688
  globalScope[elementKey] = null;
1729
1689
  const PortalContext = createGlobalScopedContext(key, {
1730
1690
  version: 0,
@@ -1737,7 +1697,7 @@ const PortalContext = createGlobalScopedContext(key, {
1737
1697
  * @public
1738
1698
  */
1739
1699
  function usePortal() {
1740
- let value = useContext(PortalContext);
1700
+ let value = (0, react.useContext)(PortalContext);
1741
1701
  if (!value) throw Error("usePortal(): missing context value");
1742
1702
  if (!isRecord(value) || value.version !== 0) throw Error("usePortal(): the context value is not compatible");
1743
1703
  return value;
@@ -1746,15 +1706,16 @@ function usePortal() {
1746
1706
  * @public
1747
1707
  */
1748
1708
  function Portal(props) {
1749
- let { children, __unstable_name: name } = props, portal = usePortal(), portalElement = (name ? portal.elements && portal.elements[name] : portal.element) || portal.elements?.default;
1750
- return portalElement ? createPortal(children, portalElement) : null;
1709
+ let $ = (0, react_compiler_runtime.c)(3), { children, __unstable_name: name } = props, portal = usePortal(), portalElement = (name ? portal.elements && portal.elements[name] : portal.element) || portal.elements?.default;
1710
+ if (!portalElement) return null;
1711
+ let t0;
1712
+ return $[0] !== children || $[1] !== portalElement ? (t0 = (0, react_dom.createPortal)(children, portalElement), $[0] = children, $[1] = portalElement, $[2] = t0) : t0 = $[2], t0;
1751
1713
  }
1752
- Portal.displayName = "Portal";
1753
1714
  /**
1754
1715
  * @public
1755
1716
  */
1756
1717
  function PortalProvider(props) {
1757
- let $ = c(7), { boundaryElement, children, element, __unstable_elements: elements } = props, fallbackElement = useSyncExternalStore(emptySubscribe, _temp$2, _temp2$1), t0 = boundaryElement || null, t1 = element || fallbackElement, t2;
1718
+ let $ = (0, react_compiler_runtime.c)(7), { boundaryElement, children, element, __unstable_elements: elements } = props, fallbackElement = (0, react.useSyncExternalStore)(emptySubscribe, _temp$3, _temp2$1), t0 = boundaryElement || null, t1 = element || fallbackElement, t2;
1758
1719
  $[0] !== elements || $[1] !== t0 || $[2] !== t1 ? (t2 = {
1759
1720
  version: 0,
1760
1721
  boundaryElement: t0,
@@ -1762,7 +1723,7 @@ function PortalProvider(props) {
1762
1723
  elements
1763
1724
  }, $[0] = elements, $[1] = t0, $[2] = t1, $[3] = t2) : t2 = $[3];
1764
1725
  let value = t2, t3;
1765
- return $[4] !== children || $[5] !== value ? (t3 = /* @__PURE__ */ jsx(PortalContext.Provider, {
1726
+ return $[4] !== children || $[5] !== value ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalContext.Provider, {
1766
1727
  value,
1767
1728
  children
1768
1729
  }), $[4] = children, $[5] = value, $[6] = t3) : t3 = $[6], t3;
@@ -1770,10 +1731,9 @@ function PortalProvider(props) {
1770
1731
  function _temp2$1() {
1771
1732
  return null;
1772
1733
  }
1773
- function _temp$2() {
1734
+ function _temp$3() {
1774
1735
  return document.body;
1775
1736
  }
1776
- PortalProvider.displayName = "PortalProvider";
1777
1737
  const emptySubscribe = () => () => {};
1778
1738
  function getElementRef(element) {
1779
1739
  let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
@@ -1851,7 +1811,7 @@ function size(options) {
1851
1811
  return {
1852
1812
  name: "@sanity/ui/size",
1853
1813
  async fn(args) {
1854
- let { elements, placement, platform, rects } = args, { floating, reference } = rects, overflow = await detectOverflow(args, {
1814
+ let { elements, placement, platform, rects } = args, { floating, reference } = rects, overflow = await (0, _floating_ui_react_dom.detectOverflow)(args, {
1855
1815
  altBoundary: !0,
1856
1816
  boundary: options.boundaryElement || void 0,
1857
1817
  elementContext: "floating",
@@ -1874,14 +1834,14 @@ function calcMaxWidth(params) {
1874
1834
  let { boundaryWidth, currentWidth } = params;
1875
1835
  if (currentWidth !== void 0 || boundaryWidth !== void 0) return Math.min(currentWidth ?? Infinity, (boundaryWidth || Infinity) - 8);
1876
1836
  }
1877
- const MotionCard$1 = styled(motion.create(Card)).withConfig({
1837
+ const MotionCard$1 = (0, styled_components.styled)(motion_react.motion.create(Card)).withConfig({
1878
1838
  displayName: "MotionCard",
1879
- componentId: "sc-5mkek4-0"
1880
- })`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`, MotionFlex = styled(motion.create(Flex)).withConfig({
1839
+ componentId: "sc-n3w53t-0"
1840
+ })`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`, MotionFlex = (0, styled_components.styled)(motion_react.motion.create(Flex)).withConfig({
1881
1841
  displayName: "MotionFlex",
1882
- componentId: "sc-5mkek4-1"
1883
- })`will-change:opacity;`, PopoverCard = forwardRef(function(props, ref) {
1884
- let $ = c(66), animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
1842
+ componentId: "sc-n3w53t-1"
1843
+ })`will-change:opacity;`, PopoverCard = (0, react.forwardRef)(function PopoverCard(props, ref) {
1844
+ let $ = (0, react_compiler_runtime.c)(66), animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
1885
1845
  $[0] === props ? (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], originX = $[8], originY = $[9], overflow = $[10], padding = $[11], placement = $[12], radius = $[13], restProps = $[14], scheme = $[15], shadow = $[16], strategy = $[17], style = $[18], tone = $[19], width = $[20], xProp = $[21], yProp = $[22]) : ({__unstable_margins: marginsProp, animate, arrow, arrowRef, arrowX, arrowY, children, padding, placement, originX, originY, overflow, radius, scheme, shadow, strategy, style, tone, width, x: xProp, y: yProp, ...restProps} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = originX, $[9] = originY, $[10] = overflow, $[11] = padding, $[12] = placement, $[13] = radius, $[14] = restProps, $[15] = scheme, $[16] = shadow, $[17] = strategy, $[18] = style, $[19] = tone, $[20] = width, $[21] = xProp, $[22] = yProp);
1886
1846
  let { zIndex } = useLayer(), margins = marginsProp || DEFAULT_POPOVER_MARGINS, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0], t0 = animate ? "transform" : void 0, t1;
1887
1847
  $[23] !== originX || $[24] !== originY || $[25] !== strategy || $[26] !== style || $[27] !== t0 || $[28] !== width || $[29] !== x || $[30] !== y || $[31] !== zIndex ? (t1 = {
@@ -1909,14 +1869,14 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
1909
1869
  let t8;
1910
1870
  $[40] === animate ? t8 = $[41] : (t8 = animate ? ["hidden", "scaleOut"] : void 0, $[40] = animate, $[41] = t8);
1911
1871
  let t9;
1912
- $[42] !== children || $[43] !== padding ? (t9 = /* @__PURE__ */ jsx(Flex, {
1872
+ $[42] !== children || $[43] !== padding ? (t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Flex, {
1913
1873
  direction: "column",
1914
1874
  flex: 1,
1915
1875
  padding,
1916
1876
  children
1917
1877
  }), $[42] = children, $[43] = padding, $[44] = t9) : t9 = $[44];
1918
1878
  let t10;
1919
- $[45] !== overflow || $[46] !== t9 ? (t10 = /* @__PURE__ */ jsx(MotionFlex, {
1879
+ $[45] !== overflow || $[46] !== t9 ? (t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MotionFlex, {
1920
1880
  "data-ui": "Popover__wrapper",
1921
1881
  direction: "column",
1922
1882
  flex: 1,
@@ -1926,7 +1886,7 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
1926
1886
  children: t9
1927
1887
  }), $[45] = overflow, $[46] = t9, $[47] = t10) : t10 = $[47];
1928
1888
  let t11;
1929
- $[48] !== arrow || $[49] !== arrowRef || $[50] !== arrowStyle ? (t11 = arrow && /* @__PURE__ */ jsx(Arrow, {
1889
+ $[48] !== arrow || $[49] !== arrowRef || $[50] !== arrowStyle ? (t11 = arrow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Arrow, {
1930
1890
  ref: arrowRef,
1931
1891
  style: arrowStyle,
1932
1892
  width: 19,
@@ -1934,7 +1894,7 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
1934
1894
  radius: 2
1935
1895
  }), $[48] = arrow, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t11) : t11 = $[51];
1936
1896
  let t12;
1937
- return $[52] !== placement || $[53] !== radius || $[54] !== ref || $[55] !== rootStyle || $[56] !== scheme || $[57] !== shadow || $[58] !== t10 || $[59] !== t11 || $[60] !== t5 || $[61] !== t6 || $[62] !== t7 || $[63] !== t8 || $[64] !== tone ? (t12 = /* @__PURE__ */ jsxs(MotionCard$1, {
1897
+ return $[52] !== placement || $[53] !== radius || $[54] !== ref || $[55] !== rootStyle || $[56] !== scheme || $[57] !== shadow || $[58] !== t10 || $[59] !== t11 || $[60] !== t5 || $[61] !== t6 || $[62] !== t7 || $[63] !== t8 || $[64] !== tone ? (t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionCard$1, {
1938
1898
  "data-ui": "Popover",
1939
1899
  ...t5,
1940
1900
  "data-placement": placement,
@@ -1952,19 +1912,17 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
1952
1912
  exit: t8,
1953
1913
  children: [t10, t11]
1954
1914
  }), $[52] = placement, $[53] = radius, $[54] = ref, $[55] = rootStyle, $[56] = scheme, $[57] = shadow, $[58] = t10, $[59] = t11, $[60] = t5, $[61] = t6, $[62] = t7, $[63] = t8, $[64] = tone, $[65] = t12) : t12 = $[65], t12;
1955
- });
1956
- PopoverCard.displayName = "ForwardRef(PopoverCard)";
1957
- const ViewportOverlay = () => {
1958
- let $ = c(2), { zIndex } = useLayer(), t0;
1959
- return $[0] === zIndex ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx("div", { style: {
1915
+ }), ViewportOverlay = () => {
1916
+ let $ = (0, react_compiler_runtime.c)(2), { zIndex } = useLayer(), t0;
1917
+ return $[0] === zIndex ? t0 = $[1] : (t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { style: {
1960
1918
  height: "100vh",
1961
1919
  inset: 0,
1962
1920
  position: "fixed",
1963
1921
  width: "100vw",
1964
1922
  zIndex
1965
1923
  } }), $[0] = zIndex, $[1] = t0), t0;
1966
- }, Popover = forwardRef(function(props, forwardedRef) {
1967
- let $ = c(126), { container, layer } = useTheme_v2(), boundaryElementContext = useBoundaryElement(), _boundaryElement, _fallbackPlacements, _floatingBoundary, _referenceBoundary, _zOffsetProp, childProp, content, disabled, matchReferenceWidth, modal, open, paddingProp, portal, referenceElement, restProps, scheme, t0, t1, t10, t11, t2, t3, t4, t5, t6, t7, t8, t9, updateRef;
1924
+ }, Popover = (0, react.forwardRef)(function Popover(props, forwardedRef) {
1925
+ let $ = (0, react_compiler_runtime.c)(126), { container, layer } = useTheme_v2(), boundaryElementContext = useBoundaryElement(), _boundaryElement, _fallbackPlacements, _floatingBoundary, _referenceBoundary, _zOffsetProp, childProp, content, disabled, matchReferenceWidth, modal, open, paddingProp, portal, referenceElement, restProps, scheme, t0, t1, t10, t11, t2, t3, t4, t5, t6, t7, t8, t9, updateRef;
1968
1926
  if ($[0] !== props) {
1969
1927
  let { __unstable_margins: t12, animate: t13, arrow: t14, boundaryElement: t15, children: t16, constrainSize: t17, content: t18, disabled: t19, fallbackPlacements: t20, matchReferenceWidth: t21, floatingBoundary: t22, modal: t23, onActivate, open: t24, overflow: t25, padding: t26, placement: t27, placementStrategy: t28, portal: t29, preventOverflow: t30, radius: t31, referenceBoundary: t32, referenceElement: t33, scheme: t34, shadow: t35, tone: t36, width: t37, zOffset: t38, updateRef: t39, ...t40 } = props;
1970
1928
  t0 = t12, t1 = t13, t2 = t14, _boundaryElement = t15, childProp = t16, t3 = t17, content = t18, disabled = t19, _fallbackPlacements = t20, matchReferenceWidth = t21, _floatingBoundary = t22, modal = t23, open = t24, t4 = t25, paddingProp = t26, t5 = t27, t6 = t28, portal = t29, t7 = t30, t8 = t31, _referenceBoundary = t32, referenceElement = t33, scheme = t34, t9 = t35, t10 = t36, t11 = t37, _zOffsetProp = t38, updateRef = t39, restProps = t40, $[0] = props, $[1] = _boundaryElement, $[2] = _fallbackPlacements, $[3] = _floatingBoundary, $[4] = _referenceBoundary, $[5] = _zOffsetProp, $[6] = childProp, $[7] = content, $[8] = disabled, $[9] = matchReferenceWidth, $[10] = modal, $[11] = open, $[12] = paddingProp, $[13] = portal, $[14] = referenceElement, $[15] = restProps, $[16] = scheme, $[17] = t0, $[18] = t1, $[19] = t10, $[20] = t11, $[21] = t2, $[22] = t3, $[23] = t4, $[24] = t5, $[25] = t6, $[26] = t7, $[27] = t8, $[28] = t9, $[29] = updateRef;
@@ -1977,26 +1935,26 @@ const ViewportOverlay = () => {
1977
1935
  $[34] === shadowProp ? t14 = $[35] : (t14 = _getArrayProp(shadowProp), $[34] = shadowProp, $[35] = t14);
1978
1936
  let shadow = t14, widthArrayProp = _getArrayProp(widthProp), t15;
1979
1937
  $[36] === zOffsetProp ? t15 = $[37] : (t15 = _getArrayProp(zOffsetProp), $[36] = zOffsetProp, $[37] = t15);
1980
- let zOffset = t15, ref = useRef(null), arrowRef = useRef(null), t16;
1981
- $[38] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => ref.current, $[38] = t16) : t16 = $[38], useImperativeHandle(forwardedRef, t16);
1938
+ let zOffset = t15, ref = (0, react.useRef)(null), arrowRef = (0, react.useRef)(null), t16;
1939
+ $[38] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => ref.current, $[38] = t16) : t16 = $[38], (0, react.useImperativeHandle)(forwardedRef, t16);
1982
1940
  let mediaIndex = useMediaIndex(), boundaryWidth = constrainSize || preventOverflow ? boundarySize?.width : void 0, width = calcCurrentWidth({
1983
1941
  container,
1984
1942
  mediaIndex,
1985
1943
  width: widthArrayProp
1986
- }), widthRef = useRef(width), t17, t18;
1944
+ }), widthRef = (0, react.useRef)(width), t17, t18;
1987
1945
  $[39] === width ? (t17 = $[40], t18 = $[41]) : (t17 = () => {
1988
1946
  widthRef.current = width;
1989
- }, t18 = [width], $[39] = width, $[40] = t17, $[41] = t18), useEffect(t17, t18);
1947
+ }, t18 = [width], $[39] = width, $[40] = t17, $[41] = t18), (0, react.useEffect)(t17, t18);
1990
1948
  let t19;
1991
1949
  $[42] !== boundaryWidth || $[43] !== width ? (t19 = calcMaxWidth({
1992
1950
  boundaryWidth,
1993
1951
  currentWidth: width
1994
1952
  }), $[42] = boundaryWidth, $[43] = width, $[44] = t19) : t19 = $[44];
1995
- let maxWidth = t19, maxWidthRef = useRef(maxWidth), t20, t21;
1953
+ let maxWidth = t19, maxWidthRef = (0, react.useRef)(maxWidth), t20, t21;
1996
1954
  $[45] === maxWidth ? (t20 = $[46], t21 = $[47]) : (t20 = () => {
1997
1955
  maxWidthRef.current = maxWidth;
1998
- }, t21 = [maxWidth], $[45] = maxWidth, $[46] = t20, $[47] = t21), useEffect(t20, t21);
1999
- let referenceWidthRef = useRef(void 0), t22, t23;
1956
+ }, t21 = [maxWidth], $[45] = maxWidth, $[46] = t20, $[47] = t21), (0, react.useEffect)(t20, t21);
1957
+ let referenceWidthRef = (0, react.useRef)(void 0), t22, t23;
2000
1958
  $[48] !== matchReferenceWidth || $[49] !== maxWidth || $[50] !== open || $[51] !== width ? (t22 = () => {
2001
1959
  let floatingElement = ref.current;
2002
1960
  if (!open || !floatingElement) return;
@@ -2007,8 +1965,8 @@ const ViewportOverlay = () => {
2007
1965
  matchReferenceWidth,
2008
1966
  maxWidth,
2009
1967
  open
2010
- ], $[48] = matchReferenceWidth, $[49] = maxWidth, $[50] = open, $[51] = width, $[52] = t22, $[53] = t23) : (t22 = $[52], t23 = $[53]), useEffect(t22, t23);
2011
- let [referenceWidth_0, setReferenceWidth] = useState(void 0), t24;
1968
+ ], $[48] = matchReferenceWidth, $[49] = maxWidth, $[50] = open, $[51] = width, $[52] = t22, $[53] = t23) : (t22 = $[52], t23 = $[53]), (0, react.useEffect)(t22, t23);
1969
+ let [referenceWidth_0, setReferenceWidth] = (0, react.useState)(void 0), t24;
2012
1970
  $[54] !== animate || $[55] !== arrowProp || $[56] !== constrainSize || $[57] !== fallbackPlacements || $[58] !== floatingBoundary || $[59] !== margins || $[60] !== matchReferenceWidth || $[61] !== placementProp || $[62] !== placementStrategy || $[63] !== preventOverflow || $[64] !== referenceBoundary ? (t24 = {
2013
1971
  animate,
2014
1972
  arrowProp,
@@ -2034,10 +1992,10 @@ const ViewportOverlay = () => {
2034
1992
  $[68] !== middleware || $[69] !== placementProp || $[70] !== t25 ? (t26 = {
2035
1993
  middleware,
2036
1994
  placement: placementProp,
2037
- whileElementsMounted: autoUpdate,
1995
+ whileElementsMounted: _floating_ui_react_dom.autoUpdate,
2038
1996
  elements: t25
2039
1997
  }, $[68] = middleware, $[69] = placementProp, $[70] = t25, $[71] = t26) : t26 = $[71];
2040
- let { x, y, middlewareData, placement, refs, strategy, update } = useFloating(t26), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, t27;
1998
+ let { x, y, middlewareData, placement, refs, strategy, update } = (0, _floating_ui_react_dom.useFloating)(t26), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, t27;
2041
1999
  $[72] === Symbol.for("react.memo_cache_sentinel") ? (t27 = (arrowEl) => {
2042
2000
  arrowRef.current = arrowEl;
2043
2001
  }, $[72] = t27) : t27 = $[72];
@@ -2048,7 +2006,7 @@ const ViewportOverlay = () => {
2048
2006
  let setFloating = t28, t29;
2049
2007
  $[75] === childProp ? t29 = $[76] : (t29 = childProp ? getElementRef(childProp) : null, $[75] = childProp, $[76] = t29);
2050
2008
  let t30;
2051
- $[77] === refs.reference.current ? t30 = $[78] : (t30 = () => refs.reference.current, $[77] = refs.reference.current, $[78] = t30), useImperativeHandle(t29, t30);
2009
+ $[77] === refs.reference.current ? t30 = $[78] : (t30 = () => refs.reference.current, $[77] = refs.reference.current, $[78] = t30), (0, react.useImperativeHandle)(t29, t30);
2052
2010
  let t31;
2053
2011
  bb0: {
2054
2012
  if (referenceElement) {
@@ -2060,17 +2018,17 @@ const ViewportOverlay = () => {
2060
2018
  break bb0;
2061
2019
  }
2062
2020
  let t32;
2063
- $[79] !== childProp || $[80] !== refs.setReference ? (t32 = cloneElement(childProp, { ref: refs.setReference }), $[79] = childProp, $[80] = refs.setReference, $[81] = t32) : t32 = $[81], t31 = t32;
2021
+ $[79] !== childProp || $[80] !== refs.setReference ? (t32 = (0, react.cloneElement)(childProp, { ref: refs.setReference }), $[79] = childProp, $[80] = refs.setReference, $[81] = t32) : t32 = $[81], t31 = t32;
2064
2022
  }
2065
2023
  let child = t31, t32, t33;
2066
- if ($[82] === update ? (t32 = $[83], t33 = $[84]) : (t32 = () => update, t33 = [update], $[82] = update, $[83] = t32, $[84] = t33), useImperativeHandle(updateRef, t32, t33), disabled) {
2024
+ if ($[82] === update ? (t32 = $[83], t33 = $[84]) : (t32 = () => update, t33 = [update], $[82] = update, $[83] = t32, $[84] = t33), (0, react.useImperativeHandle)(updateRef, t32, t33), disabled) {
2067
2025
  let t34;
2068
- return $[85] === childProp ? t34 = $[86] : (t34 = childProp || /* @__PURE__ */ jsx(Fragment$1, {}), $[85] = childProp, $[86] = t34), t34;
2026
+ return $[85] === childProp ? t34 = $[86] : (t34 = childProp || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}), $[85] = childProp, $[86] = t34), t34;
2069
2027
  }
2070
2028
  let t34;
2071
- $[87] === modal ? t34 = $[88] : (t34 = modal && /* @__PURE__ */ jsx(ViewportOverlay, {}), $[87] = modal, $[88] = t34);
2029
+ $[87] === modal ? t34 = $[88] : (t34 = modal && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ViewportOverlay, {}), $[87] = modal, $[88] = t34);
2072
2030
  let t35 = matchReferenceWidth ? referenceWidth_0 : width, t36;
2073
- $[89] !== animate || $[90] !== arrowProp || $[91] !== arrowX || $[92] !== arrowY || $[93] !== content || $[94] !== margins || $[95] !== originX || $[96] !== originY || $[97] !== overflow || $[98] !== padding || $[99] !== placement || $[100] !== radius || $[101] !== referenceHidden || $[102] !== restProps || $[103] !== scheme || $[104] !== setFloating || $[105] !== shadow || $[106] !== strategy || $[107] !== t35 || $[108] !== tone || $[109] !== x || $[110] !== y ? (t36 = /* @__PURE__ */ jsx(PopoverCard, {
2031
+ $[89] !== animate || $[90] !== arrowProp || $[91] !== arrowX || $[92] !== arrowY || $[93] !== content || $[94] !== margins || $[95] !== originX || $[96] !== originY || $[97] !== overflow || $[98] !== padding || $[99] !== placement || $[100] !== radius || $[101] !== referenceHidden || $[102] !== restProps || $[103] !== scheme || $[104] !== setFloating || $[105] !== shadow || $[106] !== strategy || $[107] !== t35 || $[108] !== tone || $[109] !== x || $[110] !== y ? (t36 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PopoverCard, {
2074
2032
  ...restProps,
2075
2033
  __unstable_margins: margins,
2076
2034
  animate,
@@ -2096,30 +2054,29 @@ const ViewportOverlay = () => {
2096
2054
  children: content
2097
2055
  }), $[89] = animate, $[90] = arrowProp, $[91] = arrowX, $[92] = arrowY, $[93] = content, $[94] = margins, $[95] = originX, $[96] = originY, $[97] = overflow, $[98] = padding, $[99] = placement, $[100] = radius, $[101] = referenceHidden, $[102] = restProps, $[103] = scheme, $[104] = setFloating, $[105] = shadow, $[106] = strategy, $[107] = t35, $[108] = tone, $[109] = x, $[110] = y, $[111] = t36) : t36 = $[111];
2098
2056
  let t37;
2099
- $[112] !== t34 || $[113] !== t36 || $[114] !== zOffset ? (t37 = /* @__PURE__ */ jsxs(LayerProvider, {
2057
+ $[112] !== t34 || $[113] !== t36 || $[114] !== zOffset ? (t37 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(LayerProvider, {
2100
2058
  zOffset,
2101
2059
  children: [t34, t36]
2102
2060
  }), $[112] = t34, $[113] = t36, $[114] = zOffset, $[115] = t37) : t37 = $[115];
2103
2061
  let popover = t37, t38;
2104
- $[116] !== open || $[117] !== popover || $[118] !== portal ? (t38 = open && (portal ? /* @__PURE__ */ jsx(Portal, {
2062
+ $[116] !== open || $[117] !== popover || $[118] !== portal ? (t38 = open && (portal ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Portal, {
2105
2063
  __unstable_name: typeof portal == "string" ? portal : void 0,
2106
2064
  children: popover
2107
2065
  }) : popover), $[116] = open, $[117] = popover, $[118] = portal, $[119] = t38) : t38 = $[119];
2108
2066
  let children = t38, t39;
2109
- $[120] !== animate || $[121] !== children ? (t39 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[120] = animate, $[121] = children, $[122] = t39) : t39 = $[122];
2067
+ $[120] !== animate || $[121] !== children ? (t39 = animate ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.AnimatePresence, { children }) : children, $[120] = animate, $[121] = children, $[122] = t39) : t39 = $[122];
2110
2068
  let t40;
2111
- return $[123] !== child || $[124] !== t39 ? (t40 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t39, child] }), $[123] = child, $[124] = t39, $[125] = t40) : t40 = $[125], t40;
2069
+ return $[123] !== child || $[124] !== t39 ? (t40 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [t39, child] }), $[123] = child, $[124] = t39, $[125] = t40) : t40 = $[125], t40;
2112
2070
  });
2113
- Popover.displayName = "ForwardRef(Popover)";
2114
2071
  function useMiddleware$1(t0) {
2115
- let $ = c(42), { animate, arrowProp, arrowRef, constrainSize, fallbackPlacements, floatingBoundary, margins, matchReferenceWidth, maxWidthRef, placementProp, placementStrategy, preventOverflow, referenceBoundary, referenceWidthRef, rootBoundary, setReferenceWidth, widthRef } = t0, ret;
2072
+ let $ = (0, react_compiler_runtime.c)(42), { animate, arrowProp, arrowRef, constrainSize, fallbackPlacements, floatingBoundary, margins, matchReferenceWidth, maxWidthRef, placementProp, placementStrategy, preventOverflow, referenceBoundary, referenceWidthRef, rootBoundary, setReferenceWidth, widthRef } = t0, ret;
2116
2073
  if ($[0] !== animate || $[1] !== arrowProp || $[2] !== arrowRef || $[3] !== constrainSize || $[4] !== fallbackPlacements || $[5] !== floatingBoundary || $[6] !== margins || $[7] !== matchReferenceWidth || $[8] !== maxWidthRef || $[9] !== placementProp || $[10] !== placementStrategy || $[11] !== preventOverflow || $[12] !== referenceBoundary || $[13] !== referenceWidthRef || $[14] !== rootBoundary || $[15] !== setReferenceWidth || $[16] !== widthRef) {
2117
2074
  if (ret = [], constrainSize || preventOverflow) if (placementStrategy === "autoPlacement") {
2118
2075
  let t1;
2119
- $[18] !== fallbackPlacements || $[19] !== placementProp ? (t1 = autoPlacement({ allowedPlacements: [placementProp].concat(fallbackPlacements) }), $[18] = fallbackPlacements, $[19] = placementProp, $[20] = t1) : t1 = $[20], ret.push(t1);
2076
+ $[18] !== fallbackPlacements || $[19] !== placementProp ? (t1 = (0, _floating_ui_react_dom.autoPlacement)({ allowedPlacements: [placementProp].concat(fallbackPlacements) }), $[18] = fallbackPlacements, $[19] = placementProp, $[20] = t1) : t1 = $[20], ret.push(t1);
2120
2077
  } else {
2121
2078
  let t1 = floatingBoundary || void 0, t2;
2122
- $[21] !== fallbackPlacements || $[22] !== rootBoundary || $[23] !== t1 ? (t2 = flip({
2079
+ $[21] !== fallbackPlacements || $[22] !== rootBoundary || $[23] !== t1 ? (t2 = (0, _floating_ui_react_dom.flip)({
2123
2080
  boundary: t1,
2124
2081
  fallbackPlacements,
2125
2082
  padding: 4,
@@ -2127,7 +2084,7 @@ function useMiddleware$1(t0) {
2127
2084
  }), $[21] = fallbackPlacements, $[22] = rootBoundary, $[23] = t1, $[24] = t2) : t2 = $[24], ret.push(t2);
2128
2085
  }
2129
2086
  let t1;
2130
- if ($[25] === Symbol.for("react.memo_cache_sentinel") ? (t1 = offset({ mainAxis: 4 }), $[25] = t1) : t1 = $[25], ret.push(t1), constrainSize || matchReferenceWidth) {
2087
+ if ($[25] === Symbol.for("react.memo_cache_sentinel") ? (t1 = (0, _floating_ui_react_dom.offset)({ mainAxis: 4 }), $[25] = t1) : t1 = $[25], ret.push(t1), constrainSize || matchReferenceWidth) {
2131
2088
  let t2 = floatingBoundary || void 0, t3;
2132
2089
  $[26] !== constrainSize || $[27] !== margins || $[28] !== matchReferenceWidth || $[29] !== maxWidthRef || $[30] !== referenceWidthRef || $[31] !== setReferenceWidth || $[32] !== t2 || $[33] !== widthRef ? (t3 = size({
2133
2090
  boundaryElement: t2,
@@ -2143,7 +2100,7 @@ function useMiddleware$1(t0) {
2143
2100
  }
2144
2101
  if (preventOverflow) {
2145
2102
  let t2 = floatingBoundary || void 0, t3;
2146
- $[35] !== rootBoundary || $[36] !== t2 ? (t3 = shift({
2103
+ $[35] !== rootBoundary || $[36] !== t2 ? (t3 = (0, _floating_ui_react_dom.shift)({
2147
2104
  boundary: t2,
2148
2105
  rootBoundary,
2149
2106
  padding: 4
@@ -2151,14 +2108,14 @@ function useMiddleware$1(t0) {
2151
2108
  }
2152
2109
  if (arrowProp) {
2153
2110
  let t2;
2154
- $[38] === arrowRef ? t2 = $[39] : (t2 = arrow({
2111
+ $[38] === arrowRef ? t2 = $[39] : (t2 = (0, _floating_ui_react_dom.arrow)({
2155
2112
  element: arrowRef,
2156
2113
  padding: 4
2157
2114
  }), $[38] = arrowRef, $[39] = t2), ret.push(t2);
2158
2115
  }
2159
2116
  animate && ret.push(origin);
2160
2117
  let t2 = referenceBoundary || void 0, t3;
2161
- $[40] === t2 ? t3 = $[41] : (t3 = hide({
2118
+ $[40] === t2 ? t3 = $[41] : (t3 = (0, _floating_ui_react_dom.hide)({
2162
2119
  boundary: t2,
2163
2120
  padding: 4,
2164
2121
  strategy: "referenceHidden"
@@ -2176,19 +2133,19 @@ function stackBaseStyle() {
2176
2133
  return BASE_STYLE;
2177
2134
  }
2178
2135
  function responsiveStackSpaceStyle(props) {
2179
- let { media, space } = getTheme_v2(props.theme);
2136
+ let { media, space } = require_theme.X(props.theme);
2180
2137
  return _responsive(media, props.$space, (spaceIndex) => ({ gridGap: rem(space[spaceIndex]) }));
2181
2138
  }
2182
- const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
2139
+ const StyledStack = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
2183
2140
  displayName: "StyledStack",
2184
- componentId: "sc-tusrcx-0"
2185
- })(stackBaseStyle, responsiveStackSpaceStyle), StackComponent = forwardRef(function(props, ref) {
2186
- let $ = c(13), as, deprecated_space, gap, restProps;
2141
+ componentId: "sc-0k6050-0"
2142
+ })(stackBaseStyle, responsiveStackSpaceStyle), Stack = (0, react.forwardRef)(function Stack(props, ref) {
2143
+ let $ = (0, react_compiler_runtime.c)(13), as, deprecated_space, gap, restProps;
2187
2144
  $[0] === props ? (as = $[1], deprecated_space = $[2], gap = $[3], restProps = $[4]) : ({as, gap, space: deprecated_space, ...restProps} = props, $[0] = props, $[1] = as, $[2] = deprecated_space, $[3] = gap, $[4] = restProps);
2188
2145
  let spacing = gap === void 0 ? deprecated_space : gap, t0 = typeof as == "string" ? as : void 0, t1;
2189
2146
  $[5] === spacing ? t1 = $[6] : (t1 = _getArrayProp(spacing), $[5] = spacing, $[6] = t1);
2190
2147
  let t2;
2191
- return $[7] !== as || $[8] !== ref || $[9] !== restProps || $[10] !== t0 || $[11] !== t1 ? (t2 = /* @__PURE__ */ jsx(StyledStack, {
2148
+ return $[7] !== as || $[8] !== ref || $[9] !== restProps || $[10] !== t0 || $[11] !== t1 ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledStack, {
2192
2149
  "data-as": t0,
2193
2150
  "data-ui": "Stack",
2194
2151
  ...restProps,
@@ -2196,47 +2153,40 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
2196
2153
  forwardedAs: as,
2197
2154
  ref
2198
2155
  }), $[7] = as, $[8] = ref, $[9] = restProps, $[10] = t0, $[11] = t1, $[12] = t2) : t2 = $[12], t2;
2199
- });
2200
- StackComponent.displayName = "ForwardRef(Stack)";
2201
- /**
2202
- * The `Stack` component is used to place elements on top of each other.
2203
- *
2204
- * @public
2205
- */
2206
- const Stack = StackComponent, CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledTextInput = /* @__PURE__ */ styled(Card).attrs({ forwardedAs: "span" }).withConfig({
2156
+ }), CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledTextInput = /* @__PURE__ */ (0, styled_components.styled)(Card).attrs({ forwardedAs: "span" }).withConfig({
2207
2157
  displayName: "StyledTextInput",
2208
- componentId: "sc-ab08rw-0"
2209
- })(textInputRootStyle), InputRoot = styled.span.withConfig({
2158
+ componentId: "sc-iuvxo7-0"
2159
+ })(textInputRootStyle), InputRoot = styled_components.styled.span.withConfig({
2210
2160
  displayName: "InputRoot",
2211
- componentId: "sc-ab08rw-1"
2212
- })`flex:1;min-width:0;display:block;position:relative;`, Prefix = styled(Card).attrs({ forwardedAs: "span" }).withConfig({
2161
+ componentId: "sc-iuvxo7-1"
2162
+ })`flex:1;min-width:0;display:block;position:relative;`, Prefix = (0, styled_components.styled)(Card).attrs({ forwardedAs: "span" }).withConfig({
2213
2163
  displayName: "Prefix",
2214
- componentId: "sc-ab08rw-2"
2215
- })`border-top-right-radius:0;border-bottom-right-radius:0;& > span{display:block;margin:-1px;}`, Suffix = styled(Card).attrs({ forwardedAs: "span" }).withConfig({
2164
+ componentId: "sc-iuvxo7-2"
2165
+ })`border-top-right-radius:0;border-bottom-right-radius:0;& > span{display:block;margin:-1px;}`, Suffix = (0, styled_components.styled)(Card).attrs({ forwardedAs: "span" }).withConfig({
2216
2166
  displayName: "Suffix",
2217
- componentId: "sc-ab08rw-3"
2218
- })`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`, Input = /* @__PURE__ */ styled.input.withConfig({
2167
+ componentId: "sc-iuvxo7-3"
2168
+ })`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`, Input = /* @__PURE__ */ styled_components.styled.input.withConfig({
2219
2169
  displayName: "Input",
2220
- componentId: "sc-ab08rw-4"
2221
- })(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styled.span.withConfig({
2170
+ componentId: "sc-iuvxo7-4"
2171
+ })(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styled_components.styled.span.withConfig({
2222
2172
  displayName: "Presentation",
2223
- componentId: "sc-ab08rw-5"
2224
- })(responsiveRadiusStyle, textInputRepresentationStyle), LeftBox = styled(Box).withConfig({
2173
+ componentId: "sc-iuvxo7-5"
2174
+ })(responsiveRadiusStyle, textInputRepresentationStyle), LeftBox = (0, styled_components.styled)(Box).withConfig({
2225
2175
  displayName: "LeftBox",
2226
- componentId: "sc-ab08rw-6"
2227
- })`position:absolute;top:0;left:0;`, RightBox = styled(Box).withConfig({
2176
+ componentId: "sc-iuvxo7-6"
2177
+ })`position:absolute;top:0;left:0;`, RightBox = (0, styled_components.styled)(Box).withConfig({
2228
2178
  displayName: "RightBox",
2229
- componentId: "sc-ab08rw-7"
2230
- })`position:absolute;top:0;right:0;`, RightCard = styled(Card).withConfig({
2179
+ componentId: "sc-iuvxo7-7"
2180
+ })`position:absolute;top:0;right:0;`, RightCard = (0, styled_components.styled)(Card).withConfig({
2231
2181
  displayName: "RightCard",
2232
- componentId: "sc-ab08rw-8"
2233
- })`background-color:transparent;position:absolute;top:0;right:0;`, TextInputClearButton = /* @__PURE__ */ styled(Button).withConfig({
2182
+ componentId: "sc-iuvxo7-8"
2183
+ })`background-color:transparent;position:absolute;top:0;right:0;`, TextInputClearButton = /* @__PURE__ */ (0, styled_components.styled)(Button).withConfig({
2234
2184
  displayName: "TextInputClearButton",
2235
- componentId: "sc-ab08rw-9"
2236
- })({ "&:not([hidden])": { display: "block" } }), TextInput = forwardRef(function(props, forwardedRef) {
2237
- let $ = c(93), IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, gap, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
2185
+ componentId: "sc-iuvxo7-9"
2186
+ })({ "&:not([hidden])": { display: "block" } }), TextInput = (0, react.forwardRef)(function TextInput(props, forwardedRef) {
2187
+ let $ = (0, react_compiler_runtime.c)(93), IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, gap, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
2238
2188
  $[0] === props ? (IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], clearButton = $[4], customValidity = $[5], gap = $[6], onClear = $[7], prefix = $[8], readOnly = $[9], restProps = $[10], suffix = $[11], t0 = $[12], t1 = $[13], t2 = $[14], t3 = $[15], t4 = $[16], t5 = $[17], t6 = $[18], weight = $[19]) : ({__unstable_disableFocusRing, border: t0, clearButton, disabled: t1, fontSize: t2, gap, icon: IconComponent, iconRight: IconRightComponent, onClear, padding: t3, prefix, radius: t4, readOnly, space: t5, suffix, customValidity, type: t6, weight, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = clearButton, $[5] = customValidity, $[6] = gap, $[7] = onClear, $[8] = prefix, $[9] = readOnly, $[10] = restProps, $[11] = suffix, $[12] = t0, $[13] = t1, $[14] = t2, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = weight);
2239
- let border = t0 === void 0 || t0, disabled = t1 !== void 0 && t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, deprecated_space = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = useRef(null), rootTheme = useRootTheme(), t7;
2189
+ let border = t0 === void 0 || t0, disabled = t1 !== void 0 && t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, deprecated_space = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = (0, react.useRef)(null), rootTheme = useRootTheme(), t7;
2240
2190
  $[20] === fontSizeProp ? t7 = $[21] : (t7 = _getArrayProp(fontSizeProp), $[20] = fontSizeProp, $[21] = t7);
2241
2191
  let fontSize = t7, t8;
2242
2192
  $[22] === paddingProp ? t8 = $[23] : (t8 = _getArrayProp(paddingProp), $[22] = paddingProp, $[23] = t8);
@@ -2245,39 +2195,39 @@ const Stack = StackComponent, CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledText
2245
2195
  let radius = t9, t10 = gap === void 0 ? deprecated_space : gap, t11;
2246
2196
  $[26] === t10 ? t11 = $[27] : (t11 = _getArrayProp(t10), $[26] = t10, $[27] = t11);
2247
2197
  let space = t11, $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix, t12;
2248
- $[28] === Symbol.for("react.memo_cache_sentinel") ? (t12 = () => ref.current, $[28] = t12) : t12 = $[28], useImperativeHandle(forwardedRef, t12), useCustomValidity(ref, customValidity);
2249
- let handleClearMouseDown = _temp$1, t13;
2198
+ $[28] === Symbol.for("react.memo_cache_sentinel") ? (t12 = () => ref.current, $[28] = t12) : t12 = $[28], (0, react.useImperativeHandle)(forwardedRef, t12), useCustomValidity(ref, customValidity);
2199
+ let handleClearMouseDown = _temp$2, t13;
2250
2200
  $[29] === onClear ? t13 = $[30] : (t13 = (event_0) => {
2251
2201
  event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
2252
2202
  }, $[29] = onClear, $[30] = t13);
2253
2203
  let handleClearClick = t13, t14;
2254
- $[31] !== prefix || $[32] !== radius ? (t14 = prefix && /* @__PURE__ */ jsx(Prefix, {
2204
+ $[31] !== prefix || $[32] !== radius ? (t14 = prefix && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Prefix, {
2255
2205
  borderTop: !0,
2256
2206
  borderLeft: !0,
2257
2207
  borderBottom: !0,
2258
2208
  radius,
2259
2209
  sizing: "border",
2260
2210
  tone: "inherit",
2261
- children: /* @__PURE__ */ jsx("span", { children: prefix })
2211
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: prefix })
2262
2212
  }), $[31] = prefix, $[32] = radius, $[33] = t14) : t14 = $[33];
2263
2213
  let prefixNode = t14, t15 = border ? "" : void 0, t16;
2264
- $[34] !== IconComponent || $[35] !== fontSize || $[36] !== padding ? (t16 = IconComponent && /* @__PURE__ */ jsx(LeftBox, {
2214
+ $[34] !== IconComponent || $[35] !== fontSize || $[36] !== padding ? (t16 = IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LeftBox, {
2265
2215
  padding,
2266
- children: /* @__PURE__ */ jsxs(Text, {
2216
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
2267
2217
  size: fontSize,
2268
- children: [isValidElement(IconComponent) && IconComponent, isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})]
2218
+ children: [(0, react.isValidElement)(IconComponent) && IconComponent, (0, react_is.isValidElementType)(IconComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconComponent, {})]
2269
2219
  })
2270
2220
  }), $[34] = IconComponent, $[35] = fontSize, $[36] = padding, $[37] = t16) : t16 = $[37];
2271
2221
  let t17;
2272
- $[38] !== $hasClearButton || $[39] !== IconRightComponent || $[40] !== fontSize || $[41] !== padding ? (t17 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ jsx(RightBox, {
2222
+ $[38] !== $hasClearButton || $[39] !== IconRightComponent || $[40] !== fontSize || $[41] !== padding ? (t17 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RightBox, {
2273
2223
  padding,
2274
- children: /* @__PURE__ */ jsxs(Text, {
2224
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
2275
2225
  size: fontSize,
2276
- children: [isValidElement(IconRightComponent) && IconRightComponent, isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})]
2226
+ children: [(0, react.isValidElement)(IconRightComponent) && IconRightComponent, (0, react_is.isValidElementType)(IconRightComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRightComponent, {})]
2277
2227
  })
2278
2228
  }), $[38] = $hasClearButton, $[39] = IconRightComponent, $[40] = fontSize, $[41] = padding, $[42] = t17) : t17 = $[42];
2279
2229
  let t18;
2280
- $[43] !== $hasPrefix || $[44] !== $hasSuffix || $[45] !== __unstable_disableFocusRing || $[46] !== radius || $[47] !== rootTheme.scheme || $[48] !== rootTheme.tone || $[49] !== t15 || $[50] !== t16 || $[51] !== t17 ? (t18 = /* @__PURE__ */ jsxs(Presentation, {
2230
+ $[43] !== $hasPrefix || $[44] !== $hasSuffix || $[45] !== __unstable_disableFocusRing || $[46] !== radius || $[47] !== rootTheme.scheme || $[48] !== rootTheme.tone || $[49] !== t15 || $[50] !== t16 || $[51] !== t17 ? (t18 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Presentation, {
2281
2231
  $hasPrefix,
2282
2232
  $unstableDisableFocusRing: __unstable_disableFocusRing,
2283
2233
  $hasSuffix,
@@ -2294,16 +2244,16 @@ const Stack = StackComponent, CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledText
2294
2244
  let clearButtonBoxPadding = t19, t20;
2295
2245
  $[55] === padding ? t20 = $[56] : (t20 = padding.map(_temp3), $[55] = padding, $[56] = t20);
2296
2246
  let clearButtonPadding = t20, clearButtonProps = typeof clearButton == "object" ? clearButton : EMPTY_RECORD, t21;
2297
- $[57] !== clearButton || $[58] !== clearButtonBoxPadding || $[59] !== clearButtonPadding || $[60] !== clearButtonProps || $[61] !== customValidity || $[62] !== disabled || $[63] !== fontSize || $[64] !== handleClearClick || $[65] !== radius || $[66] !== readOnly ? (t21 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(RightCard, {
2247
+ $[57] !== clearButton || $[58] !== clearButtonBoxPadding || $[59] !== clearButtonPadding || $[60] !== clearButtonProps || $[61] !== customValidity || $[62] !== disabled || $[63] !== fontSize || $[64] !== handleClearClick || $[65] !== radius || $[66] !== readOnly ? (t21 = !disabled && !readOnly && clearButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RightCard, {
2298
2248
  forwardedAs: "span",
2299
2249
  padding: clearButtonBoxPadding,
2300
2250
  style: CLEAR_BUTTON_BOX_STYLE,
2301
2251
  tone: customValidity ? "critical" : "inherit",
2302
- children: /* @__PURE__ */ jsx(TextInputClearButton, {
2252
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInputClearButton, {
2303
2253
  "aria-label": "Clear",
2304
2254
  "data-qa": "clear-button",
2305
2255
  fontSize,
2306
- icon: CloseIcon,
2256
+ icon: _sanity_icons_Close.CloseIcon,
2307
2257
  mode: "bleed",
2308
2258
  padding: clearButtonPadding,
2309
2259
  radius,
@@ -2313,17 +2263,17 @@ const Stack = StackComponent, CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledText
2313
2263
  })
2314
2264
  }), $[57] = clearButton, $[58] = clearButtonBoxPadding, $[59] = clearButtonPadding, $[60] = clearButtonProps, $[61] = customValidity, $[62] = disabled, $[63] = fontSize, $[64] = handleClearClick, $[65] = radius, $[66] = readOnly, $[67] = t21) : t21 = $[67];
2315
2265
  let clearButtonNode = t21, t22;
2316
- $[68] !== radius || $[69] !== suffix ? (t22 = suffix && /* @__PURE__ */ jsx(Suffix, {
2266
+ $[68] !== radius || $[69] !== suffix ? (t22 = suffix && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Suffix, {
2317
2267
  borderTop: !0,
2318
2268
  borderRight: !0,
2319
2269
  borderBottom: !0,
2320
2270
  radius,
2321
2271
  sizing: "border",
2322
2272
  tone: "inherit",
2323
- children: /* @__PURE__ */ jsx("span", { children: suffix })
2273
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: suffix })
2324
2274
  }), $[68] = radius, $[69] = suffix, $[70] = t22) : t22 = $[70];
2325
2275
  let suffixNode = t22, t23 = $hasIconRight || $hasClearButton, t24;
2326
- $[71] !== $hasIcon || $[72] !== disabled || $[73] !== fontSize || $[74] !== padding || $[75] !== readOnly || $[76] !== restProps || $[77] !== rootTheme.scheme || $[78] !== rootTheme.tone || $[79] !== space || $[80] !== t23 || $[81] !== type || $[82] !== weight ? (t24 = /* @__PURE__ */ jsx(Input, {
2276
+ $[71] !== $hasIcon || $[72] !== disabled || $[73] !== fontSize || $[74] !== padding || $[75] !== readOnly || $[76] !== restProps || $[77] !== rootTheme.scheme || $[78] !== rootTheme.tone || $[79] !== space || $[80] !== t23 || $[81] !== type || $[82] !== weight ? (t24 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input, {
2327
2277
  "data-as": "input",
2328
2278
  "data-scheme": rootTheme.scheme,
2329
2279
  "data-tone": rootTheme.tone,
@@ -2342,13 +2292,13 @@ const Stack = StackComponent, CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledText
2342
2292
  type
2343
2293
  }), $[71] = $hasIcon, $[72] = disabled, $[73] = fontSize, $[74] = padding, $[75] = readOnly, $[76] = restProps, $[77] = rootTheme.scheme, $[78] = rootTheme.tone, $[79] = space, $[80] = t23, $[81] = type, $[82] = weight, $[83] = t24) : t24 = $[83];
2344
2294
  let t25;
2345
- $[84] !== clearButtonNode || $[85] !== presentationNode || $[86] !== t24 ? (t25 = /* @__PURE__ */ jsxs(InputRoot, { children: [
2295
+ $[84] !== clearButtonNode || $[85] !== presentationNode || $[86] !== t24 ? (t25 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(InputRoot, { children: [
2346
2296
  t24,
2347
2297
  presentationNode,
2348
2298
  clearButtonNode
2349
2299
  ] }), $[84] = clearButtonNode, $[85] = presentationNode, $[86] = t24, $[87] = t25) : t25 = $[87];
2350
2300
  let t26;
2351
- return $[88] !== prefixNode || $[89] !== rootTheme.tone || $[90] !== suffixNode || $[91] !== t25 ? (t26 = /* @__PURE__ */ jsxs(StyledTextInput, {
2301
+ return $[88] !== prefixNode || $[89] !== rootTheme.tone || $[90] !== suffixNode || $[91] !== t25 ? (t26 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledTextInput, {
2352
2302
  "data-ui": "TextInput",
2353
2303
  tone: rootTheme.tone,
2354
2304
  children: [
@@ -2358,8 +2308,7 @@ const Stack = StackComponent, CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledText
2358
2308
  ]
2359
2309
  }), $[88] = prefixNode, $[89] = rootTheme.tone, $[90] = suffixNode, $[91] = t25, $[92] = t26) : t26 = $[92], t26;
2360
2310
  });
2361
- TextInput.displayName = "ForwardRef(TextInput)";
2362
- function _temp$1(event) {
2311
+ function _temp$2(event) {
2363
2312
  event.preventDefault(), event.stopPropagation();
2364
2313
  }
2365
2314
  function _temp2(v) {
@@ -2372,16 +2321,20 @@ function _temp3(v_0) {
2372
2321
  * @beta
2373
2322
  */
2374
2323
  function useDelayedState(initialState) {
2375
- let [state, setState] = useState(initialState), delayedAction = useRef(void 0), onStateChange = useCallback((nextState, delay) => {
2324
+ let $ = (0, react_compiler_runtime.c)(5), [state, setState] = (0, react.useState)(initialState), delayedAction = (0, react.useRef)(void 0), t0;
2325
+ $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = (nextState, delay) => {
2376
2326
  let action = () => {
2377
2327
  setState(nextState);
2378
2328
  };
2379
2329
  if (delayedAction.current &&= (clearTimeout(delayedAction.current), void 0), !delay) return action();
2380
2330
  delayedAction.current = setTimeout(action, delay);
2381
- }, []);
2382
- return useEffect(() => () => {
2331
+ }, $[0] = t0) : t0 = $[0];
2332
+ let onStateChange = t0, t1, t2;
2333
+ $[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => () => {
2383
2334
  delayedAction.current && clearTimeout(delayedAction.current);
2384
- }, []), [state, onStateChange];
2335
+ }, t2 = [], $[1] = t1, $[2] = t2) : (t1 = $[1], t2 = $[2]), (0, react.useEffect)(t1, t2);
2336
+ let t3;
2337
+ return $[3] === state ? t3 = $[4] : (t3 = [state, onStateChange], $[3] = state, $[4] = t3), t3;
2385
2338
  }
2386
2339
  const DEFAULT_FALLBACK_PLACEMENTS = {
2387
2340
  top: [
@@ -2468,11 +2421,11 @@ const DEFAULT_FALLBACK_PLACEMENTS = {
2468
2421
  "top-end",
2469
2422
  "bottom-end"
2470
2423
  ]
2471
- }, MotionCard = styled(motion.create(Card)).withConfig({
2424
+ }, MotionCard = (0, styled_components.styled)(motion_react.motion.create(Card)).withConfig({
2472
2425
  displayName: "MotionCard",
2473
- componentId: "sc-ae1zod-0"
2474
- })`will-change:transform;`, TooltipCard = forwardRef(function(props, ref) {
2475
- let $ = c(48), animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
2426
+ componentId: "sc-d1w0oq-0"
2427
+ })`will-change:transform;`, TooltipCard = (0, react.forwardRef)(function TooltipCard(props, ref) {
2428
+ let $ = (0, react_compiler_runtime.c)(48), animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
2476
2429
  $[0] === props ? (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], restProps = $[12], scheme = $[13], shadow = $[14], style = $[15]) : ({animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, scheme, shadow, style, ...restProps} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = restProps, $[13] = scheme, $[14] = shadow, $[15] = style);
2477
2430
  let t0 = animate ? "transform" : void 0, t1;
2478
2431
  $[16] !== originX || $[17] !== originY || $[18] !== style || $[19] !== t0 ? (t1 = {
@@ -2495,7 +2448,7 @@ const DEFAULT_FALLBACK_PLACEMENTS = {
2495
2448
  let t8;
2496
2449
  $[28] === animate ? t8 = $[29] : (t8 = animate ? ["hidden", "scaleOut"] : void 0, $[28] = animate, $[29] = t8);
2497
2450
  let t9;
2498
- $[30] !== arrow || $[31] !== arrowRef || $[32] !== arrowStyle ? (t9 = arrow && /* @__PURE__ */ jsx(Arrow, {
2451
+ $[30] !== arrow || $[31] !== arrowRef || $[32] !== arrowStyle ? (t9 = arrow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Arrow, {
2499
2452
  ref: arrowRef,
2500
2453
  style: arrowStyle,
2501
2454
  width: 15,
@@ -2503,7 +2456,7 @@ const DEFAULT_FALLBACK_PLACEMENTS = {
2503
2456
  radius: 2
2504
2457
  }), $[30] = arrow, $[31] = arrowRef, $[32] = arrowStyle, $[33] = t9) : t9 = $[33];
2505
2458
  let t10;
2506
- return $[34] !== children || $[35] !== padding || $[36] !== placement || $[37] !== radius || $[38] !== ref || $[39] !== rootStyle || $[40] !== scheme || $[41] !== shadow || $[42] !== t5 || $[43] !== t6 || $[44] !== t7 || $[45] !== t8 || $[46] !== t9 ? (t10 = /* @__PURE__ */ jsxs(MotionCard, {
2459
+ return $[34] !== children || $[35] !== padding || $[36] !== placement || $[37] !== radius || $[38] !== ref || $[39] !== rootStyle || $[40] !== scheme || $[41] !== shadow || $[42] !== t5 || $[43] !== t6 || $[44] !== t7 || $[45] !== t8 || $[46] !== t9 ? (t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionCard, {
2507
2460
  "data-ui": "Tooltip__card",
2508
2461
  ...t5,
2509
2462
  "data-placement": placement,
@@ -2520,28 +2473,23 @@ const DEFAULT_FALLBACK_PLACEMENTS = {
2520
2473
  exit: t8,
2521
2474
  children: [children, t9]
2522
2475
  }), $[34] = children, $[35] = padding, $[36] = placement, $[37] = radius, $[38] = ref, $[39] = rootStyle, $[40] = scheme, $[41] = shadow, $[42] = t5, $[43] = t6, $[44] = t7, $[45] = t8, $[46] = t9, $[47] = t10) : t10 = $[47], t10;
2523
- });
2524
- TooltipCard.displayName = "ForwardRef(TooltipCard)";
2525
- /**
2526
- * @beta
2527
- */
2528
- const TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
2476
+ }), TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
2529
2477
  /**
2530
2478
  * @beta
2531
2479
  */
2532
2480
  function useTooltipDelayGroup() {
2533
- return useContext(TooltipDelayGroupContext);
2481
+ return (0, react.useContext)(TooltipDelayGroupContext);
2534
2482
  }
2535
- const StyledTooltip = styled(Layer).withConfig({
2483
+ const StyledTooltip = (0, styled_components.styled)(Layer).withConfig({
2536
2484
  displayName: "StyledTooltip",
2537
- componentId: "sc-hx8o7p-0"
2538
- })`pointer-events:none;`, Tooltip = forwardRef(function(props, forwardedRef) {
2539
- let $ = c(137), boundaryElementContext = useBoundaryElement(), { layer } = useTheme_v2(), _boundaryElement, _fallbackPlacementsProp, _zOffset, childProp, content, delay, disabled, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5;
2485
+ componentId: "sc-dkqcjk-0"
2486
+ })`pointer-events:none;`, Tooltip = (0, react.forwardRef)(function Tooltip(props, forwardedRef) {
2487
+ let $ = (0, react_compiler_runtime.c)(137), boundaryElementContext = useBoundaryElement(), { layer } = useTheme_v2(), _boundaryElement, _fallbackPlacementsProp, _zOffset, childProp, content, delay, disabled, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5;
2540
2488
  $[0] === props ? (_boundaryElement = $[1], _fallbackPlacementsProp = $[2], _zOffset = $[3], childProp = $[4], content = $[5], delay = $[6], disabled = $[7], portalProp = $[8], restProps = $[9], scheme = $[10], t0 = $[11], t1 = $[12], t2 = $[13], t3 = $[14], t4 = $[15], t5 = $[16]) : ({animate: t0, arrow: t1, boundaryElement: _boundaryElement, children: childProp, content, disabled, fallbackPlacements: _fallbackPlacementsProp, padding: t2, placement: t3, portal: portalProp, radius: t4, scheme, shadow: t5, zOffset: _zOffset, delay, ...restProps} = props, $[0] = props, $[1] = _boundaryElement, $[2] = _fallbackPlacementsProp, $[3] = _zOffset, $[4] = childProp, $[5] = content, $[6] = delay, $[7] = disabled, $[8] = portalProp, $[9] = restProps, $[10] = scheme, $[11] = t0, $[12] = t1, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5);
2541
2489
  let _animate = t0 !== void 0 && t0, arrowProp = t1 !== void 0 && t1, padding = t2 === void 0 ? 2 : t2, placementProp = t3 === void 0 ? "bottom" : t3, radius = t4 === void 0 ? 2 : t4, shadow = t5 === void 0 ? 2 : t5, boundaryElement = _boundaryElement ?? boundaryElementContext?.element, fallbackPlacementsProp = _fallbackPlacementsProp ?? DEFAULT_FALLBACK_PLACEMENTS[props.placement ?? "bottom"], zOffset = _zOffset ?? layer.tooltip.zOffset, animate = !usePrefersReducedMotion() && _animate, t6;
2542
2490
  $[17] === fallbackPlacementsProp ? t6 = $[18] : (t6 = _getArrayProp(fallbackPlacementsProp), $[17] = fallbackPlacementsProp, $[18] = t6);
2543
- let fallbackPlacements = t6, ref = useRef(null), [referenceElement, setReferenceElement] = useState(null), arrowRef = useRef(null), [tooltipMaxWidth, setTooltipMaxWidth] = useState(0), t7;
2544
- $[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], useImperativeHandle(forwardedRef, t7);
2491
+ let fallbackPlacements = t6, ref = (0, react.useRef)(null), [referenceElement, setReferenceElement] = (0, react.useState)(null), arrowRef = (0, react.useRef)(null), [tooltipMaxWidth, setTooltipMaxWidth] = (0, react.useState)(0), t7;
2492
+ $[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], (0, react.useImperativeHandle)(forwardedRef, t7);
2545
2493
  let portal = usePortal(), portalElement = typeof portalProp == "string" ? portal.elements?.[portalProp] || null : portal.element, t8;
2546
2494
  $[20] !== animate || $[21] !== arrowProp || $[22] !== boundaryElement || $[23] !== fallbackPlacements ? (t8 = {
2547
2495
  animate,
@@ -2557,10 +2505,10 @@ const StyledTooltip = styled(Layer).withConfig({
2557
2505
  $[27] !== middleware || $[28] !== placementProp || $[29] !== t9 ? (t10 = {
2558
2506
  middleware,
2559
2507
  placement: placementProp,
2560
- whileElementsMounted: autoUpdate,
2508
+ whileElementsMounted: _floating_ui_react_dom.autoUpdate,
2561
2509
  elements: t9
2562
2510
  }, $[27] = middleware, $[28] = placementProp, $[29] = t9, $[30] = t10) : t10 = $[30];
2563
- let { floatingStyles, placement, middlewareData, refs, update } = useFloating(t10), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = useId(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup(), t11;
2511
+ let { floatingStyles, placement, middlewareData, refs, update } = (0, _floating_ui_react_dom.useFloating)(t10), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = (0, react.useId)(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup(), t11;
2564
2512
  $[31] === delayGroupContext ? t11 = $[32] : (t11 = delayGroupContext || {}, $[31] = delayGroupContext, $[32] = t11);
2565
2513
  let { setIsGroupActive, setOpenTooltipId } = t11, showTooltip = isOpen || delayGroupContext?.openTooltipId === tooltipId, isInsideGroup = delayGroupContext !== null, openDelayProp = typeof delay == "number" ? delay : delay?.open || 0, closeDelayProp = typeof delay == "number" ? delay : delay?.close || 0, openDelay = isInsideGroup ? delayGroupContext.openDelay : openDelayProp, closeDelay = isInsideGroup ? delayGroupContext.closeDelay : closeDelayProp, t12;
2566
2514
  $[33] !== closeDelay || $[34] !== isInsideGroup || $[35] !== openDelay || $[36] !== setIsGroupActive || $[37] !== setIsOpen || $[38] !== setOpenTooltipId || $[39] !== tooltipId ? (t12 = (open, immediate) => {
@@ -2608,7 +2556,7 @@ const StyledTooltip = styled(Layer).withConfig({
2608
2556
  disabled,
2609
2557
  handleIsOpenChange,
2610
2558
  showTooltip
2611
- ], $[64] = disabled, $[65] = handleIsOpenChange, $[66] = showTooltip, $[67] = t20, $[68] = t21) : (t20 = $[67], t21 = $[68]), useEffect(t20, t21);
2559
+ ], $[64] = disabled, $[65] = handleIsOpenChange, $[66] = showTooltip, $[67] = t20, $[68] = t21) : (t20 = $[67], t21 = $[68]), (0, react.useEffect)(t20, t21);
2612
2560
  let t22, t23;
2613
2561
  $[69] !== content || $[70] !== handleIsOpenChange || $[71] !== showTooltip ? (t22 = () => {
2614
2562
  !content && showTooltip && handleIsOpenChange(!1);
@@ -2616,24 +2564,24 @@ const StyledTooltip = styled(Layer).withConfig({
2616
2564
  content,
2617
2565
  handleIsOpenChange,
2618
2566
  showTooltip
2619
- ], $[69] = content, $[70] = handleIsOpenChange, $[71] = showTooltip, $[72] = t22, $[73] = t23) : (t22 = $[72], t23 = $[73]), useEffect(t22, t23);
2567
+ ], $[69] = content, $[70] = handleIsOpenChange, $[71] = showTooltip, $[72] = t22, $[73] = t23) : (t22 = $[72], t23 = $[73]), (0, react.useEffect)(t22, t23);
2620
2568
  let t24, t25;
2621
2569
  $[74] !== handleIsOpenChange || $[75] !== showTooltip ? (t24 = () => {
2622
2570
  if (!showTooltip) return;
2623
- let handleWindowKeyDown = function(event) {
2571
+ let handleWindowKeyDown = function handleWindowKeyDown(event) {
2624
2572
  event.key === "Escape" && handleIsOpenChange(!1, !0);
2625
2573
  };
2626
2574
  return window.addEventListener("keydown", handleWindowKeyDown), () => {
2627
2575
  window.removeEventListener("keydown", handleWindowKeyDown);
2628
2576
  };
2629
- }, t25 = [handleIsOpenChange, showTooltip], $[74] = handleIsOpenChange, $[75] = showTooltip, $[76] = t24, $[77] = t25) : (t24 = $[76], t25 = $[77]), useEffect(t24, t25);
2577
+ }, t25 = [handleIsOpenChange, showTooltip], $[74] = handleIsOpenChange, $[75] = showTooltip, $[76] = t24, $[77] = t25) : (t24 = $[76], t25 = $[77]), (0, react.useEffect)(t24, t25);
2630
2578
  let t26;
2631
2579
  $[78] !== boundaryElement || $[79] !== portalElement?.offsetWidth ? (t26 = () => {
2632
2580
  let availableWidths = [...boundaryElement ? [boundaryElement.offsetWidth] : [], portalElement?.offsetWidth || document.body.offsetWidth];
2633
2581
  setTooltipMaxWidth(Math.min(...availableWidths) - 8);
2634
2582
  }, $[78] = boundaryElement, $[79] = portalElement?.offsetWidth, $[80] = t26) : t26 = $[80];
2635
2583
  let t27;
2636
- $[81] !== boundaryElement || $[82] !== portalElement ? (t27 = [boundaryElement, portalElement], $[81] = boundaryElement, $[82] = portalElement, $[83] = t27) : t27 = $[83], useLayoutEffect(t26, t27);
2584
+ $[81] !== boundaryElement || $[82] !== portalElement ? (t27 = [boundaryElement, portalElement], $[81] = boundaryElement, $[82] = portalElement, $[83] = t27) : t27 = $[83], (0, react.useLayoutEffect)(t26, t27);
2637
2585
  let t28;
2638
2586
  $[84] === update ? t28 = $[85] : (t28 = (arrowEl) => {
2639
2587
  arrowRef.current = arrowEl, update();
@@ -2649,7 +2597,7 @@ const StyledTooltip = styled(Layer).withConfig({
2649
2597
  break bb0;
2650
2598
  }
2651
2599
  let t31;
2652
- $[88] !== childProp || $[89] !== handleBlur || $[90] !== handleClick || $[91] !== handleContextMenu || $[92] !== handleFocus || $[93] !== handleMouseEnter || $[94] !== handleMouseLeave ? (t31 = cloneElement(childProp, {
2600
+ $[88] !== childProp || $[89] !== handleBlur || $[90] !== handleClick || $[91] !== handleContextMenu || $[92] !== handleFocus || $[93] !== handleMouseEnter || $[94] !== handleMouseLeave ? (t31 = (0, react.cloneElement)(childProp, {
2653
2601
  onBlur: handleBlur,
2654
2602
  onFocus: handleFocus,
2655
2603
  onMouseEnter: handleMouseEnter,
@@ -2662,9 +2610,9 @@ const StyledTooltip = styled(Layer).withConfig({
2662
2610
  let child = t30, t31;
2663
2611
  $[96] === childProp ? t31 = $[97] : (t31 = childProp ? getElementRef(childProp) : null, $[96] = childProp, $[97] = t31);
2664
2612
  let t32, t33;
2665
- if ($[98] === referenceElement ? (t32 = $[99], t33 = $[100]) : (t32 = () => referenceElement, t33 = [referenceElement], $[98] = referenceElement, $[99] = t32, $[100] = t33), useImperativeHandle(t31, t32, t33), !child) {
2613
+ if ($[98] === referenceElement ? (t32 = $[99], t33 = $[100]) : (t32 = () => referenceElement, t33 = [referenceElement], $[98] = referenceElement, $[99] = t32, $[100] = t33), (0, react.useImperativeHandle)(t31, t32, t33), !child) {
2666
2614
  let t34;
2667
- return $[101] === Symbol.for("react.memo_cache_sentinel") ? (t34 = /* @__PURE__ */ jsx(Fragment$1, {}), $[101] = t34) : t34 = $[101], t34;
2615
+ return $[101] === Symbol.for("react.memo_cache_sentinel") ? (t34 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}), $[101] = t34) : t34 = $[101], t34;
2668
2616
  }
2669
2617
  if (disabled) return child;
2670
2618
  let t34 = tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0, t35;
@@ -2673,7 +2621,7 @@ const StyledTooltip = styled(Layer).withConfig({
2673
2621
  maxWidth: t34
2674
2622
  }, $[102] = floatingStyles, $[103] = t34, $[104] = t35) : t35 = $[104];
2675
2623
  let t36;
2676
- $[105] !== animate || $[106] !== arrowProp || $[107] !== arrowX || $[108] !== arrowY || $[109] !== content || $[110] !== originX || $[111] !== originY || $[112] !== padding || $[113] !== placement || $[114] !== radius || $[115] !== restProps || $[116] !== scheme || $[117] !== setArrow || $[118] !== setFloating || $[119] !== shadow ? (t36 = /* @__PURE__ */ jsx(TooltipCard, {
2624
+ $[105] !== animate || $[106] !== arrowProp || $[107] !== arrowX || $[108] !== arrowY || $[109] !== content || $[110] !== originX || $[111] !== originY || $[112] !== padding || $[113] !== placement || $[114] !== radius || $[115] !== restProps || $[116] !== scheme || $[117] !== setArrow || $[118] !== setFloating || $[119] !== shadow ? (t36 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipCard, {
2677
2625
  ...restProps,
2678
2626
  animate,
2679
2627
  arrow: arrowProp,
@@ -2691,7 +2639,7 @@ const StyledTooltip = styled(Layer).withConfig({
2691
2639
  children: content
2692
2640
  }), $[105] = animate, $[106] = arrowProp, $[107] = arrowX, $[108] = arrowY, $[109] = content, $[110] = originX, $[111] = originY, $[112] = padding, $[113] = placement, $[114] = radius, $[115] = restProps, $[116] = scheme, $[117] = setArrow, $[118] = setFloating, $[119] = shadow, $[120] = t36) : t36 = $[120];
2693
2641
  let t37;
2694
- $[121] !== restProps || $[122] !== setFloating || $[123] !== t35 || $[124] !== t36 || $[125] !== zOffset ? (t37 = /* @__PURE__ */ jsx(StyledTooltip, {
2642
+ $[121] !== restProps || $[122] !== setFloating || $[123] !== t35 || $[124] !== t36 || $[125] !== zOffset ? (t37 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTooltip, {
2695
2643
  "data-ui": "Tooltip",
2696
2644
  ...restProps,
2697
2645
  ref: setFloating,
@@ -2700,37 +2648,36 @@ const StyledTooltip = styled(Layer).withConfig({
2700
2648
  children: t36
2701
2649
  }), $[121] = restProps, $[122] = setFloating, $[123] = t35, $[124] = t36, $[125] = zOffset, $[126] = t37) : t37 = $[126];
2702
2650
  let tooltip = t37, t38;
2703
- $[127] !== portalProp || $[128] !== showTooltip || $[129] !== tooltip ? (t38 = showTooltip && (portalProp ? /* @__PURE__ */ jsx(Portal, {
2651
+ $[127] !== portalProp || $[128] !== showTooltip || $[129] !== tooltip ? (t38 = showTooltip && (portalProp ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Portal, {
2704
2652
  __unstable_name: typeof portalProp == "string" ? portalProp : void 0,
2705
2653
  children: tooltip
2706
2654
  }) : tooltip), $[127] = portalProp, $[128] = showTooltip, $[129] = tooltip, $[130] = t38) : t38 = $[130];
2707
2655
  let children = t38, t39;
2708
- $[131] !== animate || $[132] !== children ? (t39 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[131] = animate, $[132] = children, $[133] = t39) : t39 = $[133];
2656
+ $[131] !== animate || $[132] !== children ? (t39 = animate ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.AnimatePresence, { children }) : children, $[131] = animate, $[132] = children, $[133] = t39) : t39 = $[133];
2709
2657
  let t40;
2710
- return $[134] !== child || $[135] !== t39 ? (t40 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t39, child] }), $[134] = child, $[135] = t39, $[136] = t40) : t40 = $[136], t40;
2658
+ return $[134] !== child || $[135] !== t39 ? (t40 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [t39, child] }), $[134] = child, $[135] = t39, $[136] = t40) : t40 = $[136], t40;
2711
2659
  });
2712
- Tooltip.displayName = "ForwardRef(Tooltip)";
2713
2660
  function useMiddleware(t0) {
2714
- let $ = c(17), { animate, arrowProp, arrowRef, boundaryElement, fallbackPlacements, rootBoundary } = t0, ret;
2661
+ let $ = (0, react_compiler_runtime.c)(17), { animate, arrowProp, arrowRef, boundaryElement, fallbackPlacements, rootBoundary } = t0, ret;
2715
2662
  if ($[0] !== animate || $[1] !== arrowProp || $[2] !== arrowRef || $[3] !== boundaryElement || $[4] !== fallbackPlacements || $[5] !== rootBoundary) {
2716
2663
  ret = [];
2717
2664
  let t1 = boundaryElement || void 0, t2;
2718
- $[7] !== fallbackPlacements || $[8] !== rootBoundary || $[9] !== t1 ? (t2 = flip({
2665
+ $[7] !== fallbackPlacements || $[8] !== rootBoundary || $[9] !== t1 ? (t2 = (0, _floating_ui_react_dom.flip)({
2719
2666
  boundary: t1,
2720
2667
  fallbackPlacements,
2721
2668
  padding: 4,
2722
2669
  rootBoundary
2723
2670
  }), $[7] = fallbackPlacements, $[8] = rootBoundary, $[9] = t1, $[10] = t2) : t2 = $[10], ret.push(t2);
2724
2671
  let t3;
2725
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t3 = offset({ mainAxis: 4 }), $[11] = t3) : t3 = $[11], ret.push(t3);
2672
+ $[11] === Symbol.for("react.memo_cache_sentinel") ? (t3 = (0, _floating_ui_react_dom.offset)({ mainAxis: 4 }), $[11] = t3) : t3 = $[11], ret.push(t3);
2726
2673
  let t4 = boundaryElement || void 0, t5;
2727
- if ($[12] !== rootBoundary || $[13] !== t4 ? (t5 = shift({
2674
+ if ($[12] !== rootBoundary || $[13] !== t4 ? (t5 = (0, _floating_ui_react_dom.shift)({
2728
2675
  boundary: t4,
2729
2676
  rootBoundary,
2730
2677
  padding: 4
2731
2678
  }), $[12] = rootBoundary, $[13] = t4, $[14] = t5) : t5 = $[14], ret.push(t5), arrowProp) {
2732
2679
  let t6;
2733
- $[15] === arrowRef ? t6 = $[16] : (t6 = arrow({
2680
+ $[15] === arrowRef ? t6 = $[16] : (t6 = (0, _floating_ui_react_dom.arrow)({
2734
2681
  element: arrowRef,
2735
2682
  padding: 4
2736
2683
  }), $[15] = arrowRef, $[16] = t6), ret.push(t6);
@@ -2744,11 +2691,11 @@ function useMiddleware(t0) {
2744
2691
  * @see https://19.react.dev/learn/separating-events-from-effects#reading-latest-props-and-state-with-effect-events:~:text=Never%20pass%20them%20to%20other%20components%20or%20Hooks
2745
2692
  */
2746
2693
  function useCloseOnMouseLeave(t0) {
2747
- let $ = c(10), { handleIsOpenChange, referenceElement, showTooltip, isInsideGroup } = t0, t1;
2694
+ let $ = (0, react_compiler_runtime.c)(10), { handleIsOpenChange, referenceElement, showTooltip, isInsideGroup } = t0, t1;
2748
2695
  $[0] !== handleIsOpenChange || $[1] !== referenceElement ? (t1 = (target, teardown) => {
2749
2696
  referenceElement && (referenceElement === target || target instanceof Node && referenceElement.contains(target) || (handleIsOpenChange(!1), teardown()));
2750
2697
  }, $[0] = handleIsOpenChange, $[1] = referenceElement, $[2] = t1) : t1 = $[2];
2751
- let onMouseMove = useEffectEvent(t1), t2;
2698
+ let onMouseMove = (0, use_effect_event.useEffectEvent)(t1), t2;
2752
2699
  $[3] !== isInsideGroup || $[4] !== onMouseMove || $[5] !== showTooltip ? (t2 = () => {
2753
2700
  if (!showTooltip || isInsideGroup) return;
2754
2701
  let handleMouseMove = (event) => {
@@ -2757,28 +2704,28 @@ function useCloseOnMouseLeave(t0) {
2757
2704
  return window.addEventListener("mousemove", handleMouseMove), () => window.removeEventListener("mousemove", handleMouseMove);
2758
2705
  }, $[3] = isInsideGroup, $[4] = onMouseMove, $[5] = showTooltip, $[6] = t2) : t2 = $[6];
2759
2706
  let t3;
2760
- $[7] !== isInsideGroup || $[8] !== showTooltip ? (t3 = [isInsideGroup, showTooltip], $[7] = isInsideGroup, $[8] = showTooltip, $[9] = t3) : t3 = $[9], useEffect(t2, t3);
2707
+ $[7] !== isInsideGroup || $[8] !== showTooltip ? (t3 = [isInsideGroup, showTooltip], $[7] = isInsideGroup, $[8] = showTooltip, $[9] = t3) : t3 = $[9], (0, react.useEffect)(t2, t3);
2761
2708
  }
2762
- const StyledHotkeys = styled.kbd.withConfig({
2709
+ const StyledHotkeys = styled_components.styled.kbd.withConfig({
2763
2710
  displayName: "StyledHotkeys",
2764
- componentId: "sc-j9kh17-0"
2765
- })`font:inherit;padding:1px;&:not([hidden]){display:block;}`, Key = styled(KBD).withConfig({
2711
+ componentId: "sc-07x5rd-0"
2712
+ })`font:inherit;padding:1px;&:not([hidden]){display:block;}`, Key = (0, styled_components.styled)(KBD).withConfig({
2766
2713
  displayName: "Key",
2767
- componentId: "sc-j9kh17-1"
2768
- })`&:not([hidden]){display:block;}`, Hotkeys = forwardRef(function(props, ref) {
2769
- let $ = c(27), fontSize, gap, keys, padding, radius, restProps, t0;
2714
+ componentId: "sc-07x5rd-1"
2715
+ })`&:not([hidden]){display:block;}`, Hotkeys = (0, react.forwardRef)(function Hotkeys(props, ref) {
2716
+ let $ = (0, react_compiler_runtime.c)(27), fontSize, gap, keys, padding, radius, restProps, t0;
2770
2717
  $[0] === props ? (fontSize = $[1], gap = $[2], keys = $[3], padding = $[4], radius = $[5], restProps = $[6], t0 = $[7]) : ({fontSize, gap, keys, padding, radius, space: t0, ...restProps} = props, $[0] = props, $[1] = fontSize, $[2] = gap, $[3] = keys, $[4] = padding, $[5] = radius, $[6] = restProps, $[7] = t0);
2771
2718
  let t1 = gap === void 0 ? t0 === void 0 ? .5 : t0 : gap, t2;
2772
2719
  $[8] === t1 ? t2 = $[9] : (t2 = _getArrayProp(t1), $[8] = t1, $[9] = t2);
2773
2720
  let spacing = t2;
2774
2721
  if (!keys || keys.length === 0) {
2775
2722
  let t3;
2776
- return $[10] === Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsx(Fragment$1, {}), $[10] = t3) : t3 = $[10], t3;
2723
+ return $[10] === Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}), $[10] = t3) : t3 = $[10], t3;
2777
2724
  }
2778
2725
  let t3;
2779
2726
  if ($[11] !== fontSize || $[12] !== keys || $[13] !== padding || $[14] !== radius) {
2780
2727
  let t4;
2781
- $[16] !== fontSize || $[17] !== padding || $[18] !== radius ? (t4 = (key, i) => /* @__PURE__ */ jsx(Key, {
2728
+ $[16] !== fontSize || $[17] !== padding || $[18] !== radius ? (t4 = (key, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Key, {
2782
2729
  fontSize,
2783
2730
  padding,
2784
2731
  radius,
@@ -2786,21 +2733,19 @@ const StyledHotkeys = styled.kbd.withConfig({
2786
2733
  }, i), $[16] = fontSize, $[17] = padding, $[18] = radius, $[19] = t4) : t4 = $[19], t3 = keys.map(t4), $[11] = fontSize, $[12] = keys, $[13] = padding, $[14] = radius, $[15] = t3;
2787
2734
  } else t3 = $[15];
2788
2735
  let t4;
2789
- $[20] !== spacing || $[21] !== t3 ? (t4 = /* @__PURE__ */ jsx(Inline, {
2736
+ $[20] !== spacing || $[21] !== t3 ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Inline, {
2790
2737
  as: "span",
2791
2738
  gap: spacing,
2792
2739
  children: t3
2793
2740
  }), $[20] = spacing, $[21] = t3, $[22] = t4) : t4 = $[22];
2794
2741
  let t5;
2795
- return $[23] !== ref || $[24] !== restProps || $[25] !== t4 ? (t5 = /* @__PURE__ */ jsx(StyledHotkeys, {
2742
+ return $[23] !== ref || $[24] !== restProps || $[25] !== t4 ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledHotkeys, {
2796
2743
  "data-ui": "Hotkeys",
2797
2744
  ...restProps,
2798
2745
  ref,
2799
2746
  children: t4
2800
2747
  }), $[23] = ref, $[24] = restProps, $[25] = t4, $[26] = t5) : t5 = $[26], t5;
2801
- });
2802
- Hotkeys.displayName = "ForwardRef(Hotkeys)";
2803
- const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
2748
+ }), MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
2804
2749
  /**
2805
2750
  * @internal
2806
2751
  */
@@ -2832,14 +2777,15 @@ function _sortElements(rootElement, elements) {
2832
2777
  if (!rootElement) return;
2833
2778
  let map = /* @__PURE__ */ new WeakMap();
2834
2779
  for (let el of elements) map.set(el, _getDOMPath(rootElement, el));
2835
- elements.sort((a, b) => {
2780
+ let _sort = (a, b) => {
2836
2781
  let _a = map.get(a) || EMPTY_PATH, _b = map.get(b) || EMPTY_PATH, len = Math.max(_a.length, _b.length);
2837
2782
  for (let i = 0; i < len; i += 1) {
2838
2783
  let aIndex = _a[i] || -1, bIndex = _b[i] || -1;
2839
2784
  if (aIndex !== bIndex) return aIndex - bIndex;
2840
2785
  }
2841
2786
  return 0;
2842
- });
2787
+ };
2788
+ elements.sort(_sort);
2843
2789
  }
2844
2790
  /**
2845
2791
  * This controller is responsible for controlling UI menu state.
@@ -2847,10 +2793,15 @@ function _sortElements(rootElement, elements) {
2847
2793
  * @internal
2848
2794
  */
2849
2795
  function useMenuController(props) {
2850
- let { onKeyDown, originElement, shouldFocus, rootElementRef } = props, elementsRef = useRef([]), [activeIndex, _setActiveIndex] = useState(-1), activeIndexRef = useRef(activeIndex), [activeElement, setActiveElement] = useState(null), setActiveIndex = useCallback((nextActiveIndex) => {
2796
+ let $ = (0, react_compiler_runtime.c)(21), { onKeyDown, originElement, shouldFocus, rootElementRef } = props, t0;
2797
+ $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = [], $[0] = t0) : t0 = $[0];
2798
+ let elementsRef = (0, react.useRef)(t0), [activeIndex, _setActiveIndex] = (0, react.useState)(-1), activeIndexRef = (0, react.useRef)(activeIndex), [activeElement, setActiveElement] = (0, react.useState)(null), t1;
2799
+ $[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = (nextActiveIndex) => {
2851
2800
  _setActiveIndex(nextActiveIndex), activeIndexRef.current = nextActiveIndex, setActiveElement(elementsRef.current[nextActiveIndex] || null);
2852
- }, []), mount = useCallback((element, selected) => {
2853
- if (!element) return () => void 0;
2801
+ }, $[1] = t1) : t1 = $[1];
2802
+ let setActiveIndex = t1, t2;
2803
+ $[2] === rootElementRef ? t2 = $[3] : (t2 = (element, selected) => {
2804
+ if (!element) return _temp$1;
2854
2805
  if (elementsRef.current.indexOf(element) === -1 && (elementsRef.current.push(element), _sortElements(rootElementRef.current, elementsRef.current)), selected) {
2855
2806
  let selectedIndex = elementsRef.current.indexOf(element);
2856
2807
  setActiveIndex(selectedIndex);
@@ -2859,7 +2810,9 @@ function useMenuController(props) {
2859
2810
  let idx = elementsRef.current.indexOf(element);
2860
2811
  idx > -1 && elementsRef.current.splice(idx, 1);
2861
2812
  };
2862
- }, [rootElementRef, setActiveIndex]), handleKeyDown = useCallback((event) => {
2813
+ }, $[2] = rootElementRef, $[3] = t2);
2814
+ let mount = t2, t3;
2815
+ $[4] !== onKeyDown || $[5] !== originElement ? (t3 = (event) => {
2863
2816
  if (event.key === "Tab") {
2864
2817
  originElement && originElement.focus();
2865
2818
  return;
@@ -2874,59 +2827,60 @@ function useMenuController(props) {
2874
2827
  }
2875
2828
  if (event.key === "End") {
2876
2829
  event.preventDefault(), event.stopPropagation();
2877
- let focusableElements = _getFocusableElements(elementsRef.current), el = focusableElements[focusableElements.length - 1];
2878
- if (!el) return;
2879
- let currentIndex = elementsRef.current.indexOf(el);
2880
- setActiveIndex(currentIndex);
2830
+ let focusableElements_0 = _getFocusableElements(elementsRef.current), el_0 = focusableElements_0[focusableElements_0.length - 1];
2831
+ if (!el_0) return;
2832
+ let currentIndex_0 = elementsRef.current.indexOf(el_0);
2833
+ setActiveIndex(currentIndex_0);
2881
2834
  return;
2882
2835
  }
2883
2836
  if (event.key === "ArrowUp") {
2884
2837
  event.preventDefault(), event.stopPropagation();
2885
- let focusableElements = _getFocusableElements(elementsRef.current), focusableLen = focusableElements.length;
2838
+ let focusableElements_1 = _getFocusableElements(elementsRef.current), focusableLen = focusableElements_1.length;
2886
2839
  if (focusableLen === 0) return;
2887
- let focusedElement = elementsRef.current[activeIndexRef.current], focusedIndex = focusableElements.indexOf(focusedElement);
2840
+ let focusedElement = elementsRef.current[activeIndexRef.current], focusedIndex = focusableElements_1.indexOf(focusedElement);
2888
2841
  focusedIndex = (focusedIndex - 1 + focusableLen) % focusableLen;
2889
- let el = focusableElements[focusedIndex], currentIndex = elementsRef.current.indexOf(el);
2890
- setActiveIndex(currentIndex);
2842
+ let el_1 = focusableElements_1[focusedIndex], currentIndex_1 = elementsRef.current.indexOf(el_1);
2843
+ setActiveIndex(currentIndex_1);
2891
2844
  return;
2892
2845
  }
2893
2846
  if (event.key === "ArrowDown") {
2894
2847
  event.preventDefault(), event.stopPropagation();
2895
- let focusableElements = _getFocusableElements(elementsRef.current), focusableLen = focusableElements.length;
2896
- if (focusableLen === 0) return;
2897
- let focusedElement = elementsRef.current[activeIndexRef.current], focusedIndex = focusableElements.indexOf(focusedElement);
2898
- focusedIndex = (focusedIndex + 1) % focusableLen;
2899
- let el = focusableElements[focusedIndex], currentIndex = elementsRef.current.indexOf(el);
2900
- setActiveIndex(currentIndex);
2848
+ let focusableElements_2 = _getFocusableElements(elementsRef.current), focusableLen_0 = focusableElements_2.length;
2849
+ if (focusableLen_0 === 0) return;
2850
+ let focusedElement_0 = elementsRef.current[activeIndexRef.current], focusedIndex_0 = focusableElements_2.indexOf(focusedElement_0);
2851
+ focusedIndex_0 = (focusedIndex_0 + 1) % focusableLen_0;
2852
+ let el_2 = focusableElements_2[focusedIndex_0], currentIndex_2 = elementsRef.current.indexOf(el_2);
2853
+ setActiveIndex(currentIndex_2);
2901
2854
  return;
2902
2855
  }
2903
2856
  onKeyDown && onKeyDown(event);
2904
- }, [
2905
- onKeyDown,
2906
- originElement,
2907
- setActiveIndex
2908
- ]), handleItemMouseEnter = useCallback((event) => {
2909
- let element = event.currentTarget, currentIndex = elementsRef.current.indexOf(element);
2910
- setActiveIndex(currentIndex);
2911
- }, [setActiveIndex]), handleItemMouseLeave = useCallback(() => {
2857
+ }, $[4] = onKeyDown, $[5] = originElement, $[6] = t3) : t3 = $[6];
2858
+ let handleKeyDown = t3, t4;
2859
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = (event_0) => {
2860
+ let element_0 = event_0.currentTarget, currentIndex_3 = elementsRef.current.indexOf(element_0);
2861
+ setActiveIndex(currentIndex_3);
2862
+ }, $[7] = t4) : t4 = $[7];
2863
+ let handleItemMouseEnter = t4, t5;
2864
+ $[8] === rootElementRef ? t5 = $[9] : (t5 = () => {
2912
2865
  setActiveIndex(-2), rootElementRef.current?.focus();
2913
- }, [rootElementRef, setActiveIndex]);
2914
- return useEffect(() => {
2866
+ }, $[8] = rootElementRef, $[9] = t5);
2867
+ let handleItemMouseLeave = t5, t6, t7;
2868
+ $[10] !== activeIndex || $[11] !== rootElementRef || $[12] !== shouldFocus ? (t6 = () => {
2915
2869
  if (!rootElementRef.current) return;
2916
2870
  let rafId = requestAnimationFrame(() => {
2917
2871
  if (activeIndex === -1) {
2918
2872
  if (shouldFocus === "first") {
2919
- let el = _getFocusableElements(elementsRef.current)[0];
2920
- if (el) {
2921
- let currentIndex = elementsRef.current.indexOf(el);
2922
- setActiveIndex(currentIndex);
2873
+ let el_3 = _getFocusableElements(elementsRef.current)[0];
2874
+ if (el_3) {
2875
+ let currentIndex_4 = elementsRef.current.indexOf(el_3);
2876
+ setActiveIndex(currentIndex_4);
2923
2877
  }
2924
2878
  }
2925
2879
  if (shouldFocus === "last") {
2926
- let focusableElements = _getFocusableElements(elementsRef.current), el = focusableElements[focusableElements.length - 1];
2927
- if (el) {
2928
- let currentIndex = elementsRef.current.indexOf(el);
2929
- setActiveIndex(currentIndex);
2880
+ let focusableElements_4 = _getFocusableElements(elementsRef.current), el_4 = focusableElements_4[focusableElements_4.length - 1];
2881
+ if (el_4) {
2882
+ let currentIndex_5 = elementsRef.current.indexOf(el_4);
2883
+ setActiveIndex(currentIndex_5);
2930
2884
  }
2931
2885
  }
2932
2886
  return;
@@ -2934,31 +2888,34 @@ function useMenuController(props) {
2934
2888
  (elementsRef.current[activeIndex] || null)?.focus();
2935
2889
  });
2936
2890
  return () => cancelAnimationFrame(rafId);
2937
- }, [
2891
+ }, t7 = [
2938
2892
  activeIndex,
2939
2893
  rootElementRef,
2940
2894
  setActiveIndex,
2941
2895
  shouldFocus
2942
- ]), {
2896
+ ], $[10] = activeIndex, $[11] = rootElementRef, $[12] = shouldFocus, $[13] = t6, $[14] = t7) : (t6 = $[13], t7 = $[14]), (0, react.useEffect)(t6, t7);
2897
+ let t8;
2898
+ return $[15] !== activeElement || $[16] !== activeIndex || $[17] !== handleItemMouseLeave || $[18] !== handleKeyDown || $[19] !== mount ? (t8 = {
2943
2899
  activeElement,
2944
2900
  activeIndex,
2945
2901
  handleItemMouseEnter,
2946
2902
  handleItemMouseLeave,
2947
2903
  handleKeyDown,
2948
2904
  mount
2949
- };
2905
+ }, $[15] = activeElement, $[16] = activeIndex, $[17] = handleItemMouseLeave, $[18] = handleKeyDown, $[19] = mount, $[20] = t8) : t8 = $[20], t8;
2950
2906
  }
2951
- const StyledMenu = styled(Box).withConfig({
2907
+ function _temp$1() {}
2908
+ const StyledMenu = (0, styled_components.styled)(Box).withConfig({
2952
2909
  displayName: "StyledMenu",
2953
- componentId: "sc-hkwd9h-0"
2954
- })`outline:none;overflow:auto;`, Menu = forwardRef(function(props, forwardedRef) {
2955
- let $ = c(50), _shouldFocus, children, gap, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
2910
+ componentId: "sc-88w4l4-0"
2911
+ })`outline:none;overflow:auto;`, Menu = (0, react.forwardRef)(function Menu(props, forwardedRef) {
2912
+ let $ = (0, react_compiler_runtime.c)(50), _shouldFocus, children, gap, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
2956
2913
  if ($[0] !== props) {
2957
2914
  let { children: t2, focusFirst, focusLast, onClickOutside: t3, onEscape: t4, onItemClick: t5, onItemSelect: t6, onKeyDown: t7, originElement: t8, padding: t9, registerElement: t10, shouldFocus: t11, gap: t12, space: t13, ...t14 } = props;
2958
2915
  children = t2, onClickOutside = t3, onEscape = t4, onItemClick = t5, onItemSelect = t6, onKeyDown = t7, originElement = t8, t0 = t9, registerElement = t10, _shouldFocus = t11, gap = t12, t1 = t13, restProps = t14, $[0] = props, $[1] = _shouldFocus, $[2] = children, $[3] = gap, $[4] = onClickOutside, $[5] = onEscape, $[6] = onItemClick, $[7] = onItemSelect, $[8] = onKeyDown, $[9] = originElement, $[10] = registerElement, $[11] = restProps, $[12] = t0, $[13] = t1;
2959
2916
  } else _shouldFocus = $[1], children = $[2], gap = $[3], onClickOutside = $[4], onEscape = $[5], onItemClick = $[6], onItemSelect = $[7], onKeyDown = $[8], originElement = $[9], registerElement = $[10], restProps = $[11], t0 = $[12], t1 = $[13];
2960
- let padding = t0 === void 0 ? 1 : t0, spacing = gap === void 0 ? t1 === void 0 ? 1 : t1 : gap, shouldFocus = _shouldFocus ?? (props.focusFirst && "first" || props.focusLast && "last" || null), ref = useRef(null), t2;
2961
- $[14] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[14] = t2) : t2 = $[14], useImperativeHandle(forwardedRef, t2);
2917
+ let padding = t0 === void 0 ? 1 : t0, spacing = gap === void 0 ? t1 === void 0 ? 1 : t1 : gap, shouldFocus = _shouldFocus ?? (props.focusFirst && "first" || props.focusLast && "last" || null), ref = (0, react.useRef)(null), t2;
2918
+ $[14] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[14] = t2) : t2 = $[14], (0, react.useImperativeHandle)(forwardedRef, t2);
2962
2919
  let { isTopLayer } = useLayer(), t3;
2963
2920
  $[15] !== onKeyDown || $[16] !== originElement || $[17] !== shouldFocus ? (t3 = {
2964
2921
  onKeyDown,
@@ -2966,14 +2923,14 @@ const StyledMenu = styled(Box).withConfig({
2966
2923
  shouldFocus,
2967
2924
  rootElementRef: ref
2968
2925
  }, $[15] = onKeyDown, $[16] = originElement, $[17] = shouldFocus, $[18] = t3) : t3 = $[18];
2969
- let { activeElement, activeIndex, handleItemMouseEnter, handleItemMouseLeave, handleKeyDown, mount } = useMenuController(t3), unregisterElementRef = useRef(null), t4;
2926
+ let { activeElement, activeIndex, handleItemMouseEnter, handleItemMouseLeave, handleKeyDown, mount } = useMenuController(t3), unregisterElementRef = (0, react.useRef)(null), t4;
2970
2927
  $[19] === registerElement ? t4 = $[20] : (t4 = (el) => {
2971
2928
  unregisterElementRef.current &&= (unregisterElementRef.current(), null), ref.current = el, ref.current && registerElement && (unregisterElementRef.current = registerElement(ref.current));
2972
2929
  }, $[19] = registerElement, $[20] = t4);
2973
2930
  let handleRefChange = t4, t5, t6;
2974
2931
  $[21] !== activeIndex || $[22] !== onItemSelect ? (t5 = () => {
2975
2932
  onItemSelect && onItemSelect(activeIndex);
2976
- }, t6 = [activeIndex, onItemSelect], $[21] = activeIndex, $[22] = onItemSelect, $[23] = t5, $[24] = t6) : (t5 = $[23], t6 = $[24]), useEffect(t5, t6);
2933
+ }, t6 = [activeIndex, onItemSelect], $[21] = activeIndex, $[22] = onItemSelect, $[23] = t5, $[24] = t6) : (t5 = $[23], t6 = $[24]), (0, react.useEffect)(t5, t6);
2977
2934
  let t7;
2978
2935
  $[25] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => [ref.current], $[25] = t7) : t7 = $[25], useClickOutsideEvent(isTopLayer && onClickOutside, t7);
2979
2936
  let t8;
@@ -2993,12 +2950,12 @@ const StyledMenu = styled(Box).withConfig({
2993
2950
  registerElement
2994
2951
  }, $[29] = activeElement, $[30] = handleItemMouseEnter, $[31] = handleItemMouseLeave, $[32] = mount, $[33] = onClickOutside, $[34] = onEscape, $[35] = onItemClick, $[36] = registerElement, $[37] = t9) : t9 = $[37];
2995
2952
  let value = t9, t10;
2996
- $[38] !== children || $[39] !== spacing ? (t10 = /* @__PURE__ */ jsx(Stack, {
2953
+ $[38] !== children || $[39] !== spacing ? (t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Stack, {
2997
2954
  gap: spacing,
2998
2955
  children
2999
2956
  }), $[38] = children, $[39] = spacing, $[40] = t10) : t10 = $[40];
3000
2957
  let t11;
3001
- $[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t10 ? (t11 = /* @__PURE__ */ jsx(StyledMenu, {
2958
+ $[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t10 ? (t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledMenu, {
3002
2959
  "data-ui": "Menu",
3003
2960
  ...restProps,
3004
2961
  onKeyDown: handleKeyDown,
@@ -3009,46 +2966,41 @@ const StyledMenu = styled(Box).withConfig({
3009
2966
  children: t10
3010
2967
  }), $[41] = handleKeyDown, $[42] = handleRefChange, $[43] = padding, $[44] = restProps, $[45] = t10, $[46] = t11) : t11 = $[46];
3011
2968
  let t12;
3012
- return $[47] !== t11 || $[48] !== value ? (t12 = /* @__PURE__ */ jsx(MenuContext.Provider, {
2969
+ return $[47] !== t11 || $[48] !== value ? (t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuContext.Provider, {
3013
2970
  value,
3014
2971
  children: t11
3015
2972
  }), $[47] = t11, $[48] = value, $[49] = t12) : t12 = $[49], t12;
3016
- });
3017
- Menu.displayName = "ForwardRef(Menu)";
3018
- const StyledMenuDivider = styled.hr.withConfig({
3019
- displayName: "StyledMenuDivider",
3020
- componentId: "sc-bemnwm-0"
2973
+ }), MenuDivider = styled_components.styled.hr.withConfig({
2974
+ displayName: "MenuDivider",
2975
+ componentId: "sc-8tblqx-0"
3021
2976
  })`height:1px;border:0;background:var(--card-hairline-soft-color);margin:0;`;
3022
- StyledMenuDivider.displayName = "MenuDivider";
3023
- /**
3024
- * @public
3025
- */
3026
- const MenuDivider = StyledMenuDivider;
3027
2977
  function selectableBaseStyle() {
3028
- return css`background-color:inherit;color:inherit;&[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{text-decoration:none;}`;
2978
+ return styled_components.css`background-color:inherit;color:inherit;&[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{text-decoration:none;}`;
3029
2979
  }
3030
2980
  function selectableColorStyle(props) {
3031
- let { $tone } = props, { color, style } = getTheme_v2(props.theme), tone = color.selectable[$tone];
3032
- return css`${_cardColorStyle(color, tone.enabled)} background-color:var(--card-bg-color);color:var(--card-fg-color);outline:none;&[data-as='button']{&:disabled{${_cardColorStyle(color, tone.disabled)}}&:not(:disabled){&[aria-pressed='true']{${_cardColorStyle(color, tone.pressed)}}&[data-selected],&[aria-selected='true'] > &{${_cardColorStyle(color, tone.selected)}}@media (hover:hover){&:not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, tone.hovered)}}&:active{${_cardColorStyle(color, tone.pressed)}}}}}}&[data-as='a']{&[data-disabled]{${_cardColorStyle(color, tone.disabled)}}&:not([data-disabled]){&[data-pressed]{${_cardColorStyle(color, tone.pressed)}}&[data-selected]{${_cardColorStyle(color, tone.selected)}}@media (hover:hover){&:not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, tone.hovered)}}&:active{${_cardColorStyle(color, tone.pressed)}}}}}}${style?.card?.root}`;
2981
+ let { $tone } = props, { color, style } = require_theme.X(props.theme), tone = color.selectable[$tone];
2982
+ return styled_components.css`${_cardColorStyle(color, tone.enabled)} background-color:var(--card-bg-color);color:var(--card-fg-color);outline:none;&[data-as='button']{&:disabled{${_cardColorStyle(color, tone.disabled)}}&:not(:disabled){&[aria-pressed='true']{${_cardColorStyle(color, tone.pressed)}}&[data-selected],&[aria-selected='true'] > &{${_cardColorStyle(color, tone.selected)}}@media (hover:hover){&:not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, tone.hovered)}}&:active{${_cardColorStyle(color, tone.pressed)}}}}}}&[data-as='a']{&[data-disabled]{${_cardColorStyle(color, tone.disabled)}}&:not([data-disabled]){&[data-pressed]{${_cardColorStyle(color, tone.pressed)}}&[data-selected]{${_cardColorStyle(color, tone.selected)}}@media (hover:hover){&:not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, tone.hovered)}}&:active{${_cardColorStyle(color, tone.pressed)}}}}}}${style?.card?.root}`;
3033
2983
  }
3034
2984
  /**
3035
2985
  * @internal
3036
2986
  */
3037
- const Selectable = /* @__PURE__ */ styled(Box).withConfig({
2987
+ const Selectable = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
3038
2988
  displayName: "Selectable",
3039
- componentId: "sc-q5xa1z-0"
2989
+ componentId: "sc-sk8nre-0"
3040
2990
  })(responsiveRadiusStyle, selectableBaseStyle, selectableColorStyle);
3041
- Selectable.displayName = "Selectable";
3042
2991
  function useMenu() {
3043
- let value = useContext(MenuContext);
2992
+ let value = (0, react.useContext)(MenuContext);
3044
2993
  if (!value) throw Error("useMenu(): missing context value");
3045
2994
  if (!isRecord(value) || value.version !== 2) throw Error("useMenu(): the context value is not compatible");
3046
2995
  return value;
3047
2996
  }
3048
- function MenuGroupComponent(props) {
3049
- let $ = c(82), IconComponent, children, gap, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
2997
+ /**
2998
+ * @public
2999
+ */
3000
+ const MenuGroup = function MenuGroup(props) {
3001
+ let $ = (0, react_compiler_runtime.c)(82), IconComponent, children, gap, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
3050
3002
  $[0] === props ? (IconComponent = $[1], children = $[2], gap = $[3], menuProps = $[4], onClick = $[5], popover = $[6], restProps = $[7], t0 = $[8], t1 = $[9], t2 = $[10], t3 = $[11], t4 = $[12], t5 = $[13], text = $[14]) : ({as: t0, children, fontSize: t1, icon: IconComponent, menu: menuProps, onClick, padding: t2, popover, radius: t3, gap, space: t4, text, tone: t5, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = gap, $[4] = menuProps, $[5] = onClick, $[6] = popover, $[7] = restProps, $[8] = t0, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = t4, $[13] = t5, $[14] = text);
3051
- let as = t0 === void 0 ? "button" : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, menu = useMenu(), { scheme } = useRootTheme(), { activeElement, mount, onClickOutside, onEscape, onItemClick, onItemMouseEnter: _onItemMouseEnter, registerElement } = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, [rootElement, setRootElement] = useState(null), [open, setOpen] = useState(!1), [shouldFocus, setShouldFocus] = useState(null), active = !!activeElement && activeElement === rootElement, [withinMenu, setWithinMenu] = useState(!1), t6;
3003
+ let as = t0 === void 0 ? "button" : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, menu = useMenu(), { scheme } = useRootTheme(), { activeElement, mount, onClickOutside, onEscape, onItemClick, onItemMouseEnter: _onItemMouseEnter, registerElement } = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, [rootElement, setRootElement] = (0, react.useState)(null), [open, setOpen] = (0, react.useState)(!1), [shouldFocus, setShouldFocus] = (0, react.useState)(null), active = !!activeElement && activeElement === rootElement, [withinMenu, setWithinMenu] = (0, react.useState)(!1), t6;
3052
3004
  $[15] === onItemMouseEnter ? t6 = $[16] : (t6 = (event) => {
3053
3005
  setWithinMenu(!1), onItemMouseEnter(event), setOpen(!0);
3054
3006
  }, $[15] = onItemMouseEnter, $[16] = t6);
@@ -3069,23 +3021,23 @@ function MenuGroupComponent(props) {
3069
3021
  let handleChildItemClick = t9, t10;
3070
3022
  $[23] === Symbol.for("react.memo_cache_sentinel") ? (t10 = () => setWithinMenu(!0), $[23] = t10) : t10 = $[23];
3071
3023
  let handleMenuMouseEnter = t10, t11, t12;
3072
- $[24] !== mount || $[25] !== rootElement ? (t11 = () => mount(rootElement), t12 = [mount, rootElement], $[24] = mount, $[25] = rootElement, $[26] = t11, $[27] = t12) : (t11 = $[26], t12 = $[27]), useEffect(t11, t12);
3024
+ $[24] !== mount || $[25] !== rootElement ? (t11 = () => mount(rootElement), t12 = [mount, rootElement], $[24] = mount, $[25] = rootElement, $[26] = t11, $[27] = t12) : (t11 = $[26], t12 = $[27]), (0, react.useEffect)(t11, t12);
3073
3025
  let t13, t14;
3074
3026
  $[28] === active ? (t13 = $[29], t14 = $[30]) : (t13 = () => {
3075
3027
  active || setOpen(!1);
3076
- }, t14 = [active], $[28] = active, $[29] = t13, $[30] = t14), useEffect(t13, t14);
3028
+ }, t14 = [active], $[28] = active, $[29] = t13, $[30] = t14), (0, react.useEffect)(t13, t14);
3077
3029
  let t15, t16;
3078
3030
  $[31] === open ? (t15 = $[32], t16 = $[33]) : (t15 = () => {
3079
3031
  open || setWithinMenu(!1);
3080
- }, t16 = [open], $[31] = open, $[32] = t15, $[33] = t16), useEffect(t15, t16);
3032
+ }, t16 = [open], $[31] = open, $[32] = t15, $[33] = t16), (0, react.useEffect)(t15, t16);
3081
3033
  let t17, t18;
3082
3034
  $[34] === shouldFocus ? (t17 = $[35], t18 = $[36]) : (t17 = () => {
3083
3035
  if (!shouldFocus) return;
3084
3036
  let rafId = requestAnimationFrame(() => setShouldFocus(null));
3085
3037
  return () => cancelAnimationFrame(rafId);
3086
- }, t18 = [shouldFocus], $[34] = shouldFocus, $[35] = t17, $[36] = t18), useEffect(t17, t18);
3038
+ }, t18 = [shouldFocus], $[34] = shouldFocus, $[35] = t17, $[36] = t18), (0, react.useEffect)(t17, t18);
3087
3039
  let t19;
3088
- $[37] !== children || $[38] !== handleChildItemClick || $[39] !== handleMenuKeyDown || $[40] !== menuProps || $[41] !== onClickOutside || $[42] !== onEscape || $[43] !== registerElement || $[44] !== shouldFocus ? (t19 = /* @__PURE__ */ jsx(Menu, {
3040
+ $[37] !== children || $[38] !== handleChildItemClick || $[39] !== handleMenuKeyDown || $[40] !== menuProps || $[41] !== onClickOutside || $[42] !== onEscape || $[43] !== registerElement || $[44] !== shouldFocus ? (t19 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
3089
3041
  ...menuProps,
3090
3042
  onClickOutside,
3091
3043
  onEscape,
@@ -3107,14 +3059,14 @@ function MenuGroupComponent(props) {
3107
3059
  let handleKeyDown = t20, t21 = as === "button" ? withinMenu : void 0, t22 = as === "button" ? void 0 : withinMenu, t23 = !withinMenu && active ? "" : void 0, t24;
3108
3060
  $[47] === radius ? t24 = $[48] : (t24 = _getArrayProp(radius), $[47] = radius, $[48] = t24);
3109
3061
  let t25 = as === "button" ? "button" : void 0, t26;
3110
- $[49] !== IconComponent || $[50] !== fontSize ? (t26 = IconComponent && /* @__PURE__ */ jsxs(Text, {
3062
+ $[49] !== IconComponent || $[50] !== fontSize ? (t26 = IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
3111
3063
  size: fontSize,
3112
- children: [isValidElement(IconComponent) && IconComponent, isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})]
3064
+ children: [(0, react.isValidElement)(IconComponent) && IconComponent, (0, react_is.isValidElementType)(IconComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconComponent, {})]
3113
3065
  }), $[49] = IconComponent, $[50] = fontSize, $[51] = t26) : t26 = $[51];
3114
3066
  let t27;
3115
- $[52] !== fontSize || $[53] !== text ? (t27 = /* @__PURE__ */ jsx(Box, {
3067
+ $[52] !== fontSize || $[53] !== text ? (t27 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
3116
3068
  flex: 1,
3117
- children: /* @__PURE__ */ jsx(Text, {
3069
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, {
3118
3070
  size: fontSize,
3119
3071
  textOverflow: "ellipsis",
3120
3072
  weight: "medium",
@@ -3122,14 +3074,14 @@ function MenuGroupComponent(props) {
3122
3074
  })
3123
3075
  }), $[52] = fontSize, $[53] = text, $[54] = t27) : t27 = $[54];
3124
3076
  let t28;
3125
- $[55] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ jsx(ChevronRightIcon, {}), $[55] = t28) : t28 = $[55];
3077
+ $[55] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_ChevronRight.ChevronRightIcon, {}), $[55] = t28) : t28 = $[55];
3126
3078
  let t29;
3127
- $[56] === fontSize ? t29 = $[57] : (t29 = /* @__PURE__ */ jsx(Text, {
3079
+ $[56] === fontSize ? t29 = $[57] : (t29 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, {
3128
3080
  size: fontSize,
3129
3081
  children: t28
3130
3082
  }), $[56] = fontSize, $[57] = t29);
3131
3083
  let t30;
3132
- $[58] !== padding || $[59] !== spacing || $[60] !== t26 || $[61] !== t27 || $[62] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Flex, {
3084
+ $[58] !== padding || $[59] !== spacing || $[60] !== t26 || $[61] !== t27 || $[62] !== t29 ? (t30 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Flex, {
3133
3085
  gap: spacing,
3134
3086
  padding,
3135
3087
  children: [
@@ -3139,7 +3091,7 @@ function MenuGroupComponent(props) {
3139
3091
  ]
3140
3092
  }), $[58] = padding, $[59] = spacing, $[60] = t26, $[61] = t27, $[62] = t29, $[63] = t30) : t30 = $[63];
3141
3093
  let t31;
3142
- $[64] !== as || $[65] !== handleClick || $[66] !== handleMouseEnter || $[67] !== restProps || $[68] !== scheme || $[69] !== t21 || $[70] !== t22 || $[71] !== t23 || $[72] !== t24 || $[73] !== t25 || $[74] !== t30 || $[75] !== tone ? (t31 = /* @__PURE__ */ jsx(Selectable, {
3094
+ $[64] !== as || $[65] !== handleClick || $[66] !== handleMouseEnter || $[67] !== restProps || $[68] !== scheme || $[69] !== t21 || $[70] !== t22 || $[71] !== t23 || $[72] !== t24 || $[73] !== t25 || $[74] !== t30 || $[75] !== tone ? (t31 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Selectable, {
3143
3095
  "data-as": as,
3144
3096
  "data-ui": "MenuGroup",
3145
3097
  forwardedAs: as,
@@ -3159,29 +3111,24 @@ function MenuGroupComponent(props) {
3159
3111
  children: t30
3160
3112
  }), $[64] = as, $[65] = handleClick, $[66] = handleMouseEnter, $[67] = restProps, $[68] = scheme, $[69] = t21, $[70] = t22, $[71] = t23, $[72] = t24, $[73] = t25, $[74] = t30, $[75] = tone, $[76] = t31) : t31 = $[76];
3161
3113
  let t32;
3162
- return $[77] !== childMenu || $[78] !== open || $[79] !== popover || $[80] !== t31 ? (t32 = /* @__PURE__ */ jsx(Popover, {
3114
+ return $[77] !== childMenu || $[78] !== open || $[79] !== popover || $[80] !== t31 ? (t32 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Popover, {
3163
3115
  ...popover,
3164
3116
  content: childMenu,
3165
3117
  "data-ui": "MenuGroup__popover",
3166
3118
  open,
3167
3119
  children: t31
3168
3120
  }), $[77] = childMenu, $[78] = open, $[79] = popover, $[80] = t31, $[81] = t32) : t32 = $[81], t32;
3169
- }
3170
- MenuGroupComponent.displayName = "MenuGroup";
3171
- /**
3172
- * @public
3173
- */
3174
- const MenuGroup = MenuGroupComponent, MenuItemComponent = forwardRef(function(props, forwardedRef) {
3175
- let $ = c(76), IconComponent, IconRightComponent, children, disabled, gap, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
3121
+ }, MenuItem = (0, react.forwardRef)(function MenuItem(props, forwardedRef) {
3122
+ let $ = (0, react_compiler_runtime.c)(76), IconComponent, IconRightComponent, children, disabled, gap, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
3176
3123
  $[0] === props ? (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], gap = $[5], hotkeys = $[6], onClick = $[7], paddingBottom = $[8], paddingLeft = $[9], paddingRight = $[10], paddingTop = $[11], paddingX = $[12], paddingY = $[13], pressed = $[14], restProps = $[15], selectedProp = $[16], t0 = $[17], t1 = $[18], t2 = $[19], t3 = $[20], t4 = $[21], t5 = $[22], text = $[23]) : ({as: t0, children, disabled, fontSize: t1, hotkeys, icon: IconComponent, iconRight: IconRightComponent, onClick, padding: t2, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, pressed, radius: t3, selected: selectedProp, gap, space: t4, text, tone: t5, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = gap, $[6] = hotkeys, $[7] = onClick, $[8] = paddingBottom, $[9] = paddingLeft, $[10] = paddingRight, $[11] = paddingTop, $[12] = paddingX, $[13] = paddingY, $[14] = pressed, $[15] = restProps, $[16] = selectedProp, $[17] = t0, $[18] = t1, $[19] = t2, $[20] = t3, $[21] = t4, $[22] = t5, $[23] = text);
3177
- let as = t0 === void 0 ? "button" : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, { scheme } = useRootTheme(), menu = useMenu(), { activeElement, mount, onItemClick, onItemMouseEnter: _onItemMouseEnter, onItemMouseLeave: _onItemMouseLeave } = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, onItemMouseLeave = _onItemMouseLeave ?? menu.onItemMouseLeave, [rootElement, setRootElement] = useState(null), active = !!activeElement && activeElement === rootElement, ref = useRef(null), t6;
3178
- $[24] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[24] = t6) : t6 = $[24], useImperativeHandle(forwardedRef, t6);
3124
+ let as = t0 === void 0 ? "button" : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, { scheme } = useRootTheme(), menu = useMenu(), { activeElement, mount, onItemClick, onItemMouseEnter: _onItemMouseEnter, onItemMouseLeave: _onItemMouseLeave } = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, onItemMouseLeave = _onItemMouseLeave ?? menu.onItemMouseLeave, [rootElement, setRootElement] = (0, react.useState)(null), active = !!activeElement && activeElement === rootElement, ref = (0, react.useRef)(null), t6;
3125
+ $[24] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[24] = t6) : t6 = $[24], (0, react.useImperativeHandle)(forwardedRef, t6);
3179
3126
  let t7, t8;
3180
3127
  $[25] !== mount || $[26] !== rootElement || $[27] !== selectedProp ? (t7 = () => mount(rootElement, selectedProp), t8 = [
3181
3128
  mount,
3182
3129
  rootElement,
3183
3130
  selectedProp
3184
- ], $[25] = mount, $[26] = rootElement, $[27] = selectedProp, $[28] = t7, $[29] = t8) : (t7 = $[28], t8 = $[29]), useEffect(t7, t8);
3131
+ ], $[25] = mount, $[26] = rootElement, $[27] = selectedProp, $[28] = t7, $[29] = t8) : (t7 = $[28], t8 = $[29]), (0, react.useEffect)(t7, t8);
3185
3132
  let t9;
3186
3133
  $[30] !== disabled || $[31] !== onClick || $[32] !== onItemClick ? (t9 = (event) => {
3187
3134
  disabled || (onClick && onClick(event), onItemClick && onItemClick());
@@ -3207,26 +3154,26 @@ const MenuGroup = MenuGroupComponent, MenuItemComponent = forwardRef(function(pr
3207
3154
  let t17;
3208
3155
  $[47] === Symbol.for("react.memo_cache_sentinel") ? (t17 = _getArrayProp(0), $[47] = t17) : t17 = $[47];
3209
3156
  let t18 = disabled ? "default" : tone, t19 = as === "button" ? "button" : void 0, t20;
3210
- $[48] !== IconComponent || $[49] !== IconRightComponent || $[50] !== fontSize || $[51] !== hotkeys || $[52] !== hotkeysFontSize || $[53] !== paddingProps || $[54] !== spacing || $[55] !== text ? (t20 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, {
3157
+ $[48] !== IconComponent || $[49] !== IconRightComponent || $[50] !== fontSize || $[51] !== hotkeys || $[52] !== hotkeysFontSize || $[53] !== paddingProps || $[54] !== spacing || $[55] !== text ? (t20 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Flex, {
3211
3158
  as: "span",
3212
3159
  gap: spacing,
3213
3160
  align: "center",
3214
3161
  ...paddingProps,
3215
3162
  children: [
3216
- IconComponent && /* @__PURE__ */ jsxs(Text, {
3163
+ IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
3217
3164
  size: fontSize,
3218
- children: [isValidElement(IconComponent) && IconComponent, isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})]
3165
+ children: [(0, react.isValidElement)(IconComponent) && IconComponent, (0, react_is.isValidElementType)(IconComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconComponent, {})]
3219
3166
  }),
3220
- text && /* @__PURE__ */ jsx(Box, {
3167
+ text && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
3221
3168
  flex: 1,
3222
- children: /* @__PURE__ */ jsx(Text, {
3169
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, {
3223
3170
  size: fontSize,
3224
3171
  textOverflow: "ellipsis",
3225
3172
  weight: "medium",
3226
3173
  children: text
3227
3174
  })
3228
3175
  }),
3229
- hotkeys && /* @__PURE__ */ jsx(Hotkeys, {
3176
+ hotkeys && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hotkeys, {
3230
3177
  fontSize: hotkeysFontSize,
3231
3178
  keys: hotkeys,
3232
3179
  style: {
@@ -3234,20 +3181,20 @@ const MenuGroup = MenuGroupComponent, MenuItemComponent = forwardRef(function(pr
3234
3181
  marginBottom: -4
3235
3182
  }
3236
3183
  }),
3237
- IconRightComponent && /* @__PURE__ */ jsxs(Text, {
3184
+ IconRightComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
3238
3185
  size: fontSize,
3239
- children: [isValidElement(IconRightComponent) && IconRightComponent, isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})]
3186
+ children: [(0, react.isValidElement)(IconRightComponent) && IconRightComponent, (0, react_is.isValidElementType)(IconRightComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRightComponent, {})]
3240
3187
  })
3241
3188
  ]
3242
3189
  }), $[48] = IconComponent, $[49] = IconRightComponent, $[50] = fontSize, $[51] = hotkeys, $[52] = hotkeysFontSize, $[53] = paddingProps, $[54] = spacing, $[55] = text, $[56] = t20) : t20 = $[56];
3243
3190
  let t21;
3244
- $[57] !== children || $[58] !== paddingProps ? (t21 = children && /* @__PURE__ */ jsx(Box, {
3191
+ $[57] !== children || $[58] !== paddingProps ? (t21 = children && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
3245
3192
  as: "span",
3246
3193
  ...paddingProps,
3247
3194
  children
3248
3195
  }), $[57] = children, $[58] = paddingProps, $[59] = t21) : t21 = $[59];
3249
3196
  let t22;
3250
- return $[60] !== as || $[61] !== disabled || $[62] !== handleClick || $[63] !== onItemMouseEnter || $[64] !== onItemMouseLeave || $[65] !== restProps || $[66] !== scheme || $[67] !== t13 || $[68] !== t14 || $[69] !== t15 || $[70] !== t16 || $[71] !== t18 || $[72] !== t19 || $[73] !== t20 || $[74] !== t21 ? (t22 = /* @__PURE__ */ jsxs(Selectable, {
3197
+ return $[60] !== as || $[61] !== disabled || $[62] !== handleClick || $[63] !== onItemMouseEnter || $[64] !== onItemMouseLeave || $[65] !== restProps || $[66] !== scheme || $[67] !== t13 || $[68] !== t14 || $[69] !== t15 || $[70] !== t16 || $[71] !== t18 || $[72] !== t19 || $[73] !== t20 || $[74] !== t21 ? (t22 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Selectable, {
3251
3198
  "data-ui": "MenuItem",
3252
3199
  role: "menuitem",
3253
3200
  ...restProps,
@@ -3269,22 +3216,17 @@ const MenuGroup = MenuGroupComponent, MenuItemComponent = forwardRef(function(pr
3269
3216
  children: [t20, t21]
3270
3217
  }), $[60] = as, $[61] = disabled, $[62] = handleClick, $[63] = onItemMouseEnter, $[64] = onItemMouseLeave, $[65] = restProps, $[66] = scheme, $[67] = t13, $[68] = t14, $[69] = t15, $[70] = t16, $[71] = t18, $[72] = t19, $[73] = t20, $[74] = t21, $[75] = t22) : t22 = $[75], t22;
3271
3218
  });
3272
- MenuItemComponent.displayName = "ForwardRef(MenuItem)";
3273
- /**
3274
- * @public
3275
- */
3276
- const MenuItem = MenuItemComponent;
3277
3219
  function _temp(s) {
3278
3220
  return s - 1;
3279
3221
  }
3280
- const CustomButton = styled(Button).withConfig({
3222
+ const CustomButton = (0, styled_components.styled)(Button).withConfig({
3281
3223
  displayName: "CustomButton",
3282
- componentId: "sc-epil5s-0"
3283
- })`max-width:100%;`, Tab = forwardRef(function(props, forwardedRef) {
3284
- let $ = c(30), focused, icon, id, label, onClick, onFocus, restProps, selected, t0, t1;
3224
+ componentId: "sc-rhibqq-0"
3225
+ })`max-width:100%;`, Tab = (0, react.forwardRef)(function Tab(props, forwardedRef) {
3226
+ let $ = (0, react_compiler_runtime.c)(30), focused, icon, id, label, onClick, onFocus, restProps, selected, t0, t1;
3285
3227
  $[0] === props ? (focused = $[1], icon = $[2], id = $[3], label = $[4], onClick = $[5], onFocus = $[6], restProps = $[7], selected = $[8], t0 = $[9], t1 = $[10]) : ({icon, id, focused, fontSize: t0, label, onClick, onFocus, padding: t1, selected, ...restProps} = props, $[0] = props, $[1] = focused, $[2] = icon, $[3] = id, $[4] = label, $[5] = onClick, $[6] = onFocus, $[7] = restProps, $[8] = selected, $[9] = t0, $[10] = t1);
3286
- let fontSize = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 2 : t1, ref = useRef(null), focusedRef = useRef(!1), t2;
3287
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[11] = t2) : t2 = $[11], useImperativeHandle(forwardedRef, t2);
3228
+ let fontSize = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 2 : t1, ref = (0, react.useRef)(null), focusedRef = (0, react.useRef)(!1), t2;
3229
+ $[11] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[11] = t2) : t2 = $[11], (0, react.useImperativeHandle)(forwardedRef, t2);
3288
3230
  let t3;
3289
3231
  $[12] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
3290
3232
  focusedRef.current = !1;
@@ -3296,9 +3238,9 @@ const CustomButton = styled(Button).withConfig({
3296
3238
  let handleFocus = t4, t5, t6;
3297
3239
  $[15] === focused ? (t5 = $[16], t6 = $[17]) : (t5 = () => {
3298
3240
  focused && !focusedRef.current && (ref.current && ref.current.focus(), focusedRef.current = !0);
3299
- }, t6 = [focused], $[15] = focused, $[16] = t5, $[17] = t6), useEffect(t5, t6);
3241
+ }, t6 = [focused], $[15] = focused, $[16] = t5, $[17] = t6), (0, react.useEffect)(t5, t6);
3300
3242
  let t7 = selected ? "true" : "false", t8 = selected ? 0 : -1, t9;
3301
- return $[18] !== fontSize || $[19] !== handleFocus || $[20] !== icon || $[21] !== id || $[22] !== label || $[23] !== onClick || $[24] !== padding || $[25] !== restProps || $[26] !== selected || $[27] !== t7 || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsx(CustomButton, {
3243
+ return $[18] !== fontSize || $[19] !== handleFocus || $[20] !== icon || $[21] !== id || $[22] !== label || $[23] !== onClick || $[24] !== padding || $[25] !== restProps || $[26] !== selected || $[27] !== t7 || $[28] !== t8 ? (t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CustomButton, {
3302
3244
  "data-ui": "Tab",
3303
3245
  ...restProps,
3304
3246
  "aria-selected": t7,
@@ -3317,18 +3259,16 @@ const CustomButton = styled(Button).withConfig({
3317
3259
  text: label,
3318
3260
  type: "button"
3319
3261
  }), $[18] = fontSize, $[19] = handleFocus, $[20] = icon, $[21] = id, $[22] = label, $[23] = onClick, $[24] = padding, $[25] = restProps, $[26] = selected, $[27] = t7, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
3320
- });
3321
- Tab.displayName = "ForwardRef(Tab)";
3322
- const CustomInline = styled(Inline).withConfig({
3262
+ }), CustomInline = (0, styled_components.styled)(Inline).withConfig({
3323
3263
  displayName: "CustomInline",
3324
- componentId: "sc-k5whbp-0"
3325
- })`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`, TabList = forwardRef(function(props, ref) {
3326
- let $ = c(15), childrenProp, restProps;
3264
+ componentId: "sc-40huc5-0"
3265
+ })`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`, TabList = (0, react.forwardRef)(function TabList(props, ref) {
3266
+ let $ = (0, react_compiler_runtime.c)(15), childrenProp, restProps;
3327
3267
  $[0] === props ? (childrenProp = $[1], restProps = $[2]) : ({children: childrenProp, ...restProps} = props, $[0] = props, $[1] = childrenProp, $[2] = restProps);
3328
- let [focusedIndex, setFocusedIndex] = useState(-1), t0;
3268
+ let [focusedIndex, setFocusedIndex] = (0, react.useState)(-1), t0;
3329
3269
  if ($[3] !== childrenProp || $[4] !== focusedIndex) {
3330
- let children = Children.toArray(childrenProp).filter(isValidElement), t1;
3331
- $[6] === focusedIndex ? t1 = $[7] : (t1 = (child, childIndex) => cloneElement(child, {
3270
+ let children = react.Children.toArray(childrenProp).filter(react.isValidElement), t1;
3271
+ $[6] === focusedIndex ? t1 = $[7] : (t1 = (child, childIndex) => (0, react.cloneElement)(child, {
3332
3272
  focused: focusedIndex === childIndex,
3333
3273
  key: childIndex,
3334
3274
  onFocus: () => setFocusedIndex(childIndex)
@@ -3339,7 +3279,7 @@ const CustomInline = styled(Inline).withConfig({
3339
3279
  event.key === "ArrowLeft" && setFocusedIndex((prevIndex) => (prevIndex + numTabs - 1) % numTabs), event.key === "ArrowRight" && setFocusedIndex((prevIndex_0) => (prevIndex_0 + 1) % numTabs);
3340
3280
  }, $[8] = numTabs, $[9] = t1);
3341
3281
  let handleKeyDown = t1, t2;
3342
- return $[10] !== handleKeyDown || $[11] !== ref || $[12] !== restProps || $[13] !== tabs ? (t2 = /* @__PURE__ */ jsx(CustomInline, {
3282
+ return $[10] !== handleKeyDown || $[11] !== ref || $[12] !== restProps || $[13] !== tabs ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CustomInline, {
3343
3283
  "data-ui": "TabList",
3344
3284
  ...restProps,
3345
3285
  onKeyDown: handleKeyDown,
@@ -3348,7 +3288,456 @@ const CustomInline = styled(Inline).withConfig({
3348
3288
  children: tabs
3349
3289
  }), $[10] = handleKeyDown, $[11] = ref, $[12] = restProps, $[13] = tabs, $[14] = t2) : t2 = $[14], t2;
3350
3290
  });
3351
- TabList.displayName = "ForwardRef(TabList)";
3352
- export { responsiveInputPaddingStyle as $, useMediaIndex as A, parseColor as At, _cardColorStyle as B, BoundaryElementContext as C, isHTMLTextAreaElement as Ct, Grid as D, hexToRgb as Dt, Inline as E, createColorTheme as Et, _ResizeObserver as F, studioTheme as Ft, SpanWithTextOverflow as G, Flex as H, useCustomValidity as I, textInputBaseStyle as J, responsiveRadiusStyle as K, useClickOutsideEvent as L, useGlobalKeyDown as M, rgbToHsl as Mt, useElementSize as N, rgba as Nt, usePrefersReducedMotion as O, hslToRgb as Ot, _elementSizeObserver as P, screen as Pt, responsiveInputPaddingIconRightStyle as Q, Card as R, isRecord as S, isHTMLSelectElement as St, KBD as T, EMPTY_RECORD as Tt, Text as U, Spinner as V, Box as W, textInputRepresentationStyle as X, textInputFontSizeStyle as Y, textInputRootStyle as Z, usePortal as _, containsOrEqualsElement as _t, MenuDivider as a, useRootTheme as at, LayerProvider as b, isHTMLElement as bt, Tooltip as c, responsiveTextFont as ct, useDelayedState as d, _fillCSSObject as dt, focusRingBorderStyle as et, TextInput as f, _getArrayProp as ft, Portal as g, _isEnterToClickElement as gt, PortalProvider as h, rem as ht, MenuGroup as i, ThemeColorProvider as it, useMatchMedia as j, rgbToHex as jt, usePrefersDark as k, multiply as kt, useTooltipDelayGroup as l, responsiveTextAlignStyle as lt, Popover as m, _responsive as mt, Tab as n, useTheme$1 as nt, Menu as o, ThemeProvider$1 as ot, Stack as p, _getResponsiveSpace as pt, responsivePaddingStyle as q, MenuItem as r, useTheme_v2 as rt, Hotkeys as s, createGlobalScopedContext as st, TabList as t, focusRingStyle as tt, TooltipDelayGroupContext as u, responsiveFont as ut, Layer as v, isHTMLAnchorElement as vt, Arrow as w, EMPTY_ARRAY as wt, useBoundaryElement as x, isHTMLInputElement as xt, useLayer as y, isHTMLButtonElement as yt, Button as z };
3291
+ Object.defineProperty(exports, "$", {
3292
+ enumerable: !0,
3293
+ get: function() {
3294
+ return responsiveInputPaddingStyle;
3295
+ }
3296
+ }), Object.defineProperty(exports, "A", {
3297
+ enumerable: !0,
3298
+ get: function() {
3299
+ return useMediaIndex;
3300
+ }
3301
+ }), Object.defineProperty(exports, "At", {
3302
+ enumerable: !0,
3303
+ get: function() {
3304
+ return parseColor;
3305
+ }
3306
+ }), Object.defineProperty(exports, "B", {
3307
+ enumerable: !0,
3308
+ get: function() {
3309
+ return _cardColorStyle;
3310
+ }
3311
+ }), Object.defineProperty(exports, "C", {
3312
+ enumerable: !0,
3313
+ get: function() {
3314
+ return BoundaryElementContext;
3315
+ }
3316
+ }), Object.defineProperty(exports, "Ct", {
3317
+ enumerable: !0,
3318
+ get: function() {
3319
+ return isHTMLTextAreaElement;
3320
+ }
3321
+ }), Object.defineProperty(exports, "D", {
3322
+ enumerable: !0,
3323
+ get: function() {
3324
+ return Grid;
3325
+ }
3326
+ }), Object.defineProperty(exports, "Dt", {
3327
+ enumerable: !0,
3328
+ get: function() {
3329
+ return hexToRgb;
3330
+ }
3331
+ }), Object.defineProperty(exports, "E", {
3332
+ enumerable: !0,
3333
+ get: function() {
3334
+ return Inline;
3335
+ }
3336
+ }), Object.defineProperty(exports, "Et", {
3337
+ enumerable: !0,
3338
+ get: function() {
3339
+ return createColorTheme;
3340
+ }
3341
+ }), Object.defineProperty(exports, "F", {
3342
+ enumerable: !0,
3343
+ get: function() {
3344
+ return _ResizeObserver;
3345
+ }
3346
+ }), Object.defineProperty(exports, "Ft", {
3347
+ enumerable: !0,
3348
+ get: function() {
3349
+ return studioTheme;
3350
+ }
3351
+ }), Object.defineProperty(exports, "G", {
3352
+ enumerable: !0,
3353
+ get: function() {
3354
+ return SpanWithTextOverflow;
3355
+ }
3356
+ }), Object.defineProperty(exports, "H", {
3357
+ enumerable: !0,
3358
+ get: function() {
3359
+ return Flex;
3360
+ }
3361
+ }), Object.defineProperty(exports, "I", {
3362
+ enumerable: !0,
3363
+ get: function() {
3364
+ return useCustomValidity;
3365
+ }
3366
+ }), Object.defineProperty(exports, "It", {
3367
+ enumerable: !0,
3368
+ get: function() {
3369
+ return __toESM;
3370
+ }
3371
+ }), Object.defineProperty(exports, "J", {
3372
+ enumerable: !0,
3373
+ get: function() {
3374
+ return textInputBaseStyle;
3375
+ }
3376
+ }), Object.defineProperty(exports, "K", {
3377
+ enumerable: !0,
3378
+ get: function() {
3379
+ return responsiveRadiusStyle;
3380
+ }
3381
+ }), Object.defineProperty(exports, "L", {
3382
+ enumerable: !0,
3383
+ get: function() {
3384
+ return useClickOutsideEvent;
3385
+ }
3386
+ }), Object.defineProperty(exports, "M", {
3387
+ enumerable: !0,
3388
+ get: function() {
3389
+ return useGlobalKeyDown;
3390
+ }
3391
+ }), Object.defineProperty(exports, "Mt", {
3392
+ enumerable: !0,
3393
+ get: function() {
3394
+ return rgbToHsl;
3395
+ }
3396
+ }), Object.defineProperty(exports, "N", {
3397
+ enumerable: !0,
3398
+ get: function() {
3399
+ return useElementSize;
3400
+ }
3401
+ }), Object.defineProperty(exports, "Nt", {
3402
+ enumerable: !0,
3403
+ get: function() {
3404
+ return rgba;
3405
+ }
3406
+ }), Object.defineProperty(exports, "O", {
3407
+ enumerable: !0,
3408
+ get: function() {
3409
+ return usePrefersReducedMotion;
3410
+ }
3411
+ }), Object.defineProperty(exports, "Ot", {
3412
+ enumerable: !0,
3413
+ get: function() {
3414
+ return hslToRgb;
3415
+ }
3416
+ }), Object.defineProperty(exports, "P", {
3417
+ enumerable: !0,
3418
+ get: function() {
3419
+ return _elementSizeObserver;
3420
+ }
3421
+ }), Object.defineProperty(exports, "Pt", {
3422
+ enumerable: !0,
3423
+ get: function() {
3424
+ return screen;
3425
+ }
3426
+ }), Object.defineProperty(exports, "Q", {
3427
+ enumerable: !0,
3428
+ get: function() {
3429
+ return responsiveInputPaddingIconRightStyle;
3430
+ }
3431
+ }), Object.defineProperty(exports, "R", {
3432
+ enumerable: !0,
3433
+ get: function() {
3434
+ return Card;
3435
+ }
3436
+ }), Object.defineProperty(exports, "S", {
3437
+ enumerable: !0,
3438
+ get: function() {
3439
+ return isRecord;
3440
+ }
3441
+ }), Object.defineProperty(exports, "St", {
3442
+ enumerable: !0,
3443
+ get: function() {
3444
+ return isHTMLSelectElement;
3445
+ }
3446
+ }), Object.defineProperty(exports, "T", {
3447
+ enumerable: !0,
3448
+ get: function() {
3449
+ return KBD;
3450
+ }
3451
+ }), Object.defineProperty(exports, "Tt", {
3452
+ enumerable: !0,
3453
+ get: function() {
3454
+ return EMPTY_RECORD;
3455
+ }
3456
+ }), Object.defineProperty(exports, "U", {
3457
+ enumerable: !0,
3458
+ get: function() {
3459
+ return Text;
3460
+ }
3461
+ }), Object.defineProperty(exports, "V", {
3462
+ enumerable: !0,
3463
+ get: function() {
3464
+ return Spinner;
3465
+ }
3466
+ }), Object.defineProperty(exports, "W", {
3467
+ enumerable: !0,
3468
+ get: function() {
3469
+ return Box;
3470
+ }
3471
+ }), Object.defineProperty(exports, "X", {
3472
+ enumerable: !0,
3473
+ get: function() {
3474
+ return textInputRepresentationStyle;
3475
+ }
3476
+ }), Object.defineProperty(exports, "Y", {
3477
+ enumerable: !0,
3478
+ get: function() {
3479
+ return textInputFontSizeStyle;
3480
+ }
3481
+ }), Object.defineProperty(exports, "Z", {
3482
+ enumerable: !0,
3483
+ get: function() {
3484
+ return textInputRootStyle;
3485
+ }
3486
+ }), Object.defineProperty(exports, "_", {
3487
+ enumerable: !0,
3488
+ get: function() {
3489
+ return usePortal;
3490
+ }
3491
+ }), Object.defineProperty(exports, "_t", {
3492
+ enumerable: !0,
3493
+ get: function() {
3494
+ return containsOrEqualsElement;
3495
+ }
3496
+ }), Object.defineProperty(exports, "a", {
3497
+ enumerable: !0,
3498
+ get: function() {
3499
+ return MenuDivider;
3500
+ }
3501
+ }), Object.defineProperty(exports, "at", {
3502
+ enumerable: !0,
3503
+ get: function() {
3504
+ return useRootTheme;
3505
+ }
3506
+ }), Object.defineProperty(exports, "b", {
3507
+ enumerable: !0,
3508
+ get: function() {
3509
+ return LayerProvider;
3510
+ }
3511
+ }), Object.defineProperty(exports, "bt", {
3512
+ enumerable: !0,
3513
+ get: function() {
3514
+ return isHTMLElement;
3515
+ }
3516
+ }), Object.defineProperty(exports, "c", {
3517
+ enumerable: !0,
3518
+ get: function() {
3519
+ return Tooltip;
3520
+ }
3521
+ }), Object.defineProperty(exports, "ct", {
3522
+ enumerable: !0,
3523
+ get: function() {
3524
+ return responsiveTextFont;
3525
+ }
3526
+ }), Object.defineProperty(exports, "d", {
3527
+ enumerable: !0,
3528
+ get: function() {
3529
+ return useDelayedState;
3530
+ }
3531
+ }), Object.defineProperty(exports, "dt", {
3532
+ enumerable: !0,
3533
+ get: function() {
3534
+ return _fillCSSObject;
3535
+ }
3536
+ }), Object.defineProperty(exports, "et", {
3537
+ enumerable: !0,
3538
+ get: function() {
3539
+ return focusRingBorderStyle;
3540
+ }
3541
+ }), Object.defineProperty(exports, "f", {
3542
+ enumerable: !0,
3543
+ get: function() {
3544
+ return TextInput;
3545
+ }
3546
+ }), Object.defineProperty(exports, "ft", {
3547
+ enumerable: !0,
3548
+ get: function() {
3549
+ return _getArrayProp;
3550
+ }
3551
+ }), Object.defineProperty(exports, "g", {
3552
+ enumerable: !0,
3553
+ get: function() {
3554
+ return Portal;
3555
+ }
3556
+ }), Object.defineProperty(exports, "gt", {
3557
+ enumerable: !0,
3558
+ get: function() {
3559
+ return _isEnterToClickElement;
3560
+ }
3561
+ }), Object.defineProperty(exports, "h", {
3562
+ enumerable: !0,
3563
+ get: function() {
3564
+ return PortalProvider;
3565
+ }
3566
+ }), Object.defineProperty(exports, "ht", {
3567
+ enumerable: !0,
3568
+ get: function() {
3569
+ return rem;
3570
+ }
3571
+ }), Object.defineProperty(exports, "i", {
3572
+ enumerable: !0,
3573
+ get: function() {
3574
+ return MenuGroup;
3575
+ }
3576
+ }), Object.defineProperty(exports, "it", {
3577
+ enumerable: !0,
3578
+ get: function() {
3579
+ return ThemeColorProvider;
3580
+ }
3581
+ }), Object.defineProperty(exports, "j", {
3582
+ enumerable: !0,
3583
+ get: function() {
3584
+ return useMatchMedia;
3585
+ }
3586
+ }), Object.defineProperty(exports, "jt", {
3587
+ enumerable: !0,
3588
+ get: function() {
3589
+ return rgbToHex;
3590
+ }
3591
+ }), Object.defineProperty(exports, "k", {
3592
+ enumerable: !0,
3593
+ get: function() {
3594
+ return usePrefersDark;
3595
+ }
3596
+ }), Object.defineProperty(exports, "kt", {
3597
+ enumerable: !0,
3598
+ get: function() {
3599
+ return multiply;
3600
+ }
3601
+ }), Object.defineProperty(exports, "l", {
3602
+ enumerable: !0,
3603
+ get: function() {
3604
+ return useTooltipDelayGroup;
3605
+ }
3606
+ }), Object.defineProperty(exports, "lt", {
3607
+ enumerable: !0,
3608
+ get: function() {
3609
+ return responsiveTextAlignStyle;
3610
+ }
3611
+ }), Object.defineProperty(exports, "m", {
3612
+ enumerable: !0,
3613
+ get: function() {
3614
+ return Popover;
3615
+ }
3616
+ }), Object.defineProperty(exports, "mt", {
3617
+ enumerable: !0,
3618
+ get: function() {
3619
+ return _responsive;
3620
+ }
3621
+ }), Object.defineProperty(exports, "n", {
3622
+ enumerable: !0,
3623
+ get: function() {
3624
+ return Tab;
3625
+ }
3626
+ }), Object.defineProperty(exports, "nt", {
3627
+ enumerable: !0,
3628
+ get: function() {
3629
+ return useTheme;
3630
+ }
3631
+ }), Object.defineProperty(exports, "o", {
3632
+ enumerable: !0,
3633
+ get: function() {
3634
+ return Menu;
3635
+ }
3636
+ }), Object.defineProperty(exports, "ot", {
3637
+ enumerable: !0,
3638
+ get: function() {
3639
+ return ThemeProvider;
3640
+ }
3641
+ }), Object.defineProperty(exports, "p", {
3642
+ enumerable: !0,
3643
+ get: function() {
3644
+ return Stack;
3645
+ }
3646
+ }), Object.defineProperty(exports, "pt", {
3647
+ enumerable: !0,
3648
+ get: function() {
3649
+ return _getResponsiveSpace;
3650
+ }
3651
+ }), Object.defineProperty(exports, "q", {
3652
+ enumerable: !0,
3653
+ get: function() {
3654
+ return responsivePaddingStyle;
3655
+ }
3656
+ }), Object.defineProperty(exports, "r", {
3657
+ enumerable: !0,
3658
+ get: function() {
3659
+ return MenuItem;
3660
+ }
3661
+ }), Object.defineProperty(exports, "rt", {
3662
+ enumerable: !0,
3663
+ get: function() {
3664
+ return useTheme_v2;
3665
+ }
3666
+ }), Object.defineProperty(exports, "s", {
3667
+ enumerable: !0,
3668
+ get: function() {
3669
+ return Hotkeys;
3670
+ }
3671
+ }), Object.defineProperty(exports, "st", {
3672
+ enumerable: !0,
3673
+ get: function() {
3674
+ return createGlobalScopedContext;
3675
+ }
3676
+ }), Object.defineProperty(exports, "t", {
3677
+ enumerable: !0,
3678
+ get: function() {
3679
+ return TabList;
3680
+ }
3681
+ }), Object.defineProperty(exports, "tt", {
3682
+ enumerable: !0,
3683
+ get: function() {
3684
+ return focusRingStyle;
3685
+ }
3686
+ }), Object.defineProperty(exports, "u", {
3687
+ enumerable: !0,
3688
+ get: function() {
3689
+ return TooltipDelayGroupContext;
3690
+ }
3691
+ }), Object.defineProperty(exports, "ut", {
3692
+ enumerable: !0,
3693
+ get: function() {
3694
+ return responsiveFont;
3695
+ }
3696
+ }), Object.defineProperty(exports, "v", {
3697
+ enumerable: !0,
3698
+ get: function() {
3699
+ return Layer;
3700
+ }
3701
+ }), Object.defineProperty(exports, "vt", {
3702
+ enumerable: !0,
3703
+ get: function() {
3704
+ return isHTMLAnchorElement;
3705
+ }
3706
+ }), Object.defineProperty(exports, "w", {
3707
+ enumerable: !0,
3708
+ get: function() {
3709
+ return Arrow;
3710
+ }
3711
+ }), Object.defineProperty(exports, "wt", {
3712
+ enumerable: !0,
3713
+ get: function() {
3714
+ return EMPTY_ARRAY;
3715
+ }
3716
+ }), Object.defineProperty(exports, "x", {
3717
+ enumerable: !0,
3718
+ get: function() {
3719
+ return useBoundaryElement;
3720
+ }
3721
+ }), Object.defineProperty(exports, "xt", {
3722
+ enumerable: !0,
3723
+ get: function() {
3724
+ return isHTMLInputElement;
3725
+ }
3726
+ }), Object.defineProperty(exports, "y", {
3727
+ enumerable: !0,
3728
+ get: function() {
3729
+ return useLayer;
3730
+ }
3731
+ }), Object.defineProperty(exports, "yt", {
3732
+ enumerable: !0,
3733
+ get: function() {
3734
+ return isHTMLButtonElement;
3735
+ }
3736
+ }), Object.defineProperty(exports, "z", {
3737
+ enumerable: !0,
3738
+ get: function() {
3739
+ return Button;
3740
+ }
3741
+ });
3353
3742
 
3354
- //# sourceMappingURL=tabList.mjs.map
3743
+ //# sourceMappingURL=tabList.cjs.map