@sanity/ui 3.0.11 → 3.0.12-canary.1

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 (53) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +1124 -628
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-es/_visual-editing.mjs +1127 -631
  4. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  5. package/dist/_visual-editing.d.mts +3 -7
  6. package/dist/_visual-editing.d.ts +3 -7
  7. package/dist/index.d.mts +11 -12
  8. package/dist/index.d.ts +11 -12
  9. package/dist/index.js +252 -295
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +254 -297
  12. package/dist/index.mjs.map +1 -1
  13. package/package.json +26 -40
  14. package/src/core/components/autocomplete/autocomplete.tsx +2 -2
  15. package/src/core/components/breadcrumbs/breadcrumbs.tsx +70 -40
  16. package/src/core/components/dialog/dialog.tsx +10 -14
  17. package/src/core/components/hotkeys/hotkeys.tsx +2 -2
  18. package/src/core/components/menu/menuGroup.tsx +2 -2
  19. package/src/core/components/menu/menuItem.tsx +4 -4
  20. package/src/core/components/skeleton/skeleton.tsx +2 -2
  21. package/src/core/components/skeleton/textSkeleton.tsx +5 -5
  22. package/src/core/components/tree/tree.tsx +176 -182
  23. package/src/core/components/tree/treeGroup.tsx +2 -4
  24. package/src/core/components/tree/treeItem.tsx +5 -5
  25. package/src/core/hooks/index.ts +1 -1
  26. package/src/core/hooks/useArrayProp.ts +5 -17
  27. package/src/core/primitives/avatar/avatar.tsx +14 -16
  28. package/src/core/primitives/avatar/avatarCounter.tsx +14 -16
  29. package/src/core/primitives/avatar/avatarStack.tsx +2 -2
  30. package/src/core/primitives/badge/badge.tsx +3 -3
  31. package/src/core/primitives/box/box.tsx +26 -26
  32. package/src/core/primitives/button/button.tsx +11 -11
  33. package/src/core/primitives/card/card.tsx +8 -8
  34. package/src/core/primitives/code/code.tsx +2 -2
  35. package/src/core/primitives/container/container.tsx +2 -2
  36. package/src/core/primitives/flex/flex.tsx +6 -6
  37. package/src/core/primitives/grid/grid.tsx +9 -9
  38. package/src/core/primitives/heading/heading.tsx +3 -3
  39. package/src/core/primitives/inline/inline.tsx +2 -2
  40. package/src/core/primitives/kbd/kbd.tsx +2 -2
  41. package/src/core/primitives/label/label.tsx +3 -3
  42. package/src/core/primitives/popover/floating-ui/size.ts +32 -16
  43. package/src/core/primitives/popover/popover.tsx +355 -328
  44. package/src/core/primitives/popover/popoverCard.tsx +123 -125
  45. package/src/core/primitives/select/select.tsx +6 -5
  46. package/src/core/primitives/stack/stack.tsx +2 -2
  47. package/src/core/primitives/text/text.tsx +3 -3
  48. package/src/core/primitives/textArea/textArea.tsx +6 -5
  49. package/src/core/primitives/textInput/textInput.tsx +6 -5
  50. package/src/core/primitives/tooltip/tooltip.tsx +73 -44
  51. package/src/core/primitives/tooltip/tooltipCard.tsx +83 -85
  52. package/src/core/utils/layer/layerProvider.tsx +3 -2
  53. package/src/core/utils/virtualList/virtualList.tsx +48 -23
@@ -189,125 +189,6 @@ function responsiveTextAlignStyle(props) {
189
189
  function responsiveTextFont(props) {
190
190
  return responsiveFont("text", props);
191
191
  }
192
- function useArrayProp(val, defaultVal) {
193
- const $ = reactCompilerRuntime.c(3);
194
- let t0;
195
- $[0] !== defaultVal || $[1] !== val ? (t0 = () => [_getArrayProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2];
196
- const [t1, setCache] = react.useState(t0), [cachedVal, cachedHash] = t1, hash = JSON.stringify(val ?? defaultVal);
197
- return hash !== cachedHash && setCache([_getArrayProp(val, defaultVal), hash]), cachedVal;
198
- }
199
- function useClickOutsideEvent(listener, t0, boundaryElement) {
200
- const $ = reactCompilerRuntime.c(9), elementsArg = t0 === void 0 ? _temp$a : t0;
201
- let t1;
202
- $[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
203
- if (!listener)
204
- return;
205
- const target = evt.target;
206
- if (!(target instanceof Node))
207
- return;
208
- const resolvedBoundaryElement = boundaryElement?.();
209
- if (resolvedBoundaryElement && !resolvedBoundaryElement.contains(target))
210
- return;
211
- const elements = elementsArg().flat();
212
- for (const el of elements)
213
- if (el && (target === el || el.contains(target)))
214
- return;
215
- listener(evt);
216
- }, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
217
- const onEvent = useEffectEvent.useEffectEvent(t1), hasListener = !!listener;
218
- let t2;
219
- $[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
220
- if (!hasListener)
221
- return;
222
- const handleEvent = (evt_0) => onEvent(evt_0);
223
- return document.addEventListener("mousedown", handleEvent), () => {
224
- document.removeEventListener("mousedown", handleEvent);
225
- };
226
- }, $[4] = hasListener, $[5] = onEvent, $[6] = t2) : t2 = $[6];
227
- let t3;
228
- $[7] !== hasListener ? (t3 = [hasListener], $[7] = hasListener, $[8] = t3) : t3 = $[8], react.useEffect(t2, t3), react.useDebugValue(listener ? "MouseDown On" : "MouseDown Off");
229
- }
230
- function _temp$a() {
231
- return EMPTY_ARRAY;
232
- }
233
- function useCustomValidity(ref, customValidity) {
234
- const $ = reactCompilerRuntime.c(4);
235
- let t0, t1;
236
- $[0] !== customValidity || $[1] !== ref ? (t0 = () => {
237
- ref.current?.setCustomValidity(customValidity || "");
238
- }, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), react.useEffect(t0, t1);
239
- }
240
- const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : resizeObserver.ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
241
- function _createElementRectValueListener() {
242
- return {
243
- subscribe(element, subscriber) {
244
- const resizeObserver2 = new _ResizeObserver(([entry]) => {
245
- subscriber({
246
- _contentRect: entry.contentRect,
247
- border: {
248
- width: entry.borderBoxSize[0].inlineSize,
249
- height: entry.borderBoxSize[0].blockSize
250
- },
251
- content: {
252
- width: entry.contentRect.width,
253
- height: entry.contentRect.height
254
- }
255
- });
256
- });
257
- return resizeObserver2.observe(element), () => {
258
- resizeObserver2.unobserve(element), resizeObserver2.disconnect();
259
- };
260
- }
261
- };
262
- }
263
- function _createElementSizeObserver() {
264
- const disposeCache = /* @__PURE__ */ new WeakMap(), subscribersCache = /* @__PURE__ */ new WeakMap();
265
- return {
266
- subscribe(element, subscriber) {
267
- const subscribers = subscribersCache.get(element) || [];
268
- let dispose = disposeCache.get(element);
269
- return subscribersCache.has(element) || (subscribersCache.set(element, subscribers), dispose = _createElementRectValueListener().subscribe(element, (elementRect) => {
270
- for (const sub of subscribers)
271
- sub(elementRect);
272
- })), subscribers.push(subscriber), () => {
273
- const idx = subscribers.indexOf(subscriber);
274
- idx > -1 && subscribers.splice(idx, 1), subscribers.length === 0 && dispose && dispose();
275
- };
276
- }
277
- };
278
- }
279
- function useElementSize(element) {
280
- const $ = reactCompilerRuntime.c(3), [size2, setSize] = react.useState(null);
281
- let t0, t1;
282
- return $[0] !== element ? (t0 = () => {
283
- if (element)
284
- return _elementSizeObserver.subscribe(element, setSize);
285
- }, t1 = [element], $[0] = element, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), react.useEffect(t0, t1), size2;
286
- }
287
- function useGlobalKeyDown(onKeyDown) {
288
- const $ = reactCompilerRuntime.c(5);
289
- let t0;
290
- $[0] !== onKeyDown ? (t0 = (event) => onKeyDown(event), $[0] = onKeyDown, $[1] = t0) : t0 = $[1];
291
- const handleKeyDown = useEffectEvent.useEffectEvent(t0);
292
- let t1;
293
- $[2] !== handleKeyDown ? (t1 = () => {
294
- const handler = (event_0) => handleKeyDown(event_0);
295
- return window.addEventListener("keydown", handler), () => window.removeEventListener("keydown", handler);
296
- }, $[2] = handleKeyDown, $[3] = t1) : t1 = $[3];
297
- let t2;
298
- $[4] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[4] = t2) : t2 = $[4], react.useEffect(t1, t2);
299
- }
300
- function useMatchMedia(mediaQueryString, getServerSnapshot2) {
301
- const $ = reactCompilerRuntime.c(4);
302
- react.useDebugValue(mediaQueryString);
303
- let t0;
304
- $[0] !== mediaQueryString ? (t0 = (onStoreChange) => {
305
- const media = window.matchMedia(mediaQueryString);
306
- return media.addEventListener("change", onStoreChange), () => media.removeEventListener("change", onStoreChange);
307
- }, $[0] = mediaQueryString, $[1] = t0) : t0 = $[1];
308
- let t1;
309
- return $[2] !== mediaQueryString ? (t1 = () => window.matchMedia(mediaQueryString).matches, $[2] = mediaQueryString, $[3] = t1) : t1 = $[3], react.useSyncExternalStore(t0, t1, getServerSnapshot2);
310
- }
311
192
  function getGlobalScope() {
312
193
  if (typeof globalThis < "u") return globalThis;
313
194
  if (typeof window < "u") return window;
@@ -388,75 +269,6 @@ function useTheme_v2() {
388
269
  let t1;
389
270
  return $[0] !== t0 ? (t1 = theme.getTheme_v2(t0), $[0] = t0, $[1] = t1) : t1 = $[1], t1;
390
271
  }
391
- function _getMediaQuery(media, index) {
392
- 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)`;
393
- }
394
- function _createMediaStore(media) {
395
- const mediaLen = media.length;
396
- let sizes;
397
- const getSizes = () => {
398
- if (!sizes) {
399
- sizes = [];
400
- for (let index = mediaLen; index > -1; index -= 1) {
401
- const mediaQuery = _getMediaQuery(media, index);
402
- sizes.push({
403
- index,
404
- mq: window.matchMedia(mediaQuery)
405
- });
406
- }
407
- }
408
- return sizes;
409
- };
410
- return {
411
- getSnapshot: () => {
412
- for (const {
413
- index,
414
- mq
415
- } of getSizes())
416
- if (mq.matches) return index;
417
- return 0;
418
- },
419
- subscribe: (onStoreChange) => {
420
- const disposeFns = [];
421
- for (const {
422
- mq
423
- } of getSizes()) {
424
- const handleChange = () => {
425
- mq.matches && onStoreChange();
426
- };
427
- mq.addEventListener("change", handleChange), disposeFns.push(() => mq.removeEventListener("change", handleChange));
428
- }
429
- return () => {
430
- for (const disposeFn of disposeFns)
431
- disposeFn();
432
- };
433
- }
434
- };
435
- }
436
- function getServerSnapshot() {
437
- return 0;
438
- }
439
- function useMediaIndex() {
440
- const $ = reactCompilerRuntime.c(2), {
441
- media
442
- } = useTheme_v2();
443
- let t0;
444
- $[0] !== media ? (t0 = _createMediaStore(media), $[0] = media, $[1] = t0) : t0 = $[1];
445
- const store = t0;
446
- return react.useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
447
- }
448
- function usePrefersDark(t0) {
449
- return useMatchMedia("(prefers-color-scheme: dark)", t0 === void 0 ? _temp$9 : t0);
450
- }
451
- function _temp$9() {
452
- return !1;
453
- }
454
- function usePrefersReducedMotion(t0) {
455
- return useMatchMedia("(prefers-reduced-motion: reduce)", t0 === void 0 ? _temp$8 : t0);
456
- }
457
- function _temp$8() {
458
- return !1;
459
- }
460
272
  function responsiveBorderStyle() {
461
273
  return [border, borderTop, borderRight, borderBottom, borderLeft];
462
274
  }
@@ -1170,7 +982,7 @@ const StyledLabel = /* @__PURE__ */ styledComponents.styled.div.withConfig({
1170
982
  displayName: "StyledLabel",
1171
983
  componentId: "sc-1luap7z-0"
1172
984
  })(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), Label = react.forwardRef(function(props, ref) {
1173
- const $ = reactCompilerRuntime.c(22);
985
+ const $ = reactCompilerRuntime.c(26);
1174
986
  let accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
1175
987
  $[0] !== props ? ({
1176
988
  accent,
@@ -1191,9 +1003,12 @@ const StyledLabel = /* @__PURE__ */ styledComponents.styled.div.withConfig({
1191
1003
  let t22;
1192
1004
  $[11] !== children ? (t22 = /* @__PURE__ */ jsxRuntime.jsx("span", { children }), $[11] = children, $[12] = t22) : t22 = $[12], children = t22;
1193
1005
  }
1194
- const t2 = useArrayProp(align), t3 = useArrayProp(size2);
1006
+ let t2;
1007
+ $[13] !== align ? (t2 = _getArrayProp(align), $[13] = align, $[14] = t2) : t2 = $[14];
1008
+ let t3;
1009
+ $[15] !== size2 ? (t3 = _getArrayProp(size2), $[15] = size2, $[16] = t3) : t3 = $[16];
1195
1010
  let t4;
1196
- return $[13] !== accent || $[14] !== children || $[15] !== muted || $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== weight ? (t4 = /* @__PURE__ */ jsxRuntime.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;
1011
+ return $[17] !== accent || $[18] !== children || $[19] !== muted || $[20] !== ref || $[21] !== restProps || $[22] !== t2 || $[23] !== t3 || $[24] !== weight ? (t4 = /* @__PURE__ */ jsxRuntime.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;
1197
1012
  });
1198
1013
  Label.displayName = "ForwardRef(Label)";
1199
1014
  const avatarStyle = {
@@ -1363,7 +1178,7 @@ const StyledAvatar = /* @__PURE__ */ styledComponents.styled.div.withConfig({
1363
1178
  displayName: "AvatarImage",
1364
1179
  componentId: "sc-1rj7kl0-6"
1365
1180
  })(avatarStyle.image), Avatar = react.forwardRef(function(props, ref) {
1366
- const $ = reactCompilerRuntime.c(52);
1181
+ const $ = reactCompilerRuntime.c(46);
1367
1182
  let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
1368
1183
  $[0] !== props ? ({
1369
1184
  __unstable_hideInnerStroke,
@@ -1381,7 +1196,7 @@ const StyledAvatar = /* @__PURE__ */ styledComponents.styled.div.withConfig({
1381
1196
  } = 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]);
1382
1197
  const color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, {
1383
1198
  avatar
1384
- } = useTheme_v2(), as = ReactIs__default.default.isValidElementType(asProp) ? asProp : "div", size2 = useArrayProp(sizeProp), _sizeRem = (avatar.sizes[size2[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = react.useId(), [arrowPosition, setArrowPosition] = react.useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = react.useState(!1), imageId = `avatar-image-${elementId}`;
1199
+ } = useTheme_v2(), as = ReactIs__default.default.isValidElementType(asProp) ? asProp : "div", size2 = _getArrayProp(sizeProp), _sizeRem = (avatar.sizes[size2[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = react.useId(), [arrowPosition, setArrowPosition] = react.useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = react.useState(!1), imageId = `avatar-image-${elementId}`;
1385
1200
  let t3, t4;
1386
1201
  $[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t3 = () => {
1387
1202
  if (arrowPosition === arrowPositionProp)
@@ -1397,30 +1212,26 @@ const StyledAvatar = /* @__PURE__ */ styledComponents.styled.div.withConfig({
1397
1212
  $[20] !== onImageLoadError ? (t7 = () => {
1398
1213
  setImageFailed(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
1399
1214
  }, $[20] = onImageLoadError, $[21] = t7) : t7 = $[21];
1400
- const handleImageError = t7;
1401
- let t8;
1402
- $[22] !== size2 ? (t8 = size2.map(_temp$7), $[22] = size2, $[23] = t8) : t8 = $[23];
1403
- const initialsSize = t8, t9 = typeof as == "string" ? as : void 0;
1215
+ const handleImageError = t7, T0 = StyledAvatar, t8 = typeof as == "string" ? as : void 0, t9 = "Avatar";
1404
1216
  let t10;
1405
- $[24] !== color ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(Arrow$1, { children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsxRuntime.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];
1217
+ $[22] !== color ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(Arrow$1, { children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsxRuntime.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];
1406
1218
  let t11;
1407
- $[26] !== __unstable_hideInnerStroke || $[27] !== _radius || $[28] !== _sizeRem || $[29] !== handleImageError || $[30] !== imageFailed || $[31] !== imageId || $[32] !== src ? (t11 = !imageFailed && src && /* @__PURE__ */ jsxRuntime.jsxs(AvatarImage, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
1219
+ $[24] !== __unstable_hideInnerStroke || $[25] !== _radius || $[26] !== _sizeRem || $[27] !== handleImageError || $[28] !== imageFailed || $[29] !== imageId || $[30] !== src ? (t11 = !imageFailed && src && /* @__PURE__ */ jsxRuntime.jsxs(AvatarImage, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
1408
1220
  /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("pattern", { id: imageId, patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsxRuntime.jsx("image", { href: src, width: "1", height: "1", onError: handleImageError }) }) }),
1409
1221
  /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: _radius, cy: _radius, r: _radius, fill: `url(#${imageId})` }),
1410
1222
  !__unstable_hideInnerStroke && /* @__PURE__ */ jsxRuntime.jsx(BgStroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" }),
1411
1223
  /* @__PURE__ */ jsxRuntime.jsx(Stroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" })
1412
- ] }), $[26] = __unstable_hideInnerStroke, $[27] = _radius, $[28] = _sizeRem, $[29] = handleImageError, $[30] = imageFailed, $[31] = imageId, $[32] = src, $[33] = t11) : t11 = $[33];
1413
- let t12;
1414
- $[34] !== imageFailed || $[35] !== initials || $[36] !== initialsSize || $[37] !== src ? (t12 = (imageFailed || !src) && initials && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(Initials, { children: /* @__PURE__ */ jsxRuntime.jsx(InitialsLabel, { forwardedAs: "span", size: initialsSize, weight: "medium", children: initials }) }) }), $[34] = imageFailed, $[35] = initials, $[36] = initialsSize, $[37] = src, $[38] = t12) : t12 = $[38];
1224
+ ] }), $[24] = __unstable_hideInnerStroke, $[25] = _radius, $[26] = _sizeRem, $[27] = handleImageError, $[28] = imageFailed, $[29] = imageId, $[30] = src, $[31] = t11) : t11 = $[31];
1225
+ const t12 = (imageFailed || !src) && initials && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(Initials, { children: /* @__PURE__ */ jsxRuntime.jsx(InitialsLabel, { forwardedAs: "span", size: size2.map(_temp$a), weight: "medium", children: initials }) }) });
1415
1226
  let t13;
1416
- 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__ */ jsxRuntime.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: [
1227
+ 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__ */ jsxRuntime.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: [
1417
1228
  t10,
1418
1229
  t11,
1419
1230
  t12
1420
- ] }), $[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;
1231
+ ] }), $[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;
1421
1232
  });
1422
1233
  Avatar.displayName = "ForwardRef(Avatar)";
