@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,17 +1,8 @@
1
- import { X as getTheme_v2 } from "./_chunks/theme.mjs";
2
- import { $ as responsiveInputPaddingStyle, A as useMediaIndex, At as parseColor, B as _cardColorStyle, C as BoundaryElementContext, Ct as isHTMLTextAreaElement, D as Grid, Dt as hexToRgb, E as Inline, Et as createColorTheme, F as _ResizeObserver, Ft as studioTheme, G as SpanWithTextOverflow, H as Flex, I as useCustomValidity, J as textInputBaseStyle, K as responsiveRadiusStyle, L as useClickOutsideEvent, M as useGlobalKeyDown, Mt as rgbToHsl, N as useElementSize, Nt as rgba, O as usePrefersReducedMotion, Ot as hslToRgb, P as _elementSizeObserver, Pt as screen, Q as responsiveInputPaddingIconRightStyle, R as Card, S as isRecord, St as isHTMLSelectElement, T as KBD, Tt as EMPTY_RECORD, U as Text, V as Spinner, W as Box, X as textInputRepresentationStyle, Y as textInputFontSizeStyle, Z as textInputRootStyle, _ as usePortal, _t as containsOrEqualsElement, a as MenuDivider, at as useRootTheme, b as LayerProvider, bt as isHTMLElement, c as Tooltip, ct as responsiveTextFont, d as useDelayedState, dt as _fillCSSObject, et as focusRingBorderStyle, f as TextInput, ft as _getArrayProp, g as Portal, gt as _isEnterToClickElement, h as PortalProvider, ht as rem, i as MenuGroup, it as ThemeColorProvider, j as useMatchMedia, jt as rgbToHex, k as usePrefersDark, kt as multiply, l as useTooltipDelayGroup, lt as responsiveTextAlignStyle, m as Popover, mt as _responsive, n as Tab, nt as useTheme, o as Menu, ot as ThemeProvider, p as Stack, pt as _getResponsiveSpace, q as responsivePaddingStyle, r as MenuItem, rt as useTheme_v2, s as Hotkeys, st as createGlobalScopedContext, t as TabList, tt as focusRingStyle, u as TooltipDelayGroupContext, ut as responsiveFont, v as Layer, vt as isHTMLAnchorElement, w as Arrow, wt as EMPTY_ARRAY, x as useBoundaryElement, xt as isHTMLInputElement, y as useLayer, yt as isHTMLButtonElement, z as Button } from "./_chunks/tabList.mjs";
3
- import { c } from "react-compiler-runtime";
4
- import { ChevronDownIcon } from "@sanity/icons/ChevronDown";
5
- import { Children, Component, Fragment, Suspense, cloneElement, forwardRef, isValidElement, lazy, startTransition, useContext, useEffect, useId, useImperativeHandle, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
6
- import ReactIs from "react-is";
7
- import { css, keyframes, styled } from "styled-components";
8
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
- import { SpinnerIcon } from "@sanity/icons/Spinner";
10
- import { CheckmarkIcon } from "@sanity/icons/Checkmark";
11
- import { RemoveIcon } from "@sanity/icons/Remove";
12
- import { AnimatePresence, motion } from "motion/react";
13
- import { CloseIcon } from "@sanity/icons/Close";
14
- import { ToggleArrowRightIcon } from "@sanity/icons/ToggleArrowRight";
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_tabList = require("./_chunks/tabList.cjs"), require_theme = require("./_chunks/theme.cjs");
3
+ let react_compiler_runtime = require("react-compiler-runtime"), _sanity_icons_ChevronDown = require("@sanity/icons/ChevronDown"), react = require("react"), react_is = require("react-is");
4
+ react_is = require_tabList.It(react_is, 1);
5
+ let styled_components = require("styled-components"), react_jsx_runtime = require("react/jsx-runtime"), _sanity_icons_Spinner = require("@sanity/icons/Spinner"), _sanity_icons_Checkmark = require("@sanity/icons/Checkmark"), _sanity_icons_Remove = require("@sanity/icons/Remove"), motion_react = require("motion/react"), _sanity_icons_Close = require("@sanity/icons/Close"), _sanity_icons_ToggleArrowRight = require("@sanity/icons/ToggleArrowRight");
15
6
  /**
16
7
  * @internal
17
8
  */
@@ -42,7 +33,7 @@ function _hasFocus(element) {
42
33
  * @internal
43
34
  */
44
35
  function isFocusable(element) {
45
- return element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null ? !0 : isHTMLAnchorElement(element) ? !!element.href && element.rel !== "ignore" : isHTMLInputElement(element) ? element.type !== "hidden" && element.type !== "file" && !element.disabled : isHTMLButtonElement(element) || isHTMLSelectElement(element) || isHTMLTextAreaElement(element) ? !element.disabled : !1;
36
+ return element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null ? !0 : require_tabList.vt(element) ? !!element.href && element.rel !== "ignore" : require_tabList.xt(element) ? element.type !== "hidden" && element.type !== "file" && !element.disabled : require_tabList.yt(element) || require_tabList.St(element) || require_tabList.Ct(element) ? !element.disabled : !1;
46
37
  }
47
38
  /**
48
39
  * @internal
@@ -60,7 +51,7 @@ function attemptFocus(element) {
60
51
  function focusFirstDescendant(element) {
61
52
  for (let i = 0; i < element.childNodes.length; i++) {
62
53
  let child = element.childNodes[i];
63
- if (isHTMLElement(child) && (attemptFocus(child) || focusFirstDescendant(child))) return !0;
54
+ if (require_tabList.bt(child) && (attemptFocus(child) || focusFirstDescendant(child))) return !0;
64
55
  }
65
56
  return !1;
66
57
  }
@@ -70,7 +61,7 @@ function focusFirstDescendant(element) {
70
61
  function focusLastDescendant(element) {
71
62
  for (let i = element.childNodes.length - 1; i >= 0; i--) {
72
63
  let child = element.childNodes[i];
73
- if (isHTMLElement(child) && (attemptFocus(child) || focusLastDescendant(child))) return !0;
64
+ if (require_tabList.bt(child) && (attemptFocus(child) || focusLastDescendant(child))) return !0;
74
65
  }
75
66
  return !1;
76
67
  }
@@ -87,46 +78,46 @@ function _isScrollable(el) {
87
78
  * @internal
88
79
  */
89
80
  function responsiveCodeFontStyle(props) {
90
- return responsiveFont("code", props);
81
+ return require_tabList.ut("code", props);
91
82
  }
92
83
  /**
93
84
  * Get responsive CSS for the `heading` font style.
94
85
  * @internal
95
86
  */
96
87
  function responsiveHeadingFont(props) {
97
- return responsiveFont("heading", props);
88
+ return require_tabList.ut("heading", props);
98
89
  }
99
90
  /**
100
91
  * Get responsive CSS for the `label` font style.
101
92
  * @internal
102
93
  */
103
94
  function responsiveLabelFont(props) {
104
- return responsiveFont("label", props);
95
+ return require_tabList.ut("label", props);
105
96
  }
106
97
  function labelBaseStyle(props) {
107
- let { $accent, $muted } = props, { font } = getTheme_v2(props.theme);
108
- return css`text-transform:uppercase;${$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;}& a{text-decoration:none;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
98
+ let { $accent, $muted } = props, { font } = require_theme.X(props.theme);
99
+ return styled_components.css`text-transform:uppercase;${$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;}& a{text-decoration:none;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
109
100
  }
110
- const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
101
+ const StyledLabel = /* @__PURE__ */ styled_components.styled.div.withConfig({
111
102
  displayName: "StyledLabel",
112
- componentId: "sc-cvgwlt-0"
113
- })(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), LabelComponent = forwardRef(function(props, ref) {
114
- let $ = c(26), accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
103
+ componentId: "sc-rdxcu9-0"
104
+ })(responsiveLabelFont, require_tabList.lt, labelBaseStyle), Label = (0, react.forwardRef)(function Label(props, ref) {
105
+ let $ = (0, react_compiler_runtime.c)(26), accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
115
106
  $[0] === props ? (accent = $[1], align = $[2], childrenProp = $[3], restProps = $[4], t0 = $[5], t1 = $[6], textOverflow = $[7], weight = $[8]) : ({accent, align, children: childrenProp, muted: t0, size: t1, textOverflow, weight, ...restProps} = props, $[0] = props, $[1] = accent, $[2] = align, $[3] = childrenProp, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = textOverflow, $[8] = weight);
116
107
  let muted = t0 !== void 0 && t0, size = t1 === void 0 ? 2 : t1, children = childrenProp;
117
108
  if (textOverflow === "ellipsis") {
118
109
  let t2;
119
- $[9] === children ? t2 = $[10] : (t2 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t2), children = t2;
110
+ $[9] === children ? t2 = $[10] : (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.G, { children }), $[9] = children, $[10] = t2), children = t2;
120
111
  } else {
121
112
  let t2;
122
- $[11] === children ? t2 = $[12] : (t2 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t2), children = t2;
113
+ $[11] === children ? t2 = $[12] : (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children }), $[11] = children, $[12] = t2), children = t2;
123
114
  }
124
115
  let t2;
125
- $[13] === align ? t2 = $[14] : (t2 = _getArrayProp(align), $[13] = align, $[14] = t2);
116
+ $[13] === align ? t2 = $[14] : (t2 = require_tabList.ft(align), $[13] = align, $[14] = t2);
126
117
  let t3;
127
- $[15] === size ? t3 = $[16] : (t3 = _getArrayProp(size), $[15] = size, $[16] = t3);
118
+ $[15] === size ? t3 = $[16] : (t3 = require_tabList.ft(size), $[15] = size, $[16] = t3);
128
119
  let t4;
129
- return $[17] !== accent || $[18] !== children || $[19] !== muted || $[20] !== ref || $[21] !== restProps || $[22] !== t2 || $[23] !== t3 || $[24] !== weight ? (t4 = /* @__PURE__ */ jsx(StyledLabel, {
120
+ return $[17] !== accent || $[18] !== children || $[19] !== muted || $[20] !== ref || $[21] !== restProps || $[22] !== t2 || $[23] !== t3 || $[24] !== weight ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledLabel, {
130
121
  "data-ui": "Label",
131
122
  ...restProps,
132
123
  $accent: accent,
@@ -137,14 +128,7 @@ const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
137
128
  ref,
138
129
  children
139
130
  }), $[17] = accent, $[18] = children, $[19] = muted, $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3, $[24] = weight, $[25] = t4) : t4 = $[25], t4;
140
- });
141
- LabelComponent.displayName = "ForwardRef(Label)";
142
- /**
143
- * Typographic labels.
144
- *
145
- * @public
146
- */
147
- const Label = LabelComponent, avatarStyle = {
131
+ }), avatarStyle = {
148
132
  root: avatarRootStyle,
149
133
  arrow: avatarArrowStyle,
150
134
  bgStroke: avatarBgStrokeStyle,
@@ -188,7 +172,7 @@ function avatarArrowStyle() {
188
172
  };
189
173
  }
190
174
  function avatarRootStyle(props) {
191
- let { $color } = props, { avatar } = getTheme_v2(props.theme);
175
+ let { $color } = props, { avatar } = require_theme.X(props.theme);
192
176
  return {
193
177
  "--avatar-bg-color": `var(--card-avatar-${$color}-bg-color)`,
194
178
  "--avatar-fg-color": `var(--card-avatar-${$color}-fg-color)`,
@@ -208,23 +192,23 @@ function avatarRootStyle(props) {
208
192
  font: "inherit",
209
193
  color: "inherit",
210
194
  outline: "none",
211
- "&:focus": { boxShadow: focusRingStyle({ focusRing: avatar.focusRing }) },
195
+ "&:focus": { boxShadow: require_tabList.tt({ focusRing: avatar.focusRing }) },
212
196
  "&:focus:not(:focus-visible)": { boxShadow: "none" }
213
197
  }
214
198
  };
215
199
  }
