@iblai/iblai-js 2.7.10 → 2.7.11

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.
@@ -12,6 +12,7 @@ import Link$2 from 'next/link';
12
12
  import * as ReactDOM from 'react-dom';
13
13
  import ReactDOM__default from 'react-dom';
14
14
  import { z as z$2 } from 'zod';
15
+ import { RemoveScroll } from 'react-remove-scroll';
15
16
  import { skipToken } from '@reduxjs/toolkit/query';
16
17
  import * as DialogPrimitive from '@radix-ui/react-dialog';
17
18
  import { createDialogScope } from '@radix-ui/react-dialog';
@@ -8879,7 +8880,7 @@ const svg$2 = merge$3([aria$3, svg$3, xlink$2, xmlns$2, xml$3], 'svg');
8879
8880
  * @returns {Array<string>}
8880
8881
  * List of tokens.
8881
8882
  */
8882
- function parse$9(value) {
8883
+ function parse$8(value) {
8883
8884
  /** @type {Array<string>} */
8884
8885
  const tokens = [];
8885
8886
  const input = String(value || '');
@@ -9028,7 +9029,7 @@ function parseSelector$1(selector, defaultTagName) {
9028
9029
  * @returns {Array<string>}
9029
9030
  * List of tokens.
9030
9031
  */
9031
- function parse$8(value) {
9032
+ function parse$7(value) {
9032
9033
  const input = String(value || '').trim();
9033
9034
  return input ? input.split(/[ \t\n\r\f]+/g) : []
9034
9035
  }
@@ -9216,11 +9217,11 @@ function addProperty(schema, properties, key, value) {
9216
9217
  // Handle list values.
9217
9218
  else if (typeof value === 'string') {
9218
9219
  if (info.spaceSeparated) {
9219
- result = parse$8(value);
9220
+ result = parse$7(value);
9220
9221
  } else if (info.commaSeparated) {
9221
- result = parse$9(value);
9222
+ result = parse$8(value);
9222
9223
  } else if (info.commaOrSpaceSeparated) {
9223
- result = parse$8(parse$9(value).join(' '));
9224
+ result = parse$7(parse$8(value).join(' '));
9224
9225
  } else {
9225
9226
  result = parsePrimitive$1(info, info.property, value);
9226
9227
  }
@@ -18083,7 +18084,7 @@ new Set([
18083
18084
  * console.log(document.childNodes[1].tagName); //> 'html'
18084
18085
  *```
18085
18086
  */
18086
- function parse$7(html, options) {
18087
+ function parse$6(html, options) {
18087
18088
  return Parser$3.parse(html, options);
18088
18089
  }
18089
18090
  function parseFragment(fragmentContext, html, options) {
@@ -20037,7 +20038,7 @@ function fromHtml(value, options) {
20037
20038
  const settings = options || emptyOptions$7;
20038
20039
  const onerror = settings.onerror;
20039
20040
  const file = value instanceof VFile ? value : new VFile(value);
20040
- const parseFunction = settings.fragment ? parseFragment : parse$7;
20041
+ const parseFunction = settings.fragment ? parseFragment : parse$6;
20041
20042
  const document = String(file);
20042
20043
  const p5Document = parseFunction(document, {
20043
20044
  sourceCodeLocationInfo: true,
@@ -42918,7 +42919,7 @@ function serializeChunks(chunks, expandTabs) {
42918
42919
  * @returns {ParseContext}
42919
42920
  * Parser.
42920
42921
  */
42921
- function parse$6(options) {
42922
+ function parse$5(options) {
42922
42923
  const settings = options || {};
42923
42924
  const constructs = /** @type {FullNormalizedExtension} */
42924
42925
  combineExtensions([defaultConstructs, ...(settings.extensions || [])]);
@@ -43156,7 +43157,7 @@ function fromMarkdown(value, encoding, options) {
43156
43157
  options = encoding;
43157
43158
  encoding = undefined;
43158
43159
  }
43159
- return compiler(options)(postprocess(parse$6(options).document().write(preprocess()(value, encoding, true))));
43160
+ return compiler(options)(postprocess(parse$5(options).document().write(preprocess()(value, encoding, true))));
43160
43161
  }
43161
43162
 
43162
43163
  /**
@@ -87962,7 +87963,7 @@ function composeContextScopes$1(...scopes) {
87962
87963
  }
87963
87964
 
87964
87965
  // packages/react/use-callback-ref/src/use-callback-ref.tsx
87965
- function useCallbackRef$2(callback) {
87966
+ function useCallbackRef$1(callback) {
87966
87967
  const callbackRef = React.useRef(callback);
87967
87968
  React.useEffect(() => {
87968
87969
  callbackRef.current = callback;
@@ -87980,7 +87981,7 @@ function useControllableState$2({
87980
87981
  const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState$2({ defaultProp, onChange });
87981
87982
  const isControlled = prop !== void 0;
87982
87983
  const value = isControlled ? prop : uncontrolledProp;
87983
- const handleChange = useCallbackRef$2(onChange);
87984
+ const handleChange = useCallbackRef$1(onChange);
87984
87985
  const setValue = React.useCallback(
87985
87986
  (nextValue) => {
87986
87987
  if (isControlled) {
@@ -88002,7 +88003,7 @@ function useUncontrolledState$2({
88002
88003
  const uncontrolledState = React.useState(defaultProp);
88003
88004
  const [value] = uncontrolledState;
88004
88005
  const prevValueRef = React.useRef(value);
88005
- const handleChange = useCallbackRef$2(onChange);
88006
+ const handleChange = useCallbackRef$1(onChange);
88006
88007
  React.useEffect(() => {
88007
88008
  if (prevValueRef.current !== value) {
88008
88009
  handleChange(value);
@@ -88212,7 +88213,7 @@ function useDirection$1(localDir) {
88212
88213
 
88213
88214
  // packages/react/use-escape-keydown/src/use-escape-keydown.tsx
88214
88215
  function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
88215
- const onEscapeKeyDown = useCallbackRef$2(onEscapeKeyDownProp);
88216
+ const onEscapeKeyDown = useCallbackRef$1(onEscapeKeyDownProp);
88216
88217
  React.useEffect(() => {
88217
88218
  const handleKeyDown = (event) => {
88218
88219
  if (event.key === "Escape") {
@@ -88349,7 +88350,7 @@ var DismissableLayerBranch$2 = React.forwardRef((props, forwardedRef) => {
88349
88350
  });
88350
88351
  DismissableLayerBranch$2.displayName = BRANCH_NAME$2;
88351
88352
  function usePointerDownOutside$2(onPointerDownOutside, ownerDocument = globalThis?.document) {
88352
- const handlePointerDownOutside = useCallbackRef$2(onPointerDownOutside);
88353
+ const handlePointerDownOutside = useCallbackRef$1(onPointerDownOutside);
88353
88354
  const isPointerInsideReactTreeRef = React.useRef(false);
88354
88355
  const handleClickRef = React.useRef(() => {
88355
88356
  });
@@ -88392,7 +88393,7 @@ function usePointerDownOutside$2(onPointerDownOutside, ownerDocument = globalThi
88392
88393
  };
88393
88394
  }
88394
88395
  function useFocusOutside$2(onFocusOutside, ownerDocument = globalThis?.document) {
88395
- const handleFocusOutside = useCallbackRef$2(onFocusOutside);
88396
+ const handleFocusOutside = useCallbackRef$1(onFocusOutside);
88396
88397
  const isFocusInsideReactTreeRef = React.useRef(false);
88397
88398
  React.useEffect(() => {
88398
88399
  const handleFocus = (event) => {
@@ -88465,8 +88466,8 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
88465
88466
  ...scopeProps
88466
88467
  } = props;
88467
88468
  const [container, setContainer] = React.useState(null);
88468
- const onMountAutoFocus = useCallbackRef$2(onMountAutoFocusProp);
88469
- const onUnmountAutoFocus = useCallbackRef$2(onUnmountAutoFocusProp);
88469
+ const onMountAutoFocus = useCallbackRef$1(onMountAutoFocusProp);
88470
+ const onUnmountAutoFocus = useCallbackRef$1(onUnmountAutoFocusProp);
88470
88471
  const lastFocusedElementRef = React.useRef(null);
88471
88472
  const composedRefs = useComposedRefs$1(forwardedRef, (node) => setContainer(node));
88472
88473
  const focusScope = React.useRef({
@@ -91059,7 +91060,7 @@ var PopperContent$2 = React.forwardRef(
91059
91060
  ]
91060
91061
  });
91061
91062
  const [placedSide, placedAlign] = getSideAndAlignFromPlacement$2(placement);
91062
- const handlePlaced = useCallbackRef$2(onPlaced);
91063
+ const handlePlaced = useCallbackRef$1(onPlaced);
91063
91064
  useLayoutEffect2$1(() => {
91064
91065
  if (isPositioned) {
91065
91066
  handlePlaced?.();
@@ -91397,7 +91398,7 @@ var RovingFocusGroupImpl$1 = React.forwardRef((props, forwardedRef) => {
91397
91398
  onChange: onCurrentTabStopIdChange
91398
91399
  });
91399
91400
  const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);
91400
- const handleEntryFocus = useCallbackRef$2(onEntryFocus);
91401
+ const handleEntryFocus = useCallbackRef$1(onEntryFocus);
91401
91402
  const getItems = useCollection$4(__scopeRovingFocusGroup);
91402
91403
  const isClickFocusRef = React.useRef(false);
91403
91404
  const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);
@@ -91703,764 +91704,6 @@ var hideOthers = function (originalTarget, parentNode, markerName) {
91703
91704
  return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');
91704
91705
  };
91705
91706
 
91706
- /******************************************************************************
91707
- Copyright (c) Microsoft Corporation.
91708
-
91709
- Permission to use, copy, modify, and/or distribute this software for any
91710
- purpose with or without fee is hereby granted.
91711
-
91712
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
91713
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
91714
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
91715
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
91716
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
91717
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
91718
- PERFORMANCE OF THIS SOFTWARE.
91719
- ***************************************************************************** */
91720
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
91721
-
91722
-
91723
- var __assign$1 = function() {
91724
- __assign$1 = Object.assign || function __assign(t) {
91725
- for (var s, i = 1, n = arguments.length; i < n; i++) {
91726
- s = arguments[i];
91727
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
91728
- }
91729
- return t;
91730
- };
91731
- return __assign$1.apply(this, arguments);
91732
- };
91733
-
91734
- function __rest$2(s, e) {
91735
- var t = {};
91736
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
91737
- t[p] = s[p];
91738
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
91739
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
91740
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
91741
- t[p[i]] = s[p[i]];
91742
- }
91743
- return t;
91744
- }
91745
-
91746
- function __spreadArray$2(to, from, pack) {
91747
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
91748
- if (ar || !(i in from)) {
91749
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
91750
- ar[i] = from[i];
91751
- }
91752
- }
91753
- return to.concat(ar || Array.prototype.slice.call(from));
91754
- }
91755
-
91756
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
91757
- var e = new Error(message);
91758
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
91759
- };
91760
-
91761
- var zeroRightClassName = 'right-scroll-bar-position';
91762
- var fullWidthClassName = 'width-before-scroll-bar';
91763
- var noScrollbarsClassName = 'with-scroll-bars-hidden';
91764
- /**
91765
- * Name of a CSS variable containing the amount of "hidden" scrollbar
91766
- * ! might be undefined ! use will fallback!
91767
- */
91768
- var removedBarSizeVariable = '--removed-body-scroll-bar-size';
91769
-
91770
- /**
91771
- * Assigns a value for a given ref, no matter of the ref format
91772
- * @param {RefObject} ref - a callback function or ref object
91773
- * @param value - a new value
91774
- *
91775
- * @see https://github.com/theKashey/use-callback-ref#assignref
91776
- * @example
91777
- * const refObject = useRef();
91778
- * const refFn = (ref) => {....}
91779
- *
91780
- * assignRef(refObject, "refValue");
91781
- * assignRef(refFn, "refValue");
91782
- */
91783
- function assignRef(ref, value) {
91784
- if (typeof ref === 'function') {
91785
- ref(value);
91786
- }
91787
- else if (ref) {
91788
- ref.current = value;
91789
- }
91790
- return ref;
91791
- }
91792
-
91793
- /**
91794
- * creates a MutableRef with ref change callback
91795
- * @param initialValue - initial ref value
91796
- * @param {Function} callback - a callback to run when value changes
91797
- *
91798
- * @example
91799
- * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
91800
- * ref.current = 1;
91801
- * // prints 0 -> 1
91802
- *
91803
- * @see https://reactjs.org/docs/hooks-reference.html#useref
91804
- * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
91805
- * @returns {MutableRefObject}
91806
- */
91807
- function useCallbackRef$1(initialValue, callback) {
91808
- var ref = useState(function () { return ({
91809
- // value
91810
- value: initialValue,
91811
- // last callback
91812
- callback: callback,
91813
- // "memoized" public interface
91814
- facade: {
91815
- get current() {
91816
- return ref.value;
91817
- },
91818
- set current(value) {
91819
- var last = ref.value;
91820
- if (last !== value) {
91821
- ref.value = value;
91822
- ref.callback(value, last);
91823
- }
91824
- },
91825
- },
91826
- }); })[0];
91827
- // update callback
91828
- ref.callback = callback;
91829
- return ref.facade;
91830
- }
91831
-
91832
- var useIsomorphicLayoutEffect$2 = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
91833
- var currentValues = new WeakMap();
91834
- /**
91835
- * Merges two or more refs together providing a single interface to set their value
91836
- * @param {RefObject|Ref} refs
91837
- * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
91838
- *
91839
- * @see {@link mergeRefs} a version without buit-in memoization
91840
- * @see https://github.com/theKashey/use-callback-ref#usemergerefs
91841
- * @example
91842
- * const Component = React.forwardRef((props, ref) => {
91843
- * const ownRef = useRef();
91844
- * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
91845
- * return <div ref={domRef}>...</div>
91846
- * }
91847
- */
91848
- function useMergeRefs(refs, defaultValue) {
91849
- var callbackRef = useCallbackRef$1(null, function (newValue) {
91850
- return refs.forEach(function (ref) { return assignRef(ref, newValue); });
91851
- });
91852
- // handle refs changes - added or removed
91853
- useIsomorphicLayoutEffect$2(function () {
91854
- var oldValue = currentValues.get(callbackRef);
91855
- if (oldValue) {
91856
- var prevRefs_1 = new Set(oldValue);
91857
- var nextRefs_1 = new Set(refs);
91858
- var current_1 = callbackRef.current;
91859
- prevRefs_1.forEach(function (ref) {
91860
- if (!nextRefs_1.has(ref)) {
91861
- assignRef(ref, null);
91862
- }
91863
- });
91864
- nextRefs_1.forEach(function (ref) {
91865
- if (!prevRefs_1.has(ref)) {
91866
- assignRef(ref, current_1);
91867
- }
91868
- });
91869
- }
91870
- currentValues.set(callbackRef, refs);
91871
- }, [refs]);
91872
- return callbackRef;
91873
- }
91874
-
91875
- function ItoI(a) {
91876
- return a;
91877
- }
91878
- function innerCreateMedium(defaults, middleware) {
91879
- if (middleware === void 0) { middleware = ItoI; }
91880
- var buffer = [];
91881
- var assigned = false;
91882
- var medium = {
91883
- read: function () {
91884
- if (assigned) {
91885
- throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
91886
- }
91887
- if (buffer.length) {
91888
- return buffer[buffer.length - 1];
91889
- }
91890
- return defaults;
91891
- },
91892
- useMedium: function (data) {
91893
- var item = middleware(data, assigned);
91894
- buffer.push(item);
91895
- return function () {
91896
- buffer = buffer.filter(function (x) { return x !== item; });
91897
- };
91898
- },
91899
- assignSyncMedium: function (cb) {
91900
- assigned = true;
91901
- while (buffer.length) {
91902
- var cbs = buffer;
91903
- buffer = [];
91904
- cbs.forEach(cb);
91905
- }
91906
- buffer = {
91907
- push: function (x) { return cb(x); },
91908
- filter: function () { return buffer; },
91909
- };
91910
- },
91911
- assignMedium: function (cb) {
91912
- assigned = true;
91913
- var pendingQueue = [];
91914
- if (buffer.length) {
91915
- var cbs = buffer;
91916
- buffer = [];
91917
- cbs.forEach(cb);
91918
- pendingQueue = buffer;
91919
- }
91920
- var executeQueue = function () {
91921
- var cbs = pendingQueue;
91922
- pendingQueue = [];
91923
- cbs.forEach(cb);
91924
- };
91925
- var cycle = function () { return Promise.resolve().then(executeQueue); };
91926
- cycle();
91927
- buffer = {
91928
- push: function (x) {
91929
- pendingQueue.push(x);
91930
- cycle();
91931
- },
91932
- filter: function (filter) {
91933
- pendingQueue = pendingQueue.filter(filter);
91934
- return buffer;
91935
- },
91936
- };
91937
- },
91938
- };
91939
- return medium;
91940
- }
91941
- // eslint-disable-next-line @typescript-eslint/ban-types
91942
- function createSidecarMedium(options) {
91943
- if (options === void 0) { options = {}; }
91944
- var medium = innerCreateMedium(null);
91945
- medium.options = __assign$1({ async: true, ssr: false }, options);
91946
- return medium;
91947
- }
91948
-
91949
- var SideCar$1 = function (_a) {
91950
- var sideCar = _a.sideCar, rest = __rest$2(_a, ["sideCar"]);
91951
- if (!sideCar) {
91952
- throw new Error('Sidecar: please provide `sideCar` property to import the right car');
91953
- }
91954
- var Target = sideCar.read();
91955
- if (!Target) {
91956
- throw new Error('Sidecar medium not found');
91957
- }
91958
- return React.createElement(Target, __assign$1({}, rest));
91959
- };
91960
- SideCar$1.isSideCarExport = true;
91961
- function exportSidecar(medium, exported) {
91962
- medium.useMedium(exported);
91963
- return SideCar$1;
91964
- }
91965
-
91966
- var effectCar = createSidecarMedium();
91967
-
91968
- var nothing = function () {
91969
- return;
91970
- };
91971
- /**
91972
- * Removes scrollbar from the page and contain the scroll within the Lock
91973
- */
91974
- var RemoveScroll = React.forwardRef(function (props, parentRef) {
91975
- var ref = React.useRef(null);
91976
- var _a = React.useState({
91977
- onScrollCapture: nothing,
91978
- onWheelCapture: nothing,
91979
- onTouchMoveCapture: nothing,
91980
- }), callbacks = _a[0], setCallbacks = _a[1];
91981
- var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest$2(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
91982
- var SideCar = sideCar;
91983
- var containerRef = useMergeRefs([ref, parentRef]);
91984
- var containerProps = __assign$1(__assign$1({}, rest), callbacks);
91985
- return (React.createElement(React.Fragment, null,
91986
- enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noRelative: noRelative, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),
91987
- forwardProps ? (React.cloneElement(React.Children.only(children), __assign$1(__assign$1({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign$1({}, containerProps, { className: className, ref: containerRef }), children))));
91988
- });
91989
- RemoveScroll.defaultProps = {
91990
- enabled: true,
91991
- removeScrollBar: true,
91992
- inert: false,
91993
- };
91994
- RemoveScroll.classNames = {
91995
- fullWidth: fullWidthClassName,
91996
- zeroRight: zeroRightClassName,
91997
- };
91998
-
91999
- var getNonce = function () {
92000
- if (typeof __webpack_nonce__ !== 'undefined') {
92001
- return __webpack_nonce__;
92002
- }
92003
- return undefined;
92004
- };
92005
-
92006
- function makeStyleTag() {
92007
- if (!document)
92008
- return null;
92009
- var tag = document.createElement('style');
92010
- tag.type = 'text/css';
92011
- var nonce = getNonce();
92012
- if (nonce) {
92013
- tag.setAttribute('nonce', nonce);
92014
- }
92015
- return tag;
92016
- }
92017
- function injectStyles(tag, css) {
92018
- // @ts-ignore
92019
- if (tag.styleSheet) {
92020
- // @ts-ignore
92021
- tag.styleSheet.cssText = css;
92022
- }
92023
- else {
92024
- tag.appendChild(document.createTextNode(css));
92025
- }
92026
- }
92027
- function insertStyleTag(tag) {
92028
- var head = document.head || document.getElementsByTagName('head')[0];
92029
- head.appendChild(tag);
92030
- }
92031
- var stylesheetSingleton = function () {
92032
- var counter = 0;
92033
- var stylesheet = null;
92034
- return {
92035
- add: function (style) {
92036
- if (counter == 0) {
92037
- if ((stylesheet = makeStyleTag())) {
92038
- injectStyles(stylesheet, style);
92039
- insertStyleTag(stylesheet);
92040
- }
92041
- }
92042
- counter++;
92043
- },
92044
- remove: function () {
92045
- counter--;
92046
- if (!counter && stylesheet) {
92047
- stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
92048
- stylesheet = null;
92049
- }
92050
- },
92051
- };
92052
- };
92053
-
92054
- /**
92055
- * creates a hook to control style singleton
92056
- * @see {@link styleSingleton} for a safer component version
92057
- * @example
92058
- * ```tsx
92059
- * const useStyle = styleHookSingleton();
92060
- * ///
92061
- * useStyle('body { overflow: hidden}');
92062
- */
92063
- var styleHookSingleton = function () {
92064
- var sheet = stylesheetSingleton();
92065
- return function (styles, isDynamic) {
92066
- React.useEffect(function () {
92067
- sheet.add(styles);
92068
- return function () {
92069
- sheet.remove();
92070
- };
92071
- }, [styles && isDynamic]);
92072
- };
92073
- };
92074
-
92075
- /**
92076
- * create a Component to add styles on demand
92077
- * - styles are added when first instance is mounted
92078
- * - styles are removed when the last instance is unmounted
92079
- * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
92080
- */
92081
- var styleSingleton = function () {
92082
- var useStyle = styleHookSingleton();
92083
- var Sheet = function (_a) {
92084
- var styles = _a.styles, dynamic = _a.dynamic;
92085
- useStyle(styles, dynamic);
92086
- return null;
92087
- };
92088
- return Sheet;
92089
- };
92090
-
92091
- var zeroGap = {
92092
- left: 0,
92093
- top: 0,
92094
- right: 0,
92095
- gap: 0,
92096
- };
92097
- var parse$5 = function (x) { return parseInt(x || '', 10) || 0; };
92098
- var getOffset$1 = function (gapMode) {
92099
- var cs = window.getComputedStyle(document.body);
92100
- var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
92101
- var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
92102
- var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
92103
- return [parse$5(left), parse$5(top), parse$5(right)];
92104
- };
92105
- var getGapWidth = function (gapMode) {
92106
- if (gapMode === void 0) { gapMode = 'margin'; }
92107
- if (typeof window === 'undefined') {
92108
- return zeroGap;
92109
- }
92110
- var offsets = getOffset$1(gapMode);
92111
- var documentWidth = document.documentElement.clientWidth;
92112
- var windowWidth = window.innerWidth;
92113
- return {
92114
- left: offsets[0],
92115
- top: offsets[1],
92116
- right: offsets[2],
92117
- gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
92118
- };
92119
- };
92120
-
92121
- var Style$2 = styleSingleton();
92122
- var lockAttribute = 'data-scroll-locked';
92123
- // important tip - once we measure scrollBar width and remove them
92124
- // we could not repeat this operation
92125
- // thus we are using style-singleton - only the first "yet correct" style will be applied.
92126
- var getStyles = function (_a, allowRelative, gapMode, important) {
92127
- var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
92128
- if (gapMode === void 0) { gapMode = 'margin'; }
92129
- return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
92130
- allowRelative && "position: relative ".concat(important, ";"),
92131
- gapMode === 'margin' &&
92132
- "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
92133
- gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
92134
- ]
92135
- .filter(Boolean)
92136
- .join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
92137
- };
92138
- var getCurrentUseCounter = function () {
92139
- var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);
92140
- return isFinite(counter) ? counter : 0;
92141
- };
92142
- var useLockAttribute = function () {
92143
- React.useEffect(function () {
92144
- document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
92145
- return function () {
92146
- var newCounter = getCurrentUseCounter() - 1;
92147
- if (newCounter <= 0) {
92148
- document.body.removeAttribute(lockAttribute);
92149
- }
92150
- else {
92151
- document.body.setAttribute(lockAttribute, newCounter.toString());
92152
- }
92153
- };
92154
- }, []);
92155
- };
92156
- /**
92157
- * Removes page scrollbar and blocks page scroll when mounted
92158
- */
92159
- var RemoveScrollBar = function (_a) {
92160
- var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;
92161
- useLockAttribute();
92162
- /*
92163
- gap will be measured on every component mount
92164
- however it will be used only by the "first" invocation
92165
- due to singleton nature of <Style
92166
- */
92167
- var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
92168
- return React.createElement(Style$2, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
92169
- };
92170
-
92171
- var passiveSupported = false;
92172
- if (typeof window !== 'undefined') {
92173
- try {
92174
- var options = Object.defineProperty({}, 'passive', {
92175
- get: function () {
92176
- passiveSupported = true;
92177
- return true;
92178
- },
92179
- });
92180
- // @ts-ignore
92181
- window.addEventListener('test', options, options);
92182
- // @ts-ignore
92183
- window.removeEventListener('test', options, options);
92184
- }
92185
- catch (err) {
92186
- passiveSupported = false;
92187
- }
92188
- }
92189
- var nonPassive = passiveSupported ? { passive: false } : false;
92190
-
92191
- var alwaysContainsScroll = function (node) {
92192
- // textarea will always _contain_ scroll inside self. It only can be hidden
92193
- return node.tagName === 'TEXTAREA';
92194
- };
92195
- var elementCanBeScrolled = function (node, overflow) {
92196
- if (!(node instanceof Element)) {
92197
- return false;
92198
- }
92199
- var styles = window.getComputedStyle(node);
92200
- return (
92201
- // not-not-scrollable
92202
- styles[overflow] !== 'hidden' &&
92203
- // contains scroll inside self
92204
- !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));
92205
- };
92206
- var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
92207
- var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
92208
- var locationCouldBeScrolled = function (axis, node) {
92209
- var ownerDocument = node.ownerDocument;
92210
- var current = node;
92211
- do {
92212
- // Skip over shadow root
92213
- if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {
92214
- current = current.host;
92215
- }
92216
- var isScrollable = elementCouldBeScrolled(axis, current);
92217
- if (isScrollable) {
92218
- var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];
92219
- if (scrollHeight > clientHeight) {
92220
- return true;
92221
- }
92222
- }
92223
- current = current.parentNode;
92224
- } while (current && current !== ownerDocument.body);
92225
- return false;
92226
- };
92227
- var getVScrollVariables = function (_a) {
92228
- var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
92229
- return [
92230
- scrollTop,
92231
- scrollHeight,
92232
- clientHeight,
92233
- ];
92234
- };
92235
- var getHScrollVariables = function (_a) {
92236
- var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
92237
- return [
92238
- scrollLeft,
92239
- scrollWidth,
92240
- clientWidth,
92241
- ];
92242
- };
92243
- var elementCouldBeScrolled = function (axis, node) {
92244
- return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
92245
- };
92246
- var getScrollVariables = function (axis, node) {
92247
- return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);
92248
- };
92249
- var getDirectionFactor = function (axis, direction) {
92250
- /**
92251
- * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
92252
- * and then increasingly negative as you scroll towards the end of the content.
92253
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
92254
- */
92255
- return axis === 'h' && direction === 'rtl' ? -1 : 1;
92256
- };
92257
- var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {
92258
- var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
92259
- var delta = directionFactor * sourceDelta;
92260
- // find scrollable target
92261
- var target = event.target;
92262
- var targetInLock = endTarget.contains(target);
92263
- var shouldCancelScroll = false;
92264
- var isDeltaPositive = delta > 0;
92265
- var availableScroll = 0;
92266
- var availableScrollTop = 0;
92267
- do {
92268
- if (!target) {
92269
- break;
92270
- }
92271
- var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
92272
- var elementScroll = scroll_1 - capacity - directionFactor * position;
92273
- if (position || elementScroll) {
92274
- if (elementCouldBeScrolled(axis, target)) {
92275
- availableScroll += elementScroll;
92276
- availableScrollTop += position;
92277
- }
92278
- }
92279
- var parent_1 = target.parentNode;
92280
- // we will "bubble" from ShadowDom in case we are, or just to the parent in normal case
92281
- // this is the same logic used in focus-lock
92282
- target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);
92283
- } while (
92284
- // portaled content
92285
- (!targetInLock && target !== document.body) ||
92286
- // self content
92287
- (targetInLock && (endTarget.contains(target) || endTarget === target)));
92288
- // handle epsilon around 0 (non standard zoom levels)
92289
- if (isDeltaPositive &&
92290
- ((Math.abs(availableScroll) < 1) || (false))) {
92291
- shouldCancelScroll = true;
92292
- }
92293
- else if (!isDeltaPositive &&
92294
- ((Math.abs(availableScrollTop) < 1) || (false))) {
92295
- shouldCancelScroll = true;
92296
- }
92297
- return shouldCancelScroll;
92298
- };
92299
-
92300
- var getTouchXY = function (event) {
92301
- return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
92302
- };
92303
- var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
92304
- var extractRef = function (ref) {
92305
- return ref && 'current' in ref ? ref.current : ref;
92306
- };
92307
- var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
92308
- var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
92309
- var idCounter$1 = 0;
92310
- var lockStack = [];
92311
- function RemoveScrollSideCar(props) {
92312
- var shouldPreventQueue = React.useRef([]);
92313
- var touchStartRef = React.useRef([0, 0]);
92314
- var activeAxis = React.useRef();
92315
- var id = React.useState(idCounter$1++)[0];
92316
- var Style = React.useState(styleSingleton)[0];
92317
- var lastProps = React.useRef(props);
92318
- React.useEffect(function () {
92319
- lastProps.current = props;
92320
- }, [props]);
92321
- React.useEffect(function () {
92322
- if (props.inert) {
92323
- document.body.classList.add("block-interactivity-".concat(id));
92324
- var allow_1 = __spreadArray$2([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
92325
- allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
92326
- return function () {
92327
- document.body.classList.remove("block-interactivity-".concat(id));
92328
- allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
92329
- };
92330
- }
92331
- return;
92332
- }, [props.inert, props.lockRef.current, props.shards]);
92333
- var shouldCancelEvent = React.useCallback(function (event, parent) {
92334
- if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {
92335
- return !lastProps.current.allowPinchZoom;
92336
- }
92337
- var touch = getTouchXY(event);
92338
- var touchStart = touchStartRef.current;
92339
- var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
92340
- var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
92341
- var currentAxis;
92342
- var target = event.target;
92343
- var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
92344
- // allow horizontal touch move on Range inputs. They will not cause any scroll
92345
- if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
92346
- return false;
92347
- }
92348
- // allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target
92349
- var selection = window.getSelection();
92350
- var anchorNode = selection && selection.anchorNode;
92351
- var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;
92352
- if (isTouchingSelection) {
92353
- return false;
92354
- }
92355
- var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
92356
- if (!canBeScrolledInMainDirection) {
92357
- return true;
92358
- }
92359
- if (canBeScrolledInMainDirection) {
92360
- currentAxis = moveDirection;
92361
- }
92362
- else {
92363
- currentAxis = moveDirection === 'v' ? 'h' : 'v';
92364
- canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
92365
- // other axis might be not scrollable
92366
- }
92367
- if (!canBeScrolledInMainDirection) {
92368
- return false;
92369
- }
92370
- if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
92371
- activeAxis.current = currentAxis;
92372
- }
92373
- if (!currentAxis) {
92374
- return true;
92375
- }
92376
- var cancelingAxis = activeAxis.current || currentAxis;
92377
- return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY);
92378
- }, []);
92379
- var shouldPrevent = React.useCallback(function (_event) {
92380
- var event = _event;
92381
- if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
92382
- // not the last active
92383
- return;
92384
- }
92385
- var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
92386
- var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];
92387
- // self event, and should be canceled
92388
- if (sourceEvent && sourceEvent.should) {
92389
- if (event.cancelable) {
92390
- event.preventDefault();
92391
- }
92392
- return;
92393
- }
92394
- // outside or shard event
92395
- if (!sourceEvent) {
92396
- var shardNodes = (lastProps.current.shards || [])
92397
- .map(extractRef)
92398
- .filter(Boolean)
92399
- .filter(function (node) { return node.contains(event.target); });
92400
- var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
92401
- if (shouldStop) {
92402
- if (event.cancelable) {
92403
- event.preventDefault();
92404
- }
92405
- }
92406
- }
92407
- }, []);
92408
- var shouldCancel = React.useCallback(function (name, delta, target, should) {
92409
- var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };
92410
- shouldPreventQueue.current.push(event);
92411
- setTimeout(function () {
92412
- shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
92413
- }, 1);
92414
- }, []);
92415
- var scrollTouchStart = React.useCallback(function (event) {
92416
- touchStartRef.current = getTouchXY(event);
92417
- activeAxis.current = undefined;
92418
- }, []);
92419
- var scrollWheel = React.useCallback(function (event) {
92420
- shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
92421
- }, []);
92422
- var scrollTouchMove = React.useCallback(function (event) {
92423
- shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
92424
- }, []);
92425
- React.useEffect(function () {
92426
- lockStack.push(Style);
92427
- props.setCallbacks({
92428
- onScrollCapture: scrollWheel,
92429
- onWheelCapture: scrollWheel,
92430
- onTouchMoveCapture: scrollTouchMove,
92431
- });
92432
- document.addEventListener('wheel', shouldPrevent, nonPassive);
92433
- document.addEventListener('touchmove', shouldPrevent, nonPassive);
92434
- document.addEventListener('touchstart', scrollTouchStart, nonPassive);
92435
- return function () {
92436
- lockStack = lockStack.filter(function (inst) { return inst !== Style; });
92437
- document.removeEventListener('wheel', shouldPrevent, nonPassive);
92438
- document.removeEventListener('touchmove', shouldPrevent, nonPassive);
92439
- document.removeEventListener('touchstart', scrollTouchStart, nonPassive);
92440
- };
92441
- }, []);
92442
- var removeScrollBar = props.removeScrollBar, inert = props.inert;
92443
- return (React.createElement(React.Fragment, null,
92444
- inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,
92445
- removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));
92446
- }
92447
- function getOutermostShadowParent(node) {
92448
- var shadowParent = null;
92449
- while (node !== null) {
92450
- if (node instanceof ShadowRoot) {
92451
- shadowParent = node.host;
92452
- node = node.host;
92453
- }
92454
- node = node.parentNode;
92455
- }
92456
- return shadowParent;
92457
- }
92458
-
92459
- var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
92460
-
92461
- var ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign$1({}, props, { ref: ref, sideCar: SideCar }))); });
92462
- ReactRemoveScroll.classNames = RemoveScroll.classNames;
92463
-
92464
91707
  var SELECTION_KEYS$1 = ["Enter", " "];
