@sanity/ui 3.0.12 → 3.0.14

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 (47) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +805 -609
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-es/_visual-editing.mjs +807 -611
  4. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  5. package/dist/index.d.mts +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +184 -144
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +185 -145
  10. package/dist/index.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/src/core/components/autocomplete/autocomplete.tsx +10 -14
  13. package/src/core/components/breadcrumbs/breadcrumbs.tsx +3 -2
  14. package/src/core/components/dialog/dialog.tsx +10 -14
  15. package/src/core/components/hotkeys/hotkeys.tsx +2 -2
  16. package/src/core/components/menu/menuGroup.tsx +4 -2
  17. package/src/core/components/menu/menuItem.tsx +4 -4
  18. package/src/core/components/skeleton/skeleton.tsx +4 -4
  19. package/src/core/components/skeleton/textSkeleton.tsx +5 -6
  20. package/src/core/components/tree/tree.tsx +1 -0
  21. package/src/core/hooks/index.ts +1 -1
  22. package/src/core/hooks/useArrayProp.ts +3 -17
  23. package/src/core/hooks/useClickOutside.ts +1 -0
  24. package/src/core/primitives/avatar/avatar.tsx +15 -16
  25. package/src/core/primitives/avatar/avatarCounter.tsx +14 -17
  26. package/src/core/primitives/avatar/avatarStack.tsx +2 -3
  27. package/src/core/primitives/badge/badge.tsx +3 -3
  28. package/src/core/primitives/box/box.tsx +26 -26
  29. package/src/core/primitives/button/button.tsx +11 -12
  30. package/src/core/primitives/card/card.tsx +8 -8
  31. package/src/core/primitives/code/code.tsx +8 -2
  32. package/src/core/primitives/container/container.tsx +2 -2
  33. package/src/core/primitives/flex/flex.tsx +6 -6
  34. package/src/core/primitives/grid/grid.tsx +9 -9
  35. package/src/core/primitives/heading/heading.tsx +3 -3
  36. package/src/core/primitives/inline/inline.tsx +2 -2
  37. package/src/core/primitives/kbd/kbd.tsx +2 -2
  38. package/src/core/primitives/label/label.tsx +3 -3
  39. package/src/core/primitives/popover/popover.tsx +7 -6
  40. package/src/core/primitives/select/select.tsx +6 -5
  41. package/src/core/primitives/stack/stack.tsx +2 -2
  42. package/src/core/primitives/text/text.tsx +3 -3
  43. package/src/core/primitives/textArea/textArea.tsx +6 -5
  44. package/src/core/primitives/textInput/textInput.tsx +6 -5
  45. package/src/core/primitives/tooltip/tooltip.tsx +4 -2
  46. package/src/core/utils/layer/layerProvider.tsx +3 -2
  47. package/src/core/utils/virtualList/virtualList.tsx +2 -0
@@ -1,7 +1,7 @@
1
1
  import { buildTheme, createColorTheme as createColorTheme$1, hexToRgb as hexToRgb$1, hslToRgb as hslToRgb$1, multiply as multiply$1, parseColor as parseColor$1, rgbToHex as rgbToHex$1, rgbToHsl as rgbToHsl$1, rgba as rgba$1, screen as screen$1, getTheme_v2, getScopedTheme } from "@sanity/ui/theme";
2
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
3
3
  import { c } from "react-compiler-runtime";
4
- import { useState, useEffect, useDebugValue, useSyncExternalStore, createContext, useContext, forwardRef, useId, Children, isValidElement, cloneElement, useRef, useImperativeHandle, lazy, Suspense, useLayoutEffect } from "react";
4
+ import { createContext, useContext, forwardRef, useId, useState, useEffect, Children, isValidElement, cloneElement, useDebugValue, useSyncExternalStore, useRef, useImperativeHandle, lazy, Suspense, useLayoutEffect } from "react";
5
5
  import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1, css, styled, keyframes } from "styled-components";
6
6
  import ReactIs, { isValidElementType } from "react-is";
7
7
  import { SpinnerIcon, CheckmarkIcon, RemoveIcon, ChevronDownIcon, CloseIcon, ChevronRightIcon } from "@sanity/icons";
