@sanity/ui 3.0.12-canary.2 → 3.0.13

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 +656 -852
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-es/_visual-editing.mjs +658 -854
  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 +144 -183
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +145 -184
  10. package/dist/index.mjs.map +1 -1
  11. package/package.json +40 -26
  12. package/src/core/components/autocomplete/autocomplete.tsx +14 -10
  13. package/src/core/components/breadcrumbs/breadcrumbs.tsx +2 -3
  14. package/src/core/components/dialog/dialog.tsx +14 -10
  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 -5
  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 +17 -5
  23. package/src/core/hooks/useClickOutside.ts +1 -0
  24. package/src/core/primitives/avatar/avatar.tsx +17 -14
  25. package/src/core/primitives/avatar/avatarCounter.tsx +16 -14
  26. package/src/core/primitives/avatar/avatarStack.tsx +2 -2
  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 -11
  30. package/src/core/primitives/card/card.tsx +8 -8
  31. package/src/core/primitives/code/code.tsx +2 -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 +6 -7
  40. package/src/core/primitives/select/select.tsx +5 -6
  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 +5 -6
  44. package/src/core/primitives/textInput/textInput.tsx +5 -6
  45. package/src/core/primitives/tooltip/tooltip.tsx +3 -3
  46. package/src/core/utils/layer/layerProvider.tsx +2 -3
  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, Fragment, jsxs } from "react/jsx-runtime";
2
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import { c } from "react-compiler-runtime";
4
- import { createContext, useContext, forwardRef, useId, useState, useEffect, Children, isValidElement, cloneElement, useDebugValue, useSyncExternalStore, useRef, useImperativeHandle, lazy, Suspense, useLayoutEffect } from "react";
4
+ import { useState, useEffect, useDebugValue, useSyncExternalStore, createContext, useContext, forwardRef, useId, Children, isValidElement, cloneElement, 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,6 +195,125 @@ 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
+ }
198
317
  function getGlobalScope() {
199
318
  if (typeof globalThis < "u") return globalThis;
200
319
  if (typeof window < "u") return window;
@@ -275,6 +394,75 @@ function useTheme_v2() {
275
394
  let t1;
276
395
  return $[0] !== t0 ? (t1 = getTheme_v2(t0), $[0] = t0, $[1] = t1) : t1 = $[1], t1;
277
396
  }
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
+ }
278
466
  function responsiveBorderStyle() {
279
467
  return [border, borderTop, borderRight, borderBottom, borderLeft];
280
468
  }
@@ -988,7 +1176,7 @@ const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
988
1176
  displayName: "StyledLabel",
989
1177
  componentId: "sc-1luap7z-0"
990
1178
  })(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), Label = forwardRef(function(props, ref) {
991
- const $ = c(26);
1179
+ const $ = c(22);
992
1180
  let accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
993
1181
  $[0] !== props ? ({
994
1182
  accent,
@@ -1009,12 +1197,9 @@ const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
1009
1197
  let t22;
1010
1198
  $[11] !== children ? (t22 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t22) : t22 = $[12], children = t22;
1011
1199
  }
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];
1200
+ const t2 = useArrayProp(align), t3 = useArrayProp(size2);
1016
1201
  let 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;
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;
1018
1203
  });
1019
1204
  Label.displayName = "ForwardRef(Label)";
1020
1205
  const avatarStyle = {
@@ -1184,7 +1369,7 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
1184
1369
  displayName: "AvatarImage",
1185
1370
  componentId: "sc-1rj7kl0-6"
1186
1371
  })(avatarStyle.image), Avatar = forwardRef(function(props, ref) {
1187
- const $ = c(46);
1372
+ const $ = c(52);
1188
1373
  let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
1189
1374
  $[0] !== props ? ({
1190
1375
  __unstable_hideInnerStroke,
@@ -1202,7 +1387,7 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
1202
1387
  } = 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]);
1203
1388
  const color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, {
1204
1389
  avatar
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}`;
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}`;
1206
1391
  let t3, t4;
1207
1392
  $[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t3 = () => {
1208
1393
  if (arrowPosition === arrowPositionProp)
@@ -1218,26 +1403,30 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
1218
1403
  $[20] !== onImageLoadError ? (t7 = () => {
1219
1404
  setImageFailed(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
1220
1405
  }, $[20] = onImageLoadError, $[21] = t7) : t7 = $[21];
1221
- const handleImageError = t7, T0 = StyledAvatar, t8 = typeof as == "string" ? as : void 0, t9 = "Avatar";
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;
1222
1410
  let t10;
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];
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];
1224
1412
  let t11;
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: [
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: [
1226
1414
  /* @__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 }) }) }),
1227
1415
  /* @__PURE__ */ jsx("circle", { cx: _radius, cy: _radius, r: _radius, fill: `url(#${imageId})` }),
1228
1416
  !__unstable_hideInnerStroke && /* @__PURE__ */ jsx(BgStroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" }),
1229
1417
  /* @__PURE__ */ jsx(Stroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" })
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 }) }) });
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];
1232
1421
  let t13;
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: [
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: [
1234
1423
  t10,
1235
1424
  t11,
1236
1425
  t12
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;
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;
1238
1427
  });
1239
1428
  Avatar.displayName = "ForwardRef(Avatar)";
