@overmap-ai/core 1.0.58-export-overmap-reducer.4 → 1.0.58-export-overmap-reducer.6

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.
@@ -8,7 +8,7 @@ var _a;
8
8
  import * as React from "react";
9
9
  import React__default, { useState, useEffect, useRef, useMemo, useCallback, createContext, createElement, useContext, forwardRef, Children, isValidElement, cloneElement, Fragment, useLayoutEffect, useReducer, memo, lazy, Suspense } from "react";
10
10
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
11
- import { unsafeShowToast, AlertDialogProvider, ToastProvider, DefaultTheme, IconButton, RiIcon, useSeverityColor, TextArea, Select, useToast, Badge, MultiSelect, Overlay, Button, Spinner, useViewportSize, ButtonGroup, IconColorUtility, useSize, ToggleButton, OvermapItem, ButtonList, divButtonProps, OvermapDropdownMenu, Input, useAlertDialog } from "@overmap-ai/blocks";
11
+ import { unsafeShowToast, AlertDialogProvider, ToastProvider, DefaultTheme, IconButton, RiIcon, useSeverityColor, TextArea, Select, useToast, Badge, MultiSelect, Overlay, Button, Spinner, useViewportSize, ButtonGroup, IconColorUtility, useSize, ToggleButton, OvermapItem, ButtonList, divButtonProps, OvermapMenu, Input, useAlertDialog } from "@overmap-ai/blocks";
12
12
  import { DepGraph } from "dependency-graph";
13
13
  import saveAs$1, { saveAs } from "file-saver";
14
14
  import { offline as offline$1 } from "@redux-offline/redux-offline";
@@ -26,6 +26,7 @@ import { openDB } from "idb";
26
26
  import { useField, useFormikContext, useFormik, FormikProvider } from "formik";
27
27
  import * as ReactDOM from "react-dom";
28
28
  import ReactDOM__default, { flushSync } from "react-dom";
29
+ import { RiCheckboxCircleLine, RiHashtag, RiCalendarLine, RiInputField, RiAlignJustify, RiListCheck, RiMenuFoldLine, RiCheckboxLine, RiQrCodeLine, RiUpload2Line, RiDeleteBin2Line, RiImageLine, RiArrowDownLine, RiArrowUpLine, RiFileCopyLine } from "react-icons/ri";
29
30
  import get from "lodash.get";
30
31
  import Linkify from "linkify-react";
31
32
  import { DragDropContext, Droppable, Draggable } from "@hello-pangea/dnd";
@@ -8660,8 +8661,8 @@ var classnames = { exports: {} };
8660
8661
  })(classnames);
8661
8662
  var classnamesExports = classnames.exports;
8662
8663
  const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
8663
- function _extends$1() {
8664
- _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
8664
+ function _extends() {
8665
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
8665
8666
  for (var i = 1; i < arguments.length; i++) {
8666
8667
  var source = arguments[i];
8667
8668
  for (var key in source) {
@@ -8672,7 +8673,7 @@ function _extends$1() {
8672
8673
  }
8673
8674
  return target;
8674
8675
  };
8675
- return _extends$1.apply(this, arguments);
8676
+ return _extends.apply(this, arguments);
8676
8677
  }
8677
8678
  function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
8678
8679
  return function handleEvent(event) {
@@ -8803,11 +8804,11 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ forwardRef((pr
8803
8804
  } else
8804
8805
  return child;
8805
8806
  });
8806
- return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends$1({}, slotProps, {
8807
+ return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
8807
8808
  ref: forwardedRef
8808
8809
  }), /* @__PURE__ */ isValidElement(newElement) ? /* @__PURE__ */ cloneElement(newElement, void 0, newChildren) : null);
8809
8810
  }
8810
- return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends$1({}, slotProps, {
8811
+ return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
8811
8812
  ref: forwardedRef
8812
8813
  }), children);
8813
8814
  });
@@ -8885,7 +8886,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
8885
8886
  useEffect(() => {
8886
8887
  window[Symbol.for("radix-ui")] = true;
8887
8888
  }, []);
8888
- return /* @__PURE__ */ createElement(Comp, _extends$1({}, primitiveProps, {
8889
+ return /* @__PURE__ */ createElement(Comp, _extends({}, primitiveProps, {
8889
8890
  ref: forwardedRef
8890
8891
  }));
8891
8892
  });
@@ -9033,7 +9034,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ forwardRef((pr
9033
9034
  document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
9034
9035
  return () => document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
9035
9036
  }, []);
9036
- return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, layerProps, {
9037
+ return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, layerProps, {
9037
9038
  ref: composedRefs,
9038
9039
  style: {
9039
9040
  pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
@@ -10828,19 +10829,6 @@ function useFloating(options) {
10828
10829
  floatingStyles
10829
10830
  }), [data, update, refs, elements, floatingStyles]);
10830
10831
  }
10831
- const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
10832
- const { children, width = 10, height = 5, ...arrowProps } = props;
10833
- return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends$1({}, arrowProps, {
10834
- ref: forwardedRef,
10835
- width,
10836
- height,
10837
- viewBox: "0 0 30 10",
10838
- preserveAspectRatio: "none"
10839
- }), props.asChild ? children : /* @__PURE__ */ createElement("polygon", {
10840
- points: "0,0 30,0 15,10"
10841
- }));
10842
- });
10843
- const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;
10844
10832
  function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
10845
10833
  const [size2, setSize] = useState(void 0);
10846
10834
  $9f79659886946c16$export$e5c5a5f917a5871c(() => {
@@ -10903,7 +10891,7 @@ const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /* @__PURE__ */ forwardRef((pro
10903
10891
  useEffect(() => {
10904
10892
  context.onAnchorChange((virtualRef === null || virtualRef === void 0 ? void 0 : virtualRef.current) || ref.current);
10905
10893
  });
10906
- return virtualRef ? null : /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, anchorProps, {
10894
+ return virtualRef ? null : /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, anchorProps, {
10907
10895
  ref: composedRefs
10908
10896
  }));
10909
10897
  });
@@ -11033,7 +11021,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ forwardRef((pro
11033
11021
  arrowX,
11034
11022
  arrowY,
11035
11023
  shouldHideArrow: cannotCenterArrow
11036
- }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
11024
+ }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
11037
11025
  "data-side": placedSide,
11038
11026
  "data-align": placedAlign
11039
11027
  }, contentProps, {
@@ -11048,52 +11036,6 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ forwardRef((pro
11048
11036
  }
11049
11037
  }))));
11050
11038
  });
11051
- const $cf1ac5d9fe0e8206$var$ARROW_NAME = "PopperArrow";
11052
- const $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE = {
11053
- top: "bottom",
11054
- right: "left",
11055
- bottom: "top",
11056
- left: "right"
11057
- };
11058
- const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /* @__PURE__ */ forwardRef(function $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd02(props, forwardedRef) {
11059
- const { __scopePopper, ...arrowProps } = props;
11060
- const contentContext = $cf1ac5d9fe0e8206$var$useContentContext($cf1ac5d9fe0e8206$var$ARROW_NAME, __scopePopper);
11061
- const baseSide = $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE[contentContext.placedSide];
11062
- return (
11063
- // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
11064
- // doesn't report size as we'd expect on SVG elements.
11065
- // it reports their bounding box which is effectively the largest path inside the SVG.
11066
- /* @__PURE__ */ createElement("span", {
11067
- ref: contentContext.onArrowChange,
11068
- style: {
11069
- position: "absolute",
11070
- left: contentContext.arrowX,
11071
- top: contentContext.arrowY,
11072
- [baseSide]: 0,
11073
- transformOrigin: {
11074
- top: "",
11075
- right: "0 0",
11076
- bottom: "center 0",
11077
- left: "100% 0"
11078
- }[contentContext.placedSide],
11079
- transform: {
11080
- top: "translateY(100%)",
11081
- right: "translateY(50%) rotate(90deg) translateX(-50%)",
11082
- bottom: `rotate(180deg)`,
11083
- left: "translateY(50%) rotate(-90deg) translateX(50%)"
11084
- }[contentContext.placedSide],
11085
- visibility: contentContext.shouldHideArrow ? "hidden" : void 0
11086
- }
11087
- }, /* @__PURE__ */ createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends$1({}, arrowProps, {
11088
- ref: forwardedRef,
11089
- style: {
11090
- ...arrowProps.style,
11091
- // ensures the element can be measured correctly (mostly for if SVG)
11092
- display: "block"
11093
- }
11094
- })))
11095
- );
11096
- });
11097
11039
  function $cf1ac5d9fe0e8206$var$isNotNull(value) {
11098
11040
  return value !== null;
11099
11041
  }