92465
91708
  var FIRST_KEYS = ["ArrowDown", "PageUp", "Home"];
92466
91709
  var LAST_KEYS = ["ArrowUp", "PageDown", "End"];
@@ -92489,7 +91732,7 @@ var Menu = (props) => {
92489
91732
  const popperScope = usePopperScope$4(__scopeMenu);
92490
91733
  const [content, setContent] = React.useState(null);
92491
91734
  const isUsingKeyboardRef = React.useRef(false);
92492
- const handleOpenChange = useCallbackRef$2(onOpenChange);
91735
+ const handleOpenChange = useCallbackRef$1(onOpenChange);
92493
91736
  const direction = useDirection$1(dir);
92494
91737
  React.useEffect(() => {
92495
91738
  const handleKeyDown = () => {
@@ -92632,7 +91875,7 @@ var MenuContentImpl = React.forwardRef(
92632
91875
  const pointerGraceIntentRef = React.useRef(null);
92633
91876
  const pointerDirRef = React.useRef("right");
92634
91877
  const lastPointerXRef = React.useRef(0);
92635
- const ScrollLockWrapper = disableOutsideScroll ? ReactRemoveScroll : React.Fragment;
91878
+ const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : React.Fragment;
92636
91879
  const scrollLockWrapperProps = disableOutsideScroll ? { as: Slot$3, allowPinchZoom: true } : void 0;
92637
91880
  const handleTypeaheadSearch = (key) => {
92638
91881
  const search = searchRef.current + key;
@@ -92936,7 +92179,7 @@ var [RadioGroupProvider$1, useRadioGroupContext$1] = createMenuContext(
92936
92179
  var MenuRadioGroup = React.forwardRef(
92937
92180
  (props, forwardedRef) => {
92938
92181
  const { value, onValueChange, ...groupProps } = props;
92939
- const handleValueChange = useCallbackRef$2(onValueChange);
92182
+ const handleValueChange = useCallbackRef$1(onValueChange);
92940
92183
  return /* @__PURE__ */ jsx(RadioGroupProvider$1, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsx(MenuGroup, { ...groupProps, ref: forwardedRef }) });
92941
92184
  }
92942
92185
  );
@@ -93758,7 +93001,7 @@ var AvatarImage$1 = React.forwardRef(
93758
93001
  }, ...imageProps } = props;
93759
93002
  const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);
93760
93003
  const imageLoadingStatus = useImageLoadingStatus(src, imageProps);
93761
- const handleLoadingStatusChange = useCallbackRef$2((status) => {
93004
+ const handleLoadingStatusChange = useCallbackRef$1((status) => {
93762
93005
  onLoadingStatusChange(status);
93763
93006
  context.onImageLoadingStatusChange(status);
93764
93007
  });
@@ -94320,7 +93563,7 @@ var SelectContentImpl = React.forwardRef(
94320
93563
  position,
94321
93564
  isPositioned,
94322
93565
  searchRef,
94323
- children: /* @__PURE__ */ jsx(ReactRemoveScroll, { as: Slot$2, allowPinchZoom: true, children: /* @__PURE__ */ jsx(
93566
+ children: /* @__PURE__ */ jsx(RemoveScroll, { as: Slot$2, allowPinchZoom: true, children: /* @__PURE__ */ jsx(
94324
93567
  FocusScope,
94325
93568
  {
94326
93569
  asChild: true,
@@ -94977,7 +94220,7 @@ var BubbleSelect = React.forwardRef(
94977
94220
  );
94978
94221
  BubbleSelect.displayName = "BubbleSelect";
94979
94222
  function useTypeaheadSearch(onSearchChange) {
94980
- const handleSearchChange = useCallbackRef$2(onSearchChange);
94223
+ const handleSearchChange = useCallbackRef$1(onSearchChange);
94981
94224
  const searchRef = React.useRef("");
94982
94225
  const timerRef = React.useRef(0);
94983
94226
  const handleTypeaheadSearch = React.useCallback(
@@ -95373,7 +94616,7 @@ var DismissableLayerBranch$1 = React.forwardRef((props, forwardedRef) => {
95373
94616
  });
95374
94617
  DismissableLayerBranch$1.displayName = BRANCH_NAME$1;
95375
94618
  function usePointerDownOutside$1(onPointerDownOutside, ownerDocument = globalThis?.document) {
95376
- const handlePointerDownOutside = useCallbackRef$2(onPointerDownOutside);
94619
+ const handlePointerDownOutside = useCallbackRef$1(onPointerDownOutside);
95377
94620
  const isPointerInsideReactTreeRef = React.useRef(false);
95378
94621
  const handleClickRef = React.useRef(() => {
95379
94622
  });
@@ -95416,7 +94659,7 @@ function usePointerDownOutside$1(onPointerDownOutside, ownerDocument = globalThi
95416
94659
  };
95417
94660
  }
95418
94661
  function useFocusOutside$1(onFocusOutside, ownerDocument = globalThis?.document) {
95419
- const handleFocusOutside = useCallbackRef$2(onFocusOutside);
94662
+ const handleFocusOutside = useCallbackRef$1(onFocusOutside);
95420
94663
  const isFocusInsideReactTreeRef = React.useRef(false);
95421
94664
  React.useEffect(() => {
95422
94665
  const handleFocus = (event) => {
@@ -95918,8 +95161,8 @@ var Toast$1 = React.forwardRef(
95918
95161
  ...toastProps,
95919
95162
  ref: forwardedRef,
95920
95163
  onClose: () => setOpen(false),
95921
- onPause: useCallbackRef$2(props.onPause),
95922
- onResume: useCallbackRef$2(props.onResume),
95164
+ onPause: useCallbackRef$1(props.onPause),
95165
+ onResume: useCallbackRef$1(props.onResume),
95923
95166
  onSwipeStart: composeEventHandlers$1(props.onSwipeStart, (event) => {
95924
95167
  event.currentTarget.setAttribute("data-swipe", "start");
95925
95168
  }),
@@ -95981,7 +95224,7 @@ var ToastImpl = React.forwardRef(
95981
95224
  const closeTimerRemainingTimeRef = React.useRef(duration);
95982
95225
  const closeTimerRef = React.useRef(0);
95983
95226
  const { onToastAdd, onToastRemove } = context;
95984
- const handleClose = useCallbackRef$2(() => {
95227
+ const handleClose = useCallbackRef$1(() => {
95985
95228
  const isFocusInToast = node?.contains(document.activeElement);
95986
95229
  if (isFocusInToast) context.viewport?.focus();
95987
95230
  onClose();
@@ -96250,7 +95493,7 @@ var isDeltaInDirection = (delta, direction, threshold = 0) => {
96250
95493
  };
96251
95494
  function useNextFrame(callback = () => {
96252
95495
  }) {
96253
- const fn = useCallbackRef$2(callback);
95496
+ const fn = useCallbackRef$1(callback);
96254
95497
  useLayoutEffect2$1(() => {
96255
95498
  let raf1 = 0;
96256
95499
  let raf2 = 0;
@@ -129773,7 +129016,7 @@ var DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {
129773
129016
  });
129774
129017
  DismissableLayerBranch.displayName = BRANCH_NAME;
129775
129018
  function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
129776
- const handlePointerDownOutside = useCallbackRef$2(onPointerDownOutside);
129019
+ const handlePointerDownOutside = useCallbackRef$1(onPointerDownOutside);
129777
129020
  const isPointerInsideReactTreeRef = React.useRef(false);
129778
129021
  const handleClickRef = React.useRef(() => {
129779
129022
  });
@@ -129816,7 +129059,7 @@ function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?
129816
129059
  };
129817
129060
  }
129818
129061
  function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
129819
- const handleFocusOutside = useCallbackRef$2(onFocusOutside);
129062
+ const handleFocusOutside = useCallbackRef$1(onFocusOutside);
129820
129063
  const isFocusInsideReactTreeRef = React.useRef(false);
129821
129064
  React.useEffect(() => {
129822
129065
  const handleFocus = (event) => {
@@ -129969,7 +129212,7 @@ var PopperContent$1 = React.forwardRef(
129969
129212
  ]
129970
129213
  });
129971
129214
  const [placedSide, placedAlign] = getSideAndAlignFromPlacement$1(placement);
129972
- const handlePlaced = useCallbackRef$2(onPlaced);
129215
+ const handlePlaced = useCallbackRef$1(onPlaced);
129973
129216
  useLayoutEffect2$1(() => {
129974
129217
  if (isPositioned) {
129975
129218
  handlePlaced?.();
@@ -183429,7 +182672,7 @@ var PopoverContentModal = React.forwardRef(
183429
182672
  const content = contentRef.current;
183430
182673
  if (content) return hideOthers(content);
183431
182674
  }, []);
183432
- return /* @__PURE__ */ jsx(ReactRemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(
182675
+ return /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(
183433
182676
  PopoverContentImpl,
183434
182677
  {
183435
182678
  ...props,
@@ -268138,7 +267381,7 @@ var PopperContent = React.forwardRef(
268138
267381
  ]
268139
267382
  });
268140
267383
  const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
268141
- const handlePlaced = useCallbackRef$2(onPlaced);
267384
+ const handlePlaced = useCallbackRef$1(onPlaced);
268142
267385
  useLayoutEffect2$1(() => {
268143
267386
  if (isPositioned) {
268144
267387
  handlePlaced?.();