1240
- function _temp$a(s) {
1429
+ function _temp$7(s) {
1241
1430
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
1242
1431
  }
1243
1432
  function _responsiveAvatarCounterSizeStyle(props) {
@@ -1280,23 +1469,20 @@ const StyledAvatarCounter = /* @__PURE__ */ styled.div.withConfig({
1280
1469
  displayName: "StyledAvatarCounter",
1281
1470
  componentId: "sc-1ydx86y-0"
1282
1471
  })(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = forwardRef(function(props, ref) {
1283
- const $ = c(20), {
1472
+ const $ = c(9), {
1284
1473
  count,
1285
1474
  size: t0
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;
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;
1297
1483
  });
1298
1484
  AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
1299
- function _temp$9(s) {
1485
+ function _temp$6(s) {
1300
1486
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
1301
1487
  }
1302
1488
  const BASE_STYLES = css`
@@ -1331,7 +1517,7 @@ const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
1331
1517
  displayName: "StyledAvatarStack",
1332
1518
  componentId: "sc-cysmbb-0"
1333
1519
  })(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = forwardRef(function(props, ref) {
1334
- const $ = c(38);
1520
+ const $ = c(22);
1335
1521
  let childrenProp, restProps, t0, t1;
1336
1522
  $[0] !== props ? ({
1337
1523
  children: childrenProp,
@@ -1339,33 +1525,29 @@ const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
1339
1525
  size: t1,
1340
1526
  ...restProps
1341
1527
  } = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1) : (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]);
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;
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;
1362
1544
  });
1363
1545
  AvatarStack.displayName = "ForwardRef(AvatarStack)";
1364
1546
  const StyledBox = /* @__PURE__ */ styled.div.withConfig({
1365
1547
  displayName: "StyledBox",
1366
1548
  componentId: "sc-1hhky9f-0"
1367
1549
  })(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = forwardRef(function(props, ref) {
1368
- const $ = c(109);
1550
+ const $ = c(59);
1369
1551
  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;
1370
1552
  $[0] !== props ? ({
1371
1553
  as: t0,
@@ -1396,59 +1578,9 @@ const StyledBox = /* @__PURE__ */ styled.div.withConfig({
1396
1578
  sizing,
1397
1579
  ...restProps
1398
1580
  } = 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]);
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];
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);
1450
1582
  let 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;
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;
1452
1584
  });
1453
1585
  Box.displayName = "ForwardRef(Box)";
1454
1586
  function textBaseStyle(props) {
@@ -1523,7 +1655,7 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
1523
1655
  displayName: "StyledText",
1524
1656
  componentId: "sc-11ov82j-0"
1525
1657
  })(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), Text = forwardRef(function(props, ref) {
1526
- const $ = c(26);
1658
+ const $ = c(22);
1527
1659
  let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
1528
1660
  $[0] !== props ? ({
1529
1661
  accent: t0,
@@ -1541,14 +1673,11 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
1541
1673
  let t32;
1542
1674
  $[9] !== children ? (t32 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t32) : t32 = $[10], children = t32;
1543
1675
  }
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];
1676
+ const t3 = useArrayProp(align), t4 = useArrayProp(size2);
1548
1677
  let t5;
1549
- $[15] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[15] = children, $[16] = t5) : t5 = $[16];
1678
+ $[11] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
1550
1679
  let 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;
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;
1552
1681
  });
1553
1682
  Text.displayName = "ForwardRef(Text)";
1554
1683
  function badgeStyle(props) {
@@ -1570,7 +1699,7 @@ const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
1570
1699
  displayName: "StyledBadge",
1571
1700
  componentId: "sc-5u140l-0"
1572
1701
  })(responsiveRadiusStyle, badgeStyle), Badge = forwardRef(function(props, ref) {
1573
- const $ = c(21);
1702
+ const $ = c(17);
1574
1703
  let children, restProps, t0, t1, t2, t3;
1575
1704
  if ($[0] !== props) {
1576
1705
  const {
@@ -1585,22 +1714,18 @@ const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
1585
1714
  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;
1586
1715
  } else
1587
1716
  children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5], t3 = $[6];
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];
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);
1593
1718
  let t6;
1594
- $[11] !== children || $[12] !== fontSize2 ? (t6 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children }), $[11] = children, $[12] = fontSize2, $[13] = t6) : t6 = $[13];
1719
+ $[7] !== children || $[8] !== fontSize2 ? (t6 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children }), $[7] = children, $[8] = fontSize2, $[9] = t6) : t6 = $[9];
1595
1720
  let 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;
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;
1597
1722
  });
1598
1723
  Badge.displayName = "ForwardRef(Badge)";
1599
1724
  const StyledFlex = /* @__PURE__ */ styled(Box).withConfig({
1600
1725
  displayName: "StyledFlex",
1601
1726
  componentId: "sc-oxesg3-0"
1602
1727
  })(flexItemStyle, responsiveFlexStyle), Flex = forwardRef(function(props, ref) {
1603
- const $ = c(27);
1728
+ const $ = c(17);
1604
1729
  let align, as, gap, justify, restProps, t0, wrap;
1605
1730
  $[0] !== props ? ({
1606
1731
  align,
@@ -1611,19 +1736,9 @@ const StyledFlex = /* @__PURE__ */ styled(Box).withConfig({
1611
1736
  wrap,
1612
1737
  ...restProps
1613
1738
  } = 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]);
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];
1739
+ const direction = t0 === void 0 ? "row" : t0, t1 = useArrayProp(align), t2 = useArrayProp(direction), t3 = useArrayProp(gap), t4 = useArrayProp(justify), t5 = useArrayProp(wrap);
1625
1740
  let 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;
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;
1627
1742
  });
1628
1743
  Flex.displayName = "ForwardRef(Flex)";
1629
1744
  const rotate = keyframes`
@@ -1820,7 +1935,7 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1820
1935
  displayName: "LoadingBox",
1821
1936
  componentId: "sc-aaekt4-1"
1822
1937
  })`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) {
1823
- const $ = c(86);
1938
+ const $ = c(66);
1824
1939
  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;
1825
1940
  $[0] !== props ? ({
1826
1941
  children,
@@ -1852,39 +1967,9 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1852
1967
  } = 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]);
1853
1968
  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, {
1854
1969
  button
1855
- } = useTheme_v2();
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);
1856
1971
  let 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 = {
1972
+ $[27] !== padding || $[28] !== paddingBottom || $[29] !== paddingLeft || $[30] !== paddingRight || $[31] !== paddingTop || $[32] !== paddingX || $[33] !== paddingY ? (t9 = {
1888
1973
  padding,
1889
1974
  paddingX,
1890
1975
  paddingY,
@@ -1892,12 +1977,12 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1892
1977
  paddingBottom,
1893
1978
  paddingLeft,
1894
1979
  paddingRight
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: [
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: [
1901
1986
  IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
1902
1987
  isValidElement(IconComponent) && IconComponent,
1903
1988
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
@@ -1907,15 +1992,15 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1907
1992
  isValidElement(IconRightComponent) && IconRightComponent,
1908
1993
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
1909
1994
  ] })
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;
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;
1919
2004
  });
1920
2005
  Button.displayName = "ForwardRef(Button)";
1921
2006
  function cardStyle(props) {
@@ -2013,286 +2098,90 @@ function cardColorStyle(props) {
2013
2098
  }
2014
2099
 
2015
2100
  &:focus-visible {
2016
- --card-focus-ring-box-shadow: ${$focusRing ? focusRingStyle({
2017
- base: color,
2018
- border: border2,
2019
- focusRing: card.focusRing
2020
- }) : void 0};
2021
- }
2022
- }
2023
- }
2024
-
2025
- /* &:is(a) */
2026
- &[data-as='a'] {
2027
- cursor: pointer;
2028
- box-shadow: var(--card-focus-ring-box-shadow);
2029
-
2030
- &[data-disabled] {
2031
- ${_cardColorStyle(color, color.selectable.default.disabled, $checkered)}
2032
- }
2033
-
2034
- &:not([data-disabled]) {
2035
- &[data-pressed] {
2036
- ${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}
2037
- }
2038
-
2039
- &[data-selected] {
2040
- ${_cardColorStyle(color, color.selectable.default.selected, $checkered)}
2041
- }
2042
-
2043
- @media (hover: hover) {
2044
- &:not([data-pressed]):not([data-selected]) {
2045
- &[data-hovered],
2046
- &:hover {
2047
- ${_cardColorStyle(color, color.selectable.default.hovered, $checkered)}
2048
- }
2049
-
2050
- &:active {
2051
- ${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}
2052
- }
2053
- }
2054
- }
2055
-
2056
- &:focus-visible {
2057
- --card-focus-ring-box-shadow: ${$focusRing ? focusRingStyle({
2058
- base: color,
2059
- border: border2,
2060
- focusRing: card.focusRing
2061
- }) : void 0};
2062
- }
2063
- }
2064
- }
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));
2101
+ --card-focus-ring-box-shadow: ${$focusRing ? focusRingStyle({
2102
+ base: color,
2103
+ border: border2,
2104
+ focusRing: card.focusRing
2105
+ }) : void 0};
2106
+ }
2264
2107
  }
2265
- return () => {
2266
- for (const disposeFn of disposeFns)
2267
- disposeFn();
2268
- };
2269
2108
  }
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;
2109
+
2110
+ /* &:is(a) */
2111
+ &[data-as='a'] {
2112
+ cursor: pointer;
2113
+ box-shadow: var(--card-focus-ring-box-shadow);
2114
+
2115
+ &[data-disabled] {
2116
+ ${_cardColorStyle(color, color.selectable.default.disabled, $checkered)}
2117
+ }
2118
+
2119
+ &:not([data-disabled]) {
2120
+ &[data-pressed] {
2121
+ ${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}
2122
+ }
2123
+
2124
+ &[data-selected] {
2125
+ ${_cardColorStyle(color, color.selectable.default.selected, $checkered)}
2126
+ }
2127
+
2128
+ @media (hover: hover) {
2129
+ &:not([data-pressed]):not([data-selected]) {
2130
+ &[data-hovered],
2131
+ &:hover {
2132
+ ${_cardColorStyle(color, color.selectable.default.hovered, $checkered)}
2133
+ }
2134
+
2135
+ &:active {
2136
+ ${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}
2137
+ }
2138
+ }
2139
+ }
2140
+
2141
+ &:focus-visible {
2142
+ --card-focus-ring-box-shadow: ${$focusRing ? focusRingStyle({
2143
+ base: color,
2144
+ border: border2,
2145
+ focusRing: card.focusRing
2146
+ }) : void 0};
2147
+ }
2148
+ }
2149
+ }
2150
+
2151
+ ${style?.card?.root}
2152
+ `;
2295
2153
  }
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)";
2296
2185
  function checkboxBaseStyles() {
2297
2186
  return css`
2298
2187
  position: relative;
@@ -2624,7 +2513,7 @@ const LazyRefractor = lazy(() => import("./refractor.mjs")), StyledCode = /* @__
2624
2513
  displayName: "StyledCode",
2625
2514
  componentId: "sc-4dymyn-0"
2626
2515
  })(codeBaseStyle, responsiveCodeFontStyle), Code = forwardRef(function(props, ref) {
2627
- const $ = c(22);
2516
+ const $ = c(20);
2628
2517
  let children, language, restProps, t0, weight;
2629
2518
  $[0] !== props ? ({
2630
2519
  children,
@@ -2633,17 +2522,15 @@ const LazyRefractor = lazy(() => import("./refractor.mjs")), StyledCode = /* @__
2633
2522
  weight,
2634
2523
  ...restProps
2635
2524
  } = props, $[0] = props, $[1] = children, $[2] = language, $[3] = restProps, $[4] = t0, $[5] = weight) : (children = $[1], language = $[2], restProps = $[3], t0 = $[4], weight = $[5]);
2636
- const size2 = t0 === void 0 ? 2 : t0;
2637
- let t1;
2638
- $[6] !== size2 ? (t1 = _getArrayProp(size2), $[6] = size2, $[7] = t1) : t1 = $[7];
2525
+ const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
2639
2526
  let t2;
2640
- $[8] !== children ? (t2 = /* @__PURE__ */ jsx("code", { children }), $[8] = children, $[9] = t2) : t2 = $[9];
2527
+ $[6] !== children ? (t2 = /* @__PURE__ */ jsx("code", { children }), $[6] = children, $[7] = t2) : t2 = $[7];
2641
2528
  let t3;
2642
- $[10] !== children || $[11] !== language ? (t3 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[10] = children, $[11] = language, $[12] = t3) : t3 = $[12];
2529
+ $[8] !== children || $[9] !== language ? (t3 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[8] = children, $[9] = language, $[10] = t3) : t3 = $[10];
2643
2530
  let t4;
2644
- $[13] !== t2 || $[14] !== t3 ? (t4 = /* @__PURE__ */ jsx(Suspense, { fallback: t2, children: t3 }), $[13] = t2, $[14] = t3, $[15] = t4) : t4 = $[15];
2531
+ $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsx(Suspense, { fallback: t2, children: t3 }), $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13];
2645
2532
  let 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;
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;
2647
2534
  });
2648
2535
  Code.displayName = "ForwardRef(Code)";
2649
2536
  const BASE_STYLE$1 = {
@@ -2666,25 +2553,23 @@ const StyledContainer = /* @__PURE__ */ styled(Box).withConfig({
2666
2553
  displayName: "StyledContainer",
2667
2554
  componentId: "sc-wyroop-0"
2668
2555
  })(containerBaseStyle, responsiveContainerWidthStyle), Container = forwardRef(function(props, ref) {
2669
- const $ = c(11);
2556
+ const $ = c(9);
2670
2557
  let as, restProps, t0;
2671
2558
  $[0] !== props ? ({
2672
2559
  as,
2673
2560
  width: t0,
2674
2561
  ...restProps
2675
2562
  } = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0) : (as = $[1], restProps = $[2], t0 = $[3]);
2676
- const width = t0 === void 0 ? 2 : t0;
2677
- let t1;
2678
- $[4] !== width ? (t1 = _getArrayProp(width), $[4] = width, $[5] = t1) : t1 = $[5];
2563
+ const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
2679
2564
  let 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;
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;
2681
2566
  });
2682
2567
  Container.displayName = "ForwardRef(Container)";
2683
2568
  const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
2684
2569
  displayName: "StyledGrid",
2685
2570
  componentId: "sc-v8t8oz-0"
2686
2571
  })(responsiveGridStyle), Grid = forwardRef(function(props, ref) {
2687
- const $ = c(42);
2572
+ const $ = c(26);
2688
2573
  let as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, restProps, rows;
2689
2574
  $[0] !== props ? ({
2690
2575
  as,
@@ -2699,25 +2584,9 @@ const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
2699
2584
  children,
2700
2585
  ...restProps
2701
2586
  } = 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]);
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];
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);
2719
2588
  let 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;
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;
2721
2590
  });
2722
2591
  Grid.displayName = "ForwardRef(Grid)";
2723
2592
  function headingBaseStyle(props) {
@@ -2783,7 +2652,7 @@ const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
2783
2652
  displayName: "StyledHeading",
2784
2653
  componentId: "sc-137lwim-0"
2785
2654
  })(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), Heading = forwardRef(function(props, ref) {
2786
- const $ = c(26);
2655
+ const $ = c(22);
2787
2656
  let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
2788
2657
  $[0] !== props ? ({
2789
2658
  accent: t0,
@@ -2801,14 +2670,11 @@ const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
2801
2670
  let t32;
2802
2671
  $[9] !== children ? (t32 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t32) : t32 = $[10], children = t32;
2803
2672
  }
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];
2673
+ const t3 = useArrayProp(align), t4 = useArrayProp(size2);
2808
2674
  let t5;
2809
- $[15] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[15] = children, $[16] = t5) : t5 = $[16];
2675
+ $[11] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
2810
2676
  let 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;
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;
2812
2678
  });
2813
2679
  Heading.displayName = "ForwardRef(Heading)";
2814
2680
  function inlineBaseStyle() {
@@ -2842,7 +2708,7 @@ const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
2842
2708
  displayName: "StyledInline",
2843
2709
  componentId: "sc-1pkiy6j-0"
2844
2710
  })(inlineBaseStyle, inlineSpaceStyle), Inline = forwardRef(function(props, ref) {
2845
- const $ = c(15);
2711
+ const $ = c(13);
2846
2712
  let as, childrenProp, restProps, space;
2847
2713
  $[0] !== props ? ({
2848
2714
  as,
@@ -2852,12 +2718,9 @@ const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
2852
2718
  } = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = restProps, $[4] = space) : (as = $[1], childrenProp = $[2], restProps = $[3], space = $[4]);
2853
2719
  let t0;
2854
2720
  $[5] !== childrenProp ? (t0 = Children.map(childrenProp, _temp$5), $[5] = childrenProp, $[6] = t0) : t0 = $[6];
2855
- const children = t0;
2856
- let t1;
2857
- $[7] !== space ? (t1 = _getArrayProp(space), $[7] = space, $[8] = t1) : t1 = $[8];
2858
- const t2 = ref;
2721
+ const children = t0, t1 = useArrayProp(space), t2 = ref;
2859
2722
  let 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;
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;
2861
2724
  });
2862
2725
  Inline.displayName = "ForwardRef(Inline)";
2863
2726
  function _temp$5(child) {
@@ -2884,7 +2747,7 @@ const StyledKBD = /* @__PURE__ */ styled.kbd.withConfig({
2884
2747
  displayName: "StyledKBD",
2885
2748
  componentId: "sc-1w7yd8w-0"
2886
2749
  })(responsiveRadiusStyle, kbdStyle), KBD = forwardRef(function(props, ref) {
2887
- const $ = c(19);
2750
+ const $ = c(17);
2888
2751
  let children, restProps, t0, t1, t2;
2889
2752
  $[0] !== props ? ({
2890
2753
  children,
@@ -2893,15 +2756,13 @@ const StyledKBD = /* @__PURE__ */ styled.kbd.withConfig({
2893
2756
  radius: t2,
2894
2757
  ...restProps
2895
2758
  } = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2) : (children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5]);
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];
2759
+ const fontSize2 = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, t3 = useArrayProp(t2 === void 0 ? 2 : t2);
2899
2760
  let t4;
2900
- $[8] !== children || $[9] !== fontSize2 ? (t4 = /* @__PURE__ */ jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[8] = children, $[9] = fontSize2, $[10] = t4) : t4 = $[10];
2761
+ $[6] !== children || $[7] !== fontSize2 ? (t4 = /* @__PURE__ */ jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[6] = children, $[7] = fontSize2, $[8] = t4) : t4 = $[8];
2901
2762
  let t5;
2902
- $[11] !== padding || $[12] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, { as: "span", padding, children: t4 }), $[11] = padding, $[12] = t4, $[13] = t5) : t5 = $[13];
2763
+ $[9] !== padding || $[10] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, { as: "span", padding, children: t4 }), $[9] = padding, $[10] = t4, $[11] = t5) : t5 = $[11];
2903
2764
  let 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;
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;
2905
2766
  });
2906
2767
  KBD.displayName = "ForwardRef(KBD)";
2907
2768
  const origin = {
@@ -3164,21 +3025,18 @@ function getLayerContext(contextValue) {
3164
3025
  }
3165
3026
  const LayerContext = createGlobalScopedContext("@sanity/ui/context/layer", null);
3166
3027
  function LayerProvider(props) {
3167
- const $ = c(21), {
3028
+ const $ = c(19), {
3168
3029
  children,
3169
3030
  zOffset: t0
3170
3031
  } = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = useContext(LayerContext);
3171
3032
  let t1;
3172
3033
  $[0] !== parentContextValue ? (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1) : t1 = $[1];
3173
- const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 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];
3174
3035
  let t2;
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];
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;
3177
3038
  let t3;
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) => {
3039
+ $[3] !== parentRegisterChild || $[4] !== setChildLayers ? (t3 = (childLevel) => {
3182
3040
  const parentDispose = parentRegisterChild?.(childLevel);
3183
3041
  return childLevel !== void 0 ? setChildLayers((state) => {
3184
3042
  const prevLen = state[childLevel] ?? 0, nextState = {
@@ -3194,22 +3052,22 @@ function LayerProvider(props) {
3194
3052
  return nextState_0[childLevel] === 1 ? (delete nextState_0[childLevel], setSize(Object.keys(nextState_0).length)) : nextState_0[childLevel] = nextState_0[childLevel] - 1, nextState_0;
3195
3053
  }) : setSize(_temp2$2), parentDispose?.();
3196
3054
  };
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 = {
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 = {
3203
3061
  version: 0,
3204
3062
  isTopLayer,
3205
3063
  level,
3206
3064
  registerChild,
3207
3065
  size: size2,
3208
3066
  zIndex
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;
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;
3213
3071
  }
3214
3072
  function _temp2$2(v_0) {
3215
3073
  return v_0 - 1;
@@ -3657,7 +3515,7 @@ const ViewportOverlay = () => {
3657
3515
  zIndex
3658
3516
  } }), $[0] = zIndex, $[1] = t0) : t0 = $[1], t0;
3659
3517
  }, Popover = forwardRef(function(props, forwardedRef) {
3660
- const $ = c(126), {
3518
+ const $ = c(122), {
3661
3519
  container,
3662
3520
  layer
3663
3521
  } = useTheme_v2(), boundaryElementContext = useBoundaryElement();
@@ -3691,59 +3549,50 @@ const ViewportOverlay = () => {
3691
3549
  shadow: t352,
3692
3550
  tone: t362,
3693
3551
  width: t372,
3694
- zOffset: t382,
3695
- updateRef: t392,
3696
- ...t402
3552
+ zOffset: t38,
3553
+ updateRef: t39,
3554
+ ...t40
3697
3555
  } = props;
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;
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;
3699
3557
  } else
3700
3558
  _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];
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;
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);
3702
3560
  let t12;
3703
- $[30] !== paddingProp ? (t12 = _getArrayProp(paddingProp), $[30] = paddingProp, $[31] = t12) : t12 = $[31];
3704
- const padding = 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;
3705
3563
  let t13;
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({
3564
+ $[31] !== container || $[32] !== mediaIndex || $[33] !== widthArrayProp ? (t13 = calcCurrentWidth({
3717
3565
  container,
3718
3566
  mediaIndex,
3719
3567
  width: widthArrayProp
3720
- }), widthRef = useRef(width);
3721
- let t17, t18;
3722
- $[39] !== width ? (t17 = () => {
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 = () => {
3723
3572
  widthRef.current = width;
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({
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({
3727
3576
  boundaryWidth,
3728
3577
  currentWidth: width
3729
- }), $[42] = boundaryWidth, $[43] = width, $[44] = t19) : t19 = $[44];
3730
- const maxWidth = t19, maxWidthRef = useRef(maxWidth);
3731
- let t20, t21;
3732
- $[45] !== maxWidth ? (t20 = () => {
3578
+ }), $[38] = boundaryWidth, $[39] = width, $[40] = t16) : t16 = $[40];
3579
+ const maxWidth = t16, maxWidthRef = useRef(maxWidth);
3580
+ let t17, t18;
3581
+ $[41] !== maxWidth ? (t17 = () => {
3733
3582
  maxWidthRef.current = maxWidth;
3734
- }, t21 = [maxWidth], $[45] = maxWidth, $[46] = t20, $[47] = t21) : (t20 = $[46], t21 = $[47]), useEffect(t20, t21);
3583
+ }, t18 = [maxWidth], $[41] = maxWidth, $[42] = t17, $[43] = t18) : (t17 = $[42], t18 = $[43]), useEffect(t17, t18);
3735
3584
  const referenceWidthRef = useRef(void 0);
3736
- let t22, t23;
3737
- $[48] !== matchReferenceWidth || $[49] !== maxWidth || $[50] !== open || $[51] !== width ? (t22 = () => {
3585
+ let t19, t20;
3586
+ $[44] !== matchReferenceWidth || $[45] !== maxWidth || $[46] !== open || $[47] !== width ? (t19 = () => {
3738
3587
  const floatingElement = ref.current;
3739
3588
  if (!open || !floatingElement)
3740
3589
  return;
3741
3590
  const referenceWidth = referenceWidthRef.current;
3742
3591
  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`);
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);
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);
3744
3593
  const [referenceWidth_0, setReferenceWidth] = useState(void 0);
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 = {
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 = {
3747
3596
  animate,
3748
3597
  arrowProp,
3749
3598
  arrowRef,
@@ -3761,19 +3610,19 @@ const ViewportOverlay = () => {
3761
3610
  rootBoundary: "viewport",
3762
3611
  setReferenceWidth,
3763
3612
  widthRef
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 ? {
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 ? {
3768
3617
  reference: referenceElement
3769
- } : void 0, $[66] = referenceElement, $[67] = t25) : t25 = $[67];
3770
- let t26;
3771
- $[68] !== middleware || $[69] !== placementProp || $[70] !== t25 ? (t26 = {
3618
+ } : void 0, $[62] = referenceElement, $[63] = t22) : t22 = $[63];
3619
+ let t23;
3620
+ $[64] !== middleware || $[65] !== placementProp || $[66] !== t22 ? (t23 = {
3772
3621
  middleware,
3773
3622
  placement: placementProp,
3774
3623
  whileElementsMounted: autoUpdate,
3775
- elements: t25
3776
- }, $[68] = middleware, $[69] = placementProp, $[70] = t25, $[71] = t26) : t26 = $[71];
3624
+ elements: t22
3625
+ }, $[64] = middleware, $[65] = placementProp, $[66] = t22, $[67] = t23) : t23 = $[67];
3777
3626
  const {
3778
3627
  x,
3779
3628
  y,
@@ -3782,63 +3631,63 @@ const ViewportOverlay = () => {
3782
3631
  refs,
3783
3632
  strategy,
3784
3633
  update
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;
3786
- let t27;
3787
- $[72] === Symbol.for("react.memo_cache_sentinel") ? (t27 = (arrowEl) => {
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) => {
3788
3637
  arrowRef.current = arrowEl;
3789
- }, $[72] = t27) : t27 = $[72];
3790
- const setArrow = t27;
3791
- let t28;
3792
- $[73] !== refs ? (t28 = (node) => {
3638
+ }, $[68] = t24) : t24 = $[68];
3639
+ const setArrow = t24;
3640
+ let t25;
3641
+ $[69] !== refs ? (t25 = (node) => {
3793
3642
  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;
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];
3647
+ let t27;
3648
+ $[73] !== refs.reference.current ? (t27 = () => refs.reference.current, $[73] = refs.reference.current, $[74] = t27) : t27 = $[74], useImperativeHandle(t26, t27);
3649
+ let t28;
3801
3650
  bb0: {
3802
3651
  if (referenceElement) {
3803
- t31 = childProp;
3652
+ t28 = childProp;
3804
3653
  break bb0;
3805
3654
  }
3806
3655
  if (!childProp) {
3807
- t31 = null;
3656
+ t28 = null;
3808
3657
  break bb0;
3809
3658
  }
3810
- let t322;
3811
- $[79] !== childProp || $[80] !== refs.setReference ? (t322 = cloneElement(childProp, {
3659
+ let t292;
3660
+ $[75] !== childProp || $[76] !== refs.setReference ? (t292 = cloneElement(childProp, {
3812
3661
  ref: refs.setReference
3813
- }), $[79] = childProp, $[80] = refs.setReference, $[81] = t322) : t322 = $[81], t31 = t322;
3662
+ }), $[75] = childProp, $[76] = refs.setReference, $[77] = t292) : t292 = $[77], t28 = t292;
3814
3663
  }
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;
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;
3820
3669
  }
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];
3821
3675
  let t34;
3822
- $[87] !== modal ? (t34 = modal && /* @__PURE__ */ jsx(ViewportOverlay, {}), $[87] = modal, $[88] = t34) : t34 = $[88];
3823
- const t35 = matchReferenceWidth ? referenceWidth_0 : width;
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;
3824
3684
  let t36;
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];
3685
+ $[116] !== animate || $[117] !== children ? (t36 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[116] = animate, $[117] = children, $[118] = t36) : t36 = $[118];
3826
3686
  let t37;
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,
3687
+ return $[119] !== child || $[120] !== t36 ? (t37 = /* @__PURE__ */ jsxs(Fragment, { children: [
3688
+ t36,
3840
3689
  child
3841
- ] }), $[123] = child, $[124] = t39, $[125] = t40) : t40 = $[125], t40;
3690
+ ] }), $[119] = child, $[120] = t36, $[121] = t37) : t37 = $[121], t37;
3842
3691
  });