@@ -11148,11 +11090,10 @@ function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement) {
11148
11090
  const $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9 = $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9;
11149
11091
  const $cf1ac5d9fe0e8206$export$b688253958b8dfe7 = $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d;
11150
11092
  const $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 = $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc;
11151
- const $cf1ac5d9fe0e8206$export$21b07c8f274aebd5 = $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0;
11152
11093
  const $f1701beae083dbae$export$602eac185826482c = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
11153
11094
  var _globalThis$document;
11154
11095
  const { container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body, ...portalProps } = props;
11155
- return container ? /* @__PURE__ */ ReactDOM__default.createPortal(/* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, portalProps, {
11096
+ return container ? /* @__PURE__ */ ReactDOM__default.createPortal(/* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, portalProps, {
11156
11097
  ref: forwardedRef
11157
11098
  })), container) : null;
11158
11099
  });
@@ -11312,33 +11253,12 @@ function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp, onChange }) {
11312
11253
  ]);
11313
11254
  return uncontrolledState;
11314
11255
  }
11315
- const $ea1ef594cf570d83$export$439d29a4e110a164 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
11316
- return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({}, props, {
11317
- ref: forwardedRef,
11318
- style: {
11319
- // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
11320
- position: "absolute",
11321
- border: 0,
11322
- width: 1,
11323
- height: 1,
11324
- padding: 0,
11325
- margin: -1,
11326
- overflow: "hidden",
11327
- clip: "rect(0, 0, 0, 0)",
11328
- whiteSpace: "nowrap",
11329
- wordWrap: "normal",
11330
- ...props.style
11331
- }
11332
- }));
11333
- });
11334
- const $ea1ef594cf570d83$export$be92b6f5f03c0fe9 = $ea1ef594cf570d83$export$439d29a4e110a164;
11335
11256
  const [$a093c7e1ec25a057$var$createTooltipContext, $a093c7e1ec25a057$export$1c540a2224f0d865] = $c512c27ab02ef895$export$50c7b4e9d9f19c1("Tooltip", [
11336
11257
  $cf1ac5d9fe0e8206$export$722aac194ae923
11337
11258
  ]);
11338
- const $a093c7e1ec25a057$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923();
11259
+ $cf1ac5d9fe0e8206$export$722aac194ae923();
11339
11260
  const $a093c7e1ec25a057$var$PROVIDER_NAME = "TooltipProvider";
11340
11261
  const $a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION = 700;
11341
- const $a093c7e1ec25a057$var$TOOLTIP_OPEN = "tooltip.open";
11342
11262
  const [$a093c7e1ec25a057$var$TooltipProviderContextProvider, $a093c7e1ec25a057$var$useTooltipProviderContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PROVIDER_NAME);
11343
11263
  const $a093c7e1ec25a057$export$f78649fb9ca566b8 = (props) => {
11344
11264
  const { __scopeTooltip, delayDuration = $a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION, skipDelayDuration = 300, disableHoverableContent = false, children } = props;
@@ -11374,486 +11294,15 @@ const $a093c7e1ec25a057$export$f78649fb9ca566b8 = (props) => {
11374
11294
  }, children);
11375
11295
  };
11376
11296
  const $a093c7e1ec25a057$var$TOOLTIP_NAME = "Tooltip";
11377
- const [$a093c7e1ec25a057$var$TooltipContextProvider, $a093c7e1ec25a057$var$useTooltipContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME);
11378
- const $a093c7e1ec25a057$export$28c660c63b792dea = (props) => {
11379
- const { __scopeTooltip, children, open: openProp, defaultOpen = false, onOpenChange, disableHoverableContent: disableHoverableContentProp, delayDuration: delayDurationProp } = props;
11380
- const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TOOLTIP_NAME, props.__scopeTooltip);
11381
- const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
11382
- const [trigger, setTrigger] = useState(null);
11383
- const contentId = $1746a345f3d73bb7$export$f680877a34711e37();
11384
- const openTimerRef = useRef(0);
11385
- const disableHoverableContent = disableHoverableContentProp !== null && disableHoverableContentProp !== void 0 ? disableHoverableContentProp : providerContext.disableHoverableContent;
11386
- const delayDuration = delayDurationProp !== null && delayDurationProp !== void 0 ? delayDurationProp : providerContext.delayDuration;
11387
- const wasOpenDelayedRef = useRef(false);
11388
- const [open1 = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
11389
- prop: openProp,
11390
- defaultProp: defaultOpen,
11391
- onChange: (open) => {
11392
- if (open) {
11393
- providerContext.onOpen();
11394
- document.dispatchEvent(new CustomEvent($a093c7e1ec25a057$var$TOOLTIP_OPEN));
11395
- } else
11396
- providerContext.onClose();
11397
- onOpenChange === null || onOpenChange === void 0 || onOpenChange(open);
11398
- }
11399
- });
11400
- const stateAttribute = useMemo(() => {
11401
- return open1 ? wasOpenDelayedRef.current ? "delayed-open" : "instant-open" : "closed";
11402
- }, [
11403
- open1
11404
- ]);
11405
- const handleOpen = useCallback(() => {
11406
- window.clearTimeout(openTimerRef.current);
11407
- wasOpenDelayedRef.current = false;
11408
- setOpen(true);
11409
- }, [
11410
- setOpen
11411
- ]);
11412
- const handleClose = useCallback(() => {
11413
- window.clearTimeout(openTimerRef.current);
11414
- setOpen(false);
11415
- }, [
11416
- setOpen
11417
- ]);
11418
- const handleDelayedOpen = useCallback(() => {
11419
- window.clearTimeout(openTimerRef.current);
11420
- openTimerRef.current = window.setTimeout(() => {
11421
- wasOpenDelayedRef.current = true;
11422
- setOpen(true);
11423
- }, delayDuration);
11424
- }, [
11425
- delayDuration,
11426
- setOpen
11427
- ]);
11428
- useEffect(() => {
11429
- return () => window.clearTimeout(openTimerRef.current);
11430
- }, []);
11431
- return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9, popperScope, /* @__PURE__ */ createElement($a093c7e1ec25a057$var$TooltipContextProvider, {
11432
- scope: __scopeTooltip,
11433
- contentId,
11434
- open: open1,
11435
- stateAttribute,
11436
- trigger,
11437
- onTriggerChange: setTrigger,
11438
- onTriggerEnter: useCallback(() => {
11439
- if (providerContext.isOpenDelayed)
11440
- handleDelayedOpen();
11441
- else
11442
- handleOpen();
11443
- }, [
11444
- providerContext.isOpenDelayed,
11445
- handleDelayedOpen,
11446
- handleOpen
11447
- ]),
11448
- onTriggerLeave: useCallback(() => {
11449
- if (disableHoverableContent)
11450
- handleClose();
11451
- else
11452
- window.clearTimeout(openTimerRef.current);
11453
- }, [
11454
- handleClose,
11455
- disableHoverableContent
11456
- ]),
11457
- onOpen: handleOpen,
11458
- onClose: handleClose,
11459
- disableHoverableContent
11460
- }, children));
11461
- };
11462
- const $a093c7e1ec25a057$var$TRIGGER_NAME = "TooltipTrigger";
11463
- const $a093c7e1ec25a057$export$8c610744efcf8a1d = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
11464
- const { __scopeTooltip, ...triggerProps } = props;
11465
- const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$TRIGGER_NAME, __scopeTooltip);
11466
- const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TRIGGER_NAME, __scopeTooltip);
11467
- const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
11468
- const ref = useRef(null);
11469
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref, context.onTriggerChange);
11470
- const isPointerDownRef = useRef(false);
11471
- const hasPointerMoveOpenedRef = useRef(false);
11472
- const handlePointerUp = useCallback(
11473
- () => isPointerDownRef.current = false,
11474
- []
11475
- );
11476
- useEffect(() => {
11477
- return () => document.removeEventListener("pointerup", handlePointerUp);
11478
- }, [
11479
- handlePointerUp
11480
- ]);
11481
- return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$1({
11482
- asChild: true
11483
- }, popperScope), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$1({
11484
- // We purposefully avoid adding `type=button` here because tooltip triggers are also
11485
- // commonly anchors and the anchor `type` attribute signifies MIME type.
11486
- "aria-describedby": context.open ? context.contentId : void 0,
11487
- "data-state": context.stateAttribute
11488
- }, triggerProps, {
11489
- ref: composedRefs,
11490
- onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, (event) => {
11491
- if (event.pointerType === "touch")
11492
- return;
11493
- if (!hasPointerMoveOpenedRef.current && !providerContext.isPointerInTransitRef.current) {
11494
- context.onTriggerEnter();
11495
- hasPointerMoveOpenedRef.current = true;
11496
- }
11497
- }),
11498
- onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, () => {
11499
- context.onTriggerLeave();
11500
- hasPointerMoveOpenedRef.current = false;
11501
- }),
11502
- onPointerDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown, () => {
11503
- isPointerDownRef.current = true;
11504
- document.addEventListener("pointerup", handlePointerUp, {
11505
- once: true
11506
- });
11507
- }),
11508
- onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocus, () => {
11509
- if (!isPointerDownRef.current)
11510
- context.onOpen();
11511
- }),
11512
- onBlur: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlur, context.onClose),
11513
- onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, context.onClose)
11514
- })));
11515
- });
11297
+ $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME);
11516
11298
  const $a093c7e1ec25a057$var$PORTAL_NAME = "TooltipPortal";