1423
- function _temp$7(s) {
1234
+ function _temp$a(s) {
1424
1235
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
1425
1236
  }
1426
1237
  function _responsiveAvatarCounterSizeStyle(props) {
@@ -1463,20 +1274,23 @@ const StyledAvatarCounter = /* @__PURE__ */ styledComponents.styled.div.withConf
1463
1274
  displayName: "StyledAvatarCounter",
1464
1275
  componentId: "sc-1ydx86y-0"
1465
1276
  })(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = react.forwardRef(function(props, ref) {
1466
- const $ = reactCompilerRuntime.c(9), {
1277
+ const $ = reactCompilerRuntime.c(20), {
1467
1278
  count,
1468
1279
  size: t0
1469
- } = props, size2 = useArrayProp(t0 === void 0 ? 1 : t0);
1470
- let t1;
1471
- $[0] !== size2 ? (t1 = size2.map(_temp$6), $[0] = size2, $[1] = t1) : t1 = $[1];
1472
- const fontSize2 = t1;
1473
- let t2;
1474
- $[2] !== count || $[3] !== fontSize2 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Label, { as: "span", size: fontSize2, weight: "medium", children: count }), $[2] = count, $[3] = fontSize2, $[4] = t2) : t2 = $[4];
1475
- let t3;
1476
- return $[5] !== ref || $[6] !== size2 || $[7] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(StyledAvatarCounter, { $size: size2, "data-ui": "AvatarCounter", ref, children: t2 }), $[5] = ref, $[6] = size2, $[7] = t2, $[8] = t3) : t3 = $[8], t3;
1280
+ } = props, sizeProp = t0 === void 0 ? 1 : t0;
1281
+ let T0, T1, t1, t2, t3, t4, t5;
1282
+ if ($[0] !== ref || $[1] !== sizeProp) {
1283
+ const size2 = _getArrayProp(sizeProp);
1284
+ 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;
1285
+ } else
1286
+ T0 = $[2], T1 = $[3], t1 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8];
1287
+ let t6;
1288
+ $[9] !== T0 || $[10] !== count || $[11] !== t1 || $[12] !== t2 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(T0, { as: t1, size: t2, weight: "medium", children: count }), $[9] = T0, $[10] = count, $[11] = t1, $[12] = t2, $[13] = t6) : t6 = $[13];
1289
+ let t7;
1290
+ return $[14] !== T1 || $[15] !== t3 || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.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;
1477
1291
  });
1478
1292
  AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