3843
3692
  Popover.displayName = "ForwardRef(Popover)";
3844
3693
  function useMiddleware$1(t0) {
@@ -4223,7 +4072,7 @@ const selectStyle = {
4223
4072
  displayName: "IconBox",
4224
4073
  componentId: "sc-5mxno7-2"
4225
4074
  })(selectStyle.iconBox), Select = forwardRef(function(props, forwardedRef) {
4226
- const $ = c(37);
4075
+ const $ = c(29);
4227
4076
  let children, customValidity, disabled, readOnly, restProps, t0, t1, t2, t3;
4228
4077
  $[0] !== props ? ({
4229
4078
  children,
@@ -4239,29 +4088,20 @@ const selectStyle = {
4239
4088
  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);
4240
4089
  let t4;
4241
4090
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], useImperativeHandle(forwardedRef, t4), useCustomValidity(ref, customValidity);
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;
4091
+ const t5 = !disabled && readOnly ? "" : void 0, t6 = useArrayProp(fontSize2), t7 = useArrayProp(padding), t8 = useArrayProp(radius), t9 = useArrayProp(space), t10 = disabled || readOnly;
4252
4092
  let t11;
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];
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];
4254
4094
  let t12;
4255
- $[28] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[28] = t12) : t12 = $[28];
4095
+ $[20] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[20] = t12) : t12 = $[20];
4256
4096
  let t13;