216
200
  function responsiveAvatarSizeStyle(props) {
217
- let { avatar, media } = getTheme_v2(props.theme);
218
- return _responsive(media, props.$size, (size) => {
201
+ let { avatar, media } = require_theme.X(props.theme);
202
+ return require_tabList.mt(media, props.$size, (size) => {
219
203
  let avatarSize = avatar.sizes[size] || avatar.sizes[0];
220
204
  return {
221
- width: rem(avatarSize.size),
222
- height: rem(avatarSize.size),
223
- borderRadius: rem(avatarSize.size / 2),
205
+ width: require_tabList.ht(avatarSize.size),
206
+ height: require_tabList.ht(avatarSize.size),
207
+ borderRadius: require_tabList.ht(avatarSize.size / 2),
224
208
  "&>svg": {
225
- width: rem(avatarSize.size),
226
- height: rem(avatarSize.size),
227
- borderRadius: rem(avatarSize.size / 2)
209
+ width: require_tabList.ht(avatarSize.size),
210
+ height: require_tabList.ht(avatarSize.size),
211
+ borderRadius: require_tabList.ht(avatarSize.size / 2)
228
212
  }
229
213
  };
230
214
  });
@@ -261,86 +245,86 @@ function avatarStrokeStyle() {
261
245
  }
262
246
  };
263
247
  }
264
- const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
248
+ const StyledAvatar = /* @__PURE__ */ styled_components.styled.div.withConfig({
265
249
  displayName: "StyledAvatar",
266
- componentId: "sc-jxq2u8-0"
267
- })(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1 = /* @__PURE__ */ styled.div.withConfig({
250
+ componentId: "sc-skil6v-0"
251
+ })(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1 = /* @__PURE__ */ styled_components.styled.div.withConfig({
268
252
  displayName: "Arrow",
269
- componentId: "sc-jxq2u8-1"
270
- })(avatarStyle.arrow), BgStroke = /* @__PURE__ */ styled.ellipse.withConfig({
253
+ componentId: "sc-skil6v-1"
254
+ })(avatarStyle.arrow), BgStroke = /* @__PURE__ */ styled_components.styled.ellipse.withConfig({
271
255
  displayName: "BgStroke",
272
- componentId: "sc-jxq2u8-2"
273
- })(avatarStyle.bgStroke), Stroke = /* @__PURE__ */ styled.ellipse.withConfig({
256
+ componentId: "sc-skil6v-2"
257
+ })(avatarStyle.bgStroke), Stroke = /* @__PURE__ */ styled_components.styled.ellipse.withConfig({
274
258
  displayName: "Stroke",
275
- componentId: "sc-jxq2u8-3"
276
- })(avatarStyle.stroke), Initials = /* @__PURE__ */ styled.div.withConfig({
259
+ componentId: "sc-skil6v-3"
260
+ })(avatarStyle.stroke), Initials = /* @__PURE__ */ styled_components.styled.div.withConfig({
277
261
  displayName: "Initials",
278
- componentId: "sc-jxq2u8-4"
279
- })(avatarStyle.initials), InitialsLabel = /* @__PURE__ */ styled(Label).withConfig({
262
+ componentId: "sc-skil6v-4"
263
+ })(avatarStyle.initials), InitialsLabel = /* @__PURE__ */ (0, styled_components.styled)(Label).withConfig({
280
264
  displayName: "InitialsLabel",
281
- componentId: "sc-jxq2u8-5"
282
- })({ color: "inherit" }), AvatarImage = /* @__PURE__ */ styled.svg.withConfig({
265
+ componentId: "sc-skil6v-5"
266
+ })({ color: "inherit" }), AvatarImage = /* @__PURE__ */ styled_components.styled.svg.withConfig({
283
267
  displayName: "AvatarImage",
284
- componentId: "sc-jxq2u8-6"
285
- })(avatarStyle.image), AvatarComponent = forwardRef(function(props, ref) {
286
- let $ = c(46), __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
268
+ componentId: "sc-skil6v-6"
269
+ })(avatarStyle.image), Avatar = (0, react.forwardRef)(function Avatar(props, ref) {
270
+ let $ = (0, react_compiler_runtime.c)(46), __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
287
271
  $[0] === props ? (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], asProp = $[4], initials = $[5], onImageLoadError = $[6], restProps = $[7], src = $[8], t0 = $[9], t1 = $[10], t2 = $[11], title = $[12]) : ({__unstable_hideInnerStroke, as: asProp, color: t0, src, title, initials, onImageLoadError, arrowPosition: arrowPositionProp, animateArrowFrom, status: t1, size: t2, ...restProps} = props, $[0] = props, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = asProp, $[5] = initials, $[6] = onImageLoadError, $[7] = restProps, $[8] = src, $[9] = t0, $[10] = t1, $[11] = t2, $[12] = title);
288
- let color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, { avatar } = useTheme_v2(), as = ReactIs.isValidElementType(asProp) ? asProp : "div", size = _getArrayProp(sizeProp), _sizeRem = (avatar.sizes[size[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = useId(), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = useState(!1), imageId = `avatar-image-${elementId}`, t3, t4;
272
+ let color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, { avatar } = require_tabList.rt(), as = react_is.default.isValidElementType(asProp) ? asProp : "div", size = require_tabList.ft(sizeProp), _sizeRem = (avatar.sizes[size[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = (0, react.useId)(), [arrowPosition, setArrowPosition] = (0, react.useState)(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = (0, react.useState)(!1), imageId = `avatar-image-${elementId}`, t3, t4;
289
273
  $[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t3 = () => {
290
274
  if (arrowPosition === arrowPositionProp) return;
291
275
  let raf = requestAnimationFrame(() => setArrowPosition(arrowPositionProp));
292
276
  return () => cancelAnimationFrame(raf);
293
- }, t4 = [arrowPosition, arrowPositionProp], $[13] = arrowPosition, $[14] = arrowPositionProp, $[15] = t3, $[16] = t4) : (t3 = $[15], t4 = $[16]), useEffect(t3, t4);
277
+ }, t4 = [arrowPosition, arrowPositionProp], $[13] = arrowPosition, $[14] = arrowPositionProp, $[15] = t3, $[16] = t4) : (t3 = $[15], t4 = $[16]), (0, react.useEffect)(t3, t4);
294
278
  let t5, t6;
295
279
  $[17] === src ? (t5 = $[18], t6 = $[19]) : (t5 = () => {
296
280
  src && setImageFailed(!1);
297
- }, t6 = [src], $[17] = src, $[18] = t5, $[19] = t6), useEffect(t5, t6);
281
+ }, t6 = [src], $[17] = src, $[18] = t5, $[19] = t6), (0, react.useEffect)(t5, t6);
298
282
  let t7;
299
283
  $[20] === onImageLoadError ? t7 = $[21] : (t7 = () => {
300
284
  setImageFailed(!0), onImageLoadError && onImageLoadError(/* @__PURE__ */ Error("Avatar: the image failed to load"));
301
285
  }, $[20] = onImageLoadError, $[21] = t7);
302
286
  let handleImageError = t7, T0 = StyledAvatar, t8 = typeof as == "string" ? as : void 0, t10;
303
- $[22] === color ? t10 = $[23] : (t10 = /* @__PURE__ */ jsx(Arrow$1, { children: /* @__PURE__ */ jsx("svg", {
287
+ $[22] === color ? t10 = $[23] : (t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Arrow$1, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
304
288
  width: "11",
305
289
  height: "7",
306
290
  viewBox: "0 0 11 7",
307
291
  fill: "none",
308
- children: /* @__PURE__ */ jsx("path", {
292
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
309
293
  d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z",
310
294
  fill: color
311
295
  })
312
296
  }) }), $[22] = color, $[23] = t10);
313
297
  let t11;
314
- $[24] !== __unstable_hideInnerStroke || $[25] !== _radius || $[26] !== _sizeRem || $[27] !== handleImageError || $[28] !== imageFailed || $[29] !== imageId || $[30] !== src ? (t11 = !imageFailed && src && /* @__PURE__ */ jsxs(AvatarImage, {
298
+ $[24] !== __unstable_hideInnerStroke || $[25] !== _radius || $[26] !== _sizeRem || $[27] !== handleImageError || $[28] !== imageFailed || $[29] !== imageId || $[30] !== src ? (t11 = !imageFailed && src && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(AvatarImage, {
315
299
  viewBox: `0 0 ${_sizeRem} ${_sizeRem}`,
316
300
  fill: "none",
317
301
  children: [
318
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("pattern", {
302
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pattern", {
319
303
  id: imageId,
320
304
  patternContentUnits: "objectBoundingBox",
321
305
  width: "1",
322
306
  height: "1",
323
- children: /* @__PURE__ */ jsx("image", {
307
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("image", {
324
308
  href: src,
325
309
  width: "1",
326
310
  height: "1",
327
311
  onError: handleImageError
328
312
  })
329
313
  }) }),
330
- /* @__PURE__ */ jsx("circle", {
314
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
331
315
  cx: _radius,
332
316
  cy: _radius,
333
317
  r: _radius,
334
318
  fill: `url(#${imageId})`
335
319
  }),
336
- !__unstable_hideInnerStroke && /* @__PURE__ */ jsx(BgStroke, {
320
+ !__unstable_hideInnerStroke && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BgStroke, {
337
321
  cx: _radius,
338
322
  cy: _radius,
339
323
  rx: _radius,
340
324
  ry: _radius,
341
325
  vectorEffect: "non-scaling-stroke"
342
326
  }),
343
- /* @__PURE__ */ jsx(Stroke, {
327
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Stroke, {
344
328
  cx: _radius,
345
329
  cy: _radius,
346
330
  rx: _radius,
@@ -349,13 +333,13 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
349
333
  })
350
334
  ]
351
335
  }), $[24] = __unstable_hideInnerStroke, $[25] = _radius, $[26] = _sizeRem, $[27] = handleImageError, $[28] = imageFailed, $[29] = imageId, $[30] = src, $[31] = t11) : t11 = $[31];
352
- let t12 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(Initials, { children: /* @__PURE__ */ jsx(InitialsLabel, {
336
+ let t12 = (imageFailed || !src) && initials && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Initials, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InitialsLabel, {
353
337
  forwardedAs: "span",
354
- size: size.map(_temp$4),
338
+ size: size.map(_temp$5),
355
339
  weight: "medium",
356
340
  children: initials
357
341
  }) }) }), t13;
358
- return $[32] !== T0 || $[33] !== arrowPosition || $[34] !== as || $[35] !== color || $[36] !== ref || $[37] !== restProps || $[38] !== size || $[39] !== status || $[40] !== t10 || $[41] !== t11 || $[42] !== t12 || $[43] !== t8 || $[44] !== title ? (t13 = /* @__PURE__ */ jsxs(T0, {
342
+ return $[32] !== T0 || $[33] !== arrowPosition || $[34] !== as || $[35] !== color || $[36] !== ref || $[37] !== restProps || $[38] !== size || $[39] !== status || $[40] !== t10 || $[41] !== t11 || $[42] !== t12 || $[43] !== t8 || $[44] !== title ? (t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(T0, {
359
343
  as,
360
344
  "data-as": t8,
361
345
  "data-ui": "Avatar",
@@ -374,93 +358,85 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
374
358
  ]
375
359
  }), $[32] = T0, $[33] = arrowPosition, $[34] = as, $[35] = color, $[36] = ref, $[37] = restProps, $[38] = size, $[39] = status, $[40] = t10, $[41] = t11, $[42] = t12, $[43] = t8, $[44] = title, $[45] = t13) : t13 = $[45], t13;
376
360
  });
377
- AvatarComponent.displayName = "ForwardRef(Avatar)";
378
- /**
379
- * Avatars are used to represent people and other agents (e.g. bots).
380
- *
381
- * @public
382
- */
383
- const Avatar = AvatarComponent;
384
- function _temp$4(s) {
361
+ function _temp$5(s) {
385
362
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
386
363
  }
387
364
  function _responsiveAvatarCounterSizeStyle(props) {
388
- let { avatar, media } = getTheme_v2(props.theme);
389
- return _responsive(media, props.$size, (size) => {
365
+ let { avatar, media } = require_theme.X(props.theme);
366
+ return require_tabList.mt(media, props.$size, (size) => {
390
367
  let avatarSize = avatar.sizes[size];
391
368
  return avatarSize ? {
392
- borderRadius: rem(avatarSize.size / 2),
393
- minWidth: rem(avatarSize.size),
394
- height: rem(avatarSize.size)
395
- } : EMPTY_RECORD;
369
+ borderRadius: require_tabList.ht(avatarSize.size / 2),
370
+ minWidth: require_tabList.ht(avatarSize.size),
371
+ height: require_tabList.ht(avatarSize.size)
372
+ } : require_tabList.Tt;
396
373
  });
397
374
  }
398
375
  function _avatarCounterBaseStyle(props) {
399
- let { space } = getTheme_v2(props.theme);
400
- return css`align-items:center;justify-content:center;box-sizing:border-box;user-select:none;color:inherit;color:var(--card-fg-color);background:var(--card-bg-color);box-shadow:0 0 0 1px var(--card-bg-color),inset 0 0 0 1px var(--card-hairline-hard-color);padding:0 ${rem(space[2])};&:not([hidden]){display:flex;}`;
376
+ let { space } = require_theme.X(props.theme);
377
+ return styled_components.css`align-items:center;justify-content:center;box-sizing:border-box;user-select:none;color:inherit;color:var(--card-fg-color);background:var(--card-bg-color);box-shadow:0 0 0 1px var(--card-bg-color),inset 0 0 0 1px var(--card-hairline-hard-color);padding:0 ${require_tabList.ht(space[2])};&:not([hidden]){display:flex;}`;
401
378
  }
402
- const StyledAvatarCounter = /* @__PURE__ */ styled.div.withConfig({
379
+ const StyledAvatarCounter = /* @__PURE__ */ styled_components.styled.div.withConfig({
403
380
  displayName: "StyledAvatarCounter",
404
- componentId: "sc-s1txqz-0"
405
- })(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = forwardRef(function(props, ref) {
406
- let $ = c(20), { count, size: t0 } = props, sizeProp = t0 === void 0 ? 1 : t0, T0, T1, t1, t2, t3, t4, t5;
381
+ componentId: "sc-6uv8jj-0"
382
+ })(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = (0, react.forwardRef)(function AvatarCounter(props, ref) {
383
+ let $ = (0, react_compiler_runtime.c)(20), { count, size: t0 } = props, sizeProp = t0 === void 0 ? 1 : t0, T0, T1, t1, t2, t3, t4, t5;
407
384
  if ($[0] !== ref || $[1] !== sizeProp) {
408
- let size = _getArrayProp(sizeProp);
409
- T1 = StyledAvatarCounter, t3 = size, t4 = "AvatarCounter", t5 = ref, T0 = Label, t1 = "span", t2 = size.map(_temp$3), $[0] = ref, $[1] = sizeProp, $[2] = T0, $[3] = T1, $[4] = t1, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5;
385
+ let size = require_tabList.ft(sizeProp);
386
+ T1 = StyledAvatarCounter, t3 = size, t4 = "AvatarCounter", t5 = ref, T0 = Label, t1 = "span", t2 = size.map(_temp$4), $[0] = ref, $[1] = sizeProp, $[2] = T0, $[3] = T1, $[4] = t1, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5;
410
387
  } else T0 = $[2], T1 = $[3], t1 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8];
411
388
  let t6;
412
- $[9] !== T0 || $[10] !== count || $[11] !== t1 || $[12] !== t2 ? (t6 = /* @__PURE__ */ jsx(T0, {
389
+ $[9] !== T0 || $[10] !== count || $[11] !== t1 || $[12] !== t2 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T0, {
413
390
  as: t1,
414
391
  size: t2,
415
392
  weight: "medium",
416
393
  children: count
417
394
  }), $[9] = T0, $[10] = count, $[11] = t1, $[12] = t2, $[13] = t6) : t6 = $[13];
418
395
  let t7;
419
- return $[14] !== T1 || $[15] !== t3 || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ jsx(T1, {
396
+ return $[14] !== T1 || $[15] !== t3 || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T1, {
420
397
  $size: t3,
421
398
  "data-ui": t4,
422
399
  ref: t5,
423
400
  children: t6
424
401
  }), $[14] = T1, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19], t7;
425
402
  });
426
- AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
427
- function _temp$3(s) {
403
+ function _temp$4(s) {
428
404
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
429
405
  }
430
- const BASE_STYLES = css`white-space:nowrap;& > div{vertical-align:top;&:not([hidden]){display:inline-block;}}`;
406
+ const BASE_STYLES = styled_components.css`white-space:nowrap;& > div{vertical-align:top;&:not([hidden]){display:inline-block;}}`;
431
407
  function avatarStackStyle() {
432
408
  return BASE_STYLES;
433
409
  }
434
410
  function responsiveAvatarStackSizeStyle(props) {
435
- let { avatar, media } = getTheme_v2(props.theme);
436
- return _responsive(media, props.$size, (size) => {
411
+ let { avatar, media } = require_theme.X(props.theme);
412
+ return require_tabList.mt(media, props.$size, (size) => {
437
413
  let avatarSize = avatar.sizes[size];
438
- return avatarSize ? { "& > div + div": { marginLeft: rem(avatarSize.distance) } } : EMPTY_RECORD;
414
+ return avatarSize ? { "& > div + div": { marginLeft: require_tabList.ht(avatarSize.distance) } } : require_tabList.Tt;
439
415
  });
440
416
  }
441
- const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
417
+ const StyledAvatarStack = /* @__PURE__ */ styled_components.styled.div.withConfig({
442
418
  displayName: "StyledAvatarStack",
443
- componentId: "sc-ks59o1-0"
444
- })(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = forwardRef(function(props, ref) {
445
- let $ = c(38), childrenProp, restProps, t0, t1;
419
+ componentId: "sc-ttibh-0"
420
+ })(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = (0, react.forwardRef)(function AvatarStack(props, ref) {
421
+ let $ = (0, react_compiler_runtime.c)(38), childrenProp, restProps, t0, t1;
446
422
  $[0] === props ? (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]) : ({children: childrenProp, maxLength: t0, size: t1, ...restProps} = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1);
447
423
  let maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, T0, t2, t3, t4, t5, t6, t7, t8;
448
424
  if ($[5] !== childrenProp || $[6] !== maxLengthProp || $[7] !== ref || $[8] !== restProps || $[9] !== sizeProp) {
449
- let children = Children.toArray(childrenProp).filter(isValidElement), maxLength = Math.max(maxLengthProp, 0), t9;
450
- $[18] === sizeProp ? t9 = $[19] : (t9 = _getArrayProp(sizeProp), $[18] = sizeProp, $[19] = t9);
425
+ let children = react.Children.toArray(childrenProp).filter(react.isValidElement), maxLength = Math.max(maxLengthProp, 0), t9;
426
+ $[18] === sizeProp ? t9 = $[19] : (t9 = require_tabList.ft(sizeProp), $[18] = sizeProp, $[19] = t9);
451
427
  let size = t9, len = children.length, extraCount = len - (maxLength - 1), visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children;
452
- T0 = StyledAvatarStack, t2 = "AvatarStack", t3 = restProps, t4 = ref, t5 = size, $[20] !== len || $[21] !== size ? (t6 = len === 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, {
428
+ T0 = StyledAvatarStack, t2 = "AvatarStack", t3 = restProps, t4 = ref, t5 = size, $[20] !== len || $[21] !== size ? (t6 = len === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AvatarCounter, {
453
429
  count: len,
454
430
  size
455
- }) }), $[20] = len, $[21] = size, $[22] = t6) : t6 = $[22], $[23] !== extraCount || $[24] !== len || $[25] !== size ? (t7 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, {
431
+ }) }), $[20] = len, $[21] = size, $[22] = t6) : t6 = $[22], $[23] !== extraCount || $[24] !== len || $[25] !== size ? (t7 = len !== 0 && extraCount > 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AvatarCounter, {
456
432
  count: extraCount,
457
433
  size
458
434
  }) }), $[23] = extraCount, $[24] = len, $[25] = size, $[26] = t7) : t7 = $[26];
459
435
  let t10;
460
- $[27] === size ? t10 = $[28] : (t10 = (child, childIndex) => /* @__PURE__ */ jsx("div", { children: cloneElement(child, { size }) }, String(childIndex)), $[27] = size, $[28] = t10), t8 = visibleChildren.map(t10), $[5] = childrenProp, $[6] = maxLengthProp, $[7] = ref, $[8] = restProps, $[9] = sizeProp, $[10] = T0, $[11] = t2, $[12] = t3, $[13] = t4, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8;
436
+ $[27] === size ? t10 = $[28] : (t10 = (child, childIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: (0, react.cloneElement)(child, { size }) }, String(childIndex)), $[27] = size, $[28] = t10), t8 = visibleChildren.map(t10), $[5] = childrenProp, $[6] = maxLengthProp, $[7] = ref, $[8] = restProps, $[9] = sizeProp, $[10] = T0, $[11] = t2, $[12] = t3, $[13] = t4, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8;
461
437
  } else T0 = $[10], t2 = $[11], t3 = $[12], t4 = $[13], t5 = $[14], t6 = $[15], t7 = $[16], t8 = $[17];
462
438
  let t9;
463
- return $[29] !== T0 || $[30] !== t2 || $[31] !== t3 || $[32] !== t4 || $[33] !== t5 || $[34] !== t6 || $[35] !== t7 || $[36] !== t8 ? (t9 = /* @__PURE__ */ jsxs(T0, {
439
+ return $[29] !== T0 || $[30] !== t2 || $[31] !== t3 || $[32] !== t4 || $[33] !== t5 || $[34] !== t6 || $[35] !== t7 || $[36] !== t8 ? (t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(T0, {
464
440
  "data-ui": t2,
465
441
  ...t3,
466
442
  ref: t4,
@@ -472,7 +448,6 @@ const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
472
448
  ]
473
449
  }), $[29] = T0, $[30] = t2, $[31] = t3, $[32] = t4, $[33] = t5, $[34] = t6, $[35] = t7, $[36] = t8, $[37] = t9) : t9 = $[37], t9;
474
450
  });
475
- AvatarStack.displayName = "ForwardRef(AvatarStack)";
476
451
  function badgeStyle(props) {
477
452
  let { $tone } = props;
478
453
  return {
@@ -486,26 +461,26 @@ function badgeStyle(props) {
486
461
  }
487
462
  };
488
463
  }
489
- const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
464
+ const StyledBadge = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
490
465
  displayName: "StyledBadge",
491
- componentId: "sc-p8fi74-0"
492
- })(responsiveRadiusStyle, badgeStyle), BadgeComponent = forwardRef(function(props, ref) {
493
- let $ = c(21), children, restProps, t0, t1, t2, t3;
466
+ componentId: "sc-nx309b-0"
467
+ })(require_tabList.K, badgeStyle), Badge = (0, react.forwardRef)(function Badge(props, ref) {
468
+ let $ = (0, react_compiler_runtime.c)(21), children, restProps, t0, t1, t2, t3;
494
469
  if ($[0] !== props) {
495
470
  let { children: t4, fontSize: t5, mode: _deprecated_mode, padding: t6, radius: t7, tone: t8, ...t9 } = props;
496
471
  children = t4, t0 = t5, t1 = t6, t2 = t7, t3 = t8, restProps = t9, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2, $[6] = t3;
497
472
  } else children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5], t3 = $[6];
498
473
  let fontSize = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? "full" : t2, tone = t3 === void 0 ? "default" : t3, t4;
499
- $[7] === radius ? t4 = $[8] : (t4 = _getArrayProp(radius), $[7] = radius, $[8] = t4);
474
+ $[7] === radius ? t4 = $[8] : (t4 = require_tabList.ft(radius), $[7] = radius, $[8] = t4);
500
475
  let t5;
501
- $[9] === padding ? t5 = $[10] : (t5 = _getArrayProp(padding), $[9] = padding, $[10] = t5);
476
+ $[9] === padding ? t5 = $[10] : (t5 = require_tabList.ft(padding), $[9] = padding, $[10] = t5);
502
477
  let t6;
503
- $[11] !== children || $[12] !== fontSize ? (t6 = /* @__PURE__ */ jsx(Text, {
478
+ $[11] !== children || $[12] !== fontSize ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
504
479
  size: fontSize,
505
480
  children
506
481
  }), $[11] = children, $[12] = fontSize, $[13] = t6) : t6 = $[13];
507
482
  let t7;
508
- return $[14] !== ref || $[15] !== restProps || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 || $[19] !== tone ? (t7 = /* @__PURE__ */ jsx(StyledBadge, {
483
+ return $[14] !== ref || $[15] !== restProps || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 || $[19] !== tone ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledBadge, {
509
484
  "data-ui": "Badge",
510
485
  ...restProps,
511
486
  $tone: tone,
@@ -515,19 +490,13 @@ const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
515
490
  children: t6
516
491
  }), $[14] = ref, $[15] = restProps, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = tone, $[20] = t7) : t7 = $[20], t7;
517
492
  });
518
- BadgeComponent.displayName = "ForwardRef(Badge)";
519
- /**
520
- * Badges are used to tag resources.
521
- *
522
- * @public
523
- */
524
- const Badge = BadgeComponent;
525
493
  /**
526
494
  * @deprecated instead of `useArrayProp(width)` use `Array.isArray(width) ? width : [width]` instead
527
495
  * @beta
528
496
  */
529
497
  function useArrayProp(val, defaultVal) {
530
- return useMemo(() => _getArrayProp(val, defaultVal), [val, defaultVal]);
498
+ let $ = (0, react_compiler_runtime.c)(3), t0;
499
+ return $[0] !== defaultVal || $[1] !== val ? (t0 = require_tabList.ft(val, defaultVal), $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2], t0;
531
500
  }
532
501
  function _getElements(element, elementsArg) {
533
502
  let ret = [element];
@@ -549,9 +518,11 @@ function _getElements(element, elementsArg) {
549
518
  * return <button ref={buttonRef} />
550
519
  * ```
551
520
  */
552
- function useClickOutside(listener, elementsArg = EMPTY_ARRAY, boundaryElement) {
553
- let [element, setElement] = useState(null), [elements, setElements] = useState(() => _getElements(element, elementsArg)), elementsRef = useRef(elements);
554
- return useEffect(() => {
521
+ function useClickOutside(listener, t0, boundaryElement) {
522
+ let $ = (0, react_compiler_runtime.c)(12), elementsArg = t0 === void 0 ? require_tabList.wt : t0, [element, setElement] = (0, react.useState)(null), t1;
523
+ $[0] !== element || $[1] !== elementsArg ? (t1 = () => _getElements(element, elementsArg), $[0] = element, $[1] = elementsArg, $[2] = t1) : t1 = $[2];
524
+ let [elements, setElements] = (0, react.useState)(t1), elementsRef = (0, react.useRef)(elements), t2, t3;
525
+ $[3] !== element || $[4] !== elementsArg ? (t2 = () => {
555
526
  let prevElements = elementsRef.current, nextElements = _getElements(element, elementsArg);
556
527
  if (prevElements.length !== nextElements.length) {
557
528
  setElements(nextElements), elementsRef.current = nextElements;
@@ -561,27 +532,29 @@ function useClickOutside(listener, elementsArg = EMPTY_ARRAY, boundaryElement) {
561
532
  setElements(nextElements), elementsRef.current = nextElements;
562
533
  return;
563
534
  }
564
- for (let el of nextElements) if (!prevElements.includes(el)) {
535
+ for (let el_0 of nextElements) if (!prevElements.includes(el_0)) {
565
536
  setElements(nextElements), elementsRef.current = nextElements;
566
537
  return;
567
538
  }
568
- }, [element, elementsArg]), useEffect(() => {
539
+ }, t3 = [element, elementsArg], $[3] = element, $[4] = elementsArg, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), (0, react.useEffect)(t2, t3);
540
+ let t4, t5;
541
+ return $[7] !== boundaryElement || $[8] !== elements || $[9] !== listener ? (t4 = () => {
569
542
  if (!listener) return;
570
543
  let handleWindowMouseDown = (evt) => {
571
544
  let target = evt.target;
572
545
  if (target instanceof Node && !(boundaryElement && !boundaryElement.contains(target))) {
573
- for (let el of elements) if (target === el || el.contains(target)) return;
546
+ for (let el_1 of elements) if (target === el_1 || el_1.contains(target)) return;
574
547
  listener(evt);
575
548
  }
576
549
  };
577
550
  return window.addEventListener("mousedown", handleWindowMouseDown), () => {
578
551
  window.removeEventListener("mousedown", handleWindowMouseDown);
579
552
  };
580
- }, [
553
+ }, t5 = [
581
554
  boundaryElement,
582
555
  listener,
583
556
  elements
584
- ]), setElement;
557
+ ], $[7] = boundaryElement, $[8] = elements, $[9] = listener, $[10] = t4, $[11] = t5) : (t4 = $[10], t5 = $[11]), (0, react.useEffect)(t4, t5), setElement;
585
558
  }
586
559
  /**
587
560
  * Subscribe to the rect of a DOM element.
@@ -590,7 +563,7 @@ function useClickOutside(listener, elementsArg = EMPTY_ARRAY, boundaryElement) {
590
563
  * @deprecated Use `useElementSize` instead
591
564
  */
592
565
  function useElementRect(element) {
593
- return useElementSize(element)?._contentRect || null;
566
+ return require_tabList.N(element)?._contentRect || null;
594
567
  }
595
568
  /**
596
569
  * @beta
@@ -603,27 +576,27 @@ function useElementRect(element) {
603
576
  * ```
604
577
  */
605
578
  function useForwardedRef(ref) {
606
- let innerRef = useRef(null);
607
- return useImperativeHandle(ref, () => innerRef.current), innerRef;
579
+ let $ = (0, react_compiler_runtime.c)(1), innerRef = (0, react.useRef)(null), t0;
580
+ return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => innerRef.current, $[0] = t0) : t0 = $[0], (0, react.useImperativeHandle)(ref, t0), innerRef;
608
581
  }
609
582
  function checkboxBaseStyles() {
610
- return css`position:relative;display:inline-block;`;
583
+ return styled_components.css`position:relative;display:inline-block;`;
611
584
  }
612
585
  function inputElementStyles(props) {
613
- let { color, input, radius } = getTheme_v2(props.theme), { focusRing } = input.checkbox;
614
- return css`position:absolute;top:0;left:0;width:100%;height:100%;outline:none;opacity:0;z-index:1;padding:0;margin:0;& + span{position:relative;display:block;height:${rem(input.checkbox.size)};width:${rem(input.checkbox.size)};box-sizing:border-box;box-shadow:${focusRingBorderStyle({
586
+ let { color, input, radius } = require_theme.X(props.theme), { focusRing } = input.checkbox;
587
+ return styled_components.css`position:absolute;top:0;left:0;width:100%;height:100%;outline:none;opacity:0;z-index:1;padding:0;margin:0;& + span{position:relative;display:block;height:${require_tabList.ht(input.checkbox.size)};width:${require_tabList.ht(input.checkbox.size)};box-sizing:border-box;box-shadow:${require_tabList.et({
615
588
  color: color.input.default.enabled.border,
616
589
  width: input.border.width
617
- })};border-radius:${rem(radius[2])};line-height:1;background-color:${color.input.default.enabled.bg};& > svg{display:block;position:absolute;opacity:0;height:100%;width:100%;& > path{vector-effect:non-scaling-stroke;stroke-width:1.5px !important;}}}&:checked + span{background:${color.input.default.enabled.fg};box-shadow:${focusRingBorderStyle({
590
+ })};border-radius:${require_tabList.ht(radius[2])};line-height:1;background-color:${color.input.default.enabled.bg};& > svg{display:block;position:absolute;opacity:0;height:100%;width:100%;& > path{vector-effect:non-scaling-stroke;stroke-width:1.5px !important;}}}&:checked + span{background:${color.input.default.enabled.fg};box-shadow:${require_tabList.et({
618
591
  color: color.input.default.enabled.fg,
619
592
  width: input.border.width
620
- })};color:${color.input.default.enabled.bg};}&:not(:disabled):focus:focus-visible + span{box-shadow:${focusRingStyle({ focusRing })};}&:not(:disabled):focus:focus-visible&:checked + span{box-shadow:${focusRingStyle({ focusRing: {
593
+ })};color:${color.input.default.enabled.bg};}&:not(:disabled):focus:focus-visible + span{box-shadow:${require_tabList.tt({ focusRing })};}&:not(:disabled):focus:focus-visible&:checked + span{box-shadow:${require_tabList.tt({ focusRing: {
621
594
  width: 1,
622
595
  offset: 1
623
- } })};}&[data-error] + span{background-color:${color.input.invalid.enabled.border};box-shadow:${focusRingBorderStyle({
596
+ } })};}&[data-error] + span{background-color:${color.input.invalid.enabled.border};box-shadow:${require_tabList.et({
624
597
  width: input.border.width,
625
598
  color: color.input.invalid.enabled.muted.bg
626
- })};color:${color.input.default.disabled.fg};}&[data-error]&:checked + span{background-color:${color.input.invalid.enabled.muted.bg};color:${color.input.default.enabled.bg};}&[data-error]&:checked&:not(:disabled):focus:focus-visible + span{box-shadow:${focusRingStyle({
599
+ })};color:${color.input.default.disabled.fg};}&[data-error]&:checked + span{background-color:${color.input.invalid.enabled.muted.bg};color:${color.input.default.enabled.bg};}&[data-error]&:checked&:not(:disabled):focus:focus-visible + span{box-shadow:${require_tabList.tt({
627
600
  border: {
628
601
  width: input.border.width,
629
602
  color: color.input.invalid.readOnly.muted.bg
@@ -632,31 +605,31 @@ function inputElementStyles(props) {
632
605
  width: 1,
633
606
  offset: 1
634
607
  }
635
- })};}&:disabled + span{background-color:${color.input.default.disabled.bg};box-shadow:${focusRingBorderStyle({
608
+ })};}&:disabled + span{background-color:${color.input.default.disabled.bg};box-shadow:${require_tabList.et({
636
609
  width: input.border.width,
637
610
  color: color.input.default.disabled.border
638
- })};color:${color.input.default.disabled.fg};}&:disabled&:checked + span{background-color:${color.input.default.disabled.muted.bg};}&[data-read-only] + span{background-color:${color.input.default.readOnly.bg};box-shadow:${focusRingBorderStyle({
611
+ })};color:${color.input.default.disabled.fg};}&:disabled&:checked + span{background-color:${color.input.default.disabled.muted.bg};}&[data-read-only] + span{background-color:${color.input.default.readOnly.bg};box-shadow:${require_tabList.et({
639
612
  width: input.border.width,
640
613
  color: color.input.default.readOnly.border
641
614
  })};color:${color.input.default.readOnly.fg};}&[data-read-only]&:checked + span{background-color:${color.input.default.readOnly.muted.bg};}&:checked + span > svg:first-child{opacity:1;}&:indeterminate + span > svg:last-child{opacity:1;}`;
642
615
  }
643
- const StyledCheckbox = /* @__PURE__ */ styled.div.withConfig({
616
+ const StyledCheckbox = /* @__PURE__ */ styled_components.styled.div.withConfig({
644
617
  displayName: "StyledCheckbox",
645
- componentId: "sc-eqpl40-0"
646
- })(checkboxBaseStyles), Input$4 = /* @__PURE__ */ styled.input.withConfig({
618
+ componentId: "sc-964wbx-0"
619
+ })(checkboxBaseStyles), Input$4 = /* @__PURE__ */ styled_components.styled.input.withConfig({
647
620
  displayName: "Input",
648
- componentId: "sc-eqpl40-1"
649
- })(inputElementStyles), Checkbox = forwardRef(function(props, forwardedRef) {
650
- let $ = c(25), checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
621
+ componentId: "sc-964wbx-1"
622
+ })(inputElementStyles), Checkbox = (0, react.forwardRef)(function Checkbox(props, forwardedRef) {
623
+ let $ = (0, react_compiler_runtime.c)(25), checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
651
624
  $[0] === props ? (checked = $[1], className = $[2], customValidity = $[3], disabled = $[4], indeterminate = $[5], readOnly = $[6], restProps = $[7], style = $[8]) : ({checked, className, disabled, indeterminate, customValidity, readOnly, style, ...restProps} = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = customValidity, $[4] = disabled, $[5] = indeterminate, $[6] = readOnly, $[7] = restProps, $[8] = style);
652
- let ref = useRef(null), t0;
653
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[9] = t0) : t0 = $[9], useImperativeHandle(forwardedRef, t0);
625
+ let ref = (0, react.useRef)(null), t0;
626
+ $[9] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[9] = t0) : t0 = $[9], (0, react.useImperativeHandle)(forwardedRef, t0);
654
627
  let t1, t2;
655
628
  $[10] === indeterminate ? (t1 = $[11], t2 = $[12]) : (t1 = () => {
656
629
  ref.current && (ref.current.indeterminate = indeterminate || !1);
657
- }, t2 = [indeterminate], $[10] = indeterminate, $[11] = t1, $[12] = t2), useEffect(t1, t2), useCustomValidity(ref, customValidity);
630
+ }, t2 = [indeterminate], $[10] = indeterminate, $[11] = t1, $[12] = t2), (0, react.useEffect)(t1, t2), require_tabList.I(ref, customValidity);
658
631
  let t3 = !disabled && readOnly ? "" : void 0, t4 = customValidity ? "" : void 0, t5 = disabled || readOnly, t6;
659
- $[13] !== checked || $[14] !== readOnly || $[15] !== restProps || $[16] !== t3 || $[17] !== t4 || $[18] !== t5 ? (t6 = /* @__PURE__ */ jsx(Input$4, {
632
+ $[13] !== checked || $[14] !== readOnly || $[15] !== restProps || $[16] !== t3 || $[17] !== t4 || $[18] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input$4, {
660
633
  "data-read-only": t3,
661
634
  "data-error": t4,
662
635
  ...restProps,
@@ -667,18 +640,17 @@ const StyledCheckbox = /* @__PURE__ */ styled.div.withConfig({
667
640
  ref
668
641
  }), $[13] = checked, $[14] = readOnly, $[15] = restProps, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6) : t6 = $[19];
669
642
  let t7;
670
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx(CheckmarkIcon, {}), /* @__PURE__ */ jsx(RemoveIcon, {})] }), $[20] = t7) : t7 = $[20];
643
+ $[20] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_Checkmark.CheckmarkIcon, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_Remove.RemoveIcon, {})] }), $[20] = t7) : t7 = $[20];
671
644
  let t8;
672
- return $[21] !== className || $[22] !== style || $[23] !== t6 ? (t8 = /* @__PURE__ */ jsxs(StyledCheckbox, {
645
+ return $[21] !== className || $[22] !== style || $[23] !== t6 ? (t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledCheckbox, {
673
646
  className,
674
647
  "data-ui": "Checkbox",
675
648
  style,
676
649
  children: [t6, t7]
677
650
  }), $[21] = className, $[22] = style, $[23] = t6, $[24] = t8) : t8 = $[24], t8;
678
651
  });
679
- Checkbox.displayName = "ForwardRef(Checkbox)";
680
652
  function codeSyntaxHighlightingStyle({ theme }) {
681
- let { color: { syntax: color } } = getTheme_v2(theme);
653
+ let { color: { syntax: color } } = require_theme.X(theme);
682
654
  return {
683
655
  "&.atrule": { color: color.atrule },
684
656
  "&.attr-name": { color: color.attrName },
@@ -719,30 +691,30 @@ function codeSyntaxHighlightingStyle({ theme }) {
719
691
  };
720
692
  }
721
693
  function codeBaseStyle() {
722
- return css`color:var(--card-code-fg-color);& code{font-family:inherit;&.refractor .token{${codeSyntaxHighlightingStyle}}}& a{color:inherit;text-decoration:underline;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
694
+ return styled_components.css`color:var(--card-code-fg-color);& code{font-family:inherit;&.refractor .token{${codeSyntaxHighlightingStyle}}}& a{color:inherit;text-decoration:underline;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
723
695
  }
724
- const LazyRefractor = lazy(() => import("./_chunks/refractor.mjs")), StyledCode = /* @__PURE__ */ styled.pre.withConfig({
696
+ const LazyRefractor = (0, react.lazy)(() => Promise.resolve().then(() => require("./_chunks/refractor.cjs"))), StyledCode = /* @__PURE__ */ styled_components.styled.pre.withConfig({
725
697
  displayName: "StyledCode",
726
- componentId: "sc-botxhl-0"
727
- })(codeBaseStyle, responsiveCodeFontStyle), CodeComponent = forwardRef(function(props, ref) {
728
- let $ = c(22), children, language, restProps, t0, weight;
698
+ componentId: "sc-yq3svj-0"
699
+ })(codeBaseStyle, responsiveCodeFontStyle), Code = (0, react.forwardRef)(function Code(props, ref) {
700
+ let $ = (0, react_compiler_runtime.c)(22), children, language, restProps, t0, weight;
729
701
  $[0] === props ? (children = $[1], language = $[2], restProps = $[3], t0 = $[4], weight = $[5]) : ({children, language, size: t0, weight, ...restProps} = props, $[0] = props, $[1] = children, $[2] = language, $[3] = restProps, $[4] = t0, $[5] = weight);
730
702
  let size = t0 === void 0 ? 2 : t0, t1;
731
- $[6] === size ? t1 = $[7] : (t1 = _getArrayProp(size), $[6] = size, $[7] = t1);
703
+ $[6] === size ? t1 = $[7] : (t1 = require_tabList.ft(size), $[6] = size, $[7] = t1);
732
704
  let t2 = weight, t3;
733
- $[8] === children ? t3 = $[9] : (t3 = /* @__PURE__ */ jsx("code", { children }), $[8] = children, $[9] = t3);
705
+ $[8] === children ? t3 = $[9] : (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", { children }), $[8] = children, $[9] = t3);
734
706
  let t4;
735
- $[10] !== children || $[11] !== language ? (t4 = /* @__PURE__ */ jsx(LazyRefractor, {
707
+ $[10] !== children || $[11] !== language ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LazyRefractor, {
736
708
  language,
737
709
  value: children
738
710
  }), $[10] = children, $[11] = language, $[12] = t4) : t4 = $[12];
739
711
  let t5;
740
- $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsx(Suspense, {
712
+ $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
741
713
  fallback: t3,
742
714
  children: t4
743
715
  }), $[13] = t3, $[14] = t4, $[15] = t5) : t5 = $[15];
744
716
  let t6;
745
- return $[16] !== ref || $[17] !== restProps || $[18] !== t1 || $[19] !== t2 || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledCode, {
717
+ return $[16] !== ref || $[17] !== restProps || $[18] !== t1 || $[19] !== t2 || $[20] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledCode, {
746
718
  "data-ui": "Code",
747
719
  ...restProps,
748
720
  $size: t1,
@@ -750,12 +722,7 @@ const LazyRefractor = lazy(() => import("./_chunks/refractor.mjs")), StyledCode
750
722
  ref,
751
723
  children: t5
752
724
  }), $[16] = ref, $[17] = restProps, $[18] = t1, $[19] = t2, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
753
- });
754
- CodeComponent.displayName = "ForwardRef(Code)";
755
- /**
756
- * @public
757
- */
758
- const Code = CodeComponent, BASE_STYLE = {
725
+ }), BASE_STYLE = {
759
726
  width: "100%",
760
727
  margin: "0 auto"
761
728
  };
@@ -763,19 +730,19 @@ function containerBaseStyle() {
763
730
  return BASE_STYLE;
764
731
  }
765
732
  function responsiveContainerWidthStyle(props) {
766
- let { container, media } = getTheme_v2(props.theme);
767
- return _responsive(media, props.$width, (val) => ({ maxWidth: val === "auto" ? "none" : rem(container[val]) }));
733
+ let { container, media } = require_theme.X(props.theme);
734
+ return require_tabList.mt(media, props.$width, (val) => ({ maxWidth: val === "auto" ? "none" : require_tabList.ht(container[val]) }));
768
735
  }
769
- const StyledContainer = /* @__PURE__ */ styled(Box).withConfig({
736
+ const StyledContainer = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
770
737
  displayName: "StyledContainer",
771
- componentId: "sc-un6r8j-0"
772
- })(containerBaseStyle, responsiveContainerWidthStyle), ContainerComponent = forwardRef(function(props, ref) {
773
- let $ = c(11), as, restProps, t0;
738
+ componentId: "sc-kuh7wj-0"
739
+ })(containerBaseStyle, responsiveContainerWidthStyle), Container = (0, react.forwardRef)(function Container(props, ref) {
740
+ let $ = (0, react_compiler_runtime.c)(11), as, restProps, t0;
774
741
  $[0] === props ? (as = $[1], restProps = $[2], t0 = $[3]) : ({as, width: t0, ...restProps} = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0);
775
742
  let width = t0 === void 0 ? 2 : t0, t1;
776
- $[4] === width ? t1 = $[5] : (t1 = _getArrayProp(width), $[4] = width, $[5] = t1);
743
+ $[4] === width ? t1 = $[5] : (t1 = require_tabList.ft(width), $[4] = width, $[5] = t1);
777
744
  let t2;
778
- return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t1 ? (t2 = /* @__PURE__ */ jsx(StyledContainer, {
745
+ return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t1 ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledContainer, {
779
746
  "data-ui": "Container",
780
747
  ...restProps,
781
748
  $width: t1,
@@ -783,36 +750,29 @@ const StyledContainer = /* @__PURE__ */ styled(Box).withConfig({
783
750
  ref
784
751
  }), $[6] = as, $[7] = ref, $[8] = restProps, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
785
752
  });
786
- ContainerComponent.displayName = "ForwardRef(Container)";
787
- /**
788
- * The `Container` component wraps content layout in a defined set of widths.
789
- *
790
- * @public
791
- */
792
- const Container = ContainerComponent;
793
753
  function headingBaseStyle(props) {
794
- let { $accent, $muted } = props, { font } = getTheme_v2(props.theme);
795
- return css`${$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;}& 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.heading.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
754
+ let { $accent, $muted } = props, { font } = require_theme.X(props.theme);
755
+ return styled_components.css`${$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;}& 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.heading.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
796
756
  }
797
- const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
757
+ const StyledHeading = /* @__PURE__ */ styled_components.styled.div.withConfig({
798
758
  displayName: "StyledHeading",
799
- componentId: "sc-7dzjaf-0"
800
- })(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), HeadingComponent = forwardRef(function(props, ref) {
801
- let $ = c(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
759
+ componentId: "sc-48fn8j-0"
760
+ })(headingBaseStyle, require_tabList.lt, responsiveHeadingFont), Heading = (0, react.forwardRef)(function Heading(props, ref) {
761
+ let $ = (0, react_compiler_runtime.c)(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
802
762
  $[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);
803
763
  let accent = t0 !== void 0 && t0, muted = t1 !== void 0 && t1, size = t2 === void 0 ? 2 : t2, children = childrenProp;
804
764
  if (textOverflow === "ellipsis") {
805
765
  let t3;
806
- $[9] === children ? t3 = $[10] : (t3 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t3), children = t3;
766
+ $[9] === children ? t3 = $[10] : (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.G, { children }), $[9] = children, $[10] = t3), children = t3;
807
767
  }
808
768
  let t3;
809
- $[11] === align ? t3 = $[12] : (t3 = _getArrayProp(align), $[11] = align, $[12] = t3);
769
+ $[11] === align ? t3 = $[12] : (t3 = require_tabList.ft(align), $[11] = align, $[12] = t3);
810
770
  let t4;
811
- $[13] === size ? t4 = $[14] : (t4 = _getArrayProp(size), $[13] = size, $[14] = t4);
771
+ $[13] === size ? t4 = $[14] : (t4 = require_tabList.ft(size), $[13] = size, $[14] = t4);
812
772
  let t5;
813
- $[15] === children ? t5 = $[16] : (t5 = /* @__PURE__ */ jsx("span", { children }), $[15] = children, $[16] = t5);
773
+ $[15] === children ? t5 = $[16] : (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children }), $[15] = children, $[16] = t5);
814
774
  let t6;
815
- return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsx(StyledHeading, {
775
+ return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledHeading, {
816
776
  "data-ui": "Heading",
817
777
  ...restProps,
818
778
  $accent: accent,
@@ -824,29 +784,21 @@ const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
824
784
  children: t5
825
785
  }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
826
786
  });
827
- HeadingComponent.displayName = "ForwardRef(Heading)";
828
- /**
829
- * Typographic headings.
830
- *
831
- * @public
832
- */
833
- const Heading = HeadingComponent;
834
787
  /**
835
788
  * @public
836
789
  */
837
790
  function BoundaryElementProvider(props) {
838
- let $ = c(5), { children, element } = props, t0;
791
+ let $ = (0, react_compiler_runtime.c)(5), { children, element } = props, t0;
839
792
  $[0] === element ? t0 = $[1] : (t0 = {
840
793
  version: 0,
841
794
  element
842
795
  }, $[0] = element, $[1] = t0);
843
796
  let value = t0, t1;
844
- return $[2] !== children || $[3] !== value ? (t1 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, {
797
+ return $[2] !== children || $[3] !== value ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.C.Provider, {
845
798
  value,
846
799
  children
847
800
  }), $[2] = children, $[3] = value, $[4] = t1) : t1 = $[4], t1;
848
801
  }
849
- BoundaryElementProvider.displayName = "BoundaryElementProvider";
850
802
  /**
851
803
  * @internal
852
804
  * @deprecated this component will be removed in the next major release
@@ -854,7 +806,6 @@ BoundaryElementProvider.displayName = "BoundaryElementProvider";
854
806
  function ConditionalWrapper({ children, condition, wrapper }) {
855
807
  return condition ? wrapper(children) : children;
856
808
  }
857
- ConditionalWrapper.displayName = "ConditionalWrapper";
858
809
  function findMaxBreakpoints(media, width) {
859
810
  let ret = [];
860
811
  for (let i = 0; i < media.length; i += 1) media[i] > width && ret.push(i);
@@ -869,10 +820,10 @@ function findMinBreakpoints(media, width) {
869
820
  * DO NOT USE IN PRODUCTION.
870
821
  * @beta
871
822
  */
872
- const ElementQuery = forwardRef(function(props, forwardedRef) {
873
- let $ = c(18), theme = useTheme_v2(), _media, children, restProps;
823
+ const ElementQuery = (0, react.forwardRef)(function ElementQuery(props, forwardedRef) {
824
+ let $ = (0, react_compiler_runtime.c)(18), theme = require_tabList.rt(), _media, children, restProps;
874
825
  $[0] === props ? (_media = $[1], children = $[2], restProps = $[3]) : ({children, media: _media, ...restProps} = props, $[0] = props, $[1] = _media, $[2] = children, $[3] = restProps);
875
- let media = _media ?? theme.media, [element, setElement] = useState(null), width = useElementSize(element)?.border.width ?? window.innerWidth, t0;
826
+ let media = _media ?? theme.media, [element, setElement] = (0, react.useState)(null), width = require_tabList.N(element)?.border.width ?? window.innerWidth, t0;
876
827
  if ($[4] !== media || $[5] !== width) {
877
828
  let eq = findMaxBreakpoints(media, width);
878
829
  t0 = eq.length ? eq.join(" ") : void 0, $[4] = media, $[5] = width, $[6] = t0;
@@ -883,9 +834,9 @@ const ElementQuery = forwardRef(function(props, forwardedRef) {
883
834
  t1 = eq_0.length ? eq_0.join(" ") : void 0, $[7] = media, $[8] = width, $[9] = t1;
884
835
  } else t1 = $[9];
885
836
  let min = t1, t2, t3;
886
- $[10] === element ? (t2 = $[11], t3 = $[12]) : (t2 = () => element, t3 = [element], $[10] = element, $[11] = t2, $[12] = t3), useImperativeHandle(forwardedRef, t2, t3);
837
+ $[10] === element ? (t2 = $[11], t3 = $[12]) : (t2 = () => element, t3 = [element], $[10] = element, $[11] = t2, $[12] = t3), (0, react.useImperativeHandle)(forwardedRef, t2, t3);
887
838
  let t4;
888
- return $[13] !== children || $[14] !== max || $[15] !== min || $[16] !== restProps ? (t4 = /* @__PURE__ */ jsx("div", {
839
+ return $[13] !== children || $[14] !== max || $[15] !== min || $[16] !== restProps ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
889
840
  "data-ui": "ElementQuery",
890
841
  ...restProps,
891
842
  "data-eq-max": max,
@@ -894,12 +845,11 @@ const ElementQuery = forwardRef(function(props, forwardedRef) {
894
845
  children
895
846
  }), $[13] = children, $[14] = max, $[15] = min, $[16] = restProps, $[17] = t4) : t4 = $[17], t4;
896
847
  });
897
- ElementQuery.displayName = "ForwardRef(ElementQuery)";
898
848
  /**
899
849
  * DO NOT USE IN PRODUCTION
900
850
  * @beta
901
851
  */
902
- var ErrorBoundary = class extends Component {
852
+ var ErrorBoundary = class extends react.Component {
903
853
  state = { error: null };
904
854
  static getDerivedStateFromError(error) {
905
855
  return { error };
@@ -912,36 +862,34 @@ var ErrorBoundary = class extends Component {
912
862
  }
913
863
  render() {
914
864
  let { error } = this.state;
915
- return error ? /* @__PURE__ */ jsx(Code, { children: typeof error?.message == "string" ? error.message : "Error" }) : this.props.children;
865
+ return error ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Code, { children: typeof error?.message == "string" ? error.message : "Error" }) : this.props.children;
916
866
  }
917
867
  };
918
- const StyledSrOnly = styled.div.withConfig({
868
+ const StyledSrOnly = styled_components.styled.div.withConfig({
919
869
  displayName: "StyledSrOnly",
920
- componentId: "sc-wsuz6k-0"
921
- })`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`, SrOnly = forwardRef(function(props, ref) {
922
- let $ = c(4), { as, children } = props, t0;
923
- return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ jsx(StyledSrOnly, {
870
+ componentId: "sc-ow9exq-0"
871
+ })`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`, SrOnly = (0, react.forwardRef)(function SrOnly(props, ref) {
872
+ let $ = (0, react_compiler_runtime.c)(4), { as, children } = props, t0;
873
+ return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSrOnly, {
924
874
  "aria-hidden": !0,
925
875
  as,
926
876
  "data-ui": "SrOnly",
927
877
  ref,
928
878
  children
929
879
  }), $[0] = as, $[1] = children, $[2] = ref, $[3] = t0) : t0 = $[3], t0;
930
- });
931
- SrOnly.displayName = "ForwardRef(SrOnly)";
932
- const StyledVirtualList = styled.div.withConfig({
880
+ }), StyledVirtualList = styled_components.styled.div.withConfig({
933
881
  displayName: "StyledVirtualList",
934
- componentId: "sc-2o92jb-0"
935
- })`position:relative;`, ItemWrapper = styled.div.withConfig({
882
+ componentId: "sc-ok1q5x-0"
883
+ })`position:relative;`, ItemWrapper = styled_components.styled.div.withConfig({
936
884
  displayName: "ItemWrapper",
937
- componentId: "sc-2o92jb-1"
938
- })`position:absolute;left:0;right:0;`, VirtualList = forwardRef(function(props, forwardedRef) {
939
- let $ = c(44), getItemKey, onChange, renderItem, restProps, t0, t1, t2;
885
+ componentId: "sc-ok1q5x-1"
886
+ })`position:absolute;left:0;right:0;`, VirtualList = (0, react.forwardRef)(function VirtualList(props, forwardedRef) {
887
+ let $ = (0, react_compiler_runtime.c)(44), getItemKey, onChange, renderItem, restProps, t0, t1, t2;
940
888
  $[0] === props ? (getItemKey = $[1], onChange = $[2], renderItem = $[3], restProps = $[4], t0 = $[5], t1 = $[6], t2 = $[7]) : ({as: t0, gap: t1, getItemKey, items: t2, onChange, renderItem, ...restProps} = props, $[0] = props, $[1] = getItemKey, $[2] = onChange, $[3] = renderItem, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = t2);
941
889
  let as = t0 === void 0 ? "div" : t0, gap = t1 === void 0 ? 0 : t1, t3;
942
890
  $[8] === t2 ? t3 = $[9] : (t3 = t2 === void 0 ? [] : t2, $[8] = t2, $[9] = t3);
943
- let items = t3, { space } = useTheme_v2(), ref = useRef(null), wrapperRef = useRef(null), [scrollTop, setScrollTop] = useState(0), [scrollHeight, setScrollHeight] = useState(0), [itemHeight, setItemHeight] = useState(-1), t4;
944
- $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], useImperativeHandle(forwardedRef, t4);
891
+ let items = t3, { space } = require_tabList.rt(), ref = (0, react.useRef)(null), wrapperRef = (0, react.useRef)(null), [scrollTop, setScrollTop] = (0, react.useState)(0), [scrollHeight, setScrollHeight] = (0, react.useState)(0), [itemHeight, setItemHeight] = (0, react.useState)(-1), t4;
892
+ $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], (0, react.useImperativeHandle)(forwardedRef, t4);
945
893
  let t5;
946
894
  $[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
947
895
  if (!wrapperRef.current) return;
@@ -949,7 +897,7 @@ const StyledVirtualList = styled.div.withConfig({
949
897
  firstElement instanceof HTMLElement && setItemHeight(firstElement.offsetHeight);
950
898
  }, $[11] = t5) : t5 = $[11];
951
899
  let t6;
952
- $[12] === renderItem ? t6 = $[13] : (t6 = [renderItem], $[12] = renderItem, $[13] = t6), useEffect(t5, t6);
900
+ $[12] === renderItem ? t6 = $[13] : (t6 = [renderItem], $[12] = renderItem, $[13] = t6), (0, react.useEffect)(t5, t6);
953
901
  let t7, t8;
954
902
  $[14] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => {
955
903
  if (!ref.current) return;
@@ -960,7 +908,7 @@ const StyledVirtualList = styled.div.withConfig({
960
908
  setScrollTop(scrollEl.scrollTop);
961
909
  };
962
910
  scrollEl.addEventListener("scroll", handleScroll, { passive: !0 });
963
- let ro = new _ResizeObserver((entries) => {
911
+ let ro = new require_tabList.F((entries) => {
964
912
  setScrollHeight(entries[0].contentRect.height);
965
913
  });
966
914
  return ro.observe(scrollEl), handleScroll(), () => {
@@ -975,7 +923,7 @@ const StyledVirtualList = styled.div.withConfig({
975
923
  return window.addEventListener("scroll", handleScroll_0, { passive: !0 }), window.addEventListener("resize", handleResize), setScrollHeight(window.innerHeight), handleScroll_0(), () => {
976
924
  window.removeEventListener("scroll", handleScroll_0), window.removeEventListener("resize", handleResize);
977
925
  };
978
- }, t8 = [], $[14] = t7, $[15] = t8) : (t7 = $[14], t8 = $[15]), useEffect(t7, t8);
926
+ }, t8 = [], $[14] = t7, $[15] = t8) : (t7 = $[14], t8 = $[15]), (0, react.useEffect)(t7, t8);
979
927
  let len = items.length, height = itemHeight ? len * (itemHeight + space[gap]) - space[gap] : 0, fromIndex = height ? Math.max(Math.floor(scrollTop / height * len) - 2, 0) : 0, toIndex = height ? Math.ceil((scrollTop + scrollHeight) / height * len) + 1 : 0, t10, t9;
980
928
  $[16] !== fromIndex || $[17] !== gap || $[18] !== itemHeight || $[19] !== onChange || $[20] !== scrollHeight || $[21] !== scrollTop || $[22] !== space || $[23] !== toIndex ? (t9 = () => {
981
929
  onChange && onChange({
@@ -995,7 +943,7 @@ const StyledVirtualList = styled.div.withConfig({
995
943
  scrollTop,
996
944
  space,
997
945
  toIndex
998
- ], $[16] = fromIndex, $[17] = gap, $[18] = itemHeight, $[19] = onChange, $[20] = scrollHeight, $[21] = scrollTop, $[22] = space, $[23] = toIndex, $[24] = t10, $[25] = t9) : (t10 = $[24], t9 = $[25]), useEffect(t9, t10);
946
+ ], $[16] = fromIndex, $[17] = gap, $[18] = itemHeight, $[19] = onChange, $[20] = scrollHeight, $[21] = scrollTop, $[22] = space, $[23] = toIndex, $[24] = t10, $[25] = t9) : (t10 = $[24], t9 = $[25]), (0, react.useEffect)(t9, t10);
999
947
  let t11;
1000
948
  $[26] !== fromIndex || $[27] !== gap || $[28] !== getItemKey || $[29] !== itemHeight || $[30] !== items || $[31] !== renderItem || $[32] !== space || $[33] !== toIndex ? (t11 = {
1001
949
  fromIndex,
@@ -1010,13 +958,13 @@ const StyledVirtualList = styled.div.withConfig({
1010
958
  let children = useChildren(t11), t12;
1011
959
  $[35] === height ? t12 = $[36] : (t12 = { height }, $[35] = height, $[36] = t12);
1012
960
  let t13;
1013
- $[37] !== children || $[38] !== t12 ? (t13 = /* @__PURE__ */ jsx("div", {
961
+ $[37] !== children || $[38] !== t12 ? (t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1014
962
  ref: wrapperRef,
1015
963
  style: t12,
1016
964
  children
1017
965
  }), $[37] = children, $[38] = t12, $[39] = t13) : t13 = $[39];
1018
966
  let t14;
1019
- return $[40] !== as || $[41] !== restProps || $[42] !== t13 ? (t14 = /* @__PURE__ */ jsx(StyledVirtualList, {
967
+ return $[40] !== as || $[41] !== restProps || $[42] !== t13 ? (t14 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledVirtualList, {
1020
968
  as,
1021
969
  "data-ui": "VirtualList",
1022
970
  ...restProps,
@@ -1024,22 +972,21 @@ const StyledVirtualList = styled.div.withConfig({
1024
972
  children: t13
1025
973
  }), $[40] = as, $[41] = restProps, $[42] = t13, $[43] = t14) : t14 = $[43], t14;
1026
974
  });
1027
- VirtualList.displayName = "ForwardRef(VirtualList)";
1028
975
  function useChildren(t0) {
1029
- let $ = c(21), { fromIndex, gap, getItemKey, itemHeight, items, renderItem, space, toIndex } = t0;
976
+ let $ = (0, react_compiler_runtime.c)(21), { fromIndex, gap, getItemKey, itemHeight, items, renderItem, space, toIndex } = t0;
1030
977
  if (!renderItem || items.length === 0) return null;
1031
978
  if (itemHeight === -1) {
1032
979
  let t1;
1033
980
  $[0] !== items[0] || $[1] !== renderItem ? (t1 = renderItem(items[0]), $[0] = items[0], $[1] = renderItem, $[2] = t1) : t1 = $[2];
1034
981
  let t2;
1035
- return $[3] === t1 ? t2 = $[4] : (t2 = [/* @__PURE__ */ jsx(ItemWrapper, { children: t1 }, 0)], $[3] = t1, $[4] = t2), t2;
982
+ return $[3] === t1 ? t2 = $[4] : (t2 = [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ItemWrapper, { children: t1 }, 0)], $[3] = t1, $[4] = t2), t2;
1036
983
  }
1037
984
  let t1;
1038
985
  if ($[5] !== fromIndex || $[6] !== gap || $[7] !== getItemKey || $[8] !== itemHeight || $[9] !== items || $[10] !== renderItem || $[11] !== space || $[12] !== toIndex) {
1039
986
  let t2;
1040
987
  $[14] !== fromIndex || $[15] !== gap || $[16] !== getItemKey || $[17] !== itemHeight || $[18] !== renderItem || $[19] !== space ? (t2 = (item, _itemIndex) => {
1041
988
  let itemIndex = fromIndex + _itemIndex, node = renderItem(item), key = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
1042
- return /* @__PURE__ */ jsx(ItemWrapper, {
989
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ItemWrapper, {
1043
990
  style: { top: itemIndex * (itemHeight + space[gap]) },
1044
991
  children: node
1045
992
  }, key);
@@ -1053,40 +1000,40 @@ function findScrollable(parentNode) {
1053
1000
  return _scrollEl;
1054
1001
  }
1055
1002
  function radioBaseStyle() {
1056
- return css`position:relative;&:not([hidden]){display:inline-block;}&[data-read-only]{outline:1px solid red;}`;
1003
+ return styled_components.css`position:relative;&:not([hidden]){display:inline-block;}&[data-read-only]{outline:1px solid red;}`;
1057
1004
  }
1058
1005
  function inputElementStyle(props) {
1059
- let { color, input } = getTheme_v2(props.theme), dist = (input.radio.size - input.radio.markSize) / 2;
1060
- return css`appearance:none;position:absolute;top:0;left:0;opacity:0;height:100%;width:100%;outline:none;z-index:1;padding:0;margin:0;border-radius:${rem(input.radio.size / 2)};border:none;& + span{display:block;position:relative;height:${rem(input.radio.size)};width:${rem(input.radio.size)};border-radius:${rem(input.radio.size / 2)};background:${color.input.default.enabled.bg};box-shadow:${focusRingBorderStyle({
1006
+ let { color, input } = require_theme.X(props.theme), dist = (input.radio.size - input.radio.markSize) / 2;
1007
+ return styled_components.css`appearance:none;position:absolute;top:0;left:0;opacity:0;height:100%;width:100%;outline:none;z-index:1;padding:0;margin:0;border-radius:${require_tabList.ht(input.radio.size / 2)};border:none;& + span{display:block;position:relative;height:${require_tabList.ht(input.radio.size)};width:${require_tabList.ht(input.radio.size)};border-radius:${require_tabList.ht(input.radio.size / 2)};background:${color.input.default.enabled.bg};box-shadow:${require_tabList.et({
1061
1008
  color: color.input.default.enabled.border,
1062
1009
  width: input.border.width
1063
- })};&::after{content:'';position:absolute;top:${rem(dist)};left:${rem(dist)};height:${rem(input.radio.markSize)};width:${rem(input.radio.markSize)};border-radius:${rem(input.radio.markSize / 2)};background:${color.input.default.enabled.fg};opacity:0;}}&:not(:disabled):focus + span{box-shadow:${focusRingStyle({
1010
+ })};&::after{content:'';position:absolute;top:${require_tabList.ht(dist)};left:${require_tabList.ht(dist)};height:${require_tabList.ht(input.radio.markSize)};width:${require_tabList.ht(input.radio.markSize)};border-radius:${require_tabList.ht(input.radio.markSize / 2)};background:${color.input.default.enabled.fg};opacity:0;}}&:not(:disabled):focus + span{box-shadow:${require_tabList.tt({
1064
1011
  border: {
1065
1012
  width: input.border.width,
1066
1013
  color: color.input.default.enabled.border
1067
1014
  },
1068
1015
  focusRing: input.radio.focusRing
1069
- })};}&:not(:disabled):focus:not(:focus-visible) + span{box-shadow:${focusRingBorderStyle({
1016
+ })};}&:not(:disabled):focus:not(:focus-visible) + span{box-shadow:${require_tabList.et({
1070
1017
  color: color.input.default.enabled.border,
1071
1018
  width: input.border.width
1072
- })};}&:checked + span::after{opacity:1;}&[data-error] + span{background-color:${color.input.invalid.enabled.border};box-shadow:${focusRingBorderStyle({
1019
+ })};}&:checked + span::after{opacity:1;}&[data-error] + span{background-color:${color.input.invalid.enabled.border};box-shadow:${require_tabList.et({
1073
1020
  width: input.border.width,
1074
1021
  color: color.input.invalid.enabled.muted.bg
1075
1022
  })};&::after{background:${color.input.invalid.enabled.muted.bg};}}&[data-read-only] + span{box-shadow:0 0 0 1px ${color.input.default.readOnly.border};background:${color.input.default.readOnly.bg};&::after{background:${color.input.default.readOnly.border};}}&:not([data-read-only]):disabled + span{box-shadow:0 0 0 1px ${color.input.default.disabled.border};background:${color.input.default.disabled.bg};&::after{background:${color.input.default.disabled.border};}}`;
1076
1023
  }
1077
- const StyledRadio = /* @__PURE__ */ styled.div.withConfig({
1024
+ const StyledRadio = /* @__PURE__ */ styled_components.styled.div.withConfig({
1078
1025
  displayName: "StyledRadio",
1079
- componentId: "sc-6sng01-0"
1080
- })(radioBaseStyle), Input$3 = /* @__PURE__ */ styled.input.withConfig({
1026
+ componentId: "sc-zbat2j-0"
1027
+ })(radioBaseStyle), Input$3 = /* @__PURE__ */ styled_components.styled.input.withConfig({
1081
1028
  displayName: "Input",
1082
- componentId: "sc-6sng01-1"
1083
- })(inputElementStyle), Radio = forwardRef(function(props, forwardedRef) {
1084
- let $ = c(19), className, customValidity, disabled, readOnly, restProps, style;
1029
+ componentId: "sc-zbat2j-1"
1030
+ })(inputElementStyle), Radio = (0, react.forwardRef)(function Radio(props, forwardedRef) {
1031
+ let $ = (0, react_compiler_runtime.c)(19), className, customValidity, disabled, readOnly, restProps, style;
1085
1032
  $[0] === props ? (className = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], style = $[6]) : ({className, disabled, style, customValidity, readOnly, ...restProps} = props, $[0] = props, $[1] = className, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = style);
1086
- let ref = useRef(null), t0;
1087
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[7] = t0) : t0 = $[7], useImperativeHandle(forwardedRef, t0), useCustomValidity(ref, customValidity);
1033
+ let ref = (0, react.useRef)(null), t0;
1034
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[7] = t0) : t0 = $[7], (0, react.useImperativeHandle)(forwardedRef, t0), require_tabList.I(ref, customValidity);
1088
1035
  let t1 = !disabled && readOnly ? "" : void 0, t2 = customValidity ? "" : void 0, t3 = disabled || readOnly, t4;
1089
- $[8] !== readOnly || $[9] !== restProps || $[10] !== t1 || $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsx(Input$3, {
1036
+ $[8] !== readOnly || $[9] !== restProps || $[10] !== t1 || $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input$3, {
1090
1037
  "data-read-only": t1,
1091
1038
  "data-error": t2,
1092
1039
  ...restProps,
@@ -1096,96 +1043,95 @@ const StyledRadio = /* @__PURE__ */ styled.div.withConfig({
1096
1043
  type: "radio"
1097
1044
  }), $[8] = readOnly, $[9] = restProps, $[10] = t1, $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13];
1098
1045
  let t5;
1099
- $[14] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsx("span", {}), $[14] = t5) : t5 = $[14];
1046
+ $[14] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {}), $[14] = t5) : t5 = $[14];
1100
1047
  let t6;
1101
- return $[15] !== className || $[16] !== style || $[17] !== t4 ? (t6 = /* @__PURE__ */ jsxs(StyledRadio, {
1048
+ return $[15] !== className || $[16] !== style || $[17] !== t4 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledRadio, {
1102
1049
  className,
1103
1050
  "data-ui": "Radio",
1104
1051
  style,
1105
1052
  children: [t4, t5]
1106
1053
  }), $[15] = className, $[16] = style, $[17] = t4, $[18] = t6) : t6 = $[18], t6;
1107
1054
  });
1108
- Radio.displayName = "ForwardRef(Radio)";
1109
1055
  function rootStyle() {
1110
- return css`position:relative;width:-moz-available;width:-webkit-fill-available;width:stretch;&:not([hidden]){display:inline-block;}`;
1056
+ return styled_components.css`position:relative;width:-moz-available;width:-webkit-fill-available;width:stretch;&:not([hidden]){display:inline-block;}`;
1111
1057
  }
1112
1058
  function inputBaseStyle(props) {
1113
- let { font } = getTheme_v2(props.theme);
1114
- return css`-webkit-font-smoothing:antialiased;appearance:none;border:0;font-family:${font.text.family};color:inherit;width:100%;outline:none;margin:0;&:disabled{opacity:1;}`;
1059
+ let { font } = require_theme.X(props.theme);
1060
+ return styled_components.css`-webkit-font-smoothing:antialiased;appearance:none;border:0;font-family:${font.text.family};color:inherit;width:100%;outline:none;margin:0;&:disabled{opacity:1;}`;
1115
1061
  }
1116
1062
  function inputColorStyle(props) {
1117
- let { color, input } = getTheme_v2(props.theme);
1118
- return css`background-color:${color.input.default.enabled.bg};color:${color.input.default.enabled.fg};box-shadow:${focusRingBorderStyle({
1063
+ let { color, input } = require_theme.X(props.theme);
1064
+ return styled_components.css`background-color:${color.input.default.enabled.bg};color:${color.input.default.enabled.fg};box-shadow:${require_tabList.et({
1119
1065
  color: color.input.default.enabled.border,
1120
1066
  width: input.border.width
1121
- })};@media (hover:hover){&:not(:disabled):hover{background-color:${color.input.default.hovered.bg};color:${color.input.default.hovered.fg};box-shadow:${focusRingBorderStyle({
1067
+ })};@media (hover:hover){&:not(:disabled):hover{background-color:${color.input.default.hovered.bg};color:${color.input.default.hovered.fg};box-shadow:${require_tabList.et({
1122
1068
  color: color.input.default.hovered.border,
1123
1069
  width: input.border.width
1124
- })};}}&:not(:disabled):focus{box-shadow:${focusRingStyle({
1070
+ })};}}&:not(:disabled):focus{box-shadow:${require_tabList.tt({
1125
1071
  border: {
1126
1072
  width: input.border.width,
1127
1073
  color: color.input.default.enabled.border
1128
1074
  },
1129
1075
  focusRing: input.select.focusRing
1130
- })};}&[data-read-only]{background-color:${color.input.default.readOnly.bg};color:${color.input.default.readOnly.fg};box-shadow:${focusRingBorderStyle({
1076
+ })};}&[data-read-only]{background-color:${color.input.default.readOnly.bg};color:${color.input.default.readOnly.fg};box-shadow:${require_tabList.et({
1131
1077
  color: color.input.default.readOnly.border,
1132
1078
  width: input.border.width
1133
- })};}&:not([data-read-only]):disabled{background-color:${color.input.default.disabled.bg};color:${color.input.default.disabled.fg};box-shadow:${focusRingBorderStyle({
1079
+ })};}&:not([data-read-only]):disabled{background-color:${color.input.default.disabled.bg};color:${color.input.default.disabled.fg};box-shadow:${require_tabList.et({
1134
1080
  color: color.input.default.disabled.border,
1135
1081
  width: input.border.width
1136
1082
  })};}`;
1137
1083
  }
1138
1084
  function textSize(size) {
1139
1085
  return {
1140
- fontSize: rem(size.fontSize),
1141
- lineHeight: `${rem(size.lineHeight)}`
1086
+ fontSize: require_tabList.ht(size.fontSize),
1087
+ lineHeight: `${require_tabList.ht(size.lineHeight)}`
1142
1088
  };
1143
1089
  }
1144
1090
  function inputTextSizeStyle(props) {
1145
- let { $fontSize } = props, { font, media } = getTheme_v2(props.theme);
1146
- return _responsive(media, $fontSize, (sizeIndex) => textSize(font.text.sizes[sizeIndex] || font.text.sizes[2]));
1091
+ let { $fontSize } = props, { font, media } = require_theme.X(props.theme);
1092
+ return require_tabList.mt(media, $fontSize, (sizeIndex) => textSize(font.text.sizes[sizeIndex] || font.text.sizes[2]));
1147
1093
  }
1148
1094
  function inputStyle() {
1149
1095
  return [
1150
- responsiveRadiusStyle,
1096
+ require_tabList.K,
1151
1097
  inputBaseStyle,
1152
1098
  inputColorStyle,
1153
1099
  inputTextSizeStyle,
1154
- responsiveInputPaddingIconRightStyle
1100
+ require_tabList.Q
1155
1101
  ];
1156
1102
  }
1157
1103
  function iconBoxStyle(props) {
1158
- let { color } = getTheme_v2(props.theme);
1159
- return css`pointer-events:none;position:absolute;top:0;right:0;--card-fg-color:${color.input.default.enabled.fg};@media (hover:hover){select:not(disabled):not(:read-only):hover + &&{--card-fg-color:${color.input.default.hovered.fg};}}select:disabled + &&{--card-fg-color:${color.input.default.disabled.fg};}select[data-read-only] + &&{--card-fg-color:${color.input.default.readOnly.fg};}`;
1104
+ let { color } = require_theme.X(props.theme);
1105
+ return styled_components.css`pointer-events:none;position:absolute;top:0;right:0;--card-fg-color:${color.input.default.enabled.fg};@media (hover:hover){select:not(disabled):not(:read-only):hover + &&{--card-fg-color:${color.input.default.hovered.fg};}}select:disabled + &&{--card-fg-color:${color.input.default.disabled.fg};}select[data-read-only] + &&{--card-fg-color:${color.input.default.readOnly.fg};}`;
1160
1106
  }
1161
1107
  const selectStyle = {
1162
1108
  root: rootStyle,
1163
1109
  input: inputStyle,
1164
1110
  iconBox: iconBoxStyle
1165
- }, StyledSelect = /* @__PURE__ */ styled.div.withConfig({
1111
+ }, StyledSelect = /* @__PURE__ */ styled_components.styled.div.withConfig({
1166
1112
  displayName: "StyledSelect",
1167
- componentId: "sc-gi1uze-0"
1168
- })(selectStyle.root), Input$2 = /* @__PURE__ */ styled.select.withConfig({
1113
+ componentId: "sc-ecog6m-0"
1114
+ })(selectStyle.root), Input$2 = /* @__PURE__ */ styled_components.styled.select.withConfig({
1169
1115
  displayName: "Input",
1170
- componentId: "sc-gi1uze-1"
1171
- })(selectStyle.input), IconBox = /* @__PURE__ */ styled(Box).withConfig({
1116
+ componentId: "sc-ecog6m-1"
1117
+ })(selectStyle.input), IconBox = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
1172
1118
  displayName: "IconBox",
1173
- componentId: "sc-gi1uze-2"
1174
- })(selectStyle.iconBox), Select = forwardRef(function(props, forwardedRef) {
1175
- let $ = c(38), children, customValidity, disabled, gap, readOnly, restProps, t0, t1, t2, t3;
1119
+ componentId: "sc-ecog6m-2"
1120
+ })(selectStyle.iconBox), Select = (0, react.forwardRef)(function Select(props, forwardedRef) {
1121
+ let $ = (0, react_compiler_runtime.c)(38), children, customValidity, disabled, gap, readOnly, restProps, t0, t1, t2, t3;
1176
1122
  $[0] === props ? (children = $[1], customValidity = $[2], disabled = $[3], gap = $[4], readOnly = $[5], restProps = $[6], t0 = $[7], t1 = $[8], t2 = $[9], t3 = $[10]) : ({children, customValidity, disabled, fontSize: t0, gap, padding: t1, radius: t2, readOnly, space: t3, ...restProps} = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = gap, $[5] = readOnly, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2, $[10] = t3);
1177
- let fontSize = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2, spacing = gap === void 0 ? t3 === void 0 ? 3 : t3 : gap, ref = useRef(null), t4;
1178
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[11] = t4) : t4 = $[11], useImperativeHandle(forwardedRef, t4), useCustomValidity(ref, customValidity);
1123
+ let fontSize = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2, spacing = gap === void 0 ? t3 === void 0 ? 3 : t3 : gap, ref = (0, react.useRef)(null), t4;
1124
+ $[11] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[11] = t4) : t4 = $[11], (0, react.useImperativeHandle)(forwardedRef, t4), require_tabList.I(ref, customValidity);
1179
1125
  let t5 = !disabled && readOnly ? "" : void 0, t6;
1180
- $[12] === fontSize ? t6 = $[13] : (t6 = _getArrayProp(fontSize), $[12] = fontSize, $[13] = t6);
1126
+ $[12] === fontSize ? t6 = $[13] : (t6 = require_tabList.ft(fontSize), $[12] = fontSize, $[13] = t6);
1181
1127
  let t7;
1182
- $[14] === padding ? t7 = $[15] : (t7 = _getArrayProp(padding), $[14] = padding, $[15] = t7);
1128
+ $[14] === padding ? t7 = $[15] : (t7 = require_tabList.ft(padding), $[14] = padding, $[15] = t7);
1183
1129
  let t8;
1184
- $[16] === radius ? t8 = $[17] : (t8 = _getArrayProp(radius), $[16] = radius, $[17] = t8);
1130
+ $[16] === radius ? t8 = $[17] : (t8 = require_tabList.ft(radius), $[16] = radius, $[17] = t8);
1185
1131
  let t9;
1186
- $[18] === spacing ? t9 = $[19] : (t9 = _getArrayProp(spacing), $[18] = spacing, $[19] = t9);
1132
+ $[18] === spacing ? t9 = $[19] : (t9 = require_tabList.ft(spacing), $[18] = spacing, $[19] = t9);
1187
1133
  let t10 = disabled || readOnly, t11;
1188
- $[20] !== children || $[21] !== restProps || $[22] !== t10 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7 || $[26] !== t8 || $[27] !== t9 ? (t11 = /* @__PURE__ */ jsx(Input$2, {
1134
+ $[20] !== children || $[21] !== restProps || $[22] !== t10 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7 || $[26] !== t8 || $[27] !== t9 ? (t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input$2, {
1189
1135
  "data-read-only": t5,
1190
1136
  "data-ui": "Select",
1191
1137
  ...restProps,
@@ -1198,68 +1144,67 @@ const selectStyle = {
1198
1144
  children
1199
1145
  }), $[20] = children, $[21] = restProps, $[22] = t10, $[23] = t5, $[24] = t6, $[25] = t7, $[26] = t8, $[27] = t9, $[28] = t11) : t11 = $[28];
1200
1146
  let t12;
1201
- $[29] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[29] = t12) : t12 = $[29];
1147
+ $[29] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_ChevronDown.ChevronDownIcon, {}), $[29] = t12) : t12 = $[29];
1202
1148
  let t13;
1203
- $[30] === fontSize ? t13 = $[31] : (t13 = /* @__PURE__ */ jsx(Text, {
1149
+ $[30] === fontSize ? t13 = $[31] : (t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
1204
1150
  size: fontSize,
1205
1151
  children: t12
1206
1152
  }), $[30] = fontSize, $[31] = t13);
1207
1153
  let t14;
1208
- $[32] !== padding || $[33] !== t13 ? (t14 = /* @__PURE__ */ jsx(IconBox, {
1154
+ $[32] !== padding || $[33] !== t13 ? (t14 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBox, {
1209
1155
  padding,
1210
1156
  children: t13
1211
1157
  }), $[32] = padding, $[33] = t13, $[34] = t14) : t14 = $[34];
1212
1158
  let t15;
1213
- return $[35] !== t11 || $[36] !== t14 ? (t15 = /* @__PURE__ */ jsxs(StyledSelect, {
1159
+ return $[35] !== t11 || $[36] !== t14 ? (t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledSelect, {
1214
1160
  "data-ui": "Select",
1215
1161
  children: [t11, t14]
1216
1162
  }), $[35] = t11, $[36] = t14, $[37] = t15) : t15 = $[37], t15;
1217
1163
  });
1218
- Select.displayName = "ForwardRef(Select)";
1219
1164
  function switchBaseStyles() {
1220
- return css`position:relative;&:not([hidden]){display:inline-block;}`;
1165
+ return styled_components.css`position:relative;&:not([hidden]){display:inline-block;}`;
1221
1166
  }
1222
1167
  function switchInputStyles() {
1223
- return css`position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;height:100%;width:100%;outline:none;padding:0;margin:0;z-index:1;`;
1168
+ return styled_components.css`position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;height:100%;width:100%;outline:none;padding:0;margin:0;z-index:1;`;
1224
1169
  }
1225
1170
  function switchRepresentationStyles(props) {
1226
- let { color, input } = getTheme_v2(props.theme);
1227
- return css`--switch-bg-color:${color.input.default.enabled.border};--switch-fg-color:${color.input.default.enabled.bg};--switch-box-shadow:none;&:not([hidden]){display:block;}position:relative;width:${rem(input.switch.width)};height:${rem(input.switch.height)};border-radius:${rem(input.switch.height / 2)};pointer-events:none;&:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;box-shadow:var(--switch-box-shadow);border-radius:inherit;}input:focus + &&{--switch-box-shadow:${focusRingStyle({ focusRing: input.switch.focusRing })};}input:focus:not(:focus-visible) + &&{--switch-box-shadow:none;}input:checked + &&{--switch-bg-color:${color.input.default.enabled.fg};--switch-fg-color:${color.input.default.enabled.bg};}@media (hover:hover){input:not(:disabled):hover + &&{--switch-bg-color:${color.input.default.hovered.border};--switch-fg-color:${color.input.default.hovered.bg};}input:not(:disabled):checked:hover + &&{--switch-bg-color:${color.input.default.enabled.fg};--switch-fg-color:${color.input.default.enabled.bg};}}input:not([data-read-only]):disabled + &&{--switch-bg-color:${color.input.default.disabled.border};--switch-fg-color:${color.input.default.disabled.bg};}input[data-read-only]:disabled + &&{--switch-bg-color:${color.input.default.readOnly.border};--switch-fg-color:${color.input.default.readOnly.bg};}input:checked[data-read-only]:disabled + &&{--switch-bg-color:${color.input.default.readOnly.fg};--switch-fg-color:${color.input.default.readOnly.bg};}`;
1171
+ let { color, input } = require_theme.X(props.theme);
1172
+ return styled_components.css`--switch-bg-color:${color.input.default.enabled.border};--switch-fg-color:${color.input.default.enabled.bg};--switch-box-shadow:none;&:not([hidden]){display:block;}position:relative;width:${require_tabList.ht(input.switch.width)};height:${require_tabList.ht(input.switch.height)};border-radius:${require_tabList.ht(input.switch.height / 2)};pointer-events:none;&:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;box-shadow:var(--switch-box-shadow);border-radius:inherit;}input:focus + &&{--switch-box-shadow:${require_tabList.tt({ focusRing: input.switch.focusRing })};}input:focus:not(:focus-visible) + &&{--switch-box-shadow:none;}input:checked + &&{--switch-bg-color:${color.input.default.enabled.fg};--switch-fg-color:${color.input.default.enabled.bg};}@media (hover:hover){input:not(:disabled):hover + &&{--switch-bg-color:${color.input.default.hovered.border};--switch-fg-color:${color.input.default.hovered.bg};}input:not(:disabled):checked:hover + &&{--switch-bg-color:${color.input.default.enabled.fg};--switch-fg-color:${color.input.default.enabled.bg};}}input:not([data-read-only]):disabled + &&{--switch-bg-color:${color.input.default.disabled.border};--switch-fg-color:${color.input.default.disabled.bg};}input[data-read-only]:disabled + &&{--switch-bg-color:${color.input.default.readOnly.border};--switch-fg-color:${color.input.default.readOnly.bg};}input:checked[data-read-only]:disabled + &&{--switch-bg-color:${color.input.default.readOnly.fg};--switch-fg-color:${color.input.default.readOnly.bg};}`;
1228
1173
  }
1229
1174
  function switchTrackStyles(props) {
1230
- let { input } = getTheme_v2(props.theme);
1231
- return css`&:not([hidden]){display:block;}background-color:var(--switch-bg-color);position:absolute;left:0;top:0;width:${rem(input.switch.width)};height:${rem(input.switch.height)};border-radius:${rem(input.switch.height / 2)};`;
1175
+ let { input } = require_theme.X(props.theme);
1176
+ return styled_components.css`&:not([hidden]){display:block;}background-color:var(--switch-bg-color);position:absolute;left:0;top:0;width:${require_tabList.ht(input.switch.width)};height:${require_tabList.ht(input.switch.height)};border-radius:${require_tabList.ht(input.switch.height / 2)};`;
1232
1177
  }
1233
1178
  function switchThumbStyles(props) {
1234
- let { $indeterminate } = props, { input } = getTheme_v2(props.theme), trackWidth = input.switch.width, trackHeight = input.switch.height, trackPadding = input.switch.padding, size = trackHeight - input.switch.padding * 2, checkedOffset = trackWidth - trackPadding * 2 - size, indeterminateOffset = trackWidth / 2 - size / 2 - trackPadding, checked = $indeterminate !== !0 && props.$checked === !0;
1235
- return css`&:not([hidden]){display:block;}position:absolute;left:${rem(trackPadding)};top:${rem(trackPadding)};height:${rem(size)};width:${rem(size)};border-radius:${rem(size / 2)};transition-property:transform;transition-duration:${input.switch.transitionDurationMs}ms;transition-timing-function:${input.switch.transitionTimingFunction};background:var(--switch-fg-color);transform:translate3d(0,0,0);box-shadow:0px 1px 0px 0px rgba(0,0,0,0.05);${checked && css`transform:translate3d(${checkedOffset}px,0,0);`} ${$indeterminate && css`transform:translate3d(${indeterminateOffset}px,0,0);`}`;
1179
+ let { $indeterminate } = props, { input } = require_theme.X(props.theme), trackWidth = input.switch.width, trackHeight = input.switch.height, trackPadding = input.switch.padding, size = trackHeight - input.switch.padding * 2, checkedOffset = trackWidth - trackPadding * 2 - size, indeterminateOffset = trackWidth / 2 - size / 2 - trackPadding, checked = $indeterminate !== !0 && props.$checked === !0;
1180
+ return styled_components.css`&:not([hidden]){display:block;}position:absolute;left:${require_tabList.ht(trackPadding)};top:${require_tabList.ht(trackPadding)};height:${require_tabList.ht(size)};width:${require_tabList.ht(size)};border-radius:${require_tabList.ht(size / 2)};transition-property:transform;transition-duration:${input.switch.transitionDurationMs}ms;transition-timing-function:${input.switch.transitionTimingFunction};background:var(--switch-fg-color);transform:translate3d(0,0,0);box-shadow:0px 1px 0px 0px rgba(0,0,0,0.05);${checked && styled_components.css`transform:translate3d(${checkedOffset}px,0,0);`} ${$indeterminate && styled_components.css`transform:translate3d(${indeterminateOffset}px,0,0);`}`;
1236
1181
  }
1237
- const StyledSwitch = /* @__PURE__ */ styled.span.withConfig({
1182
+ const StyledSwitch = /* @__PURE__ */ styled_components.styled.span.withConfig({
1238
1183
  displayName: "StyledSwitch",
1239
- componentId: "sc-2t29u1-0"
1240
- })(switchBaseStyles), Input$1 = /* @__PURE__ */ styled.input.withConfig({
1184
+ componentId: "sc-aod7y9-0"
1185
+ })(switchBaseStyles), Input$1 = /* @__PURE__ */ styled_components.styled.input.withConfig({
1241
1186
  displayName: "Input",
1242
- componentId: "sc-2t29u1-1"
1243
- })(switchInputStyles), Representation = /* @__PURE__ */ styled.span.withConfig({
1187
+ componentId: "sc-aod7y9-1"
1188
+ })(switchInputStyles), Representation = /* @__PURE__ */ styled_components.styled.span.withConfig({
1244
1189
  displayName: "Representation",
1245
- componentId: "sc-2t29u1-2"
1246
- })(switchRepresentationStyles), Track = /* @__PURE__ */ styled.span.withConfig({
1190
+ componentId: "sc-aod7y9-2"
1191
+ })(switchRepresentationStyles), Track = /* @__PURE__ */ styled_components.styled.span.withConfig({
1247
1192
  displayName: "Track",
1248
- componentId: "sc-2t29u1-3"
1249
- })(switchTrackStyles), Thumb = /* @__PURE__ */ styled.span.withConfig({
1193
+ componentId: "sc-aod7y9-3"
1194
+ })(switchTrackStyles), Thumb = /* @__PURE__ */ styled_components.styled.span.withConfig({
1250
1195
  displayName: "Thumb",
1251
- componentId: "sc-2t29u1-4"
1252
- })(switchThumbStyles), Switch = forwardRef(function(props, forwardedRef) {
1253
- let $ = c(26), checked, className, disabled, indeterminate, readOnly, restProps, style;
1196
+ componentId: "sc-aod7y9-4"
1197
+ })(switchThumbStyles), Switch = (0, react.forwardRef)(function Switch(props, forwardedRef) {
1198
+ let $ = (0, react_compiler_runtime.c)(26), checked, className, disabled, indeterminate, readOnly, restProps, style;
1254
1199
  $[0] === props ? (checked = $[1], className = $[2], disabled = $[3], indeterminate = $[4], readOnly = $[5], restProps = $[6], style = $[7]) : ({checked, className, disabled, indeterminate, readOnly, style, ...restProps} = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = disabled, $[4] = indeterminate, $[5] = readOnly, $[6] = restProps, $[7] = style);
1255
- let ref = useRef(null), t0;
1256
- $[8] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[8] = t0) : t0 = $[8], useImperativeHandle(forwardedRef, t0);
1200
+ let ref = (0, react.useRef)(null), t0;
1201
+ $[8] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[8] = t0) : t0 = $[8], (0, react.useImperativeHandle)(forwardedRef, t0);
1257
1202
  let t1, t2;
1258
1203
  $[9] === indeterminate ? (t1 = $[10], t2 = $[11]) : (t1 = () => {
1259
1204
  ref.current && (ref.current.indeterminate = indeterminate || !1);
1260
- }, t2 = [indeterminate], $[9] = indeterminate, $[10] = t1, $[11] = t2), useEffect(t1, t2);
1205
+ }, t2 = [indeterminate], $[9] = indeterminate, $[10] = t1, $[11] = t2), (0, react.useEffect)(t1, t2);
1261
1206
  let t3 = !disabled && readOnly ? "" : void 0, t4 = indeterminate !== !0 && checked, t5 = disabled || readOnly, t6;
1262
- $[12] !== restProps || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Input$1, {
1207
+ $[12] !== restProps || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input$1, {
1263
1208
  "data-read-only": t3,
1264
1209
  ...restProps,
1265
1210
  checked: t4,
@@ -1268,50 +1213,48 @@ const StyledSwitch = /* @__PURE__ */ styled.span.withConfig({
1268
1213
  ref
1269
1214
  }), $[12] = restProps, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16];
1270
1215
  let t7;
1271
- $[17] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsx(Track, {}), $[17] = t7) : t7 = $[17];
1216
+ $[17] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Track, {}), $[17] = t7) : t7 = $[17];
1272
1217
  let t8;
1273
- $[18] !== checked || $[19] !== indeterminate ? (t8 = /* @__PURE__ */ jsxs(Representation, {
1218
+ $[18] !== checked || $[19] !== indeterminate ? (t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Representation, {
1274
1219
  "aria-hidden": !0,
1275
1220
  "data-name": "representation",
1276
- children: [t7, /* @__PURE__ */ jsx(Thumb, {
1221
+ children: [t7, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Thumb, {
1277
1222
  $checked: checked,
1278
1223
  $indeterminate: indeterminate
1279
1224
  })]
1280
1225
  }), $[18] = checked, $[19] = indeterminate, $[20] = t8) : t8 = $[20];
1281
1226
  let t9;
1282
- return $[21] !== className || $[22] !== style || $[23] !== t6 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxs(StyledSwitch, {
1227
+ return $[21] !== className || $[22] !== style || $[23] !== t6 || $[24] !== t8 ? (t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledSwitch, {
1283
1228
  className,
1284
1229
  "data-ui": "Switch",
1285
1230
  style,
1286
1231
  children: [t6, t8]
1287
1232
  }), $[21] = className, $[22] = style, $[23] = t6, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
1288
- });
1289
- Switch.displayName = "ForwardRef(Switch)";
1290
- const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
1233
+ }), StyledTextArea = /* @__PURE__ */ styled_components.styled.span.withConfig({
1291
1234
  displayName: "StyledTextArea",
1292
- componentId: "sc-5c9kno-0"
1293
- })(textInputRootStyle), InputRoot = styled.span.withConfig({
1235
+ componentId: "sc-vgfdnn-0"
1236
+ })(require_tabList.Z), InputRoot = styled_components.styled.span.withConfig({
1294
1237
  displayName: "InputRoot",
1295
- componentId: "sc-5c9kno-1"
1296
- })`flex:1;min-width:0;display:block;position:relative;`, Input = /* @__PURE__ */ styled.textarea.withConfig({
1238
+ componentId: "sc-vgfdnn-1"
1239
+ })`flex:1;min-width:0;display:block;position:relative;`, Input = /* @__PURE__ */ styled_components.styled.textarea.withConfig({
1297
1240
  displayName: "Input",
1298
- componentId: "sc-5c9kno-2"
1299
- })(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styled.div.withConfig({
1241
+ componentId: "sc-vgfdnn-2"
1242
+ })(require_tabList.$, require_tabList.J, require_tabList.Y), Presentation = /* @__PURE__ */ styled_components.styled.div.withConfig({
1300
1243
  displayName: "Presentation",
1301
- componentId: "sc-5c9kno-3"
1302
- })(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function(props, forwardedRef) {
1303
- let $ = c(35), __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
1244
+ componentId: "sc-vgfdnn-3"
1245
+ })(require_tabList.K, require_tabList.X), TextArea = (0, react.forwardRef)(function TextArea(props, forwardedRef) {
1246
+ let $ = (0, react_compiler_runtime.c)(35), __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
1304
1247
  $[0] === props ? (__unstable_disableFocusRing = $[1], customValidity = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8], weight = $[9]) : ({border: t0, customValidity, disabled: t1, fontSize: t2, padding: t3, radius: t4, weight, __unstable_disableFocusRing, ...restProps} = props, $[0] = props, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4, $[9] = weight);
1305
- let border = t0 === void 0 || t0, disabled = t1 !== void 0 && t1, fontSize = t2 === void 0 ? 2 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, ref = useRef(null), rootTheme = useRootTheme(), t5;
1306
- $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
1248
+ let border = t0 === void 0 || t0, disabled = t1 !== void 0 && t1, fontSize = t2 === void 0 ? 2 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, ref = (0, react.useRef)(null), rootTheme = require_tabList.at(), t5;
1249
+ $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], (0, react.useImperativeHandle)(forwardedRef, t5), require_tabList.I(ref, customValidity);
1307
1250
  let t6 = rootTheme.scheme, t7 = rootTheme.tone, t8;
1308
- $[11] === fontSize ? t8 = $[12] : (t8 = _getArrayProp(fontSize), $[11] = fontSize, $[12] = t8);
1251
+ $[11] === fontSize ? t8 = $[12] : (t8 = require_tabList.ft(fontSize), $[11] = fontSize, $[12] = t8);
1309
1252
  let t9;
1310
- $[13] === padding ? t9 = $[14] : (t9 = _getArrayProp(padding), $[13] = padding, $[14] = t9);
1253
+ $[13] === padding ? t9 = $[14] : (t9 = require_tabList.ft(padding), $[13] = padding, $[14] = t9);
1311
1254
  let t10 = rootTheme.scheme, t11;
1312
- $[15] === Symbol.for("react.memo_cache_sentinel") ? (t11 = _getArrayProp(0), $[15] = t11) : t11 = $[15];
1255
+ $[15] === Symbol.for("react.memo_cache_sentinel") ? (t11 = require_tabList.ft(0), $[15] = t11) : t11 = $[15];
1313
1256
  let t12;
1314
- $[16] !== disabled || $[17] !== restProps || $[18] !== rootTheme.scheme || $[19] !== rootTheme.tone || $[20] !== t8 || $[21] !== t9 || $[22] !== weight ? (t12 = /* @__PURE__ */ jsx(Input, {
1257
+ $[16] !== disabled || $[17] !== restProps || $[18] !== rootTheme.scheme || $[19] !== rootTheme.tone || $[20] !== t8 || $[21] !== t9 || $[22] !== weight ? (t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input, {
1315
1258
  "data-as": "textarea",
1316
1259
  "data-scheme": t6,
1317
1260
  "data-tone": t7,
@@ -1326,9 +1269,9 @@ const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
1326
1269
  ref
1327
1270
  }), $[16] = disabled, $[17] = restProps, $[18] = rootTheme.scheme, $[19] = rootTheme.tone, $[20] = t8, $[21] = t9, $[22] = weight, $[23] = t12) : t12 = $[23];
1328
1271
  let t13;
1329
- $[24] === radius ? t13 = $[25] : (t13 = _getArrayProp(radius), $[24] = radius, $[25] = t13);
1272
+ $[24] === radius ? t13 = $[25] : (t13 = require_tabList.ft(radius), $[24] = radius, $[25] = t13);
1330
1273
  let t14 = border ? "" : void 0, t15;
1331
- $[26] !== __unstable_disableFocusRing || $[27] !== rootTheme.scheme || $[28] !== rootTheme.tone || $[29] !== t13 || $[30] !== t14 ? (t15 = /* @__PURE__ */ jsx(Presentation, {
1274
+ $[26] !== __unstable_disableFocusRing || $[27] !== rootTheme.scheme || $[28] !== rootTheme.tone || $[29] !== t13 || $[30] !== t14 ? (t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Presentation, {
1332
1275
  $radius: t13,
1333
1276
  $unstableDisableFocusRing: __unstable_disableFocusRing,
1334
1277
  $scheme: rootTheme.scheme,
@@ -1338,19 +1281,18 @@ const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
1338
1281
  "data-tone": rootTheme.tone
1339
1282
  }), $[26] = __unstable_disableFocusRing, $[27] = rootTheme.scheme, $[28] = rootTheme.tone, $[29] = t13, $[30] = t14, $[31] = t15) : t15 = $[31];
1340
1283
  let t16;
1341
- return $[32] !== t12 || $[33] !== t15 ? (t16 = /* @__PURE__ */ jsx(StyledTextArea, {
1284
+ return $[32] !== t12 || $[33] !== t15 ? (t16 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTextArea, {
1342
1285
  "data-ui": "TextArea",
1343
- children: /* @__PURE__ */ jsxs(InputRoot, { children: [t12, t15] })
1286
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(InputRoot, { children: [t12, t15] })
1344
1287
  }), $[32] = t12, $[33] = t15, $[34] = t16) : t16 = $[34], t16;
1345
1288
  });
1346
- TextArea.displayName = "ForwardRef(TextArea)";
1347
1289
  /**
1348
1290
  * @public
1349
1291
  * Provides context for a group of tooltip elements that should share a delay
1350
1292
  * which temporarily becomes 1 ms after the first floating element of the group opens.
1351
1293
  */
1352
1294
  function TooltipDelayGroupProvider(props) {
1353
- let $ = c(9), { children, delay } = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0, t0 = isGroupActive ? 1 : openDelay, t1;
1295
+ let $ = (0, react_compiler_runtime.c)(9), { children, delay } = props, [isGroupActive, setIsGroupActive] = require_tabList.d(!1), [openTooltipId, setOpenTooltipId] = require_tabList.d(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0, t0 = isGroupActive ? 1 : openDelay, t1;
1354
1296
  $[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t0 ? (t1 = {
1355
1297
  setIsGroupActive,
1356
1298
  openTooltipId,
@@ -1359,27 +1301,26 @@ function TooltipDelayGroupProvider(props) {
1359
1301
  closeDelay
1360
1302
  }, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t0, $[5] = t1) : t1 = $[5];
1361
1303
  let value = t1, t2;
1362
- return $[6] !== children || $[7] !== value ? (t2 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, {
1304
+ return $[6] !== children || $[7] !== value ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.u.Provider, {
1363
1305
  value,
1364
1306
  children
1365
1307
  }), $[6] = children, $[7] = value, $[8] = t2) : t2 = $[8], t2;
1366
1308
  }
1367
- TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
1368
1309
  /**
1369
1310
  * @internal
1370
1311
  */
1371
- const StyledAutocomplete = styled.div.withConfig({
1312
+ const StyledAutocomplete = styled_components.styled.div.withConfig({
1372
1313
  displayName: "StyledAutocomplete",
1373
1314
  componentId: "sc-hv7uk8-0"
1374
- })`line-height:0;`, ListBox = styled(Box).withConfig({
1315
+ })`line-height:0;`, ListBox = (0, styled_components.styled)(require_tabList.W).withConfig({
1375
1316
  displayName: "ListBox",
1376
1317
  componentId: "sc-hv7uk8-1"
1377
- })`& > ul{list-style:none;padding:0;margin:0;}`, rotate = keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, AnimatedSpinnerIcon = styled(SpinnerIcon).withConfig({
1318
+ })`& > ul{list-style:none;padding:0;margin:0;}`, rotate = styled_components.keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, AnimatedSpinnerIcon = (0, styled_components.styled)(_sanity_icons_Spinner.SpinnerIcon).withConfig({
1378
1319
  displayName: "AnimatedSpinnerIcon",
1379
1320
  componentId: "sc-hv7uk8-2"
1380
1321
  })`animation:${rotate} 500ms linear infinite;`;
1381
1322
  function AutocompleteOption(props) {
1382
- let $ = c(11), { children, id, onSelect, selected, value } = props, t0;
1323
+ let $ = (0, react_compiler_runtime.c)(11), { children, id, onSelect, selected, value } = props, t0;
1383
1324
  $[0] !== onSelect || $[1] !== value ? (t0 = () => {
1384
1325
  setTimeout(() => {
1385
1326
  onSelect(value);
@@ -1387,10 +1328,10 @@ function AutocompleteOption(props) {
1387
1328
  }, $[0] = onSelect, $[1] = value, $[2] = t0) : t0 = $[2];
1388
1329
  let handleClick = t0, t1;
1389
1330
  $[3] === handleClick ? t1 = $[4] : (t1 = (event) => {
1390
- event.key === "Enter" && !_isEnterToClickElement(event.currentTarget) && handleClick();
1331
+ event.key === "Enter" && !require_tabList.gt(event.currentTarget) && handleClick();
1391
1332
  }, $[3] = handleClick, $[4] = t1);
1392
1333
  let handleKeyDown = t1, t2;
1393
- return $[5] !== children || $[6] !== handleClick || $[7] !== handleKeyDown || $[8] !== id || $[9] !== selected ? (t2 = /* @__PURE__ */ jsx("li", {
1334
+ return $[5] !== children || $[6] !== handleClick || $[7] !== handleKeyDown || $[8] !== id || $[9] !== selected ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
1394
1335
  "aria-selected": selected,
1395
1336
  "data-ui": "AutocompleteOption",
1396
1337
  id,
@@ -1457,10 +1398,10 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1457
1398
  "Meta",
1458
1399
  "Tab",
1459
1400
  "CapsLock"
1460
- ], AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS = ["bottom-start", "top-start"], DEFAULT_RENDER_VALUE = (value, option) => option ? option.value : value, DEFAULT_FILTER_OPTION = (query, option) => option.value.toLowerCase().indexOf(query.toLowerCase()) > -1, InnerAutocomplete = forwardRef(function(props, forwardedRef) {
1461
- let $ = c(181), customValidity, disabled, filterOptionProp, icon, id, loading, onBlur, onChange, onFocus, onQueryChange, onSelect, openButton, openOnFocus, optionsProp, prefix, readOnly, relatedElements, renderOptionProp, renderPopover, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, valueProp;
1401
+ ], AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS = ["bottom-start", "top-start"], DEFAULT_RENDER_VALUE = (value, option) => option ? option.value : value, DEFAULT_FILTER_OPTION = (query, option) => option.value.toLowerCase().indexOf(query.toLowerCase()) > -1, InnerAutocomplete = (0, react.forwardRef)(function Autocomplete(props, forwardedRef) {
1402
+ let $ = (0, react_compiler_runtime.c)(181), customValidity, disabled, filterOptionProp, icon, id, loading, onBlur, onChange, onFocus, onQueryChange, onSelect, openButton, openOnFocus, optionsProp, prefix, readOnly, relatedElements, renderOptionProp, renderPopover, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, valueProp;
1462
1403
  $[0] === props ? (customValidity = $[1], disabled = $[2], filterOptionProp = $[3], icon = $[4], id = $[5], loading = $[6], onBlur = $[7], onChange = $[8], onFocus = $[9], onQueryChange = $[10], onSelect = $[11], openButton = $[12], openOnFocus = $[13], optionsProp = $[14], prefix = $[15], readOnly = $[16], relatedElements = $[17], renderOptionProp = $[18], renderPopover = $[19], restProps = $[20], suffix = $[21], t0 = $[22], t1 = $[23], t2 = $[24], t3 = $[25], t4 = $[26], t5 = $[27], t6 = $[28], valueProp = $[29]) : ({border: t0, customValidity, disabled, filterOption: filterOptionProp, fontSize: t1, icon, id, listBox: t2, loading, onBlur, onChange, onFocus, onQueryChange, onSelect, openButton, openOnFocus, options: optionsProp, padding: t3, popover: t4, prefix, radius: t5, readOnly, relatedElements, renderOption: renderOptionProp, renderPopover, renderValue: t6, suffix, value: valueProp, ...restProps} = props, $[0] = props, $[1] = customValidity, $[2] = disabled, $[3] = filterOptionProp, $[4] = icon, $[5] = id, $[6] = loading, $[7] = onBlur, $[8] = onChange, $[9] = onFocus, $[10] = onQueryChange, $[11] = onSelect, $[12] = openButton, $[13] = openOnFocus, $[14] = optionsProp, $[15] = prefix, $[16] = readOnly, $[17] = relatedElements, $[18] = renderOptionProp, $[19] = renderPopover, $[20] = restProps, $[21] = suffix, $[22] = t0, $[23] = t1, $[24] = t2, $[25] = t3, $[26] = t4, $[27] = t5, $[28] = t6, $[29] = valueProp);
1463
- let border = t0 === void 0 || t0, fontSize = t1 === void 0 ? 2 : t1, listBox = t2 === void 0 ? EMPTY_RECORD : t2, paddingProp = t3 === void 0 ? 3 : t3, popover = t4 === void 0 ? EMPTY_RECORD : t4, radius = t5 === void 0 ? 2 : t5, renderValue = t6 === void 0 ? DEFAULT_RENDER_VALUE : t6, t7 = valueProp || null, t8 = valueProp || null, t9;
1404
+ let border = t0 === void 0 || t0, fontSize = t1 === void 0 ? 2 : t1, listBox = t2 === void 0 ? require_tabList.Tt : t2, paddingProp = t3 === void 0 ? 3 : t3, popover = t4 === void 0 ? require_tabList.Tt : t4, radius = t5 === void 0 ? 2 : t5, renderValue = t6 === void 0 ? DEFAULT_RENDER_VALUE : t6, t7 = valueProp || null, t8 = valueProp || null, t9;
1464
1405
  $[30] !== t7 || $[31] !== t8 ? (t9 = {
1465
1406
  activeValue: t7,
1466
1407
  focused: !1,
@@ -1468,30 +1409,30 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1468
1409
  query: null,
1469
1410
  value: t8
1470
1411
  }, $[30] = t7, $[31] = t8, $[32] = t9) : t9 = $[32];
1471
- let [state, dispatch] = useReducer(autocompleteReducer, t9), { activeValue, focused, listFocused, query, value } = state, t10;
1412
+ let [state, dispatch] = (0, react.useReducer)(autocompleteReducer, t9), { activeValue, focused, listFocused, query, value } = state, t10;
1472
1413
  $[33] !== fontSize || $[34] !== paddingProp ? (t10 = (t11) => {
1473
1414
  let { value: value_0 } = t11;
1474
- return /* @__PURE__ */ jsx(Card, {
1415
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.R, {
1475
1416
  "data-as": "button",
1476
1417
  padding: paddingProp,
1477
1418
  radius: 2,
1478
1419
  tone: "inherit",
1479
- children: /* @__PURE__ */ jsx(Text, {
1420
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
1480
1421
  size: fontSize,
1481
1422
  textOverflow: "ellipsis",
1482
1423
  children: value_0
1483
1424
  })
1484
1425
  });
1485
1426
  }, $[33] = fontSize, $[34] = paddingProp, $[35] = t10) : t10 = $[35];
1486
- let renderOption = typeof renderOptionProp == "function" ? renderOptionProp : t10, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, rootElementRef = useRef(null), resultsPopoverElementRef = useRef(null), inputElementRef = useRef(null), listBoxElementRef = useRef(null), [inputElement, _setInputElement] = useState(null), t11;
1427
+ let renderOption = typeof renderOptionProp == "function" ? renderOptionProp : t10, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, rootElementRef = (0, react.useRef)(null), resultsPopoverElementRef = (0, react.useRef)(null), inputElementRef = (0, react.useRef)(null), listBoxElementRef = (0, react.useRef)(null), [inputElement, _setInputElement] = (0, react.useState)(null), t11;
1487
1428
  $[36] === Symbol.for("react.memo_cache_sentinel") ? (t11 = (node) => {
1488
- startTransition(() => _setInputElement(node));
1429
+ (0, react.startTransition)(() => _setInputElement(node));
1489
1430
  }, $[36] = t11) : t11 = $[36];
1490
- let setInputElement = t11, listFocusedRef = useRef(!1), valueRef = useRef(value), valuePropRef = useRef(valueProp), popoverMouseWithinRef = useRef(!1), t12, t13;
1491
- $[37] === inputElement ? (t12 = $[38], t13 = $[39]) : (t12 = () => inputElement, t13 = [inputElement], $[37] = inputElement, $[38] = t12, $[39] = t13), useImperativeHandle(inputElementRef, t12, t13);
1431
+ let setInputElement = t11, listFocusedRef = (0, react.useRef)(!1), valueRef = (0, react.useRef)(value), valuePropRef = (0, react.useRef)(valueProp), popoverMouseWithinRef = (0, react.useRef)(!1), t12, t13;
1432
+ $[37] === inputElement ? (t12 = $[38], t13 = $[39]) : (t12 = () => inputElement, t13 = [inputElement], $[37] = inputElement, $[38] = t12, $[39] = t13), (0, react.useImperativeHandle)(inputElementRef, t12, t13);
1492
1433
  let t14, t15;
1493
- $[40] === inputElement ? (t14 = $[41], t15 = $[42]) : (t14 = () => inputElement, t15 = [inputElement], $[40] = inputElement, $[41] = t14, $[42] = t15), useImperativeHandle(forwardedRef, t14, t15);
1494
- let listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : EMPTY_ARRAY, padding = _getArrayProp(paddingProp), t16;
1434
+ $[40] === inputElement ? (t14 = $[41], t15 = $[42]) : (t14 = () => inputElement, t15 = [inputElement], $[40] = inputElement, $[41] = t14, $[42] = t15), (0, react.useImperativeHandle)(forwardedRef, t14, t15);
1435
+ let listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : require_tabList.wt, padding = require_tabList.ft(paddingProp), t16;
1495
1436
  $[43] !== options || $[44] !== value ? (t16 = value === null ? void 0 : options.find((o) => o.value === value), $[43] = options, $[44] = value, $[45] = t16) : t16 = $[45];
1496
1437
  let currentOption = t16, t17;
1497
1438
  if ($[46] !== filterOption || $[47] !== options || $[48] !== query) {
@@ -1607,14 +1548,14 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1607
1548
  type: "value/change",
1608
1549
  value: valueProp || null
1609
1550
  }));
1610
- }, t30 = [valueProp], $[84] = valueProp, $[85] = t29, $[86] = t30), useEffect(t29, t30);
1551
+ }, t30 = [valueProp], $[84] = valueProp, $[85] = t29, $[86] = t30), (0, react.useEffect)(t29, t30);
1611
1552
  let t31, t32;
1612
1553
  $[87] === focused ? (t31 = $[88], t32 = $[89]) : (t31 = () => {
1613
1554
  !focused && valueRef.current && dispatch({
1614
1555
  type: "root/setActiveValue",
1615
1556
  value: valueRef.current
1616
1557
  });
1617
- }, t32 = [focused], $[87] = focused, $[88] = t31, $[89] = t32), useEffect(t31, t32);
1558
+ }, t32 = [focused], $[87] = focused, $[88] = t31, $[89] = t32), (0, react.useEffect)(t31, t32);
1618
1559
  let t33, t34;
1619
1560
  $[90] !== activeValue || $[91] !== filteredOptions ? (t33 = () => {
1620
1561
  let listElement = listBoxElementRef.current;
@@ -1627,7 +1568,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1627
1568
  focusFirstDescendant(activeItemElement);
1628
1569
  }
1629
1570
  }
1630
- }, t34 = [activeValue, filteredOptions], $[90] = activeValue, $[91] = filteredOptions, $[92] = t33, $[93] = t34) : (t33 = $[92], t34 = $[93]), useEffect(t33, t34);
1571
+ }, t34 = [activeValue, filteredOptions], $[90] = activeValue, $[91] = filteredOptions, $[92] = t33, $[93] = t34) : (t33 = $[92], t34 = $[93]), (0, react.useEffect)(t33, t34);
1631
1572
  let t35;
1632
1573
  bb0: {
1633
1574
  if (!loading && !disabled && value) {
@@ -1640,19 +1581,19 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1640
1581
  }
1641
1582
  t35 = void 0;
1642
1583
  }
1643
- let clearButton = t35, openButtonBoxPadding = padding.map(_temp$2), openButtonPadding = padding.map(_temp2), openButtonProps = typeof openButton == "object" ? openButton : EMPTY_RECORD, t36;
1584
+ let clearButton = t35, openButtonBoxPadding = padding.map(_temp$3), openButtonPadding = padding.map(_temp2$1), openButtonProps = typeof openButton == "object" ? openButton : require_tabList.Tt, t36;
1644
1585
  $[95] !== dispatchOpen || $[96] !== openButtonProps ? (t36 = (event_4) => {
1645
1586
  dispatchOpen(), openButtonProps.onClick && openButtonProps.onClick(event_4), _raf(() => inputElementRef.current?.focus());
1646
1587
  }, $[95] = dispatchOpen, $[96] = openButtonProps, $[97] = t36) : t36 = $[97];
1647
1588
  let handleOpenClick = t36, t37;
1648
- $[98] !== disabled || $[99] !== expanded || $[100] !== fontSize || $[101] !== handleOpenClick || $[102] !== openButton || $[103] !== openButtonBoxPadding || $[104] !== openButtonPadding || $[105] !== openButtonProps || $[106] !== readOnly ? (t37 = !disabled && !readOnly && openButton ? /* @__PURE__ */ jsx(Box, {
1589
+ $[98] !== disabled || $[99] !== expanded || $[100] !== fontSize || $[101] !== handleOpenClick || $[102] !== openButton || $[103] !== openButtonBoxPadding || $[104] !== openButtonPadding || $[105] !== openButtonProps || $[106] !== readOnly ? (t37 = !disabled && !readOnly && openButton ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
1649
1590
  "aria-hidden": expanded,
1650
1591
  padding: openButtonBoxPadding,
1651
- children: /* @__PURE__ */ jsx(Button, {
1592
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.z, {
1652
1593
  "aria-label": "Open",
1653
1594
  disabled: expanded,
1654
1595
  fontSize,
1655
- icon: ChevronDownIcon,
1596
+ icon: _sanity_icons_ChevronDown.ChevronDownIcon,
1656
1597
  mode: "bleed",
1657
1598
  padding: openButtonPadding,
1658
1599
  ...openButtonProps,
@@ -1687,12 +1628,12 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1687
1628
  let t42;
1688
1629
  $[123] !== activeValue || $[124] !== currentOption || $[125] !== handleOptionSelect || $[126] !== id || $[127] !== listFocused || $[128] !== loading || $[129] !== renderOption ? (t42 = (option_0) => {
1689
1630
  let active = activeValue === null ? currentOption === option_0 : option_0.value === activeValue;
1690
- return /* @__PURE__ */ jsx(AutocompleteOption, {
1631
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AutocompleteOption, {
1691
1632
  id: `${id}-option-${option_0.value}`,
1692
1633
  onSelect: handleOptionSelect,
1693
1634
  selected: active,
1694
1635
  value: option_0.value,
1695
- children: cloneElement(renderOption(option_0), {
1636
+ children: (0, react.cloneElement)(renderOption(option_0), {
1696
1637
  disabled: loading,
1697
1638
  selected: active,
1698
1639
  tabIndex: listFocused && active ? 0 : -1
@@ -1701,7 +1642,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1701
1642
  }, $[123] = activeValue, $[124] = currentOption, $[125] = handleOptionSelect, $[126] = id, $[127] = listFocused, $[128] = loading, $[129] = renderOption, $[130] = t42) : t42 = $[130], t41 = filteredOptions.map(t42), $[114] = activeValue, $[115] = currentOption, $[116] = filteredOptions, $[117] = handleOptionSelect, $[118] = id, $[119] = listFocused, $[120] = loading, $[121] = renderOption, $[122] = t41;
1702
1643
  } else t41 = $[122];
1703
1644
  let t42;
1704
- $[131] !== listBoxId || $[132] !== t41 ? (t42 = /* @__PURE__ */ jsx(Stack, {
1645
+ $[131] !== listBoxId || $[132] !== t41 ? (t42 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.p, {
1705
1646
  as: "ul",
1706
1647
  "aria-multiselectable": !1,
1707
1648
  "data-ui": "AutoComplete__resultsList",
@@ -1712,7 +1653,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1712
1653
  children: t41
1713
1654
  }), $[131] = listBoxId, $[132] = t41, $[133] = t42) : t42 = $[133];
1714
1655
  let t43;
1715
- $[134] !== handleListBoxKeyDown || $[135] !== listBox || $[136] !== t42 ? (t43 = /* @__PURE__ */ jsx(ListBox, {
1656
+ $[134] !== handleListBoxKeyDown || $[135] !== listBox || $[136] !== t42 ? (t43 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListBox, {
1716
1657
  "data-ui": "AutoComplete__results",
1717
1658
  onKeyDown: handleListBoxKeyDown,
1718
1659
  padding: 1,
@@ -1725,7 +1666,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1725
1666
  bb3: {
1726
1667
  if (renderPopover) {
1727
1668
  let t42 = !expanded, t43;
1728
- $[138] !== content || $[139] !== handlePopoverMouseEnter || $[140] !== handlePopoverMouseLeave || $[141] !== inputElement || $[142] !== renderPopover || $[143] !== t42 ? (t43 = /* @__PURE__ */ jsx(RenderPopover, {
1669
+ $[138] !== content || $[139] !== handlePopoverMouseEnter || $[140] !== handlePopoverMouseLeave || $[141] !== inputElement || $[142] !== renderPopover || $[143] !== t42 ? (t43 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RenderPopover, {
1729
1670
  content,
1730
1671
  hidden: t42,
1731
1672
  inputElement,
@@ -1741,7 +1682,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1741
1682
  break bb3;
1742
1683
  }
1743
1684
  let t42;
1744
- $[145] !== content || $[146] !== expanded || $[147] !== handlePopoverMouseEnter || $[148] !== handlePopoverMouseLeave || $[149] !== inputElement || $[150] !== popover || $[151] !== radius ? (t42 = /* @__PURE__ */ jsx(Popover, {
1685
+ $[145] !== content || $[146] !== expanded || $[147] !== handlePopoverMouseEnter || $[148] !== handlePopoverMouseLeave || $[149] !== inputElement || $[150] !== popover || $[151] !== radius ? (t42 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.m, {
1745
1686
  arrow: !1,
1746
1687
  constrainSize: !0,
1747
1688
  content,
@@ -1760,7 +1701,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1760
1701
  }), $[145] = content, $[146] = expanded, $[147] = handlePopoverMouseEnter, $[148] = handlePopoverMouseLeave, $[149] = inputElement, $[150] = popover, $[151] = radius, $[152] = t42) : t42 = $[152], t41 = t42;
1761
1702
  }
1762
1703
  let results = t41, t42 = loading && AnimatedSpinnerIcon, t43 = suffix || openButtonNode, t44;
1763
- $[153] !== activeItemId || $[154] !== border || $[155] !== clearButton || $[156] !== customValidity || $[157] !== disabled || $[158] !== expanded || $[159] !== fontSize || $[160] !== handleClearButtonClick || $[161] !== handleInputChange || $[162] !== handleInputFocus || $[163] !== icon || $[164] !== id || $[165] !== inputValue || $[166] !== listBoxId || $[167] !== padding || $[168] !== prefix || $[169] !== radius || $[170] !== readOnly || $[171] !== restProps || $[172] !== t42 || $[173] !== t43 ? (t44 = /* @__PURE__ */ jsx(TextInput, {
1704
+ $[153] !== activeItemId || $[154] !== border || $[155] !== clearButton || $[156] !== customValidity || $[157] !== disabled || $[158] !== expanded || $[159] !== fontSize || $[160] !== handleClearButtonClick || $[161] !== handleInputChange || $[162] !== handleInputFocus || $[163] !== icon || $[164] !== id || $[165] !== inputValue || $[166] !== listBoxId || $[167] !== padding || $[168] !== prefix || $[169] !== radius || $[170] !== readOnly || $[171] !== restProps || $[172] !== t42 || $[173] !== t43 ? (t44 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.f, {
1764
1705
  ...restProps,
1765
1706
  "aria-activedescendant": activeItemId,
1766
1707
  "aria-autocomplete": "list",
@@ -1792,7 +1733,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1792
1733
  value: inputValue
1793
1734
  }), $[153] = activeItemId, $[154] = border, $[155] = clearButton, $[156] = customValidity, $[157] = disabled, $[158] = expanded, $[159] = fontSize, $[160] = handleClearButtonClick, $[161] = handleInputChange, $[162] = handleInputFocus, $[163] = icon, $[164] = id, $[165] = inputValue, $[166] = listBoxId, $[167] = padding, $[168] = prefix, $[169] = radius, $[170] = readOnly, $[171] = restProps, $[172] = t42, $[173] = t43, $[174] = t44) : t44 = $[174];
1794
1735
  let t45;
1795
- return $[175] !== handleRootBlur || $[176] !== handleRootFocus || $[177] !== handleRootKeyDown || $[178] !== results || $[179] !== t44 ? (t45 = /* @__PURE__ */ jsxs(StyledAutocomplete, {
1736
+ return $[175] !== handleRootBlur || $[176] !== handleRootFocus || $[177] !== handleRootKeyDown || $[178] !== results || $[179] !== t44 ? (t45 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledAutocomplete, {
1796
1737
  "data-ui": "Autocomplete",
1797
1738
  onBlur: handleRootBlur,
1798
1739
  onFocus: handleRootFocus,
@@ -1810,7 +1751,6 @@ function RenderPopover({ renderPopover, content, hidden, inputElement, onMouseEn
1810
1751
  onMouseLeave
1811
1752
  }, resultsPopoverElementRef);
1812
1753
  }
1813
- InnerAutocomplete.displayName = "ForwardRef(Autocomplete)";
1814
1754
  /**
1815
1755
  * The Autocomplete component is typically used for search components.
1816
1756
  * It consists of a text input for writing a query, and properties for rendering suggestions.
@@ -1818,31 +1758,31 @@ InnerAutocomplete.displayName = "ForwardRef(Autocomplete)";
1818
1758
  * @public
1819
1759
  */
1820
1760
  const Autocomplete = InnerAutocomplete;
1821
- function _temp$2(v_0) {
1761
+ function _temp$3(v_0) {
1822
1762
  return v_0 === 0 ? 0 : v_0 === 1 || v_0 === 2 ? 1 : v_0 - 2;
1823
1763
  }
1824
- function _temp2(v_1) {
1764
+ function _temp2$1(v_1) {
1825
1765
  return Math.max(v_1 - 1, 0);
1826
1766
  }
1827
- const StyledBreadcrumbs = styled.ol.withConfig({
1767
+ const StyledBreadcrumbs = styled_components.styled.ol.withConfig({
1828
1768
  displayName: "StyledBreadcrumbs",
1829
- componentId: "sc-b0flr4-0"
1830
- })`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`, ExpandButton = styled(Button).withConfig({
1769
+ componentId: "sc-1nquj0-0"
1770
+ })`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`, ExpandButton = (0, styled_components.styled)(require_tabList.z).withConfig({
1831
1771
  displayName: "ExpandButton",
1832
- componentId: "sc-b0flr4-1"
1833
- })`appearance:none;margin:-4px;`, Breadcrumbs = forwardRef(function(props, ref) {
1834
- let $ = c(30), children, gap, maxLength, restProps, separator, t0;
1772
+ componentId: "sc-1nquj0-1"
1773
+ })`appearance:none;margin:-4px;`, Breadcrumbs = (0, react.forwardRef)(function Breadcrumbs(props, ref) {
1774
+ let $ = (0, react_compiler_runtime.c)(30), children, gap, maxLength, restProps, separator, t0;
1835
1775
  $[0] === props ? (children = $[1], gap = $[2], maxLength = $[3], restProps = $[4], separator = $[5], t0 = $[6]) : ({children, gap, maxLength, separator, space: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = gap, $[3] = maxLength, $[4] = restProps, $[5] = separator, $[6] = t0);
1836
1776
  let t1 = gap === void 0 ? t0 === void 0 ? 2 : t0 : gap, t2;
1837
- $[7] === t1 ? t2 = $[8] : (t2 = _getArrayProp(t1), $[7] = t1, $[8] = t2);
1838
- let space = t2, [open, setOpen] = useState(!1), expandElementRef = useRef(null), popoverElementRef = useRef(null), t3;
1777
+ $[7] === t1 ? t2 = $[8] : (t2 = require_tabList.ft(t1), $[7] = t1, $[8] = t2);
1778
+ let space = t2, [open, setOpen] = (0, react.useState)(!1), expandElementRef = (0, react.useRef)(null), popoverElementRef = (0, react.useRef)(null), t3;
1839
1779
  $[9] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => setOpen(!1), $[9] = t3) : t3 = $[9];
1840
1780
  let collapse = t3, t4;
1841
1781
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => setOpen(!0), $[10] = t4) : t4 = $[10];
1842
1782
  let expand = t4, t5;
1843
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => [expandElementRef.current, popoverElementRef.current], $[11] = t5) : t5 = $[11], useClickOutsideEvent(collapse, t5);
1783
+ $[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => [expandElementRef.current, popoverElementRef.current], $[11] = t5) : t5 = $[11], require_tabList.L(collapse, t5);
1844
1784
  let t6;
1845
- $[12] === children ? t6 = $[13] : (t6 = Children.toArray(children).filter(isValidElement), $[12] = children, $[13] = t6);
1785
+ $[12] === children ? t6 = $[13] : (t6 = react.Children.toArray(children).filter(react.isValidElement), $[12] = children, $[13] = t6);
1846
1786
  let rawItems = t6, t7;
1847
1787
  $[14] !== maxLength || $[15] !== open || $[16] !== rawItems || $[17] !== space ? (t7 = {
1848
1788
  collapse,
@@ -1857,37 +1797,36 @@ const StyledBreadcrumbs = styled.ol.withConfig({
1857
1797
  let items = useItems(t7), t8;
1858
1798
  if ($[19] !== items || $[20] !== separator || $[21] !== space) {
1859
1799
  let t9;
1860
- $[23] !== separator || $[24] !== space ? (t9 = (item, itemIndex) => /* @__PURE__ */ jsxs(Fragment, { children: [itemIndex > 0 && /* @__PURE__ */ jsx(Box, {
1800
+ $[23] !== separator || $[24] !== space ? (t9 = (item, itemIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react.Fragment, { children: [itemIndex > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
1861
1801
  "aria-hidden": !0,
1862
1802
  as: "li",
1863
1803
  paddingX: space,
1864
- children: separator || /* @__PURE__ */ jsx(Text, {
1804
+ children: separator || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
1865
1805
  muted: !0,
1866
1806
  children: "/"
1867
1807
  })
1868
- }), /* @__PURE__ */ jsx(Box, {
1808
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
1869
1809
  as: "li",
1870
1810
  children: item
1871
1811
  })] }, itemIndex), $[23] = separator, $[24] = space, $[25] = t9) : t9 = $[25], t8 = items.map(t9), $[19] = items, $[20] = separator, $[21] = space, $[22] = t8;
1872
1812
  } else t8 = $[22];
1873
1813
  let t9;
1874
- return $[26] !== ref || $[27] !== restProps || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsx(StyledBreadcrumbs, {
1814
+ return $[26] !== ref || $[27] !== restProps || $[28] !== t8 ? (t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledBreadcrumbs, {
1875
1815
  "data-ui": "Breadcrumbs",
1876
1816
  ...restProps,
1877
1817
  ref,
1878
1818
  children: t8
1879
1819
  }), $[26] = ref, $[27] = restProps, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
1880
1820
  });
1881
- Breadcrumbs.displayName = "ForwardRef(Breadcrumbs)";
1882
1821
  function useItems(t0) {
1883
- let $ = c(28), { collapse, expand, expandElementRef, maxLength, open, popoverElementRef, rawItems, space } = t0, len = rawItems.length;
1822
+ let $ = (0, react_compiler_runtime.c)(28), { collapse, expand, expandElementRef, maxLength, open, popoverElementRef, rawItems, space } = t0, len = rawItems.length;
1884
1823
  if (maxLength && len > maxLength) {
1885
1824
  let beforeLength = Math.ceil(maxLength / 2), afterLength = Math.floor(maxLength / 2), t1;
1886
1825
  if ($[0] !== afterLength || $[1] !== beforeLength || $[2] !== collapse || $[3] !== expand || $[4] !== expandElementRef || $[5] !== len || $[6] !== open || $[7] !== popoverElementRef || $[8] !== rawItems || $[9] !== space) {
1887
1826
  let t2 = rawItems.slice(0, beforeLength - 1), t3;
1888
1827
  $[11] !== afterLength || $[12] !== beforeLength || $[13] !== len || $[14] !== rawItems ? (t3 = rawItems.slice(beforeLength - 1, len - afterLength), $[11] = afterLength, $[12] = beforeLength, $[13] = len, $[14] = rawItems, $[15] = t3) : t3 = $[15];
1889
1828
  let t4;
1890
- $[16] !== space || $[17] !== t3 ? (t4 = /* @__PURE__ */ jsx(Stack, {
1829
+ $[16] !== space || $[17] !== t3 ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.p, {
1891
1830
  as: "ol",
1892
1831
  overflow: "auto",
1893
1832
  padding: space,
@@ -1895,7 +1834,7 @@ function useItems(t0) {
1895
1834
  children: t3
1896
1835
  }), $[16] = space, $[17] = t3, $[18] = t4) : t4 = $[18];
1897
1836
  let t5 = open ? collapse : expand, t6;
1898
- $[19] !== expandElementRef || $[20] !== open || $[21] !== t5 ? (t6 = /* @__PURE__ */ jsx(ExpandButton, {
1837
+ $[19] !== expandElementRef || $[20] !== open || $[21] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExpandButton, {
1899
1838
  fontSize: 1,
1900
1839
  mode: "bleed",
1901
1840
  onClick: t5,
@@ -1905,7 +1844,7 @@ function useItems(t0) {
1905
1844
  text: "…"
1906
1845
  }), $[19] = expandElementRef, $[20] = open, $[21] = t5, $[22] = t6) : t6 = $[22];
1907
1846
  let t7;
1908
- $[23] !== open || $[24] !== popoverElementRef || $[25] !== t4 || $[26] !== t6 ? (t7 = /* @__PURE__ */ jsx(Popover, {
1847
+ $[23] !== open || $[24] !== popoverElementRef || $[25] !== t4 || $[26] !== t6 ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.m, {
1909
1848
  constrainSize: !0,
1910
1849
  content: t4,
1911
1850
  open,
@@ -1924,7 +1863,7 @@ function useItems(t0) {
1924
1863
  return rawItems;
1925
1864
  }
1926
1865
  function dialogStyle({ theme }) {
1927
- let { color } = getTheme_v2(theme);
1866
+ let { color } = require_theme.X(theme);
1928
1867
  return {
1929
1868
  "&:not([hidden])": { display: "flex" },
1930
1869
  top: 0,
@@ -1938,94 +1877,94 @@ function dialogStyle({ theme }) {
1938
1877
  };
1939
1878
  }
1940
1879
  function responsiveDialogPositionStyle(props) {
1941
- let { media } = getTheme_v2(props.theme);
1942
- return _responsive(media, props.$position, (position) => ({ "&&": { position } }));
1880
+ let { media } = require_theme.X(props.theme);
1881
+ return require_tabList.mt(media, props.$position, (position) => ({ "&&": { position } }));
1943
1882
  }
1944
1883
  function animationDialogStyle(props) {
1945
- return props.$animate ? css`@keyframes zoomIn{from{opacity:0;transform:scale(0.95);}to{opacity:1;transform:scale(1);}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}animation:fadeIn 200ms ease-out;& > [data-ui='DialogCard']{animation:zoomIn 200ms ease-out;}` : css``;
1884
+ return props.$animate ? styled_components.css`@keyframes zoomIn{from{opacity:0;transform:scale(0.95);}to{opacity:1;transform:scale(1);}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}animation:fadeIn 200ms ease-out;& > [data-ui='DialogCard']{animation:zoomIn 200ms ease-out;}` : styled_components.css``;
1946
1885
  }
1947
1886
  /**
1948
1887
  * @internal
1949
1888
  */
1950
- const DialogContext = createGlobalScopedContext("@sanity/ui/context/dialog", { version: 0 });
1889
+ const DialogContext = require_tabList.st("@sanity/ui/context/dialog", { version: 0 });
1951
1890
  /**
1952
1891
  * This API might change. DO NOT USE IN PRODUCTION.
1953
1892
  * @beta
1954
1893
  */
1955
1894
  function useDialog() {
1956
- return useContext(DialogContext);
1895
+ return (0, react.useContext)(DialogContext);
1957
1896
  }
1958
1897
  function isTargetWithinScope(boundaryElement, portalElement, target) {
1959
- return !boundaryElement || !portalElement || containsOrEqualsElement(boundaryElement, target) || containsOrEqualsElement(portalElement, target);
1898
+ return !boundaryElement || !portalElement || require_tabList._t(boundaryElement, target) || require_tabList._t(portalElement, target);
1960
1899
  }
1961
- const StyledDialog = /* @__PURE__ */ styled(Layer).withConfig({
1900
+ const StyledDialog = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.v).withConfig({
1962
1901
  displayName: "StyledDialog",
1963
- componentId: "sc-r9i1m3-0"
1964
- })(responsivePaddingStyle, dialogStyle, responsiveDialogPositionStyle, animationDialogStyle), DialogContainer = styled(Container).withConfig({
1902
+ componentId: "sc-2s0up-0"
1903
+ })(require_tabList.q, dialogStyle, responsiveDialogPositionStyle, animationDialogStyle), DialogContainer = (0, styled_components.styled)(Container).withConfig({
1965
1904
  displayName: "DialogContainer",
1966
- componentId: "sc-r9i1m3-1"
1967
- })`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`, DialogCardRoot = styled(Card).withConfig({
1905
+ componentId: "sc-2s0up-1"
1906
+ })`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`, DialogCardRoot = (0, styled_components.styled)(require_tabList.R).withConfig({
1968
1907
  displayName: "DialogCardRoot",
1969
- componentId: "sc-r9i1m3-2"
1970
- })`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`, DialogLayout = styled(Flex).withConfig({
1908
+ componentId: "sc-2s0up-2"
1909
+ })`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`, DialogLayout = (0, styled_components.styled)(require_tabList.H).withConfig({
1971
1910
  displayName: "DialogLayout",
1972
- componentId: "sc-r9i1m3-3"
1973
- })`flex:1;min-height:0;width:100%;`, DialogHeader = styled(Box).withConfig({
1911
+ componentId: "sc-2s0up-3"
1912
+ })`flex:1;min-height:0;width:100%;`, DialogHeader = (0, styled_components.styled)(require_tabList.W).withConfig({
1974
1913
  displayName: "DialogHeader",
1975
- componentId: "sc-r9i1m3-4"
1976
- })`position:relative;z-index:2;`, DialogContent = styled(Box).withConfig({
1914
+ componentId: "sc-2s0up-4"
1915
+ })`position:relative;z-index:2;`, DialogContent = (0, styled_components.styled)(require_tabList.W).withConfig({
1977
1916
  displayName: "DialogContent",
1978
- componentId: "sc-r9i1m3-5"
1979
- })`position:relative;z-index:1;overflow:auto;outline:none;`, DialogFooter = styled(Box).withConfig({
1917
+ componentId: "sc-2s0up-5"
1918
+ })`position:relative;z-index:1;overflow:auto;outline:none;`, DialogFooter = (0, styled_components.styled)(require_tabList.W).withConfig({
1980
1919
  displayName: "DialogFooter",
1981
- componentId: "sc-r9i1m3-6"
1982
- })`position:relative;z-index:3;`, DialogCard = forwardRef(function(props, forwardedRef) {
1983
- let $ = c(44), { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, children, contentRef: forwardedContentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: radiusProp, scheme, shadow: shadowProp, width: widthProp } = props, portal = usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = useBoundaryElement().element, t0;
1984
- $[0] === radiusProp ? t0 = $[1] : (t0 = _getArrayProp(radiusProp), $[0] = radiusProp, $[1] = t0);
1920
+ componentId: "sc-2s0up-6"
1921
+ })`position:relative;z-index:3;`, DialogCard = (0, react.forwardRef)(function DialogCard(props, forwardedRef) {
1922
+ let $ = (0, react_compiler_runtime.c)(44), { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, children, contentRef: forwardedContentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: radiusProp, scheme, shadow: shadowProp, width: widthProp } = props, portal = require_tabList._(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = require_tabList.x().element, t0;
1923
+ $[0] === radiusProp ? t0 = $[1] : (t0 = require_tabList.ft(radiusProp), $[0] = radiusProp, $[1] = t0);
1985
1924
  let radius = t0, t1;
1986
- $[2] === shadowProp ? t1 = $[3] : (t1 = _getArrayProp(shadowProp), $[2] = shadowProp, $[3] = t1);
1925
+ $[2] === shadowProp ? t1 = $[3] : (t1 = require_tabList.ft(shadowProp), $[2] = shadowProp, $[3] = t1);
1987
1926
  let shadow = t1, t2;
1988
- $[4] === widthProp ? t2 = $[5] : (t2 = _getArrayProp(widthProp), $[4] = widthProp, $[5] = t2);
1989
- let width = t2, ref = useRef(null), contentRef = useRef(null), { isTopLayer } = useLayer(), labelId = `${id}_label`, showCloseButton = !!onClose && hideCloseButton === !1, showHeader = !!header || showCloseButton, t3;
1990
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => ref.current, $[6] = t3) : t3 = $[6], useImperativeHandle(forwardedRef, t3);
1927
+ $[4] === widthProp ? t2 = $[5] : (t2 = require_tabList.ft(widthProp), $[4] = widthProp, $[5] = t2);
1928
+ let width = t2, ref = (0, react.useRef)(null), contentRef = (0, react.useRef)(null), { isTopLayer } = require_tabList.y(), labelId = `${id}_label`, showCloseButton = !!onClose && hideCloseButton === !1, showHeader = !!header || showCloseButton, t3;
1929
+ $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => ref.current, $[6] = t3) : t3 = $[6], (0, react.useImperativeHandle)(forwardedRef, t3);
1991
1930
  let t4;
1992
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => contentRef.current, $[7] = t4) : t4 = $[7], useImperativeHandle(forwardedContentRef, t4);
1931
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => contentRef.current, $[7] = t4) : t4 = $[7], (0, react.useImperativeHandle)(forwardedContentRef, t4);
1993
1932
  let t5, t6;
1994
1933
  $[8] === autoFocus ? (t5 = $[9], t6 = $[10]) : (t5 = () => {
1995
1934
  autoFocus && ref.current && focusFirstDescendant(ref.current);
1996
- }, t6 = [autoFocus, ref], $[8] = autoFocus, $[9] = t5, $[10] = t6), useEffect(t5, t6);
1935
+ }, t6 = [autoFocus, ref], $[8] = autoFocus, $[9] = t5, $[10] = t6), (0, react.useEffect)(t5, t6);
1997
1936
  let t7;
1998
1937
  $[11] !== boundaryElement || $[12] !== isTopLayer || $[13] !== onClose || $[14] !== portalElement ? (t7 = (event) => {
1999
1938
  if (!isTopLayer || !onClose) return;
2000
1939
  let target = document.activeElement;
2001
1940
  target && !isTargetWithinScope(boundaryElement, portalElement, target) || event.key === "Escape" && (event.preventDefault(), event.stopPropagation(), onClose());
2002
- }, $[11] = boundaryElement, $[12] = isTopLayer, $[13] = onClose, $[14] = portalElement, $[15] = t7) : t7 = $[15], useGlobalKeyDown(t7);
1941
+ }, $[11] = boundaryElement, $[12] = isTopLayer, $[13] = onClose, $[14] = portalElement, $[15] = t7) : t7 = $[15], require_tabList.M(t7);
2003
1942
  let t8;
2004
1943
  $[16] !== boundaryElement || $[17] !== isTopLayer || $[18] !== onClickOutside || $[19] !== portalElement ? (t8 = isTopLayer && onClickOutside && ((event_0) => {
2005
1944
  let target_0 = event_0.target;
2006
1945
  target_0 && !isTargetWithinScope(boundaryElement, portalElement, target_0) || onClickOutside();
2007
1946
  }), $[16] = boundaryElement, $[17] = isTopLayer, $[18] = onClickOutside, $[19] = portalElement, $[20] = t8) : t8 = $[20];
2008
1947
  let t9;
2009
- $[21] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => [ref.current], $[21] = t9) : t9 = $[21], useClickOutsideEvent(t8, t9);
1948
+ $[21] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => [ref.current], $[21] = t9) : t9 = $[21], require_tabList.L(t8, t9);
2010
1949
  let t10;
2011
- $[22] !== header || $[23] !== labelId || $[24] !== onClose || $[25] !== showCloseButton || $[26] !== showHeader ? (t10 = showHeader && /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs(Flex, {
1950
+ $[22] !== header || $[23] !== labelId || $[24] !== onClose || $[25] !== showCloseButton || $[26] !== showHeader ? (t10 = showHeader && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogHeader, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_tabList.H, {
2012
1951
  align: "flex-start",
2013
1952
  padding: 3,
2014
- children: [/* @__PURE__ */ jsx(Box, {
1953
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
2015
1954
  flex: 1,
2016
1955
  padding: 2,
2017
- children: header && /* @__PURE__ */ jsx(Text, {
1956
+ children: header && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
2018
1957
  id: labelId,
2019
1958
  size: 1,
2020
1959
  weight: "semibold",
2021
1960
  children: header
2022
1961
  })
2023
- }), showCloseButton && /* @__PURE__ */ jsx(Box, {
1962
+ }), showCloseButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
2024
1963
  flex: "none",
2025
- children: /* @__PURE__ */ jsx(Button, {
1964
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.z, {
2026
1965
  "aria-label": "Close dialog",
2027
1966
  disabled: !onClose,
2028
- icon: CloseIcon,
1967
+ icon: _sanity_icons_Close.CloseIcon,
2029
1968
  mode: "bleed",
2030
1969
  onClick: onClose,
2031
1970
  padding: 2
@@ -2033,16 +1972,16 @@ const StyledDialog = /* @__PURE__ */ styled(Layer).withConfig({
2033
1972
  })]
2034
1973
  }) }), $[22] = header, $[23] = labelId, $[24] = onClose, $[25] = showCloseButton, $[26] = showHeader, $[27] = t10) : t10 = $[27];
2035
1974
  let t11;
2036
- $[28] === children ? t11 = $[29] : (t11 = /* @__PURE__ */ jsx(DialogContent, {
1975
+ $[28] === children ? t11 = $[29] : (t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContent, {
2037
1976
  flex: 1,
2038
1977
  ref: contentRef,
2039
1978
  tabIndex: -1,
2040
1979
  children
2041
1980
  }), $[28] = children, $[29] = t11);
2042
1981
  let t12;
2043
- $[30] === footer ? t12 = $[31] : (t12 = footer && /* @__PURE__ */ jsx(DialogFooter, { children: footer }), $[30] = footer, $[31] = t12);
1982
+ $[30] === footer ? t12 = $[31] : (t12 = footer && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogFooter, { children: footer }), $[30] = footer, $[31] = t12);
2044
1983
  let t13;
2045
- $[32] !== t10 || $[33] !== t11 || $[34] !== t12 ? (t13 = /* @__PURE__ */ jsxs(DialogLayout, {
1984
+ $[32] !== t10 || $[33] !== t11 || $[34] !== t12 ? (t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DialogLayout, {
2046
1985
  direction: "column",
2047
1986
  children: [
2048
1987
  t10,
@@ -2051,7 +1990,7 @@ const StyledDialog = /* @__PURE__ */ styled(Layer).withConfig({
2051
1990
  ]
2052
1991
  }), $[32] = t10, $[33] = t11, $[34] = t12, $[35] = t13) : t13 = $[35];
2053
1992
  let t14;
2054
- $[36] !== radius || $[37] !== scheme || $[38] !== shadow || $[39] !== t13 ? (t14 = /* @__PURE__ */ jsx(DialogCardRoot, {
1993
+ $[36] !== radius || $[37] !== scheme || $[38] !== shadow || $[39] !== t13 ? (t14 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogCardRoot, {
2055
1994
  radius,
2056
1995
  ref,
2057
1996
  scheme,
@@ -2059,32 +1998,25 @@ const StyledDialog = /* @__PURE__ */ styled(Layer).withConfig({
2059
1998
  children: t13
2060
1999
  }), $[36] = radius, $[37] = scheme, $[38] = shadow, $[39] = t13, $[40] = t14) : t14 = $[40];
2061
2000
  let t15;
2062
- return $[41] !== t14 || $[42] !== width ? (t15 = /* @__PURE__ */ jsx(DialogContainer, {
2001
+ return $[41] !== t14 || $[42] !== width ? (t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContainer, {
2063
2002
  "data-ui": "DialogCard",
2064
2003
  width,
2065
2004
  children: t14
2066
2005
  }), $[41] = t14, $[42] = width, $[43] = t15) : t15 = $[43], t15;
2067
- });
2068
- DialogCard.displayName = "ForwardRef(DialogCard)";
2069
- /**
2070
- * The Dialog component.
2071
- *
2072
- * @public
2073
- */
2074
- const Dialog = forwardRef(function(props, ref) {
2075
- let $ = c(70), dialog = useDialog(), { layer } = useTheme_v2(), _positionProp, _zOffsetProp, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5, t6;
2006
+ }), Dialog = (0, react.forwardRef)(function Dialog(props, ref) {
2007
+ let $ = (0, react_compiler_runtime.c)(70), dialog = useDialog(), { layer } = require_tabList.rt(), _positionProp, _zOffsetProp, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5, t6;
2076
2008
  $[0] === props ? (_positionProp = $[1], _zOffsetProp = $[2], children = $[3], contentRef = $[4], footer = $[5], header = $[6], id = $[7], onActivate = $[8], onClickOutside = $[9], onClose = $[10], onFocus = $[11], portalProp = $[12], restProps = $[13], scheme = $[14], t0 = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21]) : ({__unstable_autoFocus: t0, __unstable_hideCloseButton: t1, cardRadius: t2, cardShadow: t3, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, padding: t4, portal: portalProp, position: _positionProp, scheme, width: t5, zOffset: _zOffsetProp, animate: t6, ...restProps} = props, $[0] = props, $[1] = _positionProp, $[2] = _zOffsetProp, $[3] = children, $[4] = contentRef, $[5] = footer, $[6] = header, $[7] = id, $[8] = onActivate, $[9] = onClickOutside, $[10] = onClose, $[11] = onFocus, $[12] = portalProp, $[13] = restProps, $[14] = scheme, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6);
2077
- let autoFocus = t0 === void 0 || t0, hideCloseButton = t1 !== void 0 && t1, cardRadiusProp = t2 === void 0 ? 4 : t2, cardShadow = t3 === void 0 ? 3 : t3, paddingProp = t4 === void 0 ? 3 : t4, widthProp = t5 === void 0 ? 0 : t5, _animate = t6 !== void 0 && t6, positionProp = _positionProp ?? (dialog.position || "fixed"), zOffsetProp = _zOffsetProp ?? (dialog.zOffset || layer.dialog.zOffset), animate = !usePrefersReducedMotion() && _animate, portal = usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = useBoundaryElement().element, t7;
2078
- $[22] === cardRadiusProp ? t7 = $[23] : (t7 = _getArrayProp(cardRadiusProp), $[22] = cardRadiusProp, $[23] = t7);
2009
+ let autoFocus = t0 === void 0 || t0, hideCloseButton = t1 !== void 0 && t1, cardRadiusProp = t2 === void 0 ? 4 : t2, cardShadow = t3 === void 0 ? 3 : t3, paddingProp = t4 === void 0 ? 3 : t4, widthProp = t5 === void 0 ? 0 : t5, _animate = t6 !== void 0 && t6, positionProp = _positionProp ?? (dialog.position || "fixed"), zOffsetProp = _zOffsetProp ?? (dialog.zOffset || layer.dialog.zOffset), animate = !require_tabList.O() && _animate, portal = require_tabList._(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = require_tabList.x().element, t7;
2010
+ $[22] === cardRadiusProp ? t7 = $[23] : (t7 = require_tabList.ft(cardRadiusProp), $[22] = cardRadiusProp, $[23] = t7);
2079
2011
  let cardRadius = t7, t8;
2080
- $[24] === paddingProp ? t8 = $[25] : (t8 = _getArrayProp(paddingProp), $[24] = paddingProp, $[25] = t8);
2012
+ $[24] === paddingProp ? t8 = $[25] : (t8 = require_tabList.ft(paddingProp), $[24] = paddingProp, $[25] = t8);
2081
2013
  let padding = t8, t9;
2082
- $[26] === positionProp ? t9 = $[27] : (t9 = _getArrayProp(positionProp), $[26] = positionProp, $[27] = t9);
2014
+ $[26] === positionProp ? t9 = $[27] : (t9 = require_tabList.ft(positionProp), $[26] = positionProp, $[27] = t9);
2083
2015
  let position = t9, t10;
2084
- $[28] === widthProp ? t10 = $[29] : (t10 = _getArrayProp(widthProp), $[28] = widthProp, $[29] = t10);
2016
+ $[28] === widthProp ? t10 = $[29] : (t10 = require_tabList.ft(widthProp), $[28] = widthProp, $[29] = t10);
2085
2017
  let width = t10, t11;
2086
- $[30] === zOffsetProp ? t11 = $[31] : (t11 = _getArrayProp(zOffsetProp), $[30] = zOffsetProp, $[31] = t11);
2087
- let zOffset = t11, preDivRef = useRef(null), postDivRef = useRef(null), cardRef = useRef(null), focusedElementRef = useRef(null), t12;
2018
+ $[30] === zOffsetProp ? t11 = $[31] : (t11 = require_tabList.ft(zOffsetProp), $[30] = zOffsetProp, $[31] = t11);
2019
+ let zOffset = t11, preDivRef = (0, react.useRef)(null), postDivRef = (0, react.useRef)(null), cardRef = (0, react.useRef)(null), focusedElementRef = (0, react.useRef)(null), t12;
2088
2020
  $[32] === onFocus ? t12 = $[33] : (t12 = (event) => {
2089
2021
  onFocus?.(event);
2090
2022
  let target = event.target, cardElement = cardRef.current;
@@ -2096,9 +2028,9 @@ const Dialog = forwardRef(function(props, ref) {
2096
2028
  focusFirstDescendant(cardElement);
2097
2029
  return;
2098
2030
  }
2099
- isHTMLElement(event.target) && (focusedElementRef.current = event.target);
2031
+ require_tabList.bt(event.target) && (focusedElementRef.current = event.target);
2100
2032
  }, $[32] = onFocus, $[33] = t12);
2101
- let handleFocus = t12, labelId = `${id}_label`, rootClickTimeoutRef = useRef(void 0), t13;
2033
+ let handleFocus = t12, labelId = `${id}_label`, rootClickTimeoutRef = (0, react.useRef)(void 0), t13;
2102
2034
  $[34] !== boundaryElement || $[35] !== portalElement ? (t13 = () => {
2103
2035
  rootClickTimeoutRef.current && clearTimeout(rootClickTimeoutRef.current), rootClickTimeoutRef.current = setTimeout(() => {
2104
2036
  let activeElement = document.activeElement;
@@ -2114,12 +2046,12 @@ const Dialog = forwardRef(function(props, ref) {
2114
2046
  }, 0);
2115
2047
  }, $[34] = boundaryElement, $[35] = portalElement, $[36] = t13) : t13 = $[36];
2116
2048
  let handleRootClick = t13, t14;
2117
- $[37] === Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ jsx("div", {
2049
+ $[37] === Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2118
2050
  ref: preDivRef,
2119
2051
  tabIndex: 0
2120
2052
  }), $[37] = t14) : t14 = $[37];
2121
2053
  let t15;
2122
- $[38] !== autoFocus || $[39] !== cardRadius || $[40] !== cardShadow || $[41] !== children || $[42] !== contentRef || $[43] !== footer || $[44] !== header || $[45] !== hideCloseButton || $[46] !== id || $[47] !== onClickOutside || $[48] !== onClose || $[49] !== portalProp || $[50] !== scheme || $[51] !== width ? (t15 = /* @__PURE__ */ jsx(DialogCard, {
2054
+ $[38] !== autoFocus || $[39] !== cardRadius || $[40] !== cardShadow || $[41] !== children || $[42] !== contentRef || $[43] !== footer || $[44] !== header || $[45] !== hideCloseButton || $[46] !== id || $[47] !== onClickOutside || $[48] !== onClose || $[49] !== portalProp || $[50] !== scheme || $[51] !== width ? (t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogCard, {
2123
2055
  __unstable_autoFocus: autoFocus,
2124
2056
  __unstable_hideCloseButton: hideCloseButton,
2125
2057
  contentRef,
@@ -2137,12 +2069,12 @@ const Dialog = forwardRef(function(props, ref) {
2137
2069
  children
2138
2070
  }), $[38] = autoFocus, $[39] = cardRadius, $[40] = cardShadow, $[41] = children, $[42] = contentRef, $[43] = footer, $[44] = header, $[45] = hideCloseButton, $[46] = id, $[47] = onClickOutside, $[48] = onClose, $[49] = portalProp, $[50] = scheme, $[51] = width, $[52] = t15) : t15 = $[52];
2139
2071
  let t16;
2140
- $[53] === Symbol.for("react.memo_cache_sentinel") ? (t16 = /* @__PURE__ */ jsx("div", {
2072
+ $[53] === Symbol.for("react.memo_cache_sentinel") ? (t16 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2141
2073
  ref: postDivRef,
2142
2074
  tabIndex: 0
2143
2075
  }), $[53] = t16) : t16 = $[53];
2144
2076
  let t17;
2145
- $[54] !== animate || $[55] !== handleFocus || $[56] !== handleRootClick || $[57] !== id || $[58] !== labelId || $[59] !== onActivate || $[60] !== padding || $[61] !== position || $[62] !== ref || $[63] !== restProps || $[64] !== t15 || $[65] !== zOffset ? (t17 = /* @__PURE__ */ jsxs(StyledDialog, {
2077
+ $[54] !== animate || $[55] !== handleFocus || $[56] !== handleRootClick || $[57] !== id || $[58] !== labelId || $[59] !== onActivate || $[60] !== padding || $[61] !== position || $[62] !== ref || $[63] !== restProps || $[64] !== t15 || $[65] !== zOffset ? (t17 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledDialog, {
2146
2078
  ...restProps,
2147
2079
  $animate: animate,
2148
2080
  $padding: padding,
@@ -2164,53 +2096,51 @@ const Dialog = forwardRef(function(props, ref) {
2164
2096
  ]
2165
2097
  }), $[54] = animate, $[55] = handleFocus, $[56] = handleRootClick, $[57] = id, $[58] = labelId, $[59] = onActivate, $[60] = padding, $[61] = position, $[62] = ref, $[63] = restProps, $[64] = t15, $[65] = zOffset, $[66] = t17) : t17 = $[66];
2166
2098
  let t18;
2167
- return $[67] !== portalProp || $[68] !== t17 ? (t18 = /* @__PURE__ */ jsx(Portal, {
2099
+ return $[67] !== portalProp || $[68] !== t17 ? (t18 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.g, {
2168
2100
  __unstable_name: portalProp,
2169
2101
  children: t17
2170
2102
  }), $[67] = portalProp, $[68] = t17, $[69] = t18) : t18 = $[69], t18;
2171
2103
  });
2172
- Dialog.displayName = "ForwardRef(Dialog)";
2173
2104
  /**
2174
2105
  * This API might change. DO NOT USE IN PRODUCTION.
2175
2106
  * @beta
2176
2107
  */
2177
2108
  function DialogProvider(props) {
2178
- let $ = c(6), { children, position, zOffset } = props, t0;
2109
+ let $ = (0, react_compiler_runtime.c)(6), { children, position, zOffset } = props, t0;
2179
2110
  $[0] !== position || $[1] !== zOffset ? (t0 = {
2180
2111
  version: 0,
2181
2112
  position,
2182
2113
  zOffset
2183
2114
  }, $[0] = position, $[1] = zOffset, $[2] = t0) : t0 = $[2];
2184
2115
  let contextValue = t0, t1;
2185
- return $[3] !== children || $[4] !== contextValue ? (t1 = /* @__PURE__ */ jsx(DialogContext.Provider, {
2116
+ return $[3] !== children || $[4] !== contextValue ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContext.Provider, {
2186
2117
  value: contextValue,
2187
2118
  children
2188
2119
  }), $[3] = children, $[4] = contextValue, $[5] = t1) : t1 = $[5], t1;
2189
2120
  }
2190
- DialogProvider.displayName = "DialogProvider";
2191
2121
  /**
2192
2122
  * The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
2193
2123
  *
2194
2124
  * @public
2195
2125
  */
2196
- const MenuButton = forwardRef(function(props, forwardedRef) {
2197
- let $ = c(62), { __unstable_disableRestoreFocusOnClose: t0, boundaryElement: deprecated_boundaryElement, button: buttonProp, id, menu: menuProp, onClose, onOpen, placement: deprecated_placement, popoverScheme: deprecated_popoverScheme, portal: t1, popover, popoverRadius: deprecated_popoverRadius, preventOverflow: deprecated_preventOverflow } = props, disableRestoreFocusOnClose = t0 !== void 0 && t0, deprecated_portal = t1 === void 0 || t1, [open, setOpen] = useState(!1), [shouldFocus, setShouldFocus] = useState(null), [buttonElement, setButtonElement] = useState(null), t2;
2126
+ const MenuButton = (0, react.forwardRef)(function MenuButton(props, forwardedRef) {
2127
+ let $ = (0, react_compiler_runtime.c)(62), { __unstable_disableRestoreFocusOnClose: t0, boundaryElement: deprecated_boundaryElement, button: buttonProp, id, menu: menuProp, onClose, onOpen, placement: deprecated_placement, popoverScheme: deprecated_popoverScheme, portal: t1, popover, popoverRadius: deprecated_popoverRadius, preventOverflow: deprecated_preventOverflow } = props, disableRestoreFocusOnClose = t0 !== void 0 && t0, deprecated_portal = t1 === void 0 || t1, [open, setOpen] = (0, react.useState)(!1), [shouldFocus, setShouldFocus] = (0, react.useState)(null), [buttonElement, setButtonElement] = (0, react.useState)(null), t2;
2198
2128
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[0] = t2) : t2 = $[0];
2199
- let [menuElements, setChildMenuElements] = useState(t2), openRef = useRef(open), t3, t4;
2129
+ let [menuElements, setChildMenuElements] = (0, react.useState)(t2), openRef = (0, react.useRef)(open), t3, t4;
2200
2130
  $[1] !== onOpen || $[2] !== open ? (t3 = () => {
2201
2131
  onOpen && open && !openRef.current && onOpen();
2202
- }, t4 = [onOpen, open], $[1] = onOpen, $[2] = open, $[3] = t3, $[4] = t4) : (t3 = $[3], t4 = $[4]), useEffect(t3, t4);
2132
+ }, t4 = [onOpen, open], $[1] = onOpen, $[2] = open, $[3] = t3, $[4] = t4) : (t3 = $[3], t4 = $[4]), (0, react.useEffect)(t3, t4);
2203
2133
  let t5, t6;
2204
2134
  $[5] !== onClose || $[6] !== open ? (t5 = () => {
2205
2135
  onClose && !open && openRef.current && onClose();
2206
- }, t6 = [onClose, open], $[5] = onClose, $[6] = open, $[7] = t5, $[8] = t6) : (t5 = $[7], t6 = $[8]), useEffect(t5, t6);
2136
+ }, t6 = [onClose, open], $[5] = onClose, $[6] = open, $[7] = t5, $[8] = t6) : (t5 = $[7], t6 = $[8]), (0, react.useEffect)(t5, t6);
2207
2137
  let t7, t8;
2208
2138
  $[9] === open ? (t7 = $[10], t8 = $[11]) : (t7 = () => {
2209
2139
  openRef.current = open;
2210
- }, t8 = [open], $[9] = open, $[10] = t7, $[11] = t8), useEffect(t7, t8);
2140
+ }, t8 = [open], $[9] = open, $[10] = t7, $[11] = t8), (0, react.useEffect)(t7, t8);
2211
2141
  let t9;
2212
2142
  $[12] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => {
2213
- setOpen(_temp$1), setShouldFocus(null);
2143
+ setOpen(_temp$2), setShouldFocus(null);
2214
2144
  }, $[12] = t9) : t9 = $[12];
2215
2145
  let handleButtonClick = t9, t10;
2216
2146
  $[13] === open ? t10 = $[14] : (t10 = (event) => {
@@ -2254,7 +2184,7 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
2254
2184
  let handleItemClick = t15, t16;
2255
2185
  $[27] === Symbol.for("react.memo_cache_sentinel") ? (t16 = (el_1) => (setChildMenuElements((els) => els.concat([el_1])), () => setChildMenuElements((els_0) => els_0.filter((_el) => _el !== el_1))), $[27] = t16) : t16 = $[27];
2256
2186
  let registerElement = t16, t17;
2257
- $[28] !== buttonElement || $[29] !== handleBlur || $[30] !== handleItemClick || $[31] !== handleMenuClickOutside || $[32] !== handleMenuEscape || $[33] !== id || $[34] !== menuProp || $[35] !== shouldFocus ? (t17 = menuProp && cloneElement(menuProp, {
2187
+ $[28] !== buttonElement || $[29] !== handleBlur || $[30] !== handleItemClick || $[31] !== handleMenuClickOutside || $[32] !== handleMenuEscape || $[33] !== id || $[34] !== menuProp || $[35] !== shouldFocus ? (t17 = menuProp && (0, react.cloneElement)(menuProp, {
2258
2188
  "aria-labelledby": id,
2259
2189
  onBlurCapture: handleBlur,
2260
2190
  onClickOutside: handleMenuClickOutside,
@@ -2265,7 +2195,7 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
2265
2195
  shouldFocus
2266
2196
  }), $[28] = buttonElement, $[29] = handleBlur, $[30] = handleItemClick, $[31] = handleMenuClickOutside, $[32] = handleMenuEscape, $[33] = id, $[34] = menuProp, $[35] = shouldFocus, $[36] = t17) : t17 = $[36];
2267
2197
  let menu = t17, t18;
2268
- $[37] !== buttonProp || $[38] !== handleMouseDown || $[39] !== id || $[40] !== open ? (t18 = buttonProp && cloneElement(buttonProp, {
2198
+ $[37] !== buttonProp || $[38] !== handleMouseDown || $[39] !== id || $[40] !== open ? (t18 = buttonProp && (0, react.cloneElement)(buttonProp, {
2269
2199
  "data-ui": "MenuButton",
2270
2200
  id,
2271
2201
  onClick: handleButtonClick,
@@ -2277,7 +2207,7 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
2277
2207
  selected: buttonProp.props.selected ?? open
2278
2208
  }), $[37] = buttonProp, $[38] = handleMouseDown, $[39] = id, $[40] = open, $[41] = t18) : t18 = $[41];
2279
2209
  let button = t18, t19, t20;
2280
- $[42] === buttonElement ? (t19 = $[43], t20 = $[44]) : (t19 = () => buttonElement, t20 = [buttonElement], $[42] = buttonElement, $[43] = t19, $[44] = t20), useImperativeHandle(forwardedRef, t19, t20);
2210
+ $[42] === buttonElement ? (t19 = $[43], t20 = $[44]) : (t19 = () => buttonElement, t20 = [buttonElement], $[42] = buttonElement, $[43] = t19, $[44] = t20), (0, react.useImperativeHandle)(forwardedRef, t19, t20);
2281
2211
  let t21;
2282
2212
  $[45] === popover ? t21 = $[46] : (t21 = popover || {}, $[45] = popover, $[46] = t21);
2283
2213
  let t22;
@@ -2292,9 +2222,9 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
2292
2222
  ...t21
2293
2223
  }, $[47] = deprecated_boundaryElement, $[48] = deprecated_placement, $[49] = deprecated_popoverRadius, $[50] = deprecated_popoverScheme, $[51] = deprecated_portal, $[52] = deprecated_preventOverflow, $[53] = t21, $[54] = t22) : t22 = $[54];
2294
2224
  let popoverProps = t22, t23;
2295
- $[55] === button ? t23 = $[56] : (t23 = button || /* @__PURE__ */ jsx(Fragment$1, {}), $[55] = button, $[56] = t23);
2225
+ $[55] === button ? t23 = $[56] : (t23 = button || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}), $[55] = button, $[56] = t23);
2296
2226
  let t24;
2297
- return $[57] !== menu || $[58] !== open || $[59] !== popoverProps || $[60] !== t23 ? (t24 = /* @__PURE__ */ jsx(Popover, {
2227
+ return $[57] !== menu || $[58] !== open || $[59] !== popoverProps || $[60] !== t23 ? (t24 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.m, {
2298
2228
  "data-ui": "MenuButton__popover",
2299
2229
  ...popoverProps,
2300
2230
  content: menu,
@@ -2302,17 +2232,16 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
2302
2232
  children: t23
2303
2233
  }), $[57] = menu, $[58] = open, $[59] = popoverProps, $[60] = t23, $[61] = t24) : t24 = $[61], t24;
2304
2234
  });
2305
- MenuButton.displayName = "ForwardRef(MenuButton)";
2306
- function _temp$1(v) {
2235
+ function _temp$2(v) {
2307
2236
  return !v;
2308
2237
  }
2309
- const animation = css`background-image:linear-gradient( to right,var(--card-skeleton-color-from),var(--card-skeleton-color-to),var(--card-skeleton-color-from),var(--card-skeleton-color-from),var(--card-skeleton-color-from) );background-position:100%;background-size:200% 100%;background-attachment:fixed;animation-name:${keyframes`0%{background-position:100%;}100%{background-position:-100%;}`};animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-duration:2000ms;`, skeletonStyle = css`opacity:${({ $visible }) => +!!$visible};transition:opacity 200ms ease-in;@media screen and (prefers-reduced-motion:no-preference){${({ $animated }) => $animated ? animation : css`background-color:var(--card-skeleton-color-from);`}}@media screen and (prefers-reduced-motion:reduce){background-color:var(--card-skeleton-color-from);}`, StyledSkeleton$1 = /* @__PURE__ */ styled(Box).withConfig({
2238
+ const animation = styled_components.css`background-image:linear-gradient( to right,var(--card-skeleton-color-from),var(--card-skeleton-color-to),var(--card-skeleton-color-from),var(--card-skeleton-color-from),var(--card-skeleton-color-from) );background-position:100%;background-size:200% 100%;background-attachment:fixed;animation-name:${styled_components.keyframes`0%{background-position:100%;}100%{background-position:-100%;}`};animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-duration:2000ms;`, skeletonStyle = styled_components.css`opacity:${({ $visible }) => +!!$visible};transition:opacity 200ms ease-in;@media screen and (prefers-reduced-motion:no-preference){${({ $animated }) => $animated ? animation : styled_components.css`background-color:var(--card-skeleton-color-from);`}}@media screen and (prefers-reduced-motion:reduce){background-color:var(--card-skeleton-color-from);}`, StyledSkeleton$1 = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
2310
2239
  displayName: "StyledSkeleton",
2311
- componentId: "sc-zuj2vq-0"
2312
- })(responsiveRadiusStyle, skeletonStyle), Skeleton = forwardRef(function(props, ref) {
2313
- let $ = c(16), delay, radius, restProps, t0;
2240
+ componentId: "sc-xewr8x-0"
2241
+ })(require_tabList.K, skeletonStyle), Skeleton = (0, react.forwardRef)(function Skeleton(props, ref) {
2242
+ let $ = (0, react_compiler_runtime.c)(16), delay, radius, restProps, t0;
2314
2243
  $[0] === props ? (delay = $[1], radius = $[2], restProps = $[3], t0 = $[4]) : ({animated: t0, delay, radius, ...restProps} = props, $[0] = props, $[1] = delay, $[2] = radius, $[3] = restProps, $[4] = t0);
2315
- let animated = t0 !== void 0 && t0, [visible, setVisible] = useState(!delay), t1, t2;
2244
+ let animated = t0 !== void 0 && t0, [visible, setVisible] = (0, react.useState)(!delay), t1, t2;
2316
2245
  $[5] === delay ? (t1 = $[6], t2 = $[7]) : (t1 = () => {
2317
2246
  if (!delay) return;
2318
2247
  let timeout = setTimeout(() => {
@@ -2321,104 +2250,79 @@ const animation = css`background-image:linear-gradient( to right,var(--card-skel
2321
2250
  return () => {
2322
2251
  clearTimeout(timeout);
2323
2252
  };
2324
- }, t2 = [delay], $[5] = delay, $[6] = t1, $[7] = t2), useEffect(t1, t2);
2253
+ }, t2 = [delay], $[5] = delay, $[6] = t1, $[7] = t2), (0, react.useEffect)(t1, t2);
2325
2254
  let t3;
2326
- $[8] === radius ? t3 = $[9] : (t3 = _getArrayProp(radius), $[8] = radius, $[9] = t3);
2255
+ $[8] === radius ? t3 = $[9] : (t3 = require_tabList.ft(radius), $[8] = radius, $[9] = t3);
2327
2256
  let t4 = !delay || visible, t5;
2328
- return $[10] !== animated || $[11] !== ref || $[12] !== restProps || $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsx(StyledSkeleton$1, {
2257
+ return $[10] !== animated || $[11] !== ref || $[12] !== restProps || $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSkeleton$1, {
2329
2258
  ...restProps,
2330
2259
  $animated: animated,
2331
2260
  $radius: t3,
2332
2261
  $visible: t4,
2333
2262
  ref
2334
2263
  }), $[10] = animated, $[11] = ref, $[12] = restProps, $[13] = t3, $[14] = t4, $[15] = t5) : t5 = $[15], t5;
2335
- });
2336
- Skeleton.displayName = "ForwardRef(Skeleton)";
2337
- const StyledSkeleton = /* @__PURE__ */ styled(Skeleton).withConfig({
2264
+ }), StyledSkeleton = /* @__PURE__ */ (0, styled_components.styled)(Skeleton).withConfig({
2338
2265
  displayName: "StyledSkeleton",
2339
- componentId: "sc-9op362-0"
2266
+ componentId: "sc-d8ims-0"
2340
2267
  })((props) => {
2341
- let { $size, $style } = props, { font, media } = getTheme_v2(props.theme), fontStyle = font[$style];
2342
- return _responsive(media, $size, (sizeIndex) => {
2268
+ let { $size, $style } = props, { font, media } = require_theme.X(props.theme), fontStyle = font[$style];
2269
+ return require_tabList.mt(media, $size, (sizeIndex) => {
2343
2270
  let fontSize = fontStyle.sizes[sizeIndex];
2344
2271
  return { height: fontSize.lineHeight - fontSize.ascenderHeight - fontSize.descenderHeight };
2345
2272
  });
2346
- }), TextSkeleton = forwardRef(function(props, ref) {
2347
- let $ = c(9), restProps, t0;
2273
+ }), TextSkeleton = (0, react.forwardRef)(function TextSkeleton(props, ref) {
2274
+ let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
2348
2275
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2349
2276
  let size = t0 === void 0 ? 2 : t0, t1;
2350
- $[3] === size ? t1 = $[4] : (t1 = _getArrayProp(size), $[3] = size, $[4] = t1);
2277
+ $[3] === size ? t1 = $[4] : (t1 = require_tabList.ft(size), $[3] = size, $[4] = t1);
2351
2278
  let $size = t1, t2;
2352
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsx(StyledSkeleton, {
2279
+ return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSkeleton, {
2353
2280
  ...restProps,
2354
2281
  $size,
2355
2282
  ref,
2356
2283
  $style: "text"
2357
2284
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2358
- });
2359
- TextSkeleton.displayName = "ForwardRef(TextSkeleton)";
2360
- /**
2361
- * This API might change. DO NOT USE IN PRODUCTION.
2362
- * @beta
2363
- */
2364
- const LabelSkeleton = forwardRef(function(props, ref) {
2365
- let $ = c(9), restProps, t0;
2285
+ }), LabelSkeleton = (0, react.forwardRef)(function LabelSkeleton(props, ref) {
2286
+ let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
2366
2287
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2367
2288
  let size = t0 === void 0 ? 2 : t0, t1;
2368
- $[3] === size ? t1 = $[4] : (t1 = _getArrayProp(size), $[3] = size, $[4] = t1);
2289
+ $[3] === size ? t1 = $[4] : (t1 = require_tabList.ft(size), $[3] = size, $[4] = t1);
2369
2290
  let $size = t1, t2;
2370
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsx(StyledSkeleton, {
2291
+ return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSkeleton, {
2371
2292
  ...restProps,
2372
2293
  $size,
2373
2294
  ref,
2374
2295
  $style: "label"
2375
2296
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2376
- });
2377
- LabelSkeleton.displayName = "ForwardRef(LabelSkeleton)";
2378
- /**
2379
- * This API might change. DO NOT USE IN PRODUCTION.
2380
- * @beta
2381
- */
2382
- const HeadingSkeleton = forwardRef(function(props, ref) {
2383
- let $ = c(9), restProps, t0;
2297
+ }), HeadingSkeleton = (0, react.forwardRef)(function HeadingSkeleton(props, ref) {
2298
+ let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
2384
2299
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2385
2300
  let size = t0 === void 0 ? 2 : t0, t1;
2386
- $[3] === size ? t1 = $[4] : (t1 = _getArrayProp(size), $[3] = size, $[4] = t1);
2301
+ $[3] === size ? t1 = $[4] : (t1 = require_tabList.ft(size), $[3] = size, $[4] = t1);
2387
2302
  let $size = t1, t2;
2388
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsx(StyledSkeleton, {
2303
+ return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSkeleton, {
2389
2304
  ...restProps,
2390
2305
  $size,
2391
2306
  ref,
2392
2307
  $style: "heading"
2393
2308
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2394
- });
2395
- HeadingSkeleton.displayName = "ForwardRef(HeadingSkeleton)";
2396
- /**
2397
- * This API might change. DO NOT USE IN PRODUCTION.
2398
- * @beta
2399
- */
2400
- const CodeSkeleton = forwardRef(function(props, ref) {
2401
- let $ = c(9), restProps, t0;
2309
+ }), CodeSkeleton = (0, react.forwardRef)(function CodeSkeleton(props, ref) {
2310
+ let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
2402
2311
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2403
2312
  let size = t0 === void 0 ? 2 : t0, t1;
2404
- $[3] === size ? t1 = $[4] : (t1 = _getArrayProp(size), $[3] = size, $[4] = t1);
2313
+ $[3] === size ? t1 = $[4] : (t1 = require_tabList.ft(size), $[3] = size, $[4] = t1);
2405
2314
  let $size = t1, t2;
2406
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsx(StyledSkeleton, {
2315
+ return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSkeleton, {
2407
2316
  ...restProps,
2408
2317
  $size,
2409
2318
  ref,
2410
2319
  $style: "code"
2411
2320
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2412
- });
2413
- CodeSkeleton.displayName = "ForwardRef(CodeSkeleton)";
2414
- /**
2415
- * @public
2416
- */
2417
- const TabPanel = forwardRef(function(props, ref) {
2418
- let $ = c(9), flex, restProps;
2321
+ }), TabPanel = (0, react.forwardRef)(function TabPanel(props, ref) {
2322
+ let $ = (0, react_compiler_runtime.c)(9), flex, restProps;
2419
2323
  $[0] === props ? (flex = $[1], restProps = $[2]) : ({flex, ...restProps} = props, $[0] = props, $[1] = flex, $[2] = restProps);
2420
2324
  let t0 = props.tabIndex === void 0 ? 0 : props.tabIndex, t1;
2421
- return $[3] !== flex || $[4] !== props.children || $[5] !== ref || $[6] !== restProps || $[7] !== t0 ? (t1 = /* @__PURE__ */ jsx(Box, {
2325
+ return $[3] !== flex || $[4] !== props.children || $[5] !== ref || $[6] !== restProps || $[7] !== t0 ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
2422
2326
  "data-ui": "TabPanel",
2423
2327
  ...restProps,
2424
2328
  flex,
@@ -2427,9 +2331,7 @@ const TabPanel = forwardRef(function(props, ref) {
2427
2331
  tabIndex: t0,
2428
2332
  children: props.children
2429
2333
  }), $[3] = flex, $[4] = props.children, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1) : t1 = $[8], t1;
2430
- });
2431
- TabPanel.displayName = "ForwardRef(TabPanel)";
2432
- const STATUS_CARD_TONE = {
2334
+ }), STATUS_CARD_TONE = {
2433
2335
  error: "critical",
2434
2336
  warning: "caution",
2435
2337
  success: "positive",
@@ -2439,23 +2341,23 @@ const STATUS_CARD_TONE = {
2439
2341
  warning: "caution",
2440
2342
  success: "positive",
2441
2343
  info: "neutral"
2442
- }, TextBox = styled(Flex).withConfig({
2344
+ }, TextBox = (0, styled_components.styled)(require_tabList.H).withConfig({
2443
2345
  displayName: "TextBox",
2444
- componentId: "sc-wezd9c-0"
2445
- })`overflow-x:auto;`, StyledToast = styled(Card).withConfig({
2346
+ componentId: "sc-wxn2nh-0"
2347
+ })`overflow-x:auto;`, StyledToast = (0, styled_components.styled)(require_tabList.R).withConfig({
2446
2348
  displayName: "StyledToast",
2447
- componentId: "sc-wezd9c-1"
2448
- })`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`, LoadingBar = styled.div.withConfig({
2349
+ componentId: "sc-wxn2nh-1"
2350
+ })`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`, LoadingBar = styled_components.styled.div.withConfig({
2449
2351
  displayName: "LoadingBar",
2450
- componentId: "sc-wezd9c-2"
2451
- })`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`, LoadingBarMask = styled(Card).withConfig({
2352
+ componentId: "sc-wxn2nh-2"
2353
+ })`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`, LoadingBarMask = (0, styled_components.styled)(require_tabList.R).withConfig({
2452
2354
  displayName: "LoadingBarMask",
2453
- componentId: "sc-wezd9c-3"
2454
- })`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`, LoadingBarProgress = styled(Card).withConfig({
2355
+ componentId: "sc-wxn2nh-3"
2356
+ })`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`, LoadingBarProgress = (0, styled_components.styled)(require_tabList.R).withConfig({
2455
2357
  displayName: "LoadingBarProgress",
2456
- componentId: "sc-wezd9c-4"
2358
+ componentId: "sc-wxn2nh-4"
2457
2359
  })`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${(props) => {
2458
- let { color } = getTheme_v2(props.theme);
2360
+ let { color } = require_theme.X(props.theme);
2459
2361
  return color.button.default[props.tone].enabled.bg;
2460
2362
  }};`, ROLES = {
2461
2363
  error: "alert",
@@ -2471,9 +2373,9 @@ const STATUS_CARD_TONE = {
2471
2373
  * @public
2472
2374
  */
2473
2375
  function Toast(props) {
2474
- let $ = c(50), closable, description, duration, onClose, restProps, status, t0, title, updatedAt;
2376
+ let $ = (0, react_compiler_runtime.c)(50), closable, description, duration, onClose, restProps, status, t0, title, updatedAt;
2475
2377
  $[0] === props ? (closable = $[1], description = $[2], duration = $[3], onClose = $[4], restProps = $[5], status = $[6], t0 = $[7], title = $[8], updatedAt = $[9]) : ({closable, description, duration, onClose, radius: t0, title, status, updatedAt, ...restProps} = props, $[0] = props, $[1] = closable, $[2] = description, $[3] = duration, $[4] = onClose, $[5] = restProps, $[6] = status, $[7] = t0, $[8] = title, $[9] = updatedAt);
2476
- let radius = t0 === void 0 ? 3 : t0, cardTone = status ? STATUS_CARD_TONE[status] : "default", buttonTone = status ? BUTTON_TONE[status] : "default", role = status ? ROLES[status] : "status", visualDuration = usePrefersReducedMotion() ? 0 : .26, t1;
2378
+ let radius = t0 === void 0 ? 3 : t0, cardTone = status ? STATUS_CARD_TONE[status] : "default", buttonTone = status ? BUTTON_TONE[status] : "default", role = status ? ROLES[status] : "status", visualDuration = require_tabList.O() ? 0 : .26, t1;
2477
2379
  $[10] === visualDuration ? t1 = $[11] : (t1 = visualDuration ? {
2478
2380
  type: "spring",
2479
2381
  visualDuration,
@@ -2486,13 +2388,13 @@ function Toast(props) {
2486
2388
  let animate = t3, t4;
2487
2389
  $[14] === Symbol.for("react.memo_cache_sentinel") ? (t4 = ["hidden", "slideOut"], $[14] = t4) : t4 = $[14];
2488
2390
  let exit = t4, t5 = hasDuration ? "" : void 0, t6;
2489
- $[15] === title ? t6 = $[16] : (t6 = title && /* @__PURE__ */ jsx(Text, {
2391
+ $[15] === title ? t6 = $[16] : (t6 = title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
2490
2392
  size: 1,
2491
2393
  weight: "medium",
2492
2394
  children: title
2493
2395
  }), $[15] = title, $[16] = t6);
2494
2396
  let t7;
2495
- $[17] !== description || $[18] !== transition ? (t7 = description && /* @__PURE__ */ jsx(MotionText, {
2397
+ $[17] !== description || $[18] !== transition ? (t7 = description && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MotionText, {
2496
2398
  muted: !0,
2497
2399
  size: 1,
2498
2400
  variants: content,
@@ -2500,20 +2402,20 @@ function Toast(props) {
2500
2402
  children: description
2501
2403
  }), $[17] = description, $[18] = transition, $[19] = t7) : t7 = $[19];
2502
2404
  let t8;
2503
- $[20] !== t6 || $[21] !== t7 ? (t8 = /* @__PURE__ */ jsx(TextBox, {
2405
+ $[20] !== t6 || $[21] !== t7 ? (t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextBox, {
2504
2406
  flex: 1,
2505
2407
  padding: 3,
2506
- children: /* @__PURE__ */ jsxs(Stack, {
2408
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_tabList.p, {
2507
2409
  space: 3,
2508
2410
  children: [t6, t7]
2509
2411
  })
2510
2412
  }), $[20] = t6, $[21] = t7, $[22] = t8) : t8 = $[22];
2511
2413
  let t9;
2512
- $[23] !== buttonTone || $[24] !== closable || $[25] !== onClose ? (t9 = closable && /* @__PURE__ */ jsx(Box, {
2414
+ $[23] !== buttonTone || $[24] !== closable || $[25] !== onClose ? (t9 = closable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
2513
2415
  padding: 1,
2514
- children: /* @__PURE__ */ jsx(Button, {
2416
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.z, {
2515
2417
  as: "button",
2516
- icon: CloseIcon,
2418
+ icon: _sanity_icons_Close.CloseIcon,
2517
2419
  mode: "bleed",
2518
2420
  padding: 2,
2519
2421
  tone: buttonTone,
@@ -2522,20 +2424,20 @@ function Toast(props) {
2522
2424
  })
2523
2425
  }), $[23] = buttonTone, $[24] = closable, $[25] = onClose, $[26] = t9) : t9 = $[26];
2524
2426
  let t10;
2525
- $[27] !== t8 || $[28] !== t9 || $[29] !== transition ? (t10 = /* @__PURE__ */ jsxs(MotionFlex, {
2427
+ $[27] !== t8 || $[28] !== t9 || $[29] !== transition ? (t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionFlex, {
2526
2428
  align: "flex-start",
2527
2429
  variants: content,
2528
2430
  transition,
2529
2431
  children: [t8, t9]
2530
2432
  }), $[27] = t8, $[28] = t9, $[29] = transition, $[30] = t10) : t10 = $[30];
2531
2433
  let t11;
2532
- $[31] !== cardTone || $[32] !== duration || $[33] !== hasDuration || $[34] !== onClose || $[35] !== radius || $[36] !== transition || $[37] !== updatedAt || $[38] !== visualDuration ? (t11 = hasDuration && /* @__PURE__ */ jsxs(MotionLoadingBar, {
2434
+ $[31] !== cardTone || $[32] !== duration || $[33] !== hasDuration || $[34] !== onClose || $[35] !== radius || $[36] !== transition || $[37] !== updatedAt || $[38] !== visualDuration ? (t11 = hasDuration && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionLoadingBar, {
2533
2435
  variants: content,
2534
2436
  transition,
2535
- children: [/* @__PURE__ */ jsx(LoadingBarMask, {
2437
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadingBarMask, {
2536
2438
  tone: cardTone,
2537
2439
  radius
2538
- }), /* @__PURE__ */ jsx(MotionLoadingBarProgress, {
2440
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MotionLoadingBarProgress, {
2539
2441
  tone: cardTone,
2540
2442
  initial: { scaleX: 0 },
2541
2443
  animate: { scaleX: 1 },
@@ -2548,7 +2450,7 @@ function Toast(props) {
2548
2450
  }, `progress-${updatedAt}`)]
2549
2451
  }), $[31] = cardTone, $[32] = duration, $[33] = hasDuration, $[34] = onClose, $[35] = radius, $[36] = transition, $[37] = updatedAt, $[38] = visualDuration, $[39] = t11) : t11 = $[39];
2550
2452
  let t12;
2551
- return $[40] !== cardTone || $[41] !== radius || $[42] !== restProps || $[43] !== role || $[44] !== t10 || $[45] !== t11 || $[46] !== t5 || $[47] !== transition || $[48] !== visualDuration ? (t12 = /* @__PURE__ */ jsxs(MotionToast, {
2453
+ return $[40] !== cardTone || $[41] !== radius || $[42] !== restProps || $[43] !== role || $[44] !== t10 || $[45] !== t11 || $[46] !== t5 || $[47] !== transition || $[48] !== visualDuration ? (t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionToast, {
2552
2454
  "data-ui": "Toast",
2553
2455
  role,
2554
2456
  ...restProps,
@@ -2567,7 +2469,6 @@ function Toast(props) {
2567
2469
  children: [t10, t11]
2568
2470
  }), $[40] = cardTone, $[41] = radius, $[42] = restProps, $[43] = role, $[44] = t10, $[45] = t11, $[46] = t5, $[47] = transition, $[48] = visualDuration, $[49] = t12) : t12 = $[49], t12;
2569
2471
  }
2570
- Toast.displayName = "Toast";
2571
2472
  const container = {
2572
2473
  initial: {
2573
2474
  y: 32,
@@ -2595,23 +2496,29 @@ const container = {
2595
2496
  initial: { willChange: "transform" },
2596
2497
  hidden: { opacity: 0 },
2597
2498
  visible: { opacity: 1 }
2598
- }, MotionToast = motion.create(StyledToast), MotionFlex = motion.create(Flex), MotionText = motion.create(Text), MotionLoadingBar = motion.create(LoadingBar), MotionLoadingBarProgress = motion.create(LoadingBarProgress);
2499
+ }, MotionToast = motion_react.motion.create(StyledToast), MotionFlex = motion_react.motion.create(require_tabList.H), MotionText = motion_react.motion.create(require_tabList.U), MotionLoadingBar = motion_react.motion.create(LoadingBar), MotionLoadingBarProgress = motion_react.motion.create(LoadingBarProgress);
2599
2500
  /**
2600
2501
  * Some components should only render after mounting to the DOM, and not be rendered at all during SSR renderToString or equivalent.
2601
2502
  * @public
2602
2503
  */
2603
2504
  function useMounted() {
2604
- return useSyncExternalStore(subscribe, () => !0, () => !1);
2505
+ return (0, react.useSyncExternalStore)(subscribe, _temp$1, _temp2);
2506
+ }
2507
+ function _temp2() {
2508
+ return !1;
2509
+ }
2510
+ function _temp$1() {
2511
+ return !0;
2605
2512
  }
2606
- const subscribe = () => () => {}, ToastContext = createGlobalScopedContext("@sanity/ui/context/toast", null);
2513
+ const subscribe = () => () => {}, ToastContext = require_tabList.st("@sanity/ui/context/toast", null);
2607
2514
  /**
2608
2515
  * @internal
2609
2516
  */
2610
2517
  function ToastLayer(props) {
2611
- let $ = c(9), { children, padding: t0, paddingX, paddingY, gap: t1 } = props, padding = t0 === void 0 ? 4 : t0, gap = t1 === void 0 ? 3 : t1, { zIndex } = useLayer(), t2;
2518
+ let $ = (0, react_compiler_runtime.c)(9), { children, padding: t0, paddingX, paddingY, gap: t1 } = props, padding = t0 === void 0 ? 4 : t0, gap = t1 === void 0 ? 3 : t1, { zIndex } = require_tabList.y(), t2;
2612
2519
  $[0] === zIndex ? t2 = $[1] : (t2 = { zIndex }, $[0] = zIndex, $[1] = t2);
2613
2520
  let t3;
2614
- return $[2] !== children || $[3] !== gap || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== t2 ? (t3 = /* @__PURE__ */ jsx(StyledLayer, {
2521
+ return $[2] !== children || $[3] !== gap || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== t2 ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledLayer, {
2615
2522
  forwardedAs: "ul",
2616
2523
  "data-ui": "ToastProvider",
2617
2524
  padding,
@@ -2623,10 +2530,9 @@ function ToastLayer(props) {
2623
2530
  children
2624
2531
  }), $[2] = children, $[3] = gap, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = t2, $[8] = t3) : t3 = $[8], t3;
2625
2532
  }
2626
- ToastLayer.displayName = "ToastLayer";
2627
- const StyledLayer = styled(Grid).withConfig({
2533
+ const StyledLayer = (0, styled_components.styled)(require_tabList.D).withConfig({
2628
2534
  displayName: "StyledLayer",
2629
- componentId: "sc-8z432x-0"
2535
+ componentId: "sc-chanfh-0"
2630
2536
  })`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`;
2631
2537
  let toastId = 0;
2632
2538
  /** @internal */
@@ -2637,17 +2543,16 @@ function generateToastId() {
2637
2543
  * @public
2638
2544
  */
2639
2545
  function ToastProvider(props) {
2640
- let $ = c(13), { children, padding, paddingX, paddingY, gap, zOffset: t0 } = props, zOffset = t0 === void 0 ? 1 : t0, t1;
2546
+ let $ = (0, react_compiler_runtime.c)(13), { children, padding, paddingX, paddingY, gap, zOffset: t0 } = props, zOffset = t0 === void 0 ? 1 : t0, t1;
2641
2547
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
2642
- let [state, setState] = useState(t1), mounted = useMounted(), t2;
2643
- $[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
2644
- version: 0,
2645
- push: (params) => {
2548
+ let [state, setState] = (0, react.useState)(t1), mounted = useMounted(), t2;
2549
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
2550
+ let push = (params) => {
2646
2551
  let id = params.id || generateToastId(), duration = params.duration || 5e3;
2647
- return startTransition(() => {
2552
+ return (0, react.startTransition)(() => {
2648
2553
  setState((prevState) => {
2649
2554
  if (duration === .01) return prevState.filter((toast) => toast.id !== id);
2650
- let dismiss = () => startTransition(() => setState((currentState) => currentState.filter((toast_0) => toast_0.id !== id)));
2555
+ let dismiss = () => (0, react.startTransition)(() => setState((currentState) => currentState.filter((toast_0) => toast_0.id !== id)));
2651
2556
  return [...prevState.filter((toast_1) => toast_1.id !== id), {
2652
2557
  dismiss,
2653
2558
  id,
@@ -2659,17 +2564,21 @@ function ToastProvider(props) {
2659
2564
  }];
2660
2565
  });
2661
2566
  }), id;
2662
- }
2663
- }, $[1] = t2) : t2 = $[1];
2567
+ };
2568
+ t2 = {
2569
+ version: 0,
2570
+ push
2571
+ }, $[1] = t2;
2572
+ } else t2 = $[1];
2664
2573
  let value = t2, t3;
2665
- $[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t3 = mounted && /* @__PURE__ */ jsx(LayerProvider, {
2574
+ $[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t3 = mounted && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.b, {
2666
2575
  zOffset,
2667
- children: /* @__PURE__ */ jsx(ToastLayer, {
2576
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToastLayer, {
2668
2577
  padding,
2669
2578
  paddingX,
2670
2579
  paddingY,
2671
2580
  gap,
2672
- children: /* @__PURE__ */ jsx(AnimatePresence, {
2581
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.AnimatePresence, {
2673
2582
  initial: !1,
2674
2583
  mode: "popLayout",
2675
2584
  children: state.map(_temp)
@@ -2677,14 +2586,14 @@ function ToastProvider(props) {
2677
2586
  })
2678
2587
  }), $[2] = gap, $[3] = mounted, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = state, $[8] = zOffset, $[9] = t3) : t3 = $[9];
2679
2588
  let t4;
2680
- return $[10] !== children || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsxs(ToastContext.Provider, {
2589
+ return $[10] !== children || $[11] !== t3 ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ToastContext.Provider, {
2681
2590
  value,
2682
2591
  children: [children, t3]
2683
2592
  }), $[10] = children, $[11] = t3, $[12] = t4) : t4 = $[12], t4;
2684
2593
  }
2685
2594
  function _temp(t0) {
2686
2595
  let { dismiss: dismiss_0, id: id_0, params: params_0, updatedAt } = t0;
2687
- return /* @__PURE__ */ jsx(Toast, {
2596
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Toast, {
2688
2597
  closable: params_0.closable,
2689
2598
  description: params_0.description,
2690
2599
  onClose: dismiss_0,
@@ -2694,14 +2603,13 @@ function _temp(t0) {
2694
2603
  updatedAt
2695
2604
  }, id_0);
2696
2605
  }
2697
- ToastProvider.displayName = "ToastProvider";
2698
2606
  /**
2699
2607
  * @public
2700
2608
  */
2701
2609
  function useToast() {
2702
- let value = useContext(ToastContext);
2610
+ let value = (0, react.useContext)(ToastContext);
2703
2611
  if (!value) throw Error("useToast(): missing context value");
2704
- if (!isRecord(value) || value.version !== 0) throw Error("useToast(): the context value is not compatible");
2612
+ if (!require_tabList.S(value) || value.version !== 0) throw Error("useToast(): the context value is not compatible");
2705
2613
  return value;
2706
2614
  }
2707
2615
  function _findPrevItemElement(state, itemElements, focusedElement) {
@@ -2746,25 +2654,25 @@ function _focusItemElement(el) {
2746
2654
  /**
2747
2655
  * @internal
2748
2656
  */
2749
- const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null), Tree = forwardRef(function(props, forwardedRef) {
2750
- let $ = c(38), children, gap, onFocus, restProps, t0;
2657
+ const TreeContext = require_tabList.st("@sanity/ui/context/tree", null), Tree = (0, react.forwardRef)(function Tree(props, forwardedRef) {
2658
+ let $ = (0, react_compiler_runtime.c)(38), children, gap, onFocus, restProps, t0;
2751
2659
  $[0] === props ? (children = $[1], gap = $[2], onFocus = $[3], restProps = $[4], t0 = $[5]) : ({children, gap, space: t0, onFocus, ...restProps} = props, $[0] = props, $[1] = children, $[2] = gap, $[3] = onFocus, $[4] = restProps, $[5] = t0);
2752
- let spacing = gap === void 0 ? t0 === void 0 ? 1 : t0 : gap, ref = useRef(null), [focusedElement, setFocusedElement] = useState(null), focusedElementRef = useRef(focusedElement), t1;
2660
+ let spacing = gap === void 0 ? t0 === void 0 ? 1 : t0 : gap, ref = (0, react.useRef)(null), [focusedElement, setFocusedElement] = (0, react.useState)(null), focusedElementRef = (0, react.useRef)(focusedElement), t1;
2753
2661
  $[6] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[6] = t1) : t1 = $[6];
2754
2662
  let path = t1, t2;
2755
2663
  $[7] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[7] = t2) : t2 = $[7];
2756
- let [itemElements, setItemElements] = useState(t2), t3;
2664
+ let [itemElements, setItemElements] = (0, react.useState)(t2), t3;
2757
2665
  $[8] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {}, $[8] = t3) : t3 = $[8];
2758
- let [state, setState] = useState(t3), stateRef = useRef(state), t4;
2759
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[9] = t4) : t4 = $[9], useImperativeHandle(forwardedRef, t4);
2666
+ let [state, setState] = (0, react.useState)(t3), stateRef = (0, react.useRef)(state), t4;
2667
+ $[9] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[9] = t4) : t4 = $[9], (0, react.useImperativeHandle)(forwardedRef, t4);
2760
2668
  let t5, t6;
2761
2669
  $[10] === focusedElement ? (t5 = $[11], t6 = $[12]) : (t5 = () => {
2762
2670
  focusedElementRef.current = focusedElement;
2763
- }, t6 = [focusedElement], $[10] = focusedElement, $[11] = t5, $[12] = t6), useEffect(t5, t6);
2671
+ }, t6 = [focusedElement], $[10] = focusedElement, $[11] = t5, $[12] = t6), (0, react.useEffect)(t5, t6);
2764
2672
  let t7, t8;
2765
2673
  $[13] === state ? (t7 = $[14], t8 = $[15]) : (t7 = () => {
2766
2674
  stateRef.current = state;
2767
- }, t8 = [state], $[13] = state, $[14] = t7, $[15] = t8), useEffect(t7, t8);
2675
+ }, t8 = [state], $[13] = state, $[14] = t7, $[15] = t8), (0, react.useEffect)(t7, t8);
2768
2676
  let t9;
2769
2677
  $[16] === Symbol.for("react.memo_cache_sentinel") ? (t9 = (element, path_0, expanded, selected) => (setState((s) => ({
2770
2678
  ...s,
@@ -2872,9 +2780,9 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
2872
2780
  setItemElements(_itemElements);
2873
2781
  }, $[26] = t15) : t15 = $[26];
2874
2782
  let t16;
2875
- $[27] === children ? t16 = $[28] : (t16 = [children], $[27] = children, $[28] = t16), useEffect(t15, t16);
2783
+ $[27] === children ? t16 = $[28] : (t16 = [children], $[27] = children, $[28] = t16), (0, react.useEffect)(t15, t16);
2876
2784
  let t17;
2877
- $[29] !== children || $[30] !== handleFocus || $[31] !== handleKeyDown || $[32] !== restProps || $[33] !== spacing ? (t17 = /* @__PURE__ */ jsx(Stack, {
2785
+ $[29] !== children || $[30] !== handleFocus || $[31] !== handleKeyDown || $[32] !== restProps || $[33] !== spacing ? (t17 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.p, {
2878
2786
  as: "ul",
2879
2787
  "data-ui": "Tree",
2880
2788
  ...restProps,
@@ -2886,36 +2794,35 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
2886
2794
  children
2887
2795
  }), $[29] = children, $[30] = handleFocus, $[31] = handleKeyDown, $[32] = restProps, $[33] = spacing, $[34] = t17) : t17 = $[34];
2888
2796
  let t18;
2889
- return $[35] !== contextValue || $[36] !== t17 ? (t18 = /* @__PURE__ */ jsx(TreeContext.Provider, {
2797
+ return $[35] !== contextValue || $[36] !== t17 ? (t18 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeContext.Provider, {
2890
2798
  value: contextValue,
2891
2799
  children: t17
2892
2800
  }), $[35] = contextValue, $[36] = t17, $[37] = t18) : t18 = $[37], t18;
2893
2801
  });
2894
- Tree.displayName = "ForwardRef(Tree)";
2895
2802
  function treeItemRootStyle() {
2896
- return css`&[role='none'] > [role='treeitem']{outline:none;cursor:default;border-radius:3px;background-color:var(--card-bg-color);color:var(--treeitem-fg-color);&:focus{position:relative;}}&[role='treeitem']{outline:none;& > div{cursor:default;border-radius:3px;background-color:var(--card-bg-color);color:var(--treeitem-fg-color);}&:focus > div{position:relative;}}`;
2803
+ return styled_components.css`&[role='none'] > [role='treeitem']{outline:none;cursor:default;border-radius:3px;background-color:var(--card-bg-color);color:var(--treeitem-fg-color);&:focus{position:relative;}}&[role='treeitem']{outline:none;& > div{cursor:default;border-radius:3px;background-color:var(--card-bg-color);color:var(--treeitem-fg-color);}&:focus > div{position:relative;}}`;
2897
2804
  }
2898
2805
  function treeItemRootColorStyle(props) {
2899
- let { color } = getTheme_v2(props.theme), tone = color.selectable.default;
2900
- return css`&[role='none']{& > [role='treeitem']{${_cardColorStyle(color, tone.enabled)}}&[data-selected] > [role='treeitem']{${_cardColorStyle(color, tone.pressed)}}@media (hover:hover){&:not([data-selected]) > [role='treeitem']:not(:focus):hover{${_cardColorStyle(color, tone.hovered)}}& > [role='treeitem']:focus{${_cardColorStyle(color, tone.selected)}}}}&[role='treeitem']{& > [data-ui='TreeItem__box']{${_cardColorStyle(color, tone.enabled)}}&[data-selected] > [data-ui='TreeItem__box']{${_cardColorStyle(color, tone.pressed)}}@media (hover:hover){&:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover{${_cardColorStyle(color, tone.hovered)}}&:focus > [data-ui='TreeItem__box']{${_cardColorStyle(color, tone.selected)}}}}`;
2806
+ let { color } = require_theme.X(props.theme), tone = color.selectable.default;
2807
+ return styled_components.css`&[role='none']{& > [role='treeitem']{${require_tabList.B(color, tone.enabled)}}&[data-selected] > [role='treeitem']{${require_tabList.B(color, tone.pressed)}}@media (hover:hover){&:not([data-selected]) > [role='treeitem']:not(:focus):hover{${require_tabList.B(color, tone.hovered)}}& > [role='treeitem']:focus{${require_tabList.B(color, tone.selected)}}}}&[role='treeitem']{& > [data-ui='TreeItem__box']{${require_tabList.B(color, tone.enabled)}}&[data-selected] > [data-ui='TreeItem__box']{${require_tabList.B(color, tone.pressed)}}@media (hover:hover){&:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover{${require_tabList.B(color, tone.hovered)}}&:focus > [data-ui='TreeItem__box']{${require_tabList.B(color, tone.selected)}}}}`;
2901
2808
  }
2902
2809
  function treeItemBoxStyle(props) {
2903
- let { $level } = props, { space } = getTheme_v2(props.theme);
2904
- return css`padding-left:${rem(space[2] * $level)};&[data-as='a']{text-decoration:none;}`;
2810
+ let { $level } = props, { space } = require_theme.X(props.theme);
2811
+ return styled_components.css`padding-left:${require_tabList.ht(space[2] * $level)};&[data-as='a']{text-decoration:none;}`;
2905
2812
  }
2906
2813
  /**
2907
2814
  * @beta
2908
2815
  */
2909
2816
  function useTree() {
2910
- let tree = useContext(TreeContext);
2817
+ let tree = (0, react.useContext)(TreeContext);
2911
2818
  if (!tree) throw Error("Tree: missing context value");
2912
2819
  return tree;
2913
2820
  }
2914
2821
  function TreeGroup(props) {
2915
- let $ = c(9), children, restProps, t0;
2822
+ let $ = (0, react_compiler_runtime.c)(9), children, restProps, t0;
2916
2823
  $[0] === props ? (children = $[1], restProps = $[2], t0 = $[3]) : ({children, expanded: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0);
2917
2824
  let expanded = t0 !== void 0 && t0, tree = useTree(), t1 = !expanded, t2;
2918
- return $[4] !== children || $[5] !== restProps || $[6] !== t1 || $[7] !== tree.gap ? (t2 = /* @__PURE__ */ jsx(Stack, {
2825
+ return $[4] !== children || $[5] !== restProps || $[6] !== t1 || $[7] !== tree.gap ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.p, {
2919
2826
  as: "ul",
2920
2827
  "data-ui": "TreeGroup",
2921
2828
  ...restProps,
@@ -2926,28 +2833,28 @@ function TreeGroup(props) {
2926
2833
  children
2927
2834
  }), $[4] = children, $[5] = restProps, $[6] = t1, $[7] = tree.gap, $[8] = t2) : t2 = $[8], t2;
2928
2835
  }
2929
- const StyledTreeItem = /* @__PURE__ */ styled.li.withConfig({
2836
+ const StyledTreeItem = /* @__PURE__ */ styled_components.styled.li.withConfig({
2930
2837
  displayName: "StyledTreeItem",
2931
- componentId: "sc-arsnlr-0"
2932
- })(treeItemRootStyle, treeItemRootColorStyle), TreeItemBox = /* @__PURE__ */ styled(Box).attrs({ forwardedAs: "a" }).withConfig({
2838
+ componentId: "sc-lxy9gh-0"
2839
+ })(treeItemRootStyle, treeItemRootColorStyle), TreeItemBox = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).attrs({ forwardedAs: "a" }).withConfig({
2933
2840
  displayName: "TreeItemBox",
2934
- componentId: "sc-arsnlr-1"
2935
- })(treeItemBoxStyle), ToggleArrowText = styled(Text).withConfig({
2841
+ componentId: "sc-lxy9gh-1"
2842
+ })(treeItemBoxStyle), ToggleArrowText = (0, styled_components.styled)(require_tabList.U).withConfig({
2936
2843
  displayName: "ToggleArrowText",
2937
- componentId: "sc-arsnlr-2"
2844
+ componentId: "sc-lxy9gh-2"
2938
2845
  })`& > svg{transition:transform 100ms;}`;
2939
2846
  /**
2940
2847
  * This API might change. DO NOT USE IN PRODUCTION.
2941
2848
  * @beta
2942
2849
  */
2943
2850
  function TreeItem(props) {
2944
- let $ = c(114), IconComponent, children, gap, href, idProp, linkAs, muted, onClick, restProps, t0, t1, t2, t3, t4, text, weight;
2851
+ let $ = (0, react_compiler_runtime.c)(114), IconComponent, children, gap, href, idProp, linkAs, muted, onClick, restProps, t0, t1, t2, t3, t4, text, weight;
2945
2852
  $[0] === props ? (IconComponent = $[1], children = $[2], gap = $[3], href = $[4], idProp = $[5], linkAs = $[6], muted = $[7], onClick = $[8], restProps = $[9], t0 = $[10], t1 = $[11], t2 = $[12], t3 = $[13], t4 = $[14], text = $[15], weight = $[16]) : ({children, expanded: t0, fontSize: t1, href, icon: IconComponent, id: idProp, linkAs, muted, onClick, padding: t2, selected: t3, gap, space: t4, text, weight, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = gap, $[4] = href, $[5] = idProp, $[6] = linkAs, $[7] = muted, $[8] = onClick, $[9] = restProps, $[10] = t0, $[11] = t1, $[12] = t2, $[13] = t3, $[14] = t4, $[15] = text, $[16] = weight);
2946
- let expandedProp = t0 !== void 0 && t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, selected = t3 !== void 0 && t3, spacing = gap === void 0 ? t4 === void 0 ? 2 : t4 : gap, [rootElement, _setRootElement] = useState(null), t5;
2853
+ let expandedProp = t0 !== void 0 && t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, selected = t3 !== void 0 && t3, spacing = gap === void 0 ? t4 === void 0 ? 2 : t4 : gap, [rootElement, _setRootElement] = (0, react.useState)(null), t5;
2947
2854
  $[17] === Symbol.for("react.memo_cache_sentinel") ? (t5 = (node) => {
2948
- startTransition(() => _setRootElement(node));
2855
+ (0, react.startTransition)(() => _setRootElement(node));
2949
2856
  }, $[17] = t5) : t5 = $[17];
2950
- let setRootElement = t5, treeitemRef = useRef(null), tree = useTree(), { path, registerItem, setExpanded, setFocusedElement } = tree, _id = useId(), id = idProp || _id, t6, t7;
2857
+ let setRootElement = t5, treeitemRef = (0, react.useRef)(null), tree = useTree(), { path, registerItem, setExpanded, setFocusedElement } = tree, _id = (0, react.useId)(), id = idProp || _id, t6, t7;
2951
2858
  if ($[18] !== id || $[19] !== path) {
2952
2859
  let itemPath = path.concat([id || ""]);
2953
2860
  t6 = itemPath, t7 = itemPath.join("/"), $[18] = id, $[19] = path, $[20] = t6, $[21] = t7;
@@ -2979,36 +2886,36 @@ function TreeItem(props) {
2979
2886
  registerItem,
2980
2887
  rootElement,
2981
2888
  selected
2982
- ], $[39] = expanded, $[40] = itemKey, $[41] = registerItem, $[42] = rootElement, $[43] = selected, $[44] = t13, $[45] = t14) : (t13 = $[44], t14 = $[45]), useEffect(t13, t14);
2889
+ ], $[39] = expanded, $[40] = itemKey, $[41] = registerItem, $[42] = rootElement, $[43] = selected, $[44] = t13, $[45] = t14) : (t13 = $[44], t14 = $[45]), (0, react.useEffect)(t13, t14);
2983
2890
  let t15 = IconComponent || children ? "visible" : "hidden", t16;
2984
2891
  $[46] === t15 ? t16 = $[47] : (t16 = {
2985
2892
  visibility: t15,
2986
2893
  pointerEvents: "none"
2987
2894
  }, $[46] = t15, $[47] = t16);
2988
2895
  let t17;
2989
- $[48] !== IconComponent || $[49] !== fontSize || $[50] !== muted || $[51] !== weight ? (t17 = IconComponent && /* @__PURE__ */ jsx(Text, {
2896
+ $[48] !== IconComponent || $[49] !== fontSize || $[50] !== muted || $[51] !== weight ? (t17 = IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
2990
2897
  muted,
2991
2898
  size: fontSize,
2992
2899
  weight,
2993
- children: /* @__PURE__ */ jsx(IconComponent, {})
2900
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconComponent, {})
2994
2901
  }), $[48] = IconComponent, $[49] = fontSize, $[50] = muted, $[51] = weight, $[52] = t17) : t17 = $[52];
2995
2902
  let t18;
2996
- $[53] !== IconComponent || $[54] !== expanded || $[55] !== fontSize || $[56] !== muted || $[57] !== weight ? (t18 = !IconComponent && /* @__PURE__ */ jsx(ToggleArrowText, {
2903
+ $[53] !== IconComponent || $[54] !== expanded || $[55] !== fontSize || $[56] !== muted || $[57] !== weight ? (t18 = !IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToggleArrowText, {
2997
2904
  muted,
2998
2905
  size: fontSize,
2999
2906
  weight,
3000
- children: /* @__PURE__ */ jsx(ToggleArrowRightIcon, { style: { transform: expanded ? "rotate(90deg)" : void 0 } })
2907
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_ToggleArrowRight.ToggleArrowRightIcon, { style: { transform: expanded ? "rotate(90deg)" : void 0 } })
3001
2908
  }), $[53] = IconComponent, $[54] = expanded, $[55] = fontSize, $[56] = muted, $[57] = weight, $[58] = t18) : t18 = $[58];
3002
2909
  let t19;
3003
- $[59] !== spacing || $[60] !== t16 || $[61] !== t17 || $[62] !== t18 ? (t19 = /* @__PURE__ */ jsxs(Box, {
2910
+ $[59] !== spacing || $[60] !== t16 || $[61] !== t17 || $[62] !== t18 ? (t19 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_tabList.W, {
3004
2911
  marginRight: spacing,
3005
2912
  style: t16,
3006
2913
  children: [t17, t18]
3007
2914
  }), $[59] = spacing, $[60] = t16, $[61] = t17, $[62] = t18, $[63] = t19) : t19 = $[63];
3008
2915
  let t20;
3009
- $[64] !== fontSize || $[65] !== muted || $[66] !== text || $[67] !== weight ? (t20 = /* @__PURE__ */ jsx(Box, {
2916
+ $[64] !== fontSize || $[65] !== muted || $[66] !== text || $[67] !== weight ? (t20 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
3010
2917
  flex: 1,
3011
- children: /* @__PURE__ */ jsx(Text, {
2918
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
3012
2919
  muted,
3013
2920
  size: fontSize,
3014
2921
  textOverflow: "ellipsis",
@@ -3017,14 +2924,14 @@ function TreeItem(props) {
3017
2924
  })
3018
2925
  }), $[64] = fontSize, $[65] = muted, $[66] = text, $[67] = weight, $[68] = t20) : t20 = $[68];
3019
2926
  let t21;
3020
- $[69] !== padding || $[70] !== t19 || $[71] !== t20 ? (t21 = /* @__PURE__ */ jsxs(Flex, {
2927
+ $[69] !== padding || $[70] !== t19 || $[71] !== t20 ? (t21 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_tabList.H, {
3021
2928
  padding,
3022
2929
  children: [t19, t20]
3023
2930
  }), $[69] = padding, $[70] = t19, $[71] = t20, $[72] = t21) : t21 = $[72];
3024
2931
  let content = t21;
3025
2932
  if (href) {
3026
2933
  let t22 = selected ? "" : void 0, t23;
3027
- $[73] !== content || $[74] !== expanded || $[75] !== href || $[76] !== linkAs || $[77] !== tabIndex || $[78] !== tree.level ? (t23 = /* @__PURE__ */ jsx(TreeItemBox, {
2934
+ $[73] !== content || $[74] !== expanded || $[75] !== href || $[76] !== linkAs || $[77] !== tabIndex || $[78] !== tree.level ? (t23 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeItemBox, {
3028
2935
  $level: tree.level,
3029
2936
  "aria-expanded": expanded,
3030
2937
  as: linkAs,
@@ -3036,17 +2943,17 @@ function TreeItem(props) {
3036
2943
  children: content
3037
2944
  }), $[73] = content, $[74] = expanded, $[75] = href, $[76] = linkAs, $[77] = tabIndex, $[78] = tree.level, $[79] = t23) : t23 = $[79];
3038
2945
  let t24;
3039
- $[80] !== children || $[81] !== expanded ? (t24 = children && /* @__PURE__ */ jsx(TreeGroup, {
2946
+ $[80] !== children || $[81] !== expanded ? (t24 = children && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeGroup, {
3040
2947
  hidden: !expanded,
3041
2948
  children
3042
2949
  }), $[80] = children, $[81] = expanded, $[82] = t24) : t24 = $[82];
3043
2950
  let t25;
3044
- $[83] !== contextValue || $[84] !== t24 ? (t25 = /* @__PURE__ */ jsx(TreeContext.Provider, {
2951
+ $[83] !== contextValue || $[84] !== t24 ? (t25 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeContext.Provider, {
3045
2952
  value: contextValue,
3046
2953
  children: t24
3047
2954
  }), $[83] = contextValue, $[84] = t24, $[85] = t25) : t25 = $[85];
3048
2955
  let t26;
3049
- return $[86] !== handleClick || $[87] !== id || $[88] !== itemKey || $[89] !== restProps || $[90] !== t22 || $[91] !== t23 || $[92] !== t25 ? (t26 = /* @__PURE__ */ jsxs(StyledTreeItem, {
2956
+ return $[86] !== handleClick || $[87] !== id || $[88] !== itemKey || $[89] !== restProps || $[90] !== t22 || $[91] !== t23 || $[92] !== t25 ? (t26 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledTreeItem, {
3050
2957
  "data-selected": t22,
3051
2958
  "data-tree-id": id,
3052
2959
  "data-tree-key": itemKey,
@@ -3059,24 +2966,24 @@ function TreeItem(props) {
3059
2966
  }), $[86] = handleClick, $[87] = id, $[88] = itemKey, $[89] = restProps, $[90] = t22, $[91] = t23, $[92] = t25, $[93] = t26) : t26 = $[93], t26;
3060
2967
  }
3061
2968
  let t22 = selected ? "" : void 0, t23;
3062
- $[94] !== content || $[95] !== tree.level ? (t23 = /* @__PURE__ */ jsx(TreeItemBox, {
2969
+ $[94] !== content || $[95] !== tree.level ? (t23 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeItemBox, {
3063
2970
  $level: tree.level,
3064
2971
  as: "div",
3065
2972
  "data-ui": "TreeItem__box",
3066
2973
  children: content
3067
2974
  }), $[94] = content, $[95] = tree.level, $[96] = t23) : t23 = $[96];
3068
2975
  let t24;
3069
- $[97] !== children || $[98] !== expanded ? (t24 = children && /* @__PURE__ */ jsx(TreeGroup, {
2976
+ $[97] !== children || $[98] !== expanded ? (t24 = children && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeGroup, {
3070
2977
  expanded,
3071
2978
  children
3072
2979
  }), $[97] = children, $[98] = expanded, $[99] = t24) : t24 = $[99];
3073
2980
  let t25;
3074
- $[100] !== contextValue || $[101] !== t24 ? (t25 = /* @__PURE__ */ jsx(TreeContext.Provider, {
2981
+ $[100] !== contextValue || $[101] !== t24 ? (t25 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeContext.Provider, {
3075
2982
  value: contextValue,
3076
2983
  children: t24
3077
2984
  }), $[100] = contextValue, $[101] = t24, $[102] = t25) : t25 = $[102];
3078
2985
  let t26;
3079
- return $[103] !== expanded || $[104] !== handleClick || $[105] !== handleKeyDown || $[106] !== id || $[107] !== itemKey || $[108] !== restProps || $[109] !== t22 || $[110] !== t23 || $[111] !== t25 || $[112] !== tabIndex ? (t26 = /* @__PURE__ */ jsxs(StyledTreeItem, {
2986
+ return $[103] !== expanded || $[104] !== handleClick || $[105] !== handleKeyDown || $[106] !== id || $[107] !== itemKey || $[108] !== restProps || $[109] !== t22 || $[110] !== t23 || $[111] !== t25 || $[112] !== tabIndex ? (t26 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledTreeItem, {
3080
2987
  "data-selected": t22,
3081
2988
  "data-ui": "TreeItem",
3082
2989
  "data-tree-id": id,
@@ -3091,7 +2998,6 @@ function TreeItem(props) {
3091
2998
  children: [t23, t25]
3092
2999
  }), $[103] = expanded, $[104] = handleClick, $[105] = handleKeyDown, $[106] = id, $[107] = itemKey, $[108] = restProps, $[109] = t22, $[110] = t23, $[111] = t25, $[112] = tabIndex, $[113] = t26) : t26 = $[113], t26;
3093
3000
  }
3094
- TreeItem.displayName = "TreeItem";
3095
- export { Arrow, Autocomplete, Avatar, AvatarCounter, AvatarStack, Badge, BoundaryElementProvider, Box, Breadcrumbs, Button, Card, Checkbox, Code, CodeSkeleton, ConditionalWrapper, Container, Dialog, DialogContext, DialogProvider, ElementQuery, ErrorBoundary, Flex, Grid, Heading, HeadingSkeleton, Hotkeys, Inline, KBD, Label, LabelSkeleton, Layer, LayerProvider, Menu, MenuButton, MenuDivider, MenuGroup, MenuItem, Popover, Portal, PortalProvider, Radio, Select, Skeleton, Spinner, SrOnly, Stack, Switch, Tab, TabList, TabPanel, Text, TextArea, TextInput, TextSkeleton, ThemeColorProvider, ThemeProvider, Toast, ToastProvider, Tooltip, TooltipDelayGroupContext, TooltipDelayGroupProvider, Tree, TreeItem, VirtualList, _ResizeObserver, _elementSizeObserver, _fillCSSObject, _getArrayProp, _getResponsiveSpace, _hasFocus, _isEnterToClickElement, _isScrollable, _raf, _raf2, _responsive, attemptFocus, containsOrEqualsElement, createColorTheme, focusFirstDescendant, focusLastDescendant, hexToRgb, hslToRgb, isFocusable, isHTMLAnchorElement, isHTMLButtonElement, isHTMLElement, isHTMLInputElement, isHTMLSelectElement, isHTMLTextAreaElement, multiply, parseColor, rem, responsiveCodeFontStyle, responsiveHeadingFont, responsiveLabelFont, responsiveTextAlignStyle, responsiveTextFont, rgbToHex, rgbToHsl, rgba, screen, studioTheme, useArrayProp, useBoundaryElement, useClickOutside, useClickOutsideEvent, useCustomValidity, useDialog, useElementRect, useElementSize, useForwardedRef, useGlobalKeyDown, useLayer, useMatchMedia, useMediaIndex, usePortal, usePrefersDark, usePrefersReducedMotion, useRootTheme, useTheme, useTheme_v2, useToast, useTooltipDelayGroup, useTree };
3001
+ exports.Arrow = require_tabList.w, exports.Autocomplete = Autocomplete, exports.Avatar = Avatar, exports.AvatarCounter = AvatarCounter, exports.AvatarStack = AvatarStack, exports.Badge = Badge, exports.BoundaryElementProvider = BoundaryElementProvider, exports.Box = require_tabList.W, exports.Breadcrumbs = Breadcrumbs, exports.Button = require_tabList.z, exports.Card = require_tabList.R, exports.Checkbox = Checkbox, exports.Code = Code, exports.CodeSkeleton = CodeSkeleton, exports.ConditionalWrapper = ConditionalWrapper, exports.Container = Container, exports.Dialog = Dialog, exports.DialogContext = DialogContext, exports.DialogProvider = DialogProvider, exports.ElementQuery = ElementQuery, exports.ErrorBoundary = ErrorBoundary, exports.Flex = require_tabList.H, exports.Grid = require_tabList.D, exports.Heading = Heading, exports.HeadingSkeleton = HeadingSkeleton, exports.Hotkeys = require_tabList.s, exports.Inline = require_tabList.E, exports.KBD = require_tabList.T, exports.Label = Label, exports.LabelSkeleton = LabelSkeleton, exports.Layer = require_tabList.v, exports.LayerProvider = require_tabList.b, exports.Menu = require_tabList.o, exports.MenuButton = MenuButton, exports.MenuDivider = require_tabList.a, exports.MenuGroup = require_tabList.i, exports.MenuItem = require_tabList.r, exports.Popover = require_tabList.m, exports.Portal = require_tabList.g, exports.PortalProvider = require_tabList.h, exports.Radio = Radio, exports.Select = Select, exports.Skeleton = Skeleton, exports.Spinner = require_tabList.V, exports.SrOnly = SrOnly, exports.Stack = require_tabList.p, exports.Switch = Switch, exports.Tab = require_tabList.n, exports.TabList = require_tabList.t, exports.TabPanel = TabPanel, exports.Text = require_tabList.U, exports.TextArea = TextArea, exports.TextInput = require_tabList.f, exports.TextSkeleton = TextSkeleton, exports.ThemeColorProvider = require_tabList.it, exports.ThemeProvider = require_tabList.ot, exports.Toast = Toast, exports.ToastProvider = ToastProvider, exports.Tooltip = require_tabList.c, exports.TooltipDelayGroupContext = require_tabList.u, exports.TooltipDelayGroupProvider = TooltipDelayGroupProvider, exports.Tree = Tree, exports.TreeItem = TreeItem, exports.VirtualList = VirtualList, exports._ResizeObserver = require_tabList.F, exports._elementSizeObserver = require_tabList.P, exports._fillCSSObject = require_tabList.dt, exports._getArrayProp = require_tabList.ft, exports._getResponsiveSpace = require_tabList.pt, exports._hasFocus = _hasFocus, exports._isEnterToClickElement = require_tabList.gt, exports._isScrollable = _isScrollable, exports._raf = _raf, exports._raf2 = _raf2, exports._responsive = require_tabList.mt, exports.attemptFocus = attemptFocus, exports.containsOrEqualsElement = require_tabList._t, exports.createColorTheme = require_tabList.Et, exports.focusFirstDescendant = focusFirstDescendant, exports.focusLastDescendant = focusLastDescendant, exports.hexToRgb = require_tabList.Dt, exports.hslToRgb = require_tabList.Ot, exports.isFocusable = isFocusable, exports.isHTMLAnchorElement = require_tabList.vt, exports.isHTMLButtonElement = require_tabList.yt, exports.isHTMLElement = require_tabList.bt, exports.isHTMLInputElement = require_tabList.xt, exports.isHTMLSelectElement = require_tabList.St, exports.isHTMLTextAreaElement = require_tabList.Ct, exports.multiply = require_tabList.kt, exports.parseColor = require_tabList.At, exports.rem = require_tabList.ht, exports.responsiveCodeFontStyle = responsiveCodeFontStyle, exports.responsiveHeadingFont = responsiveHeadingFont, exports.responsiveLabelFont = responsiveLabelFont, exports.responsiveTextAlignStyle = require_tabList.lt, exports.responsiveTextFont = require_tabList.ct, exports.rgbToHex = require_tabList.jt, exports.rgbToHsl = require_tabList.Mt, exports.rgba = require_tabList.Nt, exports.screen = require_tabList.Pt, exports.studioTheme = require_tabList.Ft, exports.useArrayProp = useArrayProp, exports.useBoundaryElement = require_tabList.x, exports.useClickOutside = useClickOutside, exports.useClickOutsideEvent = require_tabList.L, exports.useCustomValidity = require_tabList.I, exports.useDialog = useDialog, exports.useElementRect = useElementRect, exports.useElementSize = require_tabList.N, exports.useForwardedRef = useForwardedRef, exports.useGlobalKeyDown = require_tabList.M, exports.useLayer = require_tabList.y, exports.useMatchMedia = require_tabList.j, exports.useMediaIndex = require_tabList.A, exports.usePortal = require_tabList._, exports.usePrefersDark = require_tabList.k, exports.usePrefersReducedMotion = require_tabList.O, exports.useRootTheme = require_tabList.at, exports.useTheme = require_tabList.nt, exports.useTheme_v2 = require_tabList.rt, exports.useToast = useToast, exports.useTooltipDelayGroup = require_tabList.l, exports.useTree = useTree;
3096
3002
 
3097
- //# sourceMappingURL=index.mjs.map
3003
+ //# sourceMappingURL=index.cjs.map