@sanity/ui 3.1.1-canary.0 → 3.1.1-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.
package/dist/index.js CHANGED
@@ -270,24 +270,29 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
270
270
  } = t112;
271
271
  return /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Card, { "data-as": "button", padding: paddingProp, radius: 2, tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { size: fontSize, textOverflow: "ellipsis", children: value_0 }) });
272
272
  }, $[33] = fontSize, $[34] = paddingProp, $[35] = t10) : t10 = $[35];
273
- const renderOption = typeof renderOptionProp == "function" ? renderOptionProp : t10, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, rootElementRef = react.useRef(null), resultsPopoverElementRef = react.useRef(null), inputElementRef = react.useRef(null), listBoxElementRef = react.useRef(null), [inputElement, setInputElement] = react.useState(null), listFocusedRef = react.useRef(!1), valueRef = react.useRef(value), valuePropRef = react.useRef(valueProp), popoverMouseWithinRef = react.useRef(!1);
274
- let t11, t12;
275
- $[36] !== inputElement ? (t11 = () => inputElement, t12 = [inputElement], $[36] = inputElement, $[37] = t11, $[38] = t12) : (t11 = $[37], t12 = $[38]), react.useImperativeHandle(inputElementRef, t11, t12);
276
- let t13, t14;
277
- $[39] !== inputElement ? (t13 = () => inputElement, t14 = [inputElement], $[39] = inputElement, $[40] = t13, $[41] = t14) : (t13 = $[40], t14 = $[41]), react.useImperativeHandle(forwardedRef, t13, t14);
273
+ const renderOption = typeof renderOptionProp == "function" ? renderOptionProp : t10, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, rootElementRef = react.useRef(null), resultsPopoverElementRef = react.useRef(null), inputElementRef = react.useRef(null), listBoxElementRef = react.useRef(null), [inputElement, _setInputElement] = react.useState(null);
274
+ let t11;
275
+ $[36] === Symbol.for("react.memo_cache_sentinel") ? (t11 = (node) => {
276
+ react.startTransition(() => _setInputElement(node));
277
+ }, $[36] = t11) : t11 = $[36];
278
+ const setInputElement = t11, listFocusedRef = react.useRef(!1), valueRef = react.useRef(value), valuePropRef = react.useRef(valueProp), popoverMouseWithinRef = react.useRef(!1);
279
+ let t12, t13;
280
+ $[37] !== inputElement ? (t12 = () => inputElement, t13 = [inputElement], $[37] = inputElement, $[38] = t12, $[39] = t13) : (t12 = $[38], t13 = $[39]), react.useImperativeHandle(inputElementRef, t12, t13);
281
+ let t14, t15;
282
+ $[40] !== inputElement ? (t14 = () => inputElement, t15 = [inputElement], $[40] = inputElement, $[41] = t14, $[42] = t15) : (t14 = $[41], t15 = $[42]), react.useImperativeHandle(forwardedRef, t14, t15);
278
283
  const listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : _visualEditing.EMPTY_ARRAY, padding = _visualEditing._getArrayProp(paddingProp);
279
- let t15;
280
- $[42] !== options || $[43] !== value ? (t15 = value !== null ? options.find((o) => o.value === value) : void 0, $[42] = options, $[43] = value, $[44] = t15) : t15 = $[44];
281
- const currentOption = t15;
282
284
  let t16;
283
- if ($[45] !== filterOption || $[46] !== options || $[47] !== query) {
284
- let t172;
285
- $[49] !== filterOption || $[50] !== query ? (t172 = (option) => query ? filterOption(query, option) : !0, $[49] = filterOption, $[50] = query, $[51] = t172) : t172 = $[51], t16 = options.filter(t172), $[45] = filterOption, $[46] = options, $[47] = query, $[48] = t16;
286
- } else
287
- t16 = $[48];
288
- const filteredOptions = t16, filteredOptionsLen = filteredOptions.length, activeItemId = activeValue ? `${id}-option-${activeValue}` : void 0, expanded = query !== null && loading || focused && query !== null;
285
+ $[43] !== options || $[44] !== value ? (t16 = value !== null ? options.find((o) => o.value === value) : void 0, $[43] = options, $[44] = value, $[45] = t16) : t16 = $[45];
286
+ const currentOption = t16;
289
287
  let t17;