4257
- $[29] !== fontSize2 ? (t13 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t12 }), $[29] = fontSize2, $[30] = t13) : t13 = $[30];
4097
+ $[21] !== fontSize2 ? (t13 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t12 }), $[21] = fontSize2, $[22] = t13) : t13 = $[22];
4258
4098
  let t14;
4259
- $[31] !== padding || $[32] !== t13 ? (t14 = /* @__PURE__ */ jsx(IconBox, { padding, children: t13 }), $[31] = padding, $[32] = t13, $[33] = t14) : t14 = $[33];
4099
+ $[23] !== padding || $[24] !== t13 ? (t14 = /* @__PURE__ */ jsx(IconBox, { padding, children: t13 }), $[23] = padding, $[24] = t13, $[25] = t14) : t14 = $[25];
4260
4100
  let t15;
4261
- return $[34] !== t11 || $[35] !== t14 ? (t15 = /* @__PURE__ */ jsxs(StyledSelect, { "data-ui": "Select", children: [
4101
+ return $[26] !== t11 || $[27] !== t14 ? (t15 = /* @__PURE__ */ jsxs(StyledSelect, { "data-ui": "Select", children: [
4262
4102
  t11,
4263
4103
  t14
4264
- ] }), $[34] = t11, $[35] = t14, $[36] = t15) : t15 = $[36], t15;
4104
+ ] }), $[26] = t11, $[27] = t14, $[28] = t15) : t15 = $[28], t15;
4265
4105
  });