@@ -195,125 +195,6 @@ function responsiveTextAlignStyle(props) {
195
195
  function responsiveTextFont(props) {
196
196
  return responsiveFont("text", props);
197
197
  }
198
- function useArrayProp(val, defaultVal) {
199
- const $ = c(3);
200
- let t0;
201
- $[0] !== defaultVal || $[1] !== val ? (t0 = () => [_getArrayProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2];
202
- const [t1, setCache] = useState(t0), [cachedVal, cachedHash] = t1, hash = JSON.stringify(val ?? defaultVal);
203
- return hash !== cachedHash && setCache([_getArrayProp(val, defaultVal), hash]), cachedVal;
204
- }
205
- function useClickOutsideEvent(listener, t0, boundaryElement) {
206
- const $ = c(9), elementsArg = t0 === void 0 ? _temp$a : t0;
207
- let t1;
208
- $[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
209
- if (!listener)
210
- return;
211
- const target = evt.target;
212
- if (!(target instanceof Node))
213
- return;
214
- const resolvedBoundaryElement = boundaryElement?.();
215
- if (resolvedBoundaryElement && !resolvedBoundaryElement.contains(target))
216
- return;
217
- const elements = elementsArg().flat();
218
- for (const el of elements)
219
- if (el && (target === el || el.contains(target)))
220
- return;
221
- listener(evt);
222
- }, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
223
- const onEvent = useEffectEvent(t1), hasListener = !!listener;
224
- let t2;
225
- $[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
226
- if (!hasListener)
227
- return;
228
- const handleEvent = (evt_0) => onEvent(evt_0);
229
- return document.addEventListener("mousedown", handleEvent), () => {
230
- document.removeEventListener("mousedown", handleEvent);
231
- };
232
- }, $[4] = hasListener, $[5] = onEvent, $[6] = t2) : t2 = $[6];
233
- let t3;
234
- $[7] !== hasListener ? (t3 = [hasListener], $[7] = hasListener, $[8] = t3) : t3 = $[8], useEffect(t2, t3), useDebugValue(listener ? "MouseDown On" : "MouseDown Off");
235
- }
236
- function _temp$a() {
237
- return EMPTY_ARRAY;
238
- }
239
- function useCustomValidity(ref, customValidity) {
240
- const $ = c(4);
241
- let t0, t1;
242
- $[0] !== customValidity || $[1] !== ref ? (t0 = () => {
243
- ref.current?.setCustomValidity(customValidity || "");
244
- }, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), useEffect(t0, t1);
245
- }
246
- const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
247
- function _createElementRectValueListener() {
248
- return {
249
- subscribe(element, subscriber) {
250
- const resizeObserver = new _ResizeObserver(([entry]) => {
251
- subscriber({
252
- _contentRect: entry.contentRect,
253
- border: {
254
- width: entry.borderBoxSize[0].inlineSize,
255
- height: entry.borderBoxSize[0].blockSize
256
- },
257
- content: {
258
- width: entry.contentRect.width,
259
- height: entry.contentRect.height
260
- }
261
- });
262
- });
263
- return resizeObserver.observe(element), () => {
264
- resizeObserver.unobserve(element), resizeObserver.disconnect();
265
- };
266
- }
267
- };
268
- }
269
- function _createElementSizeObserver() {
270
- const disposeCache = /* @__PURE__ */ new WeakMap(), subscribersCache = /* @__PURE__ */ new WeakMap();
271
- return {
272
- subscribe(element, subscriber) {
273
- const subscribers = subscribersCache.get(element) || [];
274
- let dispose = disposeCache.get(element);
275
- return subscribersCache.has(element) || (subscribersCache.set(element, subscribers), dispose = _createElementRectValueListener().subscribe(element, (elementRect) => {
276
- for (const sub of subscribers)
277
- sub(elementRect);
278
- })), subscribers.push(subscriber), () => {
279
- const idx = subscribers.indexOf(subscriber);
280
- idx > -1 && subscribers.splice(idx, 1), subscribers.length === 0 && dispose && dispose();
281
- };
282
- }
283
- };
284
- }
285
- function useElementSize(element) {
286
- const $ = c(3), [size2, setSize] = useState(null);
287
- let t0, t1;
288
- return $[0] !== element ? (t0 = () => {
289
- if (element)
290
- return _elementSizeObserver.subscribe(element, setSize);
291
- }, t1 = [element], $[0] = element, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1), size2;
292
- }
293
- function useGlobalKeyDown(onKeyDown) {
294
- const $ = c(5);
295
- let t0;
296
- $[0] !== onKeyDown ? (t0 = (event) => onKeyDown(event), $[0] = onKeyDown, $[1] = t0) : t0 = $[1];
297
- const handleKeyDown = useEffectEvent(t0);
298
- let t1;
299
- $[2] !== handleKeyDown ? (t1 = () => {
300
- const handler = (event_0) => handleKeyDown(event_0);
301
- return window.addEventListener("keydown", handler), () => window.removeEventListener("keydown", handler);
302
- }, $[2] = handleKeyDown, $[3] = t1) : t1 = $[3];
303
- let t2;
304
- $[4] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[4] = t2) : t2 = $[4], useEffect(t1, t2);
305
- }
306
- function useMatchMedia(mediaQueryString, getServerSnapshot2) {
307
- const $ = c(4);
308
- useDebugValue(mediaQueryString);
309
- let t0;
310
- $[0] !== mediaQueryString ? (t0 = (onStoreChange) => {
311
- const media = window.matchMedia(mediaQueryString);
312
- return media.addEventListener("change", onStoreChange), () => media.removeEventListener("change", onStoreChange);
313
- }, $[0] = mediaQueryString, $[1] = t0) : t0 = $[1];
314
- let t1;
315
- return $[2] !== mediaQueryString ? (t1 = () => window.matchMedia(mediaQueryString).matches, $[2] = mediaQueryString, $[3] = t1) : t1 = $[3], useSyncExternalStore(t0, t1, getServerSnapshot2);
316
- }
317
198
  function getGlobalScope() {
318
199
  if (typeof globalThis < "u") return globalThis;
319
200
  if (typeof window < "u") return window;
@@ -394,75 +275,6 @@ function useTheme_v2() {
394
275
  let t1;
395
276
  return $[0] !== t0 ? (t1 = getTheme_v2(t0), $[0] = t0, $[1] = t1) : t1 = $[1], t1;
396
277
  }
397
- function _getMediaQuery(media, index) {
398
- return index === 0 ? `screen and (max-width: ${media[index] - 1}px)` : index === media.length ? `screen and (min-width: ${media[index - 1]}px)` : `screen and (min-width: ${media[index - 1]}px) and (max-width: ${media[index] - 1}px)`;
399
- }
400
- function _createMediaStore(media) {
401
- const mediaLen = media.length;
402
- let sizes;
403
- const getSizes = () => {
404
- if (!sizes) {
405
- sizes = [];
406
- for (let index = mediaLen; index > -1; index -= 1) {
407
- const mediaQuery = _getMediaQuery(media, index);
408
- sizes.push({
409
- index,
410
- mq: window.matchMedia(mediaQuery)
411
- });
412
- }
413
- }
414
- return sizes;
415
- };
416
- return {
417
- getSnapshot: () => {
418
- for (const {
419
- index,
420
- mq
421
- } of getSizes())
422
- if (mq.matches) return index;
423
- return 0;
424
- },
425
- subscribe: (onStoreChange) => {
426
- const disposeFns = [];
427
- for (const {
428
- mq
429
- } of getSizes()) {
430
- const handleChange = () => {
431
- mq.matches && onStoreChange();
432
- };
433
- mq.addEventListener("change", handleChange), disposeFns.push(() => mq.removeEventListener("change", handleChange));
434
- }
435
- return () => {
436
- for (const disposeFn of disposeFns)
437
- disposeFn();
438
- };
439
- }
440
- };
441
- }
442
- function getServerSnapshot() {
443
- return 0;
444
- }
445
- function useMediaIndex() {
446
- const $ = c(2), {
447
- media
448
- } = useTheme_v2();
449
- let t0;
450
- $[0] !== media ? (t0 = _createMediaStore(media), $[0] = media, $[1] = t0) : t0 = $[1];
451
- const store = t0;
452
- return useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
453
- }
454
- function usePrefersDark(t0) {
455
- return useMatchMedia("(prefers-color-scheme: dark)", t0 === void 0 ? _temp$9 : t0);
456
- }
457
- function _temp$9() {
458
- return !1;
459
- }
460
- function usePrefersReducedMotion(t0) {
461
- return useMatchMedia("(prefers-reduced-motion: reduce)", t0 === void 0 ? _temp$8 : t0);
462
- }
463
- function _temp$8() {
464
- return !1;
465
- }
466
278
  function responsiveBorderStyle() {
467
279
  return [border, borderTop, borderRight, borderBottom, borderLeft];
468
280
  }
@@ -1176,7 +988,7 @@ const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
1176
988
  displayName: "StyledLabel",
1177
989
  componentId: "sc-1luap7z-0"
1178
990
  })(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), Label = forwardRef(function(props, ref) {
1179
- const $ = c(22);
991
+ const $ = c(26);
1180
992
  let accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
1181
993
  $[0] !== props ? ({
1182
994
  accent,
@@ -1197,9 +1009,12 @@ const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
1197
1009
  let t22;
1198
1010
  $[11] !== children ? (t22 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t22) : t22 = $[12], children = t22;
1199
1011
  }
1200
- const t2 = useArrayProp(align), t3 = useArrayProp(size2);
1012
+ let t2;
1013
+ $[13] !== align ? (t2 = _getArrayProp(align), $[13] = align, $[14] = t2) : t2 = $[14];
1014
+ let t3;
1015
+ $[15] !== size2 ? (t3 = _getArrayProp(size2), $[15] = size2, $[16] = t3) : t3 = $[16];
1201
1016
  let t4;
1202
- return $[13] !== accent || $[14] !== children || $[15] !== muted || $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== weight ? (t4 = /* @__PURE__ */ jsx(StyledLabel, { "data-ui": "Label", ...restProps, $accent: accent, $align: t2, $muted: muted, $size: t3, $weight: weight, ref, children }), $[13] = accent, $[14] = children, $[15] = muted, $[16] = ref, $[17] = restProps, $[18] = t2, $[19] = t3, $[20] = weight, $[21] = t4) : t4 = $[21], t4;
1017
+ return $[17] !== accent || $[18] !== children || $[19] !== muted || $[20] !== ref || $[21] !== restProps || $[22] !== t2 || $[23] !== t3 || $[24] !== weight ? (t4 = /* @__PURE__ */ jsx(StyledLabel, { "data-ui": "Label", ...restProps, $accent: accent, $align: t2, $muted: muted, $size: t3, $weight: weight, ref, children }), $[17] = accent, $[18] = children, $[19] = muted, $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3, $[24] = weight, $[25] = t4) : t4 = $[25], t4;
1203
1018
  });
1204
1019
  Label.displayName = "ForwardRef(Label)";
1205
1020
  const avatarStyle = {
@@ -1369,7 +1184,7 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
1369
1184
  displayName: "AvatarImage",
1370
1185
  componentId: "sc-1rj7kl0-6"
1371
1186
  })(avatarStyle.image), Avatar = forwardRef(function(props, ref) {
1372
- const $ = c(52);
1187
+ const $ = c(46);
1373
1188
  let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
1374
1189
  $[0] !== props ? ({
1375
1190
  __unstable_hideInnerStroke,
@@ -1387,7 +1202,7 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
1387
1202
  } = 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) : (__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]);
1388
1203
  const color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, {
1389
1204
  avatar
1390
- } = useTheme_v2(), as = ReactIs.isValidElementType(asProp) ? asProp : "div", size2 = useArrayProp(sizeProp), _sizeRem = (avatar.sizes[size2[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = useId(), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = useState(!1), imageId = `avatar-image-${elementId}`;
1205
+ } = useTheme_v2(), as = ReactIs.isValidElementType(asProp) ? asProp : "div", size2 = _getArrayProp(sizeProp), _sizeRem = (avatar.sizes[size2[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = useId(), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = useState(!1), imageId = `avatar-image-${elementId}`;
1391
1206
  let t3, t4;
1392
1207
  $[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t3 = () => {
1393
1208
  if (arrowPosition === arrowPositionProp)
@@ -1403,30 +1218,26 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
1403
1218
  $[20] !== onImageLoadError ? (t7 = () => {
1404
1219
  setImageFailed(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
1405
1220
  }, $[20] = onImageLoadError, $[21] = t7) : t7 = $[21];
1406
- const handleImageError = t7;
1407
- let t8;
1408
- $[22] !== size2 ? (t8 = size2.map(_temp$7), $[22] = size2, $[23] = t8) : t8 = $[23];
1409
- const initialsSize = t8, t9 = typeof as == "string" ? as : void 0;
1221
+ const handleImageError = t7, T0 = StyledAvatar, t8 = typeof as == "string" ? as : void 0, t9 = "Avatar";
1410
1222
  let t10;
1411
- $[24] !== color ? (t10 = /* @__PURE__ */ jsx(Arrow$1, { children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[24] = color, $[25] = t10) : t10 = $[25];
1223
+ $[22] !== color ? (t10 = /* @__PURE__ */ jsx(Arrow$1, { children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[22] = color, $[23] = t10) : t10 = $[23];
1412
1224
  let t11;
1413
- $[26] !== __unstable_hideInnerStroke || $[27] !== _radius || $[28] !== _sizeRem || $[29] !== handleImageError || $[30] !== imageFailed || $[31] !== imageId || $[32] !== src ? (t11 = !imageFailed && src && /* @__PURE__ */ jsxs(AvatarImage, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
1225
+ $[24] !== __unstable_hideInnerStroke || $[25] !== _radius || $[26] !== _sizeRem || $[27] !== handleImageError || $[28] !== imageFailed || $[29] !== imageId || $[30] !== src ? (t11 = !imageFailed && src && /* @__PURE__ */ jsxs(AvatarImage, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
1414
1226
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("pattern", { id: imageId, patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx("image", { href: src, width: "1", height: "1", onError: handleImageError }) }) }),
1415
1227
  /* @__PURE__ */ jsx("circle", { cx: _radius, cy: _radius, r: _radius, fill: `url(#${imageId})` }),
1416
1228
  !__unstable_hideInnerStroke && /* @__PURE__ */ jsx(BgStroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" }),
1417
1229
  /* @__PURE__ */ jsx(Stroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" })
1418
- ] }), $[26] = __unstable_hideInnerStroke, $[27] = _radius, $[28] = _sizeRem, $[29] = handleImageError, $[30] = imageFailed, $[31] = imageId, $[32] = src, $[33] = t11) : t11 = $[33];
1419
- let t12;
1420
- $[34] !== imageFailed || $[35] !== initials || $[36] !== initialsSize || $[37] !== src ? (t12 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Initials, { children: /* @__PURE__ */ jsx(InitialsLabel, { forwardedAs: "span", size: initialsSize, weight: "medium", children: initials }) }) }), $[34] = imageFailed, $[35] = initials, $[36] = initialsSize, $[37] = src, $[38] = t12) : t12 = $[38];
1230
+ ] }), $[24] = __unstable_hideInnerStroke, $[25] = _radius, $[26] = _sizeRem, $[27] = handleImageError, $[28] = imageFailed, $[29] = imageId, $[30] = src, $[31] = t11) : t11 = $[31];
1231
+ const t12 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Initials, { children: /* @__PURE__ */ jsx(InitialsLabel, { forwardedAs: "span", size: size2.map(_temp$a), weight: "medium", children: initials }) }) });
1421
1232
  let t13;
1422
- return $[39] !== arrowPosition || $[40] !== as || $[41] !== color || $[42] !== ref || $[43] !== restProps || $[44] !== size2 || $[45] !== status || $[46] !== t10 || $[47] !== t11 || $[48] !== t12 || $[49] !== t9 || $[50] !== title ? (t13 = /* @__PURE__ */ jsxs(StyledAvatar, { as, "data-as": t9, "data-ui": "Avatar", ...restProps, $color: color, $size: size2, "aria-label": title, "data-arrow-position": arrowPosition, "data-status": status, ref, title, children: [
1233
+ return $[32] !== T0 || $[33] !== arrowPosition || $[34] !== as || $[35] !== color || $[36] !== ref || $[37] !== restProps || $[38] !== size2 || $[39] !== status || $[40] !== t10 || $[41] !== t11 || $[42] !== t12 || $[43] !== t8 || $[44] !== title ? (t13 = /* @__PURE__ */ jsxs(T0, { as, "data-as": t8, "data-ui": t9, ...restProps, $color: color, $size: size2, "aria-label": title, "data-arrow-position": arrowPosition, "data-status": status, ref, title, children: [
1423
1234
  t10,
1424
1235
  t11,
1425
1236
  t12
1426
- ] }), $[39] = arrowPosition, $[40] = as, $[41] = color, $[42] = ref, $[43] = restProps, $[44] = size2, $[45] = status, $[46] = t10, $[47] = t11, $[48] = t12, $[49] = t9, $[50] = title, $[51] = t13) : t13 = $[51], t13;
1237
+ ] }), $[32] = T0, $[33] = arrowPosition, $[34] = as, $[35] = color, $[36] = ref, $[37] = restProps, $[38] = size2, $[39] = status, $[40] = t10, $[41] = t11, $[42] = t12, $[43] = t8, $[44] = title, $[45] = t13) : t13 = $[45], t13;
1427
1238
  });
1428
1239
  Avatar.displayName = "ForwardRef(Avatar)";
1429
- function _temp$7(s) {
1240
+ function _temp$a(s) {
1430
1241
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
1431
1242
  }
1432
1243
  function _responsiveAvatarCounterSizeStyle(props) {
@@ -1469,20 +1280,23 @@ const StyledAvatarCounter = /* @__PURE__ */ styled.div.withConfig({
1469
1280
  displayName: "StyledAvatarCounter",
1470
1281
  componentId: "sc-1ydx86y-0"
1471
1282
  })(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = forwardRef(function(props, ref) {
1472
- const $ = c(9), {
1283
+ const $ = c(20), {
1473
1284
  count,
1474
1285
  size: t0
1475
- } = props, size2 = useArrayProp(t0 === void 0 ? 1 : t0);
1476
- let t1;
1477
- $[0] !== size2 ? (t1 = size2.map(_temp$6), $[0] = size2, $[1] = t1) : t1 = $[1];
1478
- const fontSize2 = t1;
1479
- let t2;
1480
- $[2] !== count || $[3] !== fontSize2 ? (t2 = /* @__PURE__ */ jsx(Label, { as: "span", size: fontSize2, weight: "medium", children: count }), $[2] = count, $[3] = fontSize2, $[4] = t2) : t2 = $[4];
1481
- let t3;
1482
- return $[5] !== ref || $[6] !== size2 || $[7] !== t2 ? (t3 = /* @__PURE__ */ jsx(StyledAvatarCounter, { $size: size2, "data-ui": "AvatarCounter", ref, children: t2 }), $[5] = ref, $[6] = size2, $[7] = t2, $[8] = t3) : t3 = $[8], t3;
1286
+ } = props, sizeProp = t0 === void 0 ? 1 : t0;
1287
+ let T0, T1, t1, t2, t3, t4, t5;
1288
+ if ($[0] !== ref || $[1] !== sizeProp) {
1289
+ const size2 = _getArrayProp(sizeProp);
1290
+ T1 = StyledAvatarCounter, t3 = size2, t4 = "AvatarCounter", t5 = ref, T0 = Label, t1 = "span", t2 = size2.map(_temp$9), $[0] = ref, $[1] = sizeProp, $[2] = T0, $[3] = T1, $[4] = t1, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5;
1291
+ } else
1292
+ T0 = $[2], T1 = $[3], t1 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8];
1293
+ let t6;
1294
+ $[9] !== T0 || $[10] !== count || $[11] !== t1 || $[12] !== t2 ? (t6 = /* @__PURE__ */ jsx(T0, { as: t1, size: t2, weight: "medium", children: count }), $[9] = T0, $[10] = count, $[11] = t1, $[12] = t2, $[13] = t6) : t6 = $[13];
1295
+ let t7;
1296
+ return $[14] !== T1 || $[15] !== t3 || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ jsx(T1, { $size: t3, "data-ui": t4, ref: t5, children: t6 }), $[14] = T1, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19], t7;
1483
1297
  });
1484
1298
  AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
1485
- function _temp$6(s) {
1299
+ function _temp$9(s) {
1486
1300
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
1487
1301
  }
1488
1302
  const BASE_STYLES = css`
@@ -1517,7 +1331,7 @@ const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
1517
1331
  displayName: "StyledAvatarStack",
1518
1332
  componentId: "sc-cysmbb-0"
1519
1333
  })(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = forwardRef(function(props, ref) {
1520
- const $ = c(22);
1334
+ const $ = c(38);
1521
1335
  let childrenProp, restProps, t0, t1;
1522
1336
  $[0] !== props ? ({
1523
1337
  children: childrenProp,
@@ -1525,29 +1339,33 @@ const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
1525
1339
  size: t1,
1526
1340
  ...restProps
1527
1341
  } = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1) : (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]);
1528
- const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, children = Children.toArray(childrenProp).filter(isValidElement), maxLength = Math.max(maxLengthProp, 0), size2 = useArrayProp(sizeProp), len = children.length, visibleCount = maxLength - 1, extraCount = len - visibleCount, visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children, T0 = StyledAvatarStack, t2 = "AvatarStack";
1529
- let t3;
1530
- $[5] !== len || $[6] !== size2 ? (t3 = len === 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, { count: len, size: size2 }) }), $[5] = len, $[6] = size2, $[7] = t3) : t3 = $[7];
1531
- let t4;
1532
- $[8] !== extraCount || $[9] !== len || $[10] !== size2 ? (t4 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, { count: extraCount, size: size2 }) }), $[8] = extraCount, $[9] = len, $[10] = size2, $[11] = t4) : t4 = $[11];
1533
- let t5;
1534
- $[12] !== size2 ? (t5 = (child, childIndex) => /* @__PURE__ */ jsx("div", { children: cloneElement(child, {
1535
- size: size2
1536
- }) }, String(childIndex)), $[12] = size2, $[13] = t5) : t5 = $[13];
1537
- const t6 = visibleChildren.map(t5);
1538
- let t7;
1539
- return $[14] !== T0 || $[15] !== ref || $[16] !== restProps || $[17] !== size2 || $[18] !== t3 || $[19] !== t4 || $[20] !== t6 ? (t7 = /* @__PURE__ */ jsxs(T0, { "data-ui": t2, ...restProps, ref, $size: size2, children: [
1540
- t3,
1541
- t4,
1542
- t6
1543
- ] }), $[14] = T0, $[15] = ref, $[16] = restProps, $[17] = size2, $[18] = t3, $[19] = t4, $[20] = t6, $[21] = t7) : t7 = $[21], t7;
1342
+ const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1;
1343
+ let T0, t2, t3, t4, t5, t6, t7, t8;
1344
+ if ($[5] !== childrenProp || $[6] !== maxLengthProp || $[7] !== ref || $[8] !== restProps || $[9] !== sizeProp) {
1345
+ const children = Children.toArray(childrenProp).filter(isValidElement), maxLength = Math.max(maxLengthProp, 0);
1346
+ let t92;
1347
+ $[18] !== sizeProp ? (t92 = _getArrayProp(sizeProp), $[18] = sizeProp, $[19] = t92) : t92 = $[19];
1348
+ const size2 = t92, len = children.length, visibleCount = maxLength - 1, extraCount = len - visibleCount, visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children;
1349
+ T0 = StyledAvatarStack, t2 = "AvatarStack", t3 = restProps, t4 = ref, t5 = size2, $[20] !== len || $[21] !== size2 ? (t6 = len === 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, { count: len, size: size2 }) }), $[20] = len, $[21] = size2, $[22] = t6) : t6 = $[22], $[23] !== extraCount || $[24] !== len || $[25] !== size2 ? (t7 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, { count: extraCount, size: size2 }) }), $[23] = extraCount, $[24] = len, $[25] = size2, $[26] = t7) : t7 = $[26];
1350
+ let t10;
1351
+ $[27] !== size2 ? (t10 = (child, childIndex) => /* @__PURE__ */ jsx("div", { children: cloneElement(child, {
1352
+ size: size2
1353
+ }) }, String(childIndex)), $[27] = size2, $[28] = t10) : t10 = $[28], 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;
1354
+ } else
1355
+ T0 = $[10], t2 = $[11], t3 = $[12], t4 = $[13], t5 = $[14], t6 = $[15], t7 = $[16], t8 = $[17];
1356
+ let t9;
1357
+ return $[29] !== T0 || $[30] !== t2 || $[31] !== t3 || $[32] !== t4 || $[33] !== t5 || $[34] !== t6 || $[35] !== t7 || $[36] !== t8 ? (t9 = /* @__PURE__ */ jsxs(T0, { "data-ui": t2, ...t3, ref: t4, $size: t5, children: [
1358
+ t6,
1359
+ t7,
1360
+ t8
1361
+ ] }), $[29] = T0, $[30] = t2, $[31] = t3, $[32] = t4, $[33] = t5, $[34] = t6, $[35] = t7, $[36] = t8, $[37] = t9) : t9 = $[37], t9;
1544
1362
  });
1545
1363
  AvatarStack.displayName = "ForwardRef(AvatarStack)";
1546
1364
  const StyledBox = /* @__PURE__ */ styled.div.withConfig({
1547
1365
  displayName: "StyledBox",
1548
1366
  componentId: "sc-1hhky9f-0"
1549
1367
  })(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = forwardRef(function(props, ref) {
1550
- const $ = c(59);
1368
+ const $ = c(109);
1551
1369
  let column, columnEnd, columnStart, flex, height, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, restProps, row, rowEnd, rowStart, sizing, t0, t1, t2, t3;
1552
1370
  $[0] !== props ? ({
1553
1371
  as: t0,
@@ -1578,9 +1396,59 @@ const StyledBox = /* @__PURE__ */ styled.div.withConfig({
1578
1396
  sizing,
1579
1397
  ...restProps
1580
1398
  } = props, $[0] = props, $[1] = column, $[2] = columnEnd, $[3] = columnStart, $[4] = flex, $[5] = height, $[6] = marginBottom, $[7] = marginLeft, $[8] = marginRight, $[9] = marginTop, $[10] = marginX, $[11] = marginY, $[12] = overflow, $[13] = paddingBottom, $[14] = paddingLeft, $[15] = paddingRight, $[16] = paddingTop, $[17] = paddingX, $[18] = paddingY, $[19] = restProps, $[20] = row, $[21] = rowEnd, $[22] = rowStart, $[23] = sizing, $[24] = t0, $[25] = t1, $[26] = t2, $[27] = t3) : (column = $[1], columnEnd = $[2], columnStart = $[3], flex = $[4], height = $[5], marginBottom = $[6], marginLeft = $[7], marginRight = $[8], marginTop = $[9], marginX = $[10], marginY = $[11], overflow = $[12], paddingBottom = $[13], paddingLeft = $[14], paddingRight = $[15], paddingTop = $[16], paddingX = $[17], paddingY = $[18], restProps = $[19], row = $[20], rowEnd = $[21], rowStart = $[22], sizing = $[23], t0 = $[24], t1 = $[25], t2 = $[26], t3 = $[27]);
1581
- const asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, t4 = typeof asProp == "string" ? asProp : void 0, t5 = useArrayProp(column), t6 = useArrayProp(columnStart), t7 = useArrayProp(columnEnd), t8 = useArrayProp(display), t9 = useArrayProp(flex), t10 = useArrayProp(height), t11 = useArrayProp(margin), t12 = useArrayProp(marginX), t13 = useArrayProp(marginY), t14 = useArrayProp(marginTop), t15 = useArrayProp(marginRight), t16 = useArrayProp(marginBottom), t17 = useArrayProp(marginLeft), t18 = useArrayProp(overflow), t19 = useArrayProp(padding), t20 = useArrayProp(paddingX), t21 = useArrayProp(paddingY), t22 = useArrayProp(paddingTop), t23 = useArrayProp(paddingRight), t24 = useArrayProp(paddingBottom), t25 = useArrayProp(paddingLeft), t26 = useArrayProp(row), t27 = useArrayProp(rowStart), t28 = useArrayProp(rowEnd), t29 = useArrayProp(sizing);
1399
+ const asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, t4 = typeof asProp == "string" ? asProp : void 0;
1400
+ let t5;
1401
+ $[28] !== column ? (t5 = _getArrayProp(column), $[28] = column, $[29] = t5) : t5 = $[29];
1402
+ let t6;
1403
+ $[30] !== columnStart ? (t6 = _getArrayProp(columnStart), $[30] = columnStart, $[31] = t6) : t6 = $[31];
1404
+ let t7;
1405
+ $[32] !== columnEnd ? (t7 = _getArrayProp(columnEnd), $[32] = columnEnd, $[33] = t7) : t7 = $[33];
1406
+ let t8;
1407
+ $[34] !== display ? (t8 = _getArrayProp(display), $[34] = display, $[35] = t8) : t8 = $[35];
1408
+ let t9;
1409
+ $[36] !== flex ? (t9 = _getArrayProp(flex), $[36] = flex, $[37] = t9) : t9 = $[37];
1410
+ let t10;
1411
+ $[38] !== height ? (t10 = _getArrayProp(height), $[38] = height, $[39] = t10) : t10 = $[39];
1412
+ let t11;
1413
+ $[40] !== margin ? (t11 = _getArrayProp(margin), $[40] = margin, $[41] = t11) : t11 = $[41];
1414
+ let t12;
1415
+ $[42] !== marginX ? (t12 = _getArrayProp(marginX), $[42] = marginX, $[43] = t12) : t12 = $[43];
1416
+ let t13;
1417
+ $[44] !== marginY ? (t13 = _getArrayProp(marginY), $[44] = marginY, $[45] = t13) : t13 = $[45];
1418
+ let t14;
1419
+ $[46] !== marginTop ? (t14 = _getArrayProp(marginTop), $[46] = marginTop, $[47] = t14) : t14 = $[47];
1420
+ let t15;
1421
+ $[48] !== marginRight ? (t15 = _getArrayProp(marginRight), $[48] = marginRight, $[49] = t15) : t15 = $[49];
1422
+ let t16;
1423
+ $[50] !== marginBottom ? (t16 = _getArrayProp(marginBottom), $[50] = marginBottom, $[51] = t16) : t16 = $[51];
1424
+ let t17;
1425
+ $[52] !== marginLeft ? (t17 = _getArrayProp(marginLeft), $[52] = marginLeft, $[53] = t17) : t17 = $[53];
1426
+ let t18;
1427
+ $[54] !== overflow ? (t18 = _getArrayProp(overflow), $[54] = overflow, $[55] = t18) : t18 = $[55];
1428
+ let t19;
1429
+ $[56] !== padding ? (t19 = _getArrayProp(padding), $[56] = padding, $[57] = t19) : t19 = $[57];
1430
+ let t20;
1431
+ $[58] !== paddingX ? (t20 = _getArrayProp(paddingX), $[58] = paddingX, $[59] = t20) : t20 = $[59];
1432
+ let t21;
1433
+ $[60] !== paddingY ? (t21 = _getArrayProp(paddingY), $[60] = paddingY, $[61] = t21) : t21 = $[61];
1434
+ let t22;
1435
+ $[62] !== paddingTop ? (t22 = _getArrayProp(paddingTop), $[62] = paddingTop, $[63] = t22) : t22 = $[63];
1436
+ let t23;
1437
+ $[64] !== paddingRight ? (t23 = _getArrayProp(paddingRight), $[64] = paddingRight, $[65] = t23) : t23 = $[65];
1438
+ let t24;
1439
+ $[66] !== paddingBottom ? (t24 = _getArrayProp(paddingBottom), $[66] = paddingBottom, $[67] = t24) : t24 = $[67];
1440
+ let t25;
1441
+ $[68] !== paddingLeft ? (t25 = _getArrayProp(paddingLeft), $[68] = paddingLeft, $[69] = t25) : t25 = $[69];
1442
+ let t26;
1443
+ $[70] !== row ? (t26 = _getArrayProp(row), $[70] = row, $[71] = t26) : t26 = $[71];
1444
+ let t27;
1445
+ $[72] !== rowStart ? (t27 = _getArrayProp(rowStart), $[72] = rowStart, $[73] = t27) : t27 = $[73];
1446
+ let t28;
1447
+ $[74] !== rowEnd ? (t28 = _getArrayProp(rowEnd), $[74] = rowEnd, $[75] = t28) : t28 = $[75];
1448
+ let t29;
1449
+ $[76] !== sizing ? (t29 = _getArrayProp(sizing), $[76] = sizing, $[77] = t29) : t29 = $[77];
1582
1450
  let t30;
1583
- return $[28] !== asProp || $[29] !== props.children || $[30] !== ref || $[31] !== restProps || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t15 || $[38] !== t16 || $[39] !== t17 || $[40] !== t18 || $[41] !== t19 || $[42] !== t20 || $[43] !== t21 || $[44] !== t22 || $[45] !== t23 || $[46] !== t24 || $[47] !== t25 || $[48] !== t26 || $[49] !== t27 || $[50] !== t28 || $[51] !== t29 || $[52] !== t4 || $[53] !== t5 || $[54] !== t6 || $[55] !== t7 || $[56] !== t8 || $[57] !== t9 ? (t30 = /* @__PURE__ */ jsx(StyledBox, { "data-as": t4, "data-ui": "Box", ...restProps, $column: t5, $columnStart: t6, $columnEnd: t7, $display: t8, $flex: t9, $height: t10, $margin: t11, $marginX: t12, $marginY: t13, $marginTop: t14, $marginRight: t15, $marginBottom: t16, $marginLeft: t17, $overflow: t18, $padding: t19, $paddingX: t20, $paddingY: t21, $paddingTop: t22, $paddingRight: t23, $paddingBottom: t24, $paddingLeft: t25, $row: t26, $rowStart: t27, $rowEnd: t28, $sizing: t29, as: asProp, ref, children: props.children }), $[28] = asProp, $[29] = props.children, $[30] = ref, $[31] = restProps, $[32] = t10, $[33] = t11, $[34] = t12, $[35] = t13, $[36] = t14, $[37] = t15, $[38] = t16, $[39] = t17, $[40] = t18, $[41] = t19, $[42] = t20, $[43] = t21, $[44] = t22, $[45] = t23, $[46] = t24, $[47] = t25, $[48] = t26, $[49] = t27, $[50] = t28, $[51] = t29, $[52] = t4, $[53] = t5, $[54] = t6, $[55] = t7, $[56] = t8, $[57] = t9, $[58] = t30) : t30 = $[58], t30;
1451
+ return $[78] !== asProp || $[79] !== props.children || $[80] !== ref || $[81] !== restProps || $[82] !== t10 || $[83] !== t11 || $[84] !== t12 || $[85] !== t13 || $[86] !== t14 || $[87] !== t15 || $[88] !== t16 || $[89] !== t17 || $[90] !== t18 || $[91] !== t19 || $[92] !== t20 || $[93] !== t21 || $[94] !== t22 || $[95] !== t23 || $[96] !== t24 || $[97] !== t25 || $[98] !== t26 || $[99] !== t27 || $[100] !== t28 || $[101] !== t29 || $[102] !== t4 || $[103] !== t5 || $[104] !== t6 || $[105] !== t7 || $[106] !== t8 || $[107] !== t9 ? (t30 = /* @__PURE__ */ jsx(StyledBox, { "data-as": t4, "data-ui": "Box", ...restProps, $column: t5, $columnStart: t6, $columnEnd: t7, $display: t8, $flex: t9, $height: t10, $margin: t11, $marginX: t12, $marginY: t13, $marginTop: t14, $marginRight: t15, $marginBottom: t16, $marginLeft: t17, $overflow: t18, $padding: t19, $paddingX: t20, $paddingY: t21, $paddingTop: t22, $paddingRight: t23, $paddingBottom: t24, $paddingLeft: t25, $row: t26, $rowStart: t27, $rowEnd: t28, $sizing: t29, as: asProp, ref, children: props.children }), $[78] = asProp, $[79] = props.children, $[80] = ref, $[81] = restProps, $[82] = t10, $[83] = t11, $[84] = t12, $[85] = t13, $[86] = t14, $[87] = t15, $[88] = t16, $[89] = t17, $[90] = t18, $[91] = t19, $[92] = t20, $[93] = t21, $[94] = t22, $[95] = t23, $[96] = t24, $[97] = t25, $[98] = t26, $[99] = t27, $[100] = t28, $[101] = t29, $[102] = t4, $[103] = t5, $[104] = t6, $[105] = t7, $[106] = t8, $[107] = t9, $[108] = t30) : t30 = $[108], t30;
1584
1452
  });
1585
1453
  Box.displayName = "ForwardRef(Box)";
1586
1454
  function textBaseStyle(props) {
@@ -1655,7 +1523,7 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
1655
1523
  displayName: "StyledText",
1656
1524
  componentId: "sc-11ov82j-0"
1657
1525
  })(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), Text = forwardRef(function(props, ref) {
1658
- const $ = c(22);
1526
+ const $ = c(26);
1659
1527
  let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
1660
1528
  $[0] !== props ? ({
1661
1529
  accent: t0,
@@ -1673,11 +1541,14 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
1673
1541
  let t32;
1674
1542
  $[9] !== children ? (t32 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t32) : t32 = $[10], children = t32;
1675
1543
  }
1676
- const t3 = useArrayProp(align), t4 = useArrayProp(size2);
1544
+ let t3;
1545
+ $[11] !== align ? (t3 = _getArrayProp(align), $[11] = align, $[12] = t3) : t3 = $[12];
1546
+ let t4;
1547
+ $[13] !== size2 ? (t4 = _getArrayProp(size2), $[13] = size2, $[14] = t4) : t4 = $[14];
1677
1548
  let t5;
1678
- $[11] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
1549
+ $[15] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[15] = children, $[16] = t5) : t5 = $[16];
1679
1550
  let t6;
1680
- return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsx(StyledText, { "data-ui": "Text", ...restProps, $accent: accent, $align: t3, $muted: muted, ref, $size: t4, $weight: weight, children: t5 }), $[13] = accent, $[14] = muted, $[15] = ref, $[16] = restProps, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = weight, $[21] = t6) : t6 = $[21], t6;
1551
+ return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsx(StyledText, { "data-ui": "Text", ...restProps, $accent: accent, $align: t3, $muted: muted, ref, $size: t4, $weight: weight, children: t5 }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
1681
1552
  });
1682
1553
  Text.displayName = "ForwardRef(Text)";
1683
1554
  function badgeStyle(props) {
@@ -1699,7 +1570,7 @@ const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
1699
1570
  displayName: "StyledBadge",
1700
1571
  componentId: "sc-5u140l-0"
1701
1572
  })(responsiveRadiusStyle, badgeStyle), Badge = forwardRef(function(props, ref) {
1702
- const $ = c(17);
1573
+ const $ = c(21);
1703
1574
  let children, restProps, t0, t1, t2, t3;
1704
1575
  if ($[0] !== props) {
1705
1576
  const {
@@ -1714,18 +1585,22 @@ const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
1714
1585
  children = t42, t0 = t52, t1 = t62, t2 = t72, t3 = t8, restProps = t9, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2, $[6] = t3;
1715
1586
  } else
1716
1587
  children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5], t3 = $[6];
1717
- const fontSize2 = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? "full" : t2, tone = t3 === void 0 ? "default" : t3, t4 = useArrayProp(radius), t5 = useArrayProp(padding);
1588
+ const fontSize2 = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? "full" : t2, tone = t3 === void 0 ? "default" : t3;
1589
+ let t4;
1590
+ $[7] !== radius ? (t4 = _getArrayProp(radius), $[7] = radius, $[8] = t4) : t4 = $[8];
1591
+ let t5;
1592
+ $[9] !== padding ? (t5 = _getArrayProp(padding), $[9] = padding, $[10] = t5) : t5 = $[10];
1718
1593
  let t6;
1719
- $[7] !== children || $[8] !== fontSize2 ? (t6 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children }), $[7] = children, $[8] = fontSize2, $[9] = t6) : t6 = $[9];
1594
+ $[11] !== children || $[12] !== fontSize2 ? (t6 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children }), $[11] = children, $[12] = fontSize2, $[13] = t6) : t6 = $[13];
1720
1595
  let t7;
1721
- return $[10] !== ref || $[11] !== restProps || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== tone ? (t7 = /* @__PURE__ */ jsx(StyledBadge, { "data-ui": "Badge", ...restProps, $tone: tone, $radius: t4, padding: t5, ref, children: t6 }), $[10] = ref, $[11] = restProps, $[12] = t4, $[13] = t5, $[14] = t6, $[15] = tone, $[16] = t7) : t7 = $[16], t7;
1596
+ return $[14] !== ref || $[15] !== restProps || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 || $[19] !== tone ? (t7 = /* @__PURE__ */ jsx(StyledBadge, { "data-ui": "Badge", ...restProps, $tone: tone, $radius: t4, padding: t5, ref, children: t6 }), $[14] = ref, $[15] = restProps, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = tone, $[20] = t7) : t7 = $[20], t7;
1722
1597
  });
1723
1598
  Badge.displayName = "ForwardRef(Badge)";
1724
1599
  const StyledFlex = /* @__PURE__ */ styled(Box).withConfig({
1725
1600
  displayName: "StyledFlex",
1726
1601
  componentId: "sc-oxesg3-0"
1727
1602
  })(flexItemStyle, responsiveFlexStyle), Flex = forwardRef(function(props, ref) {
1728
- const $ = c(17);
1603
+ const $ = c(27);
1729
1604
  let align, as, gap, justify, restProps, t0, wrap;
1730
1605
  $[0] !== props ? ({
1731
1606
  align,
@@ -1736,9 +1611,19 @@ const StyledFlex = /* @__PURE__ */ styled(Box).withConfig({
1736
1611
  wrap,
1737
1612
  ...restProps
1738
1613
  } = props, $[0] = props, $[1] = align, $[2] = as, $[3] = gap, $[4] = justify, $[5] = restProps, $[6] = t0, $[7] = wrap) : (align = $[1], as = $[2], gap = $[3], justify = $[4], restProps = $[5], t0 = $[6], wrap = $[7]);
1739
- const direction = t0 === void 0 ? "row" : t0, t1 = useArrayProp(align), t2 = useArrayProp(direction), t3 = useArrayProp(gap), t4 = useArrayProp(justify), t5 = useArrayProp(wrap);
1614
+ const direction = t0 === void 0 ? "row" : t0;
1615
+ let t1;
1616
+ $[8] !== align ? (t1 = _getArrayProp(align), $[8] = align, $[9] = t1) : t1 = $[9];
1617
+ let t2;
1618
+ $[10] !== direction ? (t2 = _getArrayProp(direction), $[10] = direction, $[11] = t2) : t2 = $[11];
1619
+ let t3;
1620
+ $[12] !== gap ? (t3 = _getArrayProp(gap), $[12] = gap, $[13] = t3) : t3 = $[13];
1621
+ let t4;
1622
+ $[14] !== justify ? (t4 = _getArrayProp(justify), $[14] = justify, $[15] = t4) : t4 = $[15];
1623
+ let t5;
1624
+ $[16] !== wrap ? (t5 = _getArrayProp(wrap), $[16] = wrap, $[17] = t5) : t5 = $[17];
1740
1625
  let t6;
1741
- return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t1 || $[12] !== t2 || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledFlex, { "data-ui": "Flex", ...restProps, $align: t1, $direction: t2, $gap: t3, $justify: t4, $wrap: t5, forwardedAs: as, ref }), $[8] = as, $[9] = ref, $[10] = restProps, $[11] = t1, $[12] = t2, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
1626
+ return $[18] !== as || $[19] !== ref || $[20] !== restProps || $[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledFlex, { "data-ui": "Flex", ...restProps, $align: t1, $direction: t2, $gap: t3, $justify: t4, $wrap: t5, forwardedAs: as, ref }), $[18] = as, $[19] = ref, $[20] = restProps, $[21] = t1, $[22] = t2, $[23] = t3, $[24] = t4, $[25] = t5, $[26] = t6) : t6 = $[26], t6;
1742
1627
  });
1743
1628
  Flex.displayName = "ForwardRef(Flex)";
1744
1629
  const rotate = keyframes`
@@ -1935,7 +1820,7 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1935
1820
  displayName: "LoadingBox",
1936
1821
  componentId: "sc-aaekt4-1"
1937
1822
  })`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`, Button = forwardRef(function(props, ref) {
1938
- const $ = c(66);
1823
+ const $ = c(86);
1939
1824
  let IconComponent, IconRightComponent, children, disabled, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, textWeight, width;
1940
1825
  $[0] !== props ? ({
1941
1826
  children,
@@ -1967,9 +1852,39 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1967
1852
  } = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = loading, $[6] = paddingBottomProp, $[7] = paddingLeftProp, $[8] = paddingRightProp, $[9] = paddingTopProp, $[10] = paddingXProp, $[11] = paddingYProp, $[12] = restProps, $[13] = selected, $[14] = t0, $[15] = t1, $[16] = t2, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = t6, $[21] = t7, $[22] = t8, $[23] = text, $[24] = textAlign, $[25] = textWeight, $[26] = width) : (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], loading = $[5], paddingBottomProp = $[6], paddingLeftProp = $[7], paddingRightProp = $[8], paddingTopProp = $[9], paddingXProp = $[10], paddingYProp = $[11], restProps = $[12], selected = $[13], t0 = $[14], t1 = $[15], t2 = $[16], t3 = $[17], t4 = $[18], t5 = $[19], t6 = $[20], t7 = $[21], t8 = $[22], text = $[23], textAlign = $[24], textWeight = $[25], width = $[26]);
1968
1853
  const fontSize2 = t0 === void 0 ? 1 : t0, justifyProp = t1 === void 0 ? "center" : t1, mode = t2 === void 0 ? "default" : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, tone = t6 === void 0 ? "default" : t6, type = t7 === void 0 ? "button" : t7, muted = t8 === void 0 ? !1 : t8, {
1969
1854
  button
1970
- } = useTheme_v2(), justify = useArrayProp(justifyProp), padding = useArrayProp(paddingProp), paddingX = useArrayProp(paddingXProp), paddingY = useArrayProp(paddingYProp), paddingTop = useArrayProp(paddingTopProp), paddingBottom = useArrayProp(paddingBottomProp), paddingLeft = useArrayProp(paddingLeftProp), paddingRight = useArrayProp(paddingRightProp), radius = useArrayProp(radiusProp), space = useArrayProp(spaceProp);
1855
+ } = useTheme_v2();
1971
1856
  let t9;
1972
- $[27] !== padding || $[28] !== paddingBottom || $[29] !== paddingLeft || $[30] !== paddingRight || $[31] !== paddingTop || $[32] !== paddingX || $[33] !== paddingY ? (t9 = {
1857
+ $[27] !== justifyProp ? (t9 = _getArrayProp(justifyProp), $[27] = justifyProp, $[28] = t9) : t9 = $[28];
1858
+ const justify = t9;
1859
+ let t10;
1860
+ $[29] !== paddingProp ? (t10 = _getArrayProp(paddingProp), $[29] = paddingProp, $[30] = t10) : t10 = $[30];
1861
+ const padding = t10;
1862
+ let t11;
1863
+ $[31] !== paddingXProp ? (t11 = _getArrayProp(paddingXProp), $[31] = paddingXProp, $[32] = t11) : t11 = $[32];
1864
+ const paddingX = t11;
1865
+ let t12;
1866
+ $[33] !== paddingYProp ? (t12 = _getArrayProp(paddingYProp), $[33] = paddingYProp, $[34] = t12) : t12 = $[34];
1867
+ const paddingY = t12;
1868
+ let t13;
1869
+ $[35] !== paddingTopProp ? (t13 = _getArrayProp(paddingTopProp), $[35] = paddingTopProp, $[36] = t13) : t13 = $[36];
1870
+ const paddingTop = t13;
1871
+ let t14;
1872
+ $[37] !== paddingBottomProp ? (t14 = _getArrayProp(paddingBottomProp), $[37] = paddingBottomProp, $[38] = t14) : t14 = $[38];
1873
+ const paddingBottom = t14;
1874
+ let t15;
1875
+ $[39] !== paddingLeftProp ? (t15 = _getArrayProp(paddingLeftProp), $[39] = paddingLeftProp, $[40] = t15) : t15 = $[40];
1876
+ const paddingLeft = t15;
1877
+ let t16;
1878
+ $[41] !== paddingRightProp ? (t16 = _getArrayProp(paddingRightProp), $[41] = paddingRightProp, $[42] = t16) : t16 = $[42];
1879
+ const paddingRight = t16;
1880
+ let t17;
1881
+ $[43] !== radiusProp ? (t17 = _getArrayProp(radiusProp), $[43] = radiusProp, $[44] = t17) : t17 = $[44];
1882
+ const radius = t17;
1883
+ let t18;
1884
+ $[45] !== spaceProp ? (t18 = _getArrayProp(spaceProp), $[45] = spaceProp, $[46] = t18) : t18 = $[46];
1885
+ const space = t18;
1886
+ let t19;
1887
+ $[47] !== padding || $[48] !== paddingBottom || $[49] !== paddingLeft || $[50] !== paddingRight || $[51] !== paddingTop || $[52] !== paddingX || $[53] !== paddingY ? (t19 = {
1973
1888
  padding,
1974
1889
  paddingX,
1975
1890
  paddingY,
@@ -1977,12 +1892,12 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1977
1892
  paddingBottom,
1978
1893
  paddingLeft,
1979
1894
  paddingRight
1980
- }, $[27] = padding, $[28] = paddingBottom, $[29] = paddingLeft, $[30] = paddingRight, $[31] = paddingTop, $[32] = paddingX, $[33] = paddingY, $[34] = t9) : t9 = $[34];
1981
- const boxProps = t9, t10 = !!(loading || disabled), t11 = selected ? "" : void 0, t12 = !!(loading || disabled);
1982
- let t13;
1983
- $[35] !== loading ? (t13 = !!loading && /* @__PURE__ */ jsx(LoadingBox, { children: /* @__PURE__ */ jsx(Spinner, {}) }), $[35] = loading, $[36] = t13) : t13 = $[36];
1984
- let t14;
1985
- $[37] !== IconComponent || $[38] !== IconRightComponent || $[39] !== boxProps || $[40] !== button || $[41] !== fontSize2 || $[42] !== justify || $[43] !== muted || $[44] !== space || $[45] !== text || $[46] !== textAlign || $[47] !== textWeight ? (t14 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxs(Flex, { as: "span", justify, gap: space, children: [
1895
+ }, $[47] = padding, $[48] = paddingBottom, $[49] = paddingLeft, $[50] = paddingRight, $[51] = paddingTop, $[52] = paddingX, $[53] = paddingY, $[54] = t19) : t19 = $[54];
1896
+ const boxProps = t19, t20 = !!(loading || disabled), t21 = selected ? "" : void 0, t22 = !!(loading || disabled);
1897
+ let t23;
1898
+ $[55] !== loading ? (t23 = !!loading && /* @__PURE__ */ jsx(LoadingBox, { children: /* @__PURE__ */ jsx(Spinner, {}) }), $[55] = loading, $[56] = t23) : t23 = $[56];
1899
+ let t24;
1900
+ $[57] !== IconComponent || $[58] !== IconRightComponent || $[59] !== boxProps || $[60] !== button || $[61] !== fontSize2 || $[62] !== justify || $[63] !== muted || $[64] !== space || $[65] !== text || $[66] !== textAlign || $[67] !== textWeight ? (t24 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxs(Flex, { as: "span", justify, gap: space, children: [
1986
1901
  IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
1987
1902
  isValidElement(IconComponent) && IconComponent,
1988
1903
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
@@ -1992,15 +1907,15 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1992
1907
  isValidElement(IconRightComponent) && IconRightComponent,
1993
1908
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
1994
1909
  ] })
1995
- ] }) }), $[37] = IconComponent, $[38] = IconRightComponent, $[39] = boxProps, $[40] = button, $[41] = fontSize2, $[42] = justify, $[43] = muted, $[44] = space, $[45] = text, $[46] = textAlign, $[47] = textWeight, $[48] = t14) : t14 = $[48];
1996
- let t15;
1997
- $[49] !== boxProps || $[50] !== children ? (t15 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children }), $[49] = boxProps, $[50] = children, $[51] = t15) : t15 = $[51];
1998
- let t16;
1999
- return $[52] !== mode || $[53] !== radius || $[54] !== ref || $[55] !== restProps || $[56] !== t10 || $[57] !== t11 || $[58] !== t12 || $[59] !== t13 || $[60] !== t14 || $[61] !== t15 || $[62] !== tone || $[63] !== type || $[64] !== width ? (t16 = /* @__PURE__ */ jsxs(StyledButton, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t10, "data-selected": t11, disabled: t12, ref, type, $width: width, children: [
2000
- t13,
2001
- t14,
2002
- t15
2003
- ] }), $[52] = mode, $[53] = radius, $[54] = ref, $[55] = restProps, $[56] = t10, $[57] = t11, $[58] = t12, $[59] = t13, $[60] = t14, $[61] = t15, $[62] = tone, $[63] = type, $[64] = width, $[65] = t16) : t16 = $[65], t16;
1910
+ ] }) }), $[57] = IconComponent, $[58] = IconRightComponent, $[59] = boxProps, $[60] = button, $[61] = fontSize2, $[62] = justify, $[63] = muted, $[64] = space, $[65] = text, $[66] = textAlign, $[67] = textWeight, $[68] = t24) : t24 = $[68];
1911
+ let t25;
1912
+ $[69] !== boxProps || $[70] !== children ? (t25 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children }), $[69] = boxProps, $[70] = children, $[71] = t25) : t25 = $[71];
1913
+ let t26;
1914
+ return $[72] !== mode || $[73] !== radius || $[74] !== ref || $[75] !== restProps || $[76] !== t20 || $[77] !== t21 || $[78] !== t22 || $[79] !== t23 || $[80] !== t24 || $[81] !== t25 || $[82] !== tone || $[83] !== type || $[84] !== width ? (t26 = /* @__PURE__ */ jsxs(StyledButton, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t20, "data-selected": t21, disabled: t22, ref, type, $width: width, children: [
1915
+ t23,
1916
+ t24,
1917
+ t25
1918
+ ] }), $[72] = mode, $[73] = radius, $[74] = ref, $[75] = restProps, $[76] = t20, $[77] = t21, $[78] = t22, $[79] = t23, $[80] = t24, $[81] = t25, $[82] = tone, $[83] = type, $[84] = width, $[85] = t26) : t26 = $[85], t26;
2004
1919
  });