290
- $[52] !== onBlur || $[53] !== onQueryChange || $[54] !== relatedElements ? (t17 = (event) => {
288
+ if ($[46] !== filterOption || $[47] !== options || $[48] !== query) {
289
+ let t182;
290
+ $[50] !== filterOption || $[51] !== query ? (t182 = (option) => query ? filterOption(query, option) : !0, $[50] = filterOption, $[51] = query, $[52] = t182) : t182 = $[52], t17 = options.filter(t182), $[46] = filterOption, $[47] = options, $[48] = query, $[49] = t17;
291
+ } else
292
+ t17 = $[49];
293
+ const filteredOptions = t17, filteredOptionsLen = filteredOptions.length, activeItemId = activeValue ? `${id}-option-${activeValue}` : void 0, expanded = query !== null && loading || focused && query !== null;
294
+ let t18;
295
+ $[53] !== onBlur || $[54] !== onQueryChange || $[55] !== relatedElements ? (t18 = (event) => {
291
296
  setTimeout(() => {
292
297
  if (popoverMouseWithinRef.current)
293
298
  return;
@@ -304,27 +309,27 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
304
309
  type: "root/blur"
305
310
  }), popoverMouseWithinRef.current = !1, onQueryChange && onQueryChange(null), onBlur && onBlur(event));
306
311
  }, 0);
307
- }, $[52] = onBlur, $[53] = onQueryChange, $[54] = relatedElements, $[55] = t17) : t17 = $[55];
308
- const handleRootBlur = t17;
309
- let t18;
310
- $[56] === Symbol.for("react.memo_cache_sentinel") ? (t18 = (event_0) => {
312
+ }, $[53] = onBlur, $[54] = onQueryChange, $[55] = relatedElements, $[56] = t18) : t18 = $[56];
313
+ const handleRootBlur = t18;
314
+ let t19;
315
+ $[57] === Symbol.for("react.memo_cache_sentinel") ? (t19 = (event_0) => {
311
316
  const listBoxElement = listBoxElementRef.current, focusedElement = event_0.target instanceof HTMLElement ? event_0.target : null, listFocused_0 = listBoxElement?.contains(focusedElement) || !1;
312
317
  listFocused_0 !== listFocusedRef.current && (listFocusedRef.current = listFocused_0, dispatch({
313
318
  type: "root/setListFocused",
314
319
  listFocused: listFocused_0
315
320
  }));
316
- }, $[56] = t18) : t18 = $[56];
317
- const handleRootFocus = t18;
318
- let t19;
319
- $[57] !== onChange || $[58] !== onQueryChange || $[59] !== onSelect ? (t19 = (v) => {
321
+ }, $[57] = t19) : t19 = $[57];
322
+ const handleRootFocus = t19;
323
+ let t20;
324
+ $[58] !== onChange || $[59] !== onQueryChange || $[60] !== onSelect ? (t20 = (v) => {
320
325
  dispatch({
321
326
  type: "value/change",
322
327
  value: v
323
328
  }), popoverMouseWithinRef.current = !1, onSelect && onSelect(v), valueRef.current = v, onChange && onChange(v), onQueryChange && onQueryChange(null), inputElementRef.current?.focus();
324
- }, $[57] = onChange, $[58] = onQueryChange, $[59] = onSelect, $[60] = t19) : t19 = $[60];
325
- const handleOptionSelect = t19;
326
- let t20;
327
- $[61] !== activeValue || $[62] !== filteredOptions || $[63] !== filteredOptionsLen || $[64] !== onQueryChange ? (t20 = (event_1) => {
329
+ }, $[58] = onChange, $[59] = onQueryChange, $[60] = onSelect, $[61] = t20) : t20 = $[61];
330
+ const handleOptionSelect = t20;
331
+ let t21;
332
+ $[62] !== activeValue || $[63] !== filteredOptions || $[64] !== filteredOptionsLen || $[65] !== onQueryChange ? (t21 = (event_1) => {
328
333
  if (event_1.key === "ArrowDown") {
329
334
  if (event_1.preventDefault(), !filteredOptionsLen)
330
335
  return;
@@ -358,58 +363,58 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
358
363
  inputElementRef.current?.focus();
359
364
  return;
360
365
  }
361
- }, $[61] = activeValue, $[62] = filteredOptions, $[63] = filteredOptionsLen, $[64] = onQueryChange, $[65] = t20) : t20 = $[65];
362
- const handleRootKeyDown = t20;
363
- let t21;
364
- $[66] !== onQueryChange ? (t21 = (event_2) => {
366
+ }, $[62] = activeValue, $[63] = filteredOptions, $[64] = filteredOptionsLen, $[65] = onQueryChange, $[66] = t21) : t21 = $[66];
367
+ const handleRootKeyDown = t21;
368
+ let t22;
369
+ $[67] !== onQueryChange ? (t22 = (event_2) => {
365
370
  const nextQuery = event_2.currentTarget.value;
366
371
  dispatch({
367
372
  type: "input/change",
368
373
  query: nextQuery
369
374
  }), onQueryChange && onQueryChange(nextQuery);
370
- }, $[66] = onQueryChange, $[67] = t21) : t21 = $[67];
371
- const handleInputChange = t21;
372
- let t22;
373
- $[68] !== currentOption || $[69] !== renderValue || $[70] !== value ? (t22 = () => {
375
+ }, $[67] = onQueryChange, $[68] = t22) : t22 = $[68];
376
+ const handleInputChange = t22;
377
+ let t23;
378
+ $[69] !== currentOption || $[70] !== renderValue || $[71] !== value ? (t23 = () => {
374
379
  dispatch({
375
380
  type: "root/open",
376
381
  query: value ? renderValue(value, currentOption) : ""
377
382
  });
378
- }, $[68] = currentOption, $[69] = renderValue, $[70] = value, $[71] = t22) : t22 = $[71];
379
- const dispatchOpen = t22;
380
- let t23;
381
- $[72] !== dispatchOpen || $[73] !== focused || $[74] !== onFocus || $[75] !== openOnFocus ? (t23 = (event_3) => {
383
+ }, $[69] = currentOption, $[70] = renderValue, $[71] = value, $[72] = t23) : t23 = $[72];
384
+ const dispatchOpen = t23;
385
+ let t24;
386
+ $[73] !== dispatchOpen || $[74] !== focused || $[75] !== onFocus || $[76] !== openOnFocus ? (t24 = (event_3) => {
382
387
  focused || (dispatch({
383
388
  type: "input/focus"
384
389
  }), onFocus && onFocus(event_3), openOnFocus && dispatchOpen());
385
- }, $[72] = dispatchOpen, $[73] = focused, $[74] = onFocus, $[75] = openOnFocus, $[76] = t23) : t23 = $[76];
386
- const handleInputFocus = t23;
387
- let t24;
388
- $[77] === Symbol.for("react.memo_cache_sentinel") ? (t24 = () => {
389
- popoverMouseWithinRef.current = !0;
390
- }, $[77] = t24) : t24 = $[77];
391
- const handlePopoverMouseEnter = t24;
390
+ }, $[73] = dispatchOpen, $[74] = focused, $[75] = onFocus, $[76] = openOnFocus, $[77] = t24) : t24 = $[77];
391
+ const handleInputFocus = t24;
392
392
  let t25;
393
393
  $[78] === Symbol.for("react.memo_cache_sentinel") ? (t25 = () => {
394
- popoverMouseWithinRef.current = !1;
394
+ popoverMouseWithinRef.current = !0;
395
395
  }, $[78] = t25) : t25 = $[78];
396
- const handlePopoverMouseLeave = t25;
396
+ const handlePopoverMouseEnter = t25;
397
397
  let t26;