4266
4106
  Select.displayName = "ForwardRef(Select)";
4267
4107
  const BASE_STYLE = {
@@ -4290,18 +4130,16 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
4290
4130
  displayName: "StyledStack",
4291
4131
  componentId: "sc-8dpfq2-0"
4292
4132
  })(stackBaseStyle, responsiveStackSpaceStyle), Stack = forwardRef(function(props, ref) {
4293
- const $ = c(12);
4133
+ const $ = c(10);
4294
4134
  let as, restProps, space;
4295
4135
  $[0] !== props ? ({
4296
4136
  as,
4297
4137
  space,
4298
4138
  ...restProps
4299
4139
  } = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = space) : (as = $[1], restProps = $[2], space = $[3]);
4300
- const t0 = typeof as == "string" ? as : void 0;
4301
- let t1;
4302
- $[4] !== space ? (t1 = _getArrayProp(space), $[4] = space, $[5] = t1) : t1 = $[5];
4140
+ const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(space);
4303
4141
  let 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;
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;
4305
4143
  });
4306
4144
  Stack.displayName = "ForwardRef(Stack)";
4307
4145
  function switchBaseStyles() {
@@ -4521,7 +4359,7 @@ const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
4521
4359
  displayName: "Presentation",
4522
4360
  componentId: "sc-1d6h1o8-3"
4523
4361
  })(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function(props, forwardedRef) {
4524
- const $ = c(35);
4362
+ const $ = c(29);
4525
4363
  let __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
4526
4364
  $[0] !== props ? ({
4527
4365
  border: t0,
@@ -4537,26 +4375,17 @@ const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
4537
4375
  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();
4538
4376
  let t5;
4539
4377
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
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];
4378
+ const t6 = rootTheme.scheme, t7 = rootTheme.tone, t8 = useArrayProp(fontSize2), t9 = useArrayProp(padding), t10 = rootTheme.scheme, t11 = useArrayProp(0);
4548
4379
  let t12;
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;
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;
4553
4382
  let t15;
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];
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];
4555
4384
  let t16;
4556
- return $[32] !== t12 || $[33] !== t15 ? (t16 = /* @__PURE__ */ jsx(StyledTextArea, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxs(InputRoot$1, { children: [
4385
+ return $[26] !== t12 || $[27] !== t15 ? (t16 = /* @__PURE__ */ jsx(StyledTextArea, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxs(InputRoot$1, { children: [
4557
4386
  t12,
4558
4387
  t15
4559
- ] }) }), $[32] = t12, $[33] = t15, $[34] = t16) : t16 = $[34], t16;
4388
+ ] }) }), $[26] = t12, $[27] = t15, $[28] = t16) : t16 = $[28], t16;
4560
4389
  });
4561
4390
  TextArea.displayName = "ForwardRef(TextArea)";
4562
4391
  const CLEAR_BUTTON_BOX_STYLE = {
@@ -4602,7 +4431,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
4602
4431
  display: "block"
4603
4432
  }