11517
- const [$a093c7e1ec25a057$var$PortalProvider, $a093c7e1ec25a057$var$usePortalContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, {
11299
+ $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, {
11518
11300
  forceMount: void 0
11519
11301
  });
11520
- const $a093c7e1ec25a057$export$7b36b8f925ab7497 = (props) => {
11521
- const { __scopeTooltip, forceMount, children, container } = props;
11522
- const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, __scopeTooltip);
11523
- return /* @__PURE__ */ createElement($a093c7e1ec25a057$var$PortalProvider, {
11524
- scope: __scopeTooltip,
11525
- forceMount
11526
- }, /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
11527
- present: forceMount || context.open
11528
- }, /* @__PURE__ */ createElement($f1701beae083dbae$export$602eac185826482c, {
11529
- asChild: true,
11530
- container
11531
- }, children)));
11532
- };
11533
- const $a093c7e1ec25a057$var$CONTENT_NAME = "TooltipContent";
11534
- const $a093c7e1ec25a057$export$e9003e2be37ec060 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
11535
- const portalContext = $a093c7e1ec25a057$var$usePortalContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
11536
- const { forceMount = portalContext.forceMount, side = "top", ...contentProps } = props;
11537
- const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
11538
- return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
11539
- present: forceMount || context.open
11540
- }, context.disableHoverableContent ? /* @__PURE__ */ createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$1({
11541
- side
11542
- }, contentProps, {
11543
- ref: forwardedRef
11544
- })) : /* @__PURE__ */ createElement($a093c7e1ec25a057$var$TooltipContentHoverable, _extends$1({
11545
- side
11546
- }, contentProps, {
11547
- ref: forwardedRef
11548
- })));
11549
- });
11550
- const $a093c7e1ec25a057$var$TooltipContentHoverable = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
11551
- const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
11552
- const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
11553
- const ref = useRef(null);
11554
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
11555
- const [pointerGraceArea, setPointerGraceArea] = useState(null);
11556
- const { trigger, onClose } = context;
11557
- const content = ref.current;
11558
- const { onPointerInTransitChange } = providerContext;
11559
- const handleRemoveGraceArea = useCallback(() => {
11560
- setPointerGraceArea(null);
11561
- onPointerInTransitChange(false);
11562
- }, [
11563
- onPointerInTransitChange
11564
- ]);
11565
- const handleCreateGraceArea = useCallback((event, hoverTarget) => {
11566
- const currentTarget = event.currentTarget;
11567
- const exitPoint = {
11568
- x: event.clientX,
11569
- y: event.clientY
11570
- };
11571
- const exitSide = $a093c7e1ec25a057$var$getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());
11572
- const paddedExitPoints = $a093c7e1ec25a057$var$getPaddedExitPoints(exitPoint, exitSide);
11573
- const hoverTargetPoints = $a093c7e1ec25a057$var$getPointsFromRect(hoverTarget.getBoundingClientRect());
11574
- const graceArea = $a093c7e1ec25a057$var$getHull([
11575
- ...paddedExitPoints,
11576
- ...hoverTargetPoints
11577
- ]);
11578
- setPointerGraceArea(graceArea);
11579
- onPointerInTransitChange(true);
11580
- }, [
11581
- onPointerInTransitChange
11582
- ]);
11583
- useEffect(() => {
11584
- return () => handleRemoveGraceArea();
11585
- }, [
11586
- handleRemoveGraceArea
11587
- ]);
11588
- useEffect(() => {
11589
- if (trigger && content) {
11590
- const handleTriggerLeave = (event) => handleCreateGraceArea(event, content);
11591
- const handleContentLeave = (event) => handleCreateGraceArea(event, trigger);
11592
- trigger.addEventListener("pointerleave", handleTriggerLeave);
11593
- content.addEventListener("pointerleave", handleContentLeave);
11594
- return () => {
11595
- trigger.removeEventListener("pointerleave", handleTriggerLeave);
11596
- content.removeEventListener("pointerleave", handleContentLeave);
11597
- };
11598
- }
11599
- }, [
11600
- trigger,
11601
- content,
11602
- handleCreateGraceArea,
11603
- handleRemoveGraceArea
11604
- ]);
11605
- useEffect(() => {
11606
- if (pointerGraceArea) {
11607
- const handleTrackPointerGrace = (event) => {
11608
- const target = event.target;
11609
- const pointerPosition = {
11610
- x: event.clientX,
11611
- y: event.clientY
11612
- };
11613
- const hasEnteredTarget = (trigger === null || trigger === void 0 ? void 0 : trigger.contains(target)) || (content === null || content === void 0 ? void 0 : content.contains(target));
11614
- const isPointerOutsideGraceArea = !$a093c7e1ec25a057$var$isPointInPolygon(pointerPosition, pointerGraceArea);
11615
- if (hasEnteredTarget)
11616
- handleRemoveGraceArea();
11617
- else if (isPointerOutsideGraceArea) {
11618
- handleRemoveGraceArea();
11619
- onClose();
11620
- }
11621
- };
11622
- document.addEventListener("pointermove", handleTrackPointerGrace);
11623
- return () => document.removeEventListener("pointermove", handleTrackPointerGrace);
11624
- }
11625
- }, [
11626
- trigger,
11627
- content,
11628
- pointerGraceArea,
11629
- onClose,
11630
- handleRemoveGraceArea
11631
- ]);
11632
- return /* @__PURE__ */ createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$1({}, props, {
11633
- ref: composedRefs
11634
- }));
11635
- });
11636
- const [$a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, $a093c7e1ec25a057$var$useVisuallyHiddenContentContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME, {
11302
+ $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME, {
11637
11303
  isInside: false
11638
11304
  });
11639
- const $a093c7e1ec25a057$var$TooltipContentImpl = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
11640
- const { __scopeTooltip, children, "aria-label": ariaLabel, onEscapeKeyDown, onPointerDownOutside, ...contentProps } = props;
11641
- const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, __scopeTooltip);
11642
- const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
11643
- const { onClose } = context;
11644
- useEffect(() => {
11645
- document.addEventListener($a093c7e1ec25a057$var$TOOLTIP_OPEN, onClose);
11646
- return () => document.removeEventListener($a093c7e1ec25a057$var$TOOLTIP_OPEN, onClose);
11647
- }, [
11648
- onClose
11649
- ]);
11650
- useEffect(() => {
11651
- if (context.trigger) {
11652
- const handleScroll2 = (event) => {
11653
- const target = event.target;
11654
- if (target !== null && target !== void 0 && target.contains(context.trigger))
11655
- onClose();
11656
- };
11657
- window.addEventListener("scroll", handleScroll2, {
11658
- capture: true
11659
- });
11660
- return () => window.removeEventListener("scroll", handleScroll2, {
11661
- capture: true
11662
- });
11663
- }
11664
- }, [
11665
- context.trigger,
11666
- onClose
11667
- ]);
11668
- return /* @__PURE__ */ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, {
11669
- asChild: true,
11670
- disableOutsidePointerEvents: false,
11671
- onEscapeKeyDown,
11672
- onPointerDownOutside,
11673
- onFocusOutside: (event) => event.preventDefault(),
11674
- onDismiss: onClose
11675
- }, /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$1({
11676
- "data-state": context.stateAttribute
11677
- }, popperScope, contentProps, {
11678
- ref: forwardedRef,
11679
- style: {
11680
- ...contentProps.style,
11681
- "--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
11682
- "--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
11683
- "--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
11684
- "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
11685
- "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
11686
- }
11687
- }), /* @__PURE__ */ createElement($5e63c961fc1ce211$export$d9f1ccf0bdb05d45, null, children), /* @__PURE__ */ createElement($a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, {
11688
- scope: __scopeTooltip,
11689
- isInside: true
11690
- }, /* @__PURE__ */ createElement($ea1ef594cf570d83$export$be92b6f5f03c0fe9, {
11691
- id: context.contentId,
11692
- role: "tooltip"
11693
- }, ariaLabel || children))));
11694
- });
11695
- const $a093c7e1ec25a057$var$ARROW_NAME = "TooltipArrow";
11696
- const $a093c7e1ec25a057$export$c27ee0ad710f7559 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
11697
- const { __scopeTooltip, ...arrowProps } = props;
11698
- const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
11699
- const visuallyHiddenContentContext = $a093c7e1ec25a057$var$useVisuallyHiddenContentContext($a093c7e1ec25a057$var$ARROW_NAME, __scopeTooltip);
11700
- return visuallyHiddenContentContext.isInside ? null : /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$1({}, popperScope, arrowProps, {
11701
- ref: forwardedRef
11702
- }));
11703
- });
11704
- function $a093c7e1ec25a057$var$getExitSideFromRect(point, rect) {
11705
- const top = Math.abs(rect.top - point.y);
11706
- const bottom = Math.abs(rect.bottom - point.y);
11707
- const right = Math.abs(rect.right - point.x);
11708
- const left = Math.abs(rect.left - point.x);
11709
- switch (Math.min(top, bottom, right, left)) {
11710
- case left:
11711
- return "left";
11712
- case right:
11713
- return "right";
11714
- case top:
11715
- return "top";
11716
- case bottom:
11717
- return "bottom";
11718
- default:
11719
- throw new Error("unreachable");
11720
- }
11721
- }
11722
- function $a093c7e1ec25a057$var$getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
11723
- const paddedExitPoints = [];
11724
- switch (exitSide) {
11725
- case "top":
11726
- paddedExitPoints.push({
11727
- x: exitPoint.x - padding,
11728
- y: exitPoint.y + padding
11729
- }, {
11730
- x: exitPoint.x + padding,
11731
- y: exitPoint.y + padding
11732
- });
11733
- break;
11734
- case "bottom":
11735
- paddedExitPoints.push({
11736
- x: exitPoint.x - padding,
11737
- y: exitPoint.y - padding
11738
- }, {
11739
- x: exitPoint.x + padding,
11740
- y: exitPoint.y - padding
11741
- });
11742
- break;
11743
- case "left":
11744
- paddedExitPoints.push({
11745
- x: exitPoint.x + padding,
11746
- y: exitPoint.y - padding
11747
- }, {
11748
- x: exitPoint.x + padding,
11749
- y: exitPoint.y + padding
11750
- });
11751
- break;
11752
- case "right":
11753
- paddedExitPoints.push({
11754
- x: exitPoint.x - padding,
11755
- y: exitPoint.y - padding
11756
- }, {
11757
- x: exitPoint.x - padding,
11758
- y: exitPoint.y + padding
11759
- });
11760
- break;
11761
- }
11762
- return paddedExitPoints;
11763
- }
11764
- function $a093c7e1ec25a057$var$getPointsFromRect(rect) {
11765
- const { top, right, bottom, left } = rect;
11766
- return [
11767
- {
11768
- x: left,
11769
- y: top
11770
- },
11771
- {
11772
- x: right,
11773
- y: top
11774
- },
11775
- {
11776
- x: right,
11777
- y: bottom
11778
- },
11779
- {
11780
- x: left,
11781
- y: bottom
11782
- }
11783
- ];
11784
- }
11785
- function $a093c7e1ec25a057$var$isPointInPolygon(point, polygon) {
11786
- const { x, y } = point;
11787
- let inside = false;
11788
- for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
11789
- const xi = polygon[i].x;
11790
- const yi = polygon[i].y;
11791
- const xj = polygon[j].x;
11792
- const yj = polygon[j].y;
11793
- const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;
11794
- if (intersect)
11795
- inside = !inside;
11796
- }
11797
- return inside;
11798
- }
11799
- function $a093c7e1ec25a057$var$getHull(points) {
11800
- const newPoints = points.slice();
11801
- newPoints.sort((a, b) => {
11802
- if (a.x < b.x)
11803
- return -1;
11804
- else if (a.x > b.x)
11805
- return 1;
11806
- else if (a.y < b.y)
11807
- return -1;
11808
- else if (a.y > b.y)
11809
- return 1;
11810
- else
11811
- return 0;
11812
- });
11813
- return $a093c7e1ec25a057$var$getHullPresorted(newPoints);
11814
- }
11815
- function $a093c7e1ec25a057$var$getHullPresorted(points) {
11816
- if (points.length <= 1)
11817
- return points.slice();
11818
- const upperHull = [];
11819
- for (let i = 0; i < points.length; i++) {
11820
- const p = points[i];
11821
- while (upperHull.length >= 2) {
11822
- const q = upperHull[upperHull.length - 1];
11823
- const r = upperHull[upperHull.length - 2];
11824
- if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))
11825
- upperHull.pop();
11826
- else
11827
- break;
11828
- }
11829
- upperHull.push(p);
11830
- }
11831
- upperHull.pop();
11832
- const lowerHull = [];
11833
- for (let i1 = points.length - 1; i1 >= 0; i1--) {
11834
- const p = points[i1];
11835
- while (lowerHull.length >= 2) {
11836
- const q = lowerHull[lowerHull.length - 1];
11837
- const r = lowerHull[lowerHull.length - 2];
11838
- if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))
11839
- lowerHull.pop();
11840
- else
11841
- break;
11842
- }
11843
- lowerHull.push(p);
11844
- }
11845
- lowerHull.pop();
11846
- if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y)
11847
- return upperHull;
11848
- else
11849
- return upperHull.concat(lowerHull);
11850
- }
11851
11305
  const $a093c7e1ec25a057$export$2881499e37b75b9a = $a093c7e1ec25a057$export$f78649fb9ca566b8;