398
- $[79] !== onChange || $[80] !== onQueryChange ? (t26 = () => {
398
+ $[79] === Symbol.for("react.memo_cache_sentinel") ? (t26 = () => {
399
+ popoverMouseWithinRef.current = !1;
400
+ }, $[79] = t26) : t26 = $[79];
401
+ const handlePopoverMouseLeave = t26;
402
+ let t27;
403
+ $[80] !== onChange || $[81] !== onQueryChange ? (t27 = () => {
399
404
  dispatch({
400
405
  type: "root/clear"
401
406
  }), valueRef.current = "", onChange && onChange(""), onQueryChange && onQueryChange(null), inputElementRef.current?.focus();
402
- }, $[79] = onChange, $[80] = onQueryChange, $[81] = t26) : t26 = $[81];
403
- const handleClearButtonClick = t26;
404
- let t27;
405
- $[82] === Symbol.for("react.memo_cache_sentinel") ? (t27 = () => {
407
+ }, $[80] = onChange, $[81] = onQueryChange, $[82] = t27) : t27 = $[82];
408
+ const handleClearButtonClick = t27;
409
+ let t28;
410
+ $[83] === Symbol.for("react.memo_cache_sentinel") ? (t28 = () => {
406
411
  dispatch({
407
412
  type: "input/focus"
408
413
  });
409
- }, $[82] = t27) : t27 = $[82];
410
- const handleClearButtonFocus = t27;
411
- let t28, t29;
412
- $[83] !== valueProp ? (t28 = () => {
414
+ }, $[83] = t28) : t28 = $[83];
415
+ const handleClearButtonFocus = t28;
416
+ let t29, t30;
417
+ $[84] !== valueProp ? (t29 = () => {
413
418
  if (valueProp !== valuePropRef.current) {
414
419
  valuePropRef.current = valueProp, valueProp !== void 0 && (dispatch({
415
420
  type: "value/change",
@@ -421,16 +426,16 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
421
426
  type: "value/change",
422
427
  value: valueProp || null
423
428
  }));
424
- }, t29 = [valueProp], $[83] = valueProp, $[84] = t28, $[85] = t29) : (t28 = $[84], t29 = $[85]), react.useEffect(t28, t29);
425
- let t30, t31;
426
- $[86] !== focused ? (t30 = () => {
429
+ }, t30 = [valueProp], $[84] = valueProp, $[85] = t29, $[86] = t30) : (t29 = $[85], t30 = $[86]), react.useEffect(t29, t30);
430
+ let t31, t32;
431
+ $[87] !== focused ? (t31 = () => {
427
432
  !focused && valueRef.current && dispatch({
428
433
  type: "root/setActiveValue",
429
434
  value: valueRef.current
430
435
  });
431
- }, t31 = [focused], $[86] = focused, $[87] = t30, $[88] = t31) : (t30 = $[87], t31 = $[88]), react.useEffect(t30, t31);
432
- let t32, t33;
433
- $[89] !== activeValue || $[90] !== filteredOptions ? (t32 = () => {
436
+ }, t32 = [focused], $[87] = focused, $[88] = t31, $[89] = t32) : (t31 = $[88], t32 = $[89]), react.useEffect(t31, t32);
437
+ let t33, t34;
438
+ $[90] !== activeValue || $[91] !== filteredOptions ? (t33 = () => {
434
439
  const listElement = listBoxElementRef.current;
435
440
  if (!listElement)
436
441
  return;
@@ -443,95 +448,90 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
443
448
  focusFirstDescendant(activeItemElement);
444
449
  }
445
450
  }
446
- }, t33 = [activeValue, filteredOptions], $[89] = activeValue, $[90] = filteredOptions, $[91] = t32, $[92] = t33) : (t32 = $[91], t33 = $[92]), react.useEffect(t32, t33);
447
- let t34;
451
+ }, t34 = [activeValue, filteredOptions], $[90] = activeValue, $[91] = filteredOptions, $[92] = t33, $[93] = t34) : (t33 = $[92], t34 = $[93]), react.useEffect(t33, t34);
452
+ let t35;
448
453
  bb0: {
449
454
  if (!loading && !disabled && value) {
450
- let t352;
451
- $[93] === Symbol.for("react.memo_cache_sentinel") ? (t352 = {
455
+ let t362;
456
+ $[94] === Symbol.for("react.memo_cache_sentinel") ? (t362 = {
452
457
  "aria-label": "Clear",
453
458
  onFocus: handleClearButtonFocus
454
- }, $[93] = t352) : t352 = $[93], t34 = t352;
459
+ }, $[94] = t362) : t362 = $[94], t35 = t362;
455
460
  break bb0;
456
461
  }
457
- t34 = void 0;
462
+ t35 = void 0;
458
463
  }
459
- const clearButton = t34, openButtonBoxPadding = padding.map(_temp$3), openButtonPadding = padding.map(_temp2$1), openButtonProps = typeof openButton == "object" ? openButton : _visualEditing.EMPTY_RECORD;
460
- let t35;
461
- $[94] !== dispatchOpen || $[95] !== openButtonProps ? (t35 = (event_4) => {
462
- dispatchOpen(), openButtonProps.onClick && openButtonProps.onClick(event_4), _raf(() => inputElementRef.current?.focus());
463
- }, $[94] = dispatchOpen, $[95] = openButtonProps, $[96] = t35) : t35 = $[96];
464
- const handleOpenClick = t35;
464
+ const clearButton = t35, openButtonBoxPadding = padding.map(_temp$3), openButtonPadding = padding.map(_temp2$1), openButtonProps = typeof openButton == "object" ? openButton : _visualEditing.EMPTY_RECORD;
465
465
  let t36;
466
- $[97] !== disabled || $[98] !== expanded || $[99] !== fontSize || $[100] !== handleOpenClick || $[101] !== openButton || $[102] !== openButtonBoxPadding || $[103] !== openButtonPadding || $[104] !== openButtonProps || $[105] !== readOnly ? (t36 = !disabled && !readOnly && openButton ? /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { "aria-hidden": expanded, padding: openButtonBoxPadding, children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Button, { "aria-label": "Open", disabled: expanded, fontSize, icon: icons.ChevronDownIcon, mode: "bleed", padding: openButtonPadding, ...openButtonProps, onClick: handleOpenClick }) }) : void 0, $[97] = disabled, $[98] = expanded, $[99] = fontSize, $[100] = handleOpenClick, $[101] = openButton, $[102] = openButtonBoxPadding, $[103] = openButtonPadding, $[104] = openButtonProps, $[105] = readOnly, $[106] = t36) : t36 = $[106];
467
- const openButtonNode = t36;
466
+ $[95] !== dispatchOpen || $[96] !== openButtonProps ? (t36 = (event_4) => {
467
+ dispatchOpen(), openButtonProps.onClick && openButtonProps.onClick(event_4), _raf(() => inputElementRef.current?.focus());
468
+ }, $[95] = dispatchOpen, $[96] = openButtonProps, $[97] = t36) : t36 = $[97];
469
+ const handleOpenClick = t36;
468
470
  let t37;
471
+ $[98] !== disabled || $[99] !== expanded || $[100] !== fontSize || $[101] !== handleOpenClick || $[102] !== openButton || $[103] !== openButtonBoxPadding || $[104] !== openButtonPadding || $[105] !== openButtonProps || $[106] !== readOnly ? (t37 = !disabled && !readOnly && openButton ? /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { "aria-hidden": expanded, padding: openButtonBoxPadding, children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Button, { "aria-label": "Open", disabled: expanded, fontSize, icon: icons.ChevronDownIcon, mode: "bleed", padding: openButtonPadding, ...openButtonProps, onClick: handleOpenClick }) }) : void 0, $[98] = disabled, $[99] = expanded, $[100] = fontSize, $[101] = handleOpenClick, $[102] = openButton, $[103] = openButtonBoxPadding, $[104] = openButtonPadding, $[105] = openButtonProps, $[106] = readOnly, $[107] = t37) : t37 = $[107];
472
+ const openButtonNode = t37;
473
+ let t38;
469
474
  bb1: {
470
475
  if (query === null) {
471
476
  if (value !== null) {
472
- let t382;
473
- $[107] !== currentOption || $[108] !== renderValue || $[109] !== value ? (t382 = renderValue(value, currentOption), $[107] = currentOption, $[108] = renderValue, $[109] = value, $[110] = t382) : t382 = $[110], t37 = t382;
477
+ let t392;
478
+ $[108] !== currentOption || $[109] !== renderValue || $[110] !== value ? (t392 = renderValue(value, currentOption), $[108] = currentOption, $[109] = renderValue, $[110] = value, $[111] = t392) : t392 = $[111], t38 = t392;
474
479
  break bb1;
475
480
  }
476
- t37 = "";
481
+ t38 = "";
477
482
  break bb1;
478
483
  }
479
- t37 = query;
484
+ t38 = query;
480
485
  }