4604
4433
  }), TextInput = forwardRef(function(props, forwardedRef) {
4605
- const $ = c(92);
4434
+ const $ = c(84);
4606
4435
  let IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
4607
4436
  $[0] !== props ? ({
4608
4437
  __unstable_disableFocusRing,
@@ -4624,72 +4453,60 @@ const CLEAR_BUTTON_BOX_STYLE = {
4624
4453
  weight,
4625
4454
  ...restProps
4626
4455
  } = 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]);
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();
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;
4628
4457
  let t7;
4629
- $[19] !== fontSizeProp ? (t7 = _getArrayProp(fontSizeProp), $[19] = fontSizeProp, $[20] = t7) : t7 = $[20];
4630
- const fontSize2 = 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;
4631
4460
  let t8;
4632
- $[21] !== paddingProp ? (t8 = _getArrayProp(paddingProp), $[21] = paddingProp, $[22] = t8) : t8 = $[22];
4633
- const padding = 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;
4634
4465
  let t9;
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;
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;
4640
4468
  let t11;
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;
4643
- let t12;
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;
4648
- let t13;
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;
4651
- let t15;
4652
- $[33] !== IconComponent || $[34] !== fontSize2 || $[35] !== padding ? (t15 = IconComponent && /* @__PURE__ */ jsx(LeftBox, { padding, children: /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
4469
+ $[25] !== IconComponent || $[26] !== fontSize2 || $[27] !== padding ? (t11 = IconComponent && /* @__PURE__ */ jsx(LeftBox, { padding, children: /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
4653
4470
  isValidElement(IconComponent) && IconComponent,
4654
4471
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
4655
- ] }) }), $[33] = IconComponent, $[34] = fontSize2, $[35] = padding, $[36] = t15) : t15 = $[36];
4656
- let t16;
4657
- $[37] !== $hasClearButton || $[38] !== IconRightComponent || $[39] !== fontSize2 || $[40] !== padding ? (t16 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ jsx(RightBox, { padding, children: /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
4472
+ ] }) }), $[25] = IconComponent, $[26] = fontSize2, $[27] = padding, $[28] = t11) : t11 = $[28];
4473
+ 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: [
4658
4475
  isValidElement(IconRightComponent) && IconRightComponent,
4659
4476
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
4660
- ] }) }), $[37] = $hasClearButton, $[38] = IconRightComponent, $[39] = fontSize2, $[40] = padding, $[41] = t16) : t16 = $[41];
4477
+ ] }) }), $[29] = $hasClearButton, $[30] = IconRightComponent, $[31] = fontSize2, $[32] = padding, $[33] = t12) : t12 = $[33];
4478
+ 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;
4487
+ 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;
4490
+ 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;
4661
4493
  let t17;
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;
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;
4670
4496
  let t19;
4671
- $[54] !== padding ? (t19 = padding.map(_temp3), $[54] = padding, $[55] = t19) : t19 = $[55];
4672
- const clearButtonPadding = t19, clearButtonProps = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
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];
4673
4498
  let t20;
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,
4499
+ $[75] !== clearButtonNode || $[76] !== presentationNode || $[77] !== t19 ? (t20 = /* @__PURE__ */ jsxs(InputRoot, { children: [
4500
+ t19,
4684
4501
  presentationNode,
4685
4502
  clearButtonNode
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: [
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: [
4689
4506
  prefixNode,
4690
- t24,
4507
+ t20,
4691
4508
  suffixNode
4692
- ] }), $[87] = prefixNode, $[88] = rootTheme.tone, $[89] = suffixNode, $[90] = t24, $[91] = t25) : t25 = $[91], t25;
4509
+ ] }), $[79] = prefixNode, $[80] = rootTheme.tone, $[81] = suffixNode, $[82] = t20, $[83] = t21) : t21 = $[83], t21;
4693
4510
  });
4694
4511
  TextInput.displayName = "ForwardRef(TextInput)";
