@seeqdev/qomponents 0.0.63 → 0.0.65

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.esm.js CHANGED
@@ -33,6 +33,16 @@ const browserIsFirefox = browserId && browserName === 'Firefox';
33
33
 
34
34
  const DEFAULT_TOOL_TIP_DELAY = 500;
35
35
 
36
+ const getQTipData = ({ tooltip, tooltipPlacement, isHtmlTooltip, tooltipTestId, tooltipDelay = DEFAULT_TOOL_TIP_DELAY, }) => tooltip
37
+ ? {
38
+ 'data-qtip-text': tooltip,
39
+ 'data-qtip-placement': tooltipPlacement,
40
+ 'data-qtip-is-html': isHtmlTooltip,
41
+ 'data-qtip-testid': tooltipTestId,
42
+ 'data-qtip-delay': tooltipDelay,
43
+ }
44
+ : undefined;
45
+
36
46
  const colorClassesThemeLight = {
37
47
  'theme': 'tw-text-sq-color-dark',
38
48
  'white': 'tw-text-white',
@@ -68,7 +78,7 @@ const colorClassesThemeDark = {
68
78
  * - access to Seeq custom icons by providing the desired icon
69
79
  * - leverage "type" to style your icon
70
80
  */
71
- const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClassNames, id, large, small, color, testId, customId, tooltip, tooltipPlacement, number, isHtmlTooltip = false, tooltipTestId, tooltipDelay = DEFAULT_TOOL_TIP_DELAY, }) => {
81
+ const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClassNames, id, large, small, color, testId, customId, number, ...tooltipProps }) => {
72
82
  if ((type === 'color' && (color === undefined || color === '')) || (color && type !== 'color')) {
73
83
  const errorMessage = color === undefined || color === ''
74
84
  ? 'Icon with type="color" must have prop color specified.'
@@ -80,15 +90,7 @@ const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClas
80
90
  const style = type === 'color' && color ? { color } : {};
81
91
  const appliedClassNames = `${iconPrefixString} ${icon} ${small ? 'fa-sm' : ''} ${large ? 'fa-lg' : ''}
82
92
  ${colorClassesThemeLight[type]} ${colorClassesThemeDark[type]} ${onClick ? 'cursor-pointer' : ''} ${extraClassNames}`;
83
- const tooltipData = tooltip
84
- ? {
85
- 'data-qtip-text': tooltip,
86
- 'data-qtip-placement': tooltipPlacement,
87
- 'data-qtip-is-html': isHtmlTooltip,
88
- 'data-qtip-testid': tooltipTestId,
89
- 'data-qtip-delay': tooltipDelay,
90
- }
91
- : undefined;
93
+ const tooltipData = getQTipData(tooltipProps);
92
94
  return (React__default.createElement("i", { className: appliedClassNames, style: style, onClick: onClick, "data-testid": testId, "data-customid": customId, id: id, "data-number": number, ...tooltipData }));
93
95
  };
94
96
 
@@ -188,7 +190,7 @@ function _extends() {
188
190
  return _extends.apply(this, arguments);
189
191
  }
190
192
 
191
- function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
193
+ function $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
192
194
  return function handleEvent(event) {
193
195
  originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
194
196
  if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
@@ -198,29 +200,29 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
198
200
  /**
199
201
  * Set a given ref to a given value
200
202
  * This utility takes care of different types of refs: callback refs and RefObject(s)
201
- */ function $6ed0406888f73fc4$var$setRef(ref, value) {
203
+ */ function $6ed0406888f73fc4$var$setRef$1(ref, value) {
202
204
  if (typeof ref === 'function') ref(value);
203
205
  else if (ref !== null && ref !== undefined) ref.current = value;
204
206
  }
205
207
  /**
206
208
  * A utility to compose multiple refs together
207
209
  * Accepts callback refs and RefObject(s)
208
- */ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
209
- return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)
210
+ */ function $6ed0406888f73fc4$export$43e446d32b3d21af$1(...refs) {
211
+ return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef$1(ref, node)
210
212
  )
211
213
  ;
212
214
  }
213
215
  /**
214
216
  * A custom hook that composes multiple refs
215
217
  * Accepts callback refs and RefObject(s)
216
- */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
218
+ */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(...refs) {
217
219
  // eslint-disable-next-line react-hooks/exhaustive-deps
218
- return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
220
+ return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af$1(...refs), refs);
219
221
  }
220
222
 
221
223
  /* -------------------------------------------------------------------------------------------------
222
224
  * createContextScope
223
- * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
225
+ * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1$1(scopeName, createContextScopeDeps = []) {
224
226
  let defaultContexts = [];
225
227
  /* -----------------------------------------------------------------------------------------------
226
228
  * createContext
@@ -277,12 +279,12 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
277
279
  createScope.scopeName = scopeName;
278
280
  return [
279
281
  $c512c27ab02ef895$export$fd42f52fd3ae1109,
280
- $c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
282
+ $c512c27ab02ef895$var$composeContextScopes$1(createScope, ...createContextScopeDeps)
281
283
  ];
282
284
  }
283
285
  /* -------------------------------------------------------------------------------------------------
284
286
  * composeContextScopes
285
- * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
287
+ * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes$1(...scopes) {
286
288
  const baseScope = scopes[0];
287
289
  if (scopes.length === 1) return baseScope;
288
290
  const createScope1 = ()=>{
@@ -317,10 +319,10 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
317
319
 
318
320
  /* -------------------------------------------------------------------------------------------------
319
321
  * Slot
320
- * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
322
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360$1 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
321
323
  const { children: children , ...slotProps } = props;
322
324
  const childrenArray = Children.toArray(children);
323
- const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
325
+ const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable$1);
324
326
  if (slottable) {
325
327
  // the new element to render is the one passed as a child of `Slottable`
326
328
  const newElement = slottable.props.children;
@@ -332,35 +334,35 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
332
334
  return /*#__PURE__*/ isValidElement(newElement) ? newElement.props.children : null;
333
335
  } else return child;
334
336
  });
335
- return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
337
+ return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone$1, _extends({}, slotProps, {
336
338
  ref: forwardedRef
337
339
  }), /*#__PURE__*/ isValidElement(newElement) ? /*#__PURE__*/ cloneElement(newElement, undefined, newChildren) : null);
338
340
  }
339
- return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
341
+ return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone$1, _extends({}, slotProps, {
340
342
  ref: forwardedRef
341
343
  }), children);
342
344
  });
343
- $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
345
+ $5e63c961fc1ce211$export$8c6ed5c666ac1360$1.displayName = 'Slot';
344
346
  /* -------------------------------------------------------------------------------------------------
345
347
  * SlotClone
346
- * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
348
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone$1 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
347
349
  const { children: children , ...slotProps } = props;
348
350
  if (/*#__PURE__*/ isValidElement(children)) return /*#__PURE__*/ cloneElement(children, {
349
- ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
350
- ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
351
+ ...$5e63c961fc1ce211$var$mergeProps$1(slotProps, children.props),
352
+ ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af$1(forwardedRef, children.ref) : children.ref
351
353
  });
352
354
  return Children.count(children) > 1 ? Children.only(null) : null;
353
355
  });
354
- $5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';
356
+ $5e63c961fc1ce211$var$SlotClone$1.displayName = 'SlotClone';
355
357
  /* -------------------------------------------------------------------------------------------------
356
358
  * Slottable
357
- * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{
359
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45$1 = ({ children: children })=>{
358
360
  return /*#__PURE__*/ createElement(Fragment, null, children);
359
361
  };
360
- /* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {
361
- return /*#__PURE__*/ isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
362
+ /* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable$1(child) {
363
+ return /*#__PURE__*/ isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45$1;
362
364
  }
363
- function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
365
+ function $5e63c961fc1ce211$var$mergeProps$1(slotProps, childProps) {
364
366
  // all child props should override
365
367
  const overrideProps = {
366
368
  ...childProps
@@ -391,7 +393,7 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
391
393
  };
392
394
  }
393
395
 