2005
1920
  Button.displayName = "ForwardRef(Button)";
2006
1921
  function cardStyle(props) {
@@ -2147,41 +2062,237 @@ function cardColorStyle(props) {
2147
2062
  }
2148
2063
  }
2149
2064
  }
2150
-
2151
- ${style?.card?.root}
2152
- `;
2065
+
2066
+ ${style?.card?.root}
2067
+ `;
2068
+ }
2069
+ const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
2070
+ displayName: "StyledCard",
2071
+ componentId: "sc-osnro2-0"
2072
+ })(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = forwardRef(function(props, ref) {
2073
+ const $ = c(56);
2074
+ let asProp, border2, borderBottom2, borderLeft2, borderRight2, borderTop2, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
2075
+ $[0] !== props ? ({
2076
+ __unstable_checkered: t0,
2077
+ __unstable_focusRing: t1,
2078
+ as: asProp,
2079
+ border: border2,
2080
+ borderTop: borderTop2,
2081
+ borderRight: borderRight2,
2082
+ borderBottom: borderBottom2,
2083
+ borderLeft: borderLeft2,
2084
+ muted,
2085
+ pressed,
2086
+ radius: t2,
2087
+ scheme,
2088
+ selected,
2089
+ shadow,
2090
+ tone: t3,
2091
+ ...restProps
2092
+ } = props, $[0] = props, $[1] = asProp, $[2] = border2, $[3] = borderBottom2, $[4] = borderLeft2, $[5] = borderRight2, $[6] = borderTop2, $[7] = muted, $[8] = pressed, $[9] = restProps, $[10] = scheme, $[11] = selected, $[12] = shadow, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3) : (asProp = $[1], border2 = $[2], borderBottom2 = $[3], borderLeft2 = $[4], borderRight2 = $[5], borderTop2 = $[6], muted = $[7], pressed = $[8], restProps = $[9], scheme = $[10], selected = $[11], shadow = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16]);
2093
+ const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme;
2094
+ let t6;
2095
+ $[17] !== border2 ? (t6 = _getArrayProp(border2), $[17] = border2, $[18] = t6) : t6 = $[18];
2096
+ let t7;
2097
+ $[19] !== borderTop2 ? (t7 = _getArrayProp(borderTop2), $[19] = borderTop2, $[20] = t7) : t7 = $[20];
2098
+ let t8;
2099
+ $[21] !== borderRight2 ? (t8 = _getArrayProp(borderRight2), $[21] = borderRight2, $[22] = t8) : t8 = $[22];
2100
+ let t9;
2101
+ $[23] !== borderBottom2 ? (t9 = _getArrayProp(borderBottom2), $[23] = borderBottom2, $[24] = t9) : t9 = $[24];
2102
+ let t10;
2103
+ $[25] !== borderLeft2 ? (t10 = _getArrayProp(borderLeft2), $[25] = borderLeft2, $[26] = t10) : t10 = $[26];
2104
+ let t11;
2105
+ $[27] !== radius ? (t11 = _getArrayProp(radius), $[27] = radius, $[28] = t11) : t11 = $[28];
2106
+ let t12;
2107
+ $[29] !== shadow ? (t12 = _getArrayProp(shadow), $[29] = shadow, $[30] = t12) : t12 = $[30];
2108
+ const t13 = checkered ? "" : void 0, t14 = pressed ? "" : void 0, t15 = selected ? "" : void 0;
2109
+ let t16;
2110
+ $[31] !== as || $[32] !== checkered || $[33] !== focusRing || $[34] !== muted || $[35] !== ref || $[36] !== restProps || $[37] !== rootTheme.scheme || $[38] !== selected || $[39] !== t10 || $[40] !== t11 || $[41] !== t12 || $[42] !== t13 || $[43] !== t14 || $[44] !== t15 || $[45] !== t4 || $[46] !== t6 || $[47] !== t7 || $[48] !== t8 || $[49] !== t9 || $[50] !== tone ? (t16 = /* @__PURE__ */ jsx(StyledCard, { "data-as": t4, "data-scheme": t5, "data-ui": "Card", "data-tone": tone, ...restProps, $border: t6, $borderTop: t7, $borderRight: t8, $borderBottom: t9, $borderLeft: t10, $checkered: checkered, $focusRing: focusRing, $muted: muted, $radius: t11, $shadow: t12, $tone: tone, "data-checkered": t13, "data-pressed": t14, "data-selected": t15, forwardedAs: as, ref, selected }), $[31] = as, $[32] = checkered, $[33] = focusRing, $[34] = muted, $[35] = ref, $[36] = restProps, $[37] = rootTheme.scheme, $[38] = selected, $[39] = t10, $[40] = t11, $[41] = t12, $[42] = t13, $[43] = t14, $[44] = t15, $[45] = t4, $[46] = t6, $[47] = t7, $[48] = t8, $[49] = t9, $[50] = tone, $[51] = t16) : t16 = $[51];
2111
+ let t17;
2112
+ return $[52] !== scheme || $[53] !== t16 || $[54] !== tone ? (t17 = /* @__PURE__ */ jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[52] = scheme, $[53] = t16, $[54] = tone, $[55] = t17) : t17 = $[55], t17;
2113
+ });
2114
+ Card.displayName = "ForwardRef(Card)";
2115
+ function useClickOutsideEvent(listener, t0, boundaryElement) {
2116
+ const $ = c(9), elementsArg = t0 === void 0 ? _temp$8 : t0;
2117
+ let t1;
2118
+ $[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
2119
+ if (!listener)
2120
+ return;
2121
+ const target = evt.target;
2122
+ if (!(target instanceof Node))
2123
+ return;
2124
+ const resolvedBoundaryElement = boundaryElement?.();
2125
+ if (resolvedBoundaryElement && !resolvedBoundaryElement.contains(target))
2126
+ return;
2127
+ const elements = elementsArg().flat();
2128
+ for (const el of elements)
2129
+ if (el && (target === el || el.contains(target)))
2130
+ return;
2131
+ listener(evt);
2132
+ }, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
2133
+ const onEvent = useEffectEvent(t1), hasListener = !!listener;
2134
+ let t2;
2135
+ $[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
2136
+ if (!hasListener)
2137
+ return;
2138
+ const handleEvent = (evt_0) => onEvent(evt_0);
2139
+ return document.addEventListener("mousedown", handleEvent), () => {
2140
+ document.removeEventListener("mousedown", handleEvent);
2141
+ };
2142
+ }, $[4] = hasListener, $[5] = onEvent, $[6] = t2) : t2 = $[6];
2143
+ let t3;
2144
+ $[7] !== hasListener ? (t3 = [hasListener], $[7] = hasListener, $[8] = t3) : t3 = $[8], useEffect(t2, t3), useDebugValue(listener ? "MouseDown On" : "MouseDown Off");
2145
+ }
2146
+ function _temp$8() {
2147
+ return EMPTY_ARRAY;
2148
+ }
2149
+ function useCustomValidity(ref, customValidity) {
2150
+ const $ = c(4);
2151
+ let t0, t1;
2152
+ $[0] !== customValidity || $[1] !== ref ? (t0 = () => {
2153
+ ref.current?.setCustomValidity(customValidity || "");
2154
+ }, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), useEffect(t0, t1);
2155
+ }
2156
+ const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
2157
+ function _createElementRectValueListener() {
2158
+ return {
2159
+ subscribe(element, subscriber) {
2160
+ const resizeObserver = new _ResizeObserver(([entry]) => {
2161
+ subscriber({
2162
+ _contentRect: entry.contentRect,
2163
+ border: {
2164
+ width: entry.borderBoxSize[0].inlineSize,
2165
+ height: entry.borderBoxSize[0].blockSize
2166
+ },
2167
+ content: {
2168
+ width: entry.contentRect.width,
2169
+ height: entry.contentRect.height
2170
+ }
2171
+ });
2172
+ });
2173
+ return resizeObserver.observe(element), () => {
2174
+ resizeObserver.unobserve(element), resizeObserver.disconnect();
2175
+ };
2176
+ }
2177
+ };
2178
+ }
2179
+ function _createElementSizeObserver() {
2180
+ const disposeCache = /* @__PURE__ */ new WeakMap(), subscribersCache = /* @__PURE__ */ new WeakMap();
2181
+ return {
2182
+ subscribe(element, subscriber) {
2183
+ const subscribers = subscribersCache.get(element) || [];
2184
+ let dispose = disposeCache.get(element);
2185
+ return subscribersCache.has(element) || (subscribersCache.set(element, subscribers), dispose = _createElementRectValueListener().subscribe(element, (elementRect) => {
2186
+ for (const sub of subscribers)
2187
+ sub(elementRect);
2188
+ })), subscribers.push(subscriber), () => {
2189
+ const idx = subscribers.indexOf(subscriber);
2190
+ idx > -1 && subscribers.splice(idx, 1), subscribers.length === 0 && dispose && dispose();
2191
+ };
2192
+ }
2193
+ };
2194
+ }
2195
+ function useElementSize(element) {
2196
+ const $ = c(3), [size2, setSize] = useState(null);
2197
+ let t0, t1;
2198
+ return $[0] !== element ? (t0 = () => {
2199
+ if (element)
2200
+ return _elementSizeObserver.subscribe(element, setSize);
2201
+ }, t1 = [element], $[0] = element, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1), size2;
2202
+ }
2203
+ function useGlobalKeyDown(onKeyDown) {
2204
+ const $ = c(5);
2205
+ let t0;
2206
+ $[0] !== onKeyDown ? (t0 = (event) => onKeyDown(event), $[0] = onKeyDown, $[1] = t0) : t0 = $[1];
2207
+ const handleKeyDown = useEffectEvent(t0);
2208
+ let t1;
2209
+ $[2] !== handleKeyDown ? (t1 = () => {
2210
+ const handler = (event_0) => handleKeyDown(event_0);
2211
+ return window.addEventListener("keydown", handler), () => window.removeEventListener("keydown", handler);
2212
+ }, $[2] = handleKeyDown, $[3] = t1) : t1 = $[3];
2213
+ let t2;
2214
+ $[4] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[4] = t2) : t2 = $[4], useEffect(t1, t2);
2215
+ }
2216
+ function useMatchMedia(mediaQueryString, getServerSnapshot2) {
2217
+ const $ = c(4);
2218
+ useDebugValue(mediaQueryString);
2219
+ let t0;
2220
+ $[0] !== mediaQueryString ? (t0 = (onStoreChange) => {
2221
+ const media = window.matchMedia(mediaQueryString);
2222
+ return media.addEventListener("change", onStoreChange), () => media.removeEventListener("change", onStoreChange);
2223
+ }, $[0] = mediaQueryString, $[1] = t0) : t0 = $[1];
2224
+ let t1;
2225
+ return $[2] !== mediaQueryString ? (t1 = () => window.matchMedia(mediaQueryString).matches, $[2] = mediaQueryString, $[3] = t1) : t1 = $[3], useSyncExternalStore(t0, t1, getServerSnapshot2);
2226
+ }
2227
+ function _getMediaQuery(media, index) {
2228
+ return index === 0 ? `screen and (max-width: ${media[index] - 1}px)` : index === media.length ? `screen and (min-width: ${media[index - 1]}px)` : `screen and (min-width: ${media[index - 1]}px) and (max-width: ${media[index] - 1}px)`;
2229
+ }
2230
+ function _createMediaStore(media) {
2231
+ const mediaLen = media.length;
2232
+ let sizes;
2233
+ const getSizes = () => {
2234
+ if (!sizes) {
2235
+ sizes = [];
2236
+ for (let index = mediaLen; index > -1; index -= 1) {
2237
+ const mediaQuery = _getMediaQuery(media, index);
2238
+ sizes.push({
2239
+ index,
2240
+ mq: window.matchMedia(mediaQuery)
2241
+ });
2242
+ }
2243
+ }
2244
+ return sizes;
2245
+ };
2246
+ return {
2247
+ getSnapshot: () => {
2248
+ for (const {
2249
+ index,
2250
+ mq
2251
+ } of getSizes())
2252
+ if (mq.matches) return index;
2253
+ return 0;
2254
+ },
2255
+ subscribe: (onStoreChange) => {
2256
+ const disposeFns = [];
2257
+ for (const {
2258
+ mq
2259
+ } of getSizes()) {
2260
+ const handleChange = () => {
2261
+ mq.matches && onStoreChange();
2262
+ };
2263
+ mq.addEventListener("change", handleChange), disposeFns.push(() => mq.removeEventListener("change", handleChange));
2264
+ }
2265
+ return () => {
2266
+ for (const disposeFn of disposeFns)
2267
+ disposeFn();
2268
+ };
2269
+ }
2270
+ };
2271
+ }
2272
+ function getServerSnapshot() {
2273
+ return 0;
2274
+ }
2275
+ function useMediaIndex() {
2276
+ const $ = c(2), {
2277
+ media
2278
+ } = useTheme_v2();
2279
+ let t0;
2280
+ $[0] !== media ? (t0 = _createMediaStore(media), $[0] = media, $[1] = t0) : t0 = $[1];
2281
+ const store = t0;
2282
+ return useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
2283
+ }
2284
+ function usePrefersDark(t0) {
2285
+ return useMatchMedia("(prefers-color-scheme: dark)", t0 === void 0 ? _temp$7 : t0);
2286
+ }
2287
+ function _temp$7() {
2288
+ return !1;
2289
+ }
2290
+ function usePrefersReducedMotion(t0) {
2291
+ return useMatchMedia("(prefers-reduced-motion: reduce)", t0 === void 0 ? _temp$6 : t0);
2292
+ }
2293
+ function _temp$6() {
2294
+ return !1;
2153
2295
  }