11852
- const $a093c7e1ec25a057$export$be92b6f5f03c0fe9 = $a093c7e1ec25a057$export$28c660c63b792dea;
11853
- const $a093c7e1ec25a057$export$41fb9f06171c75f4 = $a093c7e1ec25a057$export$8c610744efcf8a1d;
11854
- const $a093c7e1ec25a057$export$602eac185826482c = $a093c7e1ec25a057$export$7b36b8f925ab7497;
11855
- const $a093c7e1ec25a057$export$7c6e2c02157bb7d2 = $a093c7e1ec25a057$export$e9003e2be37ec060;
11856
- const $a093c7e1ec25a057$export$21b07c8f274aebd5 = $a093c7e1ec25a057$export$c27ee0ad710f7559;
11857
11306
  const $f631663db3294ace$var$DirectionContext = /* @__PURE__ */ createContext(void 0);
11858
11307
  const $f631663db3294ace$export$c760c09fdd558351 = (props) => {
11859
11308
  const { dir, children } = props;
@@ -12486,7 +11935,7 @@ const $e698a72e93240346$export$48513f6b9f8ce62d = /* @__PURE__ */ forwardRef((pr
12486
11935
  scope: __scopeCheckbox,
12487
11936
  state: checked,
12488
11937
  disabled
12489
- }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$1({
11938
+ }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
12490
11939
  type: "button",
12491
11940
  role: "checkbox",
12492
11941
  "aria-checked": $e698a72e93240346$var$isIndeterminate(checked) ? "mixed" : checked,
@@ -12530,7 +11979,7 @@ const $e698a72e93240346$export$59aad738f51d1c05 = /* @__PURE__ */ forwardRef((pr
12530
11979
  const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);
12531
11980
  return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
12532
11981
  present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true
12533
- }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
11982
+ }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
12534
11983
  "data-state": $e698a72e93240346$var$getState(context.state),
12535
11984
  "data-disabled": context.disabled ? "" : void 0
12536
11985
  }, indicatorProps, {
@@ -12564,7 +12013,7 @@ const $e698a72e93240346$var$BubbleInput = (props) => {
12564
12013
  checked,
12565
12014
  bubbles
12566
12015
  ]);
12567
- return /* @__PURE__ */ createElement("input", _extends$1({
12016
+ return /* @__PURE__ */ createElement("input", _extends({
12568
12017
  type: "checkbox",
12569
12018
  "aria-hidden": true,
12570
12019
  defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked
@@ -12740,7 +12189,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /* @__PURE__ */ forwardRef((pr
12740
12189
  scope: props.__scopeRovingFocusGroup
12741
12190
  }, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {
12742
12191
  scope: props.__scopeRovingFocusGroup
12743
- }, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends$1({}, props, {
12192
+ }, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends({}, props, {
12744
12193
  ref: forwardedRef
12745
12194
  }))));
12746
12195
  });
@@ -12796,7 +12245,7 @@ const $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ forwardRef((p
12796
12245
  ),
12797
12246
  []
12798
12247
  )
12799
- }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
12248
+ }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
12800
12249
  tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
12801
12250
  "data-orientation": orientation
12802
12251
  }, groupProps, {
@@ -12866,7 +12315,7 @@ const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ forwardRef((pro
12866
12315
  id,
12867
12316
  focusable,
12868
12317
  active
12869
- }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
12318
+ }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
12870
12319
  tabIndex: isCurrentTabStop ? 0 : -1,
12871
12320
  "data-orientation": context.orientation
12872
12321
  }, itemProps, {
@@ -13132,7 +12581,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ forwardRef((pr
13132
12581
  trapped,
13133
12582
  focusScope.paused
13134
12583
  ]);
13135
- return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
12584
+ return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
13136
12585
  tabIndex: -1
13137
12586
  }, scopeProps, {
13138
12587
  ref: composedRefs,
@@ -14003,7 +13452,7 @@ const $57acba87d6e25586$export$ccf8d8d7bbf3c2cc = /* @__PURE__ */ forwardRef((pr
14003
13452
  onScrollbarYEnabledChange: setScrollbarYEnabled,
14004
13453
  onCornerWidthChange: setCornerWidth,
14005
13454
  onCornerHeightChange: setCornerHeight
14006
- }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
13455
+ }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
14007
13456
  dir: direction
14008
13457
  }, scrollAreaProps, {
14009
13458
  ref: composedRefs,
@@ -14026,7 +13475,7 @@ const $57acba87d6e25586$export$a21cbf9f11fca853 = /* @__PURE__ */ forwardRef((pr
14026
13475
  dangerouslySetInnerHTML: {
14027
13476
  __html: `[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`
14028
13477
  }
14029
- }), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
13478
+ }), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
14030
13479
  "data-radix-scroll-area-viewport": ""