394
- const $8927f6f2acc4f386$var$NODES = [
396
+ const $8927f6f2acc4f386$var$NODES$1 = [
395
397
  'a',
396
398
  'button',
397
399
  'div',
@@ -413,10 +415,10 @@ const $8927f6f2acc4f386$var$NODES = [
413
415
  // prettier-ignore
414
416
  /* -------------------------------------------------------------------------------------------------
415
417
  * Primitive
416
- * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node)=>{
418
+ * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034$1 = $8927f6f2acc4f386$var$NODES$1.reduce((primitive, node)=>{
417
419
  const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
418
420
  const { asChild: asChild , ...primitiveProps } = props;
419
- const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
421
+ const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360$1 : node;
420
422
  useEffect(()=>{
421
423
  window[Symbol.for('radix-ui')] = true;
422
424
  }, []);
@@ -467,7 +469,7 @@ const $8927f6f2acc4f386$var$NODES = [
467
469
  * Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use
468
470
  * this utility with them. This is because it's possible for those handlers to be called implicitly during render
469
471
  * e.g. when focus is within a component as it is unmounted, or when managing focus on mount.
470
- */ function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {
472
+ */ function $8927f6f2acc4f386$export$6d1a0317bde7de7f$1(target, event) {
471
473
  if (target) flushSync(()=>target.dispatchEvent(event)
472
474
  );
473
475
  }
@@ -475,7 +477,7 @@ const $8927f6f2acc4f386$var$NODES = [
475
477
  /**
476
478
  * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
477
479
  * prop or avoid re-executing effects when passed as a dependency
478
- */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
480
+ */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(callback) {
479
481
  const callbackRef = useRef(callback);
480
482
  useEffect(()=>{
481
483
  callbackRef.current = callback;
@@ -489,8 +491,8 @@ const $8927f6f2acc4f386$var$NODES = [
489
491
 
490
492
  /**
491
493
  * Listens for when the escape key is down
492
- */ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
493
- const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
494
+ */ function $addc16e1bbe58fd0$export$3a72a57244d6e765$1(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
495
+ const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onEscapeKeyDownProp);
494
496
  useEffect(()=>{
495
497
  const handleKeyDown = (event)=>{
496
498
  if (event.key === 'Escape') onEscapeKeyDown(event);
@@ -504,23 +506,23 @@ const $8927f6f2acc4f386$var$NODES = [
504
506
  ]);
505
507
  }
506
508
 
507
- const $5cb92bef7577960e$var$CONTEXT_UPDATE = 'dismissableLayer.update';
508
- const $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';
509
- const $5cb92bef7577960e$var$FOCUS_OUTSIDE = 'dismissableLayer.focusOutside';
510
- let $5cb92bef7577960e$var$originalBodyPointerEvents;
511
- const $5cb92bef7577960e$var$DismissableLayerContext = /*#__PURE__*/ createContext({
509
+ const $5cb92bef7577960e$var$CONTEXT_UPDATE$1 = 'dismissableLayer.update';
510
+ const $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE$1 = 'dismissableLayer.pointerDownOutside';
511
+ const $5cb92bef7577960e$var$FOCUS_OUTSIDE$1 = 'dismissableLayer.focusOutside';
512
+ let $5cb92bef7577960e$var$originalBodyPointerEvents$1;
513
+ const $5cb92bef7577960e$var$DismissableLayerContext$1 = /*#__PURE__*/ createContext({
512
514
  layers: new Set(),
513
515
  layersWithOutsidePointerEventsDisabled: new Set(),
514
516
  branches: new Set()
515
517
  });
516
- const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
518
+ const $5cb92bef7577960e$export$177fb62ff3ec1f22$1 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
517
519
  var _node$ownerDocument;
518
520
  const { disableOutsidePointerEvents: disableOutsidePointerEvents = false , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , ...layerProps } = props;
519
- const context = useContext($5cb92bef7577960e$var$DismissableLayerContext);
521
+ const context = useContext($5cb92bef7577960e$var$DismissableLayerContext$1);
520
522
  const [node1, setNode] = useState(null);
521
523
  const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
522
524
  const [, force] = useState({});
523
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setNode(node)
525
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>setNode(node)
524
526
  );
525
527
  const layers = Array.from(context.layers);
526
528
  const [highestLayerWithOutsidePointerEventsDisabled] = [
@@ -530,7 +532,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
530
532
  const index = node1 ? layers.indexOf(node1) : -1;
531
533
  const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
532
534
  const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
533
- const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event)=>{
535
+ const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside$1((event)=>{
534
536
  const target = event.target;
535
537
  const isPointerDownOnBranch = [
536
538
  ...context.branches
@@ -541,7 +543,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
541
543
  onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
542
544
  if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
543
545
  }, ownerDocument);
544
- const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event)=>{
546
+ const focusOutside = $5cb92bef7577960e$var$useFocusOutside$1((event)=>{
545
547
  const target = event.target;
546
548
  const isFocusInBranch = [
547
549
  ...context.branches
@@ -552,7 +554,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
552
554
  onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
553
555
  if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
554
556
  }, ownerDocument);
555
- $addc16e1bbe58fd0$export$3a72a57244d6e765((event)=>{
557
+ $addc16e1bbe58fd0$export$3a72a57244d6e765$1((event)=>{
556
558
  const isHighestLayer = index === context.layers.size - 1;
557
559
  if (!isHighestLayer) return;
558
560
  onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
@@ -565,15 +567,15 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
565
567
  if (!node1) return;
566
568
  if (disableOutsidePointerEvents) {
567
569
  if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
568
- $5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
570
+ $5cb92bef7577960e$var$originalBodyPointerEvents$1 = ownerDocument.body.style.pointerEvents;
569
571
  ownerDocument.body.style.pointerEvents = 'none';
570
572
  }
571
573
  context.layersWithOutsidePointerEventsDisabled.add(node1);
572
574
  }
573
575
  context.layers.add(node1);
574
- $5cb92bef7577960e$var$dispatchUpdate();
576
+ $5cb92bef7577960e$var$dispatchUpdate$1();
575
577
  return ()=>{
576
- if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
578
+ if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents$1;
577
579
  };
578
580
  }, [
579
581
  node1,
@@ -591,7 +593,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
591
593
  if (!node1) return;
592
594
  context.layers.delete(node1);
593
595
  context.layersWithOutsidePointerEventsDisabled.delete(node1);
594
- $5cb92bef7577960e$var$dispatchUpdate();
596
+ $5cb92bef7577960e$var$dispatchUpdate$1();
595
597
  };
596
598
  }, [
597
599
  node1,
@@ -600,27 +602,27 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
600
602
  useEffect(()=>{
601
603
  const handleUpdate = ()=>force({})
602
604
  ;
603
- document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
604
- return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)
605
+ document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE$1, handleUpdate);
606
+ return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE$1, handleUpdate)
605
607
  ;
606
608
  }, []);
607
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, layerProps, {
609
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({}, layerProps, {
608
610
  ref: composedRefs,
609
611
  style: {
610
612
  pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,
611
613
  ...props.style
612
614
  },
613
- onFocusCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusCapture, focusOutside.onFocusCapture),
614
- onBlurCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlurCapture, focusOutside.onBlurCapture),
615
- onPointerDownCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
615
+ onFocusCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onFocusCapture, focusOutside.onFocusCapture),
616
+ onBlurCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onBlurCapture, focusOutside.onBlurCapture),
617
+ onPointerDownCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
616
618
  }));
617
619
  });
618
620
  /* -----------------------------------------------------------------------------------------------*/ /**
619
621
  * Listens for `pointerdown` outside a react subtree. We use `pointerdown` rather than `pointerup`
620
622
  * to mimic layer dismissing behaviour present in OS.
621
623
  * Returns props to pass to the node we want to check for outside events.
622
- */ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
623
- const handlePointerDownOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPointerDownOutside);
624
+ */ function $5cb92bef7577960e$var$usePointerDownOutside$1(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
625
+ const handlePointerDownOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onPointerDownOutside);
624
626
  const isPointerInsideReactTreeRef = useRef(false);
625
627
  const handleClickRef = useRef(()=>{});
626
628
  useEffect(()=>{
@@ -630,7 +632,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
630
632
  originalEvent: event
631
633
  };
632
634
  function handleAndDispatchPointerDownOutsideEvent() {
633
- $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {
635
+ $5cb92bef7577960e$var$handleAndDispatchCustomEvent$1($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE$1, handlePointerDownOutside, eventDetail, {
634
636
  discrete: true
635
637
  });
636
638
  }
@@ -689,8 +691,8 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
689
691
  /**
690
692
  * Listens for when focus happens outside a react subtree.
691
693
  * Returns props to pass to the root (node) of the subtree we want to check.
692
- */ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
693
- const handleFocusOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onFocusOutside);
694
+ */ function $5cb92bef7577960e$var$useFocusOutside$1(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
695
+ const handleFocusOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onFocusOutside);
694
696
  const isFocusInsideReactTreeRef = useRef(false);
695
697
  useEffect(()=>{
696
698
  const handleFocus = (event)=>{
@@ -698,7 +700,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
698
700
  const eventDetail = {
699
701
  originalEvent: event
700
702
  };
701
- $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
703
+ $5cb92bef7577960e$var$handleAndDispatchCustomEvent$1($5cb92bef7577960e$var$FOCUS_OUTSIDE$1, handleFocusOutside, eventDetail, {
702
704
  discrete: false
703
705
  });
704
706
  }
@@ -716,11 +718,11 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
716
718
  onBlurCapture: ()=>isFocusInsideReactTreeRef.current = false
717
719
  };
718
720
  }
719
- function $5cb92bef7577960e$var$dispatchUpdate() {
720
- const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);
721
+ function $5cb92bef7577960e$var$dispatchUpdate$1() {
722
+ const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE$1);
721
723
  document.dispatchEvent(event);
722
724
  }
723
- function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete: discrete }) {
725
+ function $5cb92bef7577960e$var$handleAndDispatchCustomEvent$1(name, handler, detail, { discrete: discrete }) {
724
726
  const target = detail.originalEvent.target;
725
727
  const event = new CustomEvent(name, {
726
728
  bubbles: false,
@@ -730,7 +732,7 @@ function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detai
730
732
  if (handler) target.addEventListener(name, handler, {
731
733
  once: true
732
734
  });
733
- if (discrete) $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
735
+ if (discrete) $8927f6f2acc4f386$export$6d1a0317bde7de7f$1(target, event);
734
736
  else target.dispatchEvent(event);
735
737
  }
736
738
 
@@ -769,10 +771,10 @@ const $d3863c46a17e8a28$var$EVENT_OPTIONS = {
769
771
  const $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
770
772
  const { loop: loop = false , trapped: trapped = false , onMountAutoFocus: onMountAutoFocusProp , onUnmountAutoFocus: onUnmountAutoFocusProp , ...scopeProps } = props;
771
773
  const [container1, setContainer] = useState(null);
772
- const onMountAutoFocus = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onMountAutoFocusProp);
773
- const onUnmountAutoFocus = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onUnmountAutoFocusProp);
774
+ const onMountAutoFocus = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onMountAutoFocusProp);
775
+ const onUnmountAutoFocus = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onUnmountAutoFocusProp);
774
776
  const lastFocusedElementRef = useRef(null);
775
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setContainer(node)
777
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>setContainer(node)
776
778
  );
777
779
  const focusScope = useRef({
778
780
  paused: false,
@@ -905,7 +907,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ forwardRef((prop
905
907
  trapped,
906
908
  focusScope.paused
907
909
  ]);
908
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
910
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
909
911
  tabIndex: -1
910
912
  }, scopeProps, {
911
913
  ref: composedRefs,
@@ -1035,14 +1037,14 @@ function $d3863c46a17e8a28$var$removeLinks(items) {
1035
1037
  * We use this safe version which suppresses the warning by replacing it with a noop on the server.
1036
1038
  *
1037
1039
  * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
1038
- */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? useLayoutEffect : ()=>{};
1040
+ */ const $9f79659886946c16$export$e5c5a5f917a5871c$1 = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? useLayoutEffect : ()=>{};
1039
1041
 
1040
1042
  const $1746a345f3d73bb7$var$useReactId = React['useId'.toString()] || (()=>undefined
1041
1043
  );
1042
1044
  let $1746a345f3d73bb7$var$count = 0;
1043
1045
  function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
1044
1046
  const [id, setId] = React.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
1045
- $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
1047
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
1046
1048
  if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
1047
1049
  );
1048
1050
  }, [
@@ -1393,7 +1395,7 @@ async function detectOverflow(state, options) {
1393
1395
  * appears centered to the reference element.
1394
1396
  * @see https://floating-ui.com/docs/arrow
1395
1397
  */
1396
- const arrow$2 = options => ({
1398
+ const arrow$3 = options => ({
1397
1399
  name: 'arrow',
1398
1400
  options,
1399
1401
  async fn(state) {
@@ -2701,7 +2703,7 @@ const hide = hide$1;
2701
2703
  * appears centered to the reference element.
2702
2704
  * @see https://floating-ui.com/docs/arrow
2703
2705
  */
2704
- const arrow$1 = arrow$2;
2706
+ const arrow$2 = arrow$3;
2705
2707
 
2706
2708
  /**
2707
2709
  * Built-in `limiter` that will stop `shift()` at a certain point.
@@ -2737,7 +2739,7 @@ const computePosition = (reference, floating, options) => {
2737
2739
  * This wraps the core `arrow` middleware to allow React refs as the element.
2738
2740
  * @see https://floating-ui.com/docs/arrow
2739
2741
  */
2740
- const arrow = options => {
2742
+ const arrow$1 = options => {
2741
2743
  function isRef(value) {
2742
2744
  return {}.hasOwnProperty.call(value, 'current');
2743
2745
  }
@@ -2751,14 +2753,14 @@ const arrow = options => {
2751
2753
  } = typeof options === 'function' ? options(state) : options;
2752
2754
  if (element && isRef(element)) {
2753
2755
  if (element.current != null) {
2754
- return arrow$1({
2756
+ return arrow$2({
2755
2757
  element: element.current,
2756
2758
  padding
2757
2759
  }).fn(state);
2758
2760
  }
2759
2761
  return {};
2760
2762
  } else if (element) {
2761
- return arrow$1({
2763
+ return arrow$2({
2762
2764
  element,
2763
2765
  padding
2764
2766
  }).fn(state);
@@ -2768,11 +2770,11 @@ const arrow = options => {
2768
2770
  };
2769
2771
  };
2770
2772
 
2771
- var index$1 = typeof document !== 'undefined' ? useLayoutEffect : useEffect;
2773
+ var index$2 = typeof document !== 'undefined' ? useLayoutEffect : useEffect;
2772
2774
 
2773
2775
  // Fork of `fast-deep-equal` that only does the comparisons we need and compares
2774
2776
  // functions
2775
- function deepEqual(a, b) {
2777
+ function deepEqual$1(a, b) {
2776
2778
  if (a === b) {
2777
2779
  return true;
2778
2780
  }
@@ -2788,7 +2790,7 @@ function deepEqual(a, b) {
2788
2790
  length = a.length;
2789
2791
  if (length != b.length) return false;
2790
2792
  for (i = length; i-- !== 0;) {
2791
- if (!deepEqual(a[i], b[i])) {
2793
+ if (!deepEqual$1(a[i], b[i])) {
2792
2794
  return false;
2793
2795
  }
2794
2796
  }
@@ -2809,7 +2811,7 @@ function deepEqual(a, b) {
2809
2811
  if (key === '_owner' && a.$$typeof) {
2810
2812
  continue;
2811
2813
  }
2812
- if (!deepEqual(a[key], b[key])) {
2814
+ if (!deepEqual$1(a[key], b[key])) {
2813
2815
  return false;
2814
2816
  }
2815
2817
  }
@@ -2831,9 +2833,9 @@ function roundByDPR(element, value) {
2831
2833
  return Math.round(value * dpr) / dpr;
2832
2834
  }
2833
2835
 
2834
- function useLatestRef(value) {
2836
+ function useLatestRef$1(value) {
2835
2837
  const ref = React.useRef(value);
2836
- index$1(() => {
2838
+ index$2(() => {
2837
2839
  ref.current = value;
2838
2840
  });
2839
2841
  return ref;
@@ -2843,7 +2845,7 @@ function useLatestRef(value) {
2843
2845
  * Provides data to position a floating element.
2844
2846
  * @see https://floating-ui.com/docs/useFloating
2845
2847
  */
2846
- function useFloating(options) {
2848
+ function useFloating$1(options) {
2847
2849
  if (options === void 0) {
2848
2850
  options = {};
2849
2851
  }
@@ -2869,7 +2871,7 @@ function useFloating(options) {
2869
2871
  isPositioned: false
2870
2872
  });
2871
2873
  const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);
2872
- if (!deepEqual(latestMiddleware, middleware)) {
2874
+ if (!deepEqual$1(latestMiddleware, middleware)) {
2873
2875
  setLatestMiddleware(middleware);
2874
2876
  }
2875
2877
  const [_reference, _setReference] = React.useState(null);
@@ -2891,8 +2893,8 @@ function useFloating(options) {
2891
2893
  const referenceRef = React.useRef(null);
2892
2894
  const floatingRef = React.useRef(null);
2893
2895
  const dataRef = React.useRef(data);
2894
- const whileElementsMountedRef = useLatestRef(whileElementsMounted);
2895
- const platformRef = useLatestRef(platform);
2896
+ const whileElementsMountedRef = useLatestRef$1(whileElementsMounted);
2897
+ const platformRef = useLatestRef$1(platform);
2896
2898
  const update = React.useCallback(() => {
2897
2899
  if (!referenceRef.current || !floatingRef.current) {
2898
2900
  return;
@@ -2910,7 +2912,7 @@ function useFloating(options) {
2910
2912
  ...data,
2911
2913
  isPositioned: true
2912
2914
  };
2913
- if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
2915
+ if (isMountedRef.current && !deepEqual$1(dataRef.current, fullData)) {
2914
2916
  dataRef.current = fullData;
2915
2917
  ReactDOM.flushSync(() => {
2916
2918
  setData(fullData);
@@ -2918,7 +2920,7 @@ function useFloating(options) {
2918
2920
  }
2919
2921
  });
2920
2922
  }, [latestMiddleware, placement, strategy, platformRef]);
2921
- index$1(() => {
2923
+ index$2(() => {
2922
2924
  if (open === false && dataRef.current.isPositioned) {
2923
2925
  dataRef.current.isPositioned = false;
2924
2926
  setData(data => ({
@@ -2928,13 +2930,13 @@ function useFloating(options) {
2928
2930
  }
2929
2931
  }, [open]);
2930
2932
  const isMountedRef = React.useRef(false);
2931
- index$1(() => {
2933
+ index$2(() => {
2932
2934
  isMountedRef.current = true;
2933
2935
  return () => {
2934
2936
  isMountedRef.current = false;
2935
2937
  };
2936
2938
  }, []);
2937
- index$1(() => {
2939
+ index$2(() => {
2938
2940
  if (referenceEl) referenceRef.current = referenceEl;
2939
2941
  if (floatingEl) floatingRef.current = floatingEl;
2940
2942
  if (referenceEl && floatingEl) {
@@ -2990,9 +2992,9 @@ function useFloating(options) {
2990
2992
  }), [data, update, refs, elements, floatingStyles]);
2991
2993
  }
2992
2994
 
2993
- const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
2995
+ const $7e8f5cd07187803e$export$21b07c8f274aebd5$1 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
2994
2996
  const { children: children , width: width = 10 , height: height = 5 , ...arrowProps } = props;
2995
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends({}, arrowProps, {
2997
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.svg, _extends({}, arrowProps, {
2996
2998
  ref: forwardedRef,
2997
2999
  width: width,
2998
3000
  height: height,
@@ -3002,11 +3004,11 @@ const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /*#__PURE__*/ forwardRef((prop
3002
3004
  points: "0,0 30,0 15,10"
3003
3005
  }));
3004
3006
  });
3005
- /* -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;
3007
+ /* -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$export$be92b6f5f03c0fe9$1 = $7e8f5cd07187803e$export$21b07c8f274aebd5$1;
3006
3008
 
3007
- function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
3009
+ function $db6c3485150b8e66$export$1ab7ae714698c4b8$1(element) {
3008
3010
  const [size, setSize] = useState(undefined);
3009
- $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
3011
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
3010
3012
  if (element) {
3011
3013
  // provide size as early as possible
3012
3014
  setSize({
@@ -3053,13 +3055,13 @@ function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
3053
3055
 
3054
3056
  /* -------------------------------------------------------------------------------------------------
3055
3057
  * Popper
3056
- * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$POPPER_NAME = 'Popper';
3057
- const [$cf1ac5d9fe0e8206$var$createPopperContext, $cf1ac5d9fe0e8206$export$722aac194ae923] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cf1ac5d9fe0e8206$var$POPPER_NAME);
3058
- const [$cf1ac5d9fe0e8206$var$PopperProvider, $cf1ac5d9fe0e8206$var$usePopperContext] = $cf1ac5d9fe0e8206$var$createPopperContext($cf1ac5d9fe0e8206$var$POPPER_NAME);
3059
- const $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9 = (props)=>{
3058
+ * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$POPPER_NAME$1 = 'Popper';
3059
+ const [$cf1ac5d9fe0e8206$var$createPopperContext$1, $cf1ac5d9fe0e8206$export$722aac194ae923$1] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($cf1ac5d9fe0e8206$var$POPPER_NAME$1);
3060
+ const [$cf1ac5d9fe0e8206$var$PopperProvider$1, $cf1ac5d9fe0e8206$var$usePopperContext$1] = $cf1ac5d9fe0e8206$var$createPopperContext$1($cf1ac5d9fe0e8206$var$POPPER_NAME$1);
3061
+ const $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9$1 = (props)=>{
3060
3062
  const { __scopePopper: __scopePopper , children: children } = props;
3061
3063
  const [anchor, setAnchor] = useState(null);
3062
- return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$var$PopperProvider, {
3064
+ return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$var$PopperProvider$1, {
3063
3065
  scope: __scopePopper,
3064
3066
  anchor: anchor,
3065
3067
  onAnchorChange: setAnchor
@@ -3067,35 +3069,35 @@ const $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9 = (props)=>{
3067
3069
  };
3068
3070
  /* -------------------------------------------------------------------------------------------------
3069
3071
  * PopperAnchor
3070
- * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$ANCHOR_NAME = 'PopperAnchor';
3071
- const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
3072
+ * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$ANCHOR_NAME$1 = 'PopperAnchor';
3073
+ const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d$1 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
3072
3074
  const { __scopePopper: __scopePopper , virtualRef: virtualRef , ...anchorProps } = props;
3073
- const context = $cf1ac5d9fe0e8206$var$usePopperContext($cf1ac5d9fe0e8206$var$ANCHOR_NAME, __scopePopper);
3075
+ const context = $cf1ac5d9fe0e8206$var$usePopperContext$1($cf1ac5d9fe0e8206$var$ANCHOR_NAME$1, __scopePopper);
3074
3076
  const ref = useRef(null);
3075
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
3077
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
3076
3078
  useEffect(()=>{
3077
3079
  // Consumer can anchor the popper to something that isn't
3078
3080
  // a DOM node e.g. pointer position, so we override the
3079
3081
  // `anchorRef` with their virtual ref in this case.
3080
3082
  context.onAnchorChange((virtualRef === null || virtualRef === void 0 ? void 0 : virtualRef.current) || ref.current);
3081
3083
  });
3082
- return virtualRef ? null : /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, anchorProps, {
3084
+ return virtualRef ? null : /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({}, anchorProps, {
3083
3085
  ref: composedRefs
3084
3086
  }));
3085
3087
  });
3086
3088
  /* -------------------------------------------------------------------------------------------------
3087
3089
  * PopperContent
3088
- * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$CONTENT_NAME = 'PopperContent';
3089
- const [$cf1ac5d9fe0e8206$var$PopperContentProvider, $cf1ac5d9fe0e8206$var$useContentContext] = $cf1ac5d9fe0e8206$var$createPopperContext($cf1ac5d9fe0e8206$var$CONTENT_NAME);
3090
- const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
3090
+ * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$CONTENT_NAME$1 = 'PopperContent';
3091
+ const [$cf1ac5d9fe0e8206$var$PopperContentProvider$1, $cf1ac5d9fe0e8206$var$useContentContext$1] = $cf1ac5d9fe0e8206$var$createPopperContext$1($cf1ac5d9fe0e8206$var$CONTENT_NAME$1);
3092
+ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc$1 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
3091
3093
  var _arrowSize$width, _arrowSize$height, _middlewareData$arrow, _middlewareData$arrow2, _middlewareData$arrow3, _middlewareData$trans, _middlewareData$trans2, _middlewareData$hide;
3092
3094
  const { __scopePopper: __scopePopper , side: side = 'bottom' , sideOffset: sideOffset = 0 , align: align = 'center' , alignOffset: alignOffset = 0 , arrowPadding: arrowPadding = 0 , avoidCollisions: avoidCollisions = true , collisionBoundary: collisionBoundary = [] , collisionPadding: collisionPaddingProp = 0 , sticky: sticky = 'partial' , hideWhenDetached: hideWhenDetached = false , updatePositionStrategy: updatePositionStrategy = 'optimized' , onPlaced: onPlaced , ...contentProps } = props;
3093
- const context = $cf1ac5d9fe0e8206$var$usePopperContext($cf1ac5d9fe0e8206$var$CONTENT_NAME, __scopePopper);
3095
+ const context = $cf1ac5d9fe0e8206$var$usePopperContext$1($cf1ac5d9fe0e8206$var$CONTENT_NAME$1, __scopePopper);
3094
3096
  const [content, setContent] = useState(null);
3095
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setContent(node)
3097
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>setContent(node)
3096
3098
  );
3097
- const [arrow$1, setArrow] = useState(null);
3098
- const arrowSize = $db6c3485150b8e66$export$1ab7ae714698c4b8(arrow$1);
3099
+ const [arrow, setArrow] = useState(null);
3100
+ const arrowSize = $db6c3485150b8e66$export$1ab7ae714698c4b8$1(arrow);
3099
3101
  const arrowWidth = (_arrowSize$width = arrowSize === null || arrowSize === void 0 ? void 0 : arrowSize.width) !== null && _arrowSize$width !== void 0 ? _arrowSize$width : 0;
3100
3102
  const arrowHeight = (_arrowSize$height = arrowSize === null || arrowSize === void 0 ? void 0 : arrowSize.height) !== null && _arrowSize$height !== void 0 ? _arrowSize$height : 0;
3101
3103
  const desiredPlacement = side + (align !== 'center' ? '-' + align : '');
@@ -3112,11 +3114,11 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ forwardRef((props
3112
3114
  const hasExplicitBoundaries = boundary.length > 0;
3113
3115
  const detectOverflowOptions = {
3114
3116
  padding: collisionPadding,
3115
- boundary: boundary.filter($cf1ac5d9fe0e8206$var$isNotNull),
3117
+ boundary: boundary.filter($cf1ac5d9fe0e8206$var$isNotNull$1),
3116
3118
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
3117
3119
  altBoundary: hasExplicitBoundaries
3118
3120
  };
3119
- const { refs: refs , floatingStyles: floatingStyles , placement: placement , isPositioned: isPositioned , middlewareData: middlewareData } = useFloating({
3121
+ const { refs: refs , floatingStyles: floatingStyles , placement: placement , isPositioned: isPositioned , middlewareData: middlewareData } = useFloating$1({
3120
3122
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
3121
3123
  strategy: 'fixed',
3122
3124
  placement: desiredPlacement,
@@ -3154,11 +3156,11 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ forwardRef((props
3154
3156
  contentStyle.setProperty('--radix-popper-anchor-height', `${anchorHeight}px`);
3155
3157
  }
3156
3158
  }),
3157
- arrow$1 && arrow({
3158
- element: arrow$1,
3159
+ arrow && arrow$1({
3160
+ element: arrow,
3159
3161
  padding: arrowPadding
3160
3162
  }),
3161
- $cf1ac5d9fe0e8206$var$transformOrigin({
3163
+ $cf1ac5d9fe0e8206$var$transformOrigin$1({
3162
3164
  arrowWidth: arrowWidth,
3163
3165
  arrowHeight: arrowHeight
3164
3166
  }),
@@ -3168,9 +3170,9 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ forwardRef((props
3168
3170
  })
3169
3171
  ]
3170
3172
  });
3171
- const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement);
3172
- const handlePlaced = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPlaced);
3173
- $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
3173
+ const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement$1(placement);
3174
+ const handlePlaced = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onPlaced);
3175
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
3174
3176
  if (isPositioned) handlePlaced === null || handlePlaced === void 0 || handlePlaced();
3175
3177
  }, [
3176
3178
  isPositioned,
@@ -3180,7 +3182,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ forwardRef((props
3180
3182
  const arrowY = (_middlewareData$arrow2 = middlewareData.arrow) === null || _middlewareData$arrow2 === void 0 ? void 0 : _middlewareData$arrow2.y;
3181
3183
  const cannotCenterArrow = ((_middlewareData$arrow3 = middlewareData.arrow) === null || _middlewareData$arrow3 === void 0 ? void 0 : _middlewareData$arrow3.centerOffset) !== 0;
3182
3184
  const [contentZIndex, setContentZIndex] = useState();
3183
- $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
3185
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
3184
3186
  if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
3185
3187
  }, [
3186
3188
  content
@@ -3201,14 +3203,14 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ forwardRef((props
3201
3203
  } // Floating UI interally calculates logical alignment based the `dir` attribute on
3202
3204
  ,
3203
3205
  dir: props.dir
3204
- }, /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$var$PopperContentProvider, {
3206
+ }, /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$var$PopperContentProvider$1, {
3205
3207
  scope: __scopePopper,
3206
3208
  placedSide: placedSide,
3207
3209
  onArrowChange: setArrow,
3208
3210
  arrowX: arrowX,
3209
3211
  arrowY: arrowY,
3210
3212
  shouldHideArrow: cannotCenterArrow
3211
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
3213
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
3212
3214
  "data-side": placedSide,
3213
3215
  "data-align": placedAlign
3214
3216
  }, contentProps, {
@@ -3225,17 +3227,17 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ forwardRef((props
3225
3227
  });
3226
3228
  /* -------------------------------------------------------------------------------------------------
3227
3229
  * PopperArrow
3228
- * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$ARROW_NAME = 'PopperArrow';
3229
- const $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE = {
3230
+ * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$ARROW_NAME$1 = 'PopperArrow';
3231
+ const $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE$1 = {
3230
3232
  top: 'bottom',
3231
3233
  right: 'left',
3232
3234
  bottom: 'top',
3233
3235
  left: 'right'
3234
3236
  };
3235
- const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /*#__PURE__*/ forwardRef(function $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0(props, forwardedRef) {
3237
+ const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0$1 = /*#__PURE__*/ forwardRef(function $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0(props, forwardedRef) {
3236
3238
  const { __scopePopper: __scopePopper , ...arrowProps } = props;
3237
- const contentContext = $cf1ac5d9fe0e8206$var$useContentContext($cf1ac5d9fe0e8206$var$ARROW_NAME, __scopePopper);
3238
- const baseSide = $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE[contentContext.placedSide];
3239
+ const contentContext = $cf1ac5d9fe0e8206$var$useContentContext$1($cf1ac5d9fe0e8206$var$ARROW_NAME$1, __scopePopper);
3240
+ const baseSide = $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE$1[contentContext.placedSide];
3239
3241
  return(/*#__PURE__*/ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
3240
3242
  // doesn't report size as we'd expect on SVG elements.
3241
3243
  // it reports their bounding box which is effectively the largest path inside the SVG.
@@ -3260,7 +3262,7 @@ const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /*#__PURE__*/ forwardRef(funct
3260
3262
  }[contentContext.placedSide],
3261
3263
  visibility: contentContext.shouldHideArrow ? 'hidden' : undefined
3262
3264
  }
3263
- }, /*#__PURE__*/ createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends({}, arrowProps, {
3265
+ }, /*#__PURE__*/ createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9$1, _extends({}, arrowProps, {
3264
3266
  ref: forwardedRef,
3265
3267
  style: {
3266
3268
  ...arrowProps.style,
@@ -3269,10 +3271,10 @@ const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /*#__PURE__*/ forwardRef(funct
3269
3271
  }
3270
3272
  }))));
3271
3273
  });
3272
- /* -----------------------------------------------------------------------------------------------*/ function $cf1ac5d9fe0e8206$var$isNotNull(value) {
3274
+ /* -----------------------------------------------------------------------------------------------*/ function $cf1ac5d9fe0e8206$var$isNotNull$1(value) {
3273
3275
  return value !== null;
3274
3276
  }
3275
- const $cf1ac5d9fe0e8206$var$transformOrigin = (options)=>({
3277
+ const $cf1ac5d9fe0e8206$var$transformOrigin$1 = (options)=>({
3276
3278
  name: 'transformOrigin',
3277
3279
  options: options,
3278
3280
  fn (data) {
@@ -3282,7 +3284,7 @@ const $cf1ac5d9fe0e8206$var$transformOrigin = (options)=>({
3282
3284
  const isArrowHidden = cannotCenterArrow;
3283
3285
  const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
3284
3286
  const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
3285
- const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement);
3287
+ const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement$1(placement);
3286
3288
  const noArrowAlign = {
3287
3289
  start: '0%',
3288
3290
  center: '50%',
@@ -3314,27 +3316,27 @@ const $cf1ac5d9fe0e8206$var$transformOrigin = (options)=>({
3314
3316
  }
3315
3317
  })
3316
3318
  ;
3317
- function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement) {
3319
+ function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement$1(placement) {
3318
3320
  const [side, align = 'center'] = placement.split('-');
3319
3321
  return [
3320
3322
  side,
3321
3323
  align
3322
3324
  ];
3323
3325
  }
3324
- const $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9 = $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9;
3325
- const $cf1ac5d9fe0e8206$export$b688253958b8dfe7 = $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d;
3326
- const $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 = $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc;
3327
- const $cf1ac5d9fe0e8206$export$21b07c8f274aebd5 = $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0;
3326
+ const $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9$1 = $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9$1;
3327
+ const $cf1ac5d9fe0e8206$export$b688253958b8dfe7$1 = $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d$1;
3328
+ const $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2$1 = $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc$1;
3329
+ const $cf1ac5d9fe0e8206$export$21b07c8f274aebd5$1 = $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0$1;
3328
3330
 
3329
- const $f1701beae083dbae$export$602eac185826482c = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
3331
+ const $f1701beae083dbae$export$602eac185826482c$1 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
3330
3332
  var _globalThis$document;
3331
3333
  const { container: container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body , ...portalProps } = props;
3332
- return container ? /*#__PURE__*/ ReactDOM__default.createPortal(/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, portalProps, {
3334
+ return container ? /*#__PURE__*/ ReactDOM__default.createPortal(/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({}, portalProps, {
3333
3335
  ref: forwardedRef
3334
3336
  })), container) : null;
3335
3337
  });
3336
3338
 
3337
- function $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {
3339
+ function $fe963b355347cc68$export$3e6543de14f8614f$1(initialState, machine) {
3338
3340
  return useReducer((state, event)=>{
3339
3341
  const nextState = machine[state][event];
3340
3342
  return nextState !== null && nextState !== void 0 ? nextState : state;
@@ -3342,28 +3344,28 @@ function $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {
3342
3344
  }
3343
3345
 
3344
3346
 
3345
- const $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props)=>{
3347
+ const $921a889cee6df7e8$export$99c2b779aa4e8b8b$1 = (props)=>{
3346
3348
  const { present: present , children: children } = props;
3347
- const presence = $921a889cee6df7e8$var$usePresence(present);
3349
+ const presence = $921a889cee6df7e8$var$usePresence$1(present);
3348
3350
  const child = typeof children === 'function' ? children({
3349
3351
  present: presence.isPresent
3350
3352
  }) : Children.only(children);
3351
- const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref, child.ref);
3353
+ const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(presence.ref, child.ref);
3352
3354
  const forceMount = typeof children === 'function';
3353
3355
  return forceMount || presence.isPresent ? /*#__PURE__*/ cloneElement(child, {
3354
3356
  ref: ref
3355
3357
  }) : null;
3356
3358
  };
3357
- $921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';
3359
+ $921a889cee6df7e8$export$99c2b779aa4e8b8b$1.displayName = 'Presence';
3358
3360
  /* -------------------------------------------------------------------------------------------------
3359
3361
  * usePresence
3360
- * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence(present) {
3362
+ * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence$1(present) {
3361
3363
  const [node1, setNode] = useState();
3362
3364
  const stylesRef = useRef({});
3363
3365
  const prevPresentRef = useRef(present);
3364
3366
  const prevAnimationNameRef = useRef('none');
3365
3367
  const initialState = present ? 'mounted' : 'unmounted';
3366
- const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState, {
3368
+ const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f$1(initialState, {
3367
3369
  mounted: {
3368
3370
  UNMOUNT: 'unmounted',
3369
3371
  ANIMATION_OUT: 'unmountSuspended'
@@ -3377,18 +3379,18 @@ $921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';
3377
3379
  }
3378
3380
  });
3379
3381
  useEffect(()=>{
3380
- const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
3382
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName$1(stylesRef.current);
3381
3383
  prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
3382
3384
  }, [
3383
3385
  state
3384
3386
  ]);
3385
- $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
3387
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
3386
3388
  const styles = stylesRef.current;
3387
3389
  const wasPresent = prevPresentRef.current;
3388
3390
  const hasPresentChanged = wasPresent !== present;
3389
3391
  if (hasPresentChanged) {
3390
3392
  const prevAnimationName = prevAnimationNameRef.current;
3391
- const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);
3393
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName$1(styles);
3392
3394
  if (present) send('MOUNT');
3393
3395
  else if (currentAnimationName === 'none' || (styles === null || styles === void 0 ? void 0 : styles.display) === 'none') // If there is no exit animation or the element is hidden, animations won't run
3394
3396
  // so we unmount instantly
@@ -3409,14 +3411,14 @@ $921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';
3409
3411
  present,
3410
3412
  send
3411
3413
  ]);
3412
- $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
3414
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
3413
3415
  if (node1) {
3414
3416
  /**
3415
3417
  * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`
3416
3418
  * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we
3417
3419
  * make sure we only trigger ANIMATION_END for the currently active animation.
3418
3420
  */ const handleAnimationEnd = (event)=>{
3419
- const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
3421
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName$1(stylesRef.current);
3420
3422
  const isCurrentAnimation = currentAnimationName.includes(event.animationName);
3421
3423
  if (event.target === node1 && isCurrentAnimation) // With React 18 concurrency this update is applied
3422
3424
  // a frame after the animation ends, creating a flash of visible content.
@@ -3426,7 +3428,7 @@ $921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';
3426
3428
  };
3427
3429
  const handleAnimationStart = (event)=>{
3428
3430
  if (event.target === node1) // if animation occurred, store its name as the previous animation.
3429
- prevAnimationNameRef.current = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
3431
+ prevAnimationNameRef.current = $921a889cee6df7e8$var$getAnimationName$1(stylesRef.current);
3430
3432
  };
3431
3433
  node1.addEventListener('animationstart', handleAnimationStart);
3432
3434
  node1.addEventListener('animationcancel', handleAnimationEnd);
@@ -3454,18 +3456,18 @@ $921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';
3454
3456
  }, [])
3455
3457
  };
3456
3458
  }
3457
- /* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$getAnimationName(styles) {
3459
+ /* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$getAnimationName$1(styles) {
3458
3460
  return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none';
3459
3461
  }
3460
3462
 
3461
- function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
3462
- const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
3463
+ function $71cd76cc60e0454e$export$6f32135080cb4c3$1({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
3464
+ const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState$1({
3463
3465
  defaultProp: defaultProp,
3464
3466
  onChange: onChange
3465
3467
  });
3466
3468
  const isControlled = prop !== undefined;
3467
3469
  const value1 = isControlled ? prop : uncontrolledProp;
3468
- const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
3470
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
3469
3471
  const setValue = useCallback((nextValue)=>{
3470
3472
  if (isControlled) {
3471
3473
  const setter = nextValue;
@@ -3483,11 +3485,11 @@ function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: de
3483
3485
  setValue
3484
3486
  ];
3485
3487
  }
3486
- function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {
3488
+ function $71cd76cc60e0454e$var$useUncontrolledState$1({ defaultProp: defaultProp , onChange: onChange }) {
3487
3489
  const uncontrolledState = useState(defaultProp);
3488
3490
  const [value] = uncontrolledState;
3489
3491
  const prevValueRef = useRef(value);
3490
- const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
3492
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
3491
3493
  useEffect(()=>{
3492
3494
  if (prevValueRef.current !== value) {
3493
3495
  handleChange(value);
@@ -4339,22 +4341,22 @@ var $epM9y$RemoveScroll = ReactRemoveScroll;
4339
4341
  /* -------------------------------------------------------------------------------------------------
4340
4342
  * Popover
4341
4343
  * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$POPOVER_NAME = 'Popover';
4342
- const [$cb5cc270b50c6fcd$var$createPopoverContext, $cb5cc270b50c6fcd$export$c8393c9e73286932] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cb5cc270b50c6fcd$var$POPOVER_NAME, [
4343
- $cf1ac5d9fe0e8206$export$722aac194ae923
4344
+ const [$cb5cc270b50c6fcd$var$createPopoverContext, $cb5cc270b50c6fcd$export$c8393c9e73286932] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($cb5cc270b50c6fcd$var$POPOVER_NAME, [
4345
+ $cf1ac5d9fe0e8206$export$722aac194ae923$1
4344
4346
  ]);
4345
- const $cb5cc270b50c6fcd$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923();
4347
+ const $cb5cc270b50c6fcd$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923$1();
4346
4348
  const [$cb5cc270b50c6fcd$var$PopoverProvider, $cb5cc270b50c6fcd$var$usePopoverContext] = $cb5cc270b50c6fcd$var$createPopoverContext($cb5cc270b50c6fcd$var$POPOVER_NAME);
4347
4349
  const $cb5cc270b50c6fcd$export$5b6b19405a83ff9d = (props)=>{
4348
4350
  const { __scopePopover: __scopePopover , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = false } = props;
4349
4351
  const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
4350
4352
  const triggerRef = useRef(null);
4351
4353
  const [hasCustomAnchor, setHasCustomAnchor] = useState(false);
4352
- const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
4354
+ const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
4353
4355
  prop: openProp,
4354
4356
  defaultProp: defaultOpen,
4355
4357
  onChange: onOpenChange
4356
4358
  });
4357
- return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9, popperScope, /*#__PURE__*/ createElement($cb5cc270b50c6fcd$var$PopoverProvider, {
4359
+ return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9$1, popperScope, /*#__PURE__*/ createElement($cb5cc270b50c6fcd$var$PopoverProvider, {
4358
4360
  scope: __scopePopover,
4359
4361
  contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
4360
4362
  triggerRef: triggerRef,
@@ -4373,6 +4375,26 @@ const $cb5cc270b50c6fcd$export$5b6b19405a83ff9d = (props)=>{
4373
4375
  modal: modal
4374
4376
  }, children));
4375
4377
  };
4378
+ /* -------------------------------------------------------------------------------------------------
4379
+ * PopoverAnchor
4380
+ * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$ANCHOR_NAME = 'PopoverAnchor';
4381
+ const $cb5cc270b50c6fcd$export$96e5381f42521a79 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
4382
+ const { __scopePopover: __scopePopover , ...anchorProps } = props;
4383
+ const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$ANCHOR_NAME, __scopePopover);
4384
+ const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
4385
+ const { onCustomAnchorAdd: onCustomAnchorAdd , onCustomAnchorRemove: onCustomAnchorRemove } = context;
4386
+ useEffect(()=>{
4387
+ onCustomAnchorAdd();
4388
+ return ()=>onCustomAnchorRemove()
4389
+ ;
4390
+ }, [
4391
+ onCustomAnchorAdd,
4392
+ onCustomAnchorRemove
4393
+ ]);
4394
+ return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7$1, _extends({}, popperScope, anchorProps, {
4395
+ ref: forwardedRef
4396
+ }));
4397
+ });
4376
4398
  /* -------------------------------------------------------------------------------------------------
4377
4399
  * PopoverTrigger
4378
4400
  * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$TRIGGER_NAME = 'PopoverTrigger';
@@ -4380,8 +4402,8 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /*#__PURE__*/ forwardRef((props
4380
4402
  const { __scopePopover: __scopePopover , ...triggerProps } = props;
4381
4403
  const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$TRIGGER_NAME, __scopePopover);
4382
4404
  const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
4383
- const composedTriggerRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.triggerRef);
4384
- const trigger = /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
4405
+ const composedTriggerRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.triggerRef);
4406
+ const trigger = /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
4385
4407
  type: "button",
4386
4408
  "aria-haspopup": "dialog",
4387
4409
  "aria-expanded": context.open,
@@ -4389,9 +4411,9 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /*#__PURE__*/ forwardRef((props
4389
4411
  "data-state": $cb5cc270b50c6fcd$var$getState(context.open)
4390
4412
  }, triggerProps, {
4391
4413
  ref: composedTriggerRef,
4392
- onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, context.onOpenToggle)
4414
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, context.onOpenToggle)
4393
4415
  }));
4394
- return context.hasCustomAnchor ? trigger : /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends({
4416
+ return context.hasCustomAnchor ? trigger : /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7$1, _extends({
4395
4417
  asChild: true
4396
4418
  }, popperScope), trigger);
4397
4419
  });
@@ -4401,6 +4423,19 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /*#__PURE__*/ forwardRef((props
4401
4423
  const [$cb5cc270b50c6fcd$var$PortalProvider, $cb5cc270b50c6fcd$var$usePortalContext] = $cb5cc270b50c6fcd$var$createPopoverContext($cb5cc270b50c6fcd$var$PORTAL_NAME, {
4402
4424
  forceMount: undefined
4403
4425
  });
4426
+ const $cb5cc270b50c6fcd$export$dd679ffb4362d2d4 = (props)=>{
4427
+ const { __scopePopover: __scopePopover , forceMount: forceMount , children: children , container: container } = props;
4428
+ const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$PORTAL_NAME, __scopePopover);
4429
+ return /*#__PURE__*/ createElement($cb5cc270b50c6fcd$var$PortalProvider, {
4430
+ scope: __scopePopover,
4431
+ forceMount: forceMount
4432
+ }, /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
4433
+ present: forceMount || context.open
4434
+ }, /*#__PURE__*/ createElement($f1701beae083dbae$export$602eac185826482c$1, {
4435
+ asChild: true,
4436
+ container: container
4437
+ }, children)));
4438
+ };
4404
4439
  /* -------------------------------------------------------------------------------------------------
4405
4440
  * PopoverContent
4406
4441
  * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$CONTENT_NAME = 'PopoverContent';
@@ -4408,7 +4443,7 @@ const $cb5cc270b50c6fcd$export$d7e1f420b25549ff = /*#__PURE__*/ forwardRef((prop
4408
4443
  const portalContext = $cb5cc270b50c6fcd$var$usePortalContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
4409
4444
  const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;
4410
4445
  const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
4411
- return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
4446
+ return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
4412
4447
  present: forceMount || context.open
4413
4448
  }, context.modal ? /*#__PURE__*/ createElement($cb5cc270b50c6fcd$var$PopoverContentModal, _extends({}, contentProps, {
4414
4449
  ref: forwardedRef
@@ -4419,26 +4454,26 @@ const $cb5cc270b50c6fcd$export$d7e1f420b25549ff = /*#__PURE__*/ forwardRef((prop
4419
4454
  /* -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$PopoverContentModal = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
4420
4455
  const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
4421
4456
  const contentRef = useRef(null);
4422
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentRef);
4457
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, contentRef);
4423
4458
  const isRightClickOutsideRef = useRef(false); // aria-hide everything except the content (better supported equivalent to setting aria-modal)
4424
4459
  useEffect(()=>{
4425
4460
  const content = contentRef.current;
4426
4461
  if (content) return hideOthers(content);
4427
4462
  }, []);
4428
4463
  return /*#__PURE__*/ createElement($epM9y$RemoveScroll, {
4429
- as: $5e63c961fc1ce211$export$8c6ed5c666ac1360,
4464
+ as: $5e63c961fc1ce211$export$8c6ed5c666ac1360$1,
4430
4465
  allowPinchZoom: true
4431
4466
  }, /*#__PURE__*/ createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends({}, props, {
4432
4467
  ref: composedRefs // we make sure we're not trapping once it's been closed
4433
4468
  ,
4434
4469
  trapFocus: context.open,
4435
4470
  disableOutsidePointerEvents: true,
4436
- onCloseAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onCloseAutoFocus, (event)=>{
4471
+ onCloseAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onCloseAutoFocus, (event)=>{
4437
4472
  var _context$triggerRef$c;
4438
4473
  event.preventDefault();
4439
4474
  if (!isRightClickOutsideRef.current) (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
4440
4475
  }),
4441
- onPointerDownOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownOutside, (event)=>{
4476
+ onPointerDownOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onPointerDownOutside, (event)=>{
4442
4477
  const originalEvent = event.detail.originalEvent;
4443
4478
  const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
4444
4479
  const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
@@ -4447,7 +4482,7 @@ const $cb5cc270b50c6fcd$export$d7e1f420b25549ff = /*#__PURE__*/ forwardRef((prop
4447
4482
  checkForDefaultPrevented: false
4448
4483
  }) // When focus is trapped, a `focusout` event may still happen.
4449
4484
  ,
4450
- onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusOutside, (event)=>event.preventDefault()
4485
+ onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onFocusOutside, (event)=>event.preventDefault()
4451
4486
  , {
4452
4487
  checkForDefaultPrevented: false
4453
4488
  })
@@ -4503,7 +4538,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /*#__PURE__*/ forwardRef((p
4503
4538
  trapped: trapFocus,
4504
4539
  onMountAutoFocus: onOpenAutoFocus,
4505
4540
  onUnmountAutoFocus: onCloseAutoFocus
4506
- }, /*#__PURE__*/ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, {
4541
+ }, /*#__PURE__*/ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22$1, {
4507
4542
  asChild: true,
4508
4543
  disableOutsidePointerEvents: disableOutsidePointerEvents,
4509
4544
  onInteractOutside: onInteractOutside,
@@ -4511,7 +4546,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /*#__PURE__*/ forwardRef((p
4511
4546
  onPointerDownOutside: onPointerDownOutside,
4512
4547
  onFocusOutside: onFocusOutside,
4513
4548
  onDismiss: ()=>context.onOpenChange(false)
4514
- }, /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends({
4549
+ }, /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2$1, _extends({
4515
4550
  "data-state": $cb5cc270b50c6fcd$var$getState(context.open),
4516
4551
  role: "dialog",
4517
4552
  id: context.contentId
@@ -4527,10 +4562,24 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /*#__PURE__*/ forwardRef((p
4527
4562
  }
4528
4563
  }))));
4529
4564
  });
4565
+ /* -------------------------------------------------------------------------------------------------
4566
+ * PopoverClose
4567
+ * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$CLOSE_NAME = 'PopoverClose';
4568
+ const $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
4569
+ const { __scopePopover: __scopePopover , ...closeProps } = props;
4570
+ const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CLOSE_NAME, __scopePopover);
4571
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
4572
+ type: "button"
4573
+ }, closeProps, {
4574
+ ref: forwardedRef,
4575
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, ()=>context.onOpenChange(false)
4576
+ )
4577
+ }));
4578
+ });
4530
4579
  const $cb5cc270b50c6fcd$export$3152841115e061b2 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
4531
4580
  const { __scopePopover: __scopePopover , ...arrowProps } = props;
4532
4581
  const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
4533
- return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends({}, popperScope, arrowProps, {
4582
+ return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5$1, _extends({}, popperScope, arrowProps, {
4534
4583
  ref: forwardedRef
4535
4584
  }));
4536
4585
  });
@@ -4538,10 +4587,32 @@ const $cb5cc270b50c6fcd$export$3152841115e061b2 = /*#__PURE__*/ forwardRef((prop
4538
4587
  return open ? 'open' : 'closed';
4539
4588
  }
4540
4589
  const $cb5cc270b50c6fcd$export$be92b6f5f03c0fe9 = $cb5cc270b50c6fcd$export$5b6b19405a83ff9d;
4590
+ const $cb5cc270b50c6fcd$export$b688253958b8dfe7 = $cb5cc270b50c6fcd$export$96e5381f42521a79;
4541
4591
  const $cb5cc270b50c6fcd$export$41fb9f06171c75f4 = $cb5cc270b50c6fcd$export$7dacb05d26466c3;
4592
+ const $cb5cc270b50c6fcd$export$602eac185826482c = $cb5cc270b50c6fcd$export$dd679ffb4362d2d4;
4542
4593
  const $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2 = $cb5cc270b50c6fcd$export$d7e1f420b25549ff;
4594
+ const $cb5cc270b50c6fcd$export$f39c2d165cd861fe = $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e;
4543
4595
  const $cb5cc270b50c6fcd$export$21b07c8f274aebd5 = $cb5cc270b50c6fcd$export$3152841115e061b2;
4544
4596
 
4597
+ var PopoverPrimitive = /*#__PURE__*/Object.freeze({
4598
+ __proto__: null,
4599
+ Anchor: $cb5cc270b50c6fcd$export$b688253958b8dfe7,
4600
+ Arrow: $cb5cc270b50c6fcd$export$21b07c8f274aebd5,
4601
+ Close: $cb5cc270b50c6fcd$export$f39c2d165cd861fe,
4602
+ Content: $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2,
4603
+ Popover: $cb5cc270b50c6fcd$export$5b6b19405a83ff9d,
4604
+ PopoverAnchor: $cb5cc270b50c6fcd$export$96e5381f42521a79,
4605
+ PopoverArrow: $cb5cc270b50c6fcd$export$3152841115e061b2,
4606
+ PopoverClose: $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e,
4607
+ PopoverContent: $cb5cc270b50c6fcd$export$d7e1f420b25549ff,
4608
+ PopoverPortal: $cb5cc270b50c6fcd$export$dd679ffb4362d2d4,
4609
+ PopoverTrigger: $cb5cc270b50c6fcd$export$7dacb05d26466c3,
4610
+ Portal: $cb5cc270b50c6fcd$export$602eac185826482c,
4611
+ Root: $cb5cc270b50c6fcd$export$be92b6f5f03c0fe9,
4612
+ Trigger: $cb5cc270b50c6fcd$export$41fb9f06171c75f4,
4613
+ createPopoverScope: $cb5cc270b50c6fcd$export$c8393c9e73286932
4614
+ });
4615
+
4545
4616
  const borderStyles$3 = [
4546
4617
  'tw-border-solid',
4547
4618
  'tw-border',
@@ -4689,10 +4760,11 @@ const radioClasses = `tw-form-radio ${baseClasses$2}`;
4689
4760
  * Checkbox and Radio Box Component.
4690
4761
  */
4691
4762
  const Checkbox = (props) => {
4692
- const { type = 'checkbox', value, disabled = false, label, onChange, onClick, onKeyDown, checked, defaultChecked, id, name, extraClassNames, extraLabelClassNames, testId, } = props;
4763
+ const { type = 'checkbox', value, disabled = false, label, onChange, onClick, onKeyDown, checked, defaultChecked, id, name, extraClassNames, extraLabelClassNames, testId, ...tooltipProps } = props;
4693
4764
  const assignedId = id ?? 'checkbox_' + Math.random();
4765
+ const tooltipData = getQTipData(tooltipProps);
4694
4766
  return (React__default.createElement("span", { className: `${alignment} ${extraClassNames}` },
4695
- React__default.createElement("input", { value: value, type: type, "data-testid": testId, name: name, id: assignedId, checked: checked, defaultChecked: defaultChecked, className: `${type === 'checkbox' ? checkboxClasses : radioClasses} ${disabled ? 'tw-cursor-not-allowed' : 'tw-cursor-pointer'}`, disabled: disabled, onClick: onClick, onChange: onChange, onKeyDown: onKeyDown }),
4767
+ React__default.createElement("input", { value: value, type: type, "data-testid": testId, name: name, id: assignedId, checked: checked, defaultChecked: defaultChecked, className: `${type === 'checkbox' ? checkboxClasses : radioClasses} ${disabled ? 'tw-cursor-not-allowed' : 'tw-cursor-pointer'}`, disabled: disabled, onClick: onClick, onChange: onChange, onKeyDown: onKeyDown, ...tooltipData }),
4696
4768
  React__default.createElement("label", { htmlFor: assignedId, className: `${labelClasses} ${extraLabelClassNames} ${disabled
4697
4769
  ? 'tw-cursor-not-allowed dark:tw-text-sq-fairly-dark-gray tw-text-sq-fairly-dark-gray'
4698
4770
  : 'tw-cursor-pointer tw-text-sq-text-color dark:tw-text-sq-dark-text'}` }, label)));
@@ -6547,7 +6619,7 @@ const QTip = () => {
6547
6619
  if (tooltipRef.current && tooltipTarget.current) {
6548
6620
  computePosition(tooltipTarget.current, tooltipRef.current, {
6549
6621
  placement: position,
6550
- middleware: [offset(10), arrow$1({ element: tooltipArrowRef.current })],
6622
+ middleware: [offset(10), arrow$2({ element: tooltipArrowRef.current })],
6551
6623
  }).then(({ x, y, middlewareData }) => {
6552
6624
  Object.assign(tooltipRef.current?.style, {
6553
6625
  left: `${x}px`,
@@ -9539,7 +9611,7 @@ function _taggedTemplateLiteral(strings, raw) {
9539
9611
  }));
9540
9612
  }
9541
9613
 
9542
- var index = useLayoutEffect ;
9614
+ var index$1 = useLayoutEffect ;
9543
9615
 
9544
9616
  var _excluded$3 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
9545
9617
  // ==============================
@@ -9793,10 +9865,10 @@ var options = {
9793
9865
  }
9794
9866
  };
9795
9867
  // check for SSR
9796
- var w = typeof window !== 'undefined' ? window : {};
9797
- if (w.addEventListener && w.removeEventListener) {
9798
- w.addEventListener('p', noop, options);
9799
- w.removeEventListener('p', noop, false);
9868
+ var w$1 = typeof window !== 'undefined' ? window : {};
9869
+ if (w$1.addEventListener && w$1.removeEventListener) {
9870
+ w$1.addEventListener('p', noop, options);
9871
+ w$1.removeEventListener('p', noop, false);
9800
9872
  }
9801
9873
  var supportsPassiveEvents = passiveOptionAccessed;
9802
9874
  function notNullish(item) {
@@ -10038,7 +10110,7 @@ var MenuPlacer = function MenuPlacer(props) {
10038
10110
  placement = _useState4[0],
10039
10111
  setPlacement = _useState4[1];
10040
10112
  var controlHeight = theme.spacing.controlHeight;
10041
- index(function () {
10113
+ index$1(function () {
10042
10114
  var menuEl = ref.current;
10043
10115
  if (!menuEl) return;
10044
10116
 
@@ -10199,7 +10271,7 @@ var MenuPortal = function MenuPortal(props) {
10199
10271
  });
10200
10272
  }
10201
10273
  }, [controlElement, menuPosition, placement, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width]);
10202
- index(function () {
10274
+ index$1(function () {
10203
10275
  updateComputedPosition();
10204
10276
  }, [updateComputedPosition]);
10205
10277
  var runAutoUpdate = useCallback(function () {
@@ -10213,7 +10285,7 @@ var MenuPortal = function MenuPortal(props) {
10213
10285
  });
10214
10286
  }
10215
10287
  }, [controlElement, updateComputedPosition]);
10216
- index(function () {
10288
+ index$1(function () {
10217
10289
  runAutoUpdate();
10218
10290
  }, [runAutoUpdate]);
10219
10291
  var setMenuPortalElement = useCallback(function (menuPortalElement) {
@@ -11413,8 +11485,8 @@ var anyDiacritic = new RegExp('[' + diacritics.map(function (d) {
11413
11485
  return d.letters;
11414
11486
  }).join('') + ']', 'g');
11415
11487
  var diacriticToBase = {};
11416
- for (var i = 0; i < diacritics.length; i++) {
11417
- var diacritic = diacritics[i];
11488
+ for (var i$2 = 0; i$2 < diacritics.length; i$2++) {
11489
+ var diacritic = diacritics[i$2];
11418
11490
  for (var j = 0; j < diacritic.letters.length; j++) {
11419
11491
  diacriticToBase[diacritic.letters[j]] = diacritic.base;
11420
11492
  }
@@ -13757,13 +13829,13 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
13757
13829
  /* -------------------------------------------------------------------------------------------------
13758
13830
  * Dialog
13759
13831
  * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DIALOG_NAME = 'Dialog';
13760
- const [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($5d3850c4d0b4e6c7$var$DIALOG_NAME);
13832
+ const [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($5d3850c4d0b4e6c7$var$DIALOG_NAME);
13761
13833
  const [$5d3850c4d0b4e6c7$var$DialogProvider, $5d3850c4d0b4e6c7$var$useDialogContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME);
13762
13834
  const $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 = (props)=>{
13763
13835
  const { __scopeDialog: __scopeDialog , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = true } = props;
13764
13836
  const triggerRef = useRef(null);
13765
13837
  const contentRef = useRef(null);
13766
- const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
13838
+ const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
13767
13839
  prop: openProp,
13768
13840
  defaultProp: defaultOpen,
13769
13841
  onChange: onOpenChange
@@ -13797,9 +13869,9 @@ const $5d3850c4d0b4e6c7$export$dad7c95542bacce0 = (props)=>{
13797
13869
  return /*#__PURE__*/ createElement($5d3850c4d0b4e6c7$var$PortalProvider, {
13798
13870
  scope: __scopeDialog,
13799
13871
  forceMount: forceMount
13800
- }, Children.map(children, (child)=>/*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
13872
+ }, Children.map(children, (child)=>/*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
13801
13873
  present: forceMount || context.open
13802
- }, /*#__PURE__*/ createElement($f1701beae083dbae$export$602eac185826482c, {
13874
+ }, /*#__PURE__*/ createElement($f1701beae083dbae$export$602eac185826482c$1, {
13803
13875
  asChild: true,
13804
13876
  container: container
13805
13877
  }, child))
@@ -13812,7 +13884,7 @@ const $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ forwardRef((prop
13812
13884
  const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
13813
13885
  const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;
13814
13886
  const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
13815
- return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
13887
+ return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
13816
13888
  present: forceMount || context.open
13817
13889
  }, context.modal ? /*#__PURE__*/ createElement($5d3850c4d0b4e6c7$var$DialogContentModal, _extends({}, contentProps, {
13818
13890
  ref: forwardedRef
@@ -13823,7 +13895,7 @@ const $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ forwardRef((prop
13823
13895
  /* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentModal = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
13824
13896
  const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
13825
13897
  const contentRef = useRef(null);
13826
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.contentRef, contentRef); // aria-hide everything except the content (better supported equivalent to setting aria-modal)
13898
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.contentRef, contentRef); // aria-hide everything except the content (better supported equivalent to setting aria-modal)
13827
13899
  useEffect(()=>{
13828
13900
  const content = contentRef.current;
13829
13901
  if (content) return hideOthers(content);
@@ -13833,12 +13905,12 @@ const $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ forwardRef((prop
13833
13905
  ,
13834
13906
  trapFocus: context.open,
13835
13907
  disableOutsidePointerEvents: true,
13836
- onCloseAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onCloseAutoFocus, (event)=>{
13908
+ onCloseAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onCloseAutoFocus, (event)=>{
13837
13909
  var _context$triggerRef$c;
13838
13910
  event.preventDefault();
13839
13911
  (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
13840
13912
  }),
13841
- onPointerDownOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownOutside, (event)=>{
13913
+ onPointerDownOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onPointerDownOutside, (event)=>{
13842
13914
  const originalEvent = event.detail.originalEvent;
13843
13915
  const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
13844
13916
  const isRightClick = originalEvent.button === 2 || ctrlLeftClick; // If the event is a right-click, we shouldn't close because
@@ -13846,7 +13918,7 @@ const $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ forwardRef((prop
13846
13918
  if (isRightClick) event.preventDefault();
13847
13919
  }) // When focus is trapped, a `focusout` event may still happen.
13848
13920
  ,
13849
- onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusOutside, (event)=>event.preventDefault()
13921
+ onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onFocusOutside, (event)=>event.preventDefault()
13850
13922
  )
13851
13923
  }));
13852
13924
  });
@@ -13892,7 +13964,7 @@ const $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ forwardRef((prop
13892
13964
  const { __scopeDialog: __scopeDialog , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , ...contentProps } = props;
13893
13965
  const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, __scopeDialog);
13894
13966
  const contentRef = useRef(null);
13895
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentRef); // Make sure the whole tree has focus guards as our `Dialog` will be
13967
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, contentRef); // Make sure the whole tree has focus guards as our `Dialog` will be
13896
13968
  // the last element in the DOM (beacuse of the `Portal`)
13897
13969
  $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();
13898
13970
  return /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement($d3863c46a17e8a28$export$20e40289641fbbb6, {
@@ -13901,7 +13973,7 @@ const $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ forwardRef((prop
13901
13973
  trapped: trapFocus,
13902
13974
  onMountAutoFocus: onOpenAutoFocus,
13903
13975
  onUnmountAutoFocus: onCloseAutoFocus
13904
- }, /*#__PURE__*/ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, _extends({
13976
+ }, /*#__PURE__*/ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22$1, _extends({
13905
13977
  role: "dialog",
13906
13978
  id: context.contentId,
13907
13979
  "aria-describedby": context.descriptionId,
@@ -13918,7 +13990,7 @@ const $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ forwardRef((prop
13918
13990
  const $5d3850c4d0b4e6c7$export$16f7638e4a34b909 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
13919
13991
  const { __scopeDialog: __scopeDialog , ...titleProps } = props;
13920
13992
  const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TITLE_NAME, __scopeDialog);
13921
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.h2, _extends({
13993
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.h2, _extends({
13922
13994
  id: context.titleId
13923
13995
  }, titleProps, {
13924
13996
  ref: forwardedRef
@@ -13930,7 +14002,7 @@ const $5d3850c4d0b4e6c7$export$16f7638e4a34b909 = /*#__PURE__*/ forwardRef((prop
13930
14002
  const $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
13931
14003
  const { __scopeDialog: __scopeDialog , ...descriptionProps } = props;
13932
14004
  const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$DESCRIPTION_NAME, __scopeDialog);
13933
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.p, _extends({
14005
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.p, _extends({
13934
14006
  id: context.descriptionId
13935
14007
  }, descriptionProps, {
13936
14008
  ref: forwardedRef
@@ -13942,11 +14014,11 @@ const $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 = /*#__PURE__*/ forwardRef((prop
13942
14014
  const $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
13943
14015
  const { __scopeDialog: __scopeDialog , ...closeProps } = props;
13944
14016
  const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CLOSE_NAME, __scopeDialog);
13945
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
14017
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
13946
14018
  type: "button"
13947
14019
  }, closeProps, {
13948
14020
  ref: forwardedRef,
13949
- onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, ()=>context.onOpenChange(false)
14021
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, ()=>context.onOpenChange(false)
13950
14022
  )
13951
14023
  }));
13952
14024
  });
@@ -14124,7 +14196,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
14124
14196
  /* -----------------------------------------------------------------------------------------------
14125
14197
  * CollectionProvider
14126
14198
  * ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';
14127
- const [createCollectionContext, createCollectionScope] = $c512c27ab02ef895$export$50c7b4e9d9f19c1(PROVIDER_NAME);
14199
+ const [createCollectionContext, createCollectionScope] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1(PROVIDER_NAME);
14128
14200
  const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {
14129
14201
  collectionRef: {
14130
14202
  current: null
@@ -14147,8 +14219,8 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
14147
14219
  const CollectionSlot = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
14148
14220
  const { scope: scope , children: children } = props;
14149
14221
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
14150
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.collectionRef);
14151
- return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
14222
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.collectionRef);
14223
+ return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
14152
14224
  ref: composedRefs
14153
14225
  }, children);
14154
14226
  });
@@ -14159,7 +14231,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
14159
14231
  const CollectionItemSlot = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
14160
14232
  const { scope: scope , children: children , ...itemData } = props;
14161
14233
  const ref = React__default.useRef(null);
14162
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
14234
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
14163
14235
  const context = useCollectionContext(ITEM_SLOT_NAME, scope);
14164
14236
  React__default.useEffect(()=>{
14165
14237
  context.itemMap.set(ref, {
@@ -14169,7 +14241,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
14169
14241
  return ()=>void context.itemMap.delete(ref)
14170
14242
  ;
14171
14243
  });
14172
- return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
14244
+ return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
14173
14245
  [ITEM_DATA_ATTR]: '',
14174
14246
  ref: composedRefs
14175
14247
  }, children);
@@ -14218,7 +14290,7 @@ const $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
14218
14290
  * RovingFocusGroup
14219
14291
  * -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$GROUP_NAME = 'RovingFocusGroup';
14220
14292
  const [$d7bdfb9eb0fdf311$var$Collection, $d7bdfb9eb0fdf311$var$useCollection, $d7bdfb9eb0fdf311$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($d7bdfb9eb0fdf311$var$GROUP_NAME);
14221
- const [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$export$c7109489551a4f4] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($d7bdfb9eb0fdf311$var$GROUP_NAME, [
14293
+ const [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$export$c7109489551a4f4] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($d7bdfb9eb0fdf311$var$GROUP_NAME, [
14222
14294
  $d7bdfb9eb0fdf311$var$createCollectionScope
14223
14295
  ]);
14224
14296
  const [$d7bdfb9eb0fdf311$var$RovingFocusProvider, $d7bdfb9eb0fdf311$var$useRovingFocusContext] = $d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME);
@@ -14234,15 +14306,15 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ forwardRef((prop
14234
14306
  /* -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
14235
14307
  const { __scopeRovingFocusGroup: __scopeRovingFocusGroup , orientation: orientation , loop: loop = false , dir: dir , currentTabStopId: currentTabStopIdProp , defaultCurrentTabStopId: defaultCurrentTabStopId , onCurrentTabStopIdChange: onCurrentTabStopIdChange , onEntryFocus: onEntryFocus , ...groupProps } = props;
14236
14308
  const ref = useRef(null);
14237
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
14309
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
14238
14310
  const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
14239
- const [currentTabStopId = null, setCurrentTabStopId] = $71cd76cc60e0454e$export$6f32135080cb4c3({
14311
+ const [currentTabStopId = null, setCurrentTabStopId] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
14240
14312
  prop: currentTabStopIdProp,
14241
14313
  defaultProp: defaultCurrentTabStopId,
14242
14314
  onChange: onCurrentTabStopIdChange
14243
14315
  });
14244
14316
  const [isTabbingBackOut, setIsTabbingBackOut] = useState(false);
14245
- const handleEntryFocus = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEntryFocus);
14317
+ const handleEntryFocus = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onEntryFocus);
14246
14318
  const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);
14247
14319
  const isClickFocusRef = useRef(false);
14248
14320
  const [focusableItemsCount, setFocusableItemsCount] = useState(0);
@@ -14274,7 +14346,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ forwardRef((prop
14274
14346
  onFocusableItemRemove: useCallback(()=>setFocusableItemsCount((prevCount)=>prevCount - 1
14275
14347
  )
14276
14348
  , [])
14277
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
14349
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
14278
14350
  tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
14279
14351
  "data-orientation": orientation
14280
14352
  }, groupProps, {
@@ -14283,10 +14355,10 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ forwardRef((prop
14283
14355
  outline: 'none',
14284
14356
  ...props.style
14285
14357
  },
14286
- onMouseDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onMouseDown, ()=>{
14358
+ onMouseDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onMouseDown, ()=>{
14287
14359
  isClickFocusRef.current = true;
14288
14360
  }),
14289
- onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocus, (event)=>{
14361
+ onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onFocus, (event)=>{
14290
14362
  // We normally wouldn't need this check, because we already check
14291
14363
  // that the focus is on the current target and not bubbling to it.
14292
14364
  // We do this because Safari doesn't focus buttons when clicked, and
@@ -14314,7 +14386,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ forwardRef((prop
14314
14386
  }
14315
14387
  isClickFocusRef.current = false;
14316
14388
  }),
14317
- onBlur: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlur, ()=>setIsTabbingBackOut(false)
14389
+ onBlur: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onBlur, ()=>setIsTabbingBackOut(false)
14318
14390
  )
14319
14391
  })));
14320
14392
  });
@@ -14345,20 +14417,20 @@ const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /*#__PURE__*/ forwardRef((props
14345
14417
  id: id,
14346
14418
  focusable: focusable,
14347
14419
  active: active
14348
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
14420
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({
14349
14421
  tabIndex: isCurrentTabStop ? 0 : -1,
14350
14422
  "data-orientation": context.orientation
14351
14423
  }, itemProps, {
14352
14424
  ref: forwardedRef,
14353
- onMouseDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onMouseDown, (event)=>{
14425
+ onMouseDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onMouseDown, (event)=>{
14354
14426
  // We prevent focusing non-focusable items on `mousedown`.
14355
14427
  // Even though the item has tabIndex={-1}, that only means take it out of the tab order.
14356
14428
  if (!focusable) event.preventDefault(); // Safari doesn't focus a button when clicked so we run our logic on mousedown also
14357
14429
  else context.onItemFocus(id);
14358
14430
  }),
14359
- onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocus, ()=>context.onItemFocus(id)
14431
+ onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onFocus, ()=>context.onItemFocus(id)
14360
14432
  ),
14361
- onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event)=>{
14433
+ onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
14362
14434
  if (event.key === 'Tab' && event.shiftKey) {
14363
14435
  context.onItemShiftTab();
14364
14436
  return;
@@ -14435,7 +14507,7 @@ const $d7bdfb9eb0fdf311$export$6d08773d2e66f8f2 = $d7bdfb9eb0fdf311$export$ab9df
14435
14507
  /* -------------------------------------------------------------------------------------------------
14436
14508
  * Tabs
14437
14509
  * -----------------------------------------------------------------------------------------------*/ const $69cb30bb0017df05$var$TABS_NAME = 'Tabs';
14438
- const [$69cb30bb0017df05$var$createTabsContext, $69cb30bb0017df05$export$355f5bd209d7b13a] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($69cb30bb0017df05$var$TABS_NAME, [
14510
+ const [$69cb30bb0017df05$var$createTabsContext, $69cb30bb0017df05$export$355f5bd209d7b13a] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($69cb30bb0017df05$var$TABS_NAME, [
14439
14511
  $d7bdfb9eb0fdf311$export$c7109489551a4f4
14440
14512
  ]);
14441
14513
  const $69cb30bb0017df05$var$useRovingFocusGroupScope = $d7bdfb9eb0fdf311$export$c7109489551a4f4();
@@ -14443,7 +14515,7 @@ const [$69cb30bb0017df05$var$TabsProvider, $69cb30bb0017df05$var$useTabsContext]
14443
14515
  const $69cb30bb0017df05$export$b2539bed5023c21c = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
14444
14516
  const { __scopeTabs: __scopeTabs , value: valueProp , onValueChange: onValueChange , defaultValue: defaultValue , orientation: orientation = 'horizontal' , dir: dir , activationMode: activationMode = 'automatic' , ...tabsProps } = props;
14445
14517
  const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
14446
- const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
14518
+ const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
14447
14519
  prop: valueProp,
14448
14520
  onChange: onValueChange,
14449
14521
  defaultProp: defaultValue
@@ -14456,7 +14528,7 @@ const $69cb30bb0017df05$export$b2539bed5023c21c = /*#__PURE__*/ forwardRef((prop
14456
14528
  orientation: orientation,
14457
14529
  dir: direction,
14458
14530
  activationMode: activationMode
14459
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
14531
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
14460
14532
  dir: direction,
14461
14533
  "data-orientation": orientation
14462
14534
  }, tabsProps, {
@@ -14476,7 +14548,7 @@ const $69cb30bb0017df05$export$9712d22edc0d78c1 = /*#__PURE__*/ forwardRef((prop
14476
14548
  orientation: context.orientation,
14477
14549
  dir: context.dir,
14478
14550
  loop: loop
14479
- }), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
14551
+ }), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
14480
14552
  role: "tablist",
14481
14553
  "aria-orientation": context.orientation
14482
14554
  }, listProps, {
@@ -14498,7 +14570,7 @@ const $69cb30bb0017df05$export$8114b9fdfdf9f3ba = /*#__PURE__*/ forwardRef((prop
14498
14570
  }, rovingFocusGroupScope, {
14499
14571
  focusable: !disabled,
14500
14572
  active: isSelected
14501
- }), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
14573
+ }), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
14502
14574
  type: "button",
14503
14575
  role: "tab",
14504
14576
  "aria-selected": isSelected,
@@ -14509,20 +14581,20 @@ const $69cb30bb0017df05$export$8114b9fdfdf9f3ba = /*#__PURE__*/ forwardRef((prop
14509
14581
  id: triggerId
14510
14582
  }, triggerProps, {
14511
14583
  ref: forwardedRef,
14512
- onMouseDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onMouseDown, (event)=>{
14584
+ onMouseDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onMouseDown, (event)=>{
14513
14585
  // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)
14514
14586
  // but not when the control key is pressed (avoiding MacOS right click)
14515
14587
  if (!disabled && event.button === 0 && event.ctrlKey === false) context.onValueChange(value);
14516
14588
  else // prevent focus to avoid accidental activation
14517
14589
  event.preventDefault();
14518
14590
  }),
14519
- onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event)=>{
14591
+ onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
14520
14592
  if ([
14521
14593
  ' ',
14522
14594
  'Enter'
14523
14595
  ].includes(event.key)) context.onValueChange(value);
14524
14596
  }),
14525
- onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocus, ()=>{
14597
+ onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onFocus, ()=>{
14526
14598
  // handle "automatic" activation if necessary
14527
14599
  // ie. activate tab following focus
14528
14600
  const isAutomaticActivation = context.activationMode !== 'manual';
@@ -14546,9 +14618,9 @@ const $69cb30bb0017df05$export$bd905d70e8fd2ebb = /*#__PURE__*/ forwardRef((prop
14546
14618
  return ()=>cancelAnimationFrame(rAF)
14547
14619
  ;
14548
14620
  }, []);
14549
- return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
14621
+ return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
14550
14622
  present: forceMount || isSelected
14551
- }, ({ present: present })=>/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
14623
+ }, ({ present: present })=>/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
14552
14624
  "data-state": isSelected ? 'active' : 'inactive',
14553
14625
  "data-orientation": context.orientation,
14554
14626
  role: "tabpanel",
@@ -14597,11 +14669,11 @@ const Tabs = ({ tabs, defaultActiveTab, activeTab, onTabSelect, extraClassNames,
14597
14669
  /* -------------------------------------------------------------------------------------------------
14598
14670
  * Collapsible
14599
14671
  * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$COLLAPSIBLE_NAME = 'Collapsible';
14600
- const [$409067139f391064$var$createCollapsibleContext, $409067139f391064$export$952b32dcbe73087a] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($409067139f391064$var$COLLAPSIBLE_NAME);
14672
+ const [$409067139f391064$var$createCollapsibleContext, $409067139f391064$export$952b32dcbe73087a] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($409067139f391064$var$COLLAPSIBLE_NAME);
14601
14673
  const [$409067139f391064$var$CollapsibleProvider, $409067139f391064$var$useCollapsibleContext] = $409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME);
14602
14674
  const $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
14603
14675
  const { __scopeCollapsible: __scopeCollapsible , open: openProp , defaultOpen: defaultOpen , disabled: disabled , onOpenChange: onOpenChange , ...collapsibleProps } = props;
14604
- const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
14676
+ const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
14605
14677
  prop: openProp,
14606
14678
  defaultProp: defaultOpen,
14607
14679
  onChange: onOpenChange
@@ -14616,7 +14688,7 @@ const $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ forwardRef((prop
14616
14688
  , [
14617
14689
  setOpen
14618
14690
  ])
14619
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
14691
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
14620
14692
  "data-state": $409067139f391064$var$getState(open),
14621
14693
  "data-disabled": disabled ? '' : undefined
14622
14694
  }, collapsibleProps, {
@@ -14629,7 +14701,7 @@ const $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ forwardRef((prop
14629
14701
  const $409067139f391064$export$c135dce7b15bbbdc = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
14630
14702
  const { __scopeCollapsible: __scopeCollapsible , ...triggerProps } = props;
14631
14703
  const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);
14632
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
14704
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
14633
14705
  type: "button",
14634
14706
  "aria-controls": context.contentId,
14635
14707
  "aria-expanded": context.open || false,
@@ -14638,7 +14710,7 @@ const $409067139f391064$export$c135dce7b15bbbdc = /*#__PURE__*/ forwardRef((prop
14638
14710
  disabled: context.disabled
14639
14711
  }, triggerProps, {
14640
14712
  ref: forwardedRef,
14641
- onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, context.onOpenToggle)
14713
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, context.onOpenToggle)
14642
14714
  }));
14643
14715
  });
14644
14716
  /* -------------------------------------------------------------------------------------------------
@@ -14647,7 +14719,7 @@ const $409067139f391064$export$c135dce7b15bbbdc = /*#__PURE__*/ forwardRef((prop
14647
14719
  const $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
14648
14720
  const { forceMount: forceMount , ...contentProps } = props;
14649
14721
  const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, props.__scopeCollapsible);
14650
- return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
14722
+ return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
14651
14723
  present: forceMount || context.open
14652
14724
  }, ({ present: present })=>/*#__PURE__*/ createElement($409067139f391064$var$CollapsibleContentImpl, _extends({}, contentProps, {
14653
14725
  ref: forwardedRef,
@@ -14660,7 +14732,7 @@ const $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ forwardRef((prop
14660
14732
  const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, __scopeCollapsible);
14661
14733
  const [isPresent, setIsPresent] = useState(present);
14662
14734
  const ref = useRef(null);
14663
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
14735
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
14664
14736
  const heightRef = useRef(0);
14665
14737
  const height = heightRef.current;
14666
14738
  const widthRef = useRef(0);
@@ -14675,7 +14747,7 @@ const $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ forwardRef((prop
14675
14747
  return ()=>cancelAnimationFrame(rAF)
14676
14748
  ;
14677
14749
  }, []);
14678
- $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
14750
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
14679
14751
  const node = ref.current;
14680
14752
  if (node) {
14681
14753
  originalStylesRef.current = originalStylesRef.current || {
@@ -14702,7 +14774,7 @@ const $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ forwardRef((prop
14702
14774
  context.open,
14703
14775
  present
14704
14776
  ]);
14705
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
14777
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
14706
14778
  "data-state": $409067139f391064$var$getState(context.open),
14707
14779
  "data-disabled": context.disabled ? '' : undefined,
14708
14780
  id: context.contentId,
@@ -14735,7 +14807,7 @@ const $1bf158f521e1b1b4$var$ACCORDION_KEYS = [
14735
14807
  'ArrowRight'
14736
14808
  ];
14737
14809
  const [$1bf158f521e1b1b4$var$Collection, $1bf158f521e1b1b4$var$useCollection, $1bf158f521e1b1b4$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($1bf158f521e1b1b4$var$ACCORDION_NAME);
14738
- const [$1bf158f521e1b1b4$var$createAccordionContext, $1bf158f521e1b1b4$export$9748edc328a73be1] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($1bf158f521e1b1b4$var$ACCORDION_NAME, [
14810
+ const [$1bf158f521e1b1b4$var$createAccordionContext, $1bf158f521e1b1b4$export$9748edc328a73be1] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($1bf158f521e1b1b4$var$ACCORDION_NAME, [
14739
14811
  $1bf158f521e1b1b4$var$createCollectionScope,
14740
14812
  $409067139f391064$export$952b32dcbe73087a
14741
14813
  ]);
@@ -14770,7 +14842,7 @@ const [$1bf158f521e1b1b4$var$AccordionCollapsibleProvider, $1bf158f521e1b1b4$var
14770
14842
  });
14771
14843
  const $1bf158f521e1b1b4$var$AccordionImplSingle = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
14772
14844
  const { value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange = ()=>{} , collapsible: collapsible = false , ...accordionSingleProps } = props;
14773
- const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
14845
+ const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
14774
14846
  prop: valueProp,
14775
14847
  defaultProp: defaultValue,
14776
14848
  onChange: onValueChange
@@ -14795,7 +14867,7 @@ const $1bf158f521e1b1b4$var$AccordionImplSingle = /*#__PURE__*/ React__default.f
14795
14867
  });
14796
14868
  /* -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$AccordionImplMultiple = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
14797
14869
  const { value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange = ()=>{} , ...accordionMultipleProps } = props;
14798
- const [value1 = [], setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
14870
+ const [value1 = [], setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
14799
14871
  prop: valueProp,
14800
14872
  defaultProp: defaultValue,
14801
14873
  onChange: onValueChange
@@ -14830,11 +14902,11 @@ const $1bf158f521e1b1b4$var$AccordionImplSingle = /*#__PURE__*/ React__default.f
14830
14902
  const $1bf158f521e1b1b4$var$AccordionImpl = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
14831
14903
  const { __scopeAccordion: __scopeAccordion , disabled: disabled , dir: dir , orientation: orientation = 'vertical' , ...accordionProps } = props;
14832
14904
  const accordionRef = React__default.useRef(null);
14833
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(accordionRef, forwardedRef);
14905
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(accordionRef, forwardedRef);
14834
14906
  const getItems = $1bf158f521e1b1b4$var$useCollection(__scopeAccordion);
14835
14907
  const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
14836
14908
  const isDirectionLTR = direction === 'ltr';
14837
- const handleKeyDown = $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event)=>{
14909
+ const handleKeyDown = $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
14838
14910
  var _triggerCollection$cl;
14839
14911
  if (!$1bf158f521e1b1b4$var$ACCORDION_KEYS.includes(event.key)) return;
14840
14912
  const target = event.target;
@@ -14894,7 +14966,7 @@ const $1bf158f521e1b1b4$var$AccordionImpl = /*#__PURE__*/ React__default.forward
14894
14966
  orientation: orientation
14895
14967
  }, /*#__PURE__*/ React__default.createElement($1bf158f521e1b1b4$var$Collection.Slot, {
14896
14968
  scope: __scopeAccordion
14897
- }, /*#__PURE__*/ React__default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, accordionProps, {
14969
+ }, /*#__PURE__*/ React__default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({}, accordionProps, {
14898
14970
  "data-orientation": orientation,
14899
14971
  ref: composedRefs,
14900
14972
  onKeyDown: disabled ? undefined : handleKeyDown
@@ -14991,100 +15063,1664 @@ const Accordion = ({ accordionItems, defaultValue, value, onItemSelect, disabled
14991
15063
  React__default.createElement($1bf158f521e1b1b4$export$7c6e2c02157bb7d2, { className: `data-[state=open]:tw-animate-slideDown data-[state=closed]:tw-animate-slideUp tw-overflow-hidden focus-visible:tw-outline-none ${item.contentClassNames || ''}` }, item.content))))));
14992
15064
  };
14993
15065
 
14994
- const bgStyles$1 = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
14995
- const borderStyles$1 = [
14996
- 'tw-border-solid',
14997
- 'tw-border',
14998
- 'tw-rounded-sm',
14999
- 'tw-border-sq-disabled-gray',
15000
- 'dark:tw-border-gray-700',
15001
- ].join(' ');
15002
- const disabledClasses$1 = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
15003
- const ButtonWithPopover = ({ children, trigger, tooltipText, id, hasArrow, extraTriggerClassNames, extraPopoverClassNames, containerTestId, tooltipTestId, tooltipDelay, tooltipPlacement, disabled = false, align = 'end', alignOffset = -5, placement = 'bottom', placementOffset = 2, onOpenChange, isOpen, isHtmlTooltip = false, isCloseOnContentClick = false, setFocusOnTriggerOnClose = true, }) => {
15004
- let tooltipData = undefined;
15005
- if (tooltipText) {
15006
- tooltipData = {
15007
- 'data-qtip-text': tooltipText,
15008
- 'data-qtip-placement': tooltipPlacement,
15009
- 'data-qtip-is-html': isHtmlTooltip,
15010
- 'data-qtip-testid': tooltipTestId,
15011
- 'data-qtip-delay': tooltipDelay ?? DEFAULT_TOOL_TIP_DELAY,
15012
- };
15013
- }
15014
- return (React.createElement($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, { open: isOpen, defaultOpen: false, onOpenChange: onOpenChange },
15015
- React.createElement($cb5cc270b50c6fcd$export$41fb9f06171c75f4, { id: id, className: `tw-border-none`, disabled: disabled },
15016
- React.createElement("div", { ...tooltipData, className: `tw-bg-transparent tw-flex tw-flex-col tw-items-center tw-justify-center ${disabled ? disabledClasses$1 : ''} ${extraTriggerClassNames || ''}` }, trigger)),
15017
- React.createElement($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, { sideOffset: placementOffset, align: align, side: placement, alignOffset: alignOffset, onCloseAutoFocus: (e) => !setFocusOnTriggerOnClose && e.preventDefault(), asChild: true, onClick: () => isCloseOnContentClick && onOpenChange && onOpenChange(false), className: "focus-visible:tw-outline-none tw-outline-none" },
15018
- React.createElement("div", { "data-testid": containerTestId, className: `${bgStyles$1} ${borderStyles$1} tw-relative tw-z-[1000] tw-min-w-6 tw-p-[0.5rem] focus-visible:tw-outline-none tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out
15019
- data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade
15020
- ${extraPopoverClassNames || ''}` },
15021
- hasArrow && (React.createElement($cb5cc270b50c6fcd$export$21b07c8f274aebd5, { asChild: true },
15022
- React.createElement("div", { className: " tw-fill-transparent tw-bg-white tw-w-[6px] tw-h-[6px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-700 tw-mt-[-2px]" }))),
15023
- children))));
15024
- };
15066
+ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
15067
+ return function handleEvent(event) {
15068
+ originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
15069
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
15070
+ };
15071
+ }
15025
15072
 
15026
- const $6cc32821e9371a1c$var$SELECTION_KEYS = [
15027
- 'Enter',
15028
- ' '
15029
- ];
15030
- const $6cc32821e9371a1c$var$FIRST_KEYS = [
15031
- 'ArrowDown',
15032
- 'PageUp',
15033
- 'Home'
15034
- ];
15035
- const $6cc32821e9371a1c$var$LAST_KEYS = [
15036
- 'ArrowUp',
15037
- 'PageDown',
15038
- 'End'
15039
- ];
15040
- const $6cc32821e9371a1c$var$FIRST_LAST_KEYS = [
15041
- ...$6cc32821e9371a1c$var$FIRST_KEYS,
15042
- ...$6cc32821e9371a1c$var$LAST_KEYS
15043
- ];
15044
15073
  /* -------------------------------------------------------------------------------------------------
15045
- * Menu
15046
- * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$MENU_NAME = 'Menu';
15047
- const [$6cc32821e9371a1c$var$Collection, $6cc32821e9371a1c$var$useCollection, $6cc32821e9371a1c$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($6cc32821e9371a1c$var$MENU_NAME);
15048
- const [$6cc32821e9371a1c$var$createMenuContext, $6cc32821e9371a1c$export$4027731b685e72eb] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($6cc32821e9371a1c$var$MENU_NAME, [
15049
- $6cc32821e9371a1c$var$createCollectionScope,
15050
- $cf1ac5d9fe0e8206$export$722aac194ae923,
15051
- $d7bdfb9eb0fdf311$export$c7109489551a4f4
15052
- ]);
15053
- const $6cc32821e9371a1c$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923();
15054
- const $6cc32821e9371a1c$var$useRovingFocusGroupScope = $d7bdfb9eb0fdf311$export$c7109489551a4f4();
15055
- const [$6cc32821e9371a1c$var$MenuProvider, $6cc32821e9371a1c$var$useMenuContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$MENU_NAME);
15056
- const [$6cc32821e9371a1c$var$MenuRootProvider, $6cc32821e9371a1c$var$useMenuRootContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$MENU_NAME);
15057
- const $6cc32821e9371a1c$export$d9b273488cd8ce6f = (props)=>{
15058
- const { __scopeMenu: __scopeMenu , open: open = false , children: children , dir: dir , onOpenChange: onOpenChange , modal: modal = true } = props;
15059
- const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);
15060
- const [content, setContent] = useState(null);
15061
- const isUsingKeyboardRef = useRef(false);
15062
- const handleOpenChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onOpenChange);
15063
- const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
15064
- useEffect(()=>{
15065
- // Capture phase ensures we set the boolean before any side effects execute
15066
- // in response to the key or pointer event as they might depend on this value.
15067
- const handleKeyDown = ()=>{
15068
- isUsingKeyboardRef.current = true;
15069
- document.addEventListener('pointerdown', handlePointer, {
15070
- capture: true,
15071
- once: true
15072
- });
15073
- document.addEventListener('pointermove', handlePointer, {
15074
- capture: true,
15075
- once: true
15076
- });
15077
- };
15078
- const handlePointer = ()=>isUsingKeyboardRef.current = false
15079
- ;
15080
- document.addEventListener('keydown', handleKeyDown, {
15081
- capture: true
15082
- });
15083
- return ()=>{
15084
- document.removeEventListener('keydown', handleKeyDown, {
15085
- capture: true
15086
- });
15087
- document.removeEventListener('pointerdown', handlePointer, {
15074
+ * createContextScope
15075
+ * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
15076
+ let defaultContexts = [];
15077
+ /* -----------------------------------------------------------------------------------------------
15078
+ * createContext
15079
+ * ---------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
15080
+ const BaseContext = /*#__PURE__*/ createContext(defaultContext);
15081
+ const index = defaultContexts.length;
15082
+ defaultContexts = [
15083
+ ...defaultContexts,
15084
+ defaultContext
15085
+ ];
15086
+ function Provider(props) {
15087
+ const { scope: scope , children: children , ...context } = props;
15088
+ const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; // Only re-memoize when prop values change
15089
+ // eslint-disable-next-line react-hooks/exhaustive-deps
15090
+ const value = useMemo(()=>context
15091
+ , Object.values(context));
15092
+ return /*#__PURE__*/ createElement(Context.Provider, {
15093
+ value: value
15094
+ }, children);
15095
+ }
15096
+ function useContext$1(consumerName, scope) {
15097
+ const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;
15098
+ const context = useContext(Context);
15099
+ if (context) return context;
15100
+ if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.
15101
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
15102
+ }
15103
+ Provider.displayName = rootComponentName + 'Provider';
15104
+ return [
15105
+ Provider,
15106
+ useContext$1
15107
+ ];
15108
+ }
15109
+ /* -----------------------------------------------------------------------------------------------
15110
+ * createScope
15111
+ * ---------------------------------------------------------------------------------------------*/ const createScope = ()=>{
15112
+ const scopeContexts = defaultContexts.map((defaultContext)=>{
15113
+ return /*#__PURE__*/ createContext(defaultContext);
15114
+ });
15115
+ return function useScope(scope) {
15116
+ const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
15117
+ return useMemo(()=>({
15118
+ [`__scope${scopeName}`]: {
15119
+ ...scope,
15120
+ [scopeName]: contexts
15121
+ }
15122
+ })
15123
+ , [
15124
+ scope,
15125
+ contexts
15126
+ ]);
15127
+ };
15128
+ };
15129
+ createScope.scopeName = scopeName;
15130
+ return [
15131
+ $c512c27ab02ef895$export$fd42f52fd3ae1109,
15132
+ $c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
15133
+ ];
15134
+ }
15135
+ /* -------------------------------------------------------------------------------------------------
15136
+ * composeContextScopes
15137
+ * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
15138
+ const baseScope = scopes[0];
15139
+ if (scopes.length === 1) return baseScope;
15140
+ const createScope1 = ()=>{
15141
+ const scopeHooks = scopes.map((createScope)=>({
15142
+ useScope: createScope(),
15143
+ scopeName: createScope.scopeName
15144
+ })
15145
+ );
15146
+ return function useComposedScopes(overrideScopes) {
15147
+ const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope: useScope , scopeName: scopeName })=>{
15148
+ // We are calling a hook inside a callback which React warns against to avoid inconsistent
15149
+ // renders, however, scoping doesn't have render side effects so we ignore the rule.
15150
+ // eslint-disable-next-line react-hooks/rules-of-hooks
15151
+ const scopeProps = useScope(overrideScopes);
15152
+ const currentScope = scopeProps[`__scope${scopeName}`];
15153
+ return {
15154
+ ...nextScopes,
15155
+ ...currentScope
15156
+ };
15157
+ }, {});
15158
+ return useMemo(()=>({
15159
+ [`__scope${baseScope.scopeName}`]: nextScopes1
15160
+ })
15161
+ , [
15162
+ nextScopes1
15163
+ ]);
15164
+ };
15165
+ };
15166
+ createScope1.scopeName = baseScope.scopeName;
15167
+ return createScope1;
15168
+ }
15169
+
15170
+ /**
15171
+ * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
15172
+ * prop or avoid re-executing effects when passed as a dependency
15173
+ */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
15174
+ const callbackRef = useRef(callback);
15175
+ useEffect(()=>{
15176
+ callbackRef.current = callback;
15177
+ }); // https://github.com/facebook/react/issues/19240
15178
+ return useMemo(()=>(...args)=>{
15179
+ var _callbackRef$current;
15180
+ return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
15181
+ }
15182
+ , []);
15183
+ }
15184
+
15185
+ function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
15186
+ const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
15187
+ defaultProp: defaultProp,
15188
+ onChange: onChange
15189
+ });
15190
+ const isControlled = prop !== undefined;
15191
+ const value1 = isControlled ? prop : uncontrolledProp;
15192
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
15193
+ const setValue = useCallback((nextValue)=>{
15194
+ if (isControlled) {
15195
+ const setter = nextValue;
15196
+ const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
15197
+ if (value !== prop) handleChange(value);
15198
+ } else setUncontrolledProp(nextValue);
15199
+ }, [
15200
+ isControlled,
15201
+ prop,
15202
+ setUncontrolledProp,
15203
+ handleChange
15204
+ ]);
15205
+ return [
15206
+ value1,
15207
+ setValue
15208
+ ];
15209
+ }
15210
+ function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {
15211
+ const uncontrolledState = useState(defaultProp);
15212
+ const [value] = uncontrolledState;
15213
+ const prevValueRef = useRef(value);
15214
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
15215
+ useEffect(()=>{
15216
+ if (prevValueRef.current !== value) {
15217
+ handleChange(value);
15218
+ prevValueRef.current = value;
15219
+ }
15220
+ }, [
15221
+ value,
15222
+ prevValueRef,
15223
+ handleChange
15224
+ ]);
15225
+ return uncontrolledState;
15226
+ }
15227
+
15228
+ /**
15229
+ * Set a given ref to a given value
15230
+ * This utility takes care of different types of refs: callback refs and RefObject(s)
15231
+ */ function $6ed0406888f73fc4$var$setRef(ref, value) {
15232
+ if (typeof ref === 'function') ref(value);
15233
+ else if (ref !== null && ref !== undefined) ref.current = value;
15234
+ }
15235
+ /**
15236
+ * A utility to compose multiple refs together
15237
+ * Accepts callback refs and RefObject(s)
15238
+ */ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
15239
+ return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)
15240
+ )
15241
+ ;
15242
+ }
15243
+ /**
15244
+ * A custom hook that composes multiple refs
15245
+ * Accepts callback refs and RefObject(s)
15246
+ */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
15247
+ // eslint-disable-next-line react-hooks/exhaustive-deps
15248
+ return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
15249
+ }
15250
+
15251
+ function t(t){return t.split("-")[0]}function e(t){return t.split("-")[1]}function n$1(e){return ["top","bottom"].includes(t(e))?"x":"y"}function r$1(t){return "y"===t?"height":"width"}function i$1(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=n$1(o),m=r$1(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y};}switch(e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1);}return p}const o$1=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=i$1(c,r,s),m=r,g={},d=0;for(let n=0;n<a.length;n++){const{name:p,fn:h}=a[n],{x:y,y:x,data:w,reset:v}=await h({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=x?x:u,g={...g,[p]:{...g[p],...w}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(m=v.placement),v.rects&&(c=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:f,y:u}=i$1(c,m,s))),n=-1);}return {x:f,y:u,placement:m,strategy:o,middlewareData:g}};function a$1(t){return "number"!=typeof t?function(t){return {top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l$1(t){return {...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function s$1(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:d=!1,padding:p=0}=e,h=a$1(p),y=c[d?"floating"===g?"reference":"floating":g],x=l$1(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),w=l$1(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===g?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(c.floating)),strategy:f}):s[g]);return {top:x.top-w.top+h.top,bottom:w.bottom-x.bottom+h.bottom,left:x.left-w.left+h.left,right:w.right-x.right+h.right}}const c$1=Math.min,f$1=Math.max;function u$1(t,e,n){return f$1(t,c$1(e,n))}const m$1=t=>({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return {};const d=a$1(l),p={x:s,y:c},h=n$1(f),y=e(f),x=r$1(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,D=d[v],L=T-w[x]-d[b],k=T/2-w[x]/2+O,E=u$1(D,k,L),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return {[h]:p[h]-(C?k<D?D-k:L-k:0),data:{[h]:E,centerOffset:k-E}}}}),g$1={left:"right",right:"left",bottom:"top",top:"bottom"};function d$1(t){return t.replace(/left|right|bottom|top/g,(t=>g$1[t]))}function p$1(t,i,o){void 0===o&&(o=!1);const a=e(t),l=n$1(t),s=r$1(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=d$1(c)),{main:c,cross:d$1(c)}}const h$1={start:"end",end:"start"};function y$1(t){return t.replace(/start|end/g,(t=>h$1[t]))}const x$1=["top","right","bottom","left"];x$1.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const b$1=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=t(i),b=g||(v===l||!x?[d$1(l)]:function(t){const e=d$1(t);return [y$1(t),e,y$1(e)]}(l)),R=[l,...b],A=await s$1(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=p$1(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e]);}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,D;const t=(null!=(O=null==(D=o.flip)?void 0:D.index)?O:0)+1,e=R[t];if(e)return {data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var L;const t=null==(L=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0].placement;t&&(n=t);break}case"initialPlacement":n=l;}if(i!==n)return {reset:{placement:n}}}return {}}}};function R$1(t,e){return {top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function A(t){return x$1.some((e=>t[e]>=0))}const P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return {name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=R$1(await s$1(t,{...n,elementContext:"reference"}),r.reference);return {data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{const e=R$1(await s$1(t,{...n,altBoundary:!0}),r.floating);return {data:{escapedOffsets:e,escaped:A(e)}}}default:return {}}}}};const T$1=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=t(o),f=e(o),u="x"===n$1(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return {x:o+l.x,y:a+l.y,data:l}}}};function O(t){return "x"===t?"y":"x"}const D$1=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return {x:e,y:n}}},...m}=e,g={x:i,y:o},d=await s$1(r,m),p=n$1(t(a)),h=O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=u$1(y+d["y"===p?"top":"left"],y,y-d[t]);}if(c){const t="y"===h?"bottom":"right";x=u$1(x+d["y"===h?"top":"left"],x,x-d[t]);}const w=f.fn({...r,[p]:y,[h]:x});return {...w,data:{x:w.x-i,y:w.y-o}}}}},L$1=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=n$1(a),d=O(g);let p=m[g],h=m[d];const y="function"==typeof c?c({...l,placement:a}):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;p<e?p=e:p>n&&(p=n);}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);h<r?h=r:h>i&&(h=i);}return {[g]:p,[d]:h}}}},k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c,...u}=n,m=await s$1(r,u),g=t(i),d=e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=f$1(m.left,0),x=f$1(m.right,0),w=f$1(m.top,0),v=f$1(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:f$1(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:f$1(m.left,m.right)):m[h])},R=await a.getDimensions(l.floating);null==c||c({...r,...b});const A=await a.getDimensions(l.floating);return R.width!==A.width||R.height!==A.height?{reset:{rects:!0}}:{}}}};
15252
+
15253
+ function n(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function o(t){if(null==t)return window;if(!n(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function i(t){return o(t).getComputedStyle(t)}function r(t){return n(t)?"":t?(t.nodeName||"").toLowerCase():""}function l(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function c(t){return t instanceof o(t).HTMLElement}function f(t){return t instanceof o(t).Element}function s(t){if("undefined"==typeof ShadowRoot)return !1;return t instanceof o(t).ShadowRoot||t instanceof ShadowRoot}function u(t){const{overflow:e,overflowX:n,overflowY:o}=i(t);return /auto|scroll|overlay|hidden/.test(e+o+n)}function d(t){return ["table","td","th"].includes(r(t))}function h(t){const e=/firefox/i.test(l()),n=i(t);return "none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function a(){return !/^((?!chrome|android).)*safari/i.test(l())}const g=Math.min,p=Math.max,m=Math.round;function w(t,e,n){var i,r,l,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const u=t.getBoundingClientRect();let d=1,h=1;e&&c(t)&&(d=t.offsetWidth>0&&m(u.width)/t.offsetWidth||1,h=t.offsetHeight>0&&m(u.height)/t.offsetHeight||1);const g=f(t)?o(t):window,p=!a()&&n,w=(u.left+(p&&null!=(i=null==(r=g.visualViewport)?void 0:r.offsetLeft)?i:0))/d,v=(u.top+(p&&null!=(l=null==(s=g.visualViewport)?void 0:s.offsetTop)?l:0))/h,y=u.width/d,x=u.height/h;return {width:y,height:x,top:v,right:w+y,bottom:v+x,left:w,x:w,y:v}}function v(t){return (e=t,(e instanceof o(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e;}function y(t){return f(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x(t){return w(v(t)).left+y(t).scrollLeft}function b(t,e,n){const o=c(e),i=v(e),l=w(t,o&&function(t){const e=w(t);return m(e.width)!==t.offsetWidth||m(e.height)!==t.offsetHeight}(e),"fixed"===n);let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==r(e)||u(i))&&(f=y(e)),c(e)){const t=w(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop;}else i&&(s.x=x(i));return {x:l.left+f.scrollLeft-s.x,y:l.top+f.scrollTop-s.y,width:l.width,height:l.height}}function L(t){return "html"===r(t)?t:t.assignedSlot||t.parentNode||(s(t)?t.host:null)||v(t)}function R(t){return c(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function T(t){const e=o(t);let n=R(t);for(;n&&d(n)&&"static"===getComputedStyle(n).position;)n=R(n);return n&&("html"===r(n)||"body"===r(n)&&"static"===getComputedStyle(n).position&&!h(n))?e:n||function(t){let e=L(t);for(s(e)&&(e=e.host);c(e)&&!["html","body"].includes(r(e));){if(h(e))return e;e=e.parentNode;}return null}(t)||e}function W(t){if(c(t))return {width:t.offsetWidth,height:t.offsetHeight};const e=w(t);return {width:e.width,height:e.height}}function E(t){const e=L(t);return ["html","body","#document"].includes(r(e))?t.ownerDocument.body:c(e)&&u(e)?e:E(e)}function H(t,e){var n;void 0===e&&(e=[]);const i=E(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),l=o(i),c=r?[l].concat(l.visualViewport||[],u(i)?i:[]):i,f=e.concat(c);return r?f:f.concat(H(c))}function C(e,n,r){return "viewport"===n?l$1(function(t,e){const n=o(t),i=v(t),r=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,f=0,s=0;if(r){l=r.width,c=r.height;const t=a();(t||!t&&"fixed"===e)&&(f=r.offsetLeft,s=r.offsetTop);}return {width:l,height:c,x:f,y:s}}(e,r)):f(n)?function(t,e){const n=w(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return {top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,r):l$1(function(t){var e;const n=v(t),o=y(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=p(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=p(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let f=-o.scrollLeft+x(t);const s=-o.scrollTop;return "rtl"===i(r||n).direction&&(f+=p(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:f,y:s}}(v(e)))}function S(t){const e=H(t),n=["absolute","fixed"].includes(i(t).position)&&c(t)?T(t):t;return f(n)?e.filter((t=>f(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return !0;if(n&&s(n)){let n=e;do{if(n&&t===n)return !0;n=n.parentNode||n.host;}while(n)}return !1}(t,n)&&"body"!==r(t))):[]}const D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?S(e):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=C(e,n,i);return t.top=p(o.top,t.top),t.right=g(o.right,t.right),t.bottom=g(o.bottom,t.bottom),t.left=p(o.left,t.left),t}),C(e,l,i));return {width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=c(n),l=v(n);if(n===l)return e;let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==r(n)||u(l))&&(f=y(n)),c(n))){const t=w(n,!0);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop;}return {...e,x:e.x-f.scrollLeft+s.x,y:e.y-f.scrollTop+s.y}},isElement:f,getDimensions:W,getOffsetParent:T,getDocumentElement:v,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return {reference:b(e,T(n),o),floating:{...W(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===i(t).direction};function N(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,s=i&&!c,u=r&&!c,d=s||u?[...f(t)?H(t):[],...H(e)]:[];d.forEach((t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n);}));let h,a=null;if(l){let o=!0;a=new ResizeObserver((()=>{o||n(),o=!1;})),f(t)&&!c&&a.observe(t),a.observe(e);}let g=c?w(t):null;return c&&function e(){const o=w(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,h=requestAnimationFrame(e);}(),n(),()=>{var t;d.forEach((t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n);})),null==(t=a)||t.disconnect(),a=null,c&&cancelAnimationFrame(h);}}const z=(t,n,o)=>o$1(t,n,{platform:D,...o});
15254
+
15255
+ var index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;
15256
+
15257
+ // Fork of `fast-deep-equal` that only does the comparisons we need and compares
15258
+ // functions
15259
+ function deepEqual(a, b) {
15260
+ if (a === b) {
15261
+ return true;
15262
+ }
15263
+
15264
+ if (typeof a !== typeof b) {
15265
+ return false;
15266
+ }
15267
+
15268
+ if (typeof a === 'function' && a.toString() === b.toString()) {
15269
+ return true;
15270
+ }
15271
+
15272
+ let length, i, keys;
15273
+
15274
+ if (a && b && typeof a == 'object') {
15275
+ if (Array.isArray(a)) {
15276
+ length = a.length;
15277
+ if (length != b.length) return false;
15278
+
15279
+ for (i = length; i-- !== 0;) {
15280
+ if (!deepEqual(a[i], b[i])) {
15281
+ return false;
15282
+ }
15283
+ }
15284
+
15285
+ return true;
15286
+ }
15287
+
15288
+ keys = Object.keys(a);
15289
+ length = keys.length;
15290
+
15291
+ if (length !== Object.keys(b).length) {
15292
+ return false;
15293
+ }
15294
+
15295
+ for (i = length; i-- !== 0;) {
15296
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) {
15297
+ return false;
15298
+ }
15299
+ }
15300
+
15301
+ for (i = length; i-- !== 0;) {
15302
+ const key = keys[i];
15303
+
15304
+ if (key === '_owner' && a.$$typeof) {
15305
+ continue;
15306
+ }
15307
+
15308
+ if (!deepEqual(a[key], b[key])) {
15309
+ return false;
15310
+ }
15311
+ }
15312
+
15313
+ return true;
15314
+ }
15315
+
15316
+ return a !== a && b !== b;
15317
+ }
15318
+
15319
+ function useLatestRef(value) {
15320
+ const ref = React.useRef(value);
15321
+ index(() => {
15322
+ ref.current = value;
15323
+ });
15324
+ return ref;
15325
+ }
15326
+
15327
+ function useFloating(_temp) {
15328
+ let {
15329
+ middleware,
15330
+ placement = 'bottom',
15331
+ strategy = 'absolute',
15332
+ whileElementsMounted
15333
+ } = _temp === void 0 ? {} : _temp;
15334
+ const reference = React.useRef(null);
15335
+ const floating = React.useRef(null);
15336
+ const whileElementsMountedRef = useLatestRef(whileElementsMounted);
15337
+ const cleanupRef = React.useRef(null);
15338
+ const [data, setData] = React.useState({
15339
+ // Setting these to `null` will allow the consumer to determine if
15340
+ // `computePosition()` has run yet
15341
+ x: null,
15342
+ y: null,
15343
+ strategy,
15344
+ placement,
15345
+ middlewareData: {}
15346
+ });
15347
+ const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);
15348
+
15349
+ if (!deepEqual(latestMiddleware == null ? void 0 : latestMiddleware.map(_ref => {
15350
+ let {
15351
+ options
15352
+ } = _ref;
15353
+ return options;
15354
+ }), middleware == null ? void 0 : middleware.map(_ref2 => {
15355
+ let {
15356
+ options
15357
+ } = _ref2;
15358
+ return options;
15359
+ }))) {
15360
+ setLatestMiddleware(middleware);
15361
+ }
15362
+
15363
+ const update = React.useCallback(() => {
15364
+ if (!reference.current || !floating.current) {
15365
+ return;
15366
+ }
15367
+
15368
+ z(reference.current, floating.current, {
15369
+ middleware: latestMiddleware,
15370
+ placement,
15371
+ strategy
15372
+ }).then(data => {
15373
+ if (isMountedRef.current) {
15374
+ ReactDOM.flushSync(() => {
15375
+ setData(data);
15376
+ });
15377
+ }
15378
+ });
15379
+ }, [latestMiddleware, placement, strategy]);
15380
+ index(() => {
15381
+ // Skip first update
15382
+ if (isMountedRef.current) {
15383
+ update();
15384
+ }
15385
+ }, [update]);
15386
+ const isMountedRef = React.useRef(false);
15387
+ index(() => {
15388
+ isMountedRef.current = true;
15389
+ return () => {
15390
+ isMountedRef.current = false;
15391
+ };
15392
+ }, []);
15393
+ const runElementMountCallback = React.useCallback(() => {
15394
+ if (typeof cleanupRef.current === 'function') {
15395
+ cleanupRef.current();
15396
+ cleanupRef.current = null;
15397
+ }
15398
+
15399
+ if (reference.current && floating.current) {
15400
+ if (whileElementsMountedRef.current) {
15401
+ const cleanupFn = whileElementsMountedRef.current(reference.current, floating.current, update);
15402
+ cleanupRef.current = cleanupFn;
15403
+ } else {
15404
+ update();
15405
+ }
15406
+ }
15407
+ }, [update, whileElementsMountedRef]);
15408
+ const setReference = React.useCallback(node => {
15409
+ reference.current = node;
15410
+ runElementMountCallback();
15411
+ }, [runElementMountCallback]);
15412
+ const setFloating = React.useCallback(node => {
15413
+ floating.current = node;
15414
+ runElementMountCallback();
15415
+ }, [runElementMountCallback]);
15416
+ const refs = React.useMemo(() => ({
15417
+ reference,
15418
+ floating
15419
+ }), []);
15420
+ return React.useMemo(() => ({ ...data,
15421
+ update,
15422
+ refs,
15423
+ reference: setReference,
15424
+ floating: setFloating
15425
+ }), [data, update, refs, setReference, setFloating]);
15426
+ }
15427
+
15428
+ /**
15429
+ * Positions an inner element of the floating element such that it is centered
15430
+ * to the reference element.
15431
+ * This wraps the core `arrow` middleware to allow React refs as the element.
15432
+ * @see https://floating-ui.com/docs/arrow
15433
+ */
15434
+
15435
+ const arrow = options => {
15436
+ const {
15437
+ element,
15438
+ padding
15439
+ } = options;
15440
+
15441
+ function isRef(value) {
15442
+ return Object.prototype.hasOwnProperty.call(value, 'current');
15443
+ }
15444
+
15445
+ return {
15446
+ name: 'arrow',
15447
+ options,
15448
+
15449
+ fn(args) {
15450
+ if (isRef(element)) {
15451
+ if (element.current != null) {
15452
+ return m$1({
15453
+ element: element.current,
15454
+ padding
15455
+ }).fn(args);
15456
+ }
15457
+
15458
+ return {};
15459
+ } else if (element) {
15460
+ return m$1({
15461
+ element,
15462
+ padding
15463
+ }).fn(args);
15464
+ }
15465
+
15466
+ return {};
15467
+ }
15468
+
15469
+ };
15470
+ };
15471
+
15472
+ /* -------------------------------------------------------------------------------------------------
15473
+ * Slot
15474
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15475
+ const { children: children , ...slotProps } = props;
15476
+ const childrenArray = Children.toArray(children);
15477
+ const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
15478
+ if (slottable) {
15479
+ // the new element to render is the one passed as a child of `Slottable`
15480
+ const newElement = slottable.props.children;
15481
+ const newChildren = childrenArray.map((child)=>{
15482
+ if (child === slottable) {
15483
+ // because the new element will be the one rendered, we are only interested
15484
+ // in grabbing its children (`newElement.props.children`)
15485
+ if (Children.count(newElement) > 1) return Children.only(null);
15486
+ return /*#__PURE__*/ isValidElement(newElement) ? newElement.props.children : null;
15487
+ } else return child;
15488
+ });
15489
+ return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
15490
+ ref: forwardedRef
15491
+ }), /*#__PURE__*/ isValidElement(newElement) ? /*#__PURE__*/ cloneElement(newElement, undefined, newChildren) : null);
15492
+ }
15493
+ return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
15494
+ ref: forwardedRef
15495
+ }), children);
15496
+ });
15497
+ $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
15498
+ /* -------------------------------------------------------------------------------------------------
15499
+ * SlotClone
15500
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15501
+ const { children: children , ...slotProps } = props;
15502
+ if (/*#__PURE__*/ isValidElement(children)) return /*#__PURE__*/ cloneElement(children, {
15503
+ ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
15504
+ ref: $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref)
15505
+ });
15506
+ return Children.count(children) > 1 ? Children.only(null) : null;
15507
+ });
15508
+ $5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';
15509
+ /* -------------------------------------------------------------------------------------------------
15510
+ * Slottable
15511
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{
15512
+ return /*#__PURE__*/ createElement(Fragment, null, children);
15513
+ };
15514
+ /* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {
15515
+ return /*#__PURE__*/ isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
15516
+ }
15517
+ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
15518
+ // all child props should override
15519
+ const overrideProps = {
15520
+ ...childProps
15521
+ };
15522
+ for(const propName in childProps){
15523
+ const slotPropValue = slotProps[propName];
15524
+ const childPropValue = childProps[propName];
15525
+ const isHandler = /^on[A-Z]/.test(propName);
15526
+ if (isHandler) {
15527
+ // if the handler exists on both, we compose them
15528
+ if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{
15529
+ childPropValue(...args);
15530
+ slotPropValue(...args);
15531
+ };
15532
+ else if (slotPropValue) overrideProps[propName] = slotPropValue;
15533
+ } else if (propName === 'style') overrideProps[propName] = {
15534
+ ...slotPropValue,
15535
+ ...childPropValue
15536
+ };
15537
+ else if (propName === 'className') overrideProps[propName] = [
15538
+ slotPropValue,
15539
+ childPropValue
15540
+ ].filter(Boolean).join(' ');
15541
+ }
15542
+ return {
15543
+ ...slotProps,
15544
+ ...overrideProps
15545
+ };
15546
+ }
15547
+
15548
+ const $8927f6f2acc4f386$var$NODES = [
15549
+ 'a',
15550
+ 'button',
15551
+ 'div',
15552
+ 'h2',
15553
+ 'h3',
15554
+ 'img',
15555
+ 'label',
15556
+ 'li',
15557
+ 'nav',
15558
+ 'ol',
15559
+ 'p',
15560
+ 'span',
15561
+ 'svg',
15562
+ 'ul'
15563
+ ]; // Temporary while we await merge of this fix:
15564
+ // https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396
15565
+ // prettier-ignore
15566
+ /* -------------------------------------------------------------------------------------------------
15567
+ * Primitive
15568
+ * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node)=>{
15569
+ const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15570
+ const { asChild: asChild , ...primitiveProps } = props;
15571
+ const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
15572
+ useEffect(()=>{
15573
+ window[Symbol.for('radix-ui')] = true;
15574
+ }, []);
15575
+ return /*#__PURE__*/ createElement(Comp, _extends({}, primitiveProps, {
15576
+ ref: forwardedRef
15577
+ }));
15578
+ });
15579
+ Node.displayName = `Primitive.${node}`;
15580
+ return {
15581
+ ...primitive,
15582
+ [node]: Node
15583
+ };
15584
+ }, {});
15585
+ /* -------------------------------------------------------------------------------------------------
15586
+ * Utils
15587
+ * -----------------------------------------------------------------------------------------------*/ /**
15588
+ * Flush custom event dispatch
15589
+ * https://github.com/radix-ui/primitives/pull/1378
15590
+ *
15591
+ * React batches *all* event handlers since version 18, this introduces certain considerations when using custom event types.
15592
+ *
15593
+ * Internally, React prioritises events in the following order:
15594
+ * - discrete
15595
+ * - continuous
15596
+ * - default
15597
+ *
15598
+ * https://github.com/facebook/react/blob/a8a4742f1c54493df00da648a3f9d26e3db9c8b5/packages/react-dom/src/events/ReactDOMEventListener.js#L294-L350
15599
+ *
15600
+ * `discrete` is an important distinction as updates within these events are applied immediately.
15601
+ * React however, is not able to infer the priority of custom event types due to how they are detected internally.
15602
+ * Because of this, it's possible for updates from custom events to be unexpectedly batched when
15603
+ * dispatched by another `discrete` event.
15604
+ *
15605
+ * In order to ensure that updates from custom events are applied predictably, we need to manually flush the batch.
15606
+ * This utility should be used when dispatching a custom event from within another `discrete` event, this utility
15607
+ * is not nessesary when dispatching known event types, or if dispatching a custom type inside a non-discrete event.
15608
+ * For example:
15609
+ *
15610
+ * dispatching a known click 👎
15611
+ * target.dispatchEvent(new Event(‘click’))
15612
+ *
15613
+ * dispatching a custom type within a non-discrete event 👎
15614
+ * onScroll={(event) => event.target.dispatchEvent(new CustomEvent(‘customType’))}
15615
+ *
15616
+ * dispatching a custom type within a `discrete` event 👍
15617
+ * onPointerDown={(event) => dispatchDiscreteCustomEvent(event.target, new CustomEvent(‘customType’))}
15618
+ *
15619
+ * Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use
15620
+ * this utility with them. This is because it's possible for those handlers to be called implicitly during render
15621
+ * e.g. when focus is within a component as it is unmounted, or when managing focus on mount.
15622
+ */ function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {
15623
+ if (target) flushSync(()=>target.dispatchEvent(event)
15624
+ );
15625
+ }
15626
+
15627
+ const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15628
+ const { children: children , width: width = 10 , height: height = 5 , ...arrowProps } = props;
15629
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends({}, arrowProps, {
15630
+ ref: forwardedRef,
15631
+ width: width,
15632
+ height: height,
15633
+ viewBox: "0 0 30 10",
15634
+ preserveAspectRatio: "none"
15635
+ }), props.asChild ? children : /*#__PURE__*/ createElement("polygon", {
15636
+ points: "0,0 30,0 15,10"
15637
+ }));
15638
+ });
15639
+ /* -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;
15640
+
15641
+ /**
15642
+ * On the server, React emits a warning when calling `useLayoutEffect`.
15643
+ * This is because neither `useLayoutEffect` nor `useEffect` run on the server.
15644
+ * We use this safe version which suppresses the warning by replacing it with a noop on the server.
15645
+ *
15646
+ * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
15647
+ */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? useLayoutEffect : ()=>{};
15648
+
15649
+ function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
15650
+ const [size, setSize] = useState(undefined);
15651
+ $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
15652
+ if (element) {
15653
+ // provide size as early as possible
15654
+ setSize({
15655
+ width: element.offsetWidth,
15656
+ height: element.offsetHeight
15657
+ });
15658
+ const resizeObserver = new ResizeObserver((entries)=>{
15659
+ if (!Array.isArray(entries)) return;
15660
+ // Since we only observe the one element, we don't need to loop over the
15661
+ // array
15662
+ if (!entries.length) return;
15663
+ const entry = entries[0];
15664
+ let width;
15665
+ let height;
15666
+ if ('borderBoxSize' in entry) {
15667
+ const borderSizeEntry = entry['borderBoxSize']; // iron out differences between browsers
15668
+ const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
15669
+ width = borderSize['inlineSize'];
15670
+ height = borderSize['blockSize'];
15671
+ } else {
15672
+ // for browsers that don't support `borderBoxSize`
15673
+ // we calculate it ourselves to get the correct border box.
15674
+ width = element.offsetWidth;
15675
+ height = element.offsetHeight;
15676
+ }
15677
+ setSize({
15678
+ width: width,
15679
+ height: height
15680
+ });
15681
+ });
15682
+ resizeObserver.observe(element, {
15683
+ box: 'border-box'
15684
+ });
15685
+ return ()=>resizeObserver.unobserve(element)
15686
+ ;
15687
+ } else // We only want to reset to `undefined` when the element becomes `null`,
15688
+ // not if it changes to another element.
15689
+ setSize(undefined);
15690
+ }, [
15691
+ element
15692
+ ]);
15693
+ return size;
15694
+ }
15695
+
15696
+ /* -------------------------------------------------------------------------------------------------
15697
+ * Popper
15698
+ * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$POPPER_NAME = 'Popper';
15699
+ const [$cf1ac5d9fe0e8206$var$createPopperContext, $cf1ac5d9fe0e8206$export$722aac194ae923] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cf1ac5d9fe0e8206$var$POPPER_NAME);
15700
+ const [$cf1ac5d9fe0e8206$var$PopperProvider, $cf1ac5d9fe0e8206$var$usePopperContext] = $cf1ac5d9fe0e8206$var$createPopperContext($cf1ac5d9fe0e8206$var$POPPER_NAME);
15701
+ const $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9 = (props)=>{
15702
+ const { __scopePopper: __scopePopper , children: children } = props;
15703
+ const [anchor, setAnchor] = useState(null);
15704
+ return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$var$PopperProvider, {
15705
+ scope: __scopePopper,
15706
+ anchor: anchor,
15707
+ onAnchorChange: setAnchor
15708
+ }, children);
15709
+ };
15710
+ /* -------------------------------------------------------------------------------------------------
15711
+ * PopperAnchor
15712
+ * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$ANCHOR_NAME = 'PopperAnchor';
15713
+ const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15714
+ const { __scopePopper: __scopePopper , virtualRef: virtualRef , ...anchorProps } = props;
15715
+ const context = $cf1ac5d9fe0e8206$var$usePopperContext($cf1ac5d9fe0e8206$var$ANCHOR_NAME, __scopePopper);
15716
+ const ref = useRef(null);
15717
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
15718
+ useEffect(()=>{
15719
+ // Consumer can anchor the popper to something that isn't
15720
+ // a DOM node e.g. pointer position, so we override the
15721
+ // `anchorRef` with their virtual ref in this case.
15722
+ context.onAnchorChange((virtualRef === null || virtualRef === void 0 ? void 0 : virtualRef.current) || ref.current);
15723
+ });
15724
+ return virtualRef ? null : /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, anchorProps, {
15725
+ ref: composedRefs
15726
+ }));
15727
+ });
15728
+ /* -------------------------------------------------------------------------------------------------
15729
+ * PopperContent
15730
+ * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$CONTENT_NAME = 'PopperContent';
15731
+ const [$cf1ac5d9fe0e8206$var$PopperContentProvider, $cf1ac5d9fe0e8206$var$useContentContext] = $cf1ac5d9fe0e8206$var$createPopperContext($cf1ac5d9fe0e8206$var$CONTENT_NAME);
15732
+ const [$cf1ac5d9fe0e8206$var$PositionContextProvider, $cf1ac5d9fe0e8206$var$usePositionContext] = $cf1ac5d9fe0e8206$var$createPopperContext($cf1ac5d9fe0e8206$var$CONTENT_NAME, {
15733
+ hasParent: false,
15734
+ positionUpdateFns: new Set()
15735
+ });
15736
+ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15737
+ var _arrowSize$width, _arrowSize$height, _middlewareData$arrow, _middlewareData$arrow2, _middlewareData$arrow3, _middlewareData$hide, _middlewareData$trans, _middlewareData$trans2;
15738
+ const { __scopePopper: __scopePopper , side: side = 'bottom' , sideOffset: sideOffset = 0 , align: align = 'center' , alignOffset: alignOffset = 0 , arrowPadding: arrowPadding = 0 , collisionBoundary: collisionBoundary = [] , collisionPadding: collisionPaddingProp = 0 , sticky: sticky = 'partial' , hideWhenDetached: hideWhenDetached = false , avoidCollisions: avoidCollisions = true , onPlaced: onPlaced , ...contentProps } = props;
15739
+ const context = $cf1ac5d9fe0e8206$var$usePopperContext($cf1ac5d9fe0e8206$var$CONTENT_NAME, __scopePopper);
15740
+ const [content, setContent] = useState(null);
15741
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setContent(node)
15742
+ );
15743
+ const [arrow$1, setArrow] = useState(null);
15744
+ const arrowSize = $db6c3485150b8e66$export$1ab7ae714698c4b8(arrow$1);
15745
+ const arrowWidth = (_arrowSize$width = arrowSize === null || arrowSize === void 0 ? void 0 : arrowSize.width) !== null && _arrowSize$width !== void 0 ? _arrowSize$width : 0;
15746
+ const arrowHeight = (_arrowSize$height = arrowSize === null || arrowSize === void 0 ? void 0 : arrowSize.height) !== null && _arrowSize$height !== void 0 ? _arrowSize$height : 0;
15747
+ const desiredPlacement = side + (align !== 'center' ? '-' + align : '');
15748
+ const collisionPadding = typeof collisionPaddingProp === 'number' ? collisionPaddingProp : {
15749
+ top: 0,
15750
+ right: 0,
15751
+ bottom: 0,
15752
+ left: 0,
15753
+ ...collisionPaddingProp
15754
+ };
15755
+ const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [
15756
+ collisionBoundary
15757
+ ];
15758
+ const hasExplicitBoundaries = boundary.length > 0;
15759
+ const detectOverflowOptions = {
15760
+ padding: collisionPadding,
15761
+ boundary: boundary.filter($cf1ac5d9fe0e8206$var$isNotNull),
15762
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
15763
+ altBoundary: hasExplicitBoundaries
15764
+ };
15765
+ const { reference: reference , floating: floating , strategy: strategy , x: x , y: y , placement: placement , middlewareData: middlewareData , update: update } = useFloating({
15766
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
15767
+ strategy: 'fixed',
15768
+ placement: desiredPlacement,
15769
+ whileElementsMounted: N,
15770
+ middleware: [
15771
+ $cf1ac5d9fe0e8206$var$anchorCssProperties(),
15772
+ T$1({
15773
+ mainAxis: sideOffset + arrowHeight,
15774
+ alignmentAxis: alignOffset
15775
+ }),
15776
+ avoidCollisions ? D$1({
15777
+ mainAxis: true,
15778
+ crossAxis: false,
15779
+ limiter: sticky === 'partial' ? L$1() : undefined,
15780
+ ...detectOverflowOptions
15781
+ }) : undefined,
15782
+ arrow$1 ? arrow({
15783
+ element: arrow$1,
15784
+ padding: arrowPadding
15785
+ }) : undefined,
15786
+ avoidCollisions ? b$1({
15787
+ ...detectOverflowOptions
15788
+ }) : undefined,
15789
+ k({
15790
+ ...detectOverflowOptions,
15791
+ apply: ({ elements: elements , availableWidth: width , availableHeight: height })=>{
15792
+ elements.floating.style.setProperty('--radix-popper-available-width', `${width}px`);
15793
+ elements.floating.style.setProperty('--radix-popper-available-height', `${height}px`);
15794
+ }
15795
+ }),
15796
+ $cf1ac5d9fe0e8206$var$transformOrigin({
15797
+ arrowWidth: arrowWidth,
15798
+ arrowHeight: arrowHeight
15799
+ }),
15800
+ hideWhenDetached ? P({
15801
+ strategy: 'referenceHidden'
15802
+ }) : undefined
15803
+ ].filter($cf1ac5d9fe0e8206$var$isDefined)
15804
+ }); // assign the reference dynamically once `Content` has mounted so we can collocate the logic
15805
+ $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
15806
+ reference(context.anchor);
15807
+ }, [
15808
+ reference,
15809
+ context.anchor
15810
+ ]);
15811
+ const isPlaced = x !== null && y !== null;
15812
+ const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement);
15813
+ const handlePlaced = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPlaced);
15814
+ $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
15815
+ if (isPlaced) handlePlaced === null || handlePlaced === void 0 || handlePlaced();
15816
+ }, [
15817
+ isPlaced,
15818
+ handlePlaced
15819
+ ]);
15820
+ const arrowX = (_middlewareData$arrow = middlewareData.arrow) === null || _middlewareData$arrow === void 0 ? void 0 : _middlewareData$arrow.x;
15821
+ const arrowY = (_middlewareData$arrow2 = middlewareData.arrow) === null || _middlewareData$arrow2 === void 0 ? void 0 : _middlewareData$arrow2.y;
15822
+ const cannotCenterArrow = ((_middlewareData$arrow3 = middlewareData.arrow) === null || _middlewareData$arrow3 === void 0 ? void 0 : _middlewareData$arrow3.centerOffset) !== 0;
15823
+ const [contentZIndex, setContentZIndex] = useState();
15824
+ $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
15825
+ if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
15826
+ }, [
15827
+ content
15828
+ ]);
15829
+ const { hasParent: hasParent , positionUpdateFns: positionUpdateFns } = $cf1ac5d9fe0e8206$var$usePositionContext($cf1ac5d9fe0e8206$var$CONTENT_NAME, __scopePopper);
15830
+ const isRoot = !hasParent;
15831
+ useLayoutEffect(()=>{
15832
+ if (!isRoot) {
15833
+ positionUpdateFns.add(update);
15834
+ return ()=>{
15835
+ positionUpdateFns.delete(update);
15836
+ };
15837
+ }
15838
+ }, [
15839
+ isRoot,
15840
+ positionUpdateFns,
15841
+ update
15842
+ ]); // when nested contents are rendered in portals, they are appended out of order causing
15843
+ // children to be positioned incorrectly if initially open.
15844
+ // we need to re-compute the positioning once the parent has finally been placed.
15845
+ // https://github.com/floating-ui/floating-ui/issues/1531
15846
+ $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
15847
+ if (isRoot && isPlaced) Array.from(positionUpdateFns).reverse().forEach((fn)=>requestAnimationFrame(fn)
15848
+ );
15849
+ }, [
15850
+ isRoot,
15851
+ isPlaced,
15852
+ positionUpdateFns
15853
+ ]);
15854
+ const commonProps = {
15855
+ 'data-side': placedSide,
15856
+ 'data-align': placedAlign,
15857
+ ...contentProps,
15858
+ ref: composedRefs,
15859
+ style: {
15860
+ ...contentProps.style,
15861
+ // if the PopperContent hasn't been placed yet (not all measurements done)
15862
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
15863
+ animation: !isPlaced ? 'none' : undefined,
15864
+ // hide the content if using the hide middleware and should be hidden
15865
+ opacity: (_middlewareData$hide = middlewareData.hide) !== null && _middlewareData$hide !== void 0 && _middlewareData$hide.referenceHidden ? 0 : undefined
15866
+ }
15867
+ };
15868
+ return /*#__PURE__*/ createElement("div", {
15869
+ ref: floating,
15870
+ "data-radix-popper-content-wrapper": "",
15871
+ style: {
15872
+ position: strategy,
15873
+ left: 0,
15874
+ top: 0,
15875
+ transform: isPlaced ? `translate3d(${Math.round(x)}px, ${Math.round(y)}px, 0)` : 'translate3d(0, -200%, 0)',
15876
+ // keep off the page when measuring
15877
+ minWidth: 'max-content',
15878
+ zIndex: contentZIndex,
15879
+ ['--radix-popper-transform-origin']: [
15880
+ (_middlewareData$trans = middlewareData.transformOrigin) === null || _middlewareData$trans === void 0 ? void 0 : _middlewareData$trans.x,
15881
+ (_middlewareData$trans2 = middlewareData.transformOrigin) === null || _middlewareData$trans2 === void 0 ? void 0 : _middlewareData$trans2.y
15882
+ ].join(' ')
15883
+ } // Floating UI interally calculates logical alignment based the `dir` attribute on
15884
+ ,
15885
+ dir: props.dir
15886
+ }, /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$var$PopperContentProvider, {
15887
+ scope: __scopePopper,
15888
+ placedSide: placedSide,
15889
+ onArrowChange: setArrow,
15890
+ arrowX: arrowX,
15891
+ arrowY: arrowY,
15892
+ shouldHideArrow: cannotCenterArrow
15893
+ }, isRoot ? /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$var$PositionContextProvider, {
15894
+ scope: __scopePopper,
15895
+ hasParent: true,
15896
+ positionUpdateFns: positionUpdateFns
15897
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, commonProps)) : /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, commonProps)));
15898
+ });
15899
+ /* -------------------------------------------------------------------------------------------------
15900
+ * PopperArrow
15901
+ * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$ARROW_NAME = 'PopperArrow';
15902
+ const $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE = {
15903
+ top: 'bottom',
15904
+ right: 'left',
15905
+ bottom: 'top',
15906
+ left: 'right'
15907
+ };
15908
+ const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /*#__PURE__*/ forwardRef(function $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0(props, forwardedRef) {
15909
+ const { __scopePopper: __scopePopper , ...arrowProps } = props;
15910
+ const contentContext = $cf1ac5d9fe0e8206$var$useContentContext($cf1ac5d9fe0e8206$var$ARROW_NAME, __scopePopper);
15911
+ const baseSide = $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE[contentContext.placedSide];
15912
+ return(/*#__PURE__*/ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
15913
+ // doesn't report size as we'd expect on SVG elements.
15914
+ // it reports their bounding box which is effectively the largest path inside the SVG.
15915
+ createElement("span", {
15916
+ ref: contentContext.onArrowChange,
15917
+ style: {
15918
+ position: 'absolute',
15919
+ left: contentContext.arrowX,
15920
+ top: contentContext.arrowY,
15921
+ [baseSide]: 0,
15922
+ transformOrigin: {
15923
+ top: '',
15924
+ right: '0 0',
15925
+ bottom: 'center 0',
15926
+ left: '100% 0'
15927
+ }[contentContext.placedSide],
15928
+ transform: {
15929
+ top: 'translateY(100%)',
15930
+ right: 'translateY(50%) rotate(90deg) translateX(-50%)',
15931
+ bottom: `rotate(180deg)`,
15932
+ left: 'translateY(50%) rotate(-90deg) translateX(50%)'
15933
+ }[contentContext.placedSide],
15934
+ visibility: contentContext.shouldHideArrow ? 'hidden' : undefined
15935
+ }
15936
+ }, /*#__PURE__*/ createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends({}, arrowProps, {
15937
+ ref: forwardedRef,
15938
+ style: {
15939
+ ...arrowProps.style,
15940
+ // ensures the element can be measured correctly (mostly for if SVG)
15941
+ display: 'block'
15942
+ }
15943
+ }))));
15944
+ });
15945
+ /* -----------------------------------------------------------------------------------------------*/ function $cf1ac5d9fe0e8206$var$isDefined(value) {
15946
+ return value !== undefined;
15947
+ }
15948
+ function $cf1ac5d9fe0e8206$var$isNotNull(value) {
15949
+ return value !== null;
15950
+ }
15951
+ const $cf1ac5d9fe0e8206$var$anchorCssProperties = ()=>({
15952
+ name: 'anchorCssProperties',
15953
+ fn (data) {
15954
+ const { rects: rects , elements: elements } = data;
15955
+ const { width: width , height: height } = rects.reference;
15956
+ elements.floating.style.setProperty('--radix-popper-anchor-width', `${width}px`);
15957
+ elements.floating.style.setProperty('--radix-popper-anchor-height', `${height}px`);
15958
+ return {};
15959
+ }
15960
+ })
15961
+ ;
15962
+ const $cf1ac5d9fe0e8206$var$transformOrigin = (options)=>({
15963
+ name: 'transformOrigin',
15964
+ options: options,
15965
+ fn (data) {
15966
+ var _middlewareData$arrow4, _middlewareData$arrow5, _middlewareData$arrow6, _middlewareData$arrow7, _middlewareData$arrow8;
15967
+ const { placement: placement , rects: rects , middlewareData: middlewareData } = data;
15968
+ const cannotCenterArrow = ((_middlewareData$arrow4 = middlewareData.arrow) === null || _middlewareData$arrow4 === void 0 ? void 0 : _middlewareData$arrow4.centerOffset) !== 0;
15969
+ const isArrowHidden = cannotCenterArrow;
15970
+ const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
15971
+ const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
15972
+ const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement);
15973
+ const noArrowAlign = {
15974
+ start: '0%',
15975
+ center: '50%',
15976
+ end: '100%'
15977
+ }[placedAlign];
15978
+ const arrowXCenter = ((_middlewareData$arrow5 = (_middlewareData$arrow6 = middlewareData.arrow) === null || _middlewareData$arrow6 === void 0 ? void 0 : _middlewareData$arrow6.x) !== null && _middlewareData$arrow5 !== void 0 ? _middlewareData$arrow5 : 0) + arrowWidth / 2;
15979
+ const arrowYCenter = ((_middlewareData$arrow7 = (_middlewareData$arrow8 = middlewareData.arrow) === null || _middlewareData$arrow8 === void 0 ? void 0 : _middlewareData$arrow8.y) !== null && _middlewareData$arrow7 !== void 0 ? _middlewareData$arrow7 : 0) + arrowHeight / 2;
15980
+ let x = '';
15981
+ let y = '';
15982
+ if (placedSide === 'bottom') {
15983
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
15984
+ y = `${-arrowHeight}px`;
15985
+ } else if (placedSide === 'top') {
15986
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
15987
+ y = `${rects.floating.height + arrowHeight}px`;
15988
+ } else if (placedSide === 'right') {
15989
+ x = `${-arrowHeight}px`;
15990
+ y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
15991
+ } else if (placedSide === 'left') {
15992
+ x = `${rects.floating.width + arrowHeight}px`;
15993
+ y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
15994
+ }
15995
+ return {
15996
+ data: {
15997
+ x: x,
15998
+ y: y
15999
+ }
16000
+ };
16001
+ }
16002
+ })
16003
+ ;
16004
+ function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement) {
16005
+ const [side, align = 'center'] = placement.split('-');
16006
+ return [
16007
+ side,
16008
+ align
16009
+ ];
16010
+ }
16011
+ const $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9 = $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9;
16012
+ const $cf1ac5d9fe0e8206$export$b688253958b8dfe7 = $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d;
16013
+ const $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 = $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc;
16014
+ const $cf1ac5d9fe0e8206$export$21b07c8f274aebd5 = $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0;
16015
+
16016
+ const $f1701beae083dbae$export$602eac185826482c = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
16017
+ var _globalThis$document;
16018
+ const { container: container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body , ...portalProps } = props;
16019
+ return container ? /*#__PURE__*/ ReactDOM__default.createPortal(/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, portalProps, {
16020
+ ref: forwardedRef
16021
+ })), container) : null;
16022
+ });
16023
+
16024
+ function $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {
16025
+ return useReducer((state, event)=>{
16026
+ const nextState = machine[state][event];
16027
+ return nextState !== null && nextState !== void 0 ? nextState : state;
16028
+ }, initialState);
16029
+ }
16030
+
16031
+
16032
+ const $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props)=>{
16033
+ const { present: present , children: children } = props;
16034
+ const presence = $921a889cee6df7e8$var$usePresence(present);
16035
+ const child = typeof children === 'function' ? children({
16036
+ present: presence.isPresent
16037
+ }) : Children.only(children);
16038
+ const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref, child.ref);
16039
+ const forceMount = typeof children === 'function';
16040
+ return forceMount || presence.isPresent ? /*#__PURE__*/ cloneElement(child, {
16041
+ ref: ref
16042
+ }) : null;
16043
+ };
16044
+ $921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';
16045
+ /* -------------------------------------------------------------------------------------------------
16046
+ * usePresence
16047
+ * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence(present) {
16048
+ const [node1, setNode] = useState();
16049
+ const stylesRef = useRef({});
16050
+ const prevPresentRef = useRef(present);
16051
+ const prevAnimationNameRef = useRef('none');
16052
+ const initialState = present ? 'mounted' : 'unmounted';
16053
+ const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState, {
16054
+ mounted: {
16055
+ UNMOUNT: 'unmounted',
16056
+ ANIMATION_OUT: 'unmountSuspended'
16057
+ },
16058
+ unmountSuspended: {
16059
+ MOUNT: 'mounted',
16060
+ ANIMATION_END: 'unmounted'
16061
+ },
16062
+ unmounted: {
16063
+ MOUNT: 'mounted'
16064
+ }
16065
+ });
16066
+ useEffect(()=>{
16067
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
16068
+ prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
16069
+ }, [
16070
+ state
16071
+ ]);
16072
+ $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
16073
+ const styles = stylesRef.current;
16074
+ const wasPresent = prevPresentRef.current;
16075
+ const hasPresentChanged = wasPresent !== present;
16076
+ if (hasPresentChanged) {
16077
+ const prevAnimationName = prevAnimationNameRef.current;
16078
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);
16079
+ if (present) send('MOUNT');
16080
+ else if (currentAnimationName === 'none' || (styles === null || styles === void 0 ? void 0 : styles.display) === 'none') // If there is no exit animation or the element is hidden, animations won't run
16081
+ // so we unmount instantly
16082
+ send('UNMOUNT');
16083
+ else {
16084
+ /**
16085
+ * When `present` changes to `false`, we check changes to animation-name to
16086
+ * determine whether an animation has started. We chose this approach (reading
16087
+ * computed styles) because there is no `animationrun` event and `animationstart`
16088
+ * fires after `animation-delay` has expired which would be too late.
16089
+ */ const isAnimating = prevAnimationName !== currentAnimationName;
16090
+ if (wasPresent && isAnimating) send('ANIMATION_OUT');
16091
+ else send('UNMOUNT');
16092
+ }
16093
+ prevPresentRef.current = present;
16094
+ }
16095
+ }, [
16096
+ present,
16097
+ send
16098
+ ]);
16099
+ $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
16100
+ if (node1) {
16101
+ /**
16102
+ * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`
16103
+ * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we
16104
+ * make sure we only trigger ANIMATION_END for the currently active animation.
16105
+ */ const handleAnimationEnd = (event)=>{
16106
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
16107
+ const isCurrentAnimation = currentAnimationName.includes(event.animationName);
16108
+ if (event.target === node1 && isCurrentAnimation) // With React 18 concurrency this update is applied
16109
+ // a frame after the animation ends, creating a flash of visible content.
16110
+ // By manually flushing we ensure they sync within a frame, removing the flash.
16111
+ flushSync(()=>send('ANIMATION_END')
16112
+ );
16113
+ };
16114
+ const handleAnimationStart = (event)=>{
16115
+ if (event.target === node1) // if animation occurred, store its name as the previous animation.
16116
+ prevAnimationNameRef.current = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
16117
+ };
16118
+ node1.addEventListener('animationstart', handleAnimationStart);
16119
+ node1.addEventListener('animationcancel', handleAnimationEnd);
16120
+ node1.addEventListener('animationend', handleAnimationEnd);
16121
+ return ()=>{
16122
+ node1.removeEventListener('animationstart', handleAnimationStart);
16123
+ node1.removeEventListener('animationcancel', handleAnimationEnd);
16124
+ node1.removeEventListener('animationend', handleAnimationEnd);
16125
+ };
16126
+ } else // Transition to the unmounted state if the node is removed prematurely.
16127
+ // We avoid doing so during cleanup as the node may change but still exist.
16128
+ send('ANIMATION_END');
16129
+ }, [
16130
+ node1,
16131
+ send
16132
+ ]);
16133
+ return {
16134
+ isPresent: [
16135
+ 'mounted',
16136
+ 'unmountSuspended'
16137
+ ].includes(state),
16138
+ ref: useCallback((node)=>{
16139
+ if (node) stylesRef.current = getComputedStyle(node);
16140
+ setNode(node);
16141
+ }, [])
16142
+ };
16143
+ }
16144
+ /* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$getAnimationName(styles) {
16145
+ return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none';
16146
+ }
16147
+
16148
+ /**
16149
+ * Listens for when the escape key is down
16150
+ */ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
16151
+ const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
16152
+ useEffect(()=>{
16153
+ const handleKeyDown = (event)=>{
16154
+ if (event.key === 'Escape') onEscapeKeyDown(event);
16155
+ };
16156
+ ownerDocument.addEventListener('keydown', handleKeyDown);
16157
+ return ()=>ownerDocument.removeEventListener('keydown', handleKeyDown)
16158
+ ;
16159
+ }, [
16160
+ onEscapeKeyDown,
16161
+ ownerDocument
16162
+ ]);
16163
+ }
16164
+
16165
+ const $5cb92bef7577960e$var$CONTEXT_UPDATE = 'dismissableLayer.update';
16166
+ const $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';
16167
+ const $5cb92bef7577960e$var$FOCUS_OUTSIDE = 'dismissableLayer.focusOutside';
16168
+ let $5cb92bef7577960e$var$originalBodyPointerEvents;
16169
+ const $5cb92bef7577960e$var$DismissableLayerContext = /*#__PURE__*/ createContext({
16170
+ layers: new Set(),
16171
+ layersWithOutsidePointerEventsDisabled: new Set(),
16172
+ branches: new Set()
16173
+ });
16174
+ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
16175
+ var _node$ownerDocument;
16176
+ const { disableOutsidePointerEvents: disableOutsidePointerEvents = false , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , ...layerProps } = props;
16177
+ const context = useContext($5cb92bef7577960e$var$DismissableLayerContext);
16178
+ const [node1, setNode] = useState(null);
16179
+ const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
16180
+ const [, force] = useState({});
16181
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setNode(node)
16182
+ );
16183
+ const layers = Array.from(context.layers);
16184
+ const [highestLayerWithOutsidePointerEventsDisabled] = [
16185
+ ...context.layersWithOutsidePointerEventsDisabled
16186
+ ].slice(-1); // prettier-ignore
16187
+ const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled); // prettier-ignore
16188
+ const index = node1 ? layers.indexOf(node1) : -1;
16189
+ const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
16190
+ const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
16191
+ const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event)=>{
16192
+ const target = event.target;
16193
+ const isPointerDownOnBranch = [
16194
+ ...context.branches
16195
+ ].some((branch)=>branch.contains(target)
16196
+ );
16197
+ if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
16198
+ onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);
16199
+ onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
16200
+ if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
16201
+ }, ownerDocument);
16202
+ const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event)=>{
16203
+ const target = event.target;
16204
+ const isFocusInBranch = [
16205
+ ...context.branches
16206
+ ].some((branch)=>branch.contains(target)
16207
+ );
16208
+ if (isFocusInBranch) return;
16209
+ onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);
16210
+ onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
16211
+ if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
16212
+ }, ownerDocument);
16213
+ $addc16e1bbe58fd0$export$3a72a57244d6e765((event)=>{
16214
+ const isHighestLayer = index === context.layers.size - 1;
16215
+ if (!isHighestLayer) return;
16216
+ onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
16217
+ if (!event.defaultPrevented && onDismiss) {
16218
+ event.preventDefault();
16219
+ onDismiss();
16220
+ }
16221
+ }, ownerDocument);
16222
+ useEffect(()=>{
16223
+ if (!node1) return;
16224
+ if (disableOutsidePointerEvents) {
16225
+ if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
16226
+ $5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
16227
+ ownerDocument.body.style.pointerEvents = 'none';
16228
+ }
16229
+ context.layersWithOutsidePointerEventsDisabled.add(node1);
16230
+ }
16231
+ context.layers.add(node1);
16232
+ $5cb92bef7577960e$var$dispatchUpdate();
16233
+ return ()=>{
16234
+ if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
16235
+ };
16236
+ }, [
16237
+ node1,
16238
+ ownerDocument,
16239
+ disableOutsidePointerEvents,
16240
+ context
16241
+ ]);
16242
+ /**
16243
+ * We purposefully prevent combining this effect with the `disableOutsidePointerEvents` effect
16244
+ * because a change to `disableOutsidePointerEvents` would remove this layer from the stack
16245
+ * and add it to the end again so the layering order wouldn't be _creation order_.
16246
+ * We only want them to be removed from context stacks when unmounted.
16247
+ */ useEffect(()=>{
16248
+ return ()=>{
16249
+ if (!node1) return;
16250
+ context.layers.delete(node1);
16251
+ context.layersWithOutsidePointerEventsDisabled.delete(node1);
16252
+ $5cb92bef7577960e$var$dispatchUpdate();
16253
+ };
16254
+ }, [
16255
+ node1,
16256
+ context
16257
+ ]);
16258
+ useEffect(()=>{
16259
+ const handleUpdate = ()=>force({})
16260
+ ;
16261
+ document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
16262
+ return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)
16263
+ ;
16264
+ }, []);
16265
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, layerProps, {
16266
+ ref: composedRefs,
16267
+ style: {
16268
+ pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,
16269
+ ...props.style
16270
+ },
16271
+ onFocusCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusCapture, focusOutside.onFocusCapture),
16272
+ onBlurCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlurCapture, focusOutside.onBlurCapture),
16273
+ onPointerDownCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
16274
+ }));
16275
+ });
16276
+ /* -----------------------------------------------------------------------------------------------*/ /**
16277
+ * Listens for `pointerdown` outside a react subtree. We use `pointerdown` rather than `pointerup`
16278
+ * to mimic layer dismissing behaviour present in OS.
16279
+ * Returns props to pass to the node we want to check for outside events.
16280
+ */ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
16281
+ const handlePointerDownOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPointerDownOutside);
16282
+ const isPointerInsideReactTreeRef = useRef(false);
16283
+ const handleClickRef = useRef(()=>{});
16284
+ useEffect(()=>{
16285
+ const handlePointerDown = (event)=>{
16286
+ if (event.target && !isPointerInsideReactTreeRef.current) {
16287
+ const eventDetail = {
16288
+ originalEvent: event
16289
+ };
16290
+ function handleAndDispatchPointerDownOutsideEvent() {
16291
+ $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {
16292
+ discrete: true
16293
+ });
16294
+ }
16295
+ /**
16296
+ * On touch devices, we need to wait for a click event because browsers implement
16297
+ * a ~350ms delay between the time the user stops touching the display and when the
16298
+ * browser executres events. We need to ensure we don't reactivate pointer-events within
16299
+ * this timeframe otherwise the browser may execute events that should have been prevented.
16300
+ *
16301
+ * Additionally, this also lets us deal automatically with cancellations when a click event
16302
+ * isn't raised because the page was considered scrolled/drag-scrolled, long-pressed, etc.
16303
+ *
16304
+ * This is why we also continuously remove the previous listener, because we cannot be
16305
+ * certain that it was raised, and therefore cleaned-up.
16306
+ */ if (event.pointerType === 'touch') {
16307
+ ownerDocument.removeEventListener('click', handleClickRef.current);
16308
+ handleClickRef.current = handleAndDispatchPointerDownOutsideEvent;
16309
+ ownerDocument.addEventListener('click', handleClickRef.current, {
16310
+ once: true
16311
+ });
16312
+ } else handleAndDispatchPointerDownOutsideEvent();
16313
+ }
16314
+ isPointerInsideReactTreeRef.current = false;
16315
+ };
16316
+ /**
16317
+ * if this hook executes in a component that mounts via a `pointerdown` event, the event
16318
+ * would bubble up to the document and trigger a `pointerDownOutside` event. We avoid
16319
+ * this by delaying the event listener registration on the document.
16320
+ * This is not React specific, but rather how the DOM works, ie:
16321
+ * ```
16322
+ * button.addEventListener('pointerdown', () => {
16323
+ * console.log('I will log');
16324
+ * document.addEventListener('pointerdown', () => {
16325
+ * console.log('I will also log');
16326
+ * })
16327
+ * });
16328
+ */ const timerId = window.setTimeout(()=>{
16329
+ ownerDocument.addEventListener('pointerdown', handlePointerDown);
16330
+ }, 0);
16331
+ return ()=>{
16332
+ window.clearTimeout(timerId);
16333
+ ownerDocument.removeEventListener('pointerdown', handlePointerDown);
16334
+ ownerDocument.removeEventListener('click', handleClickRef.current);
16335
+ };
16336
+ }, [
16337
+ ownerDocument,
16338
+ handlePointerDownOutside
16339
+ ]);
16340
+ return {
16341
+ // ensures we check React component tree (not just DOM tree)
16342
+ onPointerDownCapture: ()=>isPointerInsideReactTreeRef.current = true
16343
+ };
16344
+ }
16345
+ /**
16346
+ * Listens for when focus happens outside a react subtree.
16347
+ * Returns props to pass to the root (node) of the subtree we want to check.
16348
+ */ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
16349
+ const handleFocusOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onFocusOutside);
16350
+ const isFocusInsideReactTreeRef = useRef(false);
16351
+ useEffect(()=>{
16352
+ const handleFocus = (event)=>{
16353
+ if (event.target && !isFocusInsideReactTreeRef.current) {
16354
+ const eventDetail = {
16355
+ originalEvent: event
16356
+ };
16357
+ $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
16358
+ discrete: false
16359
+ });
16360
+ }
16361
+ };
16362
+ ownerDocument.addEventListener('focusin', handleFocus);
16363
+ return ()=>ownerDocument.removeEventListener('focusin', handleFocus)
16364
+ ;
16365
+ }, [
16366
+ ownerDocument,
16367
+ handleFocusOutside
16368
+ ]);
16369
+ return {
16370
+ onFocusCapture: ()=>isFocusInsideReactTreeRef.current = true
16371
+ ,
16372
+ onBlurCapture: ()=>isFocusInsideReactTreeRef.current = false
16373
+ };
16374
+ }
16375
+ function $5cb92bef7577960e$var$dispatchUpdate() {
16376
+ const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);
16377
+ document.dispatchEvent(event);
16378
+ }
16379
+ function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete: discrete }) {
16380
+ const target = detail.originalEvent.target;
16381
+ const event = new CustomEvent(name, {
16382
+ bubbles: false,
16383
+ cancelable: true,
16384
+ detail: detail
16385
+ });
16386
+ if (handler) target.addEventListener(name, handler, {
16387
+ once: true
16388
+ });
16389
+ if (discrete) $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
16390
+ else target.dispatchEvent(event);
16391
+ }
16392
+
16393
+ /* -------------------------------------------------------------------------------------------------
16394
+ * HoverCard
16395
+ * -----------------------------------------------------------------------------------------------*/ let $cef8881cdc69808e$var$originalBodyUserSelect;
16396
+ const $cef8881cdc69808e$var$HOVERCARD_NAME = 'HoverCard';
16397
+ const [$cef8881cdc69808e$var$createHoverCardContext, $cef8881cdc69808e$export$47b6998a836b7260] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cef8881cdc69808e$var$HOVERCARD_NAME, [
16398
+ $cf1ac5d9fe0e8206$export$722aac194ae923
16399
+ ]);
16400
+ const $cef8881cdc69808e$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923();
16401
+ const [$cef8881cdc69808e$var$HoverCardProvider, $cef8881cdc69808e$var$useHoverCardContext] = $cef8881cdc69808e$var$createHoverCardContext($cef8881cdc69808e$var$HOVERCARD_NAME);
16402
+ const $cef8881cdc69808e$export$57a077cc9fbe653e = (props)=>{
16403
+ const { __scopeHoverCard: __scopeHoverCard , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , openDelay: openDelay = 700 , closeDelay: closeDelay = 300 } = props;
16404
+ const popperScope = $cef8881cdc69808e$var$usePopperScope(__scopeHoverCard);
16405
+ const openTimerRef = useRef(0);
16406
+ const closeTimerRef = useRef(0);
16407
+ const hasSelectionRef = useRef(false);
16408
+ const isPointerDownOnContentRef = useRef(false);
16409
+ const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
16410
+ prop: openProp,
16411
+ defaultProp: defaultOpen,
16412
+ onChange: onOpenChange
16413
+ });
16414
+ const handleOpen = useCallback(()=>{
16415
+ clearTimeout(closeTimerRef.current);
16416
+ openTimerRef.current = window.setTimeout(()=>setOpen(true)
16417
+ , openDelay);
16418
+ }, [
16419
+ openDelay,
16420
+ setOpen
16421
+ ]);
16422
+ const handleClose = useCallback(()=>{
16423
+ clearTimeout(openTimerRef.current);
16424
+ if (!hasSelectionRef.current && !isPointerDownOnContentRef.current) closeTimerRef.current = window.setTimeout(()=>setOpen(false)
16425
+ , closeDelay);
16426
+ }, [
16427
+ closeDelay,
16428
+ setOpen
16429
+ ]);
16430
+ const handleDismiss = useCallback(()=>setOpen(false)
16431
+ , [
16432
+ setOpen
16433
+ ]); // cleanup any queued state updates on unmount
16434
+ useEffect(()=>{
16435
+ return ()=>{
16436
+ clearTimeout(openTimerRef.current);
16437
+ clearTimeout(closeTimerRef.current);
16438
+ };
16439
+ }, []);
16440
+ return /*#__PURE__*/ createElement($cef8881cdc69808e$var$HoverCardProvider, {
16441
+ scope: __scopeHoverCard,
16442
+ open: open,
16443
+ onOpenChange: setOpen,
16444
+ onOpen: handleOpen,
16445
+ onClose: handleClose,
16446
+ onDismiss: handleDismiss,
16447
+ hasSelectionRef: hasSelectionRef,
16448
+ isPointerDownOnContentRef: isPointerDownOnContentRef
16449
+ }, /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9, popperScope, children));
16450
+ };
16451
+ /* -------------------------------------------------------------------------------------------------
16452
+ * HoverCardTrigger
16453
+ * -----------------------------------------------------------------------------------------------*/ const $cef8881cdc69808e$var$TRIGGER_NAME = 'HoverCardTrigger';
16454
+ const $cef8881cdc69808e$export$ef9f7fd8e4ba882f = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
16455
+ const { __scopeHoverCard: __scopeHoverCard , ...triggerProps } = props;
16456
+ const context = $cef8881cdc69808e$var$useHoverCardContext($cef8881cdc69808e$var$TRIGGER_NAME, __scopeHoverCard);
16457
+ const popperScope = $cef8881cdc69808e$var$usePopperScope(__scopeHoverCard);
16458
+ return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends({
16459
+ asChild: true
16460
+ }, popperScope), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.a, _extends({
16461
+ "data-state": context.open ? 'open' : 'closed'
16462
+ }, triggerProps, {
16463
+ ref: forwardedRef,
16464
+ onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter, $cef8881cdc69808e$var$excludeTouch(context.onOpen)),
16465
+ onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, $cef8881cdc69808e$var$excludeTouch(context.onClose)),
16466
+ onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocus, context.onOpen),
16467
+ onBlur: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlur, context.onClose) // prevent focus event on touch devices
16468
+ ,
16469
+ onTouchStart: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onTouchStart, (event)=>event.preventDefault()
16470
+ )
16471
+ })));
16472
+ });
16473
+ /* -------------------------------------------------------------------------------------------------
16474
+ * HoverCardPortal
16475
+ * -----------------------------------------------------------------------------------------------*/ const $cef8881cdc69808e$var$PORTAL_NAME = 'HoverCardPortal';
16476
+ const [$cef8881cdc69808e$var$PortalProvider, $cef8881cdc69808e$var$usePortalContext] = $cef8881cdc69808e$var$createHoverCardContext($cef8881cdc69808e$var$PORTAL_NAME, {
16477
+ forceMount: undefined
16478
+ });
16479
+ const $cef8881cdc69808e$export$b384c6e0a789f88b = (props)=>{
16480
+ const { __scopeHoverCard: __scopeHoverCard , forceMount: forceMount , children: children , container: container } = props;
16481
+ const context = $cef8881cdc69808e$var$useHoverCardContext($cef8881cdc69808e$var$PORTAL_NAME, __scopeHoverCard);
16482
+ return /*#__PURE__*/ createElement($cef8881cdc69808e$var$PortalProvider, {
16483
+ scope: __scopeHoverCard,
16484
+ forceMount: forceMount
16485
+ }, /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
16486
+ present: forceMount || context.open
16487
+ }, /*#__PURE__*/ createElement($f1701beae083dbae$export$602eac185826482c, {
16488
+ asChild: true,
16489
+ container: container
16490
+ }, children)));
16491
+ };
16492
+ /* -------------------------------------------------------------------------------------------------
16493
+ * HoverCardContent
16494
+ * -----------------------------------------------------------------------------------------------*/ const $cef8881cdc69808e$var$CONTENT_NAME = 'HoverCardContent';
16495
+ const $cef8881cdc69808e$export$aa4724a5938c586 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
16496
+ const portalContext = $cef8881cdc69808e$var$usePortalContext($cef8881cdc69808e$var$CONTENT_NAME, props.__scopeHoverCard);
16497
+ const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;
16498
+ const context = $cef8881cdc69808e$var$useHoverCardContext($cef8881cdc69808e$var$CONTENT_NAME, props.__scopeHoverCard);
16499
+ return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
16500
+ present: forceMount || context.open
16501
+ }, /*#__PURE__*/ createElement($cef8881cdc69808e$var$HoverCardContentImpl, _extends({
16502
+ "data-state": context.open ? 'open' : 'closed'
16503
+ }, contentProps, {
16504
+ onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter, $cef8881cdc69808e$var$excludeTouch(context.onOpen)),
16505
+ onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, $cef8881cdc69808e$var$excludeTouch(context.onClose)),
16506
+ ref: forwardedRef
16507
+ })));
16508
+ });
16509
+ /* ---------------------------------------------------------------------------------------------- */ const $cef8881cdc69808e$var$HoverCardContentImpl = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
16510
+ const { __scopeHoverCard: __scopeHoverCard , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , ...contentProps } = props;
16511
+ const context = $cef8881cdc69808e$var$useHoverCardContext($cef8881cdc69808e$var$CONTENT_NAME, __scopeHoverCard);
16512
+ const popperScope = $cef8881cdc69808e$var$usePopperScope(__scopeHoverCard);
16513
+ const ref = useRef(null);
16514
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
16515
+ const [containSelection, setContainSelection] = useState(false);
16516
+ useEffect(()=>{
16517
+ if (containSelection) {
16518
+ const body = document.body; // Safari requires prefix
16519
+ $cef8881cdc69808e$var$originalBodyUserSelect = body.style.userSelect || body.style.webkitUserSelect;
16520
+ body.style.userSelect = 'none';
16521
+ body.style.webkitUserSelect = 'none';
16522
+ return ()=>{
16523
+ body.style.userSelect = $cef8881cdc69808e$var$originalBodyUserSelect;
16524
+ body.style.webkitUserSelect = $cef8881cdc69808e$var$originalBodyUserSelect;
16525
+ };
16526
+ }
16527
+ }, [
16528
+ containSelection
16529
+ ]);
16530
+ useEffect(()=>{
16531
+ if (ref.current) {
16532
+ const handlePointerUp = ()=>{
16533
+ setContainSelection(false);
16534
+ context.isPointerDownOnContentRef.current = false; // Delay a frame to ensure we always access the latest selection
16535
+ setTimeout(()=>{
16536
+ var _document$getSelectio;
16537
+ const hasSelection = ((_document$getSelectio = document.getSelection()) === null || _document$getSelectio === void 0 ? void 0 : _document$getSelectio.toString()) !== '';
16538
+ if (hasSelection) context.hasSelectionRef.current = true;
16539
+ });
16540
+ };
16541
+ document.addEventListener('pointerup', handlePointerUp);
16542
+ return ()=>{
16543
+ document.removeEventListener('pointerup', handlePointerUp);
16544
+ context.hasSelectionRef.current = false;
16545
+ context.isPointerDownOnContentRef.current = false;
16546
+ };
16547
+ }
16548
+ }, [
16549
+ context.isPointerDownOnContentRef,
16550
+ context.hasSelectionRef
16551
+ ]);
16552
+ useEffect(()=>{
16553
+ if (ref.current) {
16554
+ const tabbables = $cef8881cdc69808e$var$getTabbableNodes(ref.current);
16555
+ tabbables.forEach((tabbable)=>tabbable.setAttribute('tabindex', '-1')
16556
+ );
16557
+ }
16558
+ });
16559
+ return /*#__PURE__*/ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, {
16560
+ asChild: true,
16561
+ disableOutsidePointerEvents: false,
16562
+ onInteractOutside: onInteractOutside,
16563
+ onEscapeKeyDown: onEscapeKeyDown,
16564
+ onPointerDownOutside: onPointerDownOutside,
16565
+ onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(onFocusOutside, (event)=>{
16566
+ event.preventDefault();
16567
+ }),
16568
+ onDismiss: context.onDismiss
16569
+ }, /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends({}, popperScope, contentProps, {
16570
+ onPointerDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(contentProps.onPointerDown, (event)=>{
16571
+ // Contain selection to current layer
16572
+ if (event.currentTarget.contains(event.target)) setContainSelection(true);
16573
+ context.hasSelectionRef.current = false;
16574
+ context.isPointerDownOnContentRef.current = true;
16575
+ }),
16576
+ ref: composedRefs,
16577
+ style: {
16578
+ ...contentProps.style,
16579
+ userSelect: containSelection ? 'text' : undefined,
16580
+ // Safari requires prefix
16581
+ WebkitUserSelect: containSelection ? 'text' : undefined,
16582
+ '--radix-hover-card-content-transform-origin': 'var(--radix-popper-transform-origin)',
16583
+ '--radix-hover-card-content-available-width': 'var(--radix-popper-available-width)',
16584
+ '--radix-hover-card-content-available-height': 'var(--radix-popper-available-height)',
16585
+ '--radix-hover-card-trigger-width': 'var(--radix-popper-anchor-width)',
16586
+ '--radix-hover-card-trigger-height': 'var(--radix-popper-anchor-height)'
16587
+ }
16588
+ })));
16589
+ });
16590
+ const $cef8881cdc69808e$export$b9744d3e7456d806 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
16591
+ const { __scopeHoverCard: __scopeHoverCard , ...arrowProps } = props;
16592
+ const popperScope = $cef8881cdc69808e$var$usePopperScope(__scopeHoverCard);
16593
+ return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends({}, popperScope, arrowProps, {
16594
+ ref: forwardedRef
16595
+ }));
16596
+ });
16597
+ /* -----------------------------------------------------------------------------------------------*/ function $cef8881cdc69808e$var$excludeTouch(eventHandler) {
16598
+ return (event)=>event.pointerType === 'touch' ? undefined : eventHandler()
16599
+ ;
16600
+ }
16601
+ /**
16602
+ * Returns a list of nodes that can be in the tab sequence.
16603
+ * @see: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker
16604
+ */ function $cef8881cdc69808e$var$getTabbableNodes(container) {
16605
+ const nodes = [];
16606
+ const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
16607
+ acceptNode: (node)=>{
16608
+ // `.tabIndex` is not the same as the `tabindex` attribute. It works on the
16609
+ // runtime's understanding of tabbability, so this automatically accounts
16610
+ // for any kind of element that could be tabbed to.
16611
+ return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
16612
+ }
16613
+ });
16614
+ while(walker.nextNode())nodes.push(walker.currentNode);
16615
+ return nodes;
16616
+ }
16617
+ const $cef8881cdc69808e$export$be92b6f5f03c0fe9 = $cef8881cdc69808e$export$57a077cc9fbe653e;
16618
+ const $cef8881cdc69808e$export$41fb9f06171c75f4 = $cef8881cdc69808e$export$ef9f7fd8e4ba882f;
16619
+ const $cef8881cdc69808e$export$602eac185826482c = $cef8881cdc69808e$export$b384c6e0a789f88b;
16620
+ const $cef8881cdc69808e$export$7c6e2c02157bb7d2 = $cef8881cdc69808e$export$aa4724a5938c586;
16621
+ const $cef8881cdc69808e$export$21b07c8f274aebd5 = $cef8881cdc69808e$export$b9744d3e7456d806;
16622
+
16623
+ var HoverPrimitive = /*#__PURE__*/Object.freeze({
16624
+ __proto__: null,
16625
+ Arrow: $cef8881cdc69808e$export$21b07c8f274aebd5,
16626
+ Content: $cef8881cdc69808e$export$7c6e2c02157bb7d2,
16627
+ HoverCard: $cef8881cdc69808e$export$57a077cc9fbe653e,
16628
+ HoverCardArrow: $cef8881cdc69808e$export$b9744d3e7456d806,
16629
+ HoverCardContent: $cef8881cdc69808e$export$aa4724a5938c586,
16630
+ HoverCardPortal: $cef8881cdc69808e$export$b384c6e0a789f88b,
16631
+ HoverCardTrigger: $cef8881cdc69808e$export$ef9f7fd8e4ba882f,
16632
+ Portal: $cef8881cdc69808e$export$602eac185826482c,
16633
+ Root: $cef8881cdc69808e$export$be92b6f5f03c0fe9,
16634
+ Trigger: $cef8881cdc69808e$export$41fb9f06171c75f4,
16635
+ createHoverCardScope: $cef8881cdc69808e$export$47b6998a836b7260
16636
+ });
16637
+
16638
+ const bgStyles$1 = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
16639
+ const borderStyles$1 = [
16640
+ 'tw-border-solid',
16641
+ 'tw-border',
16642
+ 'tw-rounded-sm',
16643
+ 'tw-border-sq-disabled-gray',
16644
+ 'dark:tw-border-gray-500',
16645
+ ].join(' ');
16646
+ const disabledClasses$1 = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
16647
+ const ButtonWithPopover = ({ children, trigger, id, hasArrow, extraTriggerClassNames, extraPopoverClassNames, containerTestId, disabled = false, align = 'end', alignOffset = -35, placement = 'bottom', placementOffset = 5, onOpenChange, isOpen, isCloseOnContentClick = false, setFocusOnTriggerOnClose = true, isHoverEnabled = false, ...tooltipProps }) => {
16648
+ const tooltipData = getQTipData(tooltipProps);
16649
+ const Primitive = isHoverEnabled ? HoverPrimitive : PopoverPrimitive;
16650
+ return (React.createElement(Primitive.Root, { open: isOpen, defaultOpen: false, onOpenChange: onOpenChange, openDelay: isHoverEnabled ? 300 : undefined, closeDelay: isHoverEnabled ? 200 : undefined },
16651
+ React.createElement(Primitive.Trigger, { id: id, className: `tw-border-none`, disabled: disabled },
16652
+ React.createElement("div", { ...tooltipData, className: `tw-bg-transparent tw-flex tw-flex-col tw-items-center tw-justify-center ${disabled ? disabledClasses$1 : ''} ${extraTriggerClassNames || ''}` }, trigger)),
16653
+ React.createElement(Primitive.Content, { sideOffset: placementOffset, align: align, side: placement, alignOffset: alignOffset, onCloseAutoFocus: (e) => !setFocusOnTriggerOnClose && e.preventDefault(), asChild: true, onClick: () => isCloseOnContentClick && onOpenChange && onOpenChange(false), className: "focus-visible:tw-outline-none tw-outline-none" },
16654
+ React.createElement("div", { "data-testid": containerTestId, className: `${bgStyles$1} ${borderStyles$1} tw-relative tw-z-[1000] tw-min-w-6 focus-visible:tw-outline-none tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out
16655
+ data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade tw-text-sq-text-color
16656
+ ${extraPopoverClassNames || ''}` },
16657
+ hasArrow && (React.createElement(Primitive.Arrow, { asChild: true },
16658
+ React.createElement("div", { className: " tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-mt-[-7px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500" }))),
16659
+ children))));
16660
+ };
16661
+
16662
+ const $6cc32821e9371a1c$var$SELECTION_KEYS = [
16663
+ 'Enter',
16664
+ ' '
16665
+ ];
16666
+ const $6cc32821e9371a1c$var$FIRST_KEYS = [
16667
+ 'ArrowDown',
16668
+ 'PageUp',
16669
+ 'Home'
16670
+ ];
16671
+ const $6cc32821e9371a1c$var$LAST_KEYS = [
16672
+ 'ArrowUp',
16673
+ 'PageDown',
16674
+ 'End'
16675
+ ];
16676
+ const $6cc32821e9371a1c$var$FIRST_LAST_KEYS = [
16677
+ ...$6cc32821e9371a1c$var$FIRST_KEYS,
16678
+ ...$6cc32821e9371a1c$var$LAST_KEYS
16679
+ ];
16680
+ /* -------------------------------------------------------------------------------------------------
16681
+ * Menu
16682
+ * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$MENU_NAME = 'Menu';
16683
+ const [$6cc32821e9371a1c$var$Collection, $6cc32821e9371a1c$var$useCollection, $6cc32821e9371a1c$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($6cc32821e9371a1c$var$MENU_NAME);
16684
+ const [$6cc32821e9371a1c$var$createMenuContext, $6cc32821e9371a1c$export$4027731b685e72eb] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($6cc32821e9371a1c$var$MENU_NAME, [
16685
+ $6cc32821e9371a1c$var$createCollectionScope,
16686
+ $cf1ac5d9fe0e8206$export$722aac194ae923$1,
16687
+ $d7bdfb9eb0fdf311$export$c7109489551a4f4
16688
+ ]);
16689
+ const $6cc32821e9371a1c$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923$1();
16690
+ const $6cc32821e9371a1c$var$useRovingFocusGroupScope = $d7bdfb9eb0fdf311$export$c7109489551a4f4();
16691
+ const [$6cc32821e9371a1c$var$MenuProvider, $6cc32821e9371a1c$var$useMenuContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$MENU_NAME);
16692
+ const [$6cc32821e9371a1c$var$MenuRootProvider, $6cc32821e9371a1c$var$useMenuRootContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$MENU_NAME);
16693
+ const $6cc32821e9371a1c$export$d9b273488cd8ce6f = (props)=>{
16694
+ const { __scopeMenu: __scopeMenu , open: open = false , children: children , dir: dir , onOpenChange: onOpenChange , modal: modal = true } = props;
16695
+ const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);
16696
+ const [content, setContent] = useState(null);
16697
+ const isUsingKeyboardRef = useRef(false);
16698
+ const handleOpenChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onOpenChange);
16699
+ const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
16700
+ useEffect(()=>{
16701
+ // Capture phase ensures we set the boolean before any side effects execute
16702
+ // in response to the key or pointer event as they might depend on this value.
16703
+ const handleKeyDown = ()=>{
16704
+ isUsingKeyboardRef.current = true;
16705
+ document.addEventListener('pointerdown', handlePointer, {
16706
+ capture: true,
16707
+ once: true
16708
+ });
16709
+ document.addEventListener('pointermove', handlePointer, {
16710
+ capture: true,
16711
+ once: true
16712
+ });
16713
+ };
16714
+ const handlePointer = ()=>isUsingKeyboardRef.current = false
16715
+ ;
16716
+ document.addEventListener('keydown', handleKeyDown, {
16717
+ capture: true
16718
+ });
16719
+ return ()=>{
16720
+ document.removeEventListener('keydown', handleKeyDown, {
16721
+ capture: true
16722
+ });
16723
+ document.removeEventListener('pointerdown', handlePointer, {
15088
16724
  capture: true
15089
16725
  });
15090
16726
  document.removeEventListener('pointermove', handlePointer, {
@@ -15092,7 +16728,7 @@ const $6cc32821e9371a1c$export$d9b273488cd8ce6f = (props)=>{
15092
16728
  });
15093
16729
  };
15094
16730
  }, []);
15095
- return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9, popperScope, /*#__PURE__*/ createElement($6cc32821e9371a1c$var$MenuProvider, {
16731
+ return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9$1, popperScope, /*#__PURE__*/ createElement($6cc32821e9371a1c$var$MenuProvider, {
15096
16732
  scope: __scopeMenu,
15097
16733
  open: open,
15098
16734
  onOpenChange: handleOpenChange,
@@ -15112,7 +16748,7 @@ const $6cc32821e9371a1c$export$d9b273488cd8ce6f = (props)=>{
15112
16748
  const $6cc32821e9371a1c$export$9fa5ebd18bee4d43 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15113
16749
  const { __scopeMenu: __scopeMenu , ...anchorProps } = props;
15114
16750
  const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);
15115
- return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends({}, popperScope, anchorProps, {
16751
+ return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7$1, _extends({}, popperScope, anchorProps, {
15116
16752
  ref: forwardedRef
15117
16753
  }));
15118
16754
  });
@@ -15133,7 +16769,7 @@ const $6cc32821e9371a1c$export$479f0f2f71193efe = /*#__PURE__*/ forwardRef((prop
15133
16769
  const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);
15134
16770
  return /*#__PURE__*/ createElement($6cc32821e9371a1c$var$Collection.Provider, {
15135
16771
  scope: props.__scopeMenu
15136
- }, /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
16772
+ }, /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
15137
16773
  present: forceMount || context.open
15138
16774
  }, /*#__PURE__*/ createElement($6cc32821e9371a1c$var$Collection.Slot, {
15139
16775
  scope: props.__scopeMenu
@@ -15146,7 +16782,7 @@ const $6cc32821e9371a1c$export$479f0f2f71193efe = /*#__PURE__*/ forwardRef((prop
15146
16782
  /* ---------------------------------------------------------------------------------------------- */ const $6cc32821e9371a1c$var$MenuRootContentModal = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15147
16783
  const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);
15148
16784
  const ref = useRef(null);
15149
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref); // Hide everything from ARIA except the `MenuContent`
16785
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref); // Hide everything from ARIA except the `MenuContent`
15150
16786
  useEffect(()=>{
15151
16787
  const content = ref.current;
15152
16788
  if (content) return hideOthers(content);
@@ -15159,7 +16795,7 @@ const $6cc32821e9371a1c$export$479f0f2f71193efe = /*#__PURE__*/ forwardRef((prop
15159
16795
  disableOutsidePointerEvents: context.open,
15160
16796
  disableOutsideScroll: true // When focus is trapped, a `focusout` event may still happen.
15161
16797
  ,
15162
- onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusOutside, (event)=>event.preventDefault()
16798
+ onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onFocusOutside, (event)=>event.preventDefault()
15163
16799
  , {
15164
16800
  checkForDefaultPrevented: false
15165
16801
  }),
@@ -15185,7 +16821,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ forwardRef((
15185
16821
  const getItems = $6cc32821e9371a1c$var$useCollection(__scopeMenu);
15186
16822
  const [currentItemId, setCurrentItemId] = useState(null);
15187
16823
  const contentRef = useRef(null);
15188
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentRef, context.onContentChange);
16824
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, contentRef, context.onContentChange);
15189
16825
  const timerRef = useRef(0);
15190
16826
  const searchRef = useRef('');
15191
16827
  const pointerGraceTimerRef = useRef(0);
@@ -15194,7 +16830,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ forwardRef((
15194
16830
  const lastPointerXRef = useRef(0);
15195
16831
  const ScrollLockWrapper = disableOutsideScroll ? $epM9y$RemoveScroll : Fragment;
15196
16832
  const scrollLockWrapperProps = disableOutsideScroll ? {
15197
- as: $5e63c961fc1ce211$export$8c6ed5c666ac1360,
16833
+ as: $5e63c961fc1ce211$export$8c6ed5c666ac1360$1,
15198
16834
  allowPinchZoom: true
15199
16835
  } : undefined;
15200
16836
  const handleTypeaheadSearch = (key)=>{
@@ -15261,7 +16897,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ forwardRef((
15261
16897
  }, /*#__PURE__*/ createElement(ScrollLockWrapper, scrollLockWrapperProps, /*#__PURE__*/ createElement($d3863c46a17e8a28$export$20e40289641fbbb6, {
15262
16898
  asChild: true,
15263
16899
  trapped: trapFocus,
15264
- onMountAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(onOpenAutoFocus, (event)=>{
16900
+ onMountAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(onOpenAutoFocus, (event)=>{
15265
16901
  var _contentRef$current2;
15266
16902
  // when opening, explicitly focus the content area only and leave
15267
16903
  // `onEntryFocus` in control of focusing first item
@@ -15269,7 +16905,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ forwardRef((
15269
16905
  (_contentRef$current2 = contentRef.current) === null || _contentRef$current2 === void 0 || _contentRef$current2.focus();
15270
16906
  }),
15271
16907
  onUnmountAutoFocus: onCloseAutoFocus
15272
- }, /*#__PURE__*/ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, {
16908
+ }, /*#__PURE__*/ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22$1, {
15273
16909
  asChild: true,
15274
16910
  disableOutsidePointerEvents: disableOutsidePointerEvents,
15275
16911
  onEscapeKeyDown: onEscapeKeyDown,
@@ -15285,11 +16921,11 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ forwardRef((
15285
16921
  loop: loop,
15286
16922
  currentTabStopId: currentItemId,
15287
16923
  onCurrentTabStopIdChange: setCurrentItemId,
15288
- onEntryFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(onEntryFocus, (event)=>{
16924
+ onEntryFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(onEntryFocus, (event)=>{
15289
16925
  // only focus first item when using keyboard
15290
16926
  if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();
15291
16927
  })
15292
- }), /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends({
16928
+ }), /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2$1, _extends({
15293
16929
  role: "menu",
15294
16930
  "aria-orientation": "vertical",
15295
16931
  "data-state": $6cc32821e9371a1c$var$getOpenState(context.open),
@@ -15301,7 +16937,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ forwardRef((
15301
16937
  outline: 'none',
15302
16938
  ...contentProps.style
15303
16939
  },
15304
- onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(contentProps.onKeyDown, (event)=>{
16940
+ onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(contentProps.onKeyDown, (event)=>{
15305
16941
  // submenu key events bubble through portals. We only care about keys in this menu.
15306
16942
  const target = event.target;
15307
16943
  const isKeyDownInside = target.closest('[data-radix-menu-content]') === event.currentTarget;
@@ -15323,14 +16959,14 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ forwardRef((
15323
16959
  if ($6cc32821e9371a1c$var$LAST_KEYS.includes(event.key)) candidateNodes.reverse();
15324
16960
  $6cc32821e9371a1c$var$focusFirst(candidateNodes);
15325
16961
  }),
15326
- onBlur: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlur, (event)=>{
16962
+ onBlur: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onBlur, (event)=>{
15327
16963
  // clear search buffer when leaving the menu
15328
16964
  if (!event.currentTarget.contains(event.target)) {
15329
16965
  window.clearTimeout(timerRef.current);
15330
16966
  searchRef.current = '';
15331
16967
  }
15332
16968
  }),
15333
- onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $6cc32821e9371a1c$var$whenMouse((event)=>{
16969
+ onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onPointerMove, $6cc32821e9371a1c$var$whenMouse((event)=>{
15334
16970
  const target = event.target;
15335
16971
  const pointerXHasChanged = lastPointerXRef.current !== event.clientX; // We don't use `event.movementX` for this check because Safari will
15336
16972
  // always return `0` on a pointer event.
@@ -15344,7 +16980,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ forwardRef((
15344
16980
  });
15345
16981
  const $6cc32821e9371a1c$export$dd37bec0e8a99143 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15346
16982
  const { __scopeMenu: __scopeMenu , ...labelProps } = props;
15347
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, labelProps, {
16983
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({}, labelProps, {
15348
16984
  ref: forwardedRef
15349
16985
  }));
15350
16986
  });
@@ -15357,7 +16993,7 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ forwardRef((prop
15357
16993
  const ref = useRef(null);
15358
16994
  const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$ITEM_NAME, props.__scopeMenu);
15359
16995
  const contentContext = $6cc32821e9371a1c$var$useMenuContentContext($6cc32821e9371a1c$var$ITEM_NAME, props.__scopeMenu);
15360
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
16996
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
15361
16997
  const isPointerDownRef = useRef(false);
15362
16998
  const handleSelect = ()=>{
15363
16999
  const menuItem = ref.current;
@@ -15370,7 +17006,7 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ forwardRef((prop
15370
17006
  , {
15371
17007
  once: true
15372
17008
  });
15373
- $8927f6f2acc4f386$export$6d1a0317bde7de7f(menuItem, itemSelectEvent);
17009
+ $8927f6f2acc4f386$export$6d1a0317bde7de7f$1(menuItem, itemSelectEvent);
15374
17010
  if (itemSelectEvent.defaultPrevented) isPointerDownRef.current = false;
15375
17011
  else rootContext.onClose();
15376
17012
  }
@@ -15378,20 +17014,20 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ forwardRef((prop
15378
17014
  return /*#__PURE__*/ createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends({}, itemProps, {
15379
17015
  ref: composedRefs,
15380
17016
  disabled: disabled,
15381
- onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, handleSelect),
17017
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, handleSelect),
15382
17018
  onPointerDown: (event)=>{
15383
17019
  var _props$onPointerDown;
15384
17020
  (_props$onPointerDown = props.onPointerDown) === null || _props$onPointerDown === void 0 || _props$onPointerDown.call(props, event);
15385
17021
  isPointerDownRef.current = true;
15386
17022
  },
15387
- onPointerUp: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp, (event)=>{
17023
+ onPointerUp: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onPointerUp, (event)=>{
15388
17024
  var _event$currentTarget;
15389
17025
  // Pointer down can move to a different menu item which should activate it on pointer up.
15390
17026
  // We dispatch a click for selection to allow composition with click based triggers and to
15391
17027
  // prevent Firefox from getting stuck in text selection mode when the menu closes.
15392
17028
  if (!isPointerDownRef.current) (_event$currentTarget = event.currentTarget) === null || _event$currentTarget === void 0 || _event$currentTarget.click();
15393
17029
  }),
15394
- onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event)=>{
17030
+ onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
15395
17031
  const isTypingAhead = contentContext.searchRef.current !== '';
15396
17032
  if (disabled || isTypingAhead && event.key === ' ') return;
15397
17033
  if ($6cc32821e9371a1c$var$SELECTION_KEYS.includes(event.key)) {
@@ -15411,7 +17047,7 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ forwardRef((prop
15411
17047
  const contentContext = $6cc32821e9371a1c$var$useMenuContentContext($6cc32821e9371a1c$var$ITEM_NAME, __scopeMenu);
15412
17048
  const rovingFocusGroupScope = $6cc32821e9371a1c$var$useRovingFocusGroupScope(__scopeMenu);
15413
17049
  const ref = useRef(null);
15414
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
17050
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
15415
17051
  const [isFocused, setIsFocused] = useState(false); // get the item's `.textContent` as default strategy for typeahead `textValue`
15416
17052
  const [textContent, setTextContent] = useState('');
15417
17053
  useEffect(()=>{
@@ -15431,14 +17067,14 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ forwardRef((prop
15431
17067
  asChild: true
15432
17068
  }, rovingFocusGroupScope, {
15433
17069
  focusable: !disabled
15434
- }), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
17070
+ }), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
15435
17071
  role: "menuitem",
15436
17072
  "data-highlighted": isFocused ? '' : undefined,
15437
17073
  "aria-disabled": disabled || undefined,
15438
17074
  "data-disabled": disabled ? '' : undefined
15439
17075
  }, itemProps, {
15440
17076
  ref: composedRefs,
15441
- onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $6cc32821e9371a1c$var$whenMouse((event)=>{
17077
+ onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onPointerMove, $6cc32821e9371a1c$var$whenMouse((event)=>{
15442
17078
  if (disabled) contentContext.onItemLeave(event);
15443
17079
  else {
15444
17080
  contentContext.onItemEnter(event);
@@ -15448,11 +17084,11 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ forwardRef((prop
15448
17084
  }
15449
17085
  }
15450
17086
  })),
15451
- onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, $6cc32821e9371a1c$var$whenMouse((event)=>contentContext.onItemLeave(event)
17087
+ onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onPointerLeave, $6cc32821e9371a1c$var$whenMouse((event)=>contentContext.onItemLeave(event)
15452
17088
  )),
15453
- onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocus, ()=>setIsFocused(true)
17089
+ onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onFocus, ()=>setIsFocused(true)
15454
17090
  ),
15455
- onBlur: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlur, ()=>setIsFocused(false)
17091
+ onBlur: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onBlur, ()=>setIsFocused(false)
15456
17092
  )
15457
17093
  }))));
15458
17094
  });
@@ -15471,7 +17107,7 @@ $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$ITEM_INDICATOR_NAM
15471
17107
  });
15472
17108
  const $6cc32821e9371a1c$export$1cec7dcdd713e220 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15473
17109
  const { __scopeMenu: __scopeMenu , ...separatorProps } = props;
15474
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
17110
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
15475
17111
  role: "separator",
15476
17112
  "aria-orientation": "horizontal"
15477
17113
  }, separatorProps, {
@@ -15481,7 +17117,7 @@ const $6cc32821e9371a1c$export$1cec7dcdd713e220 = /*#__PURE__*/ forwardRef((prop
15481
17117
  const $6cc32821e9371a1c$export$bcdda4773debf5fa = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15482
17118
  const { __scopeMenu: __scopeMenu , ...arrowProps } = props;
15483
17119
  const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);
15484
- return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends({}, popperScope, arrowProps, {
17120
+ return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5$1, _extends({}, popperScope, arrowProps, {
15485
17121
  ref: forwardedRef
15486
17122
  }));
15487
17123
  });
@@ -15575,7 +17211,7 @@ const $6cc32821e9371a1c$export$21b07c8f274aebd5 = $6cc32821e9371a1c$export$bcdda
15575
17211
  /* -------------------------------------------------------------------------------------------------
15576
17212
  * DropdownMenu
15577
17213
  * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$DROPDOWN_MENU_NAME = 'DropdownMenu';
15578
- const [$d08ef79370b62062$var$createDropdownMenuContext, $d08ef79370b62062$export$c0623cd925aeb687] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($d08ef79370b62062$var$DROPDOWN_MENU_NAME, [
17214
+ const [$d08ef79370b62062$var$createDropdownMenuContext, $d08ef79370b62062$export$c0623cd925aeb687] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($d08ef79370b62062$var$DROPDOWN_MENU_NAME, [
15579
17215
  $6cc32821e9371a1c$export$4027731b685e72eb
15580
17216
  ]);
15581
17217
  const $d08ef79370b62062$var$useMenuScope = $6cc32821e9371a1c$export$4027731b685e72eb();
@@ -15584,7 +17220,7 @@ const $d08ef79370b62062$export$e44a253a59704894 = (props)=>{
15584
17220
  const { __scopeDropdownMenu: __scopeDropdownMenu , children: children , dir: dir , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = true } = props;
15585
17221
  const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
15586
17222
  const triggerRef = useRef(null);
15587
- const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
17223
+ const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
15588
17224
  prop: openProp,
15589
17225
  defaultProp: defaultOpen,
15590
17226
  onChange: onOpenChange
@@ -15618,7 +17254,7 @@ const $d08ef79370b62062$export$d2469213b3befba9 = /*#__PURE__*/ forwardRef((prop
15618
17254
  const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
15619
17255
  return /*#__PURE__*/ createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends({
15620
17256
  asChild: true
15621
- }, menuScope), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
17257
+ }, menuScope), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
15622
17258
  type: "button",
15623
17259
  id: context.triggerId,
15624
17260
  "aria-haspopup": "menu",
@@ -15628,8 +17264,8 @@ const $d08ef79370b62062$export$d2469213b3befba9 = /*#__PURE__*/ forwardRef((prop
15628
17264
  "data-disabled": disabled ? '' : undefined,
15629
17265
  disabled: disabled
15630
17266
  }, triggerProps, {
15631
- ref: $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, context.triggerRef),
15632
- onPointerDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown, (event)=>{
17267
+ ref: $6ed0406888f73fc4$export$43e446d32b3d21af$1(forwardedRef, context.triggerRef),
17268
+ onPointerDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onPointerDown, (event)=>{
15633
17269
  // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)
15634
17270
  // but not when the control key is pressed (avoiding MacOS right click)
15635
17271
  if (!disabled && event.button === 0 && event.ctrlKey === false) {
@@ -15638,7 +17274,7 @@ const $d08ef79370b62062$export$d2469213b3befba9 = /*#__PURE__*/ forwardRef((prop
15638
17274
  if (!context.open) event.preventDefault();
15639
17275
  }
15640
17276
  }),
15641
- onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event)=>{
17277
+ onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
15642
17278
  if (disabled) return;
15643
17279
  if ([
15644
17280
  'Enter',
@@ -15667,13 +17303,13 @@ const $d08ef79370b62062$export$6e76d93a37c01248 = /*#__PURE__*/ forwardRef((prop
15667
17303
  "aria-labelledby": context.triggerId
15668
17304
  }, menuScope, contentProps, {
15669
17305
  ref: forwardedRef,
15670
- onCloseAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onCloseAutoFocus, (event)=>{
17306
+ onCloseAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onCloseAutoFocus, (event)=>{
15671
17307
  var _context$triggerRef$c;
15672
17308
  if (!hasInteractedOutsideRef.current) (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
15673
17309
  hasInteractedOutsideRef.current = false; // Always prevent auto focus because we either focus manually or want user agent focus
15674
17310
  event.preventDefault();
15675
17311
  }),
15676
- onInteractOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onInteractOutside, (event)=>{
17312
+ onInteractOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onInteractOutside, (event)=>{
15677
17313
  const originalEvent = event.detail.originalEvent;
15678
17314
  const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
15679
17315
  const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
@@ -15730,31 +17366,22 @@ const borderStyles = [
15730
17366
  'tw-border',
15731
17367
  'tw-rounded-sm',
15732
17368
  'tw-border-sq-disabled-gray',
15733
- 'dark:tw-border-gray-700',
17369
+ 'dark:tw-border-gray-500',
15734
17370
  ].join(' ');
15735
17371
  const bgStyles = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
15736
17372
  const disabledClasses = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
15737
- const ButtonWithDropdown = ({ dropdownItems, triggerIcon, tooltipText, id, extraClassNames, containerTestId, tooltipTestId, tooltipDelay, tooltipPlacement, disabled = false, align = 'end', placement = 'bottom', placementOffset = 2, alignOffset = -5, hasArrow = false, onOpenChange, isHtmlTooltip = false, isOpen, setFocusOnTriggerOnClose = true, keepFocusInsideDropdown = true, }) => {
15738
- let tooltipData = undefined;
15739
- if (tooltipText) {
15740
- tooltipData = {
15741
- 'data-qtip-text': tooltipText,
15742
- 'data-qtip-placement': tooltipPlacement,
15743
- 'data-qtip-is-html': isHtmlTooltip,
15744
- 'data-qtip-testid': tooltipTestId,
15745
- 'data-qtip-delay': tooltipDelay ?? DEFAULT_TOOL_TIP_DELAY,
15746
- };
15747
- }
17373
+ const ButtonWithDropdown = ({ dropdownItems, triggerIcon, id, extraClassNames, containerTestId, disabled = false, align = 'end', placement = 'bottom', placementOffset = 5, alignOffset = -35, hasArrow = false, onOpenChange, isOpen, setFocusOnTriggerOnClose = true, keepFocusInsideDropdown = true, ...tooltipProps }) => {
17374
+ const tooltipData = getQTipData(tooltipProps);
15748
17375
  return (React.createElement($d08ef79370b62062$export$be92b6f5f03c0fe9, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown },
15749
17376
  React.createElement($d08ef79370b62062$export$41fb9f06171c75f4, { id: id, className: `tw-border-none focus-visible:tw-outline-none focus:tw-outline-none focus-within:tw-outline-none`, disabled: disabled },
15750
17377
  React.createElement("div", { ...tooltipData, className: `tw-bg-transparent tw-flex tw-flex-col tw-items-center focus-visible:tw-outline-none focus:tw-outline-none focus-within:tw-outline-none ${disabled ? disabledClasses : ''} ${extraClassNames || ''}` }, triggerIcon)),
15751
17378
  React.createElement($d08ef79370b62062$export$7c6e2c02157bb7d2, { sideOffset: placementOffset, side: placement, align: align, alignOffset: alignOffset, asChild: true, onCloseAutoFocus: (e) => !setFocusOnTriggerOnClose && e.preventDefault(), className: "focus-visible:tw-outline-none tw-outline-none" },
15752
17379
  React.createElement("div", { "data-testid": containerTestId, className: bgStyles +
15753
- ' tw-relative tw-z-[1000] tw-min-w-6 focus-visible:tw-outline-none tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out' +
17380
+ ' tw-relative tw-z-[1000] tw-min-w-6 tw-pt-2 focus-visible:tw-outline-none tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out' +
15754
17381
  ' forceFont data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade ' +
15755
17382
  borderStyles },
15756
17383
  hasArrow && (React.createElement($d08ef79370b62062$export$21b07c8f274aebd5, { asChild: true },
15757
- React.createElement("div", { className: " tw-fill-transparent tw-bg-white tw-w-[6px] tw-h-[6px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-700 tw-mt-[-2px]" }))),
17384
+ React.createElement("div", { className: " tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500 tw-mt-[-7px]" }))),
15758
17385
  dropdownItems.map((item, index) => {
15759
17386
  return item.isLabel ? (React.createElement($d08ef79370b62062$export$b04be29aa201d4f5, { key: (item.label || '') + index, className: item.containerExtraClassNames },
15760
17387
  item.icon && (React.createElement(Icon, { icon: item.icon, testId: item.iconTestId, type: "text", color: item.iconColor, extraClassNames: "tw-text-sq-text-color dark:tw-text-sq-white tw-w-[18px]" })),
@@ -15764,7 +17391,7 @@ const ButtonWithDropdown = ({ dropdownItems, triggerIcon, tooltipText, id, extra
15764
17391
  }, className: `tw-cursor-pointer tw-flex dark:tw-text-sq-white hover:tw-bg-sq-colored-hover hover:dark:tw-bg-sq-colored-hover-dark tw-leading-none tw-items-center tw-h-[27px] tw-px-[19px] tw-relative tw-select-none tw-outline-none data-[disabled]:tw-text-sq-disabled-gray data-[disabled]:tw-pointer-events-none ${item.containerExtraClassNames || ''}`, "data-testid": item.testId, disabled: item.disabled },
15765
17392
  item.icon && (React.createElement(Icon, { icon: item.icon, testId: item.iconTestId, type: (item.iconType || 'text'), color: item.iconColor, customId: item.iconCustomId, extraClassNames: `tw-text-sq-text-color dark:tw-text-sq-white tw-w-[18px] ${item.iconExtraClassNames || ''}` })),
15766
17393
  React.createElement("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw-text-[13px] tw-ml-1 ${item.labelClasses}` }, item.label)),
15767
- item.hasDivider && (React.createElement($d08ef79370b62062$export$1ff3c3f08ae963c0, { "data-testid": `dropdown-divider-${index}`, className: "tw-h-[1px] tw-bg-sq-disabled-gray dark:tw-bg-gray-700 tw-my-[8px]" }))));
17394
+ item.hasDivider && (React.createElement($d08ef79370b62062$export$1ff3c3f08ae963c0, { "data-testid": `dropdown-divider-${index}`, className: "tw-h-[1px] tw-bg-sq-disabled-gray dark:tw-bg-gray-500 tw-my-[8px]" }))));
15768
17395
  })))));
15769
17396
  };
15770
17397