1479
- function _temp$6(s) {
1293
+ function _temp$9(s) {
1480
1294
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
1481
1295
  }
1482
1296
  const BASE_STYLES = styledComponents.css`
@@ -1511,7 +1325,7 @@ const StyledAvatarStack = /* @__PURE__ */ styledComponents.styled.div.withConfig
1511
1325
  displayName: "StyledAvatarStack",
1512
1326
  componentId: "sc-cysmbb-0"
1513
1327
  })(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = react.forwardRef(function(props, ref) {
1514
- const $ = reactCompilerRuntime.c(22);
1328
+ const $ = reactCompilerRuntime.c(38);
1515
1329
  let childrenProp, restProps, t0, t1;
1516
1330
  $[0] !== props ? ({
1517
1331
  children: childrenProp,
@@ -1519,29 +1333,33 @@ const StyledAvatarStack = /* @__PURE__ */ styledComponents.styled.div.withConfig
1519
1333
  size: t1,
1520
1334
  ...restProps
1521
1335
  } = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1) : (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]);
1522
- const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, children = react.Children.toArray(childrenProp).filter(react.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";
1523
- let t3;
1524
- $[5] !== len || $[6] !== size2 ? (t3 = len === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: len, size: size2 }) }), $[5] = len, $[6] = size2, $[7] = t3) : t3 = $[7];
1525
- let t4;
1526
- $[8] !== extraCount || $[9] !== len || $[10] !== size2 ? (t4 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: extraCount, size: size2 }) }), $[8] = extraCount, $[9] = len, $[10] = size2, $[11] = t4) : t4 = $[11];
1527
- let t5;
1528
- $[12] !== size2 ? (t5 = (child, childIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { children: react.cloneElement(child, {
1529
- size: size2
1530
- }) }, String(childIndex)), $[12] = size2, $[13] = t5) : t5 = $[13];
1531
- const t6 = visibleChildren.map(t5);
1532
- let t7;
1533
- return $[14] !== T0 || $[15] !== ref || $[16] !== restProps || $[17] !== size2 || $[18] !== t3 || $[19] !== t4 || $[20] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsxs(T0, { "data-ui": t2, ...restProps, ref, $size: size2, children: [
1534
- t3,
1535
- t4,
1536
- t6
1537
- ] }), $[14] = T0, $[15] = ref, $[16] = restProps, $[17] = size2, $[18] = t3, $[19] = t4, $[20] = t6, $[21] = t7) : t7 = $[21], t7;
1336
+ const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1;
1337
+ let T0, t2, t3, t4, t5, t6, t7, t8;
1338
+ if ($[5] !== childrenProp || $[6] !== maxLengthProp || $[7] !== ref || $[8] !== restProps || $[9] !== sizeProp) {
1339
+ const children = react.Children.toArray(childrenProp).filter(react.isValidElement), maxLength = Math.max(maxLengthProp, 0);
1340
+ let t92;
1341
+ $[18] !== sizeProp ? (t92 = _getArrayProp(sizeProp), $[18] = sizeProp, $[19] = t92) : t92 = $[19];
1342
+ const size2 = t92, len = children.length, visibleCount = maxLength - 1, extraCount = len - visibleCount, visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children;
1343
+ T0 = StyledAvatarStack, t2 = "AvatarStack", t3 = restProps, t4 = ref, t5 = size2, $[20] !== len || $[21] !== size2 ? (t6 = len === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: extraCount, size: size2 }) }), $[23] = extraCount, $[24] = len, $[25] = size2, $[26] = t7) : t7 = $[26];
1344
+ let t10;
1345
+ $[27] !== size2 ? (t10 = (child, childIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { children: react.cloneElement(child, {
1346
+ size: size2
1347
+ }) }, 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;
1348
+ } else
1349
+ T0 = $[10], t2 = $[11], t3 = $[12], t4 = $[13], t5 = $[14], t6 = $[15], t7 = $[16], t8 = $[17];
1350
+ let t9;
1351
+ return $[29] !== T0 || $[30] !== t2 || $[31] !== t3 || $[32] !== t4 || $[33] !== t5 || $[34] !== t6 || $[35] !== t7 || $[36] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.jsxs(T0, { "data-ui": t2, ...t3, ref: t4, $size: t5, children: [
1352
+ t6,
1353
+ t7,
1354
+ t8
1355
+ ] }), $[29] = T0, $[30] = t2, $[31] = t3, $[32] = t4, $[33] = t5, $[34] = t6, $[35] = t7, $[36] = t8, $[37] = t9) : t9 = $[37], t9;
1538
1356
  });
1539
1357
  AvatarStack.displayName = "ForwardRef(AvatarStack)";
1540
1358
  const StyledBox = /* @__PURE__ */ styledComponents.styled.div.withConfig({
1541
1359
  displayName: "StyledBox",
1542
1360
  componentId: "sc-1hhky9f-0"
1543
1361
  })(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = react.forwardRef(function(props, ref) {
1544
- const $ = reactCompilerRuntime.c(59);
1362
+ const $ = reactCompilerRuntime.c(109);
1545
1363
  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;
1546
1364
  $[0] !== props ? ({
1547
1365
  as: t0,
@@ -1572,9 +1390,59 @@ const StyledBox = /* @__PURE__ */ styledComponents.styled.div.withConfig({
1572
1390
  sizing,
1573
1391
  ...restProps
1574
1392
  } = 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]);
1575
- 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);
1393
+ 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;
1394
+ let t5;
1395
+ $[28] !== column ? (t5 = _getArrayProp(column), $[28] = column, $[29] = t5) : t5 = $[29];
1396
+ let t6;
1397
+ $[30] !== columnStart ? (t6 = _getArrayProp(columnStart), $[30] = columnStart, $[31] = t6) : t6 = $[31];
1398
+ let t7;
1399
+ $[32] !== columnEnd ? (t7 = _getArrayProp(columnEnd), $[32] = columnEnd, $[33] = t7) : t7 = $[33];
1400
+ let t8;
1401
+ $[34] !== display ? (t8 = _getArrayProp(display), $[34] = display, $[35] = t8) : t8 = $[35];
1402
+ let t9;
1403
+ $[36] !== flex ? (t9 = _getArrayProp(flex), $[36] = flex, $[37] = t9) : t9 = $[37];
1404
+ let t10;
1405
+ $[38] !== height ? (t10 = _getArrayProp(height), $[38] = height, $[39] = t10) : t10 = $[39];
1406
+ let t11;
1407
+ $[40] !== margin ? (t11 = _getArrayProp(margin), $[40] = margin, $[41] = t11) : t11 = $[41];
1408
+ let t12;
1409
+ $[42] !== marginX ? (t12 = _getArrayProp(marginX), $[42] = marginX, $[43] = t12) : t12 = $[43];
1410
+ let t13;
1411
+ $[44] !== marginY ? (t13 = _getArrayProp(marginY), $[44] = marginY, $[45] = t13) : t13 = $[45];
1412
+ let t14;
1413
+ $[46] !== marginTop ? (t14 = _getArrayProp(marginTop), $[46] = marginTop, $[47] = t14) : t14 = $[47];
1414
+ let t15;
1415
+ $[48] !== marginRight ? (t15 = _getArrayProp(marginRight), $[48] = marginRight, $[49] = t15) : t15 = $[49];
1416
+ let t16;
1417
+ $[50] !== marginBottom ? (t16 = _getArrayProp(marginBottom), $[50] = marginBottom, $[51] = t16) : t16 = $[51];
1418
+ let t17;
1419
+ $[52] !== marginLeft ? (t17 = _getArrayProp(marginLeft), $[52] = marginLeft, $[53] = t17) : t17 = $[53];
1420
+ let t18;
1421
+ $[54] !== overflow ? (t18 = _getArrayProp(overflow), $[54] = overflow, $[55] = t18) : t18 = $[55];
1422
+ let t19;
1423
+ $[56] !== padding ? (t19 = _getArrayProp(padding), $[56] = padding, $[57] = t19) : t19 = $[57];
1424
+ let t20;
1425
+ $[58] !== paddingX ? (t20 = _getArrayProp(paddingX), $[58] = paddingX, $[59] = t20) : t20 = $[59];
1426
+ let t21;
1427
+ $[60] !== paddingY ? (t21 = _getArrayProp(paddingY), $[60] = paddingY, $[61] = t21) : t21 = $[61];
1428
+ let t22;
1429
+ $[62] !== paddingTop ? (t22 = _getArrayProp(paddingTop), $[62] = paddingTop, $[63] = t22) : t22 = $[63];
1430
+ let t23;
1431
+ $[64] !== paddingRight ? (t23 = _getArrayProp(paddingRight), $[64] = paddingRight, $[65] = t23) : t23 = $[65];
1432
+ let t24;
1433
+ $[66] !== paddingBottom ? (t24 = _getArrayProp(paddingBottom), $[66] = paddingBottom, $[67] = t24) : t24 = $[67];
1434
+ let t25;
1435
+ $[68] !== paddingLeft ? (t25 = _getArrayProp(paddingLeft), $[68] = paddingLeft, $[69] = t25) : t25 = $[69];
1436
+ let t26;
1437
+ $[70] !== row ? (t26 = _getArrayProp(row), $[70] = row, $[71] = t26) : t26 = $[71];
1438
+ let t27;
1439
+ $[72] !== rowStart ? (t27 = _getArrayProp(rowStart), $[72] = rowStart, $[73] = t27) : t27 = $[73];
1440
+ let t28;
1441
+ $[74] !== rowEnd ? (t28 = _getArrayProp(rowEnd), $[74] = rowEnd, $[75] = t28) : t28 = $[75];
1442
+ let t29;
1443
+ $[76] !== sizing ? (t29 = _getArrayProp(sizing), $[76] = sizing, $[77] = t29) : t29 = $[77];
1576
1444
  let t30;
1577
- 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__ */ jsxRuntime.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;
1445
+ 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__ */ jsxRuntime.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;
1578
1446
  });
1579
1447
  Box.displayName = "ForwardRef(Box)";
1580
1448
  function textBaseStyle(props) {
@@ -1649,7 +1517,7 @@ const StyledText = /* @__PURE__ */ styledComponents.styled.div.withConfig({
1649
1517
  displayName: "StyledText",
1650
1518
  componentId: "sc-11ov82j-0"
1651
1519
  })(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), Text = react.forwardRef(function(props, ref) {
1652
- const $ = reactCompilerRuntime.c(22);
1520
+ const $ = reactCompilerRuntime.c(26);
1653
1521
  let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
1654
1522
  $[0] !== props ? ({
1655
1523
  accent: t0,
@@ -1667,11 +1535,14 @@ const StyledText = /* @__PURE__ */ styledComponents.styled.div.withConfig({
1667
1535
  let t32;
1668
1536
  $[9] !== children ? (t32 = /* @__PURE__ */ jsxRuntime.jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t32) : t32 = $[10], children = t32;
1669
1537
  }
1670
- const t3 = useArrayProp(align), t4 = useArrayProp(size2);
1538
+ let t3;
1539
+ $[11] !== align ? (t3 = _getArrayProp(align), $[11] = align, $[12] = t3) : t3 = $[12];
1540
+ let t4;
1541
+ $[13] !== size2 ? (t4 = _getArrayProp(size2), $[13] = size2, $[14] = t4) : t4 = $[14];
1671
1542
  let t5;
1672
- $[11] !== children ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
1543
+ $[15] !== children ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("span", { children }), $[15] = children, $[16] = t5) : t5 = $[16];
1673
1544
  let t6;
1674
- return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.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;
1545
+ return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.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;
1675
1546
  });
1676
1547
  Text.displayName = "ForwardRef(Text)";
1677
1548
  function badgeStyle(props) {
@@ -1693,7 +1564,7 @@ const StyledBadge = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
1693
1564
  displayName: "StyledBadge",
1694
1565
  componentId: "sc-5u140l-0"
1695
1566
  })(responsiveRadiusStyle, badgeStyle), Badge = react.forwardRef(function(props, ref) {
1696
- const $ = reactCompilerRuntime.c(17);
1567
+ const $ = reactCompilerRuntime.c(21);
1697
1568
  let children, restProps, t0, t1, t2, t3;
1698
1569
  if ($[0] !== props) {
1699
1570
  const {
@@ -1708,18 +1579,22 @@ const StyledBadge = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
1708
1579
  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;
1709
1580
  } else
1710
1581
  children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5], t3 = $[6];
1711
- 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);
1582
+ 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;
1583
+ let t4;
1584
+ $[7] !== radius ? (t4 = _getArrayProp(radius), $[7] = radius, $[8] = t4) : t4 = $[8];
1585
+ let t5;
1586
+ $[9] !== padding ? (t5 = _getArrayProp(padding), $[9] = padding, $[10] = t5) : t5 = $[10];
1712
1587
  let t6;
1713
- $[7] !== children || $[8] !== fontSize2 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children }), $[7] = children, $[8] = fontSize2, $[9] = t6) : t6 = $[9];
1588
+ $[11] !== children || $[12] !== fontSize2 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children }), $[11] = children, $[12] = fontSize2, $[13] = t6) : t6 = $[13];
1714
1589
  let t7;
1715
- return $[10] !== ref || $[11] !== restProps || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== tone ? (t7 = /* @__PURE__ */ jsxRuntime.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;
1590
+ return $[14] !== ref || $[15] !== restProps || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 || $[19] !== tone ? (t7 = /* @__PURE__ */ jsxRuntime.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;
1716
1591
  });
1717
1592
  Badge.displayName = "ForwardRef(Badge)";
1718
1593
  const StyledFlex = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
1719
1594
  displayName: "StyledFlex",
1720
1595
  componentId: "sc-oxesg3-0"
1721
1596
  })(flexItemStyle, responsiveFlexStyle), Flex = react.forwardRef(function(props, ref) {
1722
- const $ = reactCompilerRuntime.c(17);
1597
+ const $ = reactCompilerRuntime.c(27);
1723
1598
  let align, as, gap, justify, restProps, t0, wrap;
1724
1599
  $[0] !== props ? ({
1725
1600
  align,
@@ -1730,9 +1605,19 @@ const StyledFlex = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
1730
1605
  wrap,
1731
1606
  ...restProps
1732
1607
  } = 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]);
1733
- const direction = t0 === void 0 ? "row" : t0, t1 = useArrayProp(align), t2 = useArrayProp(direction), t3 = useArrayProp(gap), t4 = useArrayProp(justify), t5 = useArrayProp(wrap);
1608
+ const direction = t0 === void 0 ? "row" : t0;
1609
+ let t1;
1610
+ $[8] !== align ? (t1 = _getArrayProp(align), $[8] = align, $[9] = t1) : t1 = $[9];
1611
+ let t2;
1612
+ $[10] !== direction ? (t2 = _getArrayProp(direction), $[10] = direction, $[11] = t2) : t2 = $[11];
1613
+ let t3;
1614
+ $[12] !== gap ? (t3 = _getArrayProp(gap), $[12] = gap, $[13] = t3) : t3 = $[13];
1615
+ let t4;
1616
+ $[14] !== justify ? (t4 = _getArrayProp(justify), $[14] = justify, $[15] = t4) : t4 = $[15];
1617
+ let t5;
1618
+ $[16] !== wrap ? (t5 = _getArrayProp(wrap), $[16] = wrap, $[17] = t5) : t5 = $[17];
1734
1619
  let t6;
1735
- return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t1 || $[12] !== t2 || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.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;
1620
+ return $[18] !== as || $[19] !== ref || $[20] !== restProps || $[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.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;
1736
1621
  });
1737
1622
  Flex.displayName = "ForwardRef(Flex)";
1738
1623
  const rotate = styledComponents.keyframes`
@@ -1929,7 +1814,7 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
1929
1814
  displayName: "LoadingBox",
1930
1815
  componentId: "sc-aaekt4-1"
1931
1816
  })`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 = react.forwardRef(function(props, ref) {
1932
- const $ = reactCompilerRuntime.c(66);
1817
+ const $ = reactCompilerRuntime.c(86);
1933
1818
  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;
1934
1819
  $[0] !== props ? ({
1935
1820
  children,
@@ -1961,9 +1846,39 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
1961
1846
  } = 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]);
1962
1847
  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, {
1963
1848
  button
1964
- } = 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);
1849
+ } = useTheme_v2();
1965
1850
  let t9;
1966
- $[27] !== padding || $[28] !== paddingBottom || $[29] !== paddingLeft || $[30] !== paddingRight || $[31] !== paddingTop || $[32] !== paddingX || $[33] !== paddingY ? (t9 = {
1851
+ $[27] !== justifyProp ? (t9 = _getArrayProp(justifyProp), $[27] = justifyProp, $[28] = t9) : t9 = $[28];
1852
+ const justify = t9;
1853
+ let t10;
1854
+ $[29] !== paddingProp ? (t10 = _getArrayProp(paddingProp), $[29] = paddingProp, $[30] = t10) : t10 = $[30];
1855
+ const padding = t10;
1856
+ let t11;
1857
+ $[31] !== paddingXProp ? (t11 = _getArrayProp(paddingXProp), $[31] = paddingXProp, $[32] = t11) : t11 = $[32];
1858
+ const paddingX = t11;
1859
+ let t12;
1860
+ $[33] !== paddingYProp ? (t12 = _getArrayProp(paddingYProp), $[33] = paddingYProp, $[34] = t12) : t12 = $[34];
1861
+ const paddingY = t12;
1862
+ let t13;
1863
+ $[35] !== paddingTopProp ? (t13 = _getArrayProp(paddingTopProp), $[35] = paddingTopProp, $[36] = t13) : t13 = $[36];
1864
+ const paddingTop = t13;
1865
+ let t14;
1866
+ $[37] !== paddingBottomProp ? (t14 = _getArrayProp(paddingBottomProp), $[37] = paddingBottomProp, $[38] = t14) : t14 = $[38];
1867
+ const paddingBottom = t14;
1868
+ let t15;
1869
+ $[39] !== paddingLeftProp ? (t15 = _getArrayProp(paddingLeftProp), $[39] = paddingLeftProp, $[40] = t15) : t15 = $[40];
1870
+ const paddingLeft = t15;
1871
+ let t16;
1872
+ $[41] !== paddingRightProp ? (t16 = _getArrayProp(paddingRightProp), $[41] = paddingRightProp, $[42] = t16) : t16 = $[42];
1873
+ const paddingRight = t16;
1874
+ let t17;
1875
+ $[43] !== radiusProp ? (t17 = _getArrayProp(radiusProp), $[43] = radiusProp, $[44] = t17) : t17 = $[44];
1876
+ const radius = t17;
1877
+ let t18;
1878
+ $[45] !== spaceProp ? (t18 = _getArrayProp(spaceProp), $[45] = spaceProp, $[46] = t18) : t18 = $[46];
1879
+ const space = t18;
1880
+ let t19;
1881
+ $[47] !== padding || $[48] !== paddingBottom || $[49] !== paddingLeft || $[50] !== paddingRight || $[51] !== paddingTop || $[52] !== paddingX || $[53] !== paddingY ? (t19 = {
1967
1882
  padding,
1968
1883
  paddingX,
1969
1884
  paddingY,
@@ -1971,12 +1886,12 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
1971
1886
  paddingBottom,
1972
1887
  paddingLeft,
1973
1888
  paddingRight
1974
- }, $[27] = padding, $[28] = paddingBottom, $[29] = paddingLeft, $[30] = paddingRight, $[31] = paddingTop, $[32] = paddingX, $[33] = paddingY, $[34] = t9) : t9 = $[34];
1975
- const boxProps = t9, t10 = !!(loading || disabled), t11 = selected ? "" : void 0, t12 = !!(loading || disabled);
1976
- let t13;
1977
- $[35] !== loading ? (t13 = !!loading && /* @__PURE__ */ jsxRuntime.jsx(LoadingBox, { children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}) }), $[35] = loading, $[36] = t13) : t13 = $[36];
1978
- let t14;
1979
- $[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__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", justify, gap: space, children: [
1889
+ }, $[47] = padding, $[48] = paddingBottom, $[49] = paddingLeft, $[50] = paddingRight, $[51] = paddingTop, $[52] = paddingX, $[53] = paddingY, $[54] = t19) : t19 = $[54];
1890
+ const boxProps = t19, t20 = !!(loading || disabled), t21 = selected ? "" : void 0, t22 = !!(loading || disabled);
1891
+ let t23;
1892
+ $[55] !== loading ? (t23 = !!loading && /* @__PURE__ */ jsxRuntime.jsx(LoadingBox, { children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}) }), $[55] = loading, $[56] = t23) : t23 = $[56];
1893
+ let t24;
1894
+ $[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__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", justify, gap: space, children: [
1980
1895
  IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
1981
1896
  react.isValidElement(IconComponent) && IconComponent,
1982
1897
  ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
@@ -1986,15 +1901,15 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
1986
1901
  react.isValidElement(IconRightComponent) && IconRightComponent,
1987
1902
  ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
1988
1903
  ] })
1989
- ] }) }), $[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];
1990
- let t15;
1991
- $[49] !== boxProps || $[50] !== children ? (t15 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children }), $[49] = boxProps, $[50] = children, $[51] = t15) : t15 = $[51];
1992
- let t16;
1993
- 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__ */ jsxRuntime.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: [
1994
- t13,
1995
- t14,
1996
- t15
1997
- ] }), $[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;
1904
+ ] }) }), $[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];
1905
+ let t25;
1906
+ $[69] !== boxProps || $[70] !== children ? (t25 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children }), $[69] = boxProps, $[70] = children, $[71] = t25) : t25 = $[71];
1907
+ let t26;
1908
+ 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__ */ jsxRuntime.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: [
1909
+ t23,
1910
+ t24,
1911
+ t25
1912
+ ] }), $[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;
1998
1913
  });
1999
1914
  Button.displayName = "ForwardRef(Button)";
2000
1915
  function cardStyle(props) {
@@ -2149,7 +2064,7 @@ const StyledCard = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
2149
2064
  displayName: "StyledCard",
2150
2065
  componentId: "sc-osnro2-0"
2151
2066
  })(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = react.forwardRef(function(props, ref) {
2152
- const $ = reactCompilerRuntime.c(42);
2067
+ const $ = reactCompilerRuntime.c(56);
2153
2068
  let asProp, border2, borderBottom2, borderLeft2, borderRight2, borderTop2, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
2154
2069
  $[0] !== props ? ({
2155
2070
  __unstable_checkered: t0,
@@ -2169,13 +2084,209 @@ const StyledCard = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
2169
2084
  tone: t3,
2170
2085
  ...restProps
2171
2086
  } = 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]);
2172
- 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 = ReactIs.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;
2087
+ 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 = ReactIs.isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme;
2088
+ let t6;
2089
+ $[17] !== border2 ? (t6 = _getArrayProp(border2), $[17] = border2, $[18] = t6) : t6 = $[18];
2090
+ let t7;
2091
+ $[19] !== borderTop2 ? (t7 = _getArrayProp(borderTop2), $[19] = borderTop2, $[20] = t7) : t7 = $[20];
2092
+ let t8;
2093
+ $[21] !== borderRight2 ? (t8 = _getArrayProp(borderRight2), $[21] = borderRight2, $[22] = t8) : t8 = $[22];
2094
+ let t9;
2095
+ $[23] !== borderBottom2 ? (t9 = _getArrayProp(borderBottom2), $[23] = borderBottom2, $[24] = t9) : t9 = $[24];
2096
+ let t10;
2097
+ $[25] !== borderLeft2 ? (t10 = _getArrayProp(borderLeft2), $[25] = borderLeft2, $[26] = t10) : t10 = $[26];
2098
+ let t11;
2099
+ $[27] !== radius ? (t11 = _getArrayProp(radius), $[27] = radius, $[28] = t11) : t11 = $[28];
2100
+ let t12;
2101
+ $[29] !== shadow ? (t12 = _getArrayProp(shadow), $[29] = shadow, $[30] = t12) : t12 = $[30];
2102
+ const t13 = checkered ? "" : void 0, t14 = pressed ? "" : void 0, t15 = selected ? "" : void 0;
2173
2103
  let t16;
2174
- $[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__ */ jsxRuntime.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];
2104
+ $[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__ */ jsxRuntime.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];
2175
2105
  let t17;
2176
- return $[38] !== scheme || $[39] !== t16 || $[40] !== tone ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[38] = scheme, $[39] = t16, $[40] = tone, $[41] = t17) : t17 = $[41], t17;
2106
+ return $[52] !== scheme || $[53] !== t16 || $[54] !== tone ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[52] = scheme, $[53] = t16, $[54] = tone, $[55] = t17) : t17 = $[55], t17;
2177
2107
  });
2178
2108
  Card.displayName = "ForwardRef(Card)";
2109
+ function useClickOutsideEvent(listener, t0, boundaryElement) {
2110
+ const $ = reactCompilerRuntime.c(9), elementsArg = t0 === void 0 ? _temp$8 : t0;
2111
+ let t1;
2112
+ $[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
2113
+ if (!listener)
2114
+ return;
2115
+ const target = evt.target;
2116
+ if (!(target instanceof Node))
2117
+ return;
2118
+ const resolvedBoundaryElement = boundaryElement?.();
2119
+ if (resolvedBoundaryElement && !resolvedBoundaryElement.contains(target))
2120
+ return;
2121
+ const elements = elementsArg().flat();
2122
+ for (const el of elements)
2123
+ if (el && (target === el || el.contains(target)))
2124
+ return;
2125
+ listener(evt);
2126
+ }, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
2127
+ const onEvent = useEffectEvent.useEffectEvent(t1), hasListener = !!listener;
2128
+ let t2;
2129
+ $[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
2130
+ if (!hasListener)
2131
+ return;
2132
+ const handleEvent = (evt_0) => onEvent(evt_0);
2133
+ return document.addEventListener("mousedown", handleEvent), () => {
2134
+ document.removeEventListener("mousedown", handleEvent);
2135
+ };
2136
+ }, $[4] = hasListener, $[5] = onEvent, $[6] = t2) : t2 = $[6];
2137
+ let t3;
2138
+ $[7] !== hasListener ? (t3 = [hasListener], $[7] = hasListener, $[8] = t3) : t3 = $[8], react.useEffect(t2, t3), react.useDebugValue(listener ? "MouseDown On" : "MouseDown Off");
2139
+ }
2140
+ function _temp$8() {
2141
+ return EMPTY_ARRAY;
2142
+ }
2143
+ function useCustomValidity(ref, customValidity) {
2144
+ const $ = reactCompilerRuntime.c(4);
2145
+ let t0, t1;
2146
+ $[0] !== customValidity || $[1] !== ref ? (t0 = () => {
2147
+ ref.current?.setCustomValidity(customValidity || "");
2148
+ }, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), react.useEffect(t0, t1);
2149
+ }
2150
+ const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : resizeObserver.ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
2151
+ function _createElementRectValueListener() {
2152
+ return {
2153
+ subscribe(element, subscriber) {
2154
+ const resizeObserver2 = new _ResizeObserver(([entry]) => {
2155
+ subscriber({
2156
+ _contentRect: entry.contentRect,
2157
+ border: {
2158
+ width: entry.borderBoxSize[0].inlineSize,
2159
+ height: entry.borderBoxSize[0].blockSize
2160
+ },
2161
+ content: {
2162
+ width: entry.contentRect.width,
2163
+ height: entry.contentRect.height
2164
+ }
2165
+ });
2166
+ });
2167
+ return resizeObserver2.observe(element), () => {
2168
+ resizeObserver2.unobserve(element), resizeObserver2.disconnect();
2169
+ };
2170
+ }
2171
+ };
2172
+ }
2173
+ function _createElementSizeObserver() {
2174
+ const disposeCache = /* @__PURE__ */ new WeakMap(), subscribersCache = /* @__PURE__ */ new WeakMap();
2175
+ return {
2176
+ subscribe(element, subscriber) {
2177
+ const subscribers = subscribersCache.get(element) || [];
2178
+ let dispose = disposeCache.get(element);
2179
+ return subscribersCache.has(element) || (subscribersCache.set(element, subscribers), dispose = _createElementRectValueListener().subscribe(element, (elementRect) => {
2180
+ for (const sub of subscribers)
2181
+ sub(elementRect);
2182
+ })), subscribers.push(subscriber), () => {
2183
+ const idx = subscribers.indexOf(subscriber);
2184
+ idx > -1 && subscribers.splice(idx, 1), subscribers.length === 0 && dispose && dispose();
2185
+ };
2186
+ }
2187
+ };
2188
+ }
2189
+ function useElementSize(element) {
2190
+ const $ = reactCompilerRuntime.c(3), [size2, setSize] = react.useState(null);
2191
+ let t0, t1;
2192
+ return $[0] !== element ? (t0 = () => {
2193
+ if (element)
2194
+ return _elementSizeObserver.subscribe(element, setSize);
2195
+ }, t1 = [element], $[0] = element, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), react.useEffect(t0, t1), size2;
2196
+ }
2197
+ function useGlobalKeyDown(onKeyDown) {
2198
+ const $ = reactCompilerRuntime.c(5);
2199
+ let t0;
2200
+ $[0] !== onKeyDown ? (t0 = (event) => onKeyDown(event), $[0] = onKeyDown, $[1] = t0) : t0 = $[1];
2201
+ const handleKeyDown = useEffectEvent.useEffectEvent(t0);
2202
+ let t1;
2203
+ $[2] !== handleKeyDown ? (t1 = () => {
2204
+ const handler = (event_0) => handleKeyDown(event_0);
2205
+ return window.addEventListener("keydown", handler), () => window.removeEventListener("keydown", handler);
2206
+ }, $[2] = handleKeyDown, $[3] = t1) : t1 = $[3];
2207
+ let t2;
2208
+ $[4] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[4] = t2) : t2 = $[4], react.useEffect(t1, t2);
2209
+ }
2210
+ function useMatchMedia(mediaQueryString, getServerSnapshot2) {
2211
+ const $ = reactCompilerRuntime.c(4);
2212
+ react.useDebugValue(mediaQueryString);
2213
+ let t0;
2214
+ $[0] !== mediaQueryString ? (t0 = (onStoreChange) => {
2215
+ const media = window.matchMedia(mediaQueryString);
2216
+ return media.addEventListener("change", onStoreChange), () => media.removeEventListener("change", onStoreChange);
2217
+ }, $[0] = mediaQueryString, $[1] = t0) : t0 = $[1];
2218
+ let t1;
2219
+ return $[2] !== mediaQueryString ? (t1 = () => window.matchMedia(mediaQueryString).matches, $[2] = mediaQueryString, $[3] = t1) : t1 = $[3], react.useSyncExternalStore(t0, t1, getServerSnapshot2);
2220
+ }
2221
+ function _getMediaQuery(media, index) {
2222
+ 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)`;
2223
+ }
2224
+ function _createMediaStore(media) {
2225
+ const mediaLen = media.length;
2226
+ let sizes;
2227
+ const getSizes = () => {
2228
+ if (!sizes) {
2229
+ sizes = [];
2230
+ for (let index = mediaLen; index > -1; index -= 1) {
2231
+ const mediaQuery = _getMediaQuery(media, index);
2232
+ sizes.push({
2233
+ index,
2234
+ mq: window.matchMedia(mediaQuery)
2235
+ });
2236
+ }
2237
+ }
2238
+ return sizes;
2239
+ };
2240
+ return {
2241
+ getSnapshot: () => {
2242
+ for (const {
2243
+ index,
2244
+ mq
2245
+ } of getSizes())
2246
+ if (mq.matches) return index;
2247
+ return 0;
2248
+ },
2249
+ subscribe: (onStoreChange) => {
2250
+ const disposeFns = [];
2251
+ for (const {
2252
+ mq
2253
+ } of getSizes()) {
2254
+ const handleChange = () => {
2255
+ mq.matches && onStoreChange();
2256
+ };
2257
+ mq.addEventListener("change", handleChange), disposeFns.push(() => mq.removeEventListener("change", handleChange));
2258
+ }
2259
+ return () => {
2260
+ for (const disposeFn of disposeFns)
2261
+ disposeFn();
2262
+ };
2263
+ }
2264
+ };
2265
+ }
2266
+ function getServerSnapshot() {
2267
+ return 0;
2268
+ }
2269
+ function useMediaIndex() {
2270
+ const $ = reactCompilerRuntime.c(2), {
2271
+ media
2272
+ } = useTheme_v2();
2273
+ let t0;
2274
+ $[0] !== media ? (t0 = _createMediaStore(media), $[0] = media, $[1] = t0) : t0 = $[1];
2275
+ const store = t0;
2276
+ return react.useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
2277
+ }
2278
+ function usePrefersDark(t0) {
2279
+ return useMatchMedia("(prefers-color-scheme: dark)", t0 === void 0 ? _temp$7 : t0);
2280
+ }
2281
+ function _temp$7() {
2282
+ return !1;
2283
+ }
2284
+ function usePrefersReducedMotion(t0) {
2285
+ return useMatchMedia("(prefers-reduced-motion: reduce)", t0 === void 0 ? _temp$6 : t0);
2286
+ }
2287
+ function _temp$6() {
2288
+ return !1;
2289
+ }
2179
2290
  function checkboxBaseStyles() {
2180
2291
  return styledComponents.css`
2181
2292
  position: relative;
@@ -2509,7 +2620,7 @@ const LazyRefractor = react.lazy(() => Promise.resolve().then(function() {
2509
2620
  displayName: "StyledCode",
2510
2621
  componentId: "sc-4dymyn-0"
2511
2622
  })(codeBaseStyle, responsiveCodeFontStyle), Code = react.forwardRef(function(props, ref) {
2512
- const $ = reactCompilerRuntime.c(20);
2623
+ const $ = reactCompilerRuntime.c(22);
2513
2624
  let children, language, restProps, t0, weight;
2514
2625
  $[0] !== props ? ({
2515
2626
  children,
@@ -2518,15 +2629,17 @@ const LazyRefractor = react.lazy(() => Promise.resolve().then(function() {
2518
2629
  weight,
2519
2630
  ...restProps
2520
2631
  } = props, $[0] = props, $[1] = children, $[2] = language, $[3] = restProps, $[4] = t0, $[5] = weight) : (children = $[1], language = $[2], restProps = $[3], t0 = $[4], weight = $[5]);
2521
- const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
2632
+ const size2 = t0 === void 0 ? 2 : t0;
2633
+ let t1;
2634
+ $[6] !== size2 ? (t1 = _getArrayProp(size2), $[6] = size2, $[7] = t1) : t1 = $[7];
2522
2635
  let t2;
2523
- $[6] !== children ? (t2 = /* @__PURE__ */ jsxRuntime.jsx("code", { children }), $[6] = children, $[7] = t2) : t2 = $[7];
2636
+ $[8] !== children ? (t2 = /* @__PURE__ */ jsxRuntime.jsx("code", { children }), $[8] = children, $[9] = t2) : t2 = $[9];
2524
2637
  let t3;
2525
- $[8] !== children || $[9] !== language ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(LazyRefractor, { language, value: children }), $[8] = children, $[9] = language, $[10] = t3) : t3 = $[10];
2638
+ $[10] !== children || $[11] !== language ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(LazyRefractor, { language, value: children }), $[10] = children, $[11] = language, $[12] = t3) : t3 = $[12];
2526
2639
  let t4;
2527
- $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: t2, children: t3 }), $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13];
2640
+ $[13] !== t2 || $[14] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: t2, children: t3 }), $[13] = t2, $[14] = t3, $[15] = t4) : t4 = $[15];
2528
2641
  let t5;
2529
- return $[14] !== ref || $[15] !== restProps || $[16] !== t1 || $[17] !== t4 || $[18] !== weight ? (t5 = /* @__PURE__ */ jsxRuntime.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;
2642
+ return $[16] !== ref || $[17] !== restProps || $[18] !== t1 || $[19] !== t4 || $[20] !== weight ? (t5 = /* @__PURE__ */ jsxRuntime.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;
2530
2643
  });
2531
2644
  Code.displayName = "ForwardRef(Code)";
2532
2645
  const BASE_STYLE$1 = {
@@ -2549,23 +2662,25 @@ const StyledContainer = /* @__PURE__ */ styledComponents.styled(Box).withConfig(
2549
2662
  displayName: "StyledContainer",
2550
2663
  componentId: "sc-wyroop-0"
2551
2664
  })(containerBaseStyle, responsiveContainerWidthStyle), Container = react.forwardRef(function(props, ref) {
2552
- const $ = reactCompilerRuntime.c(9);
2665
+ const $ = reactCompilerRuntime.c(11);
2553
2666
  let as, restProps, t0;
2554
2667
  $[0] !== props ? ({
2555
2668
  as,
2556
2669
  width: t0,
2557
2670
  ...restProps
2558
2671
  } = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0) : (as = $[1], restProps = $[2], t0 = $[3]);
2559
- const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
2672
+ const width = t0 === void 0 ? 2 : t0;
2673
+ let t1;
2674
+ $[4] !== width ? (t1 = _getArrayProp(width), $[4] = width, $[5] = t1) : t1 = $[5];
2560
2675
  let t2;
2561
- return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(StyledContainer, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[4] = as, $[5] = ref, $[6] = restProps, $[7] = t1, $[8] = t2) : t2 = $[8], t2;
2676
+ return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(StyledContainer, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[6] = as, $[7] = ref, $[8] = restProps, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
2562
2677
  });
2563
2678
  Container.displayName = "ForwardRef(Container)";
2564
2679
  const StyledGrid = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
2565
2680
  displayName: "StyledGrid",
2566
2681
  componentId: "sc-v8t8oz-0"
2567
2682
  })(responsiveGridStyle), Grid = react.forwardRef(function(props, ref) {
2568
- const $ = reactCompilerRuntime.c(26);
2683
+ const $ = reactCompilerRuntime.c(42);
2569
2684
  let as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, restProps, rows;
2570
2685
  $[0] !== props ? ({
2571
2686
  as,
@@ -2580,9 +2695,25 @@ const StyledGrid = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
2580
2695
  children,
2581
2696
  ...restProps
2582
2697
  } = 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]);
2583
- 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);
2698
+ const t0 = typeof as == "string" ? as : void 0;
2699
+ let t1;
2700
+ $[12] !== autoRows ? (t1 = _getArrayProp(autoRows), $[12] = autoRows, $[13] = t1) : t1 = $[13];
2701
+ let t2;
2702
+ $[14] !== autoCols ? (t2 = _getArrayProp(autoCols), $[14] = autoCols, $[15] = t2) : t2 = $[15];
2703
+ let t3;
2704
+ $[16] !== autoFlow ? (t3 = _getArrayProp(autoFlow), $[16] = autoFlow, $[17] = t3) : t3 = $[17];
2705
+ let t4;
2706
+ $[18] !== columns ? (t4 = _getArrayProp(columns), $[18] = columns, $[19] = t4) : t4 = $[19];
2707
+ let t5;
2708
+ $[20] !== gap ? (t5 = _getArrayProp(gap), $[20] = gap, $[21] = t5) : t5 = $[21];
2709
+ let t6;
2710
+ $[22] !== gapX ? (t6 = _getArrayProp(gapX), $[22] = gapX, $[23] = t6) : t6 = $[23];
2711
+ let t7;
2712
+ $[24] !== gapY ? (t7 = _getArrayProp(gapY), $[24] = gapY, $[25] = t7) : t7 = $[25];
2713
+ let t8;
2714
+ $[26] !== rows ? (t8 = _getArrayProp(rows), $[26] = rows, $[27] = t8) : t8 = $[27];
2584
2715
  let t9;
2585
- 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__ */ jsxRuntime.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;
2716
+ 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__ */ jsxRuntime.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;
2586
2717
  });
2587
2718
  Grid.displayName = "ForwardRef(Grid)";
2588
2719
  function headingBaseStyle(props) {
@@ -2648,7 +2779,7 @@ const StyledHeading = /* @__PURE__ */ styledComponents.styled.div.withConfig({
2648
2779
  displayName: "StyledHeading",
2649
2780
  componentId: "sc-137lwim-0"
2650
2781
  })(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), Heading = react.forwardRef(function(props, ref) {
2651
- const $ = reactCompilerRuntime.c(22);
2782
+ const $ = reactCompilerRuntime.c(26);
2652
2783
  let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
2653
2784
  $[0] !== props ? ({
2654
2785
  accent: t0,
@@ -2666,11 +2797,14 @@ const StyledHeading = /* @__PURE__ */ styledComponents.styled.div.withConfig({
2666
2797
  let t32;
2667
2798
  $[9] !== children ? (t32 = /* @__PURE__ */ jsxRuntime.jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t32) : t32 = $[10], children = t32;
2668
2799
  }
2669
- const t3 = useArrayProp(align), t4 = useArrayProp(size2);
2800
+ let t3;
2801
+ $[11] !== align ? (t3 = _getArrayProp(align), $[11] = align, $[12] = t3) : t3 = $[12];
2802
+ let t4;
2803
+ $[13] !== size2 ? (t4 = _getArrayProp(size2), $[13] = size2, $[14] = t4) : t4 = $[14];
2670
2804
  let t5;
2671
- $[11] !== children ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
2805
+ $[15] !== children ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("span", { children }), $[15] = children, $[16] = t5) : t5 = $[16];
2672
2806
  let t6;
2673
- return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.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;
2807
+ return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.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;
2674
2808
  });
2675
2809
  Heading.displayName = "ForwardRef(Heading)";
2676
2810
  function inlineBaseStyle() {
@@ -2704,7 +2838,7 @@ const StyledInline = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
2704
2838
  displayName: "StyledInline",
2705
2839
  componentId: "sc-1pkiy6j-0"
2706
2840
  })(inlineBaseStyle, inlineSpaceStyle), Inline = react.forwardRef(function(props, ref) {
2707
- const $ = reactCompilerRuntime.c(13);
2841
+ const $ = reactCompilerRuntime.c(15);
2708
2842
  let as, childrenProp, restProps, space;
2709
2843
  $[0] !== props ? ({
2710
2844
  as,
@@ -2714,9 +2848,12 @@ const StyledInline = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
2714
2848
  } = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = restProps, $[4] = space) : (as = $[1], childrenProp = $[2], restProps = $[3], space = $[4]);
2715
2849
  let t0;
2716
2850
  $[5] !== childrenProp ? (t0 = react.Children.map(childrenProp, _temp$5), $[5] = childrenProp, $[6] = t0) : t0 = $[6];
2717
- const children = t0, t1 = useArrayProp(space), t2 = ref;
2851
+ const children = t0;
2852
+ let t1;
2853
+ $[7] !== space ? (t1 = _getArrayProp(space), $[7] = space, $[8] = t1) : t1 = $[8];
2854
+ const t2 = ref;
2718
2855
  let t3;
2719
- return $[7] !== as || $[8] !== children || $[9] !== restProps || $[10] !== t1 || $[11] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.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;
2856
+ return $[9] !== as || $[10] !== children || $[11] !== restProps || $[12] !== t1 || $[13] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.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;
2720
2857
  });
2721
2858
  Inline.displayName = "ForwardRef(Inline)";
2722
2859
  function _temp$5(child) {
@@ -2743,7 +2880,7 @@ const StyledKBD = /* @__PURE__ */ styledComponents.styled.kbd.withConfig({
2743
2880
  displayName: "StyledKBD",
2744
2881
  componentId: "sc-1w7yd8w-0"
2745
2882
  })(responsiveRadiusStyle, kbdStyle), KBD = react.forwardRef(function(props, ref) {
2746
- const $ = reactCompilerRuntime.c(17);
2883
+ const $ = reactCompilerRuntime.c(19);
2747
2884
  let children, restProps, t0, t1, t2;
2748
2885
  $[0] !== props ? ({
2749
2886
  children,
@@ -2752,13 +2889,15 @@ const StyledKBD = /* @__PURE__ */ styledComponents.styled.kbd.withConfig({
2752
2889
  radius: t2,
2753
2890
  ...restProps
2754
2891
  } = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2) : (children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5]);
2755
- const fontSize2 = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, t3 = useArrayProp(t2 === void 0 ? 2 : t2);
2892
+ const fontSize2 = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? 2 : t2;
2893
+ let t3;
2894
+ $[6] !== radius ? (t3 = _getArrayProp(radius), $[6] = radius, $[7] = t3) : t3 = $[7];
2756
2895
  let t4;
2757
- $[6] !== children || $[7] !== fontSize2 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[6] = children, $[7] = fontSize2, $[8] = t4) : t4 = $[8];
2896
+ $[8] !== children || $[9] !== fontSize2 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[8] = children, $[9] = fontSize2, $[10] = t4) : t4 = $[10];
2758
2897
  let t5;
2759
- $[9] !== padding || $[10] !== t4 ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", padding, children: t4 }), $[9] = padding, $[10] = t4, $[11] = t5) : t5 = $[11];
2898
+ $[11] !== padding || $[12] !== t4 ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", padding, children: t4 }), $[11] = padding, $[12] = t4, $[13] = t5) : t5 = $[13];
2760
2899
  let t6;
2761
- return $[12] !== ref || $[13] !== restProps || $[14] !== t3 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledKBD, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[12] = ref, $[13] = restProps, $[14] = t3, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
2900
+ return $[14] !== ref || $[15] !== restProps || $[16] !== t3 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledKBD, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[14] = ref, $[15] = restProps, $[16] = t3, $[17] = t5, $[18] = t6) : t6 = $[18], t6;
2762
2901
  });
2763
2902
  KBD.displayName = "ForwardRef(KBD)";
2764
2903
  const origin = {
@@ -3021,18 +3160,21 @@ function getLayerContext(contextValue) {
3021
3160
  }
3022
3161
  const LayerContext = createGlobalScopedContext("@sanity/ui/context/layer", null);
3023
3162
  function LayerProvider(props) {
3024
- const $ = reactCompilerRuntime.c(19), {
3163
+ const $ = reactCompilerRuntime.c(21), {
3025
3164
  children,
3026
3165
  zOffset: t0
3027
3166
  } = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = react.useContext(LayerContext);
3028
3167
  let t1;
3029
3168
  $[0] !== parentContextValue ? (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1) : t1 = $[1];
3030
- 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];
3169
+ const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1;
3031
3170
  let t2;
3032
- $[2] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {}, $[2] = t2) : t2 = $[2];
3033
- const [, setChildLayers] = react.useState(t2), [size2, setSize] = react.useState(0), isTopLayer = size2 === 0;
3171
+ $[2] !== zOffsetProp ? (t2 = _getArrayProp(zOffsetProp), $[2] = zOffsetProp, $[3] = t2) : t2 = $[3];
3172
+ const zOffset = t2, maxMediaIndex = zOffset.length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + zOffset[mediaIndex] : zOffset[mediaIndex];
3034
3173
  let t3;
3035
- $[3] !== parentRegisterChild || $[4] !== setChildLayers ? (t3 = (childLevel) => {
3174
+ $[4] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {}, $[4] = t3) : t3 = $[4];
3175
+ const [, setChildLayers] = react.useState(t3), [size2, setSize] = react.useState(0), isTopLayer = size2 === 0;
3176
+ let t4;
3177
+ $[5] !== parentRegisterChild || $[6] !== setChildLayers ? (t4 = (childLevel) => {
3036
3178
  const parentDispose = parentRegisterChild?.(childLevel);
3037
3179
  return childLevel !== void 0 ? setChildLayers((state) => {
3038
3180
  const prevLen = state[childLevel] ?? 0, nextState = {
@@ -3048,22 +3190,22 @@ function LayerProvider(props) {
3048
3190
  return nextState_0[childLevel] === 1 ? (delete nextState_0[childLevel], setSize(Object.keys(nextState_0).length)) : nextState_0[childLevel] = nextState_0[childLevel] - 1, nextState_0;
3049
3191
  }) : setSize(_temp2$2), parentDispose?.();
3050
3192
  };
3051
- }, $[3] = parentRegisterChild, $[4] = setChildLayers, $[5] = t3) : t3 = $[5];
3052
- const registerChild = t3;
3053
- let t4, t5;
3054
- $[6] !== level || $[7] !== parentRegisterChild ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = level, $[7] = parentRegisterChild, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), react.useEffect(t4, t5);
3055
- let t6;
3056
- $[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t6 = {
3193
+ }, $[5] = parentRegisterChild, $[6] = setChildLayers, $[7] = t4) : t4 = $[7];
3194
+ const registerChild = t4;
3195
+ let t5, t6;
3196
+ $[8] !== level || $[9] !== parentRegisterChild ? (t5 = () => parentRegisterChild?.(level), t6 = [level, parentRegisterChild], $[8] = level, $[9] = parentRegisterChild, $[10] = t5, $[11] = t6) : (t5 = $[10], t6 = $[11]), react.useEffect(t5, t6);
3197
+ let t7;
3198
+ $[12] !== isTopLayer || $[13] !== level || $[14] !== registerChild || $[15] !== size2 || $[16] !== zIndex ? (t7 = {
3057
3199
  version: 0,
3058
3200
  isTopLayer,
3059
3201
  level,
3060
3202
  registerChild,
3061
3203
  size: size2,
3062
3204
  zIndex
3063
- }, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t6) : t6 = $[15];
3064
- const value = t6;
3065
- let t7;
3066
- return $[16] !== children || $[17] !== value ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t7) : t7 = $[18], t7;
3205
+ }, $[12] = isTopLayer, $[13] = level, $[14] = registerChild, $[15] = size2, $[16] = zIndex, $[17] = t7) : t7 = $[17];
3206
+ const value = t7;
3207
+ let t8;
3208
+ return $[18] !== children || $[19] !== value ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(LayerContext.Provider, { value, children }), $[18] = children, $[19] = value, $[20] = t8) : t8 = $[20], t8;
3067
3209
  }
3068
3210
  function _temp2$2(v_0) {
3069
3211
  return v_0 - 1;
@@ -3213,26 +3355,42 @@ const StyledVirtualList = styledComponents.styled.div.withConfig({
3213
3355
  displayName: "ItemWrapper",
3214
3356
  componentId: "sc-dlqsj4-1"
3215
3357
  })`position:absolute;left:0;right:0;`, VirtualList = react.forwardRef(function(props, forwardedRef) {
3216
- const {
3217
- as = "div",
3218
- gap = 0,
3358
+ const $ = reactCompilerRuntime.c(44);
3359
+ let getItemKey, onChange, renderItem, restProps, t0, t1, t2;
3360
+ $[0] !== props ? ({
3361
+ as: t0,
3362
+ gap: t1,
3219
3363
  getItemKey,
3220
- items = [],
3364
+ items: t2,
3221
3365
  onChange,
3222
3366
  renderItem,
3223
3367
  ...restProps
3224
- } = props, {
3368
+ } = props, $[0] = props, $[1] = getItemKey, $[2] = onChange, $[3] = renderItem, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = t2) : (getItemKey = $[1], onChange = $[2], renderItem = $[3], restProps = $[4], t0 = $[5], t1 = $[6], t2 = $[7]);
3369
+ const as = t0 === void 0 ? "div" : t0, gap = t1 === void 0 ? 0 : t1;
3370
+ let t3;
3371
+ $[8] !== t2 ? (t3 = t2 === void 0 ? [] : t2, $[8] = t2, $[9] = t3) : t3 = $[9];
3372
+ const items = t3, {
3225
3373
  space
3226
3374
  } = useTheme_v2(), ref = react.useRef(null), wrapperRef = react.useRef(null), [scrollTop, setScrollTop] = react.useState(0), [scrollHeight, setScrollHeight] = react.useState(0), [itemHeight, setItemHeight] = react.useState(-1);
3227
- react.useImperativeHandle(forwardedRef, () => ref.current), react.useEffect(() => {
3228
- if (!wrapperRef.current) return;
3375
+ let t4;
3376
+ $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], react.useImperativeHandle(forwardedRef, t4);
3377
+ let t5;
3378
+ $[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
3379
+ if (!wrapperRef.current)
3380
+ return;
3229
3381
  const firstElement = wrapperRef.current.firstChild;
3230
3382
  firstElement instanceof HTMLElement && setItemHeight(firstElement.offsetHeight);
3231
- }, [renderItem]), react.useEffect(() => {
3232
- if (!ref.current) return;
3383
+ }, $[11] = t5) : t5 = $[11];
3384
+ let t6;
3385
+ $[12] !== renderItem ? (t6 = [renderItem], $[12] = renderItem, $[13] = t6) : t6 = $[13], react.useEffect(t5, t6);
3386
+ let t7, t8;
3387
+ $[14] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => {
3388
+ if (!ref.current)
3389
+ return;
3233
3390
  const scrollEl = findScrollable(ref.current.parentNode);
3234
3391
  if (scrollEl) {
3235
- if (!(scrollEl instanceof HTMLElement)) return;
3392
+ if (!(scrollEl instanceof HTMLElement))
3393
+ return;
3236
3394
  const handleScroll = () => {
3237
3395
  setScrollTop(scrollEl.scrollTop);
3238
3396
  };
@@ -3256,9 +3414,10 @@ const StyledVirtualList = styledComponents.styled.div.withConfig({
3256
3414
  }), window.addEventListener("resize", handleResize), setScrollHeight(window.innerHeight), handleScroll_0(), () => {
3257
3415
  window.removeEventListener("scroll", handleScroll_0), window.removeEventListener("resize", handleResize);
3258
3416
  };
3259
- }, []);
3417
+ }, t8 = [], $[14] = t7, $[15] = t8) : (t7 = $[14], t8 = $[15]), react.useEffect(t7, t8);
3260
3418
  const len = items.length, height = itemHeight ? len * (itemHeight + space[gap]) - space[gap] : 0, fromIndex = height ? Math.max(Math.floor(scrollTop / height * len) - 2, 0) : 0, toIndex = height ? Math.ceil((scrollTop + scrollHeight) / height * len) + 1 : 0;
3261
- react.useEffect(() => {
3419
+ let t10, t9;
3420
+ $[16] !== fromIndex || $[17] !== gap || $[18] !== itemHeight || $[19] !== onChange || $[20] !== scrollHeight || $[21] !== scrollTop || $[22] !== space || $[23] !== toIndex ? (t9 = () => {
3262
3421
  onChange && onChange({
3263
3422
  fromIndex,
3264
3423
  gap: space[gap],
@@ -3267,18 +3426,61 @@ const StyledVirtualList = styledComponents.styled.div.withConfig({
3267
3426
  scrollTop,
3268
3427
  toIndex
3269
3428
  });
3270
- }, [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex]);
3271
- const children = react.useMemo(() => !renderItem || items.length === 0 ? null : itemHeight === -1 ? [/* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { children: renderItem(items[0]) }, 0)] : items.slice(fromIndex, toIndex).map((item, _itemIndex) => {
3272
- const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
3273
- return /* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { style: {
3274
- top: itemIndex * (itemHeight + space[gap])
3275
- }, children: node }, key2);
3276
- }), [fromIndex, gap, getItemKey, itemHeight, items, renderItem, space, toIndex]), wrapperStyle = react.useMemo(() => ({
3429
+ }, t10 = [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex], $[16] = fromIndex, $[17] = gap, $[18] = itemHeight, $[19] = onChange, $[20] = scrollHeight, $[21] = scrollTop, $[22] = space, $[23] = toIndex, $[24] = t10, $[25] = t9) : (t10 = $[24], t9 = $[25]), react.useEffect(t9, t10);
3430
+ let t11;
3431
+ $[26] !== fromIndex || $[27] !== gap || $[28] !== getItemKey || $[29] !== itemHeight || $[30] !== items || $[31] !== renderItem || $[32] !== space || $[33] !== toIndex ? (t11 = {
3432
+ fromIndex,
3433
+ gap,
3434
+ itemHeight,
3435
+ space,
3436
+ toIndex,
3437
+ getItemKey,
3438
+ items,
3439
+ renderItem
3440
+ }, $[26] = fromIndex, $[27] = gap, $[28] = getItemKey, $[29] = itemHeight, $[30] = items, $[31] = renderItem, $[32] = space, $[33] = toIndex, $[34] = t11) : t11 = $[34];
3441
+ const children = useChildren(t11);
3442
+ let t12;
3443
+ $[35] !== height ? (t12 = {
3277
3444
  height
3278
- }), [height]);
3279
- return /* @__PURE__ */ jsxRuntime.jsx(StyledVirtualList, { as, "data-ui": "VirtualList", ...restProps, ref, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: wrapperRef, style: wrapperStyle, children }) });
3445
+ }, $[35] = height, $[36] = t12) : t12 = $[36];
3446
+ let t13;
3447
+ $[37] !== children || $[38] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: wrapperRef, style: t12, children }), $[37] = children, $[38] = t12, $[39] = t13) : t13 = $[39];
3448
+ let t14;
3449
+ return $[40] !== as || $[41] !== restProps || $[42] !== t13 ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(StyledVirtualList, { as, "data-ui": "VirtualList", ...restProps, ref, children: t13 }), $[40] = as, $[41] = restProps, $[42] = t13, $[43] = t14) : t14 = $[43], t14;
3280
3450
  });
3281
3451
  VirtualList.displayName = "ForwardRef(VirtualList)";
3452
+ function useChildren(t0) {
3453
+ const $ = reactCompilerRuntime.c(21), {
3454
+ fromIndex,
3455
+ gap,
3456
+ getItemKey,
3457
+ itemHeight,
3458
+ items,
3459
+ renderItem,
3460
+ space,
3461
+ toIndex
3462
+ } = t0;
3463
+ if (!renderItem || items.length === 0)
3464
+ return null;
3465
+ if (itemHeight === -1) {
3466
+ let t12;
3467
+ $[0] !== items[0] || $[1] !== renderItem ? (t12 = renderItem(items[0]), $[0] = items[0], $[1] = renderItem, $[2] = t12) : t12 = $[2];
3468
+ let t2;
3469
+ return $[3] !== t12 ? (t2 = [/* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { children: t12 }, 0)], $[3] = t12, $[4] = t2) : t2 = $[4], t2;
3470
+ }
3471
+ let t1;
3472
+ if ($[5] !== fromIndex || $[6] !== gap || $[7] !== getItemKey || $[8] !== itemHeight || $[9] !== items || $[10] !== renderItem || $[11] !== space || $[12] !== toIndex) {
3473
+ let t2;
3474
+ $[14] !== fromIndex || $[15] !== gap || $[16] !== getItemKey || $[17] !== itemHeight || $[18] !== renderItem || $[19] !== space ? (t2 = (item, _itemIndex) => {
3475
+ const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
3476
+ return /* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { style: {
3477
+ top: itemIndex * (itemHeight + space[gap])
3478
+ }, children: node }, key2);
3479
+ }, $[14] = fromIndex, $[15] = gap, $[16] = getItemKey, $[17] = itemHeight, $[18] = renderItem, $[19] = space, $[20] = t2) : t2 = $[20], t1 = items.slice(fromIndex, toIndex).map(t2), $[5] = fromIndex, $[6] = gap, $[7] = getItemKey, $[8] = itemHeight, $[9] = items, $[10] = renderItem, $[11] = space, $[12] = toIndex, $[13] = t1;
3480
+ } else
3481
+ t1 = $[13];
3482
+ return t1;
3483
+ }
3282
3484
  function findScrollable(parentNode) {
3283
3485
  let _scrollEl = parentNode;
3284
3486
  for (; _scrollEl && !_isScrollable(_scrollEl); )
@@ -3305,9 +3507,14 @@ const DEFAULT_POPOVER_DISTANCE = 4, DEFAULT_POPOVER_PADDING = 4, DEFAULT_POPOVER
3305
3507
  };
3306
3508
  function size(options) {
3307
3509
  const {
3308
- apply,
3510
+ constrainSize,
3309
3511
  margins,
3310
- padding = 0
3512
+ matchReferenceWidth,
3513
+ maxWidthRef,
3514
+ padding = 0,
3515
+ referenceWidthRef,
3516
+ setReferenceWidth,
3517
+ widthRef
3311
3518
  } = options;
3312
3519
  return {
3313
3520
  name: "@sanity/ui/size",
@@ -3329,12 +3536,9 @@ function size(options) {
3329
3536
  });
3330
3537
  let maxWidth = 1 / 0, maxHeight = 1 / 0;
3331
3538
  const floatingW = floating.width, floatingH = floating.height;
3332
- placement.includes("top") && (maxWidth = floatingW - (overflow.left + overflow.right), maxHeight = floatingH - overflow.top), placement.includes("right") && (maxWidth = floatingW - overflow.right, maxHeight = floatingH - (overflow.top + overflow.bottom)), placement.includes("bottom") && (maxWidth = floatingW - (overflow.left + overflow.right), maxHeight = floatingH - overflow.bottom), placement.includes("left") && (maxWidth = floatingW - overflow.left, maxHeight = floatingH - (overflow.top + overflow.bottom)), apply({
3333
- availableWidth: maxWidth - margins[1] - margins[3],
3334
- availableHeight: maxHeight - margins[0] - margins[2],
3335
- elements,
3336
- referenceWidth: reference.width - margins[1] - margins[3]
3337
- });
3539
+ placement.includes("top") && (maxWidth = floatingW - (overflow.left + overflow.right), maxHeight = floatingH - overflow.top), placement.includes("right") && (maxWidth = floatingW - overflow.right, maxHeight = floatingH - (overflow.top + overflow.bottom)), placement.includes("bottom") && (maxWidth = floatingW - (overflow.left + overflow.right), maxHeight = floatingH - overflow.bottom), placement.includes("left") && (maxWidth = floatingW - overflow.left, maxHeight = floatingH - (overflow.top + overflow.bottom));
3540
+ const availableWidth = maxWidth - margins[1] - margins[3], availableHeight = maxHeight - margins[0] - margins[2], referenceWidth = reference.width - margins[1] - margins[3];
3541
+ referenceWidthRef.current = referenceWidth, setReferenceWidth(referenceWidth), matchReferenceWidth ? elements.floating.style.width = `${referenceWidth}px` : widthRef.current !== void 0 && (elements.floating.style.width = `${widthRef.current}px`), constrainSize && (elements.floating.style.maxWidth = `${Math.min(availableWidth, maxWidthRef.current ?? 1 / 0)}px`, elements.floating.style.maxHeight = `${availableHeight}px`);
3338
3542
  const nextDimensions = await platform.getDimensions(elements.floating), targetH = nextDimensions.height, targetW = nextDimensions.width;
3339
3543
  return floatingW !== targetW || floatingH !== targetH ? {
3340
3544
  reset: {
@@ -3366,7 +3570,7 @@ const MotionCard$1 = styledComponents.styled(framerMotion.motion.create(Card)).w
3366
3570
  })`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`, MotionFlex = styledComponents.styled(framerMotion.motion.create(Flex)).withConfig({
3367
3571
  displayName: "MotionFlex",
3368
3572
  componentId: "sc-ihg31s-1"
3369
- })`will-change:opacity;`, PopoverCard = react.memo(react.forwardRef(function(props, ref) {
3573
+ })`will-change:opacity;`, PopoverCard = react.forwardRef(function(props, ref) {
3370
3574
  const $ = reactCompilerRuntime.c(66);
3371
3575
  let animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
3372
3576
  $[0] !== props ? ({
@@ -3434,8 +3638,8 @@ const MotionCard$1 = styledComponents.styled(framerMotion.motion.create(Card)).w
3434
3638
  t10,
3435
3639
  t11
3436
3640
  ] }), $[52] = placement, $[53] = radius, $[54] = ref, $[55] = rootStyle2, $[56] = scheme, $[57] = shadow, $[58] = t10, $[59] = t11, $[60] = t5, $[61] = t6, $[62] = t7, $[63] = t8, $[64] = tone, $[65] = t12) : t12 = $[65], t12;
3437
- }));
3438
- PopoverCard.displayName = "Memo(ForwardRef(PopoverCard))";
3641
+ });
3642
+ PopoverCard.displayName = "ForwardRef(PopoverCard)";
3439
3643
  const ViewportOverlay = () => {
3440
3644
  const $ = reactCompilerRuntime.c(2), {
3441
3645
  zIndex
@@ -3448,104 +3652,125 @@ const ViewportOverlay = () => {
3448
3652
  width: "100vw",
3449
3653
  zIndex
3450
3654
  } }), $[0] = zIndex, $[1] = t0) : t0 = $[1], t0;
3451
- }, Popover = react.memo(react.forwardRef(function(props, forwardedRef) {
3452
- const {
3655
+ }, Popover = react.forwardRef(function(props, forwardedRef) {
3656
+ const $ = reactCompilerRuntime.c(126), {
3453
3657
  container,
3454
3658
  layer
3455
- } = useTheme_v2(), boundaryElementContext = useBoundaryElement(), {
3456
- __unstable_margins: margins = DEFAULT_POPOVER_MARGINS,
3457
- animate: _animate = !1,
3458
- arrow: arrowProp = !1,
3459
- boundaryElement = boundaryElementContext.element,
3460
- children: childProp,
3461
- constrainSize = !1,
3462
- content,
3463
- disabled,
3464
- fallbackPlacements = props.fallbackPlacements ?? DEFAULT_FALLBACK_PLACEMENTS$1[props.placement ?? "bottom"],
3465
- matchReferenceWidth,
3466
- floatingBoundary = props.boundaryElement ?? boundaryElementContext.element,
3467
- modal,
3468
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
3469
- onActivate,
3470
- open,
3471
- overflow = "hidden",
3472
- padding: paddingProp,
3473
- placement: placementProp = "bottom",
3474
- placementStrategy = "flip",
3475
- portal,
3476
- preventOverflow = !0,
3477
- radius: radiusProp = 3,
3478
- referenceBoundary = props.boundaryElement ?? boundaryElementContext.element,
3479
- referenceElement,
3480
- scheme,
3481
- shadow: shadowProp = 3,
3482
- tone = "inherit",
3483
- width: widthProp = "auto",
3484
- zOffset: zOffsetProp = layer.popover.zOffset,
3485
- updateRef,
3486
- ...restProps
3487
- } = props, animate = usePrefersReducedMotion() ? !1 : _animate, boundarySize = useElementSize(boundaryElement)?.border, padding = useArrayProp(paddingProp), radius = useArrayProp(radiusProp), shadow = useArrayProp(shadowProp), widthArrayProp = useArrayProp(widthProp), zOffset = useArrayProp(zOffsetProp), ref = react.useRef(null), arrowRef = react.useRef(null), rootBoundary = "viewport";
3488
- react.useImperativeHandle(forwardedRef, () => ref.current);
3659
+ } = useTheme_v2(), boundaryElementContext = useBoundaryElement();
3660
+ let _boundaryElement, _fallbackPlacements, _floatingBoundary, _referenceBoundary, _zOffsetProp, childProp, content, disabled, matchReferenceWidth, modal, open, paddingProp, portal, referenceElement, restProps, scheme, t0, t1, t10, t11, t2, t3, t4, t5, t6, t7, t8, t9, updateRef;
3661
+ if ($[0] !== props) {
3662
+ const {
3663
+ __unstable_margins: t122,
3664
+ animate: t132,
3665
+ arrow: t142,
3666
+ boundaryElement: t152,
3667
+ children: t162,
3668
+ constrainSize: t172,
3669
+ content: t182,
3670
+ disabled: t192,
3671
+ fallbackPlacements: t202,
3672
+ matchReferenceWidth: t212,
3673
+ floatingBoundary: t222,
3674
+ modal: t232,
3675
+ onActivate,
3676
+ open: t242,
3677
+ overflow: t252,
3678
+ padding: t262,
3679
+ placement: t272,
3680
+ placementStrategy: t282,
3681
+ portal: t292,
3682
+ preventOverflow: t302,
3683
+ radius: t312,
3684
+ referenceBoundary: t322,
3685
+ referenceElement: t332,
3686
+ scheme: t342,
3687
+ shadow: t352,
3688
+ tone: t362,
3689
+ width: t372,
3690
+ zOffset: t382,
3691
+ updateRef: t392,
3692
+ ...t402
3693
+ } = props;
3694
+ 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;
3695
+ } else
3696
+ _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];
3697
+ 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;
3698
+ let t12;
3699
+ $[30] !== paddingProp ? (t12 = _getArrayProp(paddingProp), $[30] = paddingProp, $[31] = t12) : t12 = $[31];
3700
+ const padding = t12;
3701
+ let t13;
3702
+ $[32] !== radiusProp ? (t13 = _getArrayProp(radiusProp), $[32] = radiusProp, $[33] = t13) : t13 = $[33];
3703
+ const radius = t13;
3704
+ let t14;
3705
+ $[34] !== shadowProp ? (t14 = _getArrayProp(shadowProp), $[34] = shadowProp, $[35] = t14) : t14 = $[35];
3706
+ const shadow = t14, widthArrayProp = _getArrayProp(widthProp);
3707
+ let t15;
3708
+ $[36] !== zOffsetProp ? (t15 = _getArrayProp(zOffsetProp), $[36] = zOffsetProp, $[37] = t15) : t15 = $[37];
3709
+ const zOffset = t15, ref = react.useRef(null), arrowRef = react.useRef(null);
3710
+ let t16;
3711
+ $[38] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => ref.current, $[38] = t16) : t16 = $[38], react.useImperativeHandle(forwardedRef, t16);
3489
3712
  const mediaIndex = useMediaIndex(), boundaryWidth = constrainSize || preventOverflow ? boundarySize?.width : void 0, width = calcCurrentWidth({
3490
3713
  container,
3491
3714
  mediaIndex,
3492
3715
  width: widthArrayProp
3493
3716
  }), widthRef = react.useRef(width);
3494
- react.useEffect(() => {
3717
+ let t17, t18;
3718
+ $[39] !== width ? (t17 = () => {
3495
3719
  widthRef.current = width;
3496
- }, [width]);
3497
- const maxWidth = calcMaxWidth({
3720
+ }, t18 = [width], $[39] = width, $[40] = t17, $[41] = t18) : (t17 = $[40], t18 = $[41]), react.useEffect(t17, t18);
3721
+ let t19;
3722
+ $[42] !== boundaryWidth || $[43] !== width ? (t19 = calcMaxWidth({
3498
3723
  boundaryWidth,
3499
3724
  currentWidth: width
3500
- }), maxWidthRef = react.useRef(maxWidth);
3501
- react.useEffect(() => {
3725
+ }), $[42] = boundaryWidth, $[43] = width, $[44] = t19) : t19 = $[44];
3726
+ const maxWidth = t19, maxWidthRef = react.useRef(maxWidth);
3727
+ let t20, t21;
3728
+ $[45] !== maxWidth ? (t20 = () => {
3502
3729
  maxWidthRef.current = maxWidth;
3503
- }, [maxWidth]);
3730
+ }, t21 = [maxWidth], $[45] = maxWidth, $[46] = t20, $[47] = t21) : (t20 = $[46], t21 = $[47]), react.useEffect(t20, t21);
3504
3731
  const referenceWidthRef = react.useRef(void 0);
3505
- react.useEffect(() => {
3732
+ let t22, t23;
3733
+ $[48] !== matchReferenceWidth || $[49] !== maxWidth || $[50] !== open || $[51] !== width ? (t22 = () => {
3506
3734
  const floatingElement = ref.current;
3507
- if (!open || !floatingElement) return;
3735
+ if (!open || !floatingElement)
3736
+ return;
3508
3737
  const referenceWidth = referenceWidthRef.current;
3509
3738
  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`);