14031
13480
  }, viewportProps, {
14032
13481
  ref: composedRefs,
@@ -14070,16 +13519,16 @@ const $57acba87d6e25586$export$2fabd85d0eba3c57 = /* @__PURE__ */ forwardRef((pr
14070
13519
  onScrollbarXEnabledChange,
14071
13520
  onScrollbarYEnabledChange
14072
13521
  ]);
14073
- return context.type === "hover" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarHover, _extends$1({}, scrollbarProps, {
13522
+ return context.type === "hover" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarHover, _extends({}, scrollbarProps, {
14074
13523
  ref: forwardedRef,
14075
13524
  forceMount
14076
- })) : context.type === "scroll" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarScroll, _extends$1({}, scrollbarProps, {
13525
+ })) : context.type === "scroll" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarScroll, _extends({}, scrollbarProps, {
14077
13526
  ref: forwardedRef,
14078
13527
  forceMount
14079
- })) : context.type === "auto" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$1({}, scrollbarProps, {
13528
+ })) : context.type === "auto" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends({}, scrollbarProps, {
14080
13529
  ref: forwardedRef,
14081
13530
  forceMount
14082
- })) : context.type === "always" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$1({}, scrollbarProps, {
13531
+ })) : context.type === "always" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends({}, scrollbarProps, {
14083
13532
  ref: forwardedRef
14084
13533
  })) : null;
14085
13534
  });
@@ -14115,7 +13564,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarHover = /* @__PURE__ */ forwardRe
14115
13564
  ]);
14116
13565
  return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
14117
13566
  present: forceMount || visible