4695
4512
  function _temp$2(event) {
@@ -4810,7 +4627,7 @@ const StyledTooltip = styled(Layer).withConfig({
4810
4627
  displayName: "StyledTooltip",
4811
4628
  componentId: "sc-13f2zvh-0"
4812
4629
  })`pointer-events:none;`, Tooltip = forwardRef(function(props, forwardedRef) {
4813
- const $ = c(137), boundaryElementContext = useBoundaryElement(), {
4630
+ const $ = c(135), boundaryElementContext = useBoundaryElement(), {
4814
4631
  layer
4815
4632
  } = useTheme_v2();
4816
4633
  let _boundaryElement, _fallbackPlacementsProp, _zOffset, childProp, content, delay, disabled, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5;
@@ -4832,49 +4649,46 @@ const StyledTooltip = styled(Layer).withConfig({
4832
4649
  delay,
4833
4650
  ...restProps
4834
4651
  } = 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]);
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;
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);
4836
4653
  let t6;
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);
4839
- let t7;
4840
- $[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], useImperativeHandle(forwardedRef, t7);
4654
+ $[17] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[17] = t6) : t6 = $[17], useImperativeHandle(forwardedRef, t6);
4841
4655
  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 = {
4656
+ let t7;
4657
+ $[18] !== animate || $[19] !== arrowProp || $[20] !== boundaryElement || $[21] !== fallbackPlacements ? (t7 = {
4844
4658
  animate,
4845
4659
  arrowProp,
4846
4660
  arrowRef,
4847
4661
  boundaryElement,
4848
4662
  fallbackPlacements,
4849
4663
  rootBoundary: "viewport"
4850
- }, $[20] = animate, $[21] = arrowProp, $[22] = boundaryElement, $[23] = fallbackPlacements, $[24] = t8) : t8 = $[24];
4851
- const middleware = useMiddleware(t8);
4852
- let t9;
4853
- $[25] !== referenceElement ? (t9 = {
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 = {
4854
4668
  reference: referenceElement
4855
- }, $[25] = referenceElement, $[26] = t9) : t9 = $[26];
4856
- let t10;
4857
- $[27] !== middleware || $[28] !== placementProp || $[29] !== t9 ? (t10 = {
4669
+ }, $[23] = referenceElement, $[24] = t8) : t8 = $[24];
4670
+ let t9;
4671
+ $[25] !== middleware || $[26] !== placementProp || $[27] !== t8 ? (t9 = {
4858
4672
  middleware,
4859
4673
  placement: placementProp,
4860
4674
  whileElementsMounted: autoUpdate,
4861
- elements: t9
4862
- }, $[27] = middleware, $[28] = placementProp, $[29] = t9, $[30] = t10) : t10 = $[30];
4675
+ elements: t8
4676
+ }, $[25] = middleware, $[26] = placementProp, $[27] = t8, $[28] = t9) : t9 = $[28];
4863
4677
  const {
4864
4678
  floatingStyles,
4865
4679
  placement,
4866
4680
  middlewareData,
4867
4681
  refs,
4868
4682
  update
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];
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];
4872
4686
  const {
4873
4687
  setIsGroupActive,
4874
4688
  setOpenTooltipId
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) => {
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) => {
4878
4692
  if (isInsideGroup)
4879
4693
  if (open) {
4880
4694
  const groupedOpenDelay = immediate ? 0 : openDelay;
@@ -4885,55 +4699,55 @@ const StyledTooltip = styled(Layer).withConfig({
4885
4699
  }
4886
4700
  else
4887
4701
  setIsOpen(open, immediate ? 0 : open ? openDelay : closeDelay);
4888
- }, $[33] = closeDelay, $[34] = isInsideGroup, $[35] = openDelay, $[36] = setIsGroupActive, $[37] = setIsOpen, $[38] = setOpenTooltipId, $[39] = tooltipId, $[40] = t12) : t12 = $[40];
4889
- const handleIsOpenChange = t12;
4890
- let t13;
4891
- $[41] !== childProp?.props || $[42] !== handleIsOpenChange ? (t13 = (e) => {
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) => {
4892
4706
  handleIsOpenChange(!1), childProp?.props?.onBlur?.(e);
4893
- }, $[41] = childProp?.props, $[42] = handleIsOpenChange, $[43] = t13) : t13 = $[43];
4894
- const handleBlur = t13;
4895
- let t14;
4896
- $[44] !== childProp?.props || $[45] !== handleIsOpenChange ? (t14 = (e_0) => {
4707
+ }, $[39] = childProp?.props, $[40] = handleIsOpenChange, $[41] = t12) : t12 = $[41];
4708
+ const handleBlur = t12;
4709
+ let t13;
4710
+ $[42] !== childProp?.props || $[43] !== handleIsOpenChange ? (t13 = (e_0) => {
4897
4711
  handleIsOpenChange(!1, !0), childProp?.props.onClick?.(e_0);
4898
- }, $[44] = childProp?.props, $[45] = handleIsOpenChange, $[46] = t14) : t14 = $[46];
4899
- const handleClick = t14;
4900
- let t15;
4901
- $[47] !== childProp?.props || $[48] !== handleIsOpenChange ? (t15 = (e_1) => {
4712
+ }, $[42] = childProp?.props, $[43] = handleIsOpenChange, $[44] = t13) : t13 = $[44];
4713
+ const handleClick = t13;
4714
+ let t14;
4715
+ $[45] !== childProp?.props || $[46] !== handleIsOpenChange ? (t14 = (e_1) => {
4902
4716
  handleIsOpenChange(!1, !0), childProp?.props.onContextMenu?.(e_1);
4903
- }, $[47] = childProp?.props, $[48] = handleIsOpenChange, $[49] = t15) : t15 = $[49];
4904
- const handleContextMenu = t15;
4905
- let t16;
4906
- $[50] !== childProp?.props || $[51] !== handleIsOpenChange ? (t16 = (e_2) => {
4717
+ }, $[45] = childProp?.props, $[46] = handleIsOpenChange, $[47] = t14) : t14 = $[47];
4718
+ const handleContextMenu = t14;
4719
+ let t15;
4720
+ $[48] !== childProp?.props || $[49] !== handleIsOpenChange ? (t15 = (e_2) => {
4907
4721
  handleIsOpenChange(!0), childProp?.props?.onFocus?.(e_2);
4908
- }, $[50] = childProp?.props, $[51] = handleIsOpenChange, $[52] = t16) : t16 = $[52];
4909
- const handleFocus = t16;
4910
- let t17;
4911
- $[53] !== childProp?.props || $[54] !== handleIsOpenChange ? (t17 = (e_3) => {
4722
+ }, $[48] = childProp?.props, $[49] = handleIsOpenChange, $[50] = t15) : t15 = $[50];
4723
+ const handleFocus = t15;
4724
+ let t16;
4725
+ $[51] !== childProp?.props || $[52] !== handleIsOpenChange ? (t16 = (e_3) => {
4912
4726
  handleIsOpenChange(!0), childProp?.props?.onMouseEnter?.(e_3);
4913
- }, $[53] = childProp?.props, $[54] = handleIsOpenChange, $[55] = t17) : t17 = $[55];
4914
- const handleMouseEnter = t17;
4915
- let t18;
4916
- $[56] !== childProp?.props || $[57] !== handleIsOpenChange ? (t18 = (e_4) => {
4727
+ }, $[51] = childProp?.props, $[52] = handleIsOpenChange, $[53] = t16) : t16 = $[53];
4728
+ const handleMouseEnter = t16;
4729
+ let t17;
4730
+ $[54] !== childProp?.props || $[55] !== handleIsOpenChange ? (t17 = (e_4) => {
4917
4731
  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 = {
4732
+ }, $[54] = childProp?.props, $[55] = handleIsOpenChange, $[56] = t17) : t17 = $[56];
4733
+ const handleMouseLeave = t17;
4734
+ let t18;
4735
+ $[57] !== handleIsOpenChange || $[58] !== isInsideGroup || $[59] !== referenceElement || $[60] !== showTooltip ? (t18 = {
4922
4736
  handleIsOpenChange,
4923
4737
  referenceElement,
4924
4738
  showTooltip,
4925
4739
  isInsideGroup
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 = () => {
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 = () => {
4929
4743
  disabled && showTooltip && handleIsOpenChange(!1);
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 = () => {
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 = () => {
4933
4747
  !content && showTooltip && handleIsOpenChange(!1);
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 = () => {
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 = () => {
4937
4751
  if (!showTooltip)
4938
4752
  return;
4939
4753
  const handleWindowKeyDown = function(event) {
@@ -4942,32 +4756,32 @@ const StyledTooltip = styled(Layer).withConfig({
4942
4756
  return window.addEventListener("keydown", handleWindowKeyDown), () => {
4943
4757
  window.removeEventListener("keydown", handleWindowKeyDown);
4944
4758
  };
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 = () => {
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 = () => {
4948
4762
  const availableWidths = [...boundaryElement ? [boundaryElement.offsetWidth] : [], portalElement?.offsetWidth || document.body.offsetWidth];
4949
4763
  setTooltipMaxWidth(Math.min(...availableWidths) - DEFAULT_TOOLTIP_PADDING * 2);
4950
- }, $[78] = boundaryElement, $[79] = portalElement?.offsetWidth, $[80] = t26) : t26 = $[80];
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);
4951
4767
  let t27;
4952
- $[81] !== boundaryElement || $[82] !== portalElement ? (t27 = [boundaryElement, portalElement], $[81] = boundaryElement, $[82] = portalElement, $[83] = t27) : t27 = $[83], useLayoutEffect(t26, t27);
4953
- let t28;
4954
- $[84] !== update ? (t28 = (arrowEl) => {
4768
+ $[82] !== update ? (t27 = (arrowEl) => {
4955
4769
  arrowRef.current = arrowEl, update();
4956
- }, $[84] = update, $[85] = t28) : t28 = $[85];
4957
- const setArrow = t28;
4958
- let t29;
4959
- $[86] !== refs ? (t29 = (node) => {
4770
+ }, $[82] = update, $[83] = t27) : t27 = $[83];
4771
+ const setArrow = t27;
4772
+ let t28;
4773
+ $[84] !== refs ? (t28 = (node) => {
4960
4774
  ref.current = node, refs.setFloating(node);
4961
- }, $[86] = refs, $[87] = t29) : t29 = $[87];
4962
- const setFloating = t29;
4963
- let t30;
4775
+ }, $[84] = refs, $[85] = t28) : t28 = $[85];
4776
+ const setFloating = t28;
4777
+ let t29;
4964
4778
  bb0: {
4965
4779
  if (!childProp) {
4966
- t30 = null;
4780
+ t29 = null;
4967
4781
  break bb0;
4968
4782
  }
4969
- let t312;
4970
- $[88] !== childProp || $[89] !== handleBlur || $[90] !== handleClick || $[91] !== handleContextMenu || $[92] !== handleFocus || $[93] !== handleMouseEnter || $[94] !== handleMouseLeave ? (t312 = cloneElement(childProp, {
4783
+ let t302;
4784
+ $[86] !== childProp || $[87] !== handleBlur || $[88] !== handleClick || $[89] !== handleContextMenu || $[90] !== handleFocus || $[91] !== handleMouseEnter || $[92] !== handleMouseLeave ? (t302 = cloneElement(childProp, {
4971
4785
  onBlur: handleBlur,
4972
4786
  onFocus: handleFocus,
4973
4787
  onMouseEnter: handleMouseEnter,
@@ -4975,39 +4789,39 @@ const StyledTooltip = styled(Layer).withConfig({
4975
4789
  onClick: handleClick,
4976
4790
  onContextMenu: handleContextMenu,
4977
4791
  ref: setReferenceElement
4978
- }), $[88] = childProp, $[89] = handleBlur, $[90] = handleClick, $[91] = handleContextMenu, $[92] = handleFocus, $[93] = handleMouseEnter, $[94] = handleMouseLeave, $[95] = t312) : t312 = $[95], t30 = t312;
4792
+ }), $[86] = childProp, $[87] = handleBlur, $[88] = handleClick, $[89] = handleContextMenu, $[90] = handleFocus, $[91] = handleMouseEnter, $[92] = handleMouseLeave, $[93] = t302) : t302 = $[93], t29 = t302;
4979
4793
  }
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;
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;
4987
4801
  }
4988
4802
  if (disabled)
4989
4803
  return child;
4990
- const t34 = tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0;
4991
- let t35;
4992
- $[102] !== floatingStyles || $[103] !== t34 ? (t35 = {
4804
+ const t33 = tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0;
4805
+ let t34;
4806
+ $[100] !== floatingStyles || $[101] !== t33 ? (t34 = {
4993
4807
  ...floatingStyles,
4994
- maxWidth: t34
4995
- }, $[102] = floatingStyles, $[103] = t34, $[104] = t35) : t35 = $[104];
4808
+ maxWidth: t33
4809
+ }, $[100] = floatingStyles, $[101] = t33, $[102] = t34) : t34 = $[102];
4810
+ 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];
4996
4812
  let 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];
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;
4998
4815
  let 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;
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;
5001
4818
  let t38;
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;
4819
+ $[129] !== animate || $[130] !== children ? (t38 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[129] = animate, $[130] = children, $[131] = t38) : t38 = $[131];
5004
4820
  let t39;
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,
4821
+ return $[132] !== child || $[133] !== t38 ? (t39 = /* @__PURE__ */ jsxs(Fragment, { children: [
4822
+ t38,
5009
4823
  child
5010
- ] }), $[134] = child, $[135] = t39, $[136] = t40) : t40 = $[136], t40;
4824
+ ] }), $[132] = child, $[133] = t38, $[134] = t39) : t39 = $[134], t39;
5011
4825
  });
5012
4826
  Tooltip.displayName = "ForwardRef(Tooltip)";
5013
4827
  function useMiddleware(t0) {
@@ -5083,7 +4897,7 @@ const StyledHotkeys = styled.kbd.withConfig({
5083
4897
  displayName: "Key",
5084
4898
  componentId: "sc-b37mge-1"
5085
4899
  })`&:not([hidden]){display:block;}`, Hotkeys = forwardRef(function(props, ref) {
5086
- const $ = c(26);
4900
+ const $ = c(24);
5087
4901
  let fontSize2, keys, padding, radius, restProps, t0;
5088
4902
  $[0] !== props ? ({
5089
4903
  fontSize: fontSize2,
@@ -5093,24 +4907,21 @@ const StyledHotkeys = styled.kbd.withConfig({
5093
4907
  space: t0,
5094
4908
  ...restProps
5095
4909
  } = 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]);
5096
- const spaceProp = t0 === void 0 ? 0.5 : t0;
5097
- let t1;
5098
- $[7] !== spaceProp ? (t1 = _getArrayProp(spaceProp), $[7] = spaceProp, $[8] = t1) : t1 = $[8];
5099
- const space = t1;
4910
+ const space = useArrayProp(t0 === void 0 ? 0.5 : t0);
5100
4911
  if (!keys || keys.length === 0) {
5101
- let t22;
5102
- return $[9] === Symbol.for("react.memo_cache_sentinel") ? (t22 = /* @__PURE__ */ jsx(Fragment, {}), $[9] = t22) : t22 = $[9], t22;
4912
+ let t12;
4913
+ return $[7] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(Fragment, {}), $[7] = t12) : t12 = $[7], t12;
5103
4914
  }
5104
- let t2;
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;
4915
+ let t1;
4916
+ if ($[8] !== fontSize2 || $[9] !== keys || $[10] !== padding || $[11] !== radius) {
4917
+ 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;
5108
4919
  } else
5109
- t2 = $[14];
4920
+ t1 = $[12];
4921
+ let t2;
4922
+ $[17] !== space || $[18] !== t1 ? (t2 = /* @__PURE__ */ jsx(Inline, { as: "span", space, children: t1 }), $[17] = space, $[18] = t1, $[19] = t2) : t2 = $[19];
5110
4923
  let 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;
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;
5114
4925
  });
5115
4926
  Hotkeys.displayName = "ForwardRef(Hotkeys)";
5116
4927
  const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
@@ -5481,7 +5292,7 @@ function useMenu() {
5481
5292
  return value;
5482
5293
  }
5483
5294
  function MenuGroup(props) {
5484
- const $ = c(81);
5295
+ const $ = c(79);
5485
5296
  let IconComponent, children, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
5486
5297
  $[0] !== props ? ({
5487
5298
  as: t0,
@@ -5562,35 +5373,32 @@ function MenuGroup(props) {
5562
5373
  return;
5563
5374
  }
5564
5375
  }, $[45] = t20) : t20 = $[45];
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;
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;
5569
5377
  let t26;
5570
- $[48] !== IconComponent || $[49] !== fontSize2 ? (t26 = IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
5378
+ $[46] !== IconComponent || $[47] !== fontSize2 ? (t26 = IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
5571
5379
  isValidElement(IconComponent) && IconComponent,
5572
5380
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
5573
- ] }), $[48] = IconComponent, $[49] = fontSize2, $[50] = t26) : t26 = $[50];
5381
+ ] }), $[46] = IconComponent, $[47] = fontSize2, $[48] = t26) : t26 = $[48];
5574
5382
  let t27;
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];
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];
5576
5384
  let t28;