481
- const inputValue = t37;
482
- let t38;
483
- $[111] !== listFocused ? (t38 = (event_5) => {
484
- event_5.key === "Tab" && listFocused && inputElementRef.current?.focus();
485
- }, $[111] = listFocused, $[112] = t38) : t38 = $[112];
486
- const handleListBoxKeyDown = t38;
486
+ const inputValue = t38;
487
487
  let t39;
488
+ $[112] !== listFocused ? (t39 = (event_5) => {
489
+ event_5.key === "Tab" && listFocused && inputElementRef.current?.focus();
490
+ }, $[112] = listFocused, $[113] = t39) : t39 = $[113];
491
+ const handleListBoxKeyDown = t39;
492
+ let t40;
488
493
  bb2: {
489
494
  if (filteredOptions.length === 0) {
490
- t39 = null;
495
+ t40 = null;
491
496
  break bb2;
492
497
  }
493
- let t402;
494
- if ($[113] !== activeValue || $[114] !== currentOption || $[115] !== filteredOptions || $[116] !== handleOptionSelect || $[117] !== id || $[118] !== listFocused || $[119] !== loading || $[120] !== renderOption) {
495
- let t413;
496
- $[122] !== activeValue || $[123] !== currentOption || $[124] !== handleOptionSelect || $[125] !== id || $[126] !== listFocused || $[127] !== loading || $[128] !== renderOption ? (t413 = (option_0) => {
498
+ let t412;
499
+ if ($[114] !== activeValue || $[115] !== currentOption || $[116] !== filteredOptions || $[117] !== handleOptionSelect || $[118] !== id || $[119] !== listFocused || $[120] !== loading || $[121] !== renderOption) {
500
+ let t423;
501
+ $[123] !== activeValue || $[124] !== currentOption || $[125] !== handleOptionSelect || $[126] !== id || $[127] !== listFocused || $[128] !== loading || $[129] !== renderOption ? (t423 = (option_0) => {
497
502
  const active = activeValue !== null ? option_0.value === activeValue : currentOption === option_0;
498
503
  return /* @__PURE__ */ jsxRuntime.jsx(AutocompleteOption, { id: `${id}-option-${option_0.value}`, onSelect: handleOptionSelect, selected: active, value: option_0.value, children: react.cloneElement(renderOption(option_0), {
499
504
  disabled: loading,
500
505
  selected: active,
501
506
  tabIndex: listFocused && active ? 0 : -1
502
507
  }) }, option_0.value);
503
- }, $[122] = activeValue, $[123] = currentOption, $[124] = handleOptionSelect, $[125] = id, $[126] = listFocused, $[127] = loading, $[128] = renderOption, $[129] = t413) : t413 = $[129], t402 = filteredOptions.map(t413), $[113] = activeValue, $[114] = currentOption, $[115] = filteredOptions, $[116] = handleOptionSelect, $[117] = id, $[118] = listFocused, $[119] = loading, $[120] = renderOption, $[121] = t402;
508
+ }, $[123] = activeValue, $[124] = currentOption, $[125] = handleOptionSelect, $[126] = id, $[127] = listFocused, $[128] = loading, $[129] = renderOption, $[130] = t423) : t423 = $[130], t412 = filteredOptions.map(t423), $[114] = activeValue, $[115] = currentOption, $[116] = filteredOptions, $[117] = handleOptionSelect, $[118] = id, $[119] = listFocused, $[120] = loading, $[121] = renderOption, $[122] = t412;
504
509
  } else
505
- t402 = $[121];
506
- let t412;
507
- $[130] !== listBoxId || $[131] !== t402 ? (t412 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Stack, { as: "ul", "aria-multiselectable": !1, "data-ui": "AutoComplete__resultsList", id: listBoxId, ref: listBoxElementRef, role: "listbox", space: 1, children: t402 }), $[130] = listBoxId, $[131] = t402, $[132] = t412) : t412 = $[132];
510
+ t412 = $[122];
508
511
  let t422;
509
- $[133] !== handleListBoxKeyDown || $[134] !== listBox || $[135] !== t412 ? (t422 = /* @__PURE__ */ jsxRuntime.jsx(ListBox, { "data-ui": "AutoComplete__results", onKeyDown: handleListBoxKeyDown, padding: 1, ...listBox, tabIndex: -1, children: t412 }), $[133] = handleListBoxKeyDown, $[134] = listBox, $[135] = t412, $[136] = t422) : t422 = $[136], t39 = t422;
512
+ $[131] !== listBoxId || $[132] !== t412 ? (t422 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Stack, { as: "ul", "aria-multiselectable": !1, "data-ui": "AutoComplete__resultsList", id: listBoxId, ref: listBoxElementRef, role: "listbox", space: 1, children: t412 }), $[131] = listBoxId, $[132] = t412, $[133] = t422) : t422 = $[133];
513
+ let t432;
514
+ $[134] !== handleListBoxKeyDown || $[135] !== listBox || $[136] !== t422 ? (t432 = /* @__PURE__ */ jsxRuntime.jsx(ListBox, { "data-ui": "AutoComplete__results", onKeyDown: handleListBoxKeyDown, padding: 1, ...listBox, tabIndex: -1, children: t422 }), $[134] = handleListBoxKeyDown, $[135] = listBox, $[136] = t422, $[137] = t432) : t432 = $[137], t40 = t432;
510
515
  }