2154
- const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
2155
- displayName: "StyledCard",
2156
- componentId: "sc-osnro2-0"
2157
- })(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = forwardRef(function(props, ref) {
2158
- const $ = c(42);
2159
- let asProp, border2, borderBottom2, borderLeft2, borderRight2, borderTop2, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
2160
- $[0] !== props ? ({
2161
- __unstable_checkered: t0,
2162
- __unstable_focusRing: t1,
2163
- as: asProp,
2164
- border: border2,
2165
- borderTop: borderTop2,
2166
- borderRight: borderRight2,
2167
- borderBottom: borderBottom2,
2168
- borderLeft: borderLeft2,
2169
- muted,
2170
- pressed,
2171
- radius: t2,
2172
- scheme,
2173
- selected,
2174
- shadow,
2175
- tone: t3,
2176
- ...restProps
2177
- } = props, $[0] = props, $[1] = asProp, $[2] = border2, $[3] = borderBottom2, $[4] = borderLeft2, $[5] = borderRight2, $[6] = borderTop2, $[7] = muted, $[8] = pressed, $[9] = restProps, $[10] = scheme, $[11] = selected, $[12] = shadow, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3) : (asProp = $[1], border2 = $[2], borderBottom2 = $[3], borderLeft2 = $[4], borderRight2 = $[5], borderTop2 = $[6], muted = $[7], pressed = $[8], restProps = $[9], scheme = $[10], selected = $[11], shadow = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16]);
2178
- const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme, t6 = useArrayProp(border2), t7 = useArrayProp(borderTop2), t8 = useArrayProp(borderRight2), t9 = useArrayProp(borderBottom2), t10 = useArrayProp(borderLeft2), t11 = useArrayProp(radius), t12 = useArrayProp(shadow), t13 = checkered ? "" : void 0, t14 = pressed ? "" : void 0, t15 = selected ? "" : void 0;
2179
- let t16;
2180
- $[17] !== as || $[18] !== checkered || $[19] !== focusRing || $[20] !== muted || $[21] !== ref || $[22] !== restProps || $[23] !== rootTheme.scheme || $[24] !== selected || $[25] !== t10 || $[26] !== t11 || $[27] !== t12 || $[28] !== t13 || $[29] !== t14 || $[30] !== t15 || $[31] !== t4 || $[32] !== t6 || $[33] !== t7 || $[34] !== t8 || $[35] !== t9 || $[36] !== tone ? (t16 = /* @__PURE__ */ jsx(StyledCard, { "data-as": t4, "data-scheme": t5, "data-ui": "Card", "data-tone": tone, ...restProps, $border: t6, $borderTop: t7, $borderRight: t8, $borderBottom: t9, $borderLeft: t10, $checkered: checkered, $focusRing: focusRing, $muted: muted, $radius: t11, $shadow: t12, $tone: tone, "data-checkered": t13, "data-pressed": t14, "data-selected": t15, forwardedAs: as, ref, selected }), $[17] = as, $[18] = checkered, $[19] = focusRing, $[20] = muted, $[21] = ref, $[22] = restProps, $[23] = rootTheme.scheme, $[24] = selected, $[25] = t10, $[26] = t11, $[27] = t12, $[28] = t13, $[29] = t14, $[30] = t15, $[31] = t4, $[32] = t6, $[33] = t7, $[34] = t8, $[35] = t9, $[36] = tone, $[37] = t16) : t16 = $[37];
2181
- let t17;
2182
- return $[38] !== scheme || $[39] !== t16 || $[40] !== tone ? (t17 = /* @__PURE__ */ jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[38] = scheme, $[39] = t16, $[40] = tone, $[41] = t17) : t17 = $[41], t17;
2183
- });
2184
- Card.displayName = "ForwardRef(Card)";
2185
2296
  function checkboxBaseStyles() {
2186
2297
  return css`
2187
2298
  position: relative;
@@ -2513,7 +2624,7 @@ const LazyRefractor = lazy(() => import("./refractor.mjs")), StyledCode = /* @__
2513
2624
  displayName: "StyledCode",
2514
2625
  componentId: "sc-4dymyn-0"
2515
2626
  })(codeBaseStyle, responsiveCodeFontStyle), Code = forwardRef(function(props, ref) {
2516
- const $ = c(20);
2627
+ const $ = c(22);
2517
2628
  let children, language, restProps, t0, weight;
2518
2629
  $[0] !== props ? ({
2519
2630
  children,
@@ -2522,15 +2633,17 @@ const LazyRefractor = lazy(() => import("./refractor.mjs")), StyledCode = /* @__
2522
2633
  weight,
2523
2634
  ...restProps
2524
2635
  } = props, $[0] = props, $[1] = children, $[2] = language, $[3] = restProps, $[4] = t0, $[5] = weight) : (children = $[1], language = $[2], restProps = $[3], t0 = $[4], weight = $[5]);
2525
- const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
2636
+ const size2 = t0 === void 0 ? 2 : t0;
2637
+ let t1;
2638
+ $[6] !== size2 ? (t1 = _getArrayProp(size2), $[6] = size2, $[7] = t1) : t1 = $[7];
2526
2639
  let t2;
2527
- $[6] !== children ? (t2 = /* @__PURE__ */ jsx("code", { children }), $[6] = children, $[7] = t2) : t2 = $[7];
2640
+ $[8] !== children ? (t2 = /* @__PURE__ */ jsx("code", { children }), $[8] = children, $[9] = t2) : t2 = $[9];
2528
2641
  let t3;
2529
- $[8] !== children || $[9] !== language ? (t3 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[8] = children, $[9] = language, $[10] = t3) : t3 = $[10];
2642
+ $[10] !== children || $[11] !== language ? (t3 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[10] = children, $[11] = language, $[12] = t3) : t3 = $[12];
2530
2643
  let t4;
2531
- $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsx(Suspense, { fallback: t2, children: t3 }), $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13];
2644
+ $[13] !== t2 || $[14] !== t3 ? (t4 = /* @__PURE__ */ jsx(Suspense, { fallback: t2, children: t3 }), $[13] = t2, $[14] = t3, $[15] = t4) : t4 = $[15];
2532
2645
  let t5;
2533
- return $[14] !== ref || $[15] !== restProps || $[16] !== t1 || $[17] !== t4 || $[18] !== weight ? (t5 = /* @__PURE__ */ jsx(StyledCode, { "data-ui": "Code", ...restProps, $size: t1, $weight: weight, ref, children: t4 }), $[14] = ref, $[15] = restProps, $[16] = t1, $[17] = t4, $[18] = weight, $[19] = t5) : t5 = $[19], t5;
2646
+ return $[16] !== ref || $[17] !== restProps || $[18] !== t1 || $[19] !== t4 || $[20] !== weight ? (t5 = /* @__PURE__ */ jsx(StyledCode, { "data-ui": "Code", ...restProps, $size: t1, $weight: weight, ref, children: t4 }), $[16] = ref, $[17] = restProps, $[18] = t1, $[19] = t4, $[20] = weight, $[21] = t5) : t5 = $[21], t5;
2534
2647
  });
2535
2648
  Code.displayName = "ForwardRef(Code)";
2536
2649
  const BASE_STYLE$1 = {
@@ -2553,23 +2666,25 @@ const StyledContainer = /* @__PURE__ */ styled(Box).withConfig({
2553
2666
  displayName: "StyledContainer",
2554
2667
  componentId: "sc-wyroop-0"
2555
2668
  })(containerBaseStyle, responsiveContainerWidthStyle), Container = forwardRef(function(props, ref) {
2556
- const $ = c(9);
2669
+ const $ = c(11);
2557
2670
  let as, restProps, t0;
2558
2671
  $[0] !== props ? ({
2559
2672
  as,
2560
2673
  width: t0,
2561
2674
  ...restProps
2562
2675
  } = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0) : (as = $[1], restProps = $[2], t0 = $[3]);
2563
- const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
2676
+ const width = t0 === void 0 ? 2 : t0;
2677
+ let t1;
2678
+ $[4] !== width ? (t1 = _getArrayProp(width), $[4] = width, $[5] = t1) : t1 = $[5];
2564
2679
  let t2;
2565
- return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t1 ? (t2 = /* @__PURE__ */ jsx(StyledContainer, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[4] = as, $[5] = ref, $[6] = restProps, $[7] = t1, $[8] = t2) : t2 = $[8], t2;
2680
+ return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t1 ? (t2 = /* @__PURE__ */ jsx(StyledContainer, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[6] = as, $[7] = ref, $[8] = restProps, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
2566
2681
  });
2567
2682
  Container.displayName = "ForwardRef(Container)";
2568
2683
  const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
2569
2684
  displayName: "StyledGrid",
2570
2685
  componentId: "sc-v8t8oz-0"
2571
2686
  })(responsiveGridStyle), Grid = forwardRef(function(props, ref) {
2572
- const $ = c(26);
2687
+ const $ = c(42);
2573
2688
  let as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, restProps, rows;
2574
2689
  $[0] !== props ? ({
2575
2690
  as,
@@ -2584,9 +2699,25 @@ const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
2584
2699
  children,
2585
2700
  ...restProps
2586
2701
  } = props, $[0] = props, $[1] = as, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = children, $[6] = columns, $[7] = gap, $[8] = gapX, $[9] = gapY, $[10] = restProps, $[11] = rows) : (as = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], children = $[5], columns = $[6], gap = $[7], gapX = $[8], gapY = $[9], restProps = $[10], rows = $[11]);
2587
- const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(autoRows), t2 = useArrayProp(autoCols), t3 = useArrayProp(autoFlow), t4 = useArrayProp(columns), t5 = useArrayProp(gap), t6 = useArrayProp(gapX), t7 = useArrayProp(gapY), t8 = useArrayProp(rows);
2702
+ const t0 = typeof as == "string" ? as : void 0;
2703
+ let t1;
2704
+ $[12] !== autoRows ? (t1 = _getArrayProp(autoRows), $[12] = autoRows, $[13] = t1) : t1 = $[13];
2705
+ let t2;
2706
+ $[14] !== autoCols ? (t2 = _getArrayProp(autoCols), $[14] = autoCols, $[15] = t2) : t2 = $[15];
2707
+ let t3;
2708
+ $[16] !== autoFlow ? (t3 = _getArrayProp(autoFlow), $[16] = autoFlow, $[17] = t3) : t3 = $[17];
2709
+ let t4;
2710
+ $[18] !== columns ? (t4 = _getArrayProp(columns), $[18] = columns, $[19] = t4) : t4 = $[19];
2711
+ let t5;
2712
+ $[20] !== gap ? (t5 = _getArrayProp(gap), $[20] = gap, $[21] = t5) : t5 = $[21];
2713
+ let t6;
2714
+ $[22] !== gapX ? (t6 = _getArrayProp(gapX), $[22] = gapX, $[23] = t6) : t6 = $[23];
2715
+ let t7;
2716
+ $[24] !== gapY ? (t7 = _getArrayProp(gapY), $[24] = gapY, $[25] = t7) : t7 = $[25];
2717
+ let t8;
2718
+ $[26] !== rows ? (t8 = _getArrayProp(rows), $[26] = rows, $[27] = t8) : t8 = $[27];
2588
2719
  let t9;
2589
- return $[12] !== as || $[13] !== children || $[14] !== ref || $[15] !== restProps || $[16] !== t0 || $[17] !== t1 || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsx(StyledGrid, { "data-as": t0, "data-ui": "Grid", ...restProps, $autoRows: t1, $autoCols: t2, $autoFlow: t3, $columns: t4, $gap: t5, $gapX: t6, $gapY: t7, $rows: t8, forwardedAs: as, ref, children }), $[12] = as, $[13] = children, $[14] = ref, $[15] = restProps, $[16] = t0, $[17] = t1, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = t6, $[23] = t7, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
2720
+ return $[28] !== as || $[29] !== children || $[30] !== ref || $[31] !== restProps || $[32] !== t0 || $[33] !== t1 || $[34] !== t2 || $[35] !== t3 || $[36] !== t4 || $[37] !== t5 || $[38] !== t6 || $[39] !== t7 || $[40] !== t8 ? (t9 = /* @__PURE__ */ jsx(StyledGrid, { "data-as": t0, "data-ui": "Grid", ...restProps, $autoRows: t1, $autoCols: t2, $autoFlow: t3, $columns: t4, $gap: t5, $gapX: t6, $gapY: t7, $rows: t8, forwardedAs: as, ref, children }), $[28] = as, $[29] = children, $[30] = ref, $[31] = restProps, $[32] = t0, $[33] = t1, $[34] = t2, $[35] = t3, $[36] = t4, $[37] = t5, $[38] = t6, $[39] = t7, $[40] = t8, $[41] = t9) : t9 = $[41], t9;
2590
2721
  });
2591
2722
  Grid.displayName = "ForwardRef(Grid)";
2592
2723
  function headingBaseStyle(props) {
@@ -2652,7 +2783,7 @@ const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
2652
2783
  displayName: "StyledHeading",
2653
2784
  componentId: "sc-137lwim-0"
2654
2785
  })(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), Heading = forwardRef(function(props, ref) {
2655
- const $ = c(22);
2786
+ const $ = c(26);
2656
2787
  let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
2657
2788
  $[0] !== props ? ({
2658
2789
  accent: t0,
@@ -2670,11 +2801,14 @@ const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
2670
2801
  let t32;
2671
2802
  $[9] !== children ? (t32 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t32) : t32 = $[10], children = t32;
2672
2803
  }
2673
- const t3 = useArrayProp(align), t4 = useArrayProp(size2);
2804
+ let t3;
2805
+ $[11] !== align ? (t3 = _getArrayProp(align), $[11] = align, $[12] = t3) : t3 = $[12];
2806
+ let t4;
2807
+ $[13] !== size2 ? (t4 = _getArrayProp(size2), $[13] = size2, $[14] = t4) : t4 = $[14];
2674
2808
  let t5;
2675
- $[11] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
2809
+ $[15] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[15] = children, $[16] = t5) : t5 = $[16];
2676
2810
  let t6;
2677
- return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsx(StyledHeading, { "data-ui": "Heading", ...restProps, $accent: accent, $align: t3, $muted: muted, $size: t4, $weight: weight, ref, children: t5 }), $[13] = accent, $[14] = muted, $[15] = ref, $[16] = restProps, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = weight, $[21] = t6) : t6 = $[21], t6;
2811
+ return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsx(StyledHeading, { "data-ui": "Heading", ...restProps, $accent: accent, $align: t3, $muted: muted, $size: t4, $weight: weight, ref, children: t5 }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
2678
2812
  });
2679
2813
  Heading.displayName = "ForwardRef(Heading)";
2680
2814
  function inlineBaseStyle() {
@@ -2708,7 +2842,7 @@ const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
2708
2842
  displayName: "StyledInline",
2709
2843
  componentId: "sc-1pkiy6j-0"
2710
2844
  })(inlineBaseStyle, inlineSpaceStyle), Inline = forwardRef(function(props, ref) {
2711
- const $ = c(13);
2845
+ const $ = c(15);
2712
2846
  let as, childrenProp, restProps, space;
2713
2847
  $[0] !== props ? ({
2714
2848
  as,
@@ -2718,9 +2852,12 @@ const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
2718
2852
  } = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = restProps, $[4] = space) : (as = $[1], childrenProp = $[2], restProps = $[3], space = $[4]);
2719
2853
  let t0;
2720
2854
  $[5] !== childrenProp ? (t0 = Children.map(childrenProp, _temp$5), $[5] = childrenProp, $[6] = t0) : t0 = $[6];
2721
- const children = t0, t1 = useArrayProp(space), t2 = ref;
2855
+ const children = t0;
2856
+ let t1;
2857
+ $[7] !== space ? (t1 = _getArrayProp(space), $[7] = space, $[8] = t1) : t1 = $[8];
2858
+ const t2 = ref;
2722
2859
  let t3;
2723
- return $[7] !== as || $[8] !== children || $[9] !== restProps || $[10] !== t1 || $[11] !== t2 ? (t3 = /* @__PURE__ */ jsx(StyledInline, { "data-ui": "Inline", ...restProps, $space: t1, forwardedAs: as, ref: t2, children }), $[7] = as, $[8] = children, $[9] = restProps, $[10] = t1, $[11] = t2, $[12] = t3) : t3 = $[12], t3;
2860
+ return $[9] !== as || $[10] !== children || $[11] !== restProps || $[12] !== t1 || $[13] !== t2 ? (t3 = /* @__PURE__ */ jsx(StyledInline, { "data-ui": "Inline", ...restProps, $space: t1, forwardedAs: as, ref: t2, children }), $[9] = as, $[10] = children, $[11] = restProps, $[12] = t1, $[13] = t2, $[14] = t3) : t3 = $[14], t3;
2724
2861
  });
2725
2862
  Inline.displayName = "ForwardRef(Inline)";
2726
2863
  function _temp$5(child) {
@@ -2747,7 +2884,7 @@ const StyledKBD = /* @__PURE__ */ styled.kbd.withConfig({
2747
2884
  displayName: "StyledKBD",
2748
2885
  componentId: "sc-1w7yd8w-0"
2749
2886
  })(responsiveRadiusStyle, kbdStyle), KBD = forwardRef(function(props, ref) {
2750
- const $ = c(17);
2887
+ const $ = c(19);
2751
2888
  let children, restProps, t0, t1, t2;
2752
2889
  $[0] !== props ? ({
2753
2890
  children,
@@ -2756,13 +2893,15 @@ const StyledKBD = /* @__PURE__ */ styled.kbd.withConfig({
2756
2893
  radius: t2,
2757
2894
  ...restProps
2758
2895
  } = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2) : (children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5]);
2759
- const fontSize2 = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, t3 = useArrayProp(t2 === void 0 ? 2 : t2);
2896
+ const fontSize2 = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? 2 : t2;
2897
+ let t3;
2898
+ $[6] !== radius ? (t3 = _getArrayProp(radius), $[6] = radius, $[7] = t3) : t3 = $[7];
2760
2899
  let t4;
2761
- $[6] !== children || $[7] !== fontSize2 ? (t4 = /* @__PURE__ */ jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[6] = children, $[7] = fontSize2, $[8] = t4) : t4 = $[8];
2900
+ $[8] !== children || $[9] !== fontSize2 ? (t4 = /* @__PURE__ */ jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[8] = children, $[9] = fontSize2, $[10] = t4) : t4 = $[10];
2762
2901
  let t5;
2763
- $[9] !== padding || $[10] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, { as: "span", padding, children: t4 }), $[9] = padding, $[10] = t4, $[11] = t5) : t5 = $[11];
2902
+ $[11] !== padding || $[12] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, { as: "span", padding, children: t4 }), $[11] = padding, $[12] = t4, $[13] = t5) : t5 = $[13];
2764
2903
  let t6;
2765
- return $[12] !== ref || $[13] !== restProps || $[14] !== t3 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledKBD, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[12] = ref, $[13] = restProps, $[14] = t3, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
2904
+ return $[14] !== ref || $[15] !== restProps || $[16] !== t3 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledKBD, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[14] = ref, $[15] = restProps, $[16] = t3, $[17] = t5, $[18] = t6) : t6 = $[18], t6;
2766
2905
  });
2767
2906
  KBD.displayName = "ForwardRef(KBD)";
2768
2907
  const origin = {
@@ -3025,18 +3164,21 @@ function getLayerContext(contextValue) {
3025
3164
  }
3026
3165
  const LayerContext = createGlobalScopedContext("@sanity/ui/context/layer", null);
3027
3166
  function LayerProvider(props) {
3028
- const $ = c(19), {
3167
+ const $ = c(21), {
3029
3168
  children,
3030
3169
  zOffset: t0
3031
3170
  } = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = useContext(LayerContext);
3032
3171
  let t1;
3033
3172
  $[0] !== parentContextValue ? (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1) : t1 = $[1];
3034
- const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1, zOffset = useArrayProp(zOffsetProp), maxMediaIndex = zOffset.length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + zOffset[mediaIndex] : zOffset[mediaIndex];
3173
+ const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1;
3035
3174
  let t2;
3036
- $[2] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {}, $[2] = t2) : t2 = $[2];
3037
- const [, setChildLayers] = useState(t2), [size2, setSize] = useState(0), isTopLayer = size2 === 0;
3175
+ $[2] !== zOffsetProp ? (t2 = _getArrayProp(zOffsetProp), $[2] = zOffsetProp, $[3] = t2) : t2 = $[3];
3176
+ const zOffset = t2, maxMediaIndex = zOffset.length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + zOffset[mediaIndex] : zOffset[mediaIndex];
3038
3177
  let t3;
3039
- $[3] !== parentRegisterChild || $[4] !== setChildLayers ? (t3 = (childLevel) => {
3178
+ $[4] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {}, $[4] = t3) : t3 = $[4];
3179
+ const [, setChildLayers] = useState(t3), [size2, setSize] = useState(0), isTopLayer = size2 === 0;
3180
+ let t4;
3181
+ $[5] !== parentRegisterChild || $[6] !== setChildLayers ? (t4 = (childLevel) => {
3040
3182
  const parentDispose = parentRegisterChild?.(childLevel);
3041
3183
  return childLevel !== void 0 ? setChildLayers((state) => {
3042
3184
  const prevLen = state[childLevel] ?? 0, nextState = {
@@ -3052,22 +3194,22 @@ function LayerProvider(props) {
3052
3194
  return nextState_0[childLevel] === 1 ? (delete nextState_0[childLevel], setSize(Object.keys(nextState_0).length)) : nextState_0[childLevel] = nextState_0[childLevel] - 1, nextState_0;
3053
3195
  }) : setSize(_temp2$2), parentDispose?.();
3054
3196
  };
3055
- }, $[3] = parentRegisterChild, $[4] = setChildLayers, $[5] = t3) : t3 = $[5];
3056
- const registerChild = t3;
3057
- let t4, t5;
3058
- $[6] !== level || $[7] !== parentRegisterChild ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = level, $[7] = parentRegisterChild, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), useEffect(t4, t5);
3059
- let t6;
3060
- $[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t6 = {
3197
+ }, $[5] = parentRegisterChild, $[6] = setChildLayers, $[7] = t4) : t4 = $[7];
3198
+ const registerChild = t4;
3199
+ let t5, t6;
3200
+ $[8] !== level || $[9] !== parentRegisterChild ? (t5 = () => parentRegisterChild?.(level), t6 = [level, parentRegisterChild], $[8] = level, $[9] = parentRegisterChild, $[10] = t5, $[11] = t6) : (t5 = $[10], t6 = $[11]), useEffect(t5, t6);
3201
+ let t7;
3202
+ $[12] !== isTopLayer || $[13] !== level || $[14] !== registerChild || $[15] !== size2 || $[16] !== zIndex ? (t7 = {
3061
3203
  version: 0,
3062
3204
  isTopLayer,
3063
3205
  level,
3064
3206
  registerChild,
3065
3207
  size: size2,
3066
3208
  zIndex
3067
- }, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t6) : t6 = $[15];
3068
- const value = t6;
3069
- let t7;
3070
- return $[16] !== children || $[17] !== value ? (t7 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t7) : t7 = $[18], t7;
3209
+ }, $[12] = isTopLayer, $[13] = level, $[14] = registerChild, $[15] = size2, $[16] = zIndex, $[17] = t7) : t7 = $[17];
3210
+ const value = t7;
3211
+ let t8;
3212
+ return $[18] !== children || $[19] !== value ? (t8 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[18] = children, $[19] = value, $[20] = t8) : t8 = $[20], t8;
3071
3213
  }
3072
3214
  function _temp2$2(v_0) {
3073
3215
  return v_0 - 1;
@@ -3515,7 +3657,7 @@ const ViewportOverlay = () => {
3515
3657
  zIndex
3516
3658
  } }), $[0] = zIndex, $[1] = t0) : t0 = $[1], t0;
3517
3659
  }, Popover = forwardRef(function(props, forwardedRef) {
3518
- const $ = c(122), {
3660
+ const $ = c(126), {
3519
3661
  container,
3520
3662
  layer
3521
3663
  } = useTheme_v2(), boundaryElementContext = useBoundaryElement();
@@ -3549,50 +3691,59 @@ const ViewportOverlay = () => {
3549
3691
  shadow: t352,
3550
3692
  tone: t362,
3551
3693
  width: t372,
3552
- zOffset: t38,
3553
- updateRef: t39,
3554
- ...t40
3694
+ zOffset: t382,
3695
+ updateRef: t392,
3696
+ ...t402
3555
3697
  } = props;
3556
- t0 = t122, t1 = t132, t2 = t142, _boundaryElement = t152, childProp = t162, t3 = t172, content = t182, disabled = t192, _fallbackPlacements = t202, matchReferenceWidth = t212, _floatingBoundary = t222, modal = t232, open = t242, t4 = t252, paddingProp = t262, t5 = t272, t6 = t282, portal = t292, t7 = t302, t8 = t312, _referenceBoundary = t322, referenceElement = t332, scheme = t342, t9 = t352, t10 = t362, t11 = t372, _zOffsetProp = t38, updateRef = t39, restProps = t40, $[0] = props, $[1] = _boundaryElement, $[2] = _fallbackPlacements, $[3] = _floatingBoundary, $[4] = _referenceBoundary, $[5] = _zOffsetProp, $[6] = childProp, $[7] = content, $[8] = disabled, $[9] = matchReferenceWidth, $[10] = modal, $[11] = open, $[12] = paddingProp, $[13] = portal, $[14] = referenceElement, $[15] = restProps, $[16] = scheme, $[17] = t0, $[18] = t1, $[19] = t10, $[20] = t11, $[21] = t2, $[22] = t3, $[23] = t4, $[24] = t5, $[25] = t6, $[26] = t7, $[27] = t8, $[28] = t9, $[29] = updateRef;
3698
+ t0 = t122, t1 = t132, t2 = t142, _boundaryElement = t152, childProp = t162, t3 = t172, content = t182, disabled = t192, _fallbackPlacements = t202, matchReferenceWidth = t212, _floatingBoundary = t222, modal = t232, open = t242, t4 = t252, paddingProp = t262, t5 = t272, t6 = t282, portal = t292, t7 = t302, t8 = t312, _referenceBoundary = t322, referenceElement = t332, scheme = t342, t9 = t352, t10 = t362, t11 = t372, _zOffsetProp = t382, updateRef = t392, restProps = t402, $[0] = props, $[1] = _boundaryElement, $[2] = _fallbackPlacements, $[3] = _floatingBoundary, $[4] = _referenceBoundary, $[5] = _zOffsetProp, $[6] = childProp, $[7] = content, $[8] = disabled, $[9] = matchReferenceWidth, $[10] = modal, $[11] = open, $[12] = paddingProp, $[13] = portal, $[14] = referenceElement, $[15] = restProps, $[16] = scheme, $[17] = t0, $[18] = t1, $[19] = t10, $[20] = t11, $[21] = t2, $[22] = t3, $[23] = t4, $[24] = t5, $[25] = t6, $[26] = t7, $[27] = t8, $[28] = t9, $[29] = updateRef;
3557
3699
  } else
3558
3700
  _boundaryElement = $[1], _fallbackPlacements = $[2], _floatingBoundary = $[3], _referenceBoundary = $[4], _zOffsetProp = $[5], childProp = $[6], content = $[7], disabled = $[8], matchReferenceWidth = $[9], modal = $[10], open = $[11], paddingProp = $[12], portal = $[13], referenceElement = $[14], restProps = $[15], scheme = $[16], t0 = $[17], t1 = $[18], t10 = $[19], t11 = $[20], t2 = $[21], t3 = $[22], t4 = $[23], t5 = $[24], t6 = $[25], t7 = $[26], t8 = $[27], t9 = $[28], updateRef = $[29];
3559
- const margins = t0 === void 0 ? DEFAULT_POPOVER_MARGINS : t0, _animate = t1 === void 0 ? !1 : t1, arrowProp = t2 === void 0 ? !1 : t2, constrainSize = t3 === void 0 ? !1 : t3, overflow = t4 === void 0 ? "hidden" : t4, placementProp = t5 === void 0 ? "bottom" : t5, placementStrategy = t6 === void 0 ? "flip" : t6, preventOverflow = t7 === void 0 ? !0 : t7, radiusProp = t8 === void 0 ? 3 : t8, shadowProp = t9 === void 0 ? 3 : t9, tone = t10 === void 0 ? "inherit" : t10, widthProp = t11 === void 0 ? "auto" : t11, boundaryElement = _boundaryElement ?? boundaryElementContext?.element, fallbackPlacements = _fallbackPlacements ?? DEFAULT_FALLBACK_PLACEMENTS$1[props.placement ?? "bottom"], floatingBoundary = _floatingBoundary ?? props.boundaryElement ?? boundaryElementContext.element, referenceBoundary = _referenceBoundary ?? props.boundaryElement ?? boundaryElementContext.element, zOffsetProp = _zOffsetProp ?? layer.popover.zOffset, animate = usePrefersReducedMotion() ? !1 : _animate, boundarySize = useElementSize(boundaryElement)?.border, padding = useArrayProp(paddingProp), radius = useArrayProp(radiusProp), shadow = useArrayProp(shadowProp), widthArrayProp = useArrayProp(widthProp), zOffset = useArrayProp(zOffsetProp), ref = useRef(null), arrowRef = useRef(null);
3701
+ const margins = t0 === void 0 ? DEFAULT_POPOVER_MARGINS : t0, _animate = t1 === void 0 ? !1 : t1, arrowProp = t2 === void 0 ? !1 : t2, constrainSize = t3 === void 0 ? !1 : t3, overflow = t4 === void 0 ? "hidden" : t4, placementProp = t5 === void 0 ? "bottom" : t5, placementStrategy = t6 === void 0 ? "flip" : t6, preventOverflow = t7 === void 0 ? !0 : t7, radiusProp = t8 === void 0 ? 3 : t8, shadowProp = t9 === void 0 ? 3 : t9, tone = t10 === void 0 ? "inherit" : t10, widthProp = t11 === void 0 ? "auto" : t11, boundaryElement = _boundaryElement ?? boundaryElementContext?.element, fallbackPlacements = _fallbackPlacements ?? DEFAULT_FALLBACK_PLACEMENTS$1[props.placement ?? "bottom"], floatingBoundary = _floatingBoundary ?? props.boundaryElement ?? boundaryElementContext.element, referenceBoundary = _referenceBoundary ?? props.boundaryElement ?? boundaryElementContext.element, zOffsetProp = _zOffsetProp ?? layer.popover.zOffset, animate = usePrefersReducedMotion() ? !1 : _animate, boundarySize = useElementSize(boundaryElement)?.border;
3560
3702
  let t12;
3561
- $[30] === Symbol.for("react.memo_cache_sentinel") ? (t12 = () => ref.current, $[30] = t12) : t12 = $[30], useImperativeHandle(forwardedRef, t12);
3562
- const mediaIndex = useMediaIndex(), boundaryWidth = constrainSize || preventOverflow ? boundarySize?.width : void 0;
3703
+ $[30] !== paddingProp ? (t12 = _getArrayProp(paddingProp), $[30] = paddingProp, $[31] = t12) : t12 = $[31];
3704
+ const padding = t12;
3563
3705
  let t13;
3564
- $[31] !== container || $[32] !== mediaIndex || $[33] !== widthArrayProp ? (t13 = calcCurrentWidth({
3706
+ $[32] !== radiusProp ? (t13 = _getArrayProp(radiusProp), $[32] = radiusProp, $[33] = t13) : t13 = $[33];
3707
+ const radius = t13;
3708
+ let t14;
3709
+ $[34] !== shadowProp ? (t14 = _getArrayProp(shadowProp), $[34] = shadowProp, $[35] = t14) : t14 = $[35];
3710
+ const shadow = t14, widthArrayProp = _getArrayProp(widthProp);
3711
+ let t15;
3712
+ $[36] !== zOffsetProp ? (t15 = _getArrayProp(zOffsetProp), $[36] = zOffsetProp, $[37] = t15) : t15 = $[37];
3713
+ const zOffset = t15, ref = useRef(null), arrowRef = useRef(null);
3714
+ let t16;
3715
+ $[38] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => ref.current, $[38] = t16) : t16 = $[38], useImperativeHandle(forwardedRef, t16);
3716
+ const mediaIndex = useMediaIndex(), boundaryWidth = constrainSize || preventOverflow ? boundarySize?.width : void 0, width = calcCurrentWidth({
3565
3717
  container,
3566
3718
  mediaIndex,
3567
3719
  width: widthArrayProp
3568
- }), $[31] = container, $[32] = mediaIndex, $[33] = widthArrayProp, $[34] = t13) : t13 = $[34];
3569
- const width = t13, widthRef = useRef(width);
3570
- let t14, t15;
3571
- $[35] !== width ? (t14 = () => {
3720
+ }), widthRef = useRef(width);
3721
+ let t17, t18;
3722
+ $[39] !== width ? (t17 = () => {
3572
3723
  widthRef.current = width;
3573
- }, t15 = [width], $[35] = width, $[36] = t14, $[37] = t15) : (t14 = $[36], t15 = $[37]), useEffect(t14, t15);
3574
- let t16;
3575
- $[38] !== boundaryWidth || $[39] !== width ? (t16 = calcMaxWidth({
3724
+ }, t18 = [width], $[39] = width, $[40] = t17, $[41] = t18) : (t17 = $[40], t18 = $[41]), useEffect(t17, t18);
3725
+ let t19;
3726
+ $[42] !== boundaryWidth || $[43] !== width ? (t19 = calcMaxWidth({
3576
3727
  boundaryWidth,
3577
3728
  currentWidth: width
3578
- }), $[38] = boundaryWidth, $[39] = width, $[40] = t16) : t16 = $[40];
3579
- const maxWidth = t16, maxWidthRef = useRef(maxWidth);
3580
- let t17, t18;
3581
- $[41] !== maxWidth ? (t17 = () => {
3729
+ }), $[42] = boundaryWidth, $[43] = width, $[44] = t19) : t19 = $[44];
3730
+ const maxWidth = t19, maxWidthRef = useRef(maxWidth);
3731
+ let t20, t21;
3732
+ $[45] !== maxWidth ? (t20 = () => {
3582
3733
  maxWidthRef.current = maxWidth;
3583
- }, t18 = [maxWidth], $[41] = maxWidth, $[42] = t17, $[43] = t18) : (t17 = $[42], t18 = $[43]), useEffect(t17, t18);
3734
+ }, t21 = [maxWidth], $[45] = maxWidth, $[46] = t20, $[47] = t21) : (t20 = $[46], t21 = $[47]), useEffect(t20, t21);
3584
3735
  const referenceWidthRef = useRef(void 0);
3585
- let t19, t20;
3586
- $[44] !== matchReferenceWidth || $[45] !== maxWidth || $[46] !== open || $[47] !== width ? (t19 = () => {
3736
+ let t22, t23;
3737
+ $[48] !== matchReferenceWidth || $[49] !== maxWidth || $[50] !== open || $[51] !== width ? (t22 = () => {
3587
3738
  const floatingElement = ref.current;
3588
3739
  if (!open || !floatingElement)
3589
3740
  return;
3590
3741
  const referenceWidth = referenceWidthRef.current;
3591
3742
  matchReferenceWidth ? referenceWidth !== void 0 && (floatingElement.style.width = `${referenceWidth}px`) : width !== void 0 && (floatingElement.style.width = `${width}px`), typeof maxWidth == "number" && (floatingElement.style.maxWidth = `${maxWidth}px`);
3592
- }, t20 = [width, matchReferenceWidth, maxWidth, open], $[44] = matchReferenceWidth, $[45] = maxWidth, $[46] = open, $[47] = width, $[48] = t19, $[49] = t20) : (t19 = $[48], t20 = $[49]), useEffect(t19, t20);
3743
+ }, t23 = [width, matchReferenceWidth, maxWidth, open], $[48] = matchReferenceWidth, $[49] = maxWidth, $[50] = open, $[51] = width, $[52] = t22, $[53] = t23) : (t22 = $[52], t23 = $[53]), useEffect(t22, t23);
3593
3744
  const [referenceWidth_0, setReferenceWidth] = useState(void 0);
3594
- let t21;
3595
- $[50] !== animate || $[51] !== arrowProp || $[52] !== constrainSize || $[53] !== fallbackPlacements || $[54] !== floatingBoundary || $[55] !== margins || $[56] !== matchReferenceWidth || $[57] !== placementProp || $[58] !== placementStrategy || $[59] !== preventOverflow || $[60] !== referenceBoundary ? (t21 = {
3745
+ let t24;
3746
+ $[54] !== animate || $[55] !== arrowProp || $[56] !== constrainSize || $[57] !== fallbackPlacements || $[58] !== floatingBoundary || $[59] !== margins || $[60] !== matchReferenceWidth || $[61] !== placementProp || $[62] !== placementStrategy || $[63] !== preventOverflow || $[64] !== referenceBoundary ? (t24 = {
3596
3747
  animate,
3597
3748
  arrowProp,
3598
3749
  arrowRef,
@@ -3610,19 +3761,19 @@ const ViewportOverlay = () => {
3610
3761
  rootBoundary: "viewport",
3611
3762
  setReferenceWidth,
3612
3763
  widthRef
3613
- }, $[50] = animate, $[51] = arrowProp, $[52] = constrainSize, $[53] = fallbackPlacements, $[54] = floatingBoundary, $[55] = margins, $[56] = matchReferenceWidth, $[57] = placementProp, $[58] = placementStrategy, $[59] = preventOverflow, $[60] = referenceBoundary, $[61] = t21) : t21 = $[61];
3614
- const middleware = useMiddleware$1(t21);
3615
- let t22;
3616
- $[62] !== referenceElement ? (t22 = referenceElement ? {
3764
+ }, $[54] = animate, $[55] = arrowProp, $[56] = constrainSize, $[57] = fallbackPlacements, $[58] = floatingBoundary, $[59] = margins, $[60] = matchReferenceWidth, $[61] = placementProp, $[62] = placementStrategy, $[63] = preventOverflow, $[64] = referenceBoundary, $[65] = t24) : t24 = $[65];
3765
+ const middleware = useMiddleware$1(t24);
3766
+ let t25;
3767
+ $[66] !== referenceElement ? (t25 = referenceElement ? {
3617
3768
  reference: referenceElement
3618
- } : void 0, $[62] = referenceElement, $[63] = t22) : t22 = $[63];
3619
- let t23;
3620
- $[64] !== middleware || $[65] !== placementProp || $[66] !== t22 ? (t23 = {
3769
+ } : void 0, $[66] = referenceElement, $[67] = t25) : t25 = $[67];
3770
+ let t26;
3771
+ $[68] !== middleware || $[69] !== placementProp || $[70] !== t25 ? (t26 = {
3621
3772
  middleware,
3622
3773
  placement: placementProp,
3623
3774
  whileElementsMounted: autoUpdate,
3624
- elements: t22
3625
- }, $[64] = middleware, $[65] = placementProp, $[66] = t22, $[67] = t23) : t23 = $[67];
3775
+ elements: t25
3776
+ }, $[68] = middleware, $[69] = placementProp, $[70] = t25, $[71] = t26) : t26 = $[71];
3626
3777
  const {
3627
3778
  x,
3628
3779
  y,
@@ -3631,63 +3782,63 @@ const ViewportOverlay = () => {
3631
3782
  refs,
3632
3783
  strategy,
3633
3784
  update
3634
- } = useFloating(t23), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY;
3635
- let t24;
3636
- $[68] === Symbol.for("react.memo_cache_sentinel") ? (t24 = (arrowEl) => {
3637
- arrowRef.current = arrowEl;
3638
- }, $[68] = t24) : t24 = $[68];
3639
- const setArrow = t24;
3640
- let t25;
3641
- $[69] !== refs ? (t25 = (node) => {
3642
- ref.current = node, refs.setFloating(node);
3643
- }, $[69] = refs, $[70] = t25) : t25 = $[70];
3644
- const setFloating = t25;
3645
- let t26;
3646
- $[71] !== childProp ? (t26 = childProp ? getElementRef(childProp) : null, $[71] = childProp, $[72] = t26) : t26 = $[72];
3785
+ } = useFloating(t26), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY;
3647
3786
  let t27;
3648
- $[73] !== refs.reference.current ? (t27 = () => refs.reference.current, $[73] = refs.reference.current, $[74] = t27) : t27 = $[74], useImperativeHandle(t26, t27);
3787
+ $[72] === Symbol.for("react.memo_cache_sentinel") ? (t27 = (arrowEl) => {
3788
+ arrowRef.current = arrowEl;
3789
+ }, $[72] = t27) : t27 = $[72];
3790
+ const setArrow = t27;
3649
3791
  let t28;
3792
+ $[73] !== refs ? (t28 = (node) => {
3793
+ ref.current = node, refs.setFloating(node);
3794
+ }, $[73] = refs, $[74] = t28) : t28 = $[74];
3795
+ const setFloating = t28;
3796
+ let t29;
3797
+ $[75] !== childProp ? (t29 = childProp ? getElementRef(childProp) : null, $[75] = childProp, $[76] = t29) : t29 = $[76];
3798
+ let t30;
3799
+ $[77] !== refs.reference.current ? (t30 = () => refs.reference.current, $[77] = refs.reference.current, $[78] = t30) : t30 = $[78], useImperativeHandle(t29, t30);
3800
+ let t31;
3650
3801
  bb0: {
3651
3802
  if (referenceElement) {
3652
- t28 = childProp;
3803
+ t31 = childProp;
3653
3804
  break bb0;
3654
3805
  }
3655
3806
  if (!childProp) {
3656
- t28 = null;
3807
+ t31 = null;
3657
3808
  break bb0;
3658
3809
  }
3659
- let t292;
3660
- $[75] !== childProp || $[76] !== refs.setReference ? (t292 = cloneElement(childProp, {
3810
+ let t322;
3811
+ $[79] !== childProp || $[80] !== refs.setReference ? (t322 = cloneElement(childProp, {
3661
3812
  ref: refs.setReference
3662
- }), $[75] = childProp, $[76] = refs.setReference, $[77] = t292) : t292 = $[77], t28 = t292;
3813
+ }), $[79] = childProp, $[80] = refs.setReference, $[81] = t322) : t322 = $[81], t31 = t322;
3663
3814
  }
3664
- const child = t28;
3665
- let t29, t30;
3666
- if ($[78] !== update ? (t29 = () => update, t30 = [update], $[78] = update, $[79] = t29, $[80] = t30) : (t29 = $[79], t30 = $[80]), useImperativeHandle(updateRef, t29, t30), disabled) {
3667
- let t312;
3668
- return $[81] !== childProp ? (t312 = childProp || /* @__PURE__ */ jsx(Fragment, {}), $[81] = childProp, $[82] = t312) : t312 = $[82], t312;
3815
+ const child = t31;
3816
+ let t32, t33;
3817
+ if ($[82] !== update ? (t32 = () => update, t33 = [update], $[82] = update, $[83] = t32, $[84] = t33) : (t32 = $[83], t33 = $[84]), useImperativeHandle(updateRef, t32, t33), disabled) {
3818
+ let t342;
3819
+ return $[85] !== childProp ? (t342 = childProp || /* @__PURE__ */ jsx(Fragment, {}), $[85] = childProp, $[86] = t342) : t342 = $[86], t342;
3669
3820
  }
3670
- let t31;
3671
- $[83] !== modal ? (t31 = modal && /* @__PURE__ */ jsx(ViewportOverlay, {}), $[83] = modal, $[84] = t31) : t31 = $[84];
3672
- const t32 = matchReferenceWidth ? referenceWidth_0 : width;
3673
- let t33;
3674
- $[85] !== animate || $[86] !== arrowProp || $[87] !== arrowX || $[88] !== arrowY || $[89] !== content || $[90] !== margins || $[91] !== originX || $[92] !== originY || $[93] !== overflow || $[94] !== padding || $[95] !== placement || $[96] !== radius || $[97] !== referenceHidden || $[98] !== restProps || $[99] !== scheme || $[100] !== setFloating || $[101] !== shadow || $[102] !== strategy || $[103] !== t32 || $[104] !== tone || $[105] !== x || $[106] !== y ? (t33 = /* @__PURE__ */ jsx(PopoverCard, { ...restProps, __unstable_margins: margins, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, hidden: referenceHidden, overflow, padding, placement, radius, ref: setFloating, scheme, shadow, originX, originY, strategy, tone, width: t32, x, y, children: content }), $[85] = animate, $[86] = arrowProp, $[87] = arrowX, $[88] = arrowY, $[89] = content, $[90] = margins, $[91] = originX, $[92] = originY, $[93] = overflow, $[94] = padding, $[95] = placement, $[96] = radius, $[97] = referenceHidden, $[98] = restProps, $[99] = scheme, $[100] = setFloating, $[101] = shadow, $[102] = strategy, $[103] = t32, $[104] = tone, $[105] = x, $[106] = y, $[107] = t33) : t33 = $[107];
3675
3821
  let t34;
3676
- $[108] !== t31 || $[109] !== t33 || $[110] !== zOffset ? (t34 = /* @__PURE__ */ jsxs(LayerProvider, { zOffset, children: [
3677
- t31,
3678
- t33
3679
- ] }), $[108] = t31, $[109] = t33, $[110] = zOffset, $[111] = t34) : t34 = $[111];
3680
- const popover = t34;
3681
- let t35;
3682
- $[112] !== open || $[113] !== popover || $[114] !== portal ? (t35 = open && (portal ? /* @__PURE__ */ jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: popover }) : popover), $[112] = open, $[113] = popover, $[114] = portal, $[115] = t35) : t35 = $[115];
3683
- const children = t35;
3822
+ $[87] !== modal ? (t34 = modal && /* @__PURE__ */ jsx(ViewportOverlay, {}), $[87] = modal, $[88] = t34) : t34 = $[88];
3823
+ const t35 = matchReferenceWidth ? referenceWidth_0 : width;
3684
3824
  let t36;
3685
- $[116] !== animate || $[117] !== children ? (t36 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[116] = animate, $[117] = children, $[118] = t36) : t36 = $[118];
3825
+ $[89] !== animate || $[90] !== arrowProp || $[91] !== arrowX || $[92] !== arrowY || $[93] !== content || $[94] !== margins || $[95] !== originX || $[96] !== originY || $[97] !== overflow || $[98] !== padding || $[99] !== placement || $[100] !== radius || $[101] !== referenceHidden || $[102] !== restProps || $[103] !== scheme || $[104] !== setFloating || $[105] !== shadow || $[106] !== strategy || $[107] !== t35 || $[108] !== tone || $[109] !== x || $[110] !== y ? (t36 = /* @__PURE__ */ jsx(PopoverCard, { ...restProps, __unstable_margins: margins, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, hidden: referenceHidden, overflow, padding, placement, radius, ref: setFloating, scheme, shadow, originX, originY, strategy, tone, width: t35, x, y, children: content }), $[89] = animate, $[90] = arrowProp, $[91] = arrowX, $[92] = arrowY, $[93] = content, $[94] = margins, $[95] = originX, $[96] = originY, $[97] = overflow, $[98] = padding, $[99] = placement, $[100] = radius, $[101] = referenceHidden, $[102] = restProps, $[103] = scheme, $[104] = setFloating, $[105] = shadow, $[106] = strategy, $[107] = t35, $[108] = tone, $[109] = x, $[110] = y, $[111] = t36) : t36 = $[111];
3686
3826
  let t37;
3687
- return $[119] !== child || $[120] !== t36 ? (t37 = /* @__PURE__ */ jsxs(Fragment, { children: [
3688
- t36,
3827
+ $[112] !== t34 || $[113] !== t36 || $[114] !== zOffset ? (t37 = /* @__PURE__ */ jsxs(LayerProvider, { zOffset, children: [
3828
+ t34,
3829
+ t36
3830
+ ] }), $[112] = t34, $[113] = t36, $[114] = zOffset, $[115] = t37) : t37 = $[115];
3831
+ const popover = t37;
3832
+ let t38;
3833
+ $[116] !== open || $[117] !== popover || $[118] !== portal ? (t38 = open && (portal ? /* @__PURE__ */ jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: popover }) : popover), $[116] = open, $[117] = popover, $[118] = portal, $[119] = t38) : t38 = $[119];
3834
+ const children = t38;
3835
+ let t39;
3836
+ $[120] !== animate || $[121] !== children ? (t39 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[120] = animate, $[121] = children, $[122] = t39) : t39 = $[122];
3837
+ let t40;
3838
+ return $[123] !== child || $[124] !== t39 ? (t40 = /* @__PURE__ */ jsxs(Fragment, { children: [
3839
+ t39,
3689
3840
  child
3690
- ] }), $[119] = child, $[120] = t36, $[121] = t37) : t37 = $[121], t37;
3841
+ ] }), $[123] = child, $[124] = t39, $[125] = t40) : t40 = $[125], t40;
3691
3842
  });
3692
3843
  Popover.displayName = "ForwardRef(Popover)";
3693
3844
  function useMiddleware$1(t0) {
@@ -4072,7 +4223,7 @@ const selectStyle = {
4072
4223
  displayName: "IconBox",
4073
4224
  componentId: "sc-5mxno7-2"
4074
4225
  })(selectStyle.iconBox), Select = forwardRef(function(props, forwardedRef) {
4075
- const $ = c(29);
4226
+ const $ = c(37);
4076
4227
  let children, customValidity, disabled, readOnly, restProps, t0, t1, t2, t3;
4077
4228
  $[0] !== props ? ({
4078
4229
  children,
@@ -4088,20 +4239,29 @@ const selectStyle = {
4088
4239
  const fontSize2 = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2, space = t3 === void 0 ? 3 : t3, ref = useRef(null);
4089
4240
  let t4;
4090
4241
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], useImperativeHandle(forwardedRef, t4), useCustomValidity(ref, customValidity);
4091
- const t5 = !disabled && readOnly ? "" : void 0, t6 = useArrayProp(fontSize2), t7 = useArrayProp(padding), t8 = useArrayProp(radius), t9 = useArrayProp(space), t10 = disabled || readOnly;
4242
+ const t5 = !disabled && readOnly ? "" : void 0;
4243
+ let t6;
4244
+ $[11] !== fontSize2 ? (t6 = _getArrayProp(fontSize2), $[11] = fontSize2, $[12] = t6) : t6 = $[12];
4245
+ let t7;
4246
+ $[13] !== padding ? (t7 = _getArrayProp(padding), $[13] = padding, $[14] = t7) : t7 = $[14];
4247
+ let t8;
4248
+ $[15] !== radius ? (t8 = _getArrayProp(radius), $[15] = radius, $[16] = t8) : t8 = $[16];
4249
+ let t9;
4250
+ $[17] !== space ? (t9 = _getArrayProp(space), $[17] = space, $[18] = t9) : t9 = $[18];
4251
+ const t10 = disabled || readOnly;
4092
4252
  let t11;
4093
- $[11] !== children || $[12] !== restProps || $[13] !== t10 || $[14] !== t5 || $[15] !== t6 || $[16] !== t7 || $[17] !== t8 || $[18] !== t9 ? (t11 = /* @__PURE__ */ jsx(Input$3, { "data-read-only": t5, "data-ui": "Select", ...restProps, $fontSize: t6, $padding: t7, $radius: t8, $space: t9, disabled: t10, ref, children }), $[11] = children, $[12] = restProps, $[13] = t10, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8, $[18] = t9, $[19] = t11) : t11 = $[19];
4253
+ $[19] !== children || $[20] !== restProps || $[21] !== t10 || $[22] !== t5 || $[23] !== t6 || $[24] !== t7 || $[25] !== t8 || $[26] !== t9 ? (t11 = /* @__PURE__ */ jsx(Input$3, { "data-read-only": t5, "data-ui": "Select", ...restProps, $fontSize: t6, $padding: t7, $radius: t8, $space: t9, disabled: t10, ref, children }), $[19] = children, $[20] = restProps, $[21] = t10, $[22] = t5, $[23] = t6, $[24] = t7, $[25] = t8, $[26] = t9, $[27] = t11) : t11 = $[27];
4094
4254
  let t12;
4095
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[20] = t12) : t12 = $[20];
4255
+ $[28] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[28] = t12) : t12 = $[28];
4096
4256
  let t13;
4097
- $[21] !== fontSize2 ? (t13 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t12 }), $[21] = fontSize2, $[22] = t13) : t13 = $[22];
4257
+ $[29] !== fontSize2 ? (t13 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t12 }), $[29] = fontSize2, $[30] = t13) : t13 = $[30];
4098
4258
  let t14;
4099
- $[23] !== padding || $[24] !== t13 ? (t14 = /* @__PURE__ */ jsx(IconBox, { padding, children: t13 }), $[23] = padding, $[24] = t13, $[25] = t14) : t14 = $[25];
4259
+ $[31] !== padding || $[32] !== t13 ? (t14 = /* @__PURE__ */ jsx(IconBox, { padding, children: t13 }), $[31] = padding, $[32] = t13, $[33] = t14) : t14 = $[33];
4100
4260
  let t15;
4101
- return $[26] !== t11 || $[27] !== t14 ? (t15 = /* @__PURE__ */ jsxs(StyledSelect, { "data-ui": "Select", children: [
4261
+ return $[34] !== t11 || $[35] !== t14 ? (t15 = /* @__PURE__ */ jsxs(StyledSelect, { "data-ui": "Select", children: [
4102
4262
  t11,
4103
4263
  t14
4104
- ] }), $[26] = t11, $[27] = t14, $[28] = t15) : t15 = $[28], t15;
4264
+ ] }), $[34] = t11, $[35] = t14, $[36] = t15) : t15 = $[36], t15;
4105
4265
  });
4106
4266
  Select.displayName = "ForwardRef(Select)";
4107
4267
  const BASE_STYLE = {
@@ -4130,16 +4290,18 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
4130
4290
  displayName: "StyledStack",
4131
4291
  componentId: "sc-8dpfq2-0"
4132
4292
  })(stackBaseStyle, responsiveStackSpaceStyle), Stack = forwardRef(function(props, ref) {
4133
- const $ = c(10);
4293
+ const $ = c(12);
4134
4294
  let as, restProps, space;
4135
4295
  $[0] !== props ? ({
4136
4296
  as,
4137
4297
  space,
4138
4298
  ...restProps
4139
4299
  } = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = space) : (as = $[1], restProps = $[2], space = $[3]);
4140
- const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(space);
4300
+ const t0 = typeof as == "string" ? as : void 0;
4301
+ let t1;
4302
+ $[4] !== space ? (t1 = _getArrayProp(space), $[4] = space, $[5] = t1) : t1 = $[5];
4141
4303
  let t2;
4142
- return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t0 || $[8] !== t1 ? (t2 = /* @__PURE__ */ jsx(StyledStack, { "data-as": t0, "data-ui": "Stack", ...restProps, $space: t1, forwardedAs: as, ref }), $[4] = as, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2) : t2 = $[9], t2;
4304
+ return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t0 || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(StyledStack, { "data-as": t0, "data-ui": "Stack", ...restProps, $space: t1, forwardedAs: as, ref }), $[6] = as, $[7] = ref, $[8] = restProps, $[9] = t0, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
4143
4305
  });
4144
4306
  Stack.displayName = "ForwardRef(Stack)";
4145
4307
  function switchBaseStyles() {
@@ -4359,7 +4521,7 @@ const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
4359
4521
  displayName: "Presentation",
4360
4522
  componentId: "sc-1d6h1o8-3"
4361
4523
  })(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function(props, forwardedRef) {
4362
- const $ = c(29);
4524
+ const $ = c(35);
4363
4525
  let __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
4364
4526
  $[0] !== props ? ({
4365
4527
  border: t0,
@@ -4375,17 +4537,26 @@ const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
4375
4537
  const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize2 = t2 === void 0 ? 2 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, ref = useRef(null), rootTheme = useRootTheme();
4376
4538
  let t5;
4377
4539
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
4378
- const t6 = rootTheme.scheme, t7 = rootTheme.tone, t8 = useArrayProp(fontSize2), t9 = useArrayProp(padding), t10 = rootTheme.scheme, t11 = useArrayProp(0);
4540
+ const t6 = rootTheme.scheme, t7 = rootTheme.tone;
4541
+ let t8;
4542
+ $[11] !== fontSize2 ? (t8 = _getArrayProp(fontSize2), $[11] = fontSize2, $[12] = t8) : t8 = $[12];
4543
+ let t9;
4544
+ $[13] !== padding ? (t9 = _getArrayProp(padding), $[13] = padding, $[14] = t9) : t9 = $[14];
4545
+ const t10 = rootTheme.scheme;
4546
+ let t11;
4547
+ $[15] === Symbol.for("react.memo_cache_sentinel") ? (t11 = _getArrayProp(0), $[15] = t11) : t11 = $[15];
4379
4548
  let t12;
4380
- $[11] !== disabled || $[12] !== restProps || $[13] !== rootTheme.scheme || $[14] !== rootTheme.tone || $[15] !== t11 || $[16] !== t8 || $[17] !== t9 || $[18] !== weight ? (t12 = /* @__PURE__ */ jsx(Input$1, { "data-as": "textarea", "data-scheme": t6, "data-tone": t7, ...restProps, $fontSize: t8, $padding: t9, $scheme: t10, $space: t11, $tone: rootTheme.tone, $weight: weight, disabled, ref }), $[11] = disabled, $[12] = restProps, $[13] = rootTheme.scheme, $[14] = rootTheme.tone, $[15] = t11, $[16] = t8, $[17] = t9, $[18] = weight, $[19] = t12) : t12 = $[19];
4381
- const t13 = useArrayProp(radius), t14 = border2 ? "" : void 0;
4549
+ $[16] !== disabled || $[17] !== restProps || $[18] !== rootTheme.scheme || $[19] !== rootTheme.tone || $[20] !== t8 || $[21] !== t9 || $[22] !== weight ? (t12 = /* @__PURE__ */ jsx(Input$1, { "data-as": "textarea", "data-scheme": t6, "data-tone": t7, ...restProps, $fontSize: t8, $padding: t9, $scheme: t10, $space: t11, $tone: rootTheme.tone, $weight: weight, disabled, ref }), $[16] = disabled, $[17] = restProps, $[18] = rootTheme.scheme, $[19] = rootTheme.tone, $[20] = t8, $[21] = t9, $[22] = weight, $[23] = t12) : t12 = $[23];
4550
+ let t13;
4551
+ $[24] !== radius ? (t13 = _getArrayProp(radius), $[24] = radius, $[25] = t13) : t13 = $[25];
4552
+ const t14 = border2 ? "" : void 0;
4382
4553
  let t15;
4383
- $[20] !== __unstable_disableFocusRing || $[21] !== rootTheme.scheme || $[22] !== rootTheme.tone || $[23] !== t13 || $[24] !== t14 ? (t15 = /* @__PURE__ */ jsx(Presentation$1, { $radius: t13, $unstableDisableFocusRing: __unstable_disableFocusRing, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone }), $[20] = __unstable_disableFocusRing, $[21] = rootTheme.scheme, $[22] = rootTheme.tone, $[23] = t13, $[24] = t14, $[25] = t15) : t15 = $[25];
4554
+ $[26] !== __unstable_disableFocusRing || $[27] !== rootTheme.scheme || $[28] !== rootTheme.tone || $[29] !== t13 || $[30] !== t14 ? (t15 = /* @__PURE__ */ jsx(Presentation$1, { $radius: t13, $unstableDisableFocusRing: __unstable_disableFocusRing, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone }), $[26] = __unstable_disableFocusRing, $[27] = rootTheme.scheme, $[28] = rootTheme.tone, $[29] = t13, $[30] = t14, $[31] = t15) : t15 = $[31];
4384
4555
  let t16;
4385
- return $[26] !== t12 || $[27] !== t15 ? (t16 = /* @__PURE__ */ jsx(StyledTextArea, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxs(InputRoot$1, { children: [
4556
+ return $[32] !== t12 || $[33] !== t15 ? (t16 = /* @__PURE__ */ jsx(StyledTextArea, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxs(InputRoot$1, { children: [
4386
4557
  t12,
4387
4558
  t15
4388
- ] }) }), $[26] = t12, $[27] = t15, $[28] = t16) : t16 = $[28], t16;
4559
+ ] }) }), $[32] = t12, $[33] = t15, $[34] = t16) : t16 = $[34], t16;
4389
4560
  });
4390
4561
  TextArea.displayName = "ForwardRef(TextArea)";
4391
4562
  const CLEAR_BUTTON_BOX_STYLE = {
@@ -4431,7 +4602,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
4431
4602
  display: "block"
4432
4603
  }
4433
4604
  }), TextInput = forwardRef(function(props, forwardedRef) {
4434
- const $ = c(84);
4605
+ const $ = c(92);
4435
4606
  let IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
4436
4607
  $[0] !== props ? ({
4437
4608
  __unstable_disableFocusRing,
@@ -4453,60 +4624,72 @@ const CLEAR_BUTTON_BOX_STYLE = {
4453
4624
  weight,
4454
4625
  ...restProps
4455
4626
  } = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = clearButton, $[5] = customValidity, $[6] = onClear, $[7] = prefix, $[8] = readOnly, $[9] = restProps, $[10] = suffix, $[11] = t0, $[12] = t1, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5, $[17] = t6, $[18] = weight) : (IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], clearButton = $[4], customValidity = $[5], onClear = $[6], prefix = $[7], readOnly = $[8], restProps = $[9], suffix = $[10], t0 = $[11], t1 = $[12], t2 = $[13], t3 = $[14], t4 = $[15], t5 = $[16], t6 = $[17], weight = $[18]);
4456
- const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = useRef(null), rootTheme = useRootTheme(), fontSize2 = useArrayProp(fontSizeProp), padding = useArrayProp(paddingProp), radius = useArrayProp(radiusProp), space = useArrayProp(spaceProp), $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix;
4627
+ const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = useRef(null), rootTheme = useRootTheme();
4457
4628
  let t7;
4458
- $[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
4459
- const handleClearMouseDown = _temp$2;
4629
+ $[19] !== fontSizeProp ? (t7 = _getArrayProp(fontSizeProp), $[19] = fontSizeProp, $[20] = t7) : t7 = $[20];
4630
+ const fontSize2 = t7;
4460
4631
  let t8;
4461
- $[20] !== onClear ? (t8 = (event_0) => {
4462
- event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
4463
- }, $[20] = onClear, $[21] = t8) : t8 = $[21];
4464
- const handleClearClick = t8;
4632
+ $[21] !== paddingProp ? (t8 = _getArrayProp(paddingProp), $[21] = paddingProp, $[22] = t8) : t8 = $[22];
4633
+ const padding = t8;
4465
4634
  let t9;
4466
- $[22] !== prefix || $[23] !== radius ? (t9 = prefix && /* @__PURE__ */ jsx(Prefix, { borderTop: !0, borderLeft: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[22] = prefix, $[23] = radius, $[24] = t9) : t9 = $[24];
4467
- const prefixNode = t9, t10 = border2 ? "" : void 0;
4635
+ $[23] !== radiusProp ? (t9 = _getArrayProp(radiusProp), $[23] = radiusProp, $[24] = t9) : t9 = $[24];
4636
+ const radius = t9;
4637
+ let t10;
4638
+ $[25] !== spaceProp ? (t10 = _getArrayProp(spaceProp), $[25] = spaceProp, $[26] = t10) : t10 = $[26];
4639
+ const space = t10, $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix;
4468
4640
  let t11;
4469
- $[25] !== IconComponent || $[26] !== fontSize2 || $[27] !== padding ? (t11 = IconComponent && /* @__PURE__ */ jsx(LeftBox, { padding, children: /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
4470
- isValidElement(IconComponent) && IconComponent,
4471
- isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
4472
- ] }) }), $[25] = IconComponent, $[26] = fontSize2, $[27] = padding, $[28] = t11) : t11 = $[28];
4641
+ $[27] === Symbol.for("react.memo_cache_sentinel") ? (t11 = () => ref.current, $[27] = t11) : t11 = $[27], useImperativeHandle(forwardedRef, t11), useCustomValidity(ref, customValidity);
4642
+ const handleClearMouseDown = _temp$2;
4473
4643
  let t12;
4474
- $[29] !== $hasClearButton || $[30] !== IconRightComponent || $[31] !== fontSize2 || $[32] !== padding ? (t12 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ jsx(RightBox, { padding, children: /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
4475
- isValidElement(IconRightComponent) && IconRightComponent,
4476
- isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
4477
- ] }) }), $[29] = $hasClearButton, $[30] = IconRightComponent, $[31] = fontSize2, $[32] = padding, $[33] = t12) : t12 = $[33];
4644
+ $[28] !== onClear ? (t12 = (event_0) => {
4645
+ event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
4646
+ }, $[28] = onClear, $[29] = t12) : t12 = $[29];
4647
+ const handleClearClick = t12;
4478
4648
  let t13;
4479
- $[34] !== $hasPrefix || $[35] !== $hasSuffix || $[36] !== __unstable_disableFocusRing || $[37] !== radius || $[38] !== rootTheme.scheme || $[39] !== rootTheme.tone || $[40] !== t10 || $[41] !== t11 || $[42] !== t12 ? (t13 = /* @__PURE__ */ jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t10, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
4480
- t11,
4481
- t12
4482
- ] }), $[34] = $hasPrefix, $[35] = $hasSuffix, $[36] = __unstable_disableFocusRing, $[37] = radius, $[38] = rootTheme.scheme, $[39] = rootTheme.tone, $[40] = t10, $[41] = t11, $[42] = t12, $[43] = t13) : t13 = $[43];
4483
- const presentationNode = t13;
4484
- let t14;
4485
- $[44] !== padding ? (t14 = padding.map(_temp2), $[44] = padding, $[45] = t14) : t14 = $[45];
4486
- const clearButtonBoxPadding = t14;
4649
+ $[30] !== prefix || $[31] !== radius ? (t13 = prefix && /* @__PURE__ */ jsx(Prefix, { borderTop: !0, borderLeft: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[30] = prefix, $[31] = radius, $[32] = t13) : t13 = $[32];
4650
+ const prefixNode = t13, t14 = border2 ? "" : void 0;
4487
4651
  let t15;
4488
- $[46] !== padding ? (t15 = padding.map(_temp3), $[46] = padding, $[47] = t15) : t15 = $[47];
4489
- const clearButtonPadding = t15, clearButtonProps = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
4652
+ $[33] !== IconComponent || $[34] !== fontSize2 || $[35] !== padding ? (t15 = IconComponent && /* @__PURE__ */ jsx(LeftBox, { padding, children: /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
4653
+ isValidElement(IconComponent) && IconComponent,
4654
+ isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
4655
+ ] }) }), $[33] = IconComponent, $[34] = fontSize2, $[35] = padding, $[36] = t15) : t15 = $[36];
4490
4656
  let t16;
4491
- $[48] !== clearButton || $[49] !== clearButtonBoxPadding || $[50] !== clearButtonPadding || $[51] !== clearButtonProps || $[52] !== customValidity || $[53] !== disabled || $[54] !== fontSize2 || $[55] !== handleClearClick || $[56] !== radius || $[57] !== readOnly ? (t16 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[48] = clearButton, $[49] = clearButtonBoxPadding, $[50] = clearButtonPadding, $[51] = clearButtonProps, $[52] = customValidity, $[53] = disabled, $[54] = fontSize2, $[55] = handleClearClick, $[56] = radius, $[57] = readOnly, $[58] = t16) : t16 = $[58];
4492
- const clearButtonNode = t16;
4657
+ $[37] !== $hasClearButton || $[38] !== IconRightComponent || $[39] !== fontSize2 || $[40] !== padding ? (t16 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ jsx(RightBox, { padding, children: /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
4658
+ isValidElement(IconRightComponent) && IconRightComponent,
4659
+ isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
4660
+ ] }) }), $[37] = $hasClearButton, $[38] = IconRightComponent, $[39] = fontSize2, $[40] = padding, $[41] = t16) : t16 = $[41];
4493
4661
  let t17;
4494
- $[59] !== radius || $[60] !== suffix ? (t17 = suffix && /* @__PURE__ */ jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[59] = radius, $[60] = suffix, $[61] = t17) : t17 = $[61];
4495
- const suffixNode = t17, t18 = $hasIconRight || $hasClearButton;
4662
+ $[42] !== $hasPrefix || $[43] !== $hasSuffix || $[44] !== __unstable_disableFocusRing || $[45] !== radius || $[46] !== rootTheme.scheme || $[47] !== rootTheme.tone || $[48] !== t14 || $[49] !== t15 || $[50] !== t16 ? (t17 = /* @__PURE__ */ jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
4663
+ t15,
4664
+ t16
4665
+ ] }), $[42] = $hasPrefix, $[43] = $hasSuffix, $[44] = __unstable_disableFocusRing, $[45] = radius, $[46] = rootTheme.scheme, $[47] = rootTheme.tone, $[48] = t14, $[49] = t15, $[50] = t16, $[51] = t17) : t17 = $[51];
4666
+ const presentationNode = t17;
4667
+ let t18;
4668
+ $[52] !== padding ? (t18 = padding.map(_temp2), $[52] = padding, $[53] = t18) : t18 = $[53];
4669
+ const clearButtonBoxPadding = t18;
4496
4670
  let t19;
4497
- $[62] !== $hasIcon || $[63] !== disabled || $[64] !== fontSize2 || $[65] !== padding || $[66] !== readOnly || $[67] !== restProps || $[68] !== rootTheme.scheme || $[69] !== rootTheme.tone || $[70] !== space || $[71] !== t18 || $[72] !== type || $[73] !== weight ? (t19 = /* @__PURE__ */ jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t18, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[62] = $hasIcon, $[63] = disabled, $[64] = fontSize2, $[65] = padding, $[66] = readOnly, $[67] = restProps, $[68] = rootTheme.scheme, $[69] = rootTheme.tone, $[70] = space, $[71] = t18, $[72] = type, $[73] = weight, $[74] = t19) : t19 = $[74];
4671
+ $[54] !== padding ? (t19 = padding.map(_temp3), $[54] = padding, $[55] = t19) : t19 = $[55];
4672
+ const clearButtonPadding = t19, clearButtonProps = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
4498
4673
  let t20;
4499
- $[75] !== clearButtonNode || $[76] !== presentationNode || $[77] !== t19 ? (t20 = /* @__PURE__ */ jsxs(InputRoot, { children: [
4500
- t19,
4674
+ $[56] !== clearButton || $[57] !== clearButtonBoxPadding || $[58] !== clearButtonPadding || $[59] !== clearButtonProps || $[60] !== customValidity || $[61] !== disabled || $[62] !== fontSize2 || $[63] !== handleClearClick || $[64] !== radius || $[65] !== readOnly ? (t20 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[56] = clearButton, $[57] = clearButtonBoxPadding, $[58] = clearButtonPadding, $[59] = clearButtonProps, $[60] = customValidity, $[61] = disabled, $[62] = fontSize2, $[63] = handleClearClick, $[64] = radius, $[65] = readOnly, $[66] = t20) : t20 = $[66];
4675
+ const clearButtonNode = t20;
4676
+ let t21;
4677
+ $[67] !== radius || $[68] !== suffix ? (t21 = suffix && /* @__PURE__ */ jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[67] = radius, $[68] = suffix, $[69] = t21) : t21 = $[69];
4678
+ const suffixNode = t21, t22 = $hasIconRight || $hasClearButton;
4679
+ let t23;
4680
+ $[70] !== $hasIcon || $[71] !== disabled || $[72] !== fontSize2 || $[73] !== padding || $[74] !== readOnly || $[75] !== restProps || $[76] !== rootTheme.scheme || $[77] !== rootTheme.tone || $[78] !== space || $[79] !== t22 || $[80] !== type || $[81] !== weight ? (t23 = /* @__PURE__ */ jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t22, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[70] = $hasIcon, $[71] = disabled, $[72] = fontSize2, $[73] = padding, $[74] = readOnly, $[75] = restProps, $[76] = rootTheme.scheme, $[77] = rootTheme.tone, $[78] = space, $[79] = t22, $[80] = type, $[81] = weight, $[82] = t23) : t23 = $[82];
4681
+ let t24;
4682
+ $[83] !== clearButtonNode || $[84] !== presentationNode || $[85] !== t23 ? (t24 = /* @__PURE__ */ jsxs(InputRoot, { children: [
4683
+ t23,
4501
4684
  presentationNode,
4502
4685
  clearButtonNode
4503
- ] }), $[75] = clearButtonNode, $[76] = presentationNode, $[77] = t19, $[78] = t20) : t20 = $[78];
4504
- let t21;
4505
- return $[79] !== prefixNode || $[80] !== rootTheme.tone || $[81] !== suffixNode || $[82] !== t20 ? (t21 = /* @__PURE__ */ jsxs(StyledTextInput, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
4686
+ ] }), $[83] = clearButtonNode, $[84] = presentationNode, $[85] = t23, $[86] = t24) : t24 = $[86];
4687
+ let t25;
4688
+ return $[87] !== prefixNode || $[88] !== rootTheme.tone || $[89] !== suffixNode || $[90] !== t24 ? (t25 = /* @__PURE__ */ jsxs(StyledTextInput, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
4506
4689
  prefixNode,
4507
- t20,
4690
+ t24,
4508
4691
  suffixNode
4509
- ] }), $[79] = prefixNode, $[80] = rootTheme.tone, $[81] = suffixNode, $[82] = t20, $[83] = t21) : t21 = $[83], t21;
4692
+ ] }), $[87] = prefixNode, $[88] = rootTheme.tone, $[89] = suffixNode, $[90] = t24, $[91] = t25) : t25 = $[91], t25;
4510
4693
  });
4511
4694
  TextInput.displayName = "ForwardRef(TextInput)";
4512
4695
  function _temp$2(event) {
@@ -4627,7 +4810,7 @@ const StyledTooltip = styled(Layer).withConfig({
4627
4810
  displayName: "StyledTooltip",
4628
4811
  componentId: "sc-13f2zvh-0"
4629
4812
  })`pointer-events:none;`, Tooltip = forwardRef(function(props, forwardedRef) {
4630
- const $ = c(135), boundaryElementContext = useBoundaryElement(), {
4813
+ const $ = c(137), boundaryElementContext = useBoundaryElement(), {
4631
4814
  layer
4632
4815
  } = useTheme_v2();
4633
4816
  let _boundaryElement, _fallbackPlacementsProp, _zOffset, childProp, content, delay, disabled, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5;
@@ -4649,46 +4832,49 @@ const StyledTooltip = styled(Layer).withConfig({
4649
4832
  delay,
4650
4833
  ...restProps
4651
4834
  } = props, $[0] = props, $[1] = _boundaryElement, $[2] = _fallbackPlacementsProp, $[3] = _zOffset, $[4] = childProp, $[5] = content, $[6] = delay, $[7] = disabled, $[8] = portalProp, $[9] = restProps, $[10] = scheme, $[11] = t0, $[12] = t1, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5) : (_boundaryElement = $[1], _fallbackPlacementsProp = $[2], _zOffset = $[3], childProp = $[4], content = $[5], delay = $[6], disabled = $[7], portalProp = $[8], restProps = $[9], scheme = $[10], t0 = $[11], t1 = $[12], t2 = $[13], t3 = $[14], t4 = $[15], t5 = $[16]);
4652
- const _animate = t0 === void 0 ? !1 : t0, arrowProp = t1 === void 0 ? !1 : t1, padding = t2 === void 0 ? 2 : t2, placementProp = t3 === void 0 ? "bottom" : t3, radius = t4 === void 0 ? 2 : t4, shadow = t5 === void 0 ? 2 : t5, boundaryElement = _boundaryElement ?? boundaryElementContext?.element, fallbackPlacementsProp = _fallbackPlacementsProp ?? DEFAULT_FALLBACK_PLACEMENTS[props.placement ?? "bottom"], zOffset = _zOffset ?? layer.tooltip.zOffset, animate = usePrefersReducedMotion() ? !1 : _animate, fallbackPlacements = useArrayProp(fallbackPlacementsProp), ref = useRef(null), [referenceElement, setReferenceElement] = useState(null), arrowRef = useRef(null), [tooltipMaxWidth, setTooltipMaxWidth] = useState(0);
4835
+ const _animate = t0 === void 0 ? !1 : t0, arrowProp = t1 === void 0 ? !1 : t1, padding = t2 === void 0 ? 2 : t2, placementProp = t3 === void 0 ? "bottom" : t3, radius = t4 === void 0 ? 2 : t4, shadow = t5 === void 0 ? 2 : t5, boundaryElement = _boundaryElement ?? boundaryElementContext?.element, fallbackPlacementsProp = _fallbackPlacementsProp ?? DEFAULT_FALLBACK_PLACEMENTS[props.placement ?? "bottom"], zOffset = _zOffset ?? layer.tooltip.zOffset, animate = usePrefersReducedMotion() ? !1 : _animate;
4653
4836
  let t6;
4654
- $[17] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[17] = t6) : t6 = $[17], useImperativeHandle(forwardedRef, t6);
4655
- const portal = usePortal(), portalElement = typeof portalProp == "string" ? portal.elements?.[portalProp] || null : portal.element;
4837
+ $[17] !== fallbackPlacementsProp ? (t6 = _getArrayProp(fallbackPlacementsProp), $[17] = fallbackPlacementsProp, $[18] = t6) : t6 = $[18];
4838
+ const fallbackPlacements = t6, ref = useRef(null), [referenceElement, setReferenceElement] = useState(null), arrowRef = useRef(null), [tooltipMaxWidth, setTooltipMaxWidth] = useState(0);
4656
4839
  let t7;
4657
- $[18] !== animate || $[19] !== arrowProp || $[20] !== boundaryElement || $[21] !== fallbackPlacements ? (t7 = {
4840
+ $[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], useImperativeHandle(forwardedRef, t7);
4841
+ const portal = usePortal(), portalElement = typeof portalProp == "string" ? portal.elements?.[portalProp] || null : portal.element;
4842
+ let t8;
4843
+ $[20] !== animate || $[21] !== arrowProp || $[22] !== boundaryElement || $[23] !== fallbackPlacements ? (t8 = {
4658
4844
  animate,
4659
4845
  arrowProp,
4660
4846
  arrowRef,
4661
4847
  boundaryElement,
4662
4848
  fallbackPlacements,
4663
4849
  rootBoundary: "viewport"
4664
- }, $[18] = animate, $[19] = arrowProp, $[20] = boundaryElement, $[21] = fallbackPlacements, $[22] = t7) : t7 = $[22];
4665
- const middleware = useMiddleware(t7);
4666
- let t8;
4667
- $[23] !== referenceElement ? (t8 = {
4668
- reference: referenceElement
4669
- }, $[23] = referenceElement, $[24] = t8) : t8 = $[24];
4850
+ }, $[20] = animate, $[21] = arrowProp, $[22] = boundaryElement, $[23] = fallbackPlacements, $[24] = t8) : t8 = $[24];
4851
+ const middleware = useMiddleware(t8);
4670
4852
  let t9;
4671
- $[25] !== middleware || $[26] !== placementProp || $[27] !== t8 ? (t9 = {
4853
+ $[25] !== referenceElement ? (t9 = {
4854
+ reference: referenceElement
4855
+ }, $[25] = referenceElement, $[26] = t9) : t9 = $[26];
4856
+ let t10;
4857
+ $[27] !== middleware || $[28] !== placementProp || $[29] !== t9 ? (t10 = {
4672
4858
  middleware,
4673
4859
  placement: placementProp,
4674
4860
  whileElementsMounted: autoUpdate,
4675
- elements: t8
4676
- }, $[25] = middleware, $[26] = placementProp, $[27] = t8, $[28] = t9) : t9 = $[28];
4861
+ elements: t9
4862
+ }, $[27] = middleware, $[28] = placementProp, $[29] = t9, $[30] = t10) : t10 = $[30];
4677
4863
  const {
4678
4864
  floatingStyles,
4679
4865
  placement,
4680
4866
  middlewareData,
4681
4867
  refs,
4682
4868
  update
4683
- } = useFloating(t9), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = useId(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup();
4684
- let t10;
4685
- $[29] !== delayGroupContext ? (t10 = delayGroupContext || {}, $[29] = delayGroupContext, $[30] = t10) : t10 = $[30];
4869
+ } = useFloating(t10), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = useId(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup();
4870
+ let t11;
4871
+ $[31] !== delayGroupContext ? (t11 = delayGroupContext || {}, $[31] = delayGroupContext, $[32] = t11) : t11 = $[32];
4686
4872
  const {
4687
4873
  setIsGroupActive,
4688
4874
  setOpenTooltipId
4689
- } = t10, showTooltip = isOpen || delayGroupContext?.openTooltipId === tooltipId, isInsideGroup = delayGroupContext !== null, openDelayProp = typeof delay == "number" ? delay : delay?.open || 0, closeDelayProp = typeof delay == "number" ? delay : delay?.close || 0, openDelay = isInsideGroup ? delayGroupContext.openDelay : openDelayProp, closeDelay = isInsideGroup ? delayGroupContext.closeDelay : closeDelayProp;
4690
- let t11;
4691
- $[31] !== closeDelay || $[32] !== isInsideGroup || $[33] !== openDelay || $[34] !== setIsGroupActive || $[35] !== setIsOpen || $[36] !== setOpenTooltipId || $[37] !== tooltipId ? (t11 = (open, immediate) => {
4875
+ } = t11, showTooltip = isOpen || delayGroupContext?.openTooltipId === tooltipId, isInsideGroup = delayGroupContext !== null, openDelayProp = typeof delay == "number" ? delay : delay?.open || 0, closeDelayProp = typeof delay == "number" ? delay : delay?.close || 0, openDelay = isInsideGroup ? delayGroupContext.openDelay : openDelayProp, closeDelay = isInsideGroup ? delayGroupContext.closeDelay : closeDelayProp;
4876
+ let t12;
4877
+ $[33] !== closeDelay || $[34] !== isInsideGroup || $[35] !== openDelay || $[36] !== setIsGroupActive || $[37] !== setIsOpen || $[38] !== setOpenTooltipId || $[39] !== tooltipId ? (t12 = (open, immediate) => {
4692
4878
  if (isInsideGroup)
4693
4879
  if (open) {
4694
4880
  const groupedOpenDelay = immediate ? 0 : openDelay;
@@ -4699,55 +4885,55 @@ const StyledTooltip = styled(Layer).withConfig({
4699
4885
  }
4700
4886
  else
4701
4887
  setIsOpen(open, immediate ? 0 : open ? openDelay : closeDelay);
4702
- }, $[31] = closeDelay, $[32] = isInsideGroup, $[33] = openDelay, $[34] = setIsGroupActive, $[35] = setIsOpen, $[36] = setOpenTooltipId, $[37] = tooltipId, $[38] = t11) : t11 = $[38];
4703
- const handleIsOpenChange = t11;
4704
- let t12;
4705
- $[39] !== childProp?.props || $[40] !== handleIsOpenChange ? (t12 = (e) => {
4706
- handleIsOpenChange(!1), childProp?.props?.onBlur?.(e);
4707
- }, $[39] = childProp?.props, $[40] = handleIsOpenChange, $[41] = t12) : t12 = $[41];
4708
- const handleBlur = t12;
4888
+ }, $[33] = closeDelay, $[34] = isInsideGroup, $[35] = openDelay, $[36] = setIsGroupActive, $[37] = setIsOpen, $[38] = setOpenTooltipId, $[39] = tooltipId, $[40] = t12) : t12 = $[40];
4889
+ const handleIsOpenChange = t12;
4709
4890
  let t13;
4710
- $[42] !== childProp?.props || $[43] !== handleIsOpenChange ? (t13 = (e_0) => {
4711
- handleIsOpenChange(!1, !0), childProp?.props.onClick?.(e_0);
4712
- }, $[42] = childProp?.props, $[43] = handleIsOpenChange, $[44] = t13) : t13 = $[44];
4713
- const handleClick = t13;
4891
+ $[41] !== childProp?.props || $[42] !== handleIsOpenChange ? (t13 = (e) => {
4892
+ handleIsOpenChange(!1), childProp?.props?.onBlur?.(e);
4893
+ }, $[41] = childProp?.props, $[42] = handleIsOpenChange, $[43] = t13) : t13 = $[43];
4894
+ const handleBlur = t13;
4714
4895
  let t14;
4715
- $[45] !== childProp?.props || $[46] !== handleIsOpenChange ? (t14 = (e_1) => {
4716
- handleIsOpenChange(!1, !0), childProp?.props.onContextMenu?.(e_1);
4717
- }, $[45] = childProp?.props, $[46] = handleIsOpenChange, $[47] = t14) : t14 = $[47];
4718
- const handleContextMenu = t14;
4896
+ $[44] !== childProp?.props || $[45] !== handleIsOpenChange ? (t14 = (e_0) => {
4897
+ handleIsOpenChange(!1, !0), childProp?.props.onClick?.(e_0);
4898
+ }, $[44] = childProp?.props, $[45] = handleIsOpenChange, $[46] = t14) : t14 = $[46];
4899
+ const handleClick = t14;
4719
4900
  let t15;
4720
- $[48] !== childProp?.props || $[49] !== handleIsOpenChange ? (t15 = (e_2) => {
4721
- handleIsOpenChange(!0), childProp?.props?.onFocus?.(e_2);
4722
- }, $[48] = childProp?.props, $[49] = handleIsOpenChange, $[50] = t15) : t15 = $[50];
4723
- const handleFocus = t15;
4901
+ $[47] !== childProp?.props || $[48] !== handleIsOpenChange ? (t15 = (e_1) => {
4902
+ handleIsOpenChange(!1, !0), childProp?.props.onContextMenu?.(e_1);
4903
+ }, $[47] = childProp?.props, $[48] = handleIsOpenChange, $[49] = t15) : t15 = $[49];
4904
+ const handleContextMenu = t15;
4724
4905
  let t16;
4725
- $[51] !== childProp?.props || $[52] !== handleIsOpenChange ? (t16 = (e_3) => {
4726
- handleIsOpenChange(!0), childProp?.props?.onMouseEnter?.(e_3);
4727
- }, $[51] = childProp?.props, $[52] = handleIsOpenChange, $[53] = t16) : t16 = $[53];
4728
- const handleMouseEnter = t16;
4906
+ $[50] !== childProp?.props || $[51] !== handleIsOpenChange ? (t16 = (e_2) => {
4907
+ handleIsOpenChange(!0), childProp?.props?.onFocus?.(e_2);
4908
+ }, $[50] = childProp?.props, $[51] = handleIsOpenChange, $[52] = t16) : t16 = $[52];
4909
+ const handleFocus = t16;
4729
4910
  let t17;
4730
- $[54] !== childProp?.props || $[55] !== handleIsOpenChange ? (t17 = (e_4) => {
4731
- handleIsOpenChange(!1), childProp?.props?.onMouseLeave?.(e_4);
4732
- }, $[54] = childProp?.props, $[55] = handleIsOpenChange, $[56] = t17) : t17 = $[56];
4733
- const handleMouseLeave = t17;
4911
+ $[53] !== childProp?.props || $[54] !== handleIsOpenChange ? (t17 = (e_3) => {
4912
+ handleIsOpenChange(!0), childProp?.props?.onMouseEnter?.(e_3);
4913
+ }, $[53] = childProp?.props, $[54] = handleIsOpenChange, $[55] = t17) : t17 = $[55];
4914
+ const handleMouseEnter = t17;
4734
4915
  let t18;
4735
- $[57] !== handleIsOpenChange || $[58] !== isInsideGroup || $[59] !== referenceElement || $[60] !== showTooltip ? (t18 = {
4916
+ $[56] !== childProp?.props || $[57] !== handleIsOpenChange ? (t18 = (e_4) => {
4917
+ handleIsOpenChange(!1), childProp?.props?.onMouseLeave?.(e_4);
4918
+ }, $[56] = childProp?.props, $[57] = handleIsOpenChange, $[58] = t18) : t18 = $[58];
4919
+ const handleMouseLeave = t18;
4920
+ let t19;
4921
+ $[59] !== handleIsOpenChange || $[60] !== isInsideGroup || $[61] !== referenceElement || $[62] !== showTooltip ? (t19 = {
4736
4922
  handleIsOpenChange,
4737
4923
  referenceElement,
4738
4924
  showTooltip,
4739
4925
  isInsideGroup
4740
- }, $[57] = handleIsOpenChange, $[58] = isInsideGroup, $[59] = referenceElement, $[60] = showTooltip, $[61] = t18) : t18 = $[61], useCloseOnMouseLeave(t18);
4741
- let t19, t20;
4742
- $[62] !== disabled || $[63] !== handleIsOpenChange || $[64] !== showTooltip ? (t19 = () => {
4926
+ }, $[59] = handleIsOpenChange, $[60] = isInsideGroup, $[61] = referenceElement, $[62] = showTooltip, $[63] = t19) : t19 = $[63], useCloseOnMouseLeave(t19);
4927
+ let t20, t21;
4928
+ $[64] !== disabled || $[65] !== handleIsOpenChange || $[66] !== showTooltip ? (t20 = () => {
4743
4929
  disabled && showTooltip && handleIsOpenChange(!1);
4744
- }, t20 = [disabled, handleIsOpenChange, showTooltip], $[62] = disabled, $[63] = handleIsOpenChange, $[64] = showTooltip, $[65] = t19, $[66] = t20) : (t19 = $[65], t20 = $[66]), useEffect(t19, t20);
4745
- let t21, t22;
4746
- $[67] !== content || $[68] !== handleIsOpenChange || $[69] !== showTooltip ? (t21 = () => {
4930
+ }, t21 = [disabled, handleIsOpenChange, showTooltip], $[64] = disabled, $[65] = handleIsOpenChange, $[66] = showTooltip, $[67] = t20, $[68] = t21) : (t20 = $[67], t21 = $[68]), useEffect(t20, t21);
4931
+ let t22, t23;
4932
+ $[69] !== content || $[70] !== handleIsOpenChange || $[71] !== showTooltip ? (t22 = () => {
4747
4933
  !content && showTooltip && handleIsOpenChange(!1);
4748
- }, t22 = [content, handleIsOpenChange, showTooltip], $[67] = content, $[68] = handleIsOpenChange, $[69] = showTooltip, $[70] = t21, $[71] = t22) : (t21 = $[70], t22 = $[71]), useEffect(t21, t22);
4749
- let t23, t24;
4750
- $[72] !== handleIsOpenChange || $[73] !== showTooltip ? (t23 = () => {
4934
+ }, t23 = [content, handleIsOpenChange, showTooltip], $[69] = content, $[70] = handleIsOpenChange, $[71] = showTooltip, $[72] = t22, $[73] = t23) : (t22 = $[72], t23 = $[73]), useEffect(t22, t23);
4935
+ let t24, t25;
4936
+ $[74] !== handleIsOpenChange || $[75] !== showTooltip ? (t24 = () => {
4751
4937
  if (!showTooltip)
4752
4938
  return;
4753
4939
  const handleWindowKeyDown = function(event) {
@@ -4756,32 +4942,32 @@ const StyledTooltip = styled(Layer).withConfig({
4756
4942
  return window.addEventListener("keydown", handleWindowKeyDown), () => {
4757
4943
  window.removeEventListener("keydown", handleWindowKeyDown);
4758
4944
  };
4759
- }, t24 = [handleIsOpenChange, showTooltip], $[72] = handleIsOpenChange, $[73] = showTooltip, $[74] = t23, $[75] = t24) : (t23 = $[74], t24 = $[75]), useEffect(t23, t24);
4760
- let t25;
4761
- $[76] !== boundaryElement || $[77] !== portalElement?.offsetWidth ? (t25 = () => {
4945
+ }, t25 = [handleIsOpenChange, showTooltip], $[74] = handleIsOpenChange, $[75] = showTooltip, $[76] = t24, $[77] = t25) : (t24 = $[76], t25 = $[77]), useEffect(t24, t25);
4946
+ let t26;
4947
+ $[78] !== boundaryElement || $[79] !== portalElement?.offsetWidth ? (t26 = () => {
4762
4948
  const availableWidths = [...boundaryElement ? [boundaryElement.offsetWidth] : [], portalElement?.offsetWidth || document.body.offsetWidth];
4763
4949
  setTooltipMaxWidth(Math.min(...availableWidths) - DEFAULT_TOOLTIP_PADDING * 2);
4764
- }, $[76] = boundaryElement, $[77] = portalElement?.offsetWidth, $[78] = t25) : t25 = $[78];
4765
- let t26;
4766
- $[79] !== boundaryElement || $[80] !== portalElement ? (t26 = [boundaryElement, portalElement], $[79] = boundaryElement, $[80] = portalElement, $[81] = t26) : t26 = $[81], useLayoutEffect(t25, t26);
4950
+ }, $[78] = boundaryElement, $[79] = portalElement?.offsetWidth, $[80] = t26) : t26 = $[80];
4767
4951
  let t27;
4768
- $[82] !== update ? (t27 = (arrowEl) => {
4769
- arrowRef.current = arrowEl, update();
4770
- }, $[82] = update, $[83] = t27) : t27 = $[83];
4771
- const setArrow = t27;
4952
+ $[81] !== boundaryElement || $[82] !== portalElement ? (t27 = [boundaryElement, portalElement], $[81] = boundaryElement, $[82] = portalElement, $[83] = t27) : t27 = $[83], useLayoutEffect(t26, t27);
4772
4953
  let t28;
4773
- $[84] !== refs ? (t28 = (node) => {
4774
- ref.current = node, refs.setFloating(node);
4775
- }, $[84] = refs, $[85] = t28) : t28 = $[85];
4776
- const setFloating = t28;
4954
+ $[84] !== update ? (t28 = (arrowEl) => {
4955
+ arrowRef.current = arrowEl, update();
4956
+ }, $[84] = update, $[85] = t28) : t28 = $[85];
4957
+ const setArrow = t28;
4777
4958
  let t29;
4959
+ $[86] !== refs ? (t29 = (node) => {
4960
+ ref.current = node, refs.setFloating(node);
4961
+ }, $[86] = refs, $[87] = t29) : t29 = $[87];
4962
+ const setFloating = t29;
4963
+ let t30;
4778
4964
  bb0: {
4779
4965
  if (!childProp) {
4780
- t29 = null;
4966
+ t30 = null;
4781
4967
  break bb0;
4782
4968
  }
4783
- let t302;
4784
- $[86] !== childProp || $[87] !== handleBlur || $[88] !== handleClick || $[89] !== handleContextMenu || $[90] !== handleFocus || $[91] !== handleMouseEnter || $[92] !== handleMouseLeave ? (t302 = cloneElement(childProp, {
4969
+ let t312;
4970
+ $[88] !== childProp || $[89] !== handleBlur || $[90] !== handleClick || $[91] !== handleContextMenu || $[92] !== handleFocus || $[93] !== handleMouseEnter || $[94] !== handleMouseLeave ? (t312 = cloneElement(childProp, {
4785
4971
  onBlur: handleBlur,
4786
4972
  onFocus: handleFocus,
4787
4973
  onMouseEnter: handleMouseEnter,
@@ -4789,39 +4975,39 @@ const StyledTooltip = styled(Layer).withConfig({
4789
4975
  onClick: handleClick,
4790
4976
  onContextMenu: handleContextMenu,
4791
4977
  ref: setReferenceElement
4792
- }), $[86] = childProp, $[87] = handleBlur, $[88] = handleClick, $[89] = handleContextMenu, $[90] = handleFocus, $[91] = handleMouseEnter, $[92] = handleMouseLeave, $[93] = t302) : t302 = $[93], t29 = t302;
4978
+ }), $[88] = childProp, $[89] = handleBlur, $[90] = handleClick, $[91] = handleContextMenu, $[92] = handleFocus, $[93] = handleMouseEnter, $[94] = handleMouseLeave, $[95] = t312) : t312 = $[95], t30 = t312;
4793
4979
  }
4794
- const child = t29;
4795
- let t30;
4796
- $[94] !== childProp ? (t30 = childProp ? getElementRef(childProp) : null, $[94] = childProp, $[95] = t30) : t30 = $[95];
4797
- let t31, t32;
4798
- if ($[96] !== referenceElement ? (t31 = () => referenceElement, t32 = [referenceElement], $[96] = referenceElement, $[97] = t31, $[98] = t32) : (t31 = $[97], t32 = $[98]), useImperativeHandle(t30, t31, t32), !child) {
4799
- let t332;
4800
- return $[99] === Symbol.for("react.memo_cache_sentinel") ? (t332 = /* @__PURE__ */ jsx(Fragment, {}), $[99] = t332) : t332 = $[99], t332;
4980
+ const child = t30;
4981
+ let t31;
4982
+ $[96] !== childProp ? (t31 = childProp ? getElementRef(childProp) : null, $[96] = childProp, $[97] = t31) : t31 = $[97];
4983
+ let t32, t33;
4984
+ if ($[98] !== referenceElement ? (t32 = () => referenceElement, t33 = [referenceElement], $[98] = referenceElement, $[99] = t32, $[100] = t33) : (t32 = $[99], t33 = $[100]), useImperativeHandle(t31, t32, t33), !child) {
4985
+ let t342;
4986
+ return $[101] === Symbol.for("react.memo_cache_sentinel") ? (t342 = /* @__PURE__ */ jsx(Fragment, {}), $[101] = t342) : t342 = $[101], t342;
4801
4987
  }
4802
4988
  if (disabled)
4803
4989
  return child;
4804
- const t33 = tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0;
4805
- let t34;
4806
- $[100] !== floatingStyles || $[101] !== t33 ? (t34 = {
4807
- ...floatingStyles,
4808
- maxWidth: t33
4809
- }, $[100] = floatingStyles, $[101] = t33, $[102] = t34) : t34 = $[102];
4990
+ const t34 = tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0;
4810
4991
  let t35;
4811
- $[103] !== animate || $[104] !== arrowProp || $[105] !== arrowX || $[106] !== arrowY || $[107] !== content || $[108] !== originX || $[109] !== originY || $[110] !== padding || $[111] !== placement || $[112] !== radius || $[113] !== restProps || $[114] !== scheme || $[115] !== setArrow || $[116] !== setFloating || $[117] !== shadow ? (t35 = /* @__PURE__ */ jsx(TooltipCard, { ...restProps, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, originX, originY, padding, placement, radius, ref: setFloating, scheme, shadow, children: content }), $[103] = animate, $[104] = arrowProp, $[105] = arrowX, $[106] = arrowY, $[107] = content, $[108] = originX, $[109] = originY, $[110] = padding, $[111] = placement, $[112] = radius, $[113] = restProps, $[114] = scheme, $[115] = setArrow, $[116] = setFloating, $[117] = shadow, $[118] = t35) : t35 = $[118];
4992
+ $[102] !== floatingStyles || $[103] !== t34 ? (t35 = {
4993
+ ...floatingStyles,
4994
+ maxWidth: t34
4995
+ }, $[102] = floatingStyles, $[103] = t34, $[104] = t35) : t35 = $[104];
4812
4996
  let t36;
4813
- $[119] !== restProps || $[120] !== setFloating || $[121] !== t34 || $[122] !== t35 || $[123] !== zOffset ? (t36 = /* @__PURE__ */ jsx(StyledTooltip, { "data-ui": "Tooltip", ...restProps, ref: setFloating, style: t34, zOffset, children: t35 }), $[119] = restProps, $[120] = setFloating, $[121] = t34, $[122] = t35, $[123] = zOffset, $[124] = t36) : t36 = $[124];
4814
- const tooltip = t36;
4997
+ $[105] !== animate || $[106] !== arrowProp || $[107] !== arrowX || $[108] !== arrowY || $[109] !== content || $[110] !== originX || $[111] !== originY || $[112] !== padding || $[113] !== placement || $[114] !== radius || $[115] !== restProps || $[116] !== scheme || $[117] !== setArrow || $[118] !== setFloating || $[119] !== shadow ? (t36 = /* @__PURE__ */ jsx(TooltipCard, { ...restProps, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, originX, originY, padding, placement, radius, ref: setFloating, scheme, shadow, children: content }), $[105] = animate, $[106] = arrowProp, $[107] = arrowX, $[108] = arrowY, $[109] = content, $[110] = originX, $[111] = originY, $[112] = padding, $[113] = placement, $[114] = radius, $[115] = restProps, $[116] = scheme, $[117] = setArrow, $[118] = setFloating, $[119] = shadow, $[120] = t36) : t36 = $[120];
4815
4998
  let t37;
4816
- $[125] !== portalProp || $[126] !== showTooltip || $[127] !== tooltip ? (t37 = showTooltip && (portalProp ? /* @__PURE__ */ jsx(Portal, { __unstable_name: typeof portalProp == "string" ? portalProp : void 0, children: tooltip }) : tooltip), $[125] = portalProp, $[126] = showTooltip, $[127] = tooltip, $[128] = t37) : t37 = $[128];
4817
- const children = t37;
4999
+ $[121] !== restProps || $[122] !== setFloating || $[123] !== t35 || $[124] !== t36 || $[125] !== zOffset ? (t37 = /* @__PURE__ */ jsx(StyledTooltip, { "data-ui": "Tooltip", ...restProps, ref: setFloating, style: t35, zOffset, children: t36 }), $[121] = restProps, $[122] = setFloating, $[123] = t35, $[124] = t36, $[125] = zOffset, $[126] = t37) : t37 = $[126];
5000
+ const tooltip = t37;
4818
5001
  let t38;
4819
- $[129] !== animate || $[130] !== children ? (t38 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[129] = animate, $[130] = children, $[131] = t38) : t38 = $[131];
5002
+ $[127] !== portalProp || $[128] !== showTooltip || $[129] !== tooltip ? (t38 = showTooltip && (portalProp ? /* @__PURE__ */ jsx(Portal, { __unstable_name: typeof portalProp == "string" ? portalProp : void 0, children: tooltip }) : tooltip), $[127] = portalProp, $[128] = showTooltip, $[129] = tooltip, $[130] = t38) : t38 = $[130];
5003
+ const children = t38;
4820
5004
  let t39;
4821
- return $[132] !== child || $[133] !== t38 ? (t39 = /* @__PURE__ */ jsxs(Fragment, { children: [
4822
- t38,
5005
+ $[131] !== animate || $[132] !== children ? (t39 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[131] = animate, $[132] = children, $[133] = t39) : t39 = $[133];
5006
+ let t40;
5007
+ return $[134] !== child || $[135] !== t39 ? (t40 = /* @__PURE__ */ jsxs(Fragment, { children: [
5008
+ t39,
4823
5009
  child
4824
- ] }), $[132] = child, $[133] = t38, $[134] = t39) : t39 = $[134], t39;
5010
+ ] }), $[134] = child, $[135] = t39, $[136] = t40) : t40 = $[136], t40;
4825
5011
  });
4826
5012
  Tooltip.displayName = "ForwardRef(Tooltip)";
4827
5013
  function useMiddleware(t0) {
@@ -4897,7 +5083,7 @@ const StyledHotkeys = styled.kbd.withConfig({
4897
5083
  displayName: "Key",
4898
5084
  componentId: "sc-b37mge-1"
4899
5085
  })`&:not([hidden]){display:block;}`, Hotkeys = forwardRef(function(props, ref) {
4900
- const $ = c(24);
5086
+ const $ = c(26);
4901
5087
  let fontSize2, keys, padding, radius, restProps, t0;
4902
5088
  $[0] !== props ? ({
4903
5089
  fontSize: fontSize2,
@@ -4907,21 +5093,24 @@ const StyledHotkeys = styled.kbd.withConfig({
4907
5093
  space: t0,
4908
5094
  ...restProps
4909
5095
  } = props, $[0] = props, $[1] = fontSize2, $[2] = keys, $[3] = padding, $[4] = radius, $[5] = restProps, $[6] = t0) : (fontSize2 = $[1], keys = $[2], padding = $[3], radius = $[4], restProps = $[5], t0 = $[6]);
4910
- const space = useArrayProp(t0 === void 0 ? 0.5 : t0);
4911
- if (!keys || keys.length === 0) {
4912
- let t12;
4913
- return $[7] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(Fragment, {}), $[7] = t12) : t12 = $[7], t12;
4914
- }
5096
+ const spaceProp = t0 === void 0 ? 0.5 : t0;
4915
5097
  let t1;
4916
- if ($[8] !== fontSize2 || $[9] !== keys || $[10] !== padding || $[11] !== radius) {
5098
+ $[7] !== spaceProp ? (t1 = _getArrayProp(spaceProp), $[7] = spaceProp, $[8] = t1) : t1 = $[8];
5099
+ const space = t1;
5100
+ if (!keys || keys.length === 0) {
4917
5101
  let t22;
4918
- $[13] !== fontSize2 || $[14] !== padding || $[15] !== radius ? (t22 = (key2, i) => /* @__PURE__ */ jsx(Key, { fontSize: fontSize2, padding, radius, children: key2 }, i), $[13] = fontSize2, $[14] = padding, $[15] = radius, $[16] = t22) : t22 = $[16], t1 = keys.map(t22), $[8] = fontSize2, $[9] = keys, $[10] = padding, $[11] = radius, $[12] = t1;
4919
- } else
4920
- t1 = $[12];
5102
+ return $[9] === Symbol.for("react.memo_cache_sentinel") ? (t22 = /* @__PURE__ */ jsx(Fragment, {}), $[9] = t22) : t22 = $[9], t22;
5103
+ }
4921
5104
  let t2;
4922
- $[17] !== space || $[18] !== t1 ? (t2 = /* @__PURE__ */ jsx(Inline, { as: "span", space, children: t1 }), $[17] = space, $[18] = t1, $[19] = t2) : t2 = $[19];
5105
+ if ($[10] !== fontSize2 || $[11] !== keys || $[12] !== padding || $[13] !== radius) {
5106
+ let t32;
5107
+ $[15] !== fontSize2 || $[16] !== padding || $[17] !== radius ? (t32 = (key2, i) => /* @__PURE__ */ jsx(Key, { fontSize: fontSize2, padding, radius, children: key2 }, i), $[15] = fontSize2, $[16] = padding, $[17] = radius, $[18] = t32) : t32 = $[18], t2 = keys.map(t32), $[10] = fontSize2, $[11] = keys, $[12] = padding, $[13] = radius, $[14] = t2;
5108
+ } else
5109
+ t2 = $[14];
4923
5110
  let t3;
4924
- return $[20] !== ref || $[21] !== restProps || $[22] !== t2 ? (t3 = /* @__PURE__ */ jsx(StyledHotkeys, { "data-ui": "Hotkeys", ...restProps, ref, children: t2 }), $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3) : t3 = $[23], t3;
5111
+ $[19] !== space || $[20] !== t2 ? (t3 = /* @__PURE__ */ jsx(Inline, { as: "span", space, children: t2 }), $[19] = space, $[20] = t2, $[21] = t3) : t3 = $[21];
5112
+ let t4;
5113
+ return $[22] !== ref || $[23] !== restProps || $[24] !== t3 ? (t4 = /* @__PURE__ */ jsx(StyledHotkeys, { "data-ui": "Hotkeys", ...restProps, ref, children: t3 }), $[22] = ref, $[23] = restProps, $[24] = t3, $[25] = t4) : t4 = $[25], t4;
4925
5114
  });
4926
5115
  Hotkeys.displayName = "ForwardRef(Hotkeys)";
4927
5116
  const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
@@ -5292,7 +5481,7 @@ function useMenu() {
5292
5481
  return value;
5293
5482
  }
5294
5483
  function MenuGroup(props) {
5295
- const $ = c(79);
5484
+ const $ = c(81);
5296
5485
  let IconComponent, children, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
5297
5486
  $[0] !== props ? ({
5298
5487
  as: t0,
@@ -5373,32 +5562,35 @@ function MenuGroup(props) {
5373
5562
  return;
5374
5563
  }
5375
5564
  }, $[45] = t20) : t20 = $[45];
5376
- const handleKeyDown = t20, t21 = as === "button" ? withinMenu : void 0, t22 = as !== "button" ? withinMenu : void 0, t23 = !withinMenu && active ? "" : void 0, t24 = useArrayProp(radius), t25 = as === "button" ? "button" : void 0;
5565
+ const handleKeyDown = t20, t21 = as === "button" ? withinMenu : void 0, t22 = as !== "button" ? withinMenu : void 0, t23 = !withinMenu && active ? "" : void 0;
5566
+ let t24;
5567
+ $[46] !== radius ? (t24 = _getArrayProp(radius), $[46] = radius, $[47] = t24) : t24 = $[47];
5568
+ const t25 = as === "button" ? "button" : void 0;
5377
5569
  let t26;
5378
- $[46] !== IconComponent || $[47] !== fontSize2 ? (t26 = IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
5570
+ $[48] !== IconComponent || $[49] !== fontSize2 ? (t26 = IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
5379
5571
  isValidElement(IconComponent) && IconComponent,
5380
5572
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
5381
- ] }), $[46] = IconComponent, $[47] = fontSize2, $[48] = t26) : t26 = $[48];
5573
+ ] }), $[48] = IconComponent, $[49] = fontSize2, $[50] = t26) : t26 = $[50];
5382
5574
  let t27;
5383
- $[49] !== fontSize2 || $[50] !== text ? (t27 = /* @__PURE__ */ jsx(Box, { flex: 1, children: /* @__PURE__ */ jsx(Text, { size: fontSize2, textOverflow: "ellipsis", weight: "medium", children: text }) }), $[49] = fontSize2, $[50] = text, $[51] = t27) : t27 = $[51];
5575
+ $[51] !== fontSize2 || $[52] !== text ? (t27 = /* @__PURE__ */ jsx(Box, { flex: 1, children: /* @__PURE__ */ jsx(Text, { size: fontSize2, textOverflow: "ellipsis", weight: "medium", children: text }) }), $[51] = fontSize2, $[52] = text, $[53] = t27) : t27 = $[53];
5384
5576
  let t28;
5385
- $[52] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ jsx(ChevronRightIcon, {}), $[52] = t28) : t28 = $[52];
5577
+ $[54] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ jsx(ChevronRightIcon, {}), $[54] = t28) : t28 = $[54];
5386
5578
  let t29;
5387
- $[53] !== fontSize2 ? (t29 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t28 }), $[53] = fontSize2, $[54] = t29) : t29 = $[54];
5579
+ $[55] !== fontSize2 ? (t29 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t28 }), $[55] = fontSize2, $[56] = t29) : t29 = $[56];
5388
5580
  let t30;
5389
- $[55] !== padding || $[56] !== space || $[57] !== t26 || $[58] !== t27 || $[59] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Flex, { gap: space, padding, children: [
5581
+ $[57] !== padding || $[58] !== space || $[59] !== t26 || $[60] !== t27 || $[61] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Flex, { gap: space, padding, children: [
5390
5582
  t26,
5391
5583
  t27,
5392
5584
  t29
5393
- ] }), $[55] = padding, $[56] = space, $[57] = t26, $[58] = t27, $[59] = t29, $[60] = t30) : t30 = $[60];
5585
+ ] }), $[57] = padding, $[58] = space, $[59] = t26, $[60] = t27, $[61] = t29, $[62] = t30) : t30 = $[62];
5394
5586
  let t31;
5395
- $[61] !== as || $[62] !== handleClick || $[63] !== handleMouseEnter || $[64] !== restProps || $[65] !== scheme || $[66] !== t21 || $[67] !== t22 || $[68] !== t23 || $[69] !== t24 || $[70] !== t25 || $[71] !== t30 || $[72] !== tone ? (t31 = /* @__PURE__ */ jsx(Selectable, { "data-as": as, "data-ui": "MenuGroup", forwardedAs: as, ...restProps, "aria-pressed": t21, "data-pressed": t22, "data-selected": t23, $radius: t24, $tone: tone, $scheme: scheme, onClick: handleClick, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, ref: setRootElement, tabIndex: -1, type: t25, children: t30 }), $[61] = as, $[62] = handleClick, $[63] = handleMouseEnter, $[64] = restProps, $[65] = scheme, $[66] = t21, $[67] = t22, $[68] = t23, $[69] = t24, $[70] = t25, $[71] = t30, $[72] = tone, $[73] = t31) : t31 = $[73];
5587
+ $[63] !== as || $[64] !== handleClick || $[65] !== handleMouseEnter || $[66] !== restProps || $[67] !== scheme || $[68] !== t21 || $[69] !== t22 || $[70] !== t23 || $[71] !== t24 || $[72] !== t25 || $[73] !== t30 || $[74] !== tone ? (t31 = /* @__PURE__ */ jsx(Selectable, { "data-as": as, "data-ui": "MenuGroup", forwardedAs: as, ...restProps, "aria-pressed": t21, "data-pressed": t22, "data-selected": t23, $radius: t24, $tone: tone, $scheme: scheme, onClick: handleClick, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, ref: setRootElement, tabIndex: -1, type: t25, children: t30 }), $[63] = as, $[64] = handleClick, $[65] = handleMouseEnter, $[66] = restProps, $[67] = scheme, $[68] = t21, $[69] = t22, $[70] = t23, $[71] = t24, $[72] = t25, $[73] = t30, $[74] = tone, $[75] = t31) : t31 = $[75];
5396
5588
  let t32;
5397
- return $[74] !== childMenu || $[75] !== open || $[76] !== popover || $[77] !== t31 ? (t32 = /* @__PURE__ */ jsx(Popover, { ...popover, content: childMenu, "data-ui": "MenuGroup__popover", open, children: t31 }), $[74] = childMenu, $[75] = open, $[76] = popover, $[77] = t31, $[78] = t32) : t32 = $[78], t32;
5589
+ return $[76] !== childMenu || $[77] !== open || $[78] !== popover || $[79] !== t31 ? (t32 = /* @__PURE__ */ jsx(Popover, { ...popover, content: childMenu, "data-ui": "MenuGroup__popover", open, children: t31 }), $[76] = childMenu, $[77] = open, $[78] = popover, $[79] = t31, $[80] = t32) : t32 = $[80], t32;
5398
5590
  }
5399
5591
  MenuGroup.displayName = "MenuGroup";
5400
5592
  const MenuItem = forwardRef(function(props, forwardedRef) {
5401
- const $ = c(73);
5593
+ const $ = c(75);
5402
5594
  let IconComponent, IconRightComponent, children, disabled, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
5403
5595
  $[0] !== props ? ({
5404
5596
  as: t0,
@@ -5452,17 +5644,22 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
5452
5644
  paddingBottom,
5453
5645
  paddingLeft
5454
5646
  }, $[33] = padding, $[34] = paddingBottom, $[35] = paddingLeft, $[36] = paddingRight, $[37] = paddingTop, $[38] = paddingX, $[39] = paddingY, $[40] = t10) : t10 = $[40];
5455
- const paddingProps = t10, t11 = useArrayProp(fontSize2);
5647
+ const paddingProps = t10;
5648
+ let t11;
5649
+ $[41] !== fontSize2 ? (t11 = _getArrayProp(fontSize2).map(_temp), $[41] = fontSize2, $[42] = t11) : t11 = $[42];
5650
+ const hotkeysFontSize = t11;
5456
5651
  let t12;
5457
- $[41] !== t11 ? (t12 = t11.map(_temp), $[41] = t11, $[42] = t12) : t12 = $[42];
5458
- const hotkeysFontSize = t12;
5459
- let t13;
5460
- $[43] === Symbol.for("react.memo_cache_sentinel") ? (t13 = (el) => {
5652
+ $[43] === Symbol.for("react.memo_cache_sentinel") ? (t12 = (el) => {
5461
5653
  ref.current = el, setRootElement(el);
5462
- }, $[43] = t13) : t13 = $[43];
5463
- const setRef = t13, t14 = as !== "button" && pressed ? "" : void 0, t15 = active ? "" : void 0, t16 = disabled ? "" : void 0, t17 = useArrayProp(radius), t18 = useArrayProp(0), t19 = disabled ? "default" : tone, t20 = as === "button" ? "button" : void 0;
5464
- let t21;
5465
- $[44] !== IconComponent || $[45] !== IconRightComponent || $[46] !== fontSize2 || $[47] !== hotkeys || $[48] !== hotkeysFontSize || $[49] !== paddingProps || $[50] !== space || $[51] !== text ? (t21 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
5654
+ }, $[43] = t12) : t12 = $[43];
5655
+ const setRef = t12, t13 = as !== "button" && pressed ? "" : void 0, t14 = active ? "" : void 0, t15 = disabled ? "" : void 0;
5656
+ let t16;
5657
+ $[44] !== radius ? (t16 = _getArrayProp(radius), $[44] = radius, $[45] = t16) : t16 = $[45];
5658
+ let t17;
5659
+ $[46] === Symbol.for("react.memo_cache_sentinel") ? (t17 = _getArrayProp(0), $[46] = t17) : t17 = $[46];
5660
+ const t18 = disabled ? "default" : tone, t19 = as === "button" ? "button" : void 0;
5661
+ let t20;
5662
+ $[47] !== IconComponent || $[48] !== IconRightComponent || $[49] !== fontSize2 || $[50] !== hotkeys || $[51] !== hotkeysFontSize || $[52] !== paddingProps || $[53] !== space || $[54] !== text ? (t20 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
5466
5663
  IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
5467
5664
  isValidElement(IconComponent) && IconComponent,
5468
5665
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
@@ -5476,14 +5673,14 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
5476
5673
  isValidElement(IconRightComponent) && IconRightComponent,
5477
5674
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
5478
5675
  ] })
5479
- ] }), $[44] = IconComponent, $[45] = IconRightComponent, $[46] = fontSize2, $[47] = hotkeys, $[48] = hotkeysFontSize, $[49] = paddingProps, $[50] = space, $[51] = text, $[52] = t21) : t21 = $[52];
5676
+ ] }), $[47] = IconComponent, $[48] = IconRightComponent, $[49] = fontSize2, $[50] = hotkeys, $[51] = hotkeysFontSize, $[52] = paddingProps, $[53] = space, $[54] = text, $[55] = t20) : t20 = $[55];
5677
+ let t21;
5678
+ $[56] !== children || $[57] !== paddingProps ? (t21 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...paddingProps, children }), $[56] = children, $[57] = paddingProps, $[58] = t21) : t21 = $[58];
5480
5679
  let t22;
5481
- $[53] !== children || $[54] !== paddingProps ? (t22 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...paddingProps, children }), $[53] = children, $[54] = paddingProps, $[55] = t22) : t22 = $[55];
5482
- let t23;
5483
- return $[56] !== as || $[57] !== disabled || $[58] !== handleClick || $[59] !== onItemMouseEnter || $[60] !== onItemMouseLeave || $[61] !== restProps || $[62] !== scheme || $[63] !== t14 || $[64] !== t15 || $[65] !== t16 || $[66] !== t17 || $[67] !== t18 || $[68] !== t19 || $[69] !== t20 || $[70] !== t21 || $[71] !== t22 ? (t23 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", role: "menuitem", ...restProps, "data-pressed": t14, "data-selected": t15, "data-disabled": t16, forwardedAs: as, $radius: t17, $padding: t18, $tone: t19, $scheme: scheme, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, tabIndex: -1, type: t20, children: [
5484
- t21,
5485
- t22
5486
- ] }), $[56] = as, $[57] = disabled, $[58] = handleClick, $[59] = onItemMouseEnter, $[60] = onItemMouseLeave, $[61] = restProps, $[62] = scheme, $[63] = t14, $[64] = t15, $[65] = t16, $[66] = t17, $[67] = t18, $[68] = t19, $[69] = t20, $[70] = t21, $[71] = t22, $[72] = t23) : t23 = $[72], t23;
5680
+ return $[59] !== as || $[60] !== disabled || $[61] !== handleClick || $[62] !== onItemMouseEnter || $[63] !== onItemMouseLeave || $[64] !== restProps || $[65] !== scheme || $[66] !== t13 || $[67] !== t14 || $[68] !== t15 || $[69] !== t16 || $[70] !== t18 || $[71] !== t19 || $[72] !== t20 || $[73] !== t21 ? (t22 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", role: "menuitem", ...restProps, "data-pressed": t13, "data-selected": t14, "data-disabled": t15, forwardedAs: as, $radius: t16, $padding: t17, $tone: t18, $scheme: scheme, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, tabIndex: -1, type: t19, children: [
5681
+ t20,
5682
+ t21
5683
+ ] }), $[59] = as, $[60] = disabled, $[61] = handleClick, $[62] = onItemMouseEnter, $[63] = onItemMouseLeave, $[64] = restProps, $[65] = scheme, $[66] = t13, $[67] = t14, $[68] = t15, $[69] = t16, $[70] = t18, $[71] = t19, $[72] = t20, $[73] = t21, $[74] = t22) : t22 = $[74], t22;
5487
5684
  });
5488
5685
  MenuItem.displayName = "ForwardRef(MenuItem)";
5489
5686
  function _temp(s) {
@@ -5647,7 +5844,6 @@ export {
5647
5844
  rgba,
5648
5845
  screen,
5649
5846
  studioTheme,
5650
- useArrayProp,
5651
5847
  useBoundaryElement,
5652
5848
  useClickOutsideEvent,
5653
5849
  useCustomValidity,