3510
- }, [width, matchReferenceWidth, maxWidth, open]);
3511
- const middleware = react.useMemo(() => {
3512
- const ret = [];
3513
- return (constrainSize || preventOverflow) && (placementStrategy === "autoPlacement" ? ret.push(reactDom$1.autoPlacement({
3514
- allowedPlacements: [placementProp].concat(fallbackPlacements)
3515
- })) : ret.push(reactDom$1.flip({
3516
- boundary: floatingBoundary || void 0,
3517
- fallbackPlacements,
3518
- padding: DEFAULT_POPOVER_PADDING,
3519
- rootBoundary
3520
- }))), ret.push(reactDom$1.offset({
3521
- mainAxis: DEFAULT_POPOVER_DISTANCE
3522
- })), (constrainSize || matchReferenceWidth) && ret.push(size({
3523
- apply({
3524
- availableWidth,
3525
- availableHeight,
3526
- elements,
3527
- referenceWidth: referenceWidth_0
3528
- }) {
3529
- referenceWidthRef.current = referenceWidth_0;
3530
- const _currentWidth = widthRef.current, _maxWidth = maxWidthRef.current;
3531
- matchReferenceWidth ? elements.floating.style.width = `${referenceWidth_0}px` : _currentWidth !== void 0 && (elements.floating.style.width = `${_currentWidth}px`), constrainSize && (elements.floating.style.maxWidth = `${Math.min(availableWidth, _maxWidth ?? 1 / 0)}px`, elements.floating.style.maxHeight = `${availableHeight}px`);
3532
- },
3533
- boundaryElement: floatingBoundary || void 0,
3534
- margins,
3535
- padding: DEFAULT_POPOVER_PADDING
3536
- })), preventOverflow && ret.push(reactDom$1.shift({
3537
- boundary: floatingBoundary || void 0,
3538
- rootBoundary,
3539
- padding: DEFAULT_POPOVER_PADDING
3540
- })), arrowProp && ret.push(reactDom$1.arrow({
3541
- element: arrowRef,
3542
- padding: DEFAULT_POPOVER_PADDING
3543
- })), animate && ret.push(origin), ret.push(reactDom$1.hide({
3544
- boundary: referenceBoundary || void 0,
3545
- padding: DEFAULT_POPOVER_PADDING,
3546
- strategy: "referenceHidden"
3547
- })), ret;
3548
- }, [animate, arrowProp, constrainSize, fallbackPlacements, placementProp, placementStrategy, floatingBoundary, margins, matchReferenceWidth, preventOverflow, referenceBoundary]), {
3739
+ }, t23 = [width, matchReferenceWidth, maxWidth, open], $[48] = matchReferenceWidth, $[49] = maxWidth, $[50] = open, $[51] = width, $[52] = t22, $[53] = t23) : (t22 = $[52], t23 = $[53]), react.useEffect(t22, t23);
3740
+ const [referenceWidth_0, setReferenceWidth] = react.useState(void 0);
3741
+ let t24;
3742
+ $[54] !== animate || $[55] !== arrowProp || $[56] !== constrainSize || $[57] !== fallbackPlacements || $[58] !== floatingBoundary || $[59] !== margins || $[60] !== matchReferenceWidth || $[61] !== placementProp || $[62] !== placementStrategy || $[63] !== preventOverflow || $[64] !== referenceBoundary ? (t24 = {
3743
+ animate,
3744
+ arrowProp,
3745
+ arrowRef,
3746
+ constrainSize,
3747
+ fallbackPlacements,
3748
+ floatingBoundary,
3749
+ margins,
3750
+ matchReferenceWidth,
3751
+ maxWidthRef,
3752
+ placementProp,
3753
+ placementStrategy,
3754
+ preventOverflow,
3755
+ referenceBoundary,
3756
+ referenceWidthRef,
3757
+ rootBoundary: "viewport",
3758
+ setReferenceWidth,
3759
+ widthRef
3760
+ }, $[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];
3761
+ const middleware = useMiddleware$1(t24);
3762
+ let t25;
3763
+ $[66] !== referenceElement ? (t25 = referenceElement ? {
3764
+ reference: referenceElement
3765
+ } : void 0, $[66] = referenceElement, $[67] = t25) : t25 = $[67];
3766
+ let t26;
3767
+ $[68] !== middleware || $[69] !== placementProp || $[70] !== t25 ? (t26 = {
3768
+ middleware,
3769
+ placement: placementProp,
3770
+ whileElementsMounted: reactDom$1.autoUpdate,
3771
+ elements: t25
3772
+ }, $[68] = middleware, $[69] = placementProp, $[70] = t25, $[71] = t26) : t26 = $[71];
3773
+ const {
3549
3774
  x,
3550
3775
  y,
3551
3776
  middlewareData,
@@ -3553,38 +3778,149 @@ const ViewportOverlay = () => {
3553
3778
  refs,
3554
3779
  strategy,
3555
3780
  update
3556
- } = reactDom$1.useFloating({
3557
- middleware,
3558
- placement: placementProp,
3559
- whileElementsMounted: reactDom$1.autoUpdate,
3560
- elements: referenceElement ? {
3561
- reference: referenceElement
3562
- } : void 0
3563
- }), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, setArrow = react.useCallback((arrowEl) => {
3781
+ } = reactDom$1.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;
3782
+ let t27;
3783
+ $[72] === Symbol.for("react.memo_cache_sentinel") ? (t27 = (arrowEl) => {
3564
3784
  arrowRef.current = arrowEl;
3565
- }, []), setFloating = react.useCallback((node) => {
3785
+ }, $[72] = t27) : t27 = $[72];
3786
+ const setArrow = t27;
3787
+ let t28;
3788
+ $[73] !== refs ? (t28 = (node) => {
3566
3789
  ref.current = node, refs.setFloating(node);
3567
- }, [refs]), setReference = react.useCallback((node_0) => {
3568
- refs.setReference(node_0);
3569
- const childRef = getElementRef(childProp);
3570
- typeof childRef == "function" ? childRef(node_0) : childRef && (childRef.current = node_0);
3571
- }, [childProp, refs]), child = react.useMemo(() => referenceElement ? childProp : childProp ? react.cloneElement(childProp, {
3572
- ref: setReference
3573
- }) : null, [childProp, referenceElement, setReference]);
3574
- if (react.useEffect(() => {
3575
- updateRef && (typeof updateRef == "function" ? updateRef(update) : updateRef && (updateRef.current = update));
3576
- }, [update, updateRef]), disabled)
3577
- return childProp || /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
3578
- const popover = /* @__PURE__ */ jsxRuntime.jsxs(LayerProvider, { zOffset, children: [
3579
- modal && /* @__PURE__ */ jsxRuntime.jsx(ViewportOverlay, {}),
3580
- /* @__PURE__ */ jsxRuntime.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: matchReferenceWidth ? referenceWidthRef.current : width, x, y, children: content })
3581
- ] }), children = open && (portal ? /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: popover }) : popover);
3582
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3583
- animate ? /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children }) : children,
3790
+ }, $[73] = refs, $[74] = t28) : t28 = $[74];
3791
+ const setFloating = t28;
3792
+ let t29;
3793
+ $[75] !== childProp ? (t29 = childProp ? getElementRef(childProp) : null, $[75] = childProp, $[76] = t29) : t29 = $[76];
3794
+ let t30;
3795
+ $[77] !== refs.reference.current ? (t30 = () => refs.reference.current, $[77] = refs.reference.current, $[78] = t30) : t30 = $[78], react.useImperativeHandle(t29, t30);
3796
+ let t31;
3797
+ bb0: {
3798
+ if (referenceElement) {
3799
+ t31 = childProp;
3800
+ break bb0;
3801
+ }
3802
+ if (!childProp) {
3803
+ t31 = null;
3804
+ break bb0;
3805
+ }
3806
+ let t322;
3807
+ $[79] !== childProp || $[80] !== refs.setReference ? (t322 = react.cloneElement(childProp, {
3808
+ ref: refs.setReference
3809
+ }), $[79] = childProp, $[80] = refs.setReference, $[81] = t322) : t322 = $[81], t31 = t322;
3810
+ }
3811
+ const child = t31;
3812
+ let t32, t33;
3813
+ if ($[82] !== update ? (t32 = () => update, t33 = [update], $[82] = update, $[83] = t32, $[84] = t33) : (t32 = $[83], t33 = $[84]), react.useImperativeHandle(updateRef, t32, t33), disabled) {
3814
+ let t342;
3815
+ return $[85] !== childProp ? (t342 = childProp || /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}), $[85] = childProp, $[86] = t342) : t342 = $[86], t342;
3816
+ }
3817
+ let t34;
3818
+ $[87] !== modal ? (t34 = modal && /* @__PURE__ */ jsxRuntime.jsx(ViewportOverlay, {}), $[87] = modal, $[88] = t34) : t34 = $[88];
3819
+ const t35 = matchReferenceWidth ? referenceWidth_0 : width;
3820
+ let t36;
3821
+ $[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__ */ jsxRuntime.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];
3822
+ let t37;
3823
+ $[112] !== t34 || $[113] !== t36 || $[114] !== zOffset ? (t37 = /* @__PURE__ */ jsxRuntime.jsxs(LayerProvider, { zOffset, children: [
3824
+ t34,
3825
+ t36
3826
+ ] }), $[112] = t34, $[113] = t36, $[114] = zOffset, $[115] = t37) : t37 = $[115];
3827
+ const popover = t37;
3828
+ let t38;
3829
+ $[116] !== open || $[117] !== popover || $[118] !== portal ? (t38 = open && (portal ? /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: popover }) : popover), $[116] = open, $[117] = popover, $[118] = portal, $[119] = t38) : t38 = $[119];
3830
+ const children = t38;
3831
+ let t39;
3832
+ $[120] !== animate || $[121] !== children ? (t39 = animate ? /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children }) : children, $[120] = animate, $[121] = children, $[122] = t39) : t39 = $[122];
3833
+ let t40;
3834
+ return $[123] !== child || $[124] !== t39 ? (t40 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3835
+ t39,
3584
3836
  child
3585
- ] });
3586
- }));
3587
- Popover.displayName = "Memo(ForwardRef(Popover))";
3837
+ ] }), $[123] = child, $[124] = t39, $[125] = t40) : t40 = $[125], t40;
3838
+ });
3839
+ Popover.displayName = "ForwardRef(Popover)";
3840
+ function useMiddleware$1(t0) {
3841
+ const $ = reactCompilerRuntime.c(42), {
3842
+ animate,
3843
+ arrowProp,
3844
+ arrowRef,
3845
+ constrainSize,
3846
+ fallbackPlacements,
3847
+ floatingBoundary,
3848
+ margins,
3849
+ matchReferenceWidth,
3850
+ maxWidthRef,
3851
+ placementProp,
3852
+ placementStrategy,
3853
+ preventOverflow,
3854
+ referenceBoundary,
3855
+ referenceWidthRef,
3856
+ rootBoundary,
3857
+ setReferenceWidth,
3858
+ widthRef
3859
+ } = t0;
3860
+ let ret;
3861
+ if ($[0] !== animate || $[1] !== arrowProp || $[2] !== arrowRef || $[3] !== constrainSize || $[4] !== fallbackPlacements || $[5] !== floatingBoundary || $[6] !== margins || $[7] !== matchReferenceWidth || $[8] !== maxWidthRef || $[9] !== placementProp || $[10] !== placementStrategy || $[11] !== preventOverflow || $[12] !== referenceBoundary || $[13] !== referenceWidthRef || $[14] !== rootBoundary || $[15] !== setReferenceWidth || $[16] !== widthRef) {
3862
+ if (ret = [], constrainSize || preventOverflow)
3863
+ if (placementStrategy === "autoPlacement") {
3864
+ let t12;
3865
+ $[18] !== fallbackPlacements || $[19] !== placementProp ? (t12 = reactDom$1.autoPlacement({
3866
+ allowedPlacements: [placementProp].concat(fallbackPlacements)
3867
+ }), $[18] = fallbackPlacements, $[19] = placementProp, $[20] = t12) : t12 = $[20], ret.push(t12);
3868
+ } else {
3869
+ const t12 = floatingBoundary || void 0;
3870
+ let t22;
3871
+ $[21] !== fallbackPlacements || $[22] !== rootBoundary || $[23] !== t12 ? (t22 = reactDom$1.flip({
3872
+ boundary: t12,
3873
+ fallbackPlacements,
3874
+ padding: DEFAULT_POPOVER_PADDING,
3875
+ rootBoundary
3876
+ }), $[21] = fallbackPlacements, $[22] = rootBoundary, $[23] = t12, $[24] = t22) : t22 = $[24], ret.push(t22);
3877
+ }
3878
+ let t1;
3879
+ if ($[25] === Symbol.for("react.memo_cache_sentinel") ? (t1 = reactDom$1.offset({
3880
+ mainAxis: DEFAULT_POPOVER_DISTANCE
3881
+ }), $[25] = t1) : t1 = $[25], ret.push(t1), constrainSize || matchReferenceWidth) {
3882
+ const t22 = floatingBoundary || void 0;
3883
+ let t32;
3884
+ $[26] !== constrainSize || $[27] !== margins || $[28] !== matchReferenceWidth || $[29] !== maxWidthRef || $[30] !== referenceWidthRef || $[31] !== setReferenceWidth || $[32] !== t22 || $[33] !== widthRef ? (t32 = size({
3885
+ boundaryElement: t22,
3886
+ constrainSize,
3887
+ margins,
3888
+ matchReferenceWidth,
3889
+ maxWidthRef,
3890
+ padding: DEFAULT_POPOVER_PADDING,
3891
+ referenceWidthRef,
3892
+ setReferenceWidth,
3893
+ widthRef
3894
+ }), $[26] = constrainSize, $[27] = margins, $[28] = matchReferenceWidth, $[29] = maxWidthRef, $[30] = referenceWidthRef, $[31] = setReferenceWidth, $[32] = t22, $[33] = widthRef, $[34] = t32) : t32 = $[34], ret.push(t32);
3895
+ }
3896
+ if (preventOverflow) {
3897
+ const t22 = floatingBoundary || void 0;
3898
+ let t32;
3899
+ $[35] !== rootBoundary || $[36] !== t22 ? (t32 = reactDom$1.shift({
3900
+ boundary: t22,
3901
+ rootBoundary,
3902
+ padding: DEFAULT_POPOVER_PADDING
3903
+ }), $[35] = rootBoundary, $[36] = t22, $[37] = t32) : t32 = $[37], ret.push(t32);
3904
+ }
3905
+ if (arrowProp) {
3906
+ let t22;
3907
+ $[38] !== arrowRef ? (t22 = reactDom$1.arrow({
3908
+ element: arrowRef,
3909
+ padding: DEFAULT_POPOVER_PADDING
3910
+ }), $[38] = arrowRef, $[39] = t22) : t22 = $[39], ret.push(t22);
3911
+ }
3912
+ animate && ret.push(origin);
3913
+ const t2 = referenceBoundary || void 0;
3914
+ let t3;
3915
+ $[40] !== t2 ? (t3 = reactDom$1.hide({
3916
+ boundary: t2,
3917
+ padding: DEFAULT_POPOVER_PADDING,
3918
+ strategy: "referenceHidden"
3919
+ }), $[40] = t2, $[41] = t3) : t3 = $[41], ret.push(t3), $[0] = animate, $[1] = arrowProp, $[2] = arrowRef, $[3] = constrainSize, $[4] = fallbackPlacements, $[5] = floatingBoundary, $[6] = margins, $[7] = matchReferenceWidth, $[8] = maxWidthRef, $[9] = placementProp, $[10] = placementStrategy, $[11] = preventOverflow, $[12] = referenceBoundary, $[13] = referenceWidthRef, $[14] = rootBoundary, $[15] = setReferenceWidth, $[16] = widthRef, $[17] = ret;
3920
+ } else
3921
+ ret = $[17];
3922
+ return ret;
3923
+ }
3588
3924
  function radioBaseStyle() {
3589
3925
  return styledComponents.css`
3590
3926
  position: relative;
@@ -3883,7 +4219,7 @@ const selectStyle = {
3883
4219
  displayName: "IconBox",
3884
4220
  componentId: "sc-5mxno7-2"
3885
4221
  })(selectStyle.iconBox), Select = react.forwardRef(function(props, forwardedRef) {
3886
- const $ = reactCompilerRuntime.c(29);
4222
+ const $ = reactCompilerRuntime.c(37);
3887
4223
  let children, customValidity, disabled, readOnly, restProps, t0, t1, t2, t3;
3888
4224
  $[0] !== props ? ({
3889
4225
  children,
@@ -3899,20 +4235,29 @@ const selectStyle = {
3899
4235
  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 = react.useRef(null);
3900
4236
  let t4;
3901
4237
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], react.useImperativeHandle(forwardedRef, t4), useCustomValidity(ref, customValidity);
3902
- const t5 = !disabled && readOnly ? "" : void 0, t6 = useArrayProp(fontSize2), t7 = useArrayProp(padding), t8 = useArrayProp(radius), t9 = useArrayProp(space), t10 = disabled || readOnly;
4238
+ const t5 = !disabled && readOnly ? "" : void 0;
4239
+ let t6;
4240
+ $[11] !== fontSize2 ? (t6 = _getArrayProp(fontSize2), $[11] = fontSize2, $[12] = t6) : t6 = $[12];
4241
+ let t7;
4242
+ $[13] !== padding ? (t7 = _getArrayProp(padding), $[13] = padding, $[14] = t7) : t7 = $[14];
4243
+ let t8;
4244
+ $[15] !== radius ? (t8 = _getArrayProp(radius), $[15] = radius, $[16] = t8) : t8 = $[16];
4245
+ let t9;
4246
+ $[17] !== space ? (t9 = _getArrayProp(space), $[17] = space, $[18] = t9) : t9 = $[18];
4247
+ const t10 = disabled || readOnly;
3903
4248
  let t11;
3904
- $[11] !== children || $[12] !== restProps || $[13] !== t10 || $[14] !== t5 || $[15] !== t6 || $[16] !== t7 || $[17] !== t8 || $[18] !== t9 ? (t11 = /* @__PURE__ */ jsxRuntime.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];
4249
+ $[19] !== children || $[20] !== restProps || $[21] !== t10 || $[22] !== t5 || $[23] !== t6 || $[24] !== t7 || $[25] !== t8 || $[26] !== t9 ? (t11 = /* @__PURE__ */ jsxRuntime.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];
3905
4250
  let t12;
3906
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronDownIcon, {}), $[20] = t12) : t12 = $[20];
4251
+ $[28] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronDownIcon, {}), $[28] = t12) : t12 = $[28];
3907
4252
  let t13;
3908
- $[21] !== fontSize2 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children: t12 }), $[21] = fontSize2, $[22] = t13) : t13 = $[22];
4253
+ $[29] !== fontSize2 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children: t12 }), $[29] = fontSize2, $[30] = t13) : t13 = $[30];
3909
4254
  let t14;
3910
- $[23] !== padding || $[24] !== t13 ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(IconBox, { padding, children: t13 }), $[23] = padding, $[24] = t13, $[25] = t14) : t14 = $[25];
4255
+ $[31] !== padding || $[32] !== t13 ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(IconBox, { padding, children: t13 }), $[31] = padding, $[32] = t13, $[33] = t14) : t14 = $[33];
3911
4256
  let t15;
3912
- return $[26] !== t11 || $[27] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsxs(StyledSelect, { "data-ui": "Select", children: [
4257
+ return $[34] !== t11 || $[35] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsxs(StyledSelect, { "data-ui": "Select", children: [
3913
4258
  t11,
3914
4259
  t14
3915
- ] }), $[26] = t11, $[27] = t14, $[28] = t15) : t15 = $[28], t15;
4260
+ ] }), $[34] = t11, $[35] = t14, $[36] = t15) : t15 = $[36], t15;
3916
4261
  });
3917
4262
  Select.displayName = "ForwardRef(Select)";
3918
4263
  const BASE_STYLE = {
@@ -3941,16 +4286,18 @@ const StyledStack = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
3941
4286
  displayName: "StyledStack",
3942
4287
  componentId: "sc-8dpfq2-0"
3943
4288
  })(stackBaseStyle, responsiveStackSpaceStyle), Stack = react.forwardRef(function(props, ref) {
3944
- const $ = reactCompilerRuntime.c(10);
4289
+ const $ = reactCompilerRuntime.c(12);
3945
4290
  let as, restProps, space;
3946
4291
  $[0] !== props ? ({
3947
4292
  as,
3948
4293
  space,
3949
4294
  ...restProps
3950
4295
  } = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = space) : (as = $[1], restProps = $[2], space = $[3]);
3951
- const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(space);
4296
+ const t0 = typeof as == "string" ? as : void 0;
4297
+ let t1;
4298
+ $[4] !== space ? (t1 = _getArrayProp(space), $[4] = space, $[5] = t1) : t1 = $[5];
3952
4299
  let t2;
3953
- return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t0 || $[8] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.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;
4300
+ return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t0 || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.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;
3954
4301
  });
3955
4302
  Stack.displayName = "ForwardRef(Stack)";
3956
4303
  function switchBaseStyles() {
@@ -4170,7 +4517,7 @@ const StyledTextArea = /* @__PURE__ */ styledComponents.styled.span.withConfig({
4170
4517
  displayName: "Presentation",
4171
4518
  componentId: "sc-1d6h1o8-3"
4172
4519
  })(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = react.forwardRef(function(props, forwardedRef) {
4173
- const $ = reactCompilerRuntime.c(29);
4520
+ const $ = reactCompilerRuntime.c(35);
4174
4521
  let __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
4175
4522
  $[0] !== props ? ({
4176
4523
  border: t0,
@@ -4186,17 +4533,26 @@ const StyledTextArea = /* @__PURE__ */ styledComponents.styled.span.withConfig({
4186
4533
  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 = react.useRef(null), rootTheme = useRootTheme();
4187
4534
  let t5;
4188
4535
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], react.useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
4189
- const t6 = rootTheme.scheme, t7 = rootTheme.tone, t8 = useArrayProp(fontSize2), t9 = useArrayProp(padding), t10 = rootTheme.scheme, t11 = useArrayProp(0);
4536
+ const t6 = rootTheme.scheme, t7 = rootTheme.tone;
4537
+ let t8;
4538
+ $[11] !== fontSize2 ? (t8 = _getArrayProp(fontSize2), $[11] = fontSize2, $[12] = t8) : t8 = $[12];
4539
+ let t9;
4540
+ $[13] !== padding ? (t9 = _getArrayProp(padding), $[13] = padding, $[14] = t9) : t9 = $[14];
4541
+ const t10 = rootTheme.scheme;
4542
+ let t11;
4543
+ $[15] === Symbol.for("react.memo_cache_sentinel") ? (t11 = _getArrayProp(0), $[15] = t11) : t11 = $[15];
4190
4544
  let t12;
4191
- $[11] !== disabled || $[12] !== restProps || $[13] !== rootTheme.scheme || $[14] !== rootTheme.tone || $[15] !== t11 || $[16] !== t8 || $[17] !== t9 || $[18] !== weight ? (t12 = /* @__PURE__ */ jsxRuntime.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];
4192
- const t13 = useArrayProp(radius), t14 = border2 ? "" : void 0;
4545
+ $[16] !== disabled || $[17] !== restProps || $[18] !== rootTheme.scheme || $[19] !== rootTheme.tone || $[20] !== t8 || $[21] !== t9 || $[22] !== weight ? (t12 = /* @__PURE__ */ jsxRuntime.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];
4546
+ let t13;
4547
+ $[24] !== radius ? (t13 = _getArrayProp(radius), $[24] = radius, $[25] = t13) : t13 = $[25];
4548
+ const t14 = border2 ? "" : void 0;
4193
4549
  let t15;
4194
- $[20] !== __unstable_disableFocusRing || $[21] !== rootTheme.scheme || $[22] !== rootTheme.tone || $[23] !== t13 || $[24] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.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];
4550
+ $[26] !== __unstable_disableFocusRing || $[27] !== rootTheme.scheme || $[28] !== rootTheme.tone || $[29] !== t13 || $[30] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.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];
4195
4551
  let t16;
4196
- return $[26] !== t12 || $[27] !== t15 ? (t16 = /* @__PURE__ */ jsxRuntime.jsx(StyledTextArea, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxRuntime.jsxs(InputRoot$1, { children: [
4552
+ return $[32] !== t12 || $[33] !== t15 ? (t16 = /* @__PURE__ */ jsxRuntime.jsx(StyledTextArea, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxRuntime.jsxs(InputRoot$1, { children: [
4197
4553
  t12,
4198
4554
  t15
4199
- ] }) }), $[26] = t12, $[27] = t15, $[28] = t16) : t16 = $[28], t16;
4555
+ ] }) }), $[32] = t12, $[33] = t15, $[34] = t16) : t16 = $[34], t16;
4200
4556
  });
4201
4557
  TextArea.displayName = "ForwardRef(TextArea)";
4202
4558
  const CLEAR_BUTTON_BOX_STYLE = {
@@ -4242,7 +4598,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
4242
4598
  display: "block"
4243
4599
  }
4244
4600
  }), TextInput = react.forwardRef(function(props, forwardedRef) {
4245
- const $ = reactCompilerRuntime.c(84);
4601
+ const $ = reactCompilerRuntime.c(92);
4246
4602
  let IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
4247
4603
  $[0] !== props ? ({
4248
4604
  __unstable_disableFocusRing,
@@ -4264,60 +4620,72 @@ const CLEAR_BUTTON_BOX_STYLE = {
4264
4620
  weight,
4265
4621
  ...restProps
4266
4622
  } = 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]);
4267
- 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 = react.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;
4623
+ 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 = react.useRef(null), rootTheme = useRootTheme();
4268
4624
  let t7;
4269
- $[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], react.useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
4270
- const handleClearMouseDown = _temp$2;
4625
+ $[19] !== fontSizeProp ? (t7 = _getArrayProp(fontSizeProp), $[19] = fontSizeProp, $[20] = t7) : t7 = $[20];
4626
+ const fontSize2 = t7;
4271
4627
  let t8;
4272
- $[20] !== onClear ? (t8 = (event_0) => {
4273
- event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
4274
- }, $[20] = onClear, $[21] = t8) : t8 = $[21];
4275
- const handleClearClick = t8;
4628
+ $[21] !== paddingProp ? (t8 = _getArrayProp(paddingProp), $[21] = paddingProp, $[22] = t8) : t8 = $[22];
4629
+ const padding = t8;
4276
4630
  let t9;
4277
- $[22] !== prefix || $[23] !== radius ? (t9 = prefix && /* @__PURE__ */ jsxRuntime.jsx(Prefix, { borderTop: !0, borderLeft: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: prefix }) }), $[22] = prefix, $[23] = radius, $[24] = t9) : t9 = $[24];
4278
- const prefixNode = t9, t10 = border2 ? "" : void 0;
4631
+ $[23] !== radiusProp ? (t9 = _getArrayProp(radiusProp), $[23] = radiusProp, $[24] = t9) : t9 = $[24];
4632
+ const radius = t9;
4633
+ let t10;
4634
+ $[25] !== spaceProp ? (t10 = _getArrayProp(spaceProp), $[25] = spaceProp, $[26] = t10) : t10 = $[26];
4635
+ const space = t10, $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix;
4279
4636
  let t11;
4280
- $[25] !== IconComponent || $[26] !== fontSize2 || $[27] !== padding ? (t11 = IconComponent && /* @__PURE__ */ jsxRuntime.jsx(LeftBox, { padding, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
4281
- react.isValidElement(IconComponent) && IconComponent,
4282
- ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
4283
- ] }) }), $[25] = IconComponent, $[26] = fontSize2, $[27] = padding, $[28] = t11) : t11 = $[28];
4637
+ $[27] === Symbol.for("react.memo_cache_sentinel") ? (t11 = () => ref.current, $[27] = t11) : t11 = $[27], react.useImperativeHandle(forwardedRef, t11), useCustomValidity(ref, customValidity);
4638
+ const handleClearMouseDown = _temp$2;
4284
4639
  let t12;
4285
- $[29] !== $hasClearButton || $[30] !== IconRightComponent || $[31] !== fontSize2 || $[32] !== padding ? (t12 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ jsxRuntime.jsx(RightBox, { padding, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
4286
- react.isValidElement(IconRightComponent) && IconRightComponent,
4287
- ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
4288
- ] }) }), $[29] = $hasClearButton, $[30] = IconRightComponent, $[31] = fontSize2, $[32] = padding, $[33] = t12) : t12 = $[33];
4640
+ $[28] !== onClear ? (t12 = (event_0) => {
4641
+ event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
4642
+ }, $[28] = onClear, $[29] = t12) : t12 = $[29];
4643
+ const handleClearClick = t12;
4289
4644
  let t13;
4290
- $[34] !== $hasPrefix || $[35] !== $hasSuffix || $[36] !== __unstable_disableFocusRing || $[37] !== radius || $[38] !== rootTheme.scheme || $[39] !== rootTheme.tone || $[40] !== t10 || $[41] !== t11 || $[42] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.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: [
4291
- t11,
4292
- t12
4293
- ] }), $[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];
4294
- const presentationNode = t13;
4295
- let t14;
4296
- $[44] !== padding ? (t14 = padding.map(_temp2), $[44] = padding, $[45] = t14) : t14 = $[45];
4297
- const clearButtonBoxPadding = t14;
4645
+ $[30] !== prefix || $[31] !== radius ? (t13 = prefix && /* @__PURE__ */ jsxRuntime.jsx(Prefix, { borderTop: !0, borderLeft: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: prefix }) }), $[30] = prefix, $[31] = radius, $[32] = t13) : t13 = $[32];
4646
+ const prefixNode = t13, t14 = border2 ? "" : void 0;
4298
4647
  let t15;
4299
- $[46] !== padding ? (t15 = padding.map(_temp3), $[46] = padding, $[47] = t15) : t15 = $[47];
4300
- const clearButtonPadding = t15, clearButtonProps = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
4648
+ $[33] !== IconComponent || $[34] !== fontSize2 || $[35] !== padding ? (t15 = IconComponent && /* @__PURE__ */ jsxRuntime.jsx(LeftBox, { padding, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
4649
+ react.isValidElement(IconComponent) && IconComponent,
4650
+ ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
4651
+ ] }) }), $[33] = IconComponent, $[34] = fontSize2, $[35] = padding, $[36] = t15) : t15 = $[36];
4301
4652
  let t16;
4302
- $[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__ */ jsxRuntime.jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsxRuntime.jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: icons.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];
4303
- const clearButtonNode = t16;
4653
+ $[37] !== $hasClearButton || $[38] !== IconRightComponent || $[39] !== fontSize2 || $[40] !== padding ? (t16 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ jsxRuntime.jsx(RightBox, { padding, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
4654
+ react.isValidElement(IconRightComponent) && IconRightComponent,
4655
+ ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
4656
+ ] }) }), $[37] = $hasClearButton, $[38] = IconRightComponent, $[39] = fontSize2, $[40] = padding, $[41] = t16) : t16 = $[41];
4304
4657
  let t17;
4305
- $[59] !== radius || $[60] !== suffix ? (t17 = suffix && /* @__PURE__ */ jsxRuntime.jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: suffix }) }), $[59] = radius, $[60] = suffix, $[61] = t17) : t17 = $[61];
4306
- const suffixNode = t17, t18 = $hasIconRight || $hasClearButton;
4658
+ $[42] !== $hasPrefix || $[43] !== $hasSuffix || $[44] !== __unstable_disableFocusRing || $[45] !== radius || $[46] !== rootTheme.scheme || $[47] !== rootTheme.tone || $[48] !== t14 || $[49] !== t15 || $[50] !== t16 ? (t17 = /* @__PURE__ */ jsxRuntime.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: [
4659
+ t15,
4660
+ t16
4661
+ ] }), $[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];
4662
+ const presentationNode = t17;
4663
+ let t18;
4664
+ $[52] !== padding ? (t18 = padding.map(_temp2), $[52] = padding, $[53] = t18) : t18 = $[53];
4665
+ const clearButtonBoxPadding = t18;
4307
4666
  let t19;
4308
- $[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__ */ jsxRuntime.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];
4667
+ $[54] !== padding ? (t19 = padding.map(_temp3), $[54] = padding, $[55] = t19) : t19 = $[55];
4668
+ const clearButtonPadding = t19, clearButtonProps = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
4309
4669
  let t20;
4310
- $[75] !== clearButtonNode || $[76] !== presentationNode || $[77] !== t19 ? (t20 = /* @__PURE__ */ jsxRuntime.jsxs(InputRoot, { children: [
4311
- t19,
4670
+ $[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__ */ jsxRuntime.jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsxRuntime.jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: icons.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];
4671
+ const clearButtonNode = t20;
4672
+ let t21;
4673
+ $[67] !== radius || $[68] !== suffix ? (t21 = suffix && /* @__PURE__ */ jsxRuntime.jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: suffix }) }), $[67] = radius, $[68] = suffix, $[69] = t21) : t21 = $[69];
4674
+ const suffixNode = t21, t22 = $hasIconRight || $hasClearButton;
4675
+ let t23;
4676
+ $[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__ */ jsxRuntime.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];
4677
+ let t24;
4678
+ $[83] !== clearButtonNode || $[84] !== presentationNode || $[85] !== t23 ? (t24 = /* @__PURE__ */ jsxRuntime.jsxs(InputRoot, { children: [
4679
+ t23,
4312
4680
  presentationNode,
4313
4681
  clearButtonNode
4314
- ] }), $[75] = clearButtonNode, $[76] = presentationNode, $[77] = t19, $[78] = t20) : t20 = $[78];
4315
- let t21;
4316
- return $[79] !== prefixNode || $[80] !== rootTheme.tone || $[81] !== suffixNode || $[82] !== t20 ? (t21 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTextInput, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
4682
+ ] }), $[83] = clearButtonNode, $[84] = presentationNode, $[85] = t23, $[86] = t24) : t24 = $[86];
4683
+ let t25;
4684
+ return $[87] !== prefixNode || $[88] !== rootTheme.tone || $[89] !== suffixNode || $[90] !== t24 ? (t25 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTextInput, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
4317
4685
  prefixNode,
4318
- t20,
4686
+ t24,
4319
4687
  suffixNode
4320
- ] }), $[79] = prefixNode, $[80] = rootTheme.tone, $[81] = suffixNode, $[82] = t20, $[83] = t21) : t21 = $[83], t21;
4688
+ ] }), $[87] = prefixNode, $[88] = rootTheme.tone, $[89] = suffixNode, $[90] = t24, $[91] = t25) : t25 = $[91], t25;
4321
4689
  });
4322
4690
  TextInput.displayName = "ForwardRef(TextInput)";
4323
4691
  function _temp$2(event) {
@@ -4360,7 +4728,7 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
4360
4728
  }, MotionCard = styledComponents.styled(framerMotion.motion.create(Card)).withConfig({
4361
4729
  displayName: "MotionCard",
4362
4730
  componentId: "sc-1xn138w-0"
4363
- })`will-change:transform;`, TooltipCard = react.memo(react.forwardRef(function(props, ref) {
4731
+ })`will-change:transform;`, TooltipCard = react.forwardRef(function(props, ref) {
4364
4732
  const $ = reactCompilerRuntime.c(48);
4365
4733
  let animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
4366
4734
  $[0] !== props ? ({
@@ -4410,8 +4778,8 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
4410
4778
  children,
4411
4779
  t9
4412
4780
  ] }), $[34] = children, $[35] = padding, $[36] = placement, $[37] = radius, $[38] = ref, $[39] = rootStyle2, $[40] = scheme, $[41] = shadow, $[42] = t5, $[43] = t6, $[44] = t7, $[45] = t8, $[46] = t9, $[47] = t10) : t10 = $[47], t10;
4413
- }));
4414
- TooltipCard.displayName = "Memo(ForwardRef(TooltipCard))";
4781
+ });
4782
+ TooltipCard.displayName = "ForwardRef(TooltipCard)";
4415
4783
  const TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
4416
4784
  function TooltipDelayGroupProvider(props) {
4417
4785
  const $ = reactCompilerRuntime.c(9), {
@@ -4438,61 +4806,71 @@ const StyledTooltip = styledComponents.styled(Layer).withConfig({
4438
4806
  displayName: "StyledTooltip",
4439
4807
  componentId: "sc-13f2zvh-0"
4440
4808
  })`pointer-events:none;`, Tooltip = react.forwardRef(function(props, forwardedRef) {
4441
- const boundaryElementContext = useBoundaryElement(), {
4809
+ const $ = reactCompilerRuntime.c(137), boundaryElementContext = useBoundaryElement(), {
4442
4810
  layer
4443
- } = useTheme_v2(), {
4444
- animate: _animate = !1,
4445
- arrow: arrowProp = !1,
4446
- boundaryElement = boundaryElementContext?.element,
4811
+ } = useTheme_v2();
4812
+ let _boundaryElement, _fallbackPlacementsProp, _zOffset, childProp, content, delay, disabled, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5;
4813
+ $[0] !== props ? ({
4814
+ animate: t0,
4815
+ arrow: t1,
4816
+ boundaryElement: _boundaryElement,
4447
4817
  children: childProp,
4448
4818
  content,
4449
4819
  disabled,
4450
- fallbackPlacements: fallbackPlacementsProp = props.fallbackPlacements ?? DEFAULT_FALLBACK_PLACEMENTS[props.placement ?? "bottom"],
4451
- padding = 2,
4452
- placement: placementProp = "bottom",
4820
+ fallbackPlacements: _fallbackPlacementsProp,
4821
+ padding: t2,
4822
+ placement: t3,
4453
4823
  portal: portalProp,
4454
- radius = 2,
4824
+ radius: t4,
4455
4825
  scheme,
4456
- shadow = 2,
4457
- zOffset = layer.tooltip.zOffset,
4826
+ shadow: t5,
4827
+ zOffset: _zOffset,
4458
4828
  delay,
4459
4829
  ...restProps
4460
- } = props, animate = usePrefersReducedMotion() ? !1 : _animate, fallbackPlacements = useArrayProp(fallbackPlacementsProp), ref = react.useRef(null), [referenceElement, setReferenceElement] = react.useState(null), arrowRef = react.useRef(null), rootBoundary = "viewport", [tooltipMaxWidth, setTooltipMaxWidth] = react.useState(0);
4461
- react.useImperativeHandle(forwardedRef, () => ref.current);
4462
- const portal = usePortal(), portalElement = typeof portalProp == "string" ? portal.elements?.[portalProp] || null : portal.element, middleware = react.useMemo(() => {
4463
- const ret = [];
4464
- return ret.push(reactDom$1.flip({
4465
- boundary: boundaryElement || void 0,
4466
- fallbackPlacements,
4467
- padding: DEFAULT_TOOLTIP_PADDING,
4468
- rootBoundary
4469
- })), ret.push(reactDom$1.offset({
4470
- mainAxis: DEFAULT_TOOLTIP_DISTANCE
4471
- })), ret.push(reactDom$1.shift({
4472
- boundary: boundaryElement || void 0,
4473
- rootBoundary,
4474
- padding: DEFAULT_TOOLTIP_PADDING
4475
- })), arrowProp && ret.push(reactDom$1.arrow({
4476
- element: arrowRef,
4477
- padding: DEFAULT_TOOLTIP_PADDING
4478
- })), animate && ret.push(origin), ret;
4479
- }, [animate, arrowProp, boundaryElement, fallbackPlacements]), {
4830
+ } = 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]);
4831
+ 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;
4832
+ let t6;
4833
+ $[17] !== fallbackPlacementsProp ? (t6 = _getArrayProp(fallbackPlacementsProp), $[17] = fallbackPlacementsProp, $[18] = t6) : t6 = $[18];
4834
+ const fallbackPlacements = t6, ref = react.useRef(null), [referenceElement, setReferenceElement] = react.useState(null), arrowRef = react.useRef(null), [tooltipMaxWidth, setTooltipMaxWidth] = react.useState(0);
4835
+ let t7;
4836
+ $[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], react.useImperativeHandle(forwardedRef, t7);
4837
+ const portal = usePortal(), portalElement = typeof portalProp == "string" ? portal.elements?.[portalProp] || null : portal.element;
4838
+ let t8;
4839
+ $[20] !== animate || $[21] !== arrowProp || $[22] !== boundaryElement || $[23] !== fallbackPlacements ? (t8 = {
4840
+ animate,
4841
+ arrowProp,
4842
+ arrowRef,
4843
+ boundaryElement,
4844
+ fallbackPlacements,
4845
+ rootBoundary: "viewport"
4846
+ }, $[20] = animate, $[21] = arrowProp, $[22] = boundaryElement, $[23] = fallbackPlacements, $[24] = t8) : t8 = $[24];
4847
+ const middleware = useMiddleware(t8);
4848
+ let t9;
4849
+ $[25] !== referenceElement ? (t9 = {
4850
+ reference: referenceElement
4851
+ }, $[25] = referenceElement, $[26] = t9) : t9 = $[26];
4852
+ let t10;
4853
+ $[27] !== middleware || $[28] !== placementProp || $[29] !== t9 ? (t10 = {
4854
+ middleware,
4855
+ placement: placementProp,
4856
+ whileElementsMounted: reactDom$1.autoUpdate,
4857
+ elements: t9
4858
+ }, $[27] = middleware, $[28] = placementProp, $[29] = t9, $[30] = t10) : t10 = $[30];
4859
+ const {
4480
4860
  floatingStyles,
4481
4861
  placement,
4482
4862
  middlewareData,
4483
4863
  refs,
4484
4864
  update
4485
- } = reactDom$1.useFloating({
4486
- middleware,
4487
- placement: placementProp,
4488
- whileElementsMounted: reactDom$1.autoUpdate,
4489
- elements: {
4490
- reference: referenceElement
4491
- }
4492
- }), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = react.useId(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup(), {
4865
+ } = reactDom$1.useFloating(t10), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = react.useId(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup();
4866
+ let t11;
4867
+ $[31] !== delayGroupContext ? (t11 = delayGroupContext || {}, $[31] = delayGroupContext, $[32] = t11) : t11 = $[32];
4868
+ const {
4493
4869
  setIsGroupActive,
4494
4870
  setOpenTooltipId
4495
- } = delayGroupContext || {}, 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, handleIsOpenChange = react.useCallback((open, immediate) => {
4871
+ } = 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;
4872
+ let t12;
4873
+ $[33] !== closeDelay || $[34] !== isInsideGroup || $[35] !== openDelay || $[36] !== setIsGroupActive || $[37] !== setIsOpen || $[38] !== setOpenTooltipId || $[39] !== tooltipId ? (t12 = (open, immediate) => {
4496
4874
  if (isInsideGroup)
4497
4875
  if (open) {
4498
4876
  const groupedOpenDelay = immediate ? 0 : openDelay;
@@ -4503,65 +4881,173 @@ const StyledTooltip = styledComponents.styled(Layer).withConfig({
4503
4881
  }
4504
4882
  else
4505
4883
  setIsOpen(open, immediate ? 0 : open ? openDelay : closeDelay);
4506
- }, [isInsideGroup, openDelay, setIsGroupActive, setOpenTooltipId, tooltipId, closeDelay, setIsOpen]), handleBlur = react.useCallback((e) => {
4884
+ }, $[33] = closeDelay, $[34] = isInsideGroup, $[35] = openDelay, $[36] = setIsGroupActive, $[37] = setIsOpen, $[38] = setOpenTooltipId, $[39] = tooltipId, $[40] = t12) : t12 = $[40];
4885
+ const handleIsOpenChange = t12;
4886
+ let t13;
4887
+ $[41] !== childProp?.props || $[42] !== handleIsOpenChange ? (t13 = (e) => {
4507
4888
  handleIsOpenChange(!1), childProp?.props?.onBlur?.(e);
4508
- }, [childProp?.props, handleIsOpenChange]), handleClick = react.useCallback((e_0) => {
4889
+ }, $[41] = childProp?.props, $[42] = handleIsOpenChange, $[43] = t13) : t13 = $[43];
4890
+ const handleBlur = t13;
4891
+ let t14;
4892
+ $[44] !== childProp?.props || $[45] !== handleIsOpenChange ? (t14 = (e_0) => {
4509
4893
  handleIsOpenChange(!1, !0), childProp?.props.onClick?.(e_0);
4510
- }, [childProp?.props, handleIsOpenChange]), handleContextMenu = react.useCallback((e_1) => {
4894
+ }, $[44] = childProp?.props, $[45] = handleIsOpenChange, $[46] = t14) : t14 = $[46];
4895
+ const handleClick = t14;
4896
+ let t15;
4897
+ $[47] !== childProp?.props || $[48] !== handleIsOpenChange ? (t15 = (e_1) => {
4511
4898
  handleIsOpenChange(!1, !0), childProp?.props.onContextMenu?.(e_1);
4512
- }, [childProp?.props, handleIsOpenChange]), handleFocus = react.useCallback((e_2) => {
4899
+ }, $[47] = childProp?.props, $[48] = handleIsOpenChange, $[49] = t15) : t15 = $[49];
4900
+ const handleContextMenu = t15;
4901
+ let t16;
4902
+ $[50] !== childProp?.props || $[51] !== handleIsOpenChange ? (t16 = (e_2) => {
4513
4903
  handleIsOpenChange(!0), childProp?.props?.onFocus?.(e_2);
4514
- }, [childProp?.props, handleIsOpenChange]), handleMouseEnter = react.useCallback((e_3) => {
4904
+ }, $[50] = childProp?.props, $[51] = handleIsOpenChange, $[52] = t16) : t16 = $[52];
4905
+ const handleFocus = t16;
4906
+ let t17;
4907
+ $[53] !== childProp?.props || $[54] !== handleIsOpenChange ? (t17 = (e_3) => {
4515
4908
  handleIsOpenChange(!0), childProp?.props?.onMouseEnter?.(e_3);
4516
- }, [childProp?.props, handleIsOpenChange]), handleMouseLeave = react.useCallback((e_4) => {
4909
+ }, $[53] = childProp?.props, $[54] = handleIsOpenChange, $[55] = t17) : t17 = $[55];
4910
+ const handleMouseEnter = t17;
4911
+ let t18;
4912
+ $[56] !== childProp?.props || $[57] !== handleIsOpenChange ? (t18 = (e_4) => {
4517
4913
  handleIsOpenChange(!1), childProp?.props?.onMouseLeave?.(e_4);
4518
- }, [childProp?.props, handleIsOpenChange]);
4519
- useCloseOnMouseLeave({
4914
+ }, $[56] = childProp?.props, $[57] = handleIsOpenChange, $[58] = t18) : t18 = $[58];
4915
+ const handleMouseLeave = t18;
4916
+ let t19;
4917
+ $[59] !== handleIsOpenChange || $[60] !== isInsideGroup || $[61] !== referenceElement || $[62] !== showTooltip ? (t19 = {
4520
4918
  handleIsOpenChange,
4521
4919
  referenceElement,
4522
4920
  showTooltip,
4523
4921
  isInsideGroup
4524
- }), react.useEffect(() => {
4922
+ }, $[59] = handleIsOpenChange, $[60] = isInsideGroup, $[61] = referenceElement, $[62] = showTooltip, $[63] = t19) : t19 = $[63], useCloseOnMouseLeave(t19);
4923
+ let t20, t21;
4924
+ $[64] !== disabled || $[65] !== handleIsOpenChange || $[66] !== showTooltip ? (t20 = () => {
4525
4925
  disabled && showTooltip && handleIsOpenChange(!1);
4526
- }, [disabled, handleIsOpenChange, showTooltip]), react.useEffect(() => {
4926
+ }, t21 = [disabled, handleIsOpenChange, showTooltip], $[64] = disabled, $[65] = handleIsOpenChange, $[66] = showTooltip, $[67] = t20, $[68] = t21) : (t20 = $[67], t21 = $[68]), react.useEffect(t20, t21);
4927
+ let t22, t23;
4928
+ $[69] !== content || $[70] !== handleIsOpenChange || $[71] !== showTooltip ? (t22 = () => {
4527
4929
  !content && showTooltip && handleIsOpenChange(!1);
4528
- }, [content, handleIsOpenChange, showTooltip]), react.useEffect(() => {
4529
- if (!showTooltip) return;
4530
- function handleWindowKeyDown(event) {
4930
+ }, t23 = [content, handleIsOpenChange, showTooltip], $[69] = content, $[70] = handleIsOpenChange, $[71] = showTooltip, $[72] = t22, $[73] = t23) : (t22 = $[72], t23 = $[73]), react.useEffect(t22, t23);
4931
+ let t24, t25;
4932
+ $[74] !== handleIsOpenChange || $[75] !== showTooltip ? (t24 = () => {
4933
+ if (!showTooltip)
4934
+ return;
4935
+ const handleWindowKeyDown = function(event) {
4531
4936
  event.key === "Escape" && handleIsOpenChange(!1, !0);
4532
- }
4937
+ };
4533
4938
  return window.addEventListener("keydown", handleWindowKeyDown), () => {
4534
4939
  window.removeEventListener("keydown", handleWindowKeyDown);
4535
4940
  };
4536
- }, [handleIsOpenChange, showTooltip]), react.useLayoutEffect(() => {
4941
+ }, t25 = [handleIsOpenChange, showTooltip], $[74] = handleIsOpenChange, $[75] = showTooltip, $[76] = t24, $[77] = t25) : (t24 = $[76], t25 = $[77]), react.useEffect(t24, t25);
4942
+ let t26;
4943
+ $[78] !== boundaryElement || $[79] !== portalElement?.offsetWidth ? (t26 = () => {
4537
4944
  const availableWidths = [...boundaryElement ? [boundaryElement.offsetWidth] : [], portalElement?.offsetWidth || document.body.offsetWidth];
4538
4945
  setTooltipMaxWidth(Math.min(...availableWidths) - DEFAULT_TOOLTIP_PADDING * 2);
4539
- }, [boundaryElement, portalElement]);
4540
- const setArrow = react.useCallback((arrowEl) => {
4946
+ }, $[78] = boundaryElement, $[79] = portalElement?.offsetWidth, $[80] = t26) : t26 = $[80];
4947
+ let t27;
4948
+ $[81] !== boundaryElement || $[82] !== portalElement ? (t27 = [boundaryElement, portalElement], $[81] = boundaryElement, $[82] = portalElement, $[83] = t27) : t27 = $[83], react.useLayoutEffect(t26, t27);
4949
+ let t28;
4950
+ $[84] !== update ? (t28 = (arrowEl) => {
4541
4951
  arrowRef.current = arrowEl, update();
4542
- }, [update]), setFloating = react.useCallback((node) => {
4952
+ }, $[84] = update, $[85] = t28) : t28 = $[85];
4953
+ const setArrow = t28;
4954
+ let t29;
4955
+ $[86] !== refs ? (t29 = (node) => {
4543
4956
  ref.current = node, refs.setFloating(node);
4544
- }, [refs]), child = react.useMemo(() => childProp ? react.cloneElement(childProp, {
4545
- onBlur: handleBlur,
4546
- onFocus: handleFocus,
4547
- onMouseEnter: handleMouseEnter,
4548
- onMouseLeave: handleMouseLeave,
4549
- onClick: handleClick,
4550
- onContextMenu: handleContextMenu,
4551
- ref: setReferenceElement
4552
- }) : null, [childProp, handleBlur, handleClick, handleContextMenu, handleFocus, handleMouseEnter, handleMouseLeave]);
4553
- if (react.useImperativeHandle(childProp ? getElementRef(childProp) : null, () => referenceElement, [referenceElement]), !child) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
4554
- if (disabled) return child;
4555
- const tooltip = /* @__PURE__ */ jsxRuntime.jsx(StyledTooltip, { "data-ui": "Tooltip", ...restProps, ref: setFloating, style: {
4957
+ }, $[86] = refs, $[87] = t29) : t29 = $[87];
4958
+ const setFloating = t29;
4959
+ let t30;
4960
+ bb0: {
4961
+ if (!childProp) {
4962
+ t30 = null;
4963
+ break bb0;
4964
+ }
4965
+ let t312;
4966
+ $[88] !== childProp || $[89] !== handleBlur || $[90] !== handleClick || $[91] !== handleContextMenu || $[92] !== handleFocus || $[93] !== handleMouseEnter || $[94] !== handleMouseLeave ? (t312 = react.cloneElement(childProp, {
4967
+ onBlur: handleBlur,
4968
+ onFocus: handleFocus,
4969
+ onMouseEnter: handleMouseEnter,
4970
+ onMouseLeave: handleMouseLeave,
4971
+ onClick: handleClick,
4972
+ onContextMenu: handleContextMenu,
4973
+ ref: setReferenceElement
4974
+ }), $[88] = childProp, $[89] = handleBlur, $[90] = handleClick, $[91] = handleContextMenu, $[92] = handleFocus, $[93] = handleMouseEnter, $[94] = handleMouseLeave, $[95] = t312) : t312 = $[95], t30 = t312;
4975
+ }
4976
+ const child = t30;
4977
+ let t31;
4978
+ $[96] !== childProp ? (t31 = childProp ? getElementRef(childProp) : null, $[96] = childProp, $[97] = t31) : t31 = $[97];
4979
+ let t32, t33;
4980
+ if ($[98] !== referenceElement ? (t32 = () => referenceElement, t33 = [referenceElement], $[98] = referenceElement, $[99] = t32, $[100] = t33) : (t32 = $[99], t33 = $[100]), react.useImperativeHandle(t31, t32, t33), !child) {
4981
+ let t342;
4982
+ return $[101] === Symbol.for("react.memo_cache_sentinel") ? (t342 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}), $[101] = t342) : t342 = $[101], t342;
4983
+ }
4984
+ if (disabled)
4985
+ return child;
4986
+ const t34 = tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0;
4987
+ let t35;
4988
+ $[102] !== floatingStyles || $[103] !== t34 ? (t35 = {
4556
4989
  ...floatingStyles,
4557
- maxWidth: tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0
4558
- }, zOffset, children: /* @__PURE__ */ jsxRuntime.jsx(TooltipCard, { ...restProps, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, originX, originY, padding, placement, radius, ref: setFloating, scheme, shadow, children: content }) }), children = showTooltip && (portalProp ? /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: typeof portalProp == "string" ? portalProp : void 0, children: tooltip }) : tooltip);
4559
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4560
- animate ? /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children }) : children,
4990
+ maxWidth: t34
4991
+ }, $[102] = floatingStyles, $[103] = t34, $[104] = t35) : t35 = $[104];
4992
+ let t36;
4993
+ $[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__ */ jsxRuntime.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];
4994
+ let t37;
4995
+ $[121] !== restProps || $[122] !== setFloating || $[123] !== t35 || $[124] !== t36 || $[125] !== zOffset ? (t37 = /* @__PURE__ */ jsxRuntime.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];
4996
+ const tooltip = t37;
4997
+ let t38;
4998
+ $[127] !== portalProp || $[128] !== showTooltip || $[129] !== tooltip ? (t38 = showTooltip && (portalProp ? /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: typeof portalProp == "string" ? portalProp : void 0, children: tooltip }) : tooltip), $[127] = portalProp, $[128] = showTooltip, $[129] = tooltip, $[130] = t38) : t38 = $[130];
4999
+ const children = t38;
5000
+ let t39;
5001
+ $[131] !== animate || $[132] !== children ? (t39 = animate ? /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children }) : children, $[131] = animate, $[132] = children, $[133] = t39) : t39 = $[133];
5002
+ let t40;
5003
+ return $[134] !== child || $[135] !== t39 ? (t40 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5004
+ t39,
4561
5005
  child
4562
- ] });
5006
+ ] }), $[134] = child, $[135] = t39, $[136] = t40) : t40 = $[136], t40;
4563
5007
  });
4564
5008
  Tooltip.displayName = "ForwardRef(Tooltip)";
5009
+ function useMiddleware(t0) {
5010
+ const $ = reactCompilerRuntime.c(17), {
5011
+ animate,
5012
+ arrowProp,
5013
+ arrowRef,
5014
+ boundaryElement,
5015
+ fallbackPlacements,
5016
+ rootBoundary
5017
+ } = t0;
5018
+ let ret;
5019
+ if ($[0] !== animate || $[1] !== arrowProp || $[2] !== arrowRef || $[3] !== boundaryElement || $[4] !== fallbackPlacements || $[5] !== rootBoundary) {
5020
+ ret = [];
5021
+ const t1 = boundaryElement || void 0;
5022
+ let t2;
5023
+ $[7] !== fallbackPlacements || $[8] !== rootBoundary || $[9] !== t1 ? (t2 = reactDom$1.flip({
5024
+ boundary: t1,
5025
+ fallbackPlacements,
5026
+ padding: DEFAULT_TOOLTIP_PADDING,
5027
+ rootBoundary
5028
+ }), $[7] = fallbackPlacements, $[8] = rootBoundary, $[9] = t1, $[10] = t2) : t2 = $[10], ret.push(t2);
5029
+ let t3;
5030
+ $[11] === Symbol.for("react.memo_cache_sentinel") ? (t3 = reactDom$1.offset({
5031
+ mainAxis: DEFAULT_TOOLTIP_DISTANCE
5032
+ }), $[11] = t3) : t3 = $[11], ret.push(t3);
5033
+ const t4 = boundaryElement || void 0;
5034
+ let t5;
5035
+ if ($[12] !== rootBoundary || $[13] !== t4 ? (t5 = reactDom$1.shift({
5036
+ boundary: t4,
5037
+ rootBoundary,
5038
+ padding: DEFAULT_TOOLTIP_PADDING
5039
+ }), $[12] = rootBoundary, $[13] = t4, $[14] = t5) : t5 = $[14], ret.push(t5), arrowProp) {
5040
+ let t6;
5041
+ $[15] !== arrowRef ? (t6 = reactDom$1.arrow({
5042
+ element: arrowRef,
5043
+ padding: DEFAULT_TOOLTIP_PADDING
5044
+ }), $[15] = arrowRef, $[16] = t6) : t6 = $[16], ret.push(t6);
5045
+ }
5046
+ animate && ret.push(origin), $[0] = animate, $[1] = arrowProp, $[2] = arrowRef, $[3] = boundaryElement, $[4] = fallbackPlacements, $[5] = rootBoundary, $[6] = ret;
5047
+ } else
5048
+ ret = $[6];
5049
+ return ret;
5050
+ }
4565
5051
  function useCloseOnMouseLeave(t0) {
4566
5052
  const $ = reactCompilerRuntime.c(10), {
4567
5053
  handleIsOpenChange,
@@ -4593,7 +5079,7 @@ const StyledHotkeys = styledComponents.styled.kbd.withConfig({
4593
5079
  displayName: "Key",
4594
5080
  componentId: "sc-b37mge-1"
4595
5081
  })`&:not([hidden]){display:block;}`, Hotkeys = react.forwardRef(function(props, ref) {
4596
- const $ = reactCompilerRuntime.c(24);
5082
+ const $ = reactCompilerRuntime.c(26);
4597
5083
  let fontSize2, keys, padding, radius, restProps, t0;
4598
5084
  $[0] !== props ? ({
4599
5085
  fontSize: fontSize2,
@@ -4603,21 +5089,24 @@ const StyledHotkeys = styledComponents.styled.kbd.withConfig({
4603
5089
  space: t0,
4604
5090
  ...restProps
4605
5091
  } = 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]);
4606
- const space = useArrayProp(t0 === void 0 ? 0.5 : t0);
4607
- if (!keys || keys.length === 0) {
4608
- let t12;
4609
- return $[7] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}), $[7] = t12) : t12 = $[7], t12;
4610
- }
5092
+ const spaceProp = t0 === void 0 ? 0.5 : t0;
4611
5093
  let t1;
4612
- if ($[8] !== fontSize2 || $[9] !== keys || $[10] !== padding || $[11] !== radius) {
5094
+ $[7] !== spaceProp ? (t1 = _getArrayProp(spaceProp), $[7] = spaceProp, $[8] = t1) : t1 = $[8];
5095
+ const space = t1;
5096
+ if (!keys || keys.length === 0) {
4613
5097
  let t22;
4614
- $[13] !== fontSize2 || $[14] !== padding || $[15] !== radius ? (t22 = (key2, i) => /* @__PURE__ */ jsxRuntime.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;
4615
- } else
4616
- t1 = $[12];
5098
+ return $[9] === Symbol.for("react.memo_cache_sentinel") ? (t22 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}), $[9] = t22) : t22 = $[9], t22;
5099
+ }
4617
5100
  let t2;
4618
- $[17] !== space || $[18] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Inline, { as: "span", space, children: t1 }), $[17] = space, $[18] = t1, $[19] = t2) : t2 = $[19];
5101
+ if ($[10] !== fontSize2 || $[11] !== keys || $[12] !== padding || $[13] !== radius) {
5102
+ let t32;
5103
+ $[15] !== fontSize2 || $[16] !== padding || $[17] !== radius ? (t32 = (key2, i) => /* @__PURE__ */ jsxRuntime.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;
5104
+ } else
5105
+ t2 = $[14];
4619
5106
  let t3;
4620
- return $[20] !== ref || $[21] !== restProps || $[22] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(StyledHotkeys, { "data-ui": "Hotkeys", ...restProps, ref, children: t2 }), $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3) : t3 = $[23], t3;
5107
+ $[19] !== space || $[20] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Inline, { as: "span", space, children: t2 }), $[19] = space, $[20] = t2, $[21] = t3) : t3 = $[21];
5108
+ let t4;
5109
+ return $[22] !== ref || $[23] !== restProps || $[24] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(StyledHotkeys, { "data-ui": "Hotkeys", ...restProps, ref, children: t3 }), $[22] = ref, $[23] = restProps, $[24] = t3, $[25] = t4) : t4 = $[25], t4;
4621
5110
  });
4622
5111
  Hotkeys.displayName = "ForwardRef(Hotkeys)";
4623
5112
  const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
@@ -4988,7 +5477,7 @@ function useMenu() {
4988
5477
  return value;
4989
5478
  }
4990
5479
  function MenuGroup(props) {
4991
- const $ = reactCompilerRuntime.c(79);
5480
+ const $ = reactCompilerRuntime.c(81);
4992
5481
  let IconComponent, children, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
4993
5482
  $[0] !== props ? ({
4994
5483
  as: t0,
@@ -5069,32 +5558,35 @@ function MenuGroup(props) {
5069
5558
  return;
5070
5559
  }
5071
5560
  }, $[45] = t20) : t20 = $[45];
5072
- 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;
5561
+ const handleKeyDown = t20, t21 = as === "button" ? withinMenu : void 0, t22 = as !== "button" ? withinMenu : void 0, t23 = !withinMenu && active ? "" : void 0;
5562
+ let t24;
5563
+ $[46] !== radius ? (t24 = _getArrayProp(radius), $[46] = radius, $[47] = t24) : t24 = $[47];
5564
+ const t25 = as === "button" ? "button" : void 0;
5073
5565
  let t26;
5074
- $[46] !== IconComponent || $[47] !== fontSize2 ? (t26 = IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
5566
+ $[48] !== IconComponent || $[49] !== fontSize2 ? (t26 = IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
5075
5567
  react.isValidElement(IconComponent) && IconComponent,
5076
5568
  ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
5077
- ] }), $[46] = IconComponent, $[47] = fontSize2, $[48] = t26) : t26 = $[48];
5569
+ ] }), $[48] = IconComponent, $[49] = fontSize2, $[50] = t26) : t26 = $[50];
5078
5570
  let t27;
5079
- $[49] !== fontSize2 || $[50] !== text ? (t27 = /* @__PURE__ */ jsxRuntime.jsx(Box, { flex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, textOverflow: "ellipsis", weight: "medium", children: text }) }), $[49] = fontSize2, $[50] = text, $[51] = t27) : t27 = $[51];
5571
+ $[51] !== fontSize2 || $[52] !== text ? (t27 = /* @__PURE__ */ jsxRuntime.jsx(Box, { flex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, textOverflow: "ellipsis", weight: "medium", children: text }) }), $[51] = fontSize2, $[52] = text, $[53] = t27) : t27 = $[53];
5080
5572
  let t28;
5081
- $[52] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronRightIcon, {}), $[52] = t28) : t28 = $[52];
5573
+ $[54] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronRightIcon, {}), $[54] = t28) : t28 = $[54];
5082
5574
  let t29;
5083
- $[53] !== fontSize2 ? (t29 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children: t28 }), $[53] = fontSize2, $[54] = t29) : t29 = $[54];
5575
+ $[55] !== fontSize2 ? (t29 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children: t28 }), $[55] = fontSize2, $[56] = t29) : t29 = $[56];
5084
5576
  let t30;
5085
- $[55] !== padding || $[56] !== space || $[57] !== t26 || $[58] !== t27 || $[59] !== t29 ? (t30 = /* @__PURE__ */ jsxRuntime.jsxs(Flex, { gap: space, padding, children: [
5577
+ $[57] !== padding || $[58] !== space || $[59] !== t26 || $[60] !== t27 || $[61] !== t29 ? (t30 = /* @__PURE__ */ jsxRuntime.jsxs(Flex, { gap: space, padding, children: [
5086
5578
  t26,
5087
5579
  t27,
5088
5580
  t29
5089
- ] }), $[55] = padding, $[56] = space, $[57] = t26, $[58] = t27, $[59] = t29, $[60] = t30) : t30 = $[60];
5581
+ ] }), $[57] = padding, $[58] = space, $[59] = t26, $[60] = t27, $[61] = t29, $[62] = t30) : t30 = $[62];
5090
5582
  let t31;
5091
- $[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__ */ jsxRuntime.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];
5583
+ $[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__ */ jsxRuntime.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];
5092
5584
  let t32;
5093
- return $[74] !== childMenu || $[75] !== open || $[76] !== popover || $[77] !== t31 ? (t32 = /* @__PURE__ */ jsxRuntime.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;
5585
+ return $[76] !== childMenu || $[77] !== open || $[78] !== popover || $[79] !== t31 ? (t32 = /* @__PURE__ */ jsxRuntime.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;
5094
5586
  }
5095
5587
  MenuGroup.displayName = "MenuGroup";
5096
5588
  const MenuItem = react.forwardRef(function(props, forwardedRef) {
5097
- const $ = reactCompilerRuntime.c(73);
5589
+ const $ = reactCompilerRuntime.c(75);
5098
5590
  let IconComponent, IconRightComponent, children, disabled, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
5099
5591
  $[0] !== props ? ({
5100
5592
  as: t0,
@@ -5148,17 +5640,22 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
5148
5640
  paddingBottom,
5149
5641
  paddingLeft
5150
5642
  }, $[33] = padding, $[34] = paddingBottom, $[35] = paddingLeft, $[36] = paddingRight, $[37] = paddingTop, $[38] = paddingX, $[39] = paddingY, $[40] = t10) : t10 = $[40];
5151
- const paddingProps = t10, t11 = useArrayProp(fontSize2);
5643
+ const paddingProps = t10;
5644
+ let t11;
5645
+ $[41] !== fontSize2 ? (t11 = _getArrayProp(fontSize2).map(_temp), $[41] = fontSize2, $[42] = t11) : t11 = $[42];
5646
+ const hotkeysFontSize = t11;
5152
5647
  let t12;
5153
- $[41] !== t11 ? (t12 = t11.map(_temp), $[41] = t11, $[42] = t12) : t12 = $[42];
5154
- const hotkeysFontSize = t12;
5155
- let t13;
5156
- $[43] === Symbol.for("react.memo_cache_sentinel") ? (t13 = (el) => {
5648
+ $[43] === Symbol.for("react.memo_cache_sentinel") ? (t12 = (el) => {
5157
5649
  ref.current = el, setRootElement(el);
5158
- }, $[43] = t13) : t13 = $[43];
5159
- 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;
5160
- let t21;
5161
- $[44] !== IconComponent || $[45] !== IconRightComponent || $[46] !== fontSize2 || $[47] !== hotkeys || $[48] !== hotkeysFontSize || $[49] !== paddingProps || $[50] !== space || $[51] !== text ? (t21 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
5650
+ }, $[43] = t12) : t12 = $[43];
5651
+ const setRef = t12, t13 = as !== "button" && pressed ? "" : void 0, t14 = active ? "" : void 0, t15 = disabled ? "" : void 0;
5652
+ let t16;
5653
+ $[44] !== radius ? (t16 = _getArrayProp(radius), $[44] = radius, $[45] = t16) : t16 = $[45];
5654
+ let t17;
5655
+ $[46] === Symbol.for("react.memo_cache_sentinel") ? (t17 = _getArrayProp(0), $[46] = t17) : t17 = $[46];
5656
+ const t18 = disabled ? "default" : tone, t19 = as === "button" ? "button" : void 0;
5657
+ let t20;
5658
+ $[47] !== IconComponent || $[48] !== IconRightComponent || $[49] !== fontSize2 || $[50] !== hotkeys || $[51] !== hotkeysFontSize || $[52] !== paddingProps || $[53] !== space || $[54] !== text ? (t20 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
5162
5659
  IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
5163
5660
  react.isValidElement(IconComponent) && IconComponent,
5164
5661
  ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
@@ -5172,14 +5669,14 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
5172
5669
  react.isValidElement(IconRightComponent) && IconRightComponent,
5173
5670
  ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
5174
5671
  ] })
5175
- ] }), $[44] = IconComponent, $[45] = IconRightComponent, $[46] = fontSize2, $[47] = hotkeys, $[48] = hotkeysFontSize, $[49] = paddingProps, $[50] = space, $[51] = text, $[52] = t21) : t21 = $[52];
5672
+ ] }), $[47] = IconComponent, $[48] = IconRightComponent, $[49] = fontSize2, $[50] = hotkeys, $[51] = hotkeysFontSize, $[52] = paddingProps, $[53] = space, $[54] = text, $[55] = t20) : t20 = $[55];
5673
+ let t21;
5674
+ $[56] !== children || $[57] !== paddingProps ? (t21 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...paddingProps, children }), $[56] = children, $[57] = paddingProps, $[58] = t21) : t21 = $[58];
5176
5675
  let t22;
5177
- $[53] !== children || $[54] !== paddingProps ? (t22 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...paddingProps, children }), $[53] = children, $[54] = paddingProps, $[55] = t22) : t22 = $[55];
5178
- let t23;
5179
- 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__ */ jsxRuntime.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: [
5180
- t21,
5181
- t22
5182
- ] }), $[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;
5676
+ 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__ */ jsxRuntime.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: [
5677
+ t20,
5678
+ t21
5679
+ ] }), $[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;
5183
5680
  });
5184
5681
  MenuItem.displayName = "ForwardRef(MenuItem)";
5185
5682
  function _temp(s) {
@@ -5342,7 +5839,6 @@ exports.rgbToHsl = rgbToHsl;
5342
5839
  exports.rgba = rgba;
5343
5840
  exports.screen = screen;
5344
5841
  exports.studioTheme = studioTheme;
5345
- exports.useArrayProp = useArrayProp;
5346
5842
  exports.useBoundaryElement = useBoundaryElement;
5347
5843
  exports.useClickOutsideEvent = useClickOutsideEvent;
5348
5844
  exports.useCustomValidity = useCustomValidity;