511
- const content2 = t39;
512
- let t40;
516
+ const content2 = t40;
517
+ let t41;
513
518
  bb3: {
514
519
  if (renderPopover) {
515
- const t413 = !expanded;
516
- let t422;
517
- $[137] !== content2 || $[138] !== handlePopoverMouseEnter || $[139] !== handlePopoverMouseLeave || $[140] !== inputElement || $[141] !== renderPopover || $[142] !== t413 ? (t422 = /* @__PURE__ */ jsxRuntime.jsx(RenderPopover, { content: content2, hidden: t413, inputElement, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, resultsPopoverElementRef, renderPopover }), $[137] = content2, $[138] = handlePopoverMouseEnter, $[139] = handlePopoverMouseLeave, $[140] = inputElement, $[141] = renderPopover, $[142] = t413, $[143] = t422) : t422 = $[143], t40 = t422;
520
+ const t423 = !expanded;
521
+ let t432;
522
+ $[138] !== content2 || $[139] !== handlePopoverMouseEnter || $[140] !== handlePopoverMouseLeave || $[141] !== inputElement || $[142] !== renderPopover || $[143] !== t423 ? (t432 = /* @__PURE__ */ jsxRuntime.jsx(RenderPopover, { content: content2, hidden: t423, inputElement, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, resultsPopoverElementRef, renderPopover }), $[138] = content2, $[139] = handlePopoverMouseEnter, $[140] = handlePopoverMouseLeave, $[141] = inputElement, $[142] = renderPopover, $[143] = t423, $[144] = t432) : t432 = $[144], t41 = t432;
518
523
  break bb3;
519
524
  }
520
525
  if (filteredOptionsLen === 0) {
521
- t40 = null;
526
+ t41 = null;
522
527
  break bb3;
523
528
  }
524
- let t412;
525
- $[144] !== content2 || $[145] !== expanded || $[146] !== handlePopoverMouseEnter || $[147] !== handlePopoverMouseLeave || $[148] !== inputElement || $[149] !== popover || $[150] !== radius ? (t412 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Popover, { arrow: !1, constrainSize: !0, content: content2, fallbackPlacements: AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS, matchReferenceWidth: !0, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, open: expanded, overflow: "auto", placement: AUTOCOMPLETE_POPOVER_PLACEMENT, portal: !0, radius, ref: resultsPopoverElementRef, referenceElement: inputElement, ...popover }), $[144] = content2, $[145] = expanded, $[146] = handlePopoverMouseEnter, $[147] = handlePopoverMouseLeave, $[148] = inputElement, $[149] = popover, $[150] = radius, $[151] = t412) : t412 = $[151], t40 = t412;
529
+ let t422;
530
+ $[145] !== content2 || $[146] !== expanded || $[147] !== handlePopoverMouseEnter || $[148] !== handlePopoverMouseLeave || $[149] !== inputElement || $[150] !== popover || $[151] !== radius ? (t422 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Popover, { arrow: !1, constrainSize: !0, content: content2, fallbackPlacements: AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS, matchReferenceWidth: !0, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, open: expanded, overflow: "auto", placement: AUTOCOMPLETE_POPOVER_PLACEMENT, portal: !0, radius, ref: resultsPopoverElementRef, referenceElement: inputElement, ...popover }), $[145] = content2, $[146] = expanded, $[147] = handlePopoverMouseEnter, $[148] = handlePopoverMouseLeave, $[149] = inputElement, $[150] = popover, $[151] = radius, $[152] = t422) : t422 = $[152], t41 = t422;
526
531
  }
527
- const results = t40, t41 = loading && AnimatedSpinnerIcon;
528
- let t42;
529
- $[152] === Symbol.for("react.memo_cache_sentinel") ? (t42 = (node) => {
530
- react.startTransition(() => setInputElement(node));
531
- }, $[152] = t42) : t42 = $[152];
532
- const t43 = suffix || openButtonNode;
532
+ const results = t41, t42 = loading && AnimatedSpinnerIcon, t43 = suffix || openButtonNode;
533
533
  let t44;