14118
- }, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$1({
13567
+ }, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends({
14119
13568
  "data-state": visible ? "visible" : "hidden"
14120
13569
  }, scrollbarProps, {
14121
13570
  ref: forwardedRef
@@ -14185,7 +13634,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarScroll = /* @__PURE__ */ forwardR
14185
13634
  ]);
14186
13635
  return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
14187
13636
  present: forceMount || state !== "hidden"
14188
- }, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$1({
13637
+ }, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends({
14189
13638
  "data-state": state === "hidden" ? "hidden" : "visible"
14190
13639
  }, scrollbarProps, {
14191
13640
  ref: forwardedRef,
@@ -14215,7 +13664,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarAuto = /* @__PURE__ */ forwardRef
14215
13664
  $57acba87d6e25586$var$useResizeObserver(context.content, handleResize);
14216
13665
  return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
14217
13666
  present: forceMount || visible
14218
- }, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$1({
13667
+ }, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends({
14219
13668
  "data-state": visible ? "visible" : "hidden"
14220
13669
  }, scrollbarProps, {
14221
13670
  ref: forwardedRef
@@ -14249,7 +13698,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarVisible = /* @__PURE__ */ forward
14249
13698
  return $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes2, dir);
14250
13699
  }
14251
13700
  if (orientation === "horizontal")
14252
- return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarX, _extends$1({}, commonProps, {
13701
+ return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarX, _extends({}, commonProps, {
14253
13702
  ref: forwardedRef,
14254
13703
  onThumbPositionChange: () => {
14255
13704
  if (context.viewport && thumbRef.current) {
@@ -14268,7 +13717,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarVisible = /* @__PURE__ */ forward
14268
13717
  }
14269
13718
  }));
14270
13719
  if (orientation === "vertical")
14271
- return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarY, _extends$1({}, commonProps, {
13720
+ return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarY, _extends({}, commonProps, {
14272
13721
  ref: forwardedRef,
14273
13722
  onThumbPositionChange: () => {
14274
13723
  if (context.viewport && thumbRef.current) {
@@ -14300,7 +13749,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarX = /* @__PURE__ */ forwardRef((p
14300
13749
  }, [
14301
13750
  ref
14302
13751
  ]);
14303
- return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$1({
13752
+ return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends({
14304
13753
  "data-orientation": "horizontal"
14305
13754
  }, scrollbarProps, {
14306
13755
  ref: composeRefs,
@@ -14348,7 +13797,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarY = /* @__PURE__ */ forwardRef((p
14348
13797
  }, [
14349
13798
  ref
14350
13799
  ]);
14351
- return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$1({
13800
+ return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends({
14352
13801
  "data-orientation": "vertical"
14353
13802
  }, scrollbarProps, {
14354
13803
  ref: composeRefs,
@@ -14444,7 +13893,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarImpl = /* @__PURE__ */ forwardRef
14444
13893
  onThumbPointerUp: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerUp),
14445
13894
  onThumbPositionChange: handleThumbPositionChange,
14446
13895
  onThumbPointerDown: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerDown)
14447
- }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, scrollbarProps, {
13896
+ }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, scrollbarProps, {
14448
13897
  ref: composeRefs,
14449
13898
  style: {
14450
13899
  position: "absolute",
@@ -14481,7 +13930,7 @@ const $57acba87d6e25586$export$9fba1154677d7cd2 = /* @__PURE__ */ forwardRef((pr
14481
13930
  const scrollbarContext = $57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME, props.__scopeScrollArea);
14482
13931
  return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
14483
13932
  present: forceMount || scrollbarContext.hasThumb
14484
- }, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaThumbImpl, _extends$1({
13933
+ }, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaThumbImpl, _extends({
14485
13934
  ref: forwardedRef
14486
13935
  }, thumbProps)));
14487
13936
  });
@@ -14521,7 +13970,7 @@ const $57acba87d6e25586$var$ScrollAreaThumbImpl = /* @__PURE__ */ forwardRef((pr
14521
13970
  debounceScrollEnd,
14522
13971
  onThumbPositionChange
14523
13972
  ]);
14524
- return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
13973
+ return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
14525
13974
  "data-state": scrollbarContext.hasThumb ? "visible" : "hidden"
14526
13975
  }, thumbProps, {
14527
13976
  ref: composedRef,
@@ -14548,7 +13997,7 @@ const $57acba87d6e25586$export$56969d565df7cc4b = /* @__PURE__ */ forwardRef((pr
14548
13997
  const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME, props.__scopeScrollArea);
14549
13998
  const hasBothScrollbarsVisible = Boolean(context.scrollbarX && context.scrollbarY);
14550
13999
  const hasCorner = context.type !== "scroll" && hasBothScrollbarsVisible;
14551
- return hasCorner ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaCornerImpl, _extends$1({}, props, {
14000
+ return hasCorner ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaCornerImpl, _extends({}, props, {
14552
14001
  ref: forwardedRef
14553
14002
  })) : null;
14554
14003
  });
@@ -14570,7 +14019,7 @@ const $57acba87d6e25586$var$ScrollAreaCornerImpl = /* @__PURE__ */ forwardRef((p
14570
14019
  context.onCornerWidthChange(width);
14571
14020
  setWidth(width);
14572
14021
  });
14573
- return hasSize ? /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, cornerProps, {
14022
+ return hasSize ? /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, cornerProps, {
14574
14023
  ref: forwardedRef,
14575
14024
  style: {
14576
14025
  width: width1,
@@ -14831,7 +14280,7 @@ const $faa2e61a3361514f$export$472062a354075cee = /* @__PURE__ */ forwardRef((pr
14831
14280
  scope: props.__scopeSlider
14832
14281
  }, /* @__PURE__ */ createElement($faa2e61a3361514f$var$Collection.Slot, {
14833
14282
  scope: props.__scopeSlider
14834
- }, /* @__PURE__ */ createElement(SliderOrientation, _extends$1({
14283
+ }, /* @__PURE__ */ createElement(SliderOrientation, _extends({
14835
14284
  "aria-disabled": disabled,
14836
14285
  "data-disabled": disabled ? "" : void 0
14837
14286
  }, sliderProps, {
@@ -14913,7 +14362,7 @@ const $faa2e61a3361514f$var$SliderHorizontal = /* @__PURE__ */ forwardRef((props
14913
14362
  endEdge: isSlidingFromLeft ? "right" : "left",
14914
14363
  direction: isSlidingFromLeft ? 1 : -1,
14915
14364
  size: "width"
14916
- }, /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderImpl, _extends$1({
14365
+ }, /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderImpl, _extends({
14917
14366
  dir: direction,
14918
14367
  "data-orientation": "horizontal"
14919
14368
  }, sliderProps, {
@@ -14973,7 +14422,7 @@ const $faa2e61a3361514f$var$SliderVertical = /* @__PURE__ */ forwardRef((props,
14973
14422
  endEdge: isSlidingFromBottom ? "top" : "bottom",
14974
14423
  size: "height",
14975
14424
  direction: isSlidingFromBottom ? 1 : -1
14976
- }, /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderImpl, _extends$1({
14425
+ }, /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderImpl, _extends({
14977
14426
  "data-orientation": "vertical"
14978
14427
  }, sliderProps, {
14979
14428
  ref,
@@ -15006,7 +14455,7 @@ const $faa2e61a3361514f$var$SliderVertical = /* @__PURE__ */ forwardRef((props,
15006
14455
  const $faa2e61a3361514f$var$SliderImpl = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
15007
14456
  const { __scopeSlider, onSlideStart, onSlideMove, onSlideEnd, onHomeKeyDown, onEndKeyDown, onStepKeyDown, ...sliderProps } = props;
15008
14457
  const context = $faa2e61a3361514f$var$useSliderContext($faa2e61a3361514f$var$SLIDER_NAME, __scopeSlider);
15009
- return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({}, sliderProps, {
14458
+ return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, sliderProps, {
15010
14459
  ref: forwardedRef,
15011
14460
  onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
15012
14461
  if (event.key === "Home") {
@@ -15047,7 +14496,7 @@ const $faa2e61a3361514f$var$TRACK_NAME = "SliderTrack";
15047
14496
  const $faa2e61a3361514f$export$105594979f116971 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
15048
14497
  const { __scopeSlider, ...trackProps } = props;
15049
14498
  const context = $faa2e61a3361514f$var$useSliderContext($faa2e61a3361514f$var$TRACK_NAME, __scopeSlider);
15050
- return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
14499
+ return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
15051
14500
  "data-disabled": context.disabled ? "" : void 0,
15052
14501
  "data-orientation": context.orientation
15053
14502
  }, trackProps, {
@@ -15067,7 +14516,7 @@ const $faa2e61a3361514f$export$a5cf38a7a000fe77 = /* @__PURE__ */ forwardRef((pr
15067
14516
  );
15068
14517
  const offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0;
15069
14518
  const offsetEnd = 100 - Math.max(...percentages);
15070
- return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
14519
+ return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
15071
14520
  "data-orientation": context.orientation,
15072
14521
  "data-disabled": context.disabled ? "" : void 0
15073
14522
  }, rangeProps, {
@@ -15096,7 +14545,7 @@ const $faa2e61a3361514f$export$2c1b491743890dec = /* @__PURE__ */ forwardRef((pr
15096
14545
  thumb
15097
14546
  ]
15098
14547
  );
15099
- return /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderThumbImpl, _extends$1({}, props, {
14548
+ return /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderThumbImpl, _extends({}, props, {
15100
14549
  ref: composedRefs,
15101
14550
  index: index2
15102
14551
  }));
@@ -15135,7 +14584,7 @@ const $faa2e61a3361514f$var$SliderThumbImpl = /* @__PURE__ */ forwardRef((props,
15135
14584
  }
15136
14585
  }, /* @__PURE__ */ createElement($faa2e61a3361514f$var$Collection.ItemSlot, {
15137
14586
  scope: props.__scopeSlider
15138
- }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
14587
+ }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
15139
14588
  role: "slider",
15140
14589
  "aria-label": props["aria-label"] || label,
15141
14590
  "aria-valuemin": context.min,
@@ -15175,7 +14624,7 @@ const $faa2e61a3361514f$var$BubbleInput = (props) => {
15175
14624
  prevValue,
15176
14625
  value
15177
14626
  ]);
15178
- return /* @__PURE__ */ createElement("input", _extends$1({
14627
+ return /* @__PURE__ */ createElement("input", _extends({
15179
14628
  style: {
15180
14629
  display: "none"
15181
14630
  }
@@ -15432,7 +14881,7 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /* @__PURE__ */ forwardRef((pro
15432
14881
  const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$TRIGGER_NAME, __scopePopover);
15433
14882
  const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
15434
14883
  const composedTriggerRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.triggerRef);
15435
- const trigger = /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$1({
14884
+ const trigger = /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
15436
14885
  type: "button",
15437
14886
  "aria-haspopup": "dialog",
15438
14887
  "aria-expanded": context.open,
@@ -15442,7 +14891,7 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /* @__PURE__ */ forwardRef((pro
15442
14891
  ref: composedTriggerRef,
15443
14892
  onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, context.onOpenToggle)
15444
14893
  }));
15445
- return context.hasCustomAnchor ? trigger : /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$1({
14894
+ return context.hasCustomAnchor ? trigger : /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends({
15446
14895
  asChild: true
15447
14896
  }, popperScope), trigger);
15448
14897
  });
@@ -15470,9 +14919,9 @@ const $cb5cc270b50c6fcd$export$d7e1f420b25549ff = /* @__PURE__ */ forwardRef((pr
15470
14919
  const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
15471
14920
  return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
15472
14921
  present: forceMount || context.open
15473
- }, context.modal ? /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentModal, _extends$1({}, contentProps, {
14922
+ }, context.modal ? /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentModal, _extends({}, contentProps, {
15474
14923
  ref: forwardedRef
15475
- })) : /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentNonModal, _extends$1({}, contentProps, {
14924
+ })) : /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentNonModal, _extends({}, contentProps, {
15476
14925
  ref: forwardedRef
15477
14926
  })));
15478
14927
  });
@@ -15489,7 +14938,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ forwardRef((pr
15489
14938
  return /* @__PURE__ */ createElement($am6gm$RemoveScroll, {
15490
14939
  as: $5e63c961fc1ce211$export$8c6ed5c666ac1360,
15491
14940
  allowPinchZoom: true
15492
- }, /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$1({}, props, {
14941
+ }, /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends({}, props, {
15493
14942
  ref: composedRefs,
15494
14943
  trapFocus: context.open,
15495
14944
  disableOutsidePointerEvents: true,
@@ -15520,7 +14969,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ forwardRef(
15520
14969
  const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
15521
14970
  const hasInteractedOutsideRef = useRef(false);
15522
14971
  const hasPointerDownOutsideRef = useRef(false);
15523
- return /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$1({}, props, {
14972
+ return /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends({}, props, {
15524
14973
  ref: forwardedRef,
15525
14974
  trapFocus: false,
15526
14975
  disableOutsidePointerEvents: false,
@@ -15572,7 +15021,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentImpl = /* @__PURE__ */ forwardRef((pro
15572
15021
  onPointerDownOutside,
15573
15022
  onFocusOutside,
15574
15023
  onDismiss: () => context.onOpenChange(false)
15575
- }, /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$1({
15024
+ }, /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends({
15576
15025
  "data-state": $cb5cc270b50c6fcd$var$getState(context.open),
15577
15026
  role: "dialog",
15578
15027
  id: context.contentId
@@ -15592,7 +15041,7 @@ const $cb5cc270b50c6fcd$var$CLOSE_NAME = "PopoverClose";
15592
15041
  const $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
15593
15042
  const { __scopePopover, ...closeProps } = props;
15594
15043
  const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CLOSE_NAME, __scopePopover);
15595
- return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$1({
15044
+ return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
15596
15045
  type: "button"
15597
15046
  }, closeProps, {
15598
15047
  ref: forwardedRef,
@@ -15639,30 +15088,6 @@ const Popover = Object.assign({}, {
15639
15088
  Trigger: PopoverTrigger,
15640
15089
  Close: PopoverClose
15641
15090
  });
15642
- const Tooltip = React.forwardRef((props, forwardedRef) => {
15643
- const { children, className, open, defaultOpen, onOpenChange, delayDuration, disableHoverableContent, content, container, forceMount, ...tooltipContentProps } = props;
15644
- const rootProps = { open, defaultOpen, onOpenChange, delayDuration, disableHoverableContent };
15645
- return React.createElement(
15646
- $a093c7e1ec25a057$export$be92b6f5f03c0fe9,
15647
- { ...rootProps },
15648
- React.createElement($a093c7e1ec25a057$export$41fb9f06171c75f4, { asChild: true }, children),
15649
- React.createElement(
15650
- $a093c7e1ec25a057$export$602eac185826482c,
15651
- { container, forceMount },
15652
- React.createElement(
15653
- Theme,
15654
- { asChild: true },
15655
- React.createElement(
15656
- $a093c7e1ec25a057$export$7c6e2c02157bb7d2,
15657
- { sideOffset: 4, collisionPadding: 10, ...tooltipContentProps, ref: forwardedRef, className: classNames("rt-TooltipContent", className) },
15658
- React.createElement(Text, { as: "p", className: "rt-TooltipText", size: "1" }, content),
15659
- React.createElement($a093c7e1ec25a057$export$21b07c8f274aebd5, { className: "rt-TooltipArrow" })
15660
- )
15661
- )
15662
- )
15663
- );
15664
- });
15665
- Tooltip.displayName = "Tooltip";
15666
15091
  const sizes$2 = ["1", "2", "3", "4", "5"];
15667
15092
  const variants = ["surface", "classic", "ghost"];
15668
15093
  const cardPropDefs = {
@@ -15697,7 +15122,7 @@ const $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /* @__PURE__ */ forwardRef((pr
15697
15122
  "aria-orientation": ariaOrientation,
15698
15123
  role: "separator"
15699
15124
  };
15700
- return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
15125
+ return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
15701
15126
  "data-orientation": orientation
15702
15127
  }, semanticProps, domProps, {
15703
15128
  ref: forwardedRef
@@ -15756,7 +15181,7 @@ const $69cb30bb0017df05$export$b2539bed5023c21c = /* @__PURE__ */ forwardRef((pr
15756
15181
  orientation,
15757
15182
  dir: direction,
15758
15183
  activationMode
15759
- }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
15184
+ }, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
15760
15185
  dir: direction,
15761
15186
  "data-orientation": orientation
15762
15187
  }, tabsProps, {
@@ -15768,13 +15193,13 @@ const $69cb30bb0017df05$export$9712d22edc0d78c1 = /* @__PURE__ */ forwardRef((pr
15768
15193
  const { __scopeTabs, loop = true, ...listProps } = props;
15769
15194
  const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME, __scopeTabs);
15770
15195
  const rovingFocusGroupScope = $69cb30bb0017df05$var$useRovingFocusGroupScope(__scopeTabs);
15771
- return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$1({
15196
+ return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends({
15772
15197
  asChild: true
15773
15198
  }, rovingFocusGroupScope, {
15774
15199
  orientation: context.orientation,
15775
15200
  dir: context.dir,
15776
15201
  loop
15777
- }), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
15202
+ }), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
15778
15203
  role: "tablist",
15779
15204
  "aria-orientation": context.orientation
15780
15205
  }, listProps, {
@@ -15789,12 +15214,12 @@ const $69cb30bb0017df05$export$8114b9fdfdf9f3ba = /* @__PURE__ */ forwardRef((pr
15789
15214
  const triggerId = $69cb30bb0017df05$var$makeTriggerId(context.baseId, value);
15790
15215
  const contentId = $69cb30bb0017df05$var$makeContentId(context.baseId, value);
15791
15216
  const isSelected = value === context.value;
15792
- return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$1({
15217
+ return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends({
15793
15218
  asChild: true
15794
15219
  }, rovingFocusGroupScope, {
15795
15220
  focusable: !disabled,
15796
15221
  active: isSelected
15797
- }), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$1({
15222
+ }), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
15798
15223
  type: "button",
15799
15224
  role: "tab",
15800
15225
  "aria-selected": isSelected,
@@ -15844,7 +15269,7 @@ const $69cb30bb0017df05$export$bd905d70e8fd2ebb = /* @__PURE__ */ forwardRef((pr
15844
15269
  {
15845
15270
  present: forceMount || isSelected
15846
15271
  },
15847
- ({ present }) => /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
15272
+ ({ present }) => /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
15848
15273
  "data-state": isSelected ? "active" : "inactive",
15849
15274
  "data-orientation": context.orientation,
15850
15275
  role: "tabpanel",
@@ -16115,190 +15540,6 @@ const BooleanInput = memo((props) => {
16115
15540
  ) });
16116
15541
  });
16117
15542
  BooleanInput.displayName = "BooleanInput";
16118
- var DefaultContext = {
16119
- color: void 0,
16120
- size: void 0,
16121
- className: void 0,
16122
- style: void 0,
16123
- attr: void 0
16124
- };
16125
- var IconContext = React__default.createContext && /* @__PURE__ */ React__default.createContext(DefaultContext);
16126
- var _excluded = ["attr", "size", "title"];
16127
- function _objectWithoutProperties(source, excluded) {
16128
- if (source == null)
16129
- return {};
16130
- var target = _objectWithoutPropertiesLoose(source, excluded);
16131
- var key, i;
16132
- if (Object.getOwnPropertySymbols) {
16133
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
16134
- for (i = 0; i < sourceSymbolKeys.length; i++) {
16135
- key = sourceSymbolKeys[i];
16136
- if (excluded.indexOf(key) >= 0)
16137
- continue;
16138
- if (!Object.prototype.propertyIsEnumerable.call(source, key))
16139
- continue;
16140
- target[key] = source[key];
16141
- }
16142
- }
16143
- return target;
16144
- }
16145
- function _objectWithoutPropertiesLoose(source, excluded) {
16146
- if (source == null)
16147
- return {};
16148
- var target = {};
16149
- for (var key in source) {
16150
- if (Object.prototype.hasOwnProperty.call(source, key)) {
16151
- if (excluded.indexOf(key) >= 0)
16152
- continue;
16153
- target[key] = source[key];
16154
- }
16155
- }
16156
- return target;
16157
- }
16158
- function _extends() {
16159
- _extends = Object.assign ? Object.assign.bind() : function(target) {
16160
- for (var i = 1; i < arguments.length; i++) {
16161
- var source = arguments[i];
16162
- for (var key in source) {
16163
- if (Object.prototype.hasOwnProperty.call(source, key)) {
16164
- target[key] = source[key];
16165
- }
16166
- }
16167
- }
16168
- return target;
16169
- };
16170
- return _extends.apply(this, arguments);
16171
- }
16172
- function ownKeys(e, r) {
16173
- var t = Object.keys(e);
16174
- if (Object.getOwnPropertySymbols) {
16175
- var o = Object.getOwnPropertySymbols(e);
16176
- r && (o = o.filter(function(r2) {
16177
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
16178
- })), t.push.apply(t, o);
16179
- }
16180
- return t;
16181
- }
16182
- function _objectSpread(e) {
16183
- for (var r = 1; r < arguments.length; r++) {
16184
- var t = null != arguments[r] ? arguments[r] : {};
16185
- r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
16186
- _defineProperty(e, r2, t[r2]);
16187
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
16188
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
16189
- });
16190
- }
16191
- return e;
16192
- }
16193
- function _defineProperty(obj, key, value) {
16194
- key = _toPropertyKey(key);
16195
- if (key in obj) {
16196
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
16197
- } else {
16198
- obj[key] = value;
16199
- }
16200
- return obj;
16201
- }
16202
- function _toPropertyKey(t) {
16203
- var i = _toPrimitive(t, "string");
16204
- return "symbol" == typeof i ? i : i + "";
16205
- }
16206
- function _toPrimitive(t, r) {
16207
- if ("object" != typeof t || !t)
16208
- return t;
16209
- var e = t[Symbol.toPrimitive];
16210
- if (void 0 !== e) {
16211
- var i = e.call(t, r || "default");
16212
- if ("object" != typeof i)
16213
- return i;
16214
- throw new TypeError("@@toPrimitive must return a primitive value.");
16215
- }
16216
- return ("string" === r ? String : Number)(t);
16217
- }
16218
- function Tree2Element(tree) {
16219
- return tree && tree.map((node, i) => /* @__PURE__ */ React__default.createElement(node.tag, _objectSpread({
16220
- key: i
16221
- }, node.attr), Tree2Element(node.child)));
16222
- }
16223
- function GenIcon(data) {
16224
- return (props) => /* @__PURE__ */ React__default.createElement(IconBase, _extends({
16225
- attr: _objectSpread({}, data.attr)
16226
- }, props), Tree2Element(data.child));
16227
- }
16228
- function IconBase(props) {
16229
- var elem = (conf) => {
16230
- var {
16231
- attr,
16232
- size: size2,
16233
- title: title2
16234
- } = props, svgProps = _objectWithoutProperties(props, _excluded);
16235
- var computedSize = size2 || conf.size || "1em";
16236
- var className;
16237
- if (conf.className)
16238
- className = conf.className;
16239
- if (props.className)
16240
- className = (className ? className + " " : "") + props.className;
16241
- return /* @__PURE__ */ React__default.createElement("svg", _extends({
16242
- stroke: "currentColor",
16243
- fill: "currentColor",
16244
- strokeWidth: "0"
16245
- }, conf.attr, attr, svgProps, {
16246
- className,
16247
- style: _objectSpread(_objectSpread({
16248
- color: props.color || conf.color
16249
- }, conf.style), props.style),
16250
- height: computedSize,
16251
- width: computedSize,
16252
- xmlns: "http://www.w3.org/2000/svg"
16253
- }), title2 && /* @__PURE__ */ React__default.createElement("title", null, title2), props.children);
16254
- };
16255
- return IconContext !== void 0 ? /* @__PURE__ */ React__default.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
16256
- }
16257
- function RiArrowDownLine(props) {
16258
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" }, "child": [] }] })(props);
16259
- }
16260
- function RiArrowUpLine(props) {
16261
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" }, "child": [] }] })(props);
16262
- }
16263
- function RiCalendarLine(props) {
16264
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" }, "child": [] }] })(props);
16265
- }
16266
- function RiQrCodeLine(props) {
16267
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M16 17V16H13V13H16V15H18V17H17V19H15V21H13V18H15V17H16ZM21 21H17V19H19V17H21V21ZM3 3H11V11H3V3ZM5 5V9H9V5H5ZM13 3H21V11H13V3ZM15 5V9H19V5H15ZM3 13H11V21H3V13ZM5 15V19H9V15H5ZM18 13H21V15H18V13ZM6 6H8V8H6V6ZM6 16H8V18H6V16ZM16 6H18V8H16V6Z" }, "child": [] }] })(props);
16268
- }
16269
- function RiFileCopyLine(props) {
16270
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" }, "child": [] }] })(props);
16271
- }
16272
- function RiAlignJustify(props) {
16273
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z" }, "child": [] }] })(props);
16274
- }
16275
- function RiHashtag(props) {
16276
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M7.78428 14L8.2047 10H4V8H8.41491L8.94043 3H10.9514L10.4259 8H14.4149L14.9404 3H16.9514L16.4259 8H20V10H16.2157L15.7953 14H20V16H15.5851L15.0596 21H13.0486L13.5741 16H9.58509L9.05957 21H7.04855L7.57407 16H4V14H7.78428ZM9.7953 14H13.7843L14.2047 10H10.2157L9.7953 14Z" }, "child": [] }] })(props);
16277
- }
16278
- function RiInputField(props) {
16279
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 5H11V19H8V21H16V19H13V5H16V3H8V5ZM2 7C1.44772 7 1 7.44772 1 8V16C1 16.5523 1.44772 17 2 17H8V15H3V9H8V7H2ZM16 9H21V15H16V17H22C22.5523 17 23 16.5523 23 16V8C23 7.44772 22.5523 7 22 7H16V9Z" }, "child": [] }] })(props);
16280
- }
16281
- function RiListCheck(props) {
16282
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" }, "child": [] }] })(props);
16283
- }
16284
- function RiImageLine(props) {
16285
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" }, "child": [] }] })(props);
16286
- }
16287
- function RiCheckboxCircleLine(props) {
16288
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
16289
- }
16290
- function RiCheckboxLine(props) {
16291
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
16292
- }
16293
- function RiDeleteBin2Line(props) {
16294
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM13.4142 13.9997L15.182 15.7675L13.7678 17.1817L12 15.4139L10.2322 17.1817L8.81802 15.7675L10.5858 13.9997L8.81802 12.232L10.2322 10.8178L12 12.5855L13.7678 10.8178L15.182 12.232L13.4142 13.9997ZM9 4V6H15V4H9Z" }, "child": [] }] })(props);
16295
- }
16296
- function RiMenuFoldLine(props) {
16297
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M21 17.9995V19.9995H3V17.9995H21ZM6.59619 3.90332L8.01041 5.31753L4.82843 8.49951L8.01041 11.6815L6.59619 13.0957L2 8.49951L6.59619 3.90332ZM21 10.9995V12.9995H12V10.9995H21ZM21 3.99951V5.99951H12V3.99951H21Z" }, "child": [] }] })(props);
16298
- }
16299
- function RiUpload2Line(props) {
16300
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM13 9V16H11V9H6L12 3L18 9H13Z" }, "child": [] }] })(props);
16301
- }
16302
15543
  const emptyBooleanField = {
16303
15544
  ...emptyBaseField,
16304
15545
  type: "boolean"
@@ -17871,7 +17112,7 @@ const FileIcon = memo((props) => {
17871
17112
  }
17872
17113
  return /* @__PURE__ */ jsx(RiIcon, { icon: "RiFileLine" });
17873
17114
  }, [fileType]);
17874
- return /* @__PURE__ */ jsx(Tooltip, { content: fileType, children: /* @__PURE__ */ jsx(Flex, { width: "max-content", height: "max-content", children: icon }) });
17115
+ return /* @__PURE__ */ jsx(Flex, { width: "max-content", height: "max-content", children: icon });
17875
17116
  });
17876
17117
  FileIcon.displayName = "FileIcon";
17877
17118
  const FileBadge = memo((props) => {
@@ -18278,9 +17519,9 @@ const ImageMarkup = memo((props) => {
18278
17519
  }
18279
17520
  ),
18280
17521
  /* @__PURE__ */ jsx(Separator, { orientation: "vertical", size: "4" }),
18281
- /* @__PURE__ */ jsx(Tooltip, { content: "Undo last", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo", onClick: handleUndoLast, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowGoBackLine" }) }) }),
18282
- /* @__PURE__ */ jsx(Tooltip, { content: "redo last", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo", onClick: handleRedoLast, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowGoForwardLine" }) }) }),
18283
- /* @__PURE__ */ jsx(Tooltip, { content: "Undo all", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo all", onClick: handleUndoAll, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiLoopLeftLine" }) }) })
17522
+ /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo", onClick: handleUndoLast, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowGoBackLine" }) }),
17523
+ /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo", onClick: handleRedoLast, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowGoForwardLine" }) }),
17524
+ /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo all", onClick: handleUndoAll, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiLoopLeftLine" }) })
18284
17525
  ] }),
18285
17526
  /* @__PURE__ */ jsxs(Flex, { justify: "end", gap: "2", children: [
18286
17527
  /* @__PURE__ */ jsx(IconButton, { "aria-label": "Save markup", severity: "primary", onClick: handleSave, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiSaveLine" }) }),
@@ -19343,7 +18584,7 @@ const FormBrowserEntry = (props) => {
19343
18584
  },
19344
18585
  [handleToggleFavorite]
19345
18586
  );
19346
- const ret = /* @__PURE__ */ jsx(
18587
+ return /* @__PURE__ */ jsx(
19347
18588
  ButtonList.Item,
19348
18589
  {
19349
18590
  onClick: () => {
@@ -19374,10 +18615,6 @@ const FormBrowserEntry = (props) => {
19374
18615
  ] })
19375
18616
  }
19376
18617
  );
19377
- if (form.latestRevision.description) {
19378
- return /* @__PURE__ */ jsx(Tooltip, { content: form.latestRevision.description, children: ret }, form.offline_id);
19379
- }
19380
- return ret;
19381
18618
  };
19382
18619
  const PatchField = memo((props) => {
19383
18620
  const { name, render } = props;
@@ -19550,20 +18787,21 @@ const FieldActions = memo((props) => {
19550
18787
  },
19551
18788
  Action.key
19552
18789
  )) }),
19553
- /* @__PURE__ */ jsx(Box, { display: forMobile(true, "block"), children: /* @__PURE__ */ jsx(
19554
- OvermapDropdownMenu,
19555
- {
19556
- trigger: /* @__PURE__ */ jsx(IconButton, { variant: "ghost", "aria-label": "Actions menu", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiMore2Line" }) }),
19557
- items: actions.map((Action) => {
19558
- var _a2;
19559
- return {
18790
+ /* @__PURE__ */ jsx(Box, { display: forMobile(true, "block"), children: /* @__PURE__ */ jsxs(OvermapMenu.Root, { children: [
18791
+ /* @__PURE__ */ jsx(OvermapMenu.ClickTrigger, { children: /* @__PURE__ */ jsx(IconButton, { variant: "ghost", "aria-label": "Actions menu", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiMore2Line" }) }) }),
18792
+ /* @__PURE__ */ jsx(OvermapMenu.Content, { children: actions.map((Action) => {
18793
+ var _a2;
18794
+ return /* @__PURE__ */ jsx(
18795
+ OvermapMenu.Item,
18796
+ {
18797
+ onClick: (_a2 = Action.buttonProps) == null ? void 0 : _a2.onClick,
19560
18798
  leftSlot: /* @__PURE__ */ jsx(Action.Icon, {}),
19561
- children: Action.text,
19562
- onClick: (_a2 = Action.buttonProps) == null ? void 0 : _a2.onClick
19563
- };
19564
- })
19565
- }
19566
- ) }),
18799
+ children: Action.text
18800
+ },
18801
+ Action.key
18802
+ );
18803
+ }) })
18804
+ ] }) }),
19567
18805
  type !== "section" && /* @__PURE__ */ jsx("input", { style: { display: "none" }, ref: fileInputRef, type: "file", accept: "image/*", onChange: upload })
19568
18806
  ] });
19569
18807
  });
@@ -20175,16 +19413,21 @@ const FieldSectionWithActions = memo((props) => {
20175
19413
  child.identifier
20176
19414
  )),
20177
19415
  droppableProvided.placeholder,
20178
- /* @__PURE__ */ jsx(
20179
- OvermapDropdownMenu,
20180
- {
20181
- trigger: /* @__PURE__ */ jsxs(Button, { type: "button", variant: "soft", children: [
20182
- /* @__PURE__ */ jsx(RiIcon, { icon: "RiAddLine" }),
20183
- " Add field"
20184
- ] }),
20185
- items: fieldTypeItems.flat()
20186
- }
20187
- )
19416
+ /* @__PURE__ */ jsxs(OvermapMenu.Root, { children: [
19417
+ /* @__PURE__ */ jsx(OvermapMenu.ClickTrigger, { children: /* @__PURE__ */ jsxs(Button, { type: "button", variant: "soft", children: [
19418
+ /* @__PURE__ */ jsx(RiIcon, { icon: "RiAddLine" }),
19419
+ " Add field"
19420
+ ] }) }),
19421
+ /* @__PURE__ */ jsx(OvermapMenu.Content, { children: fieldTypeItems.flat().map((item) => /* @__PURE__ */ jsx(
19422
+ OvermapMenu.Item,
19423
+ {
19424
+ leftSlot: item.leftSlot,
19425
+ onSelect: item.onSelect,
19426
+ children: item.children
19427
+ },
19428
+ item.value
19429
+ )) })
19430
+ ] })
20188
19431
  ]
20189
19432
  }
20190
19433
  )