5577
- $[54] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ jsx(ChevronRightIcon, {}), $[54] = t28) : t28 = $[54];
5385
+ $[52] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ jsx(ChevronRightIcon, {}), $[52] = t28) : t28 = $[52];
5578
5386
  let t29;
5579
- $[55] !== fontSize2 ? (t29 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t28 }), $[55] = fontSize2, $[56] = t29) : t29 = $[56];
5387
+ $[53] !== fontSize2 ? (t29 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t28 }), $[53] = fontSize2, $[54] = t29) : t29 = $[54];
5580
5388
  let t30;
5581
- $[57] !== padding || $[58] !== space || $[59] !== t26 || $[60] !== t27 || $[61] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Flex, { gap: space, padding, children: [
5389
+ $[55] !== padding || $[56] !== space || $[57] !== t26 || $[58] !== t27 || $[59] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Flex, { gap: space, padding, children: [
5582
5390
  t26,
5583
5391
  t27,
5584
5392
  t29
5585
- ] }), $[57] = padding, $[58] = space, $[59] = t26, $[60] = t27, $[61] = t29, $[62] = t30) : t30 = $[62];
5393
+ ] }), $[55] = padding, $[56] = space, $[57] = t26, $[58] = t27, $[59] = t29, $[60] = t30) : t30 = $[60];
5586
5394
  let t31;
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];
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];
5588
5396
  let 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;
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;
5590
5398
  }
5591
5399
  MenuGroup.displayName = "MenuGroup";
5592
5400
  const MenuItem = forwardRef(function(props, forwardedRef) {
5593
- const $ = c(75);
5401
+ const $ = c(73);
5594
5402
  let IconComponent, IconRightComponent, children, disabled, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
5595
5403
  $[0] !== props ? ({
5596
5404
  as: t0,
@@ -5644,22 +5452,17 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
5644
5452
  paddingBottom,
5645
5453
  paddingLeft
5646
5454
  }, $[33] = padding, $[34] = paddingBottom, $[35] = paddingLeft, $[36] = paddingRight, $[37] = paddingTop, $[38] = paddingX, $[39] = paddingY, $[40] = t10) : t10 = $[40];
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;
5455
+ const paddingProps = t10, t11 = useArrayProp(fontSize2);
5651
5456
  let t12;
5652
- $[43] === Symbol.for("react.memo_cache_sentinel") ? (t12 = (el) => {
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) => {
5653
5461
  ref.current = el, setRootElement(el);
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: [
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: [
5663
5466
  IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
5664
5467
  isValidElement(IconComponent) && IconComponent,
5665
5468
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
@@ -5673,14 +5476,14 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
5673
5476
  isValidElement(IconRightComponent) && IconRightComponent,
5674
5477
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
5675
5478
  ] })
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];
5479
+ ] }), $[44] = IconComponent, $[45] = IconRightComponent, $[46] = fontSize2, $[47] = hotkeys, $[48] = hotkeysFontSize, $[49] = paddingProps, $[50] = space, $[51] = text, $[52] = t21) : t21 = $[52];
5679
5480
  let t22;
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;
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;
5684
5487
  });
5685
5488
  MenuItem.displayName = "ForwardRef(MenuItem)";
5686
5489
  function _temp(s) {
@@ -5844,6 +5647,7 @@ export {
5844
5647
  rgba,
5845
5648
  screen,
5846
5649
  studioTheme,
5650
+ useArrayProp,
5847
5651
  useBoundaryElement,
5848
5652
  useClickOutsideEvent,
5849
5653
  useCustomValidity,