534
- $[153] !== activeItemId || $[154] !== border || $[155] !== clearButton || $[156] !== customValidity || $[157] !== disabled || $[158] !== expanded || $[159] !== fontSize || $[160] !== handleClearButtonClick || $[161] !== handleInputChange || $[162] !== handleInputFocus || $[163] !== icon || $[164] !== id || $[165] !== inputValue || $[166] !== listBoxId || $[167] !== padding || $[168] !== prefix || $[169] !== radius || $[170] !== readOnly || $[171] !== restProps || $[172] !== t41 || $[173] !== t43 ? (t44 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.TextInput, { ...restProps, "aria-activedescendant": activeItemId, "aria-autocomplete": "list", "aria-expanded": expanded, "aria-owns": listBoxId, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", border, clearButton, customValidity, disabled, fontSize, icon, iconRight: t41, id, inputMode: "search", onChange: handleInputChange, onClear: handleClearButtonClick, onFocus: handleInputFocus, padding, prefix, radius, readOnly, ref: t42, role: "combobox", spellCheck: !1, suffix: t43, value: inputValue }), $[153] = activeItemId, $[154] = border, $[155] = clearButton, $[156] = customValidity, $[157] = disabled, $[158] = expanded, $[159] = fontSize, $[160] = handleClearButtonClick, $[161] = handleInputChange, $[162] = handleInputFocus, $[163] = icon, $[164] = id, $[165] = inputValue, $[166] = listBoxId, $[167] = padding, $[168] = prefix, $[169] = radius, $[170] = readOnly, $[171] = restProps, $[172] = t41, $[173] = t43, $[174] = t44) : t44 = $[174];
534
+ $[153] !== activeItemId || $[154] !== border || $[155] !== clearButton || $[156] !== customValidity || $[157] !== disabled || $[158] !== expanded || $[159] !== fontSize || $[160] !== handleClearButtonClick || $[161] !== handleInputChange || $[162] !== handleInputFocus || $[163] !== icon || $[164] !== id || $[165] !== inputValue || $[166] !== listBoxId || $[167] !== padding || $[168] !== prefix || $[169] !== radius || $[170] !== readOnly || $[171] !== restProps || $[172] !== t42 || $[173] !== t43 ? (t44 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.TextInput, { ...restProps, "aria-activedescendant": activeItemId, "aria-autocomplete": "list", "aria-expanded": expanded, "aria-owns": listBoxId, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", border, clearButton, customValidity, disabled, fontSize, icon, iconRight: t42, id, inputMode: "search", onChange: handleInputChange, onClear: handleClearButtonClick, onFocus: handleInputFocus, padding, prefix, radius, readOnly, ref: setInputElement, role: "combobox", spellCheck: !1, suffix: t43, value: inputValue }), $[153] = activeItemId, $[154] = border, $[155] = clearButton, $[156] = customValidity, $[157] = disabled, $[158] = expanded, $[159] = fontSize, $[160] = handleClearButtonClick, $[161] = handleInputChange, $[162] = handleInputFocus, $[163] = icon, $[164] = id, $[165] = inputValue, $[166] = listBoxId, $[167] = padding, $[168] = prefix, $[169] = radius, $[170] = readOnly, $[171] = restProps, $[172] = t42, $[173] = t43, $[174] = t44) : t44 = $[174];
535
535
  let t45;
536
536
  return $[175] !== handleRootBlur || $[176] !== handleRootFocus || $[177] !== handleRootKeyDown || $[178] !== results || $[179] !== t44 ? (t45 = /* @__PURE__ */ jsxRuntime.jsxs(StyledAutocomplete, { "data-ui": "Autocomplete", onBlur: handleRootBlur, onFocus: handleRootFocus, onKeyDown: handleRootKeyDown, ref: rootElementRef, children: [
537
537
  t44,
@@ -1790,7 +1790,7 @@ const StyledTreeItem = /* @__PURE__ */ styledComponents.styled.li.withConfig({
1790
1790
  componentId: "sc-iiskig-2"
1791
1791
  })`& > svg{transition:transform 100ms;}`;
1792
1792
  function TreeItem(props) {
1793
- const $ = reactCompilerRuntime.c(112);
1793
+ const $ = reactCompilerRuntime.c(113);
1794
1794
  let IconComponent, children, href, idProp, linkAs, muted, onClick, restProps, t0, t1, t2, t3, t4, text, weight;
1795
1795
  $[0] !== props ? ({
1796
1796
  children,
@@ -1809,96 +1809,101 @@ function TreeItem(props) {
1809
1809
  weight,
1810
1810
  ...restProps
1811
1811
  } = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = href, $[4] = idProp, $[5] = linkAs, $[6] = muted, $[7] = onClick, $[8] = restProps, $[9] = t0, $[10] = t1, $[11] = t2, $[12] = t3, $[13] = t4, $[14] = text, $[15] = weight) : (IconComponent = $[1], children = $[2], href = $[3], idProp = $[4], linkAs = $[5], muted = $[6], onClick = $[7], restProps = $[8], t0 = $[9], t1 = $[10], t2 = $[11], t3 = $[12], t4 = $[13], text = $[14], weight = $[15]);
1812
- const expandedProp = t0 === void 0 ? !1 : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, selected = t3 === void 0 ? !1 : t3, space = t4 === void 0 ? 2 : t4, [rootElement, setRootElement] = react.useState(null), treeitemRef = react.useRef(null), tree = useTree(), {
1812
+ const expandedProp = t0 === void 0 ? !1 : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, selected = t3 === void 0 ? !1 : t3, space = t4 === void 0 ? 2 : t4, [rootElement, _setRootElement] = react.useState(null);
1813
+ let t5;
1814
+ $[16] === Symbol.for("react.memo_cache_sentinel") ? (t5 = (node) => {
1815
+ react.startTransition(() => _setRootElement(node));
1816
+ }, $[16] = t5) : t5 = $[16];
1817
+ const setRootElement = t5, treeitemRef = react.useRef(null), tree = useTree(), {
1813
1818
  path,
1814
1819
  registerItem,
1815
1820
  setExpanded,
1816
1821
  setFocusedElement
1817
1822
  } = tree, _id = react.useId(), id = idProp || _id;
1818
- let t5, t6;
1819
- if ($[16] !== id || $[17] !== path) {
1823
+ let t6, t7;
1824
+ if ($[17] !== id || $[18] !== path) {
1820
1825
  const itemPath = path.concat([id || ""]);
1821
- t5 = itemPath, t6 = itemPath.join("/"), $[16] = id, $[17] = path, $[18] = t5, $[19] = t6;
1826
+ t6 = itemPath, t7 = itemPath.join("/"), $[17] = id, $[18] = path, $[19] = t6, $[20] = t7;
1822
1827
  } else
1823
- t5 = $[18], t6 = $[19];
1824
- let t7;
1825
- $[20] !== t5 || $[21] !== t6 ? (t7 = [t5, t6], $[20] = t5, $[21] = t6, $[22] = t7) : t7 = $[22];
1826
- const [itemPath_0, itemKey] = t7, itemState = tree.state[itemKey], focused = tree.focusedElement === rootElement, expanded = itemState?.expanded === void 0 ? expandedProp : itemState?.expanded || !1, tabIndex = tree.focusedElement && tree.focusedElement === rootElement ? 0 : -1, t8 = tree.level + 1;
1827
- let t9;
1828
- $[23] !== itemPath_0 || $[24] !== t8 || $[25] !== tree ? (t9 = {
1828
+ t6 = $[19], t7 = $[20];
1829
+ let t8;
1830
+ $[21] !== t6 || $[22] !== t7 ? (t8 = [t6, t7], $[21] = t6, $[22] = t7, $[23] = t8) : t8 = $[23];
1831
+ const [itemPath_0, itemKey] = t8, itemState = tree.state[itemKey], focused = tree.focusedElement === rootElement, expanded = itemState?.expanded === void 0 ? expandedProp : itemState?.expanded || !1, tabIndex = tree.focusedElement && tree.focusedElement === rootElement ? 0 : -1, t9 = tree.level + 1;
1832
+ let t10;
1833
+ $[24] !== itemPath_0 || $[25] !== t9 || $[26] !== tree ? (t10 = {
1829
1834
  ...tree,
1830
- level: t8,
1835
+ level: t9,
1831
1836
  path: itemPath_0
1832
- }, $[23] = itemPath_0, $[24] = t8, $[25] = tree, $[26] = t9) : t9 = $[26];
1833
- const contextValue = t9;
1834
- let t10;
1835
- $[27] !== expanded || $[28] !== itemKey || $[29] !== onClick || $[30] !== rootElement || $[31] !== setExpanded || $[32] !== setFocusedElement ? (t10 = (event) => {
1837
+ }, $[24] = itemPath_0, $[25] = t9, $[26] = tree, $[27] = t10) : t10 = $[27];
1838
+ const contextValue = t10;
1839
+ let t11;
1840
+ $[28] !== expanded || $[29] !== itemKey || $[30] !== onClick || $[31] !== rootElement || $[32] !== setExpanded || $[33] !== setFocusedElement ? (t11 = (event) => {
1836
1841
  onClick && onClick(event);
1837
1842
  const target = event.target;
1838
1843
  target instanceof HTMLElement && (target.getAttribute("data-ui") === "TreeItem" || target.closest('[data-ui="TreeItem__box"]')) && (event.stopPropagation(), setExpanded(itemKey, !expanded), setFocusedElement(rootElement));
1839
- }, $[27] = expanded, $[28] = itemKey, $[29] = onClick, $[30] = rootElement, $[31] = setExpanded, $[32] = setFocusedElement, $[33] = t10) : t10 = $[33];
1840
- const handleClick = t10;
1841
- let t11;
1842
- $[34] !== focused || $[35] !== rootElement ? (t11 = (event_0) => {
1844
+ }, $[28] = expanded, $[29] = itemKey, $[30] = onClick, $[31] = rootElement, $[32] = setExpanded, $[33] = setFocusedElement, $[34] = t11) : t11 = $[34];
1845
+ const handleClick = t11;
1846
+ let t12;
1847
+ $[35] !== focused || $[36] !== rootElement ? (t12 = (event_0) => {
1843
1848
  focused && event_0.key === "Enter" && (treeitemRef.current || rootElement)?.click();
1844
- }, $[34] = focused, $[35] = rootElement, $[36] = t11) : t11 = $[36];
1845
- const handleKeyDown = t11;
1846
- let t12, t13;
1847
- $[37] !== expanded || $[38] !== itemKey || $[39] !== registerItem || $[40] !== rootElement || $[41] !== selected ? (t12 = () => {
1849
+ }, $[35] = focused, $[36] = rootElement, $[37] = t12) : t12 = $[37];
1850
+ const handleKeyDown = t12;
1851
+ let t13, t14;
1852
+ $[38] !== expanded || $[39] !== itemKey || $[40] !== registerItem || $[41] !== rootElement || $[42] !== selected ? (t13 = () => {
1848
1853
  if (rootElement)
1849
1854
  return registerItem(rootElement, itemKey, expanded, selected);
1850
- }, t13 = [expanded, itemKey, registerItem, rootElement, selected], $[37] = expanded, $[38] = itemKey, $[39] = registerItem, $[40] = rootElement, $[41] = selected, $[42] = t12, $[43] = t13) : (t12 = $[42], t13 = $[43]), react.useEffect(t12, t13);
1851
- const t14 = IconComponent || children ? "visible" : "hidden";
1852
- let t15;
1853
- $[44] !== t14 ? (t15 = {
1854
- visibility: t14,
1855
- pointerEvents: "none"
1856
- }, $[44] = t14, $[45] = t15) : t15 = $[45];
1855
+ }, t14 = [expanded, itemKey, registerItem, rootElement, selected], $[38] = expanded, $[39] = itemKey, $[40] = registerItem, $[41] = rootElement, $[42] = selected, $[43] = t13, $[44] = t14) : (t13 = $[43], t14 = $[44]), react.useEffect(t13, t14);
1856
+ const t15 = IconComponent || children ? "visible" : "hidden";
1857
1857
  let t16;
1858
- $[46] !== IconComponent || $[47] !== fontSize || $[48] !== muted || $[49] !== weight ? (t16 = IconComponent && /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { muted, size: fontSize, weight, children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {}) }), $[46] = IconComponent, $[47] = fontSize, $[48] = muted, $[49] = weight, $[50] = t16) : t16 = $[50];
1858
+ $[45] !== t15 ? (t16 = {
1859
+ visibility: t15,
1860
+ pointerEvents: "none"
1861
+ }, $[45] = t15, $[46] = t16) : t16 = $[46];
1859
1862
  let t17;
1860
- $[51] !== IconComponent || $[52] !== expanded || $[53] !== fontSize || $[54] !== muted || $[55] !== weight ? (t17 = !IconComponent && /* @__PURE__ */ jsxRuntime.jsx(ToggleArrowText, { muted, size: fontSize, weight, children: /* @__PURE__ */ jsxRuntime.jsx(icons.ToggleArrowRightIcon, { style: {
1861
- transform: expanded ? "rotate(90deg)" : void 0
1862
- } }) }), $[51] = IconComponent, $[52] = expanded, $[53] = fontSize, $[54] = muted, $[55] = weight, $[56] = t17) : t17 = $[56];
1863
+ $[47] !== IconComponent || $[48] !== fontSize || $[49] !== muted || $[50] !== weight ? (t17 = IconComponent && /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { muted, size: fontSize, weight, children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {}) }), $[47] = IconComponent, $[48] = fontSize, $[49] = muted, $[50] = weight, $[51] = t17) : t17 = $[51];
1863
1864
  let t18;
1864
- $[57] !== space || $[58] !== t15 || $[59] !== t16 || $[60] !== t17 ? (t18 = /* @__PURE__ */ jsxRuntime.jsxs(_visualEditing.Box, { marginRight: space, style: t15, children: [
1865
- t16,
1866
- t17
1867
- ] }), $[57] = space, $[58] = t15, $[59] = t16, $[60] = t17, $[61] = t18) : t18 = $[61];
1865
+ $[52] !== IconComponent || $[53] !== expanded || $[54] !== fontSize || $[55] !== muted || $[56] !== weight ? (t18 = !IconComponent && /* @__PURE__ */ jsxRuntime.jsx(ToggleArrowText, { muted, size: fontSize, weight, children: /* @__PURE__ */ jsxRuntime.jsx(icons.ToggleArrowRightIcon, { style: {
1866
+ transform: expanded ? "rotate(90deg)" : void 0
1867
+ } }) }), $[52] = IconComponent, $[53] = expanded, $[54] = fontSize, $[55] = muted, $[56] = weight, $[57] = t18) : t18 = $[57];
1868
1868
  let t19;
1869
- $[62] !== fontSize || $[63] !== muted || $[64] !== text || $[65] !== weight ? (t19 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { flex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { muted, size: fontSize, textOverflow: "ellipsis", weight, children: text }) }), $[62] = fontSize, $[63] = muted, $[64] = text, $[65] = weight, $[66] = t19) : t19 = $[66];
1869
+ $[58] !== space || $[59] !== t16 || $[60] !== t17 || $[61] !== t18 ? (t19 = /* @__PURE__ */ jsxRuntime.jsxs(_visualEditing.Box, { marginRight: space, style: t16, children: [
1870
+ t17,
1871
+ t18
1872
+ ] }), $[58] = space, $[59] = t16, $[60] = t17, $[61] = t18, $[62] = t19) : t19 = $[62];
1870
1873
  let t20;
1871
- $[67] !== padding || $[68] !== t18 || $[69] !== t19 ? (t20 = /* @__PURE__ */ jsxRuntime.jsxs(_visualEditing.Flex, { padding, children: [
1872
- t18,
1873
- t19
1874
- ] }), $[67] = padding, $[68] = t18, $[69] = t19, $[70] = t20) : t20 = $[70];
1875
- const content2 = t20;
1874
+ $[63] !== fontSize || $[64] !== muted || $[65] !== text || $[66] !== weight ? (t20 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { flex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { muted, size: fontSize, textOverflow: "ellipsis", weight, children: text }) }), $[63] = fontSize, $[64] = muted, $[65] = text, $[66] = weight, $[67] = t20) : t20 = $[67];
1875
+ let t21;
1876
+ $[68] !== padding || $[69] !== t19 || $[70] !== t20 ? (t21 = /* @__PURE__ */ jsxRuntime.jsxs(_visualEditing.Flex, { padding, children: [
1877
+ t19,
1878
+ t20
1879
+ ] }), $[68] = padding, $[69] = t19, $[70] = t20, $[71] = t21) : t21 = $[71];
1880
+ const content2 = t21;
1876
1881
  if (href) {
1877
- const t212 = selected ? "" : void 0;
1878
- let t222;
1879
- $[71] !== content2 || $[72] !== expanded || $[73] !== href || $[74] !== linkAs || $[75] !== tabIndex || $[76] !== tree.level ? (t222 = /* @__PURE__ */ jsxRuntime.jsx(TreeItemBox, { $level: tree.level, "aria-expanded": expanded, as: linkAs, "data-ui": "TreeItem__box", href, ref: treeitemRef, role: "treeitem", tabIndex, children: content2 }), $[71] = content2, $[72] = expanded, $[73] = href, $[74] = linkAs, $[75] = tabIndex, $[76] = tree.level, $[77] = t222) : t222 = $[77];
1882
+ const t222 = selected ? "" : void 0;
1880
1883
  let t232;
1881
- $[78] !== children || $[79] !== expanded ? (t232 = children && /* @__PURE__ */ jsxRuntime.jsx(TreeGroup, { hidden: !expanded, children }), $[78] = children, $[79] = expanded, $[80] = t232) : t232 = $[80];
1884
+ $[72] !== content2 || $[73] !== expanded || $[74] !== href || $[75] !== linkAs || $[76] !== tabIndex || $[77] !== tree.level ? (t232 = /* @__PURE__ */ jsxRuntime.jsx(TreeItemBox, { $level: tree.level, "aria-expanded": expanded, as: linkAs, "data-ui": "TreeItem__box", href, ref: treeitemRef, role: "treeitem", tabIndex, children: content2 }), $[72] = content2, $[73] = expanded, $[74] = href, $[75] = linkAs, $[76] = tabIndex, $[77] = tree.level, $[78] = t232) : t232 = $[78];
1882
1885
  let t242;
1883
- $[81] !== contextValue || $[82] !== t232 ? (t242 = /* @__PURE__ */ jsxRuntime.jsx(TreeContext.Provider, { value: contextValue, children: t232 }), $[81] = contextValue, $[82] = t232, $[83] = t242) : t242 = $[83];
1886
+ $[79] !== children || $[80] !== expanded ? (t242 = children && /* @__PURE__ */ jsxRuntime.jsx(TreeGroup, { hidden: !expanded, children }), $[79] = children, $[80] = expanded, $[81] = t242) : t242 = $[81];
1884
1887
  let t252;
1885
- return $[84] !== handleClick || $[85] !== id || $[86] !== itemKey || $[87] !== restProps || $[88] !== t212 || $[89] !== t222 || $[90] !== t242 ? (t252 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTreeItem, { "data-selected": t212, "data-tree-id": id, "data-tree-key": itemKey, "data-ui": "TreeItem", ...restProps, onClick: handleClick, ref: setRootElement, role: "none", children: [
1886
- t222,
1887
- t242
1888
- ] }), $[84] = handleClick, $[85] = id, $[86] = itemKey, $[87] = restProps, $[88] = t212, $[89] = t222, $[90] = t242, $[91] = t252) : t252 = $[91], t252;
1888
+ $[82] !== contextValue || $[83] !== t242 ? (t252 = /* @__PURE__ */ jsxRuntime.jsx(TreeContext.Provider, { value: contextValue, children: t242 }), $[82] = contextValue, $[83] = t242, $[84] = t252) : t252 = $[84];
1889
+ let t262;
1890
+ return $[85] !== handleClick || $[86] !== id || $[87] !== itemKey || $[88] !== restProps || $[89] !== t222 || $[90] !== t232 || $[91] !== t252 ? (t262 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTreeItem, { "data-selected": t222, "data-tree-id": id, "data-tree-key": itemKey, "data-ui": "TreeItem", ...restProps, onClick: handleClick, ref: setRootElement, role: "none", children: [
1891
+ t232,
1892
+ t252
1893
+ ] }), $[85] = handleClick, $[86] = id, $[87] = itemKey, $[88] = restProps, $[89] = t222, $[90] = t232, $[91] = t252, $[92] = t262) : t262 = $[92], t262;
1889
1894
  }
1890
- const t21 = selected ? "" : void 0;
1891
- let t22;
1892
- $[92] !== content2 || $[93] !== tree.level ? (t22 = /* @__PURE__ */ jsxRuntime.jsx(TreeItemBox, { $level: tree.level, as: "div", "data-ui": "TreeItem__box", children: content2 }), $[92] = content2, $[93] = tree.level, $[94] = t22) : t22 = $[94];
1895
+ const t22 = selected ? "" : void 0;
1893
1896
  let t23;
1894
- $[95] !== children || $[96] !== expanded ? (t23 = children && /* @__PURE__ */ jsxRuntime.jsx(TreeGroup, { expanded, children }), $[95] = children, $[96] = expanded, $[97] = t23) : t23 = $[97];
1897
+ $[93] !== content2 || $[94] !== tree.level ? (t23 = /* @__PURE__ */ jsxRuntime.jsx(TreeItemBox, { $level: tree.level, as: "div", "data-ui": "TreeItem__box", children: content2 }), $[93] = content2, $[94] = tree.level, $[95] = t23) : t23 = $[95];
1895
1898
  let t24;
1896
- $[98] !== contextValue || $[99] !== t23 ? (t24 = /* @__PURE__ */ jsxRuntime.jsx(TreeContext.Provider, { value: contextValue, children: t23 }), $[98] = contextValue, $[99] = t23, $[100] = t24) : t24 = $[100];
1899
+ $[96] !== children || $[97] !== expanded ? (t24 = children && /* @__PURE__ */ jsxRuntime.jsx(TreeGroup, { expanded, children }), $[96] = children, $[97] = expanded, $[98] = t24) : t24 = $[98];
1897
1900
  let t25;
1898
- return $[101] !== expanded || $[102] !== handleClick || $[103] !== handleKeyDown || $[104] !== id || $[105] !== itemKey || $[106] !== restProps || $[107] !== t21 || $[108] !== t22 || $[109] !== t24 || $[110] !== tabIndex ? (t25 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTreeItem, { "data-selected": t21, "data-ui": "TreeItem", "data-tree-id": id, "data-tree-key": itemKey, ...restProps, "aria-expanded": expanded, onClick: handleClick, onKeyDown: handleKeyDown, ref: setRootElement, role: "treeitem", tabIndex, children: [
1899
- t22,
1900
- t24
1901
- ] }), $[101] = expanded, $[102] = handleClick, $[103] = handleKeyDown, $[104] = id, $[105] = itemKey, $[106] = restProps, $[107] = t21, $[108] = t22, $[109] = t24, $[110] = tabIndex, $[111] = t25) : t25 = $[111], t25;
1901
+ $[99] !== contextValue || $[100] !== t24 ? (t25 = /* @__PURE__ */ jsxRuntime.jsx(TreeContext.Provider, { value: contextValue, children: t24 }), $[99] = contextValue, $[100] = t24, $[101] = t25) : t25 = $[101];
1902
+ let t26;
1903
+ return $[102] !== expanded || $[103] !== handleClick || $[104] !== handleKeyDown || $[105] !== id || $[106] !== itemKey || $[107] !== restProps || $[108] !== t22 || $[109] !== t23 || $[110] !== t25 || $[111] !== tabIndex ? (t26 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTreeItem, { "data-selected": t22, "data-ui": "TreeItem", "data-tree-id": id, "data-tree-key": itemKey, ...restProps, "aria-expanded": expanded, onClick: handleClick, onKeyDown: handleKeyDown, ref: setRootElement, role: "treeitem", tabIndex, children: [
1904
+ t23,
1905
+ t25
1906
+ ] }), $[102] = expanded, $[103] = handleClick, $[104] = handleKeyDown, $[105] = id, $[106] = itemKey, $[107] = restProps, $[108] = t22, $[109] = t23, $[110] = t25, $[111] = tabIndex, $[112] = t26) : t26 = $[112], t26;
1902
1907
  }
1903
1908
  TreeItem.displayName = "TreeItem";
1904
1909
  exports.Arrow = _visualEditing.Arrow;