@raystack/apsara 0.11.6 → 0.11.8

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.cjs CHANGED
@@ -1493,29 +1493,6 @@ function _extends() {
1493
1493
  return createScope1;
1494
1494
  }
1495
1495
 
1496
- /**
1497
- * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
1498
- * prop or avoid re-executing effects when passed as a dependency
1499
- */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(callback) {
1500
- const callbackRef = React.useRef(callback);
1501
- React.useEffect(()=>{
1502
- callbackRef.current = callback;
1503
- }); // https://github.com/facebook/react/issues/19240
1504
- return React.useMemo(()=>(...args)=>{
1505
- var _callbackRef$current;
1506
- return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
1507
- }
1508
- , []);
1509
- }
1510
-
1511
- /**
1512
- * On the server, React emits a warning when calling `useLayoutEffect`.
1513
- * This is because neither `useLayoutEffect` nor `useEffect` run on the server.
1514
- * We use this safe version which suppresses the warning by replacing it with a noop on the server.
1515
- *
1516
- * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
1517
- */ const $9f79659886946c16$export$e5c5a5f917a5871c$1 = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
1518
-
1519
1496
  /**
1520
1497
  * Set a given ref to a given value
1521
1498
  * This utility takes care of different types of refs: callback refs and RefObject(s)
@@ -1615,6 +1592,158 @@ function $5e63c961fc1ce211$var$mergeProps$1(slotProps, childProps) {
1615
1592
  };
1616
1593
  }
1617
1594
 
1595
+ // We have resorted to returning slots directly rather than exposing primitives that can then
1596
+ // be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.
1597
+ // This is because we encountered issues with generic types that cannot be statically analysed
1598
+ // due to creating them dynamically via createCollection.
1599
+ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
1600
+ /* -----------------------------------------------------------------------------------------------
1601
+ * CollectionProvider
1602
+ * ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';
1603
+ const [createCollectionContext, createCollectionScope] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1(PROVIDER_NAME);
1604
+ const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {
1605
+ collectionRef: {
1606
+ current: null
1607
+ },
1608
+ itemMap: new Map()
1609
+ });
1610
+ const CollectionProvider = (props)=>{
1611
+ const { scope: scope , children: children } = props;
1612
+ const ref = React.useRef(null);
1613
+ const itemMap = React.useRef(new Map()).current;
1614
+ return /*#__PURE__*/ React.createElement(CollectionProviderImpl, {
1615
+ scope: scope,
1616
+ itemMap: itemMap,
1617
+ collectionRef: ref
1618
+ }, children);
1619
+ };
1620
+ /* -----------------------------------------------------------------------------------------------
1621
+ * CollectionSlot
1622
+ * ---------------------------------------------------------------------------------------------*/ const COLLECTION_SLOT_NAME = name + 'CollectionSlot';
1623
+ const CollectionSlot = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1624
+ const { scope: scope , children: children } = props;
1625
+ const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
1626
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.collectionRef);
1627
+ return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
1628
+ ref: composedRefs
1629
+ }, children);
1630
+ });
1631
+ /* -----------------------------------------------------------------------------------------------
1632
+ * CollectionItem
1633
+ * ---------------------------------------------------------------------------------------------*/ const ITEM_SLOT_NAME = name + 'CollectionItemSlot';
1634
+ const ITEM_DATA_ATTR = 'data-radix-collection-item';
1635
+ const CollectionItemSlot = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1636
+ const { scope: scope , children: children , ...itemData } = props;
1637
+ const ref = React.useRef(null);
1638
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
1639
+ const context = useCollectionContext(ITEM_SLOT_NAME, scope);
1640
+ React.useEffect(()=>{
1641
+ context.itemMap.set(ref, {
1642
+ ref: ref,
1643
+ ...itemData
1644
+ });
1645
+ return ()=>void context.itemMap.delete(ref)
1646
+ ;
1647
+ });
1648
+ return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
1649
+ [ITEM_DATA_ATTR]: '',
1650
+ ref: composedRefs
1651
+ }, children);
1652
+ });
1653
+ /* -----------------------------------------------------------------------------------------------
1654
+ * useCollection
1655
+ * ---------------------------------------------------------------------------------------------*/ function useCollection(scope) {
1656
+ const context = useCollectionContext(name + 'CollectionConsumer', scope);
1657
+ const getItems = React.useCallback(()=>{
1658
+ const collectionNode = context.collectionRef.current;
1659
+ if (!collectionNode) return [];
1660
+ const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
1661
+ const items = Array.from(context.itemMap.values());
1662
+ const orderedItems = items.sort((a, b)=>orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
1663
+ );
1664
+ return orderedItems;
1665
+ }, [
1666
+ context.collectionRef,
1667
+ context.itemMap
1668
+ ]);
1669
+ return getItems;
1670
+ }
1671
+ return [
1672
+ {
1673
+ Provider: CollectionProvider,
1674
+ Slot: CollectionSlot,
1675
+ ItemSlot: CollectionItemSlot
1676
+ },
1677
+ useCollection,
1678
+ createCollectionScope
1679
+ ];
1680
+ }
1681
+
1682
+ function $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
1683
+ return function handleEvent(event) {
1684
+ originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
1685
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
1686
+ };
1687
+ }
1688
+
1689
+ /**
1690
+ * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
1691
+ * prop or avoid re-executing effects when passed as a dependency
1692
+ */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(callback) {
1693
+ const callbackRef = React.useRef(callback);
1694
+ React.useEffect(()=>{
1695
+ callbackRef.current = callback;
1696
+ }); // https://github.com/facebook/react/issues/19240
1697
+ return React.useMemo(()=>(...args)=>{
1698
+ var _callbackRef$current;
1699
+ return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
1700
+ }
1701
+ , []);
1702
+ }
1703
+
1704
+ function $71cd76cc60e0454e$export$6f32135080cb4c3$1({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
1705
+ const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState$1({
1706
+ defaultProp: defaultProp,
1707
+ onChange: onChange
1708
+ });
1709
+ const isControlled = prop !== undefined;
1710
+ const value1 = isControlled ? prop : uncontrolledProp;
1711
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
1712
+ const setValue = React.useCallback((nextValue)=>{
1713
+ if (isControlled) {
1714
+ const setter = nextValue;
1715
+ const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
1716
+ if (value !== prop) handleChange(value);
1717
+ } else setUncontrolledProp(nextValue);
1718
+ }, [
1719
+ isControlled,
1720
+ prop,
1721
+ setUncontrolledProp,
1722
+ handleChange
1723
+ ]);
1724
+ return [
1725
+ value1,
1726
+ setValue
1727
+ ];
1728
+ }
1729
+ function $71cd76cc60e0454e$var$useUncontrolledState$1({ defaultProp: defaultProp , onChange: onChange }) {
1730
+ const uncontrolledState = React.useState(defaultProp);
1731
+ const [value] = uncontrolledState;
1732
+ const prevValueRef = React.useRef(value);
1733
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
1734
+ React.useEffect(()=>{
1735
+ if (prevValueRef.current !== value) {
1736
+ handleChange(value);
1737
+ prevValueRef.current = value;
1738
+ }
1739
+ }, [
1740
+ value,
1741
+ prevValueRef,
1742
+ handleChange
1743
+ ]);
1744
+ return uncontrolledState;
1745
+ }
1746
+
1618
1747
  const $8927f6f2acc4f386$var$NODES$1 = [
1619
1748
  'a',
1620
1749
  'button',
@@ -1696,393 +1825,61 @@ const $8927f6f2acc4f386$var$NODES$1 = [
1696
1825
  );
1697
1826
  }
1698
1827
 
1828
+ /**
1829
+ * On the server, React emits a warning when calling `useLayoutEffect`.
1830
+ * This is because neither `useLayoutEffect` nor `useEffect` run on the server.
1831
+ * We use this safe version which suppresses the warning by replacing it with a noop on the server.
1832
+ *
1833
+ * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
1834
+ */ const $9f79659886946c16$export$e5c5a5f917a5871c$1 = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
1835
+
1836
+ function $fe963b355347cc68$export$3e6543de14f8614f$1(initialState, machine) {
1837
+ return React.useReducer((state, event)=>{
1838
+ const nextState = machine[state][event];
1839
+ return nextState !== null && nextState !== void 0 ? nextState : state;
1840
+ }, initialState);
1841
+ }
1842
+
1843
+
1844
+ const $921a889cee6df7e8$export$99c2b779aa4e8b8b$1 = (props)=>{
1845
+ const { present: present , children: children } = props;
1846
+ const presence = $921a889cee6df7e8$var$usePresence$1(present);
1847
+ const child = typeof children === 'function' ? children({
1848
+ present: presence.isPresent
1849
+ }) : React.Children.only(children);
1850
+ const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(presence.ref, child.ref);
1851
+ const forceMount = typeof children === 'function';
1852
+ return forceMount || presence.isPresent ? /*#__PURE__*/ React.cloneElement(child, {
1853
+ ref: ref
1854
+ }) : null;
1855
+ };
1856
+ $921a889cee6df7e8$export$99c2b779aa4e8b8b$1.displayName = 'Presence';
1699
1857
  /* -------------------------------------------------------------------------------------------------
1700
- * Avatar
1701
- * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$AVATAR_NAME = 'Avatar';
1702
- const [$cddcb0b647441e34$var$createAvatarContext, $cddcb0b647441e34$export$90370d16b488820f] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($cddcb0b647441e34$var$AVATAR_NAME);
1703
- const [$cddcb0b647441e34$var$AvatarProvider, $cddcb0b647441e34$var$useAvatarContext] = $cddcb0b647441e34$var$createAvatarContext($cddcb0b647441e34$var$AVATAR_NAME);
1704
- const $cddcb0b647441e34$export$e2255cf6045e8d47 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1705
- const { __scopeAvatar: __scopeAvatar , ...avatarProps } = props;
1706
- const [imageLoadingStatus, setImageLoadingStatus] = React.useState('idle');
1707
- return /*#__PURE__*/ React.createElement($cddcb0b647441e34$var$AvatarProvider, {
1708
- scope: __scopeAvatar,
1709
- imageLoadingStatus: imageLoadingStatus,
1710
- onImageLoadingStatusChange: setImageLoadingStatus
1711
- }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({}, avatarProps, {
1712
- ref: forwardedRef
1713
- })));
1714
- });
1715
- /* -------------------------------------------------------------------------------------------------
1716
- * AvatarImage
1717
- * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$IMAGE_NAME = 'AvatarImage';
1718
- const $cddcb0b647441e34$export$2cd8ae1985206fe8 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1719
- const { __scopeAvatar: __scopeAvatar , src: src , onLoadingStatusChange: onLoadingStatusChange = ()=>{} , ...imageProps } = props;
1720
- const context = $cddcb0b647441e34$var$useAvatarContext($cddcb0b647441e34$var$IMAGE_NAME, __scopeAvatar);
1721
- const imageLoadingStatus = $cddcb0b647441e34$var$useImageLoadingStatus(src);
1722
- const handleLoadingStatusChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1((status)=>{
1723
- onLoadingStatusChange(status);
1724
- context.onImageLoadingStatusChange(status);
1858
+ * usePresence
1859
+ * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence$1(present) {
1860
+ const [node1, setNode] = React.useState();
1861
+ const stylesRef = React.useRef({});
1862
+ const prevPresentRef = React.useRef(present);
1863
+ const prevAnimationNameRef = React.useRef('none');
1864
+ const initialState = present ? 'mounted' : 'unmounted';
1865
+ const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f$1(initialState, {
1866
+ mounted: {
1867
+ UNMOUNT: 'unmounted',
1868
+ ANIMATION_OUT: 'unmountSuspended'
1869
+ },
1870
+ unmountSuspended: {
1871
+ MOUNT: 'mounted',
1872
+ ANIMATION_END: 'unmounted'
1873
+ },
1874
+ unmounted: {
1875
+ MOUNT: 'mounted'
1876
+ }
1725
1877
  });
1726
- $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
1727
- if (imageLoadingStatus !== 'idle') handleLoadingStatusChange(imageLoadingStatus);
1878
+ React.useEffect(()=>{
1879
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName$1(stylesRef.current);
1880
+ prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
1728
1881
  }, [
1729
- imageLoadingStatus,
1730
- handleLoadingStatusChange
1731
- ]);
1732
- return imageLoadingStatus === 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.img, _extends({}, imageProps, {
1733
- ref: forwardedRef,
1734
- src: src
1735
- })) : null;
1736
- });
1737
- /* -------------------------------------------------------------------------------------------------
1738
- * AvatarFallback
1739
- * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$FALLBACK_NAME = 'AvatarFallback';
1740
- const $cddcb0b647441e34$export$69fffb6a9571fbfe = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1741
- const { __scopeAvatar: __scopeAvatar , delayMs: delayMs , ...fallbackProps } = props;
1742
- const context = $cddcb0b647441e34$var$useAvatarContext($cddcb0b647441e34$var$FALLBACK_NAME, __scopeAvatar);
1743
- const [canRender, setCanRender] = React.useState(delayMs === undefined);
1744
- React.useEffect(()=>{
1745
- if (delayMs !== undefined) {
1746
- const timerId = window.setTimeout(()=>setCanRender(true)
1747
- , delayMs);
1748
- return ()=>window.clearTimeout(timerId)
1749
- ;
1750
- }
1751
- }, [
1752
- delayMs
1753
- ]);
1754
- return canRender && context.imageLoadingStatus !== 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({}, fallbackProps, {
1755
- ref: forwardedRef
1756
- })) : null;
1757
- });
1758
- /* -----------------------------------------------------------------------------------------------*/ function $cddcb0b647441e34$var$useImageLoadingStatus(src) {
1759
- const [loadingStatus, setLoadingStatus] = React.useState('idle');
1760
- React.useEffect(()=>{
1761
- if (!src) {
1762
- setLoadingStatus('error');
1763
- return;
1764
- }
1765
- let isMounted = true;
1766
- const image = new window.Image();
1767
- const updateStatus = (status)=>()=>{
1768
- if (!isMounted) return;
1769
- setLoadingStatus(status);
1770
- }
1771
- ;
1772
- setLoadingStatus('loading');
1773
- image.onload = updateStatus('loaded');
1774
- image.onerror = updateStatus('error');
1775
- image.src = src;
1776
- return ()=>{
1777
- isMounted = false;
1778
- };
1779
- }, [
1780
- src
1781
- ]);
1782
- return loadingStatus;
1783
- }
1784
- const $cddcb0b647441e34$export$be92b6f5f03c0fe9 = $cddcb0b647441e34$export$e2255cf6045e8d47;
1785
- const $cddcb0b647441e34$export$3e431a229df88919 = $cddcb0b647441e34$export$2cd8ae1985206fe8;
1786
- const $cddcb0b647441e34$export$fb8d7f40caaeea67 = $cddcb0b647441e34$export$69fffb6a9571fbfe;
1787
-
1788
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
1789
-
1790
- const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
1791
- const cx = clsx;
1792
- const cva = (base, config)=>{
1793
- return (props)=>{
1794
- var ref;
1795
- if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1796
- const { variants , defaultVariants } = config;
1797
- const getVariantClassNames = Object.keys(variants).map((variant)=>{
1798
- const variantProp = props === null || props === void 0 ? void 0 : props[variant];
1799
- const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
1800
- if (variantProp === null) return null;
1801
- const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
1802
- return variants[variant][variantKey];
1803
- });
1804
- const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
1805
- let [key, value] = param;
1806
- if (value === undefined) {
1807
- return acc;
1808
- }
1809
- acc[key] = value;
1810
- return acc;
1811
- }, {});
1812
- const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
1813
- let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
1814
- return Object.entries(compoundVariantOptions).every((param)=>{
1815
- let [key, value] = param;
1816
- return Array.isArray(value) ? value.includes({
1817
- ...defaultVariants,
1818
- ...propsWithoutUndefined
1819
- }[key]) : ({
1820
- ...defaultVariants,
1821
- ...propsWithoutUndefined
1822
- })[key] === value;
1823
- }) ? [
1824
- ...acc,
1825
- cvClass,
1826
- cvClassName
1827
- ] : acc;
1828
- }, []);
1829
- return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1830
- };
1831
- };
1832
-
1833
- var styles$A = {"box":"box-module_box__ETj3v"};
1834
-
1835
- const box = cva(styles$A.box);
1836
- function Box({ children, className, ...props }) {
1837
- return (jsxRuntimeExports.jsx("div", { className: box({ className }), ...props, children: children }));
1838
- }
1839
-
1840
- var styles$z = {"avatar":"avatar-module_avatar__jlJnk","avatar-square":"avatar-module_avatar-square__vypF7","avatar-circle":"avatar-module_avatar-circle__XP6E3","avatar-disabled":"avatar-module_avatar-disabled__rsBE6","imageWrapper":"avatar-module_imageWrapper__dhsku","image":"avatar-module_image__P6Pav","fallback":"avatar-module_fallback__NzNwU"};
1841
-
1842
- const avatar = cva(styles$z.avatar, {
1843
- variants: {
1844
- shape: {
1845
- square: styles$z["avatar-square"],
1846
- circle: styles$z["avatar-circle"],
1847
- },
1848
- disabled: {
1849
- true: styles$z["avatar-disabled"],
1850
- },
1851
- },
1852
- defaultVariants: {
1853
- shape: "circle",
1854
- },
1855
- });
1856
- const image$1 = cva(styles$z.image);
1857
- const AvatarRoot = React.forwardRef(({ className, alt, src, fallback, shape, style, imageProps, ...props }, ref) => (jsxRuntimeExports.jsx(Box, { className: styles$z.imageWrapper, style: style, children: jsxRuntimeExports.jsxs($cddcb0b647441e34$export$be92b6f5f03c0fe9, { ref: ref, className: avatar({ shape, className }), style: imageProps, ...props, children: [jsxRuntimeExports.jsx(AvatarImage, { alt: alt, src: src }), jsxRuntimeExports.jsx(AvatarFallback, { children: fallback })] }) })));
1858
- AvatarRoot.displayName = $cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;
1859
- const AvatarImage = React.forwardRef(({ className, sizes, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$3e431a229df88919, { ref: ref, className: image$1({ className }), ...props })));
1860
- AvatarImage.displayName = $cddcb0b647441e34$export$3e431a229df88919.displayName;
1861
- const fallback = cva(styles$z.fallback);
1862
- const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$fb8d7f40caaeea67, { ref: ref, className: fallback({ className }), ...props })));
1863
- AvatarFallback.displayName = $cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;
1864
- const Avatar = Object.assign(AvatarRoot, {
1865
- Image: AvatarImage,
1866
- Fallback: AvatarFallback,
1867
- });
1868
-
1869
- var styles$y = {"badge":"badge-module_badge__NAloH"};
1870
-
1871
- const badge = cva(styles$y.badge, {
1872
- variants: {
1873
- color: {},
1874
- },
1875
- });
1876
- const Badge = (props, ref) => {
1877
- const { color, className, children } = props;
1878
- return jsxRuntimeExports.jsx("span", { className: badge({ color, className }), children: children });
1879
- };
1880
- var badge$1 = React.forwardRef(Badge);
1881
-
1882
- var styles$x = {"body":"body-module_body__0sfEI","body-small":"body-module_body-small__CjW1C","body-medium":"body-module_body-medium__XVmQw","body-large":"body-module_body-large__KqAga"};
1883
-
1884
- const body$1 = cva(styles$x.body, {
1885
- variants: {
1886
- size: {
1887
- small: styles$x["body-small"],
1888
- medium: styles$x["body-medium"],
1889
- large: styles$x["body-large"],
1890
- },
1891
- },
1892
- defaultVariants: {
1893
- size: "small",
1894
- },
1895
- });
1896
- function Body({ children, className, size, ...props }) {
1897
- return (jsxRuntimeExports.jsx("span", { className: body$1({ size, className }), ...props, children: children }));
1898
- }
1899
-
1900
- var styles$w = {"button":"button-module_button__9VQ21","button-small":"button-module_button-small__RR1mh","button-medium":"button-module_button-medium__79Bf1","button-large":"button-module_button-large__BQy6w","button-round":"button-module_button-round__Gd30S","button-primary":"button-module_button-primary__R0k9n","button-outline":"button-module_button-outline__MN25q","button-secondary":"button-module_button-secondary__zDkNV","button-ghost":"button-module_button-ghost__KcZUm","button-danger":"button-module_button-danger__dnB-7"};
1901
-
1902
- const button = cva(styles$w.button, {
1903
- variants: {
1904
- variant: {
1905
- primary: styles$w["button-primary"],
1906
- outline: styles$w["button-outline"],
1907
- secondary: styles$w["button-secondary"],
1908
- ghost: styles$w["button-ghost"],
1909
- danger: styles$w["button-danger"],
1910
- },
1911
- size: {
1912
- small: styles$w["button-small"],
1913
- medium: styles$w["button-medium"],
1914
- large: styles$w["button-large"],
1915
- },
1916
- },
1917
- });
1918
- const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
1919
- const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360$1 : "button";
1920
- return (jsxRuntimeExports.jsx(Comp, { className: button({ variant, size, className }), ref: ref, ...props }));
1921
- });
1922
- Button.displayName = "Button";
1923
-
1924
- function $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
1925
- return function handleEvent(event) {
1926
- originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
1927
- if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
1928
- };
1929
- }
1930
-
1931
- function $71cd76cc60e0454e$export$6f32135080cb4c3$1({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
1932
- const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState$1({
1933
- defaultProp: defaultProp,
1934
- onChange: onChange
1935
- });
1936
- const isControlled = prop !== undefined;
1937
- const value1 = isControlled ? prop : uncontrolledProp;
1938
- const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
1939
- const setValue = React.useCallback((nextValue)=>{
1940
- if (isControlled) {
1941
- const setter = nextValue;
1942
- const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
1943
- if (value !== prop) handleChange(value);
1944
- } else setUncontrolledProp(nextValue);
1945
- }, [
1946
- isControlled,
1947
- prop,
1948
- setUncontrolledProp,
1949
- handleChange
1950
- ]);
1951
- return [
1952
- value1,
1953
- setValue
1954
- ];
1955
- }
1956
- function $71cd76cc60e0454e$var$useUncontrolledState$1({ defaultProp: defaultProp , onChange: onChange }) {
1957
- const uncontrolledState = React.useState(defaultProp);
1958
- const [value] = uncontrolledState;
1959
- const prevValueRef = React.useRef(value);
1960
- const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
1961
- React.useEffect(()=>{
1962
- if (prevValueRef.current !== value) {
1963
- handleChange(value);
1964
- prevValueRef.current = value;
1965
- }
1966
- }, [
1967
- value,
1968
- prevValueRef,
1969
- handleChange
1970
- ]);
1971
- return uncontrolledState;
1972
- }
1973
-
1974
- function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
1975
- const ref = React.useRef({
1976
- value: value,
1977
- previous: value
1978
- }); // We compare values before making an update to ensure that
1979
- // a change has been made. This ensures the previous value is
1980
- // persisted correctly between renders.
1981
- return React.useMemo(()=>{
1982
- if (ref.current.value !== value) {
1983
- ref.current.previous = ref.current.value;
1984
- ref.current.value = value;
1985
- }
1986
- return ref.current.previous;
1987
- }, [
1988
- value
1989
- ]);
1990
- }
1991
-
1992
- function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
1993
- const [size, setSize] = React.useState(undefined);
1994
- $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
1995
- if (element) {
1996
- // provide size as early as possible
1997
- setSize({
1998
- width: element.offsetWidth,
1999
- height: element.offsetHeight
2000
- });
2001
- const resizeObserver = new ResizeObserver((entries)=>{
2002
- if (!Array.isArray(entries)) return;
2003
- // Since we only observe the one element, we don't need to loop over the
2004
- // array
2005
- if (!entries.length) return;
2006
- const entry = entries[0];
2007
- let width;
2008
- let height;
2009
- if ('borderBoxSize' in entry) {
2010
- const borderSizeEntry = entry['borderBoxSize']; // iron out differences between browsers
2011
- const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
2012
- width = borderSize['inlineSize'];
2013
- height = borderSize['blockSize'];
2014
- } else {
2015
- // for browsers that don't support `borderBoxSize`
2016
- // we calculate it ourselves to get the correct border box.
2017
- width = element.offsetWidth;
2018
- height = element.offsetHeight;
2019
- }
2020
- setSize({
2021
- width: width,
2022
- height: height
2023
- });
2024
- });
2025
- resizeObserver.observe(element, {
2026
- box: 'border-box'
2027
- });
2028
- return ()=>resizeObserver.unobserve(element)
2029
- ;
2030
- } else // We only want to reset to `undefined` when the element becomes `null`,
2031
- // not if it changes to another element.
2032
- setSize(undefined);
2033
- }, [
2034
- element
2035
- ]);
2036
- return size;
2037
- }
2038
-
2039
- function $fe963b355347cc68$export$3e6543de14f8614f$1(initialState, machine) {
2040
- return React.useReducer((state, event)=>{
2041
- const nextState = machine[state][event];
2042
- return nextState !== null && nextState !== void 0 ? nextState : state;
2043
- }, initialState);
2044
- }
2045
-
2046
-
2047
- const $921a889cee6df7e8$export$99c2b779aa4e8b8b$1 = (props)=>{
2048
- const { present: present , children: children } = props;
2049
- const presence = $921a889cee6df7e8$var$usePresence$1(present);
2050
- const child = typeof children === 'function' ? children({
2051
- present: presence.isPresent
2052
- }) : React.Children.only(children);
2053
- const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(presence.ref, child.ref);
2054
- const forceMount = typeof children === 'function';
2055
- return forceMount || presence.isPresent ? /*#__PURE__*/ React.cloneElement(child, {
2056
- ref: ref
2057
- }) : null;
2058
- };
2059
- $921a889cee6df7e8$export$99c2b779aa4e8b8b$1.displayName = 'Presence';
2060
- /* -------------------------------------------------------------------------------------------------
2061
- * usePresence
2062
- * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence$1(present) {
2063
- const [node1, setNode] = React.useState();
2064
- const stylesRef = React.useRef({});
2065
- const prevPresentRef = React.useRef(present);
2066
- const prevAnimationNameRef = React.useRef('none');
2067
- const initialState = present ? 'mounted' : 'unmounted';
2068
- const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f$1(initialState, {
2069
- mounted: {
2070
- UNMOUNT: 'unmounted',
2071
- ANIMATION_OUT: 'unmountSuspended'
2072
- },
2073
- unmountSuspended: {
2074
- MOUNT: 'mounted',
2075
- ANIMATION_END: 'unmounted'
2076
- },
2077
- unmounted: {
2078
- MOUNT: 'mounted'
2079
- }
2080
- });
2081
- React.useEffect(()=>{
2082
- const currentAnimationName = $921a889cee6df7e8$var$getAnimationName$1(stylesRef.current);
2083
- prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
2084
- }, [
2085
- state
1882
+ state
2086
1883
  ]);
2087
1884
  $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
2088
1885
  const styles = stylesRef.current;
@@ -2160,147 +1957,435 @@ $921a889cee6df7e8$export$99c2b779aa4e8b8b$1.displayName = 'Presence';
2160
1957
  return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none';
2161
1958
  }
2162
1959
 
1960
+ const $1746a345f3d73bb7$var$useReactId$1 = React__namespace['useId'.toString()] || (()=>undefined
1961
+ );
1962
+ let $1746a345f3d73bb7$var$count$1 = 0;
1963
+ function $1746a345f3d73bb7$export$f680877a34711e37$1(deterministicId) {
1964
+ const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId$1()); // React versions older than 18 will have client-side ids only.
1965
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
1966
+ if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count$1++)
1967
+ );
1968
+ }, [
1969
+ deterministicId
1970
+ ]);
1971
+ return deterministicId || (id ? `radix-${id}` : '');
1972
+ }
1973
+
2163
1974
  /* -------------------------------------------------------------------------------------------------
2164
- * Checkbox
2165
- * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$CHECKBOX_NAME = 'Checkbox';
2166
- const [$e698a72e93240346$var$createCheckboxContext, $e698a72e93240346$export$b566c4ff5488ea01] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($e698a72e93240346$var$CHECKBOX_NAME);
2167
- const [$e698a72e93240346$var$CheckboxProvider, $e698a72e93240346$var$useCheckboxContext] = $e698a72e93240346$var$createCheckboxContext($e698a72e93240346$var$CHECKBOX_NAME);
2168
- const $e698a72e93240346$export$48513f6b9f8ce62d = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2169
- const { __scopeCheckbox: __scopeCheckbox , name: name , checked: checkedProp , defaultChecked: defaultChecked , required: required , disabled: disabled , value: value = 'on' , onCheckedChange: onCheckedChange , ...checkboxProps } = props;
2170
- const [button, setButton] = React.useState(null);
2171
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>setButton(node)
2172
- );
2173
- const hasConsumerStoppedPropagationRef = React.useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)
2174
- const isFormControl = button ? Boolean(button.closest('form')) : true;
2175
- const [checked = false, setChecked] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
2176
- prop: checkedProp,
2177
- defaultProp: defaultChecked,
2178
- onChange: onCheckedChange
1975
+ * Collapsible
1976
+ * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$COLLAPSIBLE_NAME = 'Collapsible';
1977
+ const [$409067139f391064$var$createCollapsibleContext, $409067139f391064$export$952b32dcbe73087a] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($409067139f391064$var$COLLAPSIBLE_NAME);
1978
+ const [$409067139f391064$var$CollapsibleProvider, $409067139f391064$var$useCollapsibleContext] = $409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME);
1979
+ const $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1980
+ const { __scopeCollapsible: __scopeCollapsible , open: openProp , defaultOpen: defaultOpen , disabled: disabled , onOpenChange: onOpenChange , ...collapsibleProps } = props;
1981
+ const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
1982
+ prop: openProp,
1983
+ defaultProp: defaultOpen,
1984
+ onChange: onOpenChange
2179
1985
  });
2180
- const initialCheckedStateRef = React.useRef(checked);
1986
+ return /*#__PURE__*/ React.createElement($409067139f391064$var$CollapsibleProvider, {
1987
+ scope: __scopeCollapsible,
1988
+ disabled: disabled,
1989
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
1990
+ open: open,
1991
+ onOpenToggle: React.useCallback(()=>setOpen((prevOpen)=>!prevOpen
1992
+ )
1993
+ , [
1994
+ setOpen
1995
+ ])
1996
+ }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
1997
+ "data-state": $409067139f391064$var$getState(open),
1998
+ "data-disabled": disabled ? '' : undefined
1999
+ }, collapsibleProps, {
2000
+ ref: forwardedRef
2001
+ })));
2002
+ });
2003
+ /* -------------------------------------------------------------------------------------------------
2004
+ * CollapsibleTrigger
2005
+ * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$TRIGGER_NAME = 'CollapsibleTrigger';
2006
+ const $409067139f391064$export$c135dce7b15bbbdc = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2007
+ const { __scopeCollapsible: __scopeCollapsible , ...triggerProps } = props;
2008
+ const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);
2009
+ return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
2010
+ type: "button",
2011
+ "aria-controls": context.contentId,
2012
+ "aria-expanded": context.open || false,
2013
+ "data-state": $409067139f391064$var$getState(context.open),
2014
+ "data-disabled": context.disabled ? '' : undefined,
2015
+ disabled: context.disabled
2016
+ }, triggerProps, {
2017
+ ref: forwardedRef,
2018
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, context.onOpenToggle)
2019
+ }));
2020
+ });
2021
+ /* -------------------------------------------------------------------------------------------------
2022
+ * CollapsibleContent
2023
+ * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$CONTENT_NAME = 'CollapsibleContent';
2024
+ const $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2025
+ const { forceMount: forceMount , ...contentProps } = props;
2026
+ const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, props.__scopeCollapsible);
2027
+ return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
2028
+ present: forceMount || context.open
2029
+ }, ({ present: present })=>/*#__PURE__*/ React.createElement($409067139f391064$var$CollapsibleContentImpl, _extends({}, contentProps, {
2030
+ ref: forwardedRef,
2031
+ present: present
2032
+ }))
2033
+ );
2034
+ });
2035
+ /* -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$CollapsibleContentImpl = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2036
+ const { __scopeCollapsible: __scopeCollapsible , present: present , children: children , ...contentProps } = props;
2037
+ const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, __scopeCollapsible);
2038
+ const [isPresent, setIsPresent] = React.useState(present);
2039
+ const ref = React.useRef(null);
2040
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
2041
+ const heightRef = React.useRef(0);
2042
+ const height = heightRef.current;
2043
+ const widthRef = React.useRef(0);
2044
+ const width = widthRef.current; // when opening we want it to immediately open to retrieve dimensions
2045
+ // when closing we delay `present` to retrieve dimensions before closing
2046
+ const isOpen = context.open || isPresent;
2047
+ const isMountAnimationPreventedRef = React.useRef(isOpen);
2048
+ const originalStylesRef = React.useRef();
2181
2049
  React.useEffect(()=>{
2182
- const form = button === null || button === void 0 ? void 0 : button.form;
2183
- if (form) {
2184
- const reset = ()=>setChecked(initialCheckedStateRef.current)
2185
- ;
2186
- form.addEventListener('reset', reset);
2187
- return ()=>form.removeEventListener('reset', reset)
2188
- ;
2050
+ const rAF = requestAnimationFrame(()=>isMountAnimationPreventedRef.current = false
2051
+ );
2052
+ return ()=>cancelAnimationFrame(rAF)
2053
+ ;
2054
+ }, []);
2055
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
2056
+ const node = ref.current;
2057
+ if (node) {
2058
+ originalStylesRef.current = originalStylesRef.current || {
2059
+ transitionDuration: node.style.transitionDuration,
2060
+ animationName: node.style.animationName
2061
+ }; // block any animations/transitions so the element renders at its full dimensions
2062
+ node.style.transitionDuration = '0s';
2063
+ node.style.animationName = 'none'; // get width and height from full dimensions
2064
+ const rect = node.getBoundingClientRect();
2065
+ heightRef.current = rect.height;
2066
+ widthRef.current = rect.width; // kick off any animations/transitions that were originally set up if it isn't the initial mount
2067
+ if (!isMountAnimationPreventedRef.current) {
2068
+ node.style.transitionDuration = originalStylesRef.current.transitionDuration;
2069
+ node.style.animationName = originalStylesRef.current.animationName;
2070
+ }
2071
+ setIsPresent(present);
2189
2072
  }
2190
- }, [
2191
- button,
2192
- setChecked
2073
+ /**
2074
+ * depends on `context.open` because it will change to `false`
2075
+ * when a close is triggered but `present` will be `false` on
2076
+ * animation end (so when close finishes). This allows us to
2077
+ * retrieve the dimensions *before* closing.
2078
+ */ }, [
2079
+ context.open,
2080
+ present
2081
+ ]);
2082
+ return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
2083
+ "data-state": $409067139f391064$var$getState(context.open),
2084
+ "data-disabled": context.disabled ? '' : undefined,
2085
+ id: context.contentId,
2086
+ hidden: !isOpen
2087
+ }, contentProps, {
2088
+ ref: composedRefs,
2089
+ style: {
2090
+ [`--radix-collapsible-content-height`]: height ? `${height}px` : undefined,
2091
+ [`--radix-collapsible-content-width`]: width ? `${width}px` : undefined,
2092
+ ...props.style
2093
+ }
2094
+ }), isOpen && children);
2095
+ });
2096
+ /* -----------------------------------------------------------------------------------------------*/ function $409067139f391064$var$getState(open) {
2097
+ return open ? 'open' : 'closed';
2098
+ }
2099
+ const $409067139f391064$export$be92b6f5f03c0fe9 = $409067139f391064$export$6eb0f7ddcda6131f;
2100
+ const $409067139f391064$export$41fb9f06171c75f4 = $409067139f391064$export$c135dce7b15bbbdc;
2101
+ const $409067139f391064$export$7c6e2c02157bb7d2 = $409067139f391064$export$aadde00976f34151;
2102
+
2103
+ const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ React.createContext(undefined);
2104
+ /* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {
2105
+ const globalDir = React.useContext($f631663db3294ace$var$DirectionContext);
2106
+ return localDir || globalDir || 'ltr';
2107
+ }
2108
+
2109
+ /* -------------------------------------------------------------------------------------------------
2110
+ * Accordion
2111
+ * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$ACCORDION_NAME = 'Accordion';
2112
+ const $1bf158f521e1b1b4$var$ACCORDION_KEYS = [
2113
+ 'Home',
2114
+ 'End',
2115
+ 'ArrowDown',
2116
+ 'ArrowUp',
2117
+ 'ArrowLeft',
2118
+ 'ArrowRight'
2119
+ ];
2120
+ const [$1bf158f521e1b1b4$var$Collection, $1bf158f521e1b1b4$var$useCollection, $1bf158f521e1b1b4$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($1bf158f521e1b1b4$var$ACCORDION_NAME);
2121
+ const [$1bf158f521e1b1b4$var$createAccordionContext, $1bf158f521e1b1b4$export$9748edc328a73be1] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($1bf158f521e1b1b4$var$ACCORDION_NAME, [
2122
+ $1bf158f521e1b1b4$var$createCollectionScope,
2123
+ $409067139f391064$export$952b32dcbe73087a
2124
+ ]);
2125
+ const $1bf158f521e1b1b4$var$useCollapsibleScope = $409067139f391064$export$952b32dcbe73087a();
2126
+ const $1bf158f521e1b1b4$export$a766cd26d0d69044 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2127
+ const { type: type , ...accordionProps } = props;
2128
+ const singleProps = accordionProps;
2129
+ const multipleProps = accordionProps;
2130
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$Collection.Provider, {
2131
+ scope: props.__scopeAccordion
2132
+ }, type === 'multiple' ? /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionImplMultiple, _extends({}, multipleProps, {
2133
+ ref: forwardedRef
2134
+ })) : /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionImplSingle, _extends({}, singleProps, {
2135
+ ref: forwardedRef
2136
+ })));
2137
+ });
2138
+ $1bf158f521e1b1b4$export$a766cd26d0d69044.propTypes = {
2139
+ type (props) {
2140
+ const value = props.value || props.defaultValue;
2141
+ if (props.type && ![
2142
+ 'single',
2143
+ 'multiple'
2144
+ ].includes(props.type)) return new Error('Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`.');
2145
+ if (props.type === 'multiple' && typeof value === 'string') return new Error('Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`.');
2146
+ if (props.type === 'single' && Array.isArray(value)) return new Error('Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`.');
2147
+ return null;
2148
+ }
2149
+ };
2150
+ /* -----------------------------------------------------------------------------------------------*/ const [$1bf158f521e1b1b4$var$AccordionValueProvider, $1bf158f521e1b1b4$var$useAccordionValueContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME);
2151
+ const [$1bf158f521e1b1b4$var$AccordionCollapsibleProvider, $1bf158f521e1b1b4$var$useAccordionCollapsibleContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, {
2152
+ collapsible: false
2153
+ });
2154
+ const $1bf158f521e1b1b4$var$AccordionImplSingle = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2155
+ const { value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange = ()=>{} , collapsible: collapsible = false , ...accordionSingleProps } = props;
2156
+ const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
2157
+ prop: valueProp,
2158
+ defaultProp: defaultValue,
2159
+ onChange: onValueChange
2160
+ });
2161
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionValueProvider, {
2162
+ scope: props.__scopeAccordion,
2163
+ value: value ? [
2164
+ value
2165
+ ] : [],
2166
+ onItemOpen: setValue,
2167
+ onItemClose: React.useCallback(()=>collapsible && setValue('')
2168
+ , [
2169
+ collapsible,
2170
+ setValue
2171
+ ])
2172
+ }, /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider, {
2173
+ scope: props.__scopeAccordion,
2174
+ collapsible: collapsible
2175
+ }, /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionImpl, _extends({}, accordionSingleProps, {
2176
+ ref: forwardedRef
2177
+ }))));
2178
+ });
2179
+ /* -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$AccordionImplMultiple = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2180
+ const { value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange = ()=>{} , ...accordionMultipleProps } = props;
2181
+ const [value1 = [], setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
2182
+ prop: valueProp,
2183
+ defaultProp: defaultValue,
2184
+ onChange: onValueChange
2185
+ });
2186
+ const handleItemOpen = React.useCallback((itemValue)=>setValue((prevValue = [])=>[
2187
+ ...prevValue,
2188
+ itemValue
2189
+ ]
2190
+ )
2191
+ , [
2192
+ setValue
2193
2193
  ]);
2194
- return /*#__PURE__*/ React.createElement($e698a72e93240346$var$CheckboxProvider, {
2195
- scope: __scopeCheckbox,
2196
- state: checked,
2197
- disabled: disabled
2198
- }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
2199
- type: "button",
2200
- role: "checkbox",
2201
- "aria-checked": $e698a72e93240346$var$isIndeterminate(checked) ? 'mixed' : checked,
2202
- "aria-required": required,
2203
- "data-state": $e698a72e93240346$var$getState(checked),
2204
- "data-disabled": disabled ? '' : undefined,
2194
+ const handleItemClose = React.useCallback((itemValue)=>setValue((prevValue = [])=>prevValue.filter((value)=>value !== itemValue
2195
+ )
2196
+ )
2197
+ , [
2198
+ setValue
2199
+ ]);
2200
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionValueProvider, {
2201
+ scope: props.__scopeAccordion,
2202
+ value: value1,
2203
+ onItemOpen: handleItemOpen,
2204
+ onItemClose: handleItemClose
2205
+ }, /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider, {
2206
+ scope: props.__scopeAccordion,
2207
+ collapsible: true
2208
+ }, /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionImpl, _extends({}, accordionMultipleProps, {
2209
+ ref: forwardedRef
2210
+ }))));
2211
+ });
2212
+ /* -----------------------------------------------------------------------------------------------*/ const [$1bf158f521e1b1b4$var$AccordionImplProvider, $1bf158f521e1b1b4$var$useAccordionContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME);
2213
+ const $1bf158f521e1b1b4$var$AccordionImpl = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2214
+ const { __scopeAccordion: __scopeAccordion , disabled: disabled , dir: dir , orientation: orientation = 'vertical' , ...accordionProps } = props;
2215
+ const accordionRef = React.useRef(null);
2216
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(accordionRef, forwardedRef);
2217
+ const getItems = $1bf158f521e1b1b4$var$useCollection(__scopeAccordion);
2218
+ const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
2219
+ const isDirectionLTR = direction === 'ltr';
2220
+ const handleKeyDown = $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
2221
+ var _triggerCollection$cl;
2222
+ if (!$1bf158f521e1b1b4$var$ACCORDION_KEYS.includes(event.key)) return;
2223
+ const target = event.target;
2224
+ const triggerCollection = getItems().filter((item)=>{
2225
+ var _item$ref$current;
2226
+ return !((_item$ref$current = item.ref.current) !== null && _item$ref$current !== void 0 && _item$ref$current.disabled);
2227
+ });
2228
+ const triggerIndex = triggerCollection.findIndex((item)=>item.ref.current === target
2229
+ );
2230
+ const triggerCount = triggerCollection.length;
2231
+ if (triggerIndex === -1) return; // Prevents page scroll while user is navigating
2232
+ event.preventDefault();
2233
+ let nextIndex = triggerIndex;
2234
+ const homeIndex = 0;
2235
+ const endIndex = triggerCount - 1;
2236
+ const moveNext = ()=>{
2237
+ nextIndex = triggerIndex + 1;
2238
+ if (nextIndex > endIndex) nextIndex = homeIndex;
2239
+ };
2240
+ const movePrev = ()=>{
2241
+ nextIndex = triggerIndex - 1;
2242
+ if (nextIndex < homeIndex) nextIndex = endIndex;
2243
+ };
2244
+ switch(event.key){
2245
+ case 'Home':
2246
+ nextIndex = homeIndex;
2247
+ break;
2248
+ case 'End':
2249
+ nextIndex = endIndex;
2250
+ break;
2251
+ case 'ArrowRight':
2252
+ if (orientation === 'horizontal') {
2253
+ if (isDirectionLTR) moveNext();
2254
+ else movePrev();
2255
+ }
2256
+ break;
2257
+ case 'ArrowDown':
2258
+ if (orientation === 'vertical') moveNext();
2259
+ break;
2260
+ case 'ArrowLeft':
2261
+ if (orientation === 'horizontal') {
2262
+ if (isDirectionLTR) movePrev();
2263
+ else moveNext();
2264
+ }
2265
+ break;
2266
+ case 'ArrowUp':
2267
+ if (orientation === 'vertical') movePrev();
2268
+ break;
2269
+ }
2270
+ const clampedIndex = nextIndex % triggerCount;
2271
+ (_triggerCollection$cl = triggerCollection[clampedIndex].ref.current) === null || _triggerCollection$cl === void 0 || _triggerCollection$cl.focus();
2272
+ });
2273
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionImplProvider, {
2274
+ scope: __scopeAccordion,
2205
2275
  disabled: disabled,
2206
- value: value
2207
- }, checkboxProps, {
2276
+ direction: dir,
2277
+ orientation: orientation
2278
+ }, /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$Collection.Slot, {
2279
+ scope: __scopeAccordion
2280
+ }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({}, accordionProps, {
2281
+ "data-orientation": orientation,
2208
2282
  ref: composedRefs,
2209
- onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
2210
- // According to WAI ARIA, Checkboxes don't activate on enter keypress
2211
- if (event.key === 'Enter') event.preventDefault();
2212
- }),
2213
- onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, (event)=>{
2214
- setChecked((prevChecked)=>$e698a72e93240346$var$isIndeterminate(prevChecked) ? true : !prevChecked
2215
- );
2216
- if (isFormControl) {
2217
- hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if checkbox is in a form, stop propagation from the button so that we only propagate
2218
- // one click event (from the input). We propagate changes from an input so that native
2219
- // form validation works and form events reflect checkbox updates.
2220
- if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
2221
- }
2222
- })
2223
- })), isFormControl && /*#__PURE__*/ React.createElement($e698a72e93240346$var$BubbleInput, {
2224
- control: button,
2225
- bubbles: !hasConsumerStoppedPropagationRef.current,
2226
- name: name,
2227
- value: value,
2228
- checked: checked,
2229
- required: required,
2230
- disabled: disabled // We transform because the input is absolutely positioned but we have
2231
- ,
2232
- style: {
2233
- transform: 'translateX(-100%)'
2234
- }
2235
- }));
2283
+ onKeyDown: disabled ? undefined : handleKeyDown
2284
+ }))));
2236
2285
  });
2237
2286
  /* -------------------------------------------------------------------------------------------------
2238
- * CheckboxIndicator
2239
- * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$INDICATOR_NAME = 'CheckboxIndicator';
2240
- const $e698a72e93240346$export$59aad738f51d1c05 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2241
- const { __scopeCheckbox: __scopeCheckbox , forceMount: forceMount , ...indicatorProps } = props;
2242
- const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);
2243
- return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
2244
- present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true
2245
- }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({
2246
- "data-state": $e698a72e93240346$var$getState(context.state),
2247
- "data-disabled": context.disabled ? '' : undefined
2248
- }, indicatorProps, {
2287
+ * AccordionItem
2288
+ * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$ITEM_NAME = 'AccordionItem';
2289
+ const [$1bf158f521e1b1b4$var$AccordionItemProvider, $1bf158f521e1b1b4$var$useAccordionItemContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ITEM_NAME);
2290
+ /**
2291
+ * `AccordionItem` contains all of the parts of a collapsible section inside of an `Accordion`.
2292
+ */ const $1bf158f521e1b1b4$export$d99097c13d4dac9f = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2293
+ const { __scopeAccordion: __scopeAccordion , value: value , ...accordionItemProps } = props;
2294
+ const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ITEM_NAME, __scopeAccordion);
2295
+ const valueContext = $1bf158f521e1b1b4$var$useAccordionValueContext($1bf158f521e1b1b4$var$ITEM_NAME, __scopeAccordion);
2296
+ const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);
2297
+ const triggerId = $1746a345f3d73bb7$export$f680877a34711e37$1();
2298
+ const open1 = value && valueContext.value.includes(value) || false;
2299
+ const disabled = accordionContext.disabled || props.disabled;
2300
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionItemProvider, {
2301
+ scope: __scopeAccordion,
2302
+ open: open1,
2303
+ disabled: disabled,
2304
+ triggerId: triggerId
2305
+ }, /*#__PURE__*/ React.createElement($409067139f391064$export$be92b6f5f03c0fe9, _extends({
2306
+ "data-orientation": accordionContext.orientation,
2307
+ "data-state": $1bf158f521e1b1b4$var$getState(open1)
2308
+ }, collapsibleScope, accordionItemProps, {
2249
2309
  ref: forwardedRef,
2250
- style: {
2251
- pointerEvents: 'none',
2252
- ...props.style
2310
+ disabled: disabled,
2311
+ open: open1,
2312
+ onOpenChange: (open)=>{
2313
+ if (open) valueContext.onItemOpen(value);
2314
+ else valueContext.onItemClose(value);
2253
2315
  }
2254
2316
  })));
2255
2317
  });
2256
- /* ---------------------------------------------------------------------------------------------- */ const $e698a72e93240346$var$BubbleInput = (props)=>{
2257
- const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;
2258
- const ref = React.useRef(null);
2259
- const prevChecked = $010c2913dbd2fe3d$export$5cae361ad82dce8b(checked);
2260
- const controlSize = $db6c3485150b8e66$export$1ab7ae714698c4b8(control); // Bubble checked change to parents (e.g form change event)
2261
- React.useEffect(()=>{
2262
- const input = ref.current;
2263
- const inputProto = window.HTMLInputElement.prototype;
2264
- const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');
2265
- const setChecked = descriptor.set;
2266
- if (prevChecked !== checked && setChecked) {
2267
- const event = new Event('click', {
2268
- bubbles: bubbles
2269
- });
2270
- input.indeterminate = $e698a72e93240346$var$isIndeterminate(checked);
2271
- setChecked.call(input, $e698a72e93240346$var$isIndeterminate(checked) ? false : checked);
2272
- input.dispatchEvent(event);
2273
- }
2274
- }, [
2275
- prevChecked,
2276
- checked,
2277
- bubbles
2278
- ]);
2279
- return /*#__PURE__*/ React.createElement("input", _extends({
2280
- type: "checkbox",
2281
- "aria-hidden": true,
2282
- defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked
2283
- }, inputProps, {
2284
- tabIndex: -1,
2285
- ref: ref,
2318
+ /* -------------------------------------------------------------------------------------------------
2319
+ * AccordionHeader
2320
+ * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$HEADER_NAME = 'AccordionHeader';
2321
+ /**
2322
+ * `AccordionHeader` contains the content for the parts of an `AccordionItem` that will be visible
2323
+ * whether or not its content is collapsed.
2324
+ */ const $1bf158f521e1b1b4$export$5e3e5deaaf81ee41 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2325
+ const { __scopeAccordion: __scopeAccordion , ...headerProps } = props;
2326
+ const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);
2327
+ const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$HEADER_NAME, __scopeAccordion);
2328
+ return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.h3, _extends({
2329
+ "data-orientation": accordionContext.orientation,
2330
+ "data-state": $1bf158f521e1b1b4$var$getState(itemContext.open),
2331
+ "data-disabled": itemContext.disabled ? '' : undefined
2332
+ }, headerProps, {
2333
+ ref: forwardedRef
2334
+ }));
2335
+ });
2336
+ /* -------------------------------------------------------------------------------------------------
2337
+ * AccordionTrigger
2338
+ * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$TRIGGER_NAME = 'AccordionTrigger';
2339
+ /**
2340
+ * `AccordionTrigger` is the trigger that toggles the collapsed state of an `AccordionItem`. It
2341
+ * should always be nested inside of an `AccordionHeader`.
2342
+ */ const $1bf158f521e1b1b4$export$94e939b1f85bdd73 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2343
+ const { __scopeAccordion: __scopeAccordion , ...triggerProps } = props;
2344
+ const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);
2345
+ const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$TRIGGER_NAME, __scopeAccordion);
2346
+ const collapsibleContext = $1bf158f521e1b1b4$var$useAccordionCollapsibleContext($1bf158f521e1b1b4$var$TRIGGER_NAME, __scopeAccordion);
2347
+ const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);
2348
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$Collection.ItemSlot, {
2349
+ scope: __scopeAccordion
2350
+ }, /*#__PURE__*/ React.createElement($409067139f391064$export$41fb9f06171c75f4, _extends({
2351
+ "aria-disabled": itemContext.open && !collapsibleContext.collapsible || undefined,
2352
+ "data-orientation": accordionContext.orientation,
2353
+ id: itemContext.triggerId
2354
+ }, collapsibleScope, triggerProps, {
2355
+ ref: forwardedRef
2356
+ })));
2357
+ });
2358
+ /* -------------------------------------------------------------------------------------------------
2359
+ * AccordionContent
2360
+ * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$CONTENT_NAME = 'AccordionContent';
2361
+ /**
2362
+ * `AccordionContent` contains the collapsible content for an `AccordionItem`.
2363
+ */ const $1bf158f521e1b1b4$export$985b9a77379b54a0 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2364
+ const { __scopeAccordion: __scopeAccordion , ...contentProps } = props;
2365
+ const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);
2366
+ const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$CONTENT_NAME, __scopeAccordion);
2367
+ const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);
2368
+ return /*#__PURE__*/ React.createElement($409067139f391064$export$7c6e2c02157bb7d2, _extends({
2369
+ role: "region",
2370
+ "aria-labelledby": itemContext.triggerId,
2371
+ "data-orientation": accordionContext.orientation
2372
+ }, collapsibleScope, contentProps, {
2373
+ ref: forwardedRef,
2286
2374
  style: {
2287
- ...props.style,
2288
- ...controlSize,
2289
- position: 'absolute',
2290
- pointerEvents: 'none',
2291
- opacity: 0,
2292
- margin: 0
2375
+ ['--radix-accordion-content-height']: 'var(--radix-collapsible-content-height)',
2376
+ ['--radix-accordion-content-width']: 'var(--radix-collapsible-content-width)',
2377
+ ...props.style
2293
2378
  }
2294
2379
  }));
2295
- };
2296
- function $e698a72e93240346$var$isIndeterminate(checked) {
2297
- return checked === 'indeterminate';
2298
- }
2299
- function $e698a72e93240346$var$getState(checked) {
2300
- return $e698a72e93240346$var$isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';
2380
+ });
2381
+ /* -----------------------------------------------------------------------------------------------*/ function $1bf158f521e1b1b4$var$getState(open) {
2382
+ return open ? 'open' : 'closed';
2301
2383
  }
2302
- const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
2303
- const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
2384
+ const $1bf158f521e1b1b4$export$be92b6f5f03c0fe9 = $1bf158f521e1b1b4$export$a766cd26d0d69044;
2385
+ const $1bf158f521e1b1b4$export$6d08773d2e66f8f2 = $1bf158f521e1b1b4$export$d99097c13d4dac9f;
2386
+ const $1bf158f521e1b1b4$export$8b251419efc915eb = $1bf158f521e1b1b4$export$5e3e5deaaf81ee41;
2387
+ const $1bf158f521e1b1b4$export$41fb9f06171c75f4 = $1bf158f521e1b1b4$export$94e939b1f85bdd73;
2388
+ const $1bf158f521e1b1b4$export$7c6e2c02157bb7d2 = $1bf158f521e1b1b4$export$985b9a77379b54a0;
2304
2389
 
2305
2390
  function _objectWithoutPropertiesLoose$1(source, excluded) {
2306
2391
  if (source == null) return {};
@@ -2308,20 +2393,152 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
2308
2393
  var sourceKeys = Object.keys(source);
2309
2394
  var key, i;
2310
2395
 
2311
- for (i = 0; i < sourceKeys.length; i++) {
2312
- key = sourceKeys[i];
2313
- if (excluded.indexOf(key) >= 0) continue;
2314
- target[key] = source[key];
2315
- }
2396
+ for (i = 0; i < sourceKeys.length; i++) {
2397
+ key = sourceKeys[i];
2398
+ if (excluded.indexOf(key) >= 0) continue;
2399
+ target[key] = source[key];
2400
+ }
2401
+
2402
+ return target;
2403
+ }
2404
+
2405
+ var _excluded$e = ["color"];
2406
+ var ArrowDownIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2407
+ var _ref$color = _ref.color,
2408
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2409
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$e);
2410
+
2411
+ return React.createElement("svg", Object.assign({
2412
+ width: "15",
2413
+ height: "15",
2414
+ viewBox: "0 0 15 15",
2415
+ fill: "none",
2416
+ xmlns: "http://www.w3.org/2000/svg"
2417
+ }, props, {
2418
+ ref: forwardedRef
2419
+ }), React.createElement("path", {
2420
+ d: "M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",
2421
+ fill: color,
2422
+ fillRule: "evenodd",
2423
+ clipRule: "evenodd"
2424
+ }));
2425
+ });
2426
+
2427
+ var _excluded$j = ["color"];
2428
+ var ArrowUpIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2429
+ var _ref$color = _ref.color,
2430
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2431
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$j);
2432
+
2433
+ return React.createElement("svg", Object.assign({
2434
+ width: "15",
2435
+ height: "15",
2436
+ viewBox: "0 0 15 15",
2437
+ fill: "none",
2438
+ xmlns: "http://www.w3.org/2000/svg"
2439
+ }, props, {
2440
+ ref: forwardedRef
2441
+ }), React.createElement("path", {
2442
+ d: "M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",
2443
+ fill: color,
2444
+ fillRule: "evenodd",
2445
+ clipRule: "evenodd"
2446
+ }));
2447
+ });
2448
+
2449
+ var _excluded$T = ["color"];
2450
+ var CheckIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2451
+ var _ref$color = _ref.color,
2452
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2453
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$T);
2454
+
2455
+ return React.createElement("svg", Object.assign({
2456
+ width: "15",
2457
+ height: "15",
2458
+ viewBox: "0 0 15 15",
2459
+ fill: "none",
2460
+ xmlns: "http://www.w3.org/2000/svg"
2461
+ }, props, {
2462
+ ref: forwardedRef
2463
+ }), React.createElement("path", {
2464
+ d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
2465
+ fill: color,
2466
+ fillRule: "evenodd",
2467
+ clipRule: "evenodd"
2468
+ }));
2469
+ });
2470
+
2471
+ var _excluded$W = ["color"];
2472
+ var ChevronDownIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2473
+ var _ref$color = _ref.color,
2474
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2475
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$W);
2476
+
2477
+ return React.createElement("svg", Object.assign({
2478
+ width: "15",
2479
+ height: "15",
2480
+ viewBox: "0 0 15 15",
2481
+ fill: "none",
2482
+ xmlns: "http://www.w3.org/2000/svg"
2483
+ }, props, {
2484
+ ref: forwardedRef
2485
+ }), React.createElement("path", {
2486
+ d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
2487
+ fill: color,
2488
+ fillRule: "evenodd",
2489
+ clipRule: "evenodd"
2490
+ }));
2491
+ });
2492
+
2493
+ var _excluded$17 = ["color"];
2494
+ var ColumnsIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2495
+ var _ref$color = _ref.color,
2496
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2497
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$17);
2498
+
2499
+ return React.createElement("svg", Object.assign({
2500
+ width: "15",
2501
+ height: "15",
2502
+ viewBox: "0 0 15 15",
2503
+ fill: "none",
2504
+ xmlns: "http://www.w3.org/2000/svg"
2505
+ }, props, {
2506
+ ref: forwardedRef
2507
+ }), React.createElement("path", {
2508
+ d: "M2.14998 14V1H0.849976V14H2.14998ZM6.14998 14V1H4.84998V14H6.14998ZM10.15 1V14H8.84998V1H10.15ZM14.15 14V1H12.85V14H14.15Z",
2509
+ fill: color,
2510
+ fillRule: "evenodd",
2511
+ clipRule: "evenodd"
2512
+ }));
2513
+ });
2514
+
2515
+ var _excluded$1q = ["color"];
2516
+ var Cross1Icon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2517
+ var _ref$color = _ref.color,
2518
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2519
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$1q);
2316
2520
 
2317
- return target;
2318
- }
2521
+ return React.createElement("svg", Object.assign({
2522
+ width: "15",
2523
+ height: "15",
2524
+ viewBox: "0 0 15 15",
2525
+ fill: "none",
2526
+ xmlns: "http://www.w3.org/2000/svg"
2527
+ }, props, {
2528
+ ref: forwardedRef
2529
+ }), React.createElement("path", {
2530
+ d: "M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",
2531
+ fill: color,
2532
+ fillRule: "evenodd",
2533
+ clipRule: "evenodd"
2534
+ }));
2535
+ });
2319
2536
 
2320
- var _excluded$e = ["color"];
2321
- var ArrowDownIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2537
+ var _excluded$1r = ["color"];
2538
+ var Cross2Icon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2322
2539
  var _ref$color = _ref.color,
2323
2540
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2324
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$e);
2541
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$1r);
2325
2542
 
2326
2543
  return React.createElement("svg", Object.assign({
2327
2544
  width: "15",
@@ -2332,18 +2549,18 @@ var ArrowDownIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef)
2332
2549
  }, props, {
2333
2550
  ref: forwardedRef
2334
2551
  }), React.createElement("path", {
2335
- d: "M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",
2552
+ d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
2336
2553
  fill: color,
2337
2554
  fillRule: "evenodd",
2338
2555
  clipRule: "evenodd"
2339
2556
  }));
2340
2557
  });
2341
2558
 
2342
- var _excluded$j = ["color"];
2343
- var ArrowUpIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2559
+ var _excluded$1D = ["color"];
2560
+ var DiscIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2344
2561
  var _ref$color = _ref.color,
2345
2562
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2346
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$j);
2563
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$1D);
2347
2564
 
2348
2565
  return React.createElement("svg", Object.assign({
2349
2566
  width: "15",
@@ -2354,18 +2571,18 @@ var ArrowUpIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2354
2571
  }, props, {
2355
2572
  ref: forwardedRef
2356
2573
  }), React.createElement("path", {
2357
- d: "M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",
2574
+ d: "M7.49991 0.877075C3.84222 0.877075 0.877075 3.84222 0.877075 7.49991C0.877075 11.1576 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1576 14.1227 7.49991C14.1227 3.84222 11.1576 0.877075 7.49991 0.877075ZM1.82708 7.49991C1.82708 4.36689 4.36689 1.82707 7.49991 1.82707C10.6329 1.82707 13.1727 4.36689 13.1727 7.49991C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49991ZM8.37287 7.50006C8.37287 7.98196 7.98221 8.37263 7.5003 8.37263C7.01839 8.37263 6.62773 7.98196 6.62773 7.50006C6.62773 7.01815 7.01839 6.62748 7.5003 6.62748C7.98221 6.62748 8.37287 7.01815 8.37287 7.50006ZM9.32287 7.50006C9.32287 8.50664 8.50688 9.32263 7.5003 9.32263C6.49372 9.32263 5.67773 8.50664 5.67773 7.50006C5.67773 6.49348 6.49372 5.67748 7.5003 5.67748C8.50688 5.67748 9.32287 6.49348 9.32287 7.50006Z",
2358
2575
  fill: color,
2359
2576
  fillRule: "evenodd",
2360
2577
  clipRule: "evenodd"
2361
2578
  }));
2362
2579
  });
2363
2580
 
2364
- var _excluded$T = ["color"];
2365
- var CheckIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2581
+ var _excluded$20 = ["color"];
2582
+ var ExclamationTriangleIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2366
2583
  var _ref$color = _ref.color,
2367
2584
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2368
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$T);
2585
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$20);
2369
2586
 
2370
2587
  return React.createElement("svg", Object.assign({
2371
2588
  width: "15",
@@ -2376,18 +2593,18 @@ var CheckIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2376
2593
  }, props, {
2377
2594
  ref: forwardedRef
2378
2595
  }), React.createElement("path", {
2379
- d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
2596
+ d: "M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",
2380
2597
  fill: color,
2381
2598
  fillRule: "evenodd",
2382
2599
  clipRule: "evenodd"
2383
2600
  }));
2384
2601
  });
2385
2602
 
2386
- var _excluded$W = ["color"];
2387
- var ChevronDownIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2603
+ var _excluded$29 = ["color"];
2604
+ var FileIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2388
2605
  var _ref$color = _ref.color,
2389
2606
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2390
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$W);
2607
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$29);
2391
2608
 
2392
2609
  return React.createElement("svg", Object.assign({
2393
2610
  width: "15",
@@ -2398,18 +2615,18 @@ var ChevronDownIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef
2398
2615
  }, props, {
2399
2616
  ref: forwardedRef
2400
2617
  }), React.createElement("path", {
2401
- d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
2618
+ d: "M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",
2402
2619
  fill: color,
2403
2620
  fillRule: "evenodd",
2404
2621
  clipRule: "evenodd"
2405
2622
  }));
2406
2623
  });
2407
2624
 
2408
- var _excluded$17 = ["color"];
2409
- var ColumnsIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2625
+ var _excluded$2c = ["color"];
2626
+ var FileTextIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2410
2627
  var _ref$color = _ref.color,
2411
2628
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2412
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$17);
2629
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$2c);
2413
2630
 
2414
2631
  return React.createElement("svg", Object.assign({
2415
2632
  width: "15",
@@ -2420,18 +2637,18 @@ var ColumnsIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2420
2637
  }, props, {
2421
2638
  ref: forwardedRef
2422
2639
  }), React.createElement("path", {
2423
- d: "M2.14998 14V1H0.849976V14H2.14998ZM6.14998 14V1H4.84998V14H6.14998ZM10.15 1V14H8.84998V1H10.15ZM14.15 14V1H12.85V14H14.15Z",
2640
+ d: "M3 2.5C3 2.22386 3.22386 2 3.5 2H9.08579C9.21839 2 9.34557 2.05268 9.43934 2.14645L11.8536 4.56066C11.9473 4.65443 12 4.78161 12 4.91421V12.5C12 12.7761 11.7761 13 11.5 13H3.5C3.22386 13 3 12.7761 3 12.5V2.5ZM3.5 1C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H11.5C12.3284 14 13 13.3284 13 12.5V4.91421C13 4.51639 12.842 4.13486 12.5607 3.85355L10.1464 1.43934C9.86514 1.15804 9.48361 1 9.08579 1H3.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5C4 4.77614 4.22386 5 4.5 5H7.5C7.77614 5 8 4.77614 8 4.5C8 4.22386 7.77614 4 7.5 4H4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H10.5C10.7761 8 11 7.77614 11 7.5C11 7.22386 10.7761 7 10.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H10.5C10.7761 11 11 10.7761 11 10.5C11 10.2239 10.7761 10 10.5 10H4.5Z",
2424
2641
  fill: color,
2425
2642
  fillRule: "evenodd",
2426
2643
  clipRule: "evenodd"
2427
2644
  }));
2428
2645
  });
2429
2646
 
2430
- var _excluded$1q = ["color"];
2431
- var Cross1Icon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2647
+ var _excluded$33 = ["color"];
2648
+ var MagnifyingGlassIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2432
2649
  var _ref$color = _ref.color,
2433
2650
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2434
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$1q);
2651
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$33);
2435
2652
 
2436
2653
  return React.createElement("svg", Object.assign({
2437
2654
  width: "15",
@@ -2442,18 +2659,18 @@ var Cross1Icon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2442
2659
  }, props, {
2443
2660
  ref: forwardedRef
2444
2661
  }), React.createElement("path", {
2445
- d: "M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",
2662
+ d: "M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",
2446
2663
  fill: color,
2447
2664
  fillRule: "evenodd",
2448
2665
  clipRule: "evenodd"
2449
2666
  }));
2450
2667
  });
2451
2668
 
2452
- var _excluded$1r = ["color"];
2453
- var Cross2Icon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2669
+ var _excluded$3e = ["color"];
2670
+ var MoonIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2454
2671
  var _ref$color = _ref.color,
2455
2672
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2456
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$1r);
2673
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$3e);
2457
2674
 
2458
2675
  return React.createElement("svg", Object.assign({
2459
2676
  width: "15",
@@ -2464,18 +2681,18 @@ var Cross2Icon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2464
2681
  }, props, {
2465
2682
  ref: forwardedRef
2466
2683
  }), React.createElement("path", {
2467
- d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
2684
+ d: "M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",
2468
2685
  fill: color,
2469
2686
  fillRule: "evenodd",
2470
2687
  clipRule: "evenodd"
2471
2688
  }));
2472
2689
  });
2473
2690
 
2474
- var _excluded$20 = ["color"];
2475
- var ExclamationTriangleIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2691
+ var _excluded$3x = ["color"];
2692
+ var PlusIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2476
2693
  var _ref$color = _ref.color,
2477
2694
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2478
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$20);
2695
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$3x);
2479
2696
 
2480
2697
  return React.createElement("svg", Object.assign({
2481
2698
  width: "15",
@@ -2486,18 +2703,18 @@ var ExclamationTriangleIcon = /*#__PURE__*/React.forwardRef(function (_ref, forw
2486
2703
  }, props, {
2487
2704
  ref: forwardedRef
2488
2705
  }), React.createElement("path", {
2489
- d: "M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",
2706
+ d: "M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",
2490
2707
  fill: color,
2491
2708
  fillRule: "evenodd",
2492
2709
  clipRule: "evenodd"
2493
2710
  }));
2494
2711
  });
2495
2712
 
2496
- var _excluded$29 = ["color"];
2497
- var FileIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2713
+ var _excluded$4i = ["color"];
2714
+ var SunIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2498
2715
  var _ref$color = _ref.color,
2499
2716
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2500
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$29);
2717
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$4i);
2501
2718
 
2502
2719
  return React.createElement("svg", Object.assign({
2503
2720
  width: "15",
@@ -2508,169 +2725,506 @@ var FileIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2508
2725
  }, props, {
2509
2726
  ref: forwardedRef
2510
2727
  }), React.createElement("path", {
2511
- d: "M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",
2728
+ d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
2512
2729
  fill: color,
2513
2730
  fillRule: "evenodd",
2514
2731
  clipRule: "evenodd"
2515
2732
  }));
2516
2733
  });
2517
2734
 
2518
- var _excluded$2c = ["color"];
2519
- var FileTextIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2520
- var _ref$color = _ref.color,
2521
- color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2522
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$2c);
2735
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
2736
+
2737
+ const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
2738
+ const cx = clsx;
2739
+ const cva = (base, config)=>{
2740
+ return (props)=>{
2741
+ var ref;
2742
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
2743
+ const { variants , defaultVariants } = config;
2744
+ const getVariantClassNames = Object.keys(variants).map((variant)=>{
2745
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
2746
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
2747
+ if (variantProp === null) return null;
2748
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
2749
+ return variants[variant][variantKey];
2750
+ });
2751
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
2752
+ let [key, value] = param;
2753
+ if (value === undefined) {
2754
+ return acc;
2755
+ }
2756
+ acc[key] = value;
2757
+ return acc;
2758
+ }, {});
2759
+ const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
2760
+ let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
2761
+ return Object.entries(compoundVariantOptions).every((param)=>{
2762
+ let [key, value] = param;
2763
+ return Array.isArray(value) ? value.includes({
2764
+ ...defaultVariants,
2765
+ ...propsWithoutUndefined
2766
+ }[key]) : ({
2767
+ ...defaultVariants,
2768
+ ...propsWithoutUndefined
2769
+ })[key] === value;
2770
+ }) ? [
2771
+ ...acc,
2772
+ cvClass,
2773
+ cvClassName
2774
+ ] : acc;
2775
+ }, []);
2776
+ return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
2777
+ };
2778
+ };
2779
+
2780
+ var styles$B = {"flex":"flex-module_flex__tfvHj","direction-row":"flex-module_direction-row__ZZCCO","direction-column":"flex-module_direction-column__MZhja","direction-rowReverse":"flex-module_direction-rowReverse__cODeQ","direction-columnReverse":"flex-module_direction-columnReverse__uxwTT","align-start":"flex-module_align-start__d1cB2","align-center":"flex-module_align-center__zZ1E6","align-end":"flex-module_align-end__z2g3F","align-stretch":"flex-module_align-stretch__X-Zb0","align-baseline":"flex-module_align-baseline__UImQH","justify-start":"flex-module_justify-start__4eduw","justify-center":"flex-module_justify-center__BMDDv","justify-end":"flex-module_justify-end__pWfzn","justify-between":"flex-module_justify-between__9NSwF","wrap-noWrap":"flex-module_wrap-noWrap__Ly8Pu","wrap-wrap":"flex-module_wrap-wrap__5WZOm","wrap-wrapReverse":"flex-module_wrap-wrapReverse__6u3Es","gap-xs":"flex-module_gap-xs__3h3LG","gap-sm":"flex-module_gap-sm__UMdVH","gap-md":"flex-module_gap-md__sfd7f","gap-lg":"flex-module_gap-lg__LAcQC","gap-xl":"flex-module_gap-xl__3-8uA"};
2781
+
2782
+ const flex = cva(styles$B.flex, {
2783
+ variants: {
2784
+ direction: {
2785
+ row: styles$B["direction-row"],
2786
+ column: styles$B["direction-column"],
2787
+ rowReverse: styles$B["direction-rowReverse"],
2788
+ columnReverse: styles$B["direction-columnReverse"],
2789
+ },
2790
+ align: {
2791
+ start: styles$B["align-start"],
2792
+ center: styles$B["align-center"],
2793
+ end: styles$B["align-end"],
2794
+ stretch: styles$B["align-stretch"],
2795
+ baseline: styles$B["align-baseline"],
2796
+ },
2797
+ justify: {
2798
+ start: styles$B["justify-start"],
2799
+ center: styles$B["justify-center"],
2800
+ end: styles$B["justify-end"],
2801
+ between: styles$B["justify-between"],
2802
+ },
2803
+ wrap: {
2804
+ noWrap: styles$B["wrap-noWrap"],
2805
+ wrap: styles$B["wrap-wrap"],
2806
+ wrapReverse: styles$B["wrap-wrapReverse"],
2807
+ },
2808
+ gap: {
2809
+ "extra-small": styles$B["gap-xs"],
2810
+ small: styles$B["gap-sm"],
2811
+ medium: styles$B["gap-md"],
2812
+ large: styles$B["gap-lg"],
2813
+ "extra-large": styles$B["gap-xl"],
2814
+ },
2815
+ },
2816
+ defaultVariants: {
2817
+ direction: "row",
2818
+ align: "stretch",
2819
+ justify: "start",
2820
+ wrap: "noWrap",
2821
+ },
2822
+ });
2823
+ const Flex = React.forwardRef(({ children, direction, align, justify, wrap, gap, className, ...props }, ref) => {
2824
+ return (jsxRuntimeExports.jsx("div", { className: flex({ direction, align, justify, wrap, gap, className }), ...props, ref: ref, children: children }));
2825
+ });
2826
+
2827
+ var styles$A = {"item":"accordion-module_item__tXeD0","header":"accordion-module_header__3y6p-","trigger":"accordion-module_trigger__ROQgB","svg":"accordion-module_svg__xvNct","content":"accordion-module_content__fUryt","slideDown":"accordion-module_slideDown__pwlAE","slideUp":"accordion-module_slideUp__ucWNi"};
2828
+
2829
+ const AccordionRoot = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$be92b6f5f03c0fe9, { ref: ref, className: styles$A.accordion, ...props })));
2830
+ const AccordionItem = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsxs(Flex, { gap: "medium", style: { width: "100%" }, children: [jsxRuntimeExports.jsx(DiscIcon, { width: 16, height: 16, style: { margin: "14px 0" } }), jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { ref: ref, className: `${styles$A.item} ${className}`, ...props })] })));
2831
+ AccordionItem.displayName = "AccordionItem";
2832
+ const AccordionTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => (jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$8b251419efc915eb, { className: styles$A.header, children: jsxRuntimeExports.jsxs($1bf158f521e1b1b4$export$41fb9f06171c75f4, { ref: ref, className: styles$A.trigger, ...props, children: [children, jsxRuntimeExports.jsx(ChevronDownIcon, { className: styles$A.svg })] }) })));
2833
+ AccordionTrigger.displayName = $1bf158f521e1b1b4$export$41fb9f06171c75f4.displayName;
2834
+ const AccordionContent = React__namespace.forwardRef(({ className = "", children, ...props }, ref) => (jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$7c6e2c02157bb7d2, { ref: ref, className: styles$A.content, ...props, children: jsxRuntimeExports.jsx("div", { className: `${styles$A.className}`, children: children }) })));
2835
+ AccordionContent.displayName = $1bf158f521e1b1b4$export$7c6e2c02157bb7d2.displayName;
2836
+ const Accordion = Object.assign(AccordionRoot, {
2837
+ Content: AccordionContent,
2838
+ Item: AccordionItem,
2839
+ Trigger: AccordionTrigger,
2840
+ });
2841
+
2842
+ /* -------------------------------------------------------------------------------------------------
2843
+ * Avatar
2844
+ * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$AVATAR_NAME = 'Avatar';
2845
+ const [$cddcb0b647441e34$var$createAvatarContext, $cddcb0b647441e34$export$90370d16b488820f] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($cddcb0b647441e34$var$AVATAR_NAME);
2846
+ const [$cddcb0b647441e34$var$AvatarProvider, $cddcb0b647441e34$var$useAvatarContext] = $cddcb0b647441e34$var$createAvatarContext($cddcb0b647441e34$var$AVATAR_NAME);
2847
+ const $cddcb0b647441e34$export$e2255cf6045e8d47 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2848
+ const { __scopeAvatar: __scopeAvatar , ...avatarProps } = props;
2849
+ const [imageLoadingStatus, setImageLoadingStatus] = React.useState('idle');
2850
+ return /*#__PURE__*/ React.createElement($cddcb0b647441e34$var$AvatarProvider, {
2851
+ scope: __scopeAvatar,
2852
+ imageLoadingStatus: imageLoadingStatus,
2853
+ onImageLoadingStatusChange: setImageLoadingStatus
2854
+ }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({}, avatarProps, {
2855
+ ref: forwardedRef
2856
+ })));
2857
+ });
2858
+ /* -------------------------------------------------------------------------------------------------
2859
+ * AvatarImage
2860
+ * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$IMAGE_NAME = 'AvatarImage';
2861
+ const $cddcb0b647441e34$export$2cd8ae1985206fe8 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2862
+ const { __scopeAvatar: __scopeAvatar , src: src , onLoadingStatusChange: onLoadingStatusChange = ()=>{} , ...imageProps } = props;
2863
+ const context = $cddcb0b647441e34$var$useAvatarContext($cddcb0b647441e34$var$IMAGE_NAME, __scopeAvatar);
2864
+ const imageLoadingStatus = $cddcb0b647441e34$var$useImageLoadingStatus(src);
2865
+ const handleLoadingStatusChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1((status)=>{
2866
+ onLoadingStatusChange(status);
2867
+ context.onImageLoadingStatusChange(status);
2868
+ });
2869
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
2870
+ if (imageLoadingStatus !== 'idle') handleLoadingStatusChange(imageLoadingStatus);
2871
+ }, [
2872
+ imageLoadingStatus,
2873
+ handleLoadingStatusChange
2874
+ ]);
2875
+ return imageLoadingStatus === 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.img, _extends({}, imageProps, {
2876
+ ref: forwardedRef,
2877
+ src: src
2878
+ })) : null;
2879
+ });
2880
+ /* -------------------------------------------------------------------------------------------------
2881
+ * AvatarFallback
2882
+ * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$FALLBACK_NAME = 'AvatarFallback';
2883
+ const $cddcb0b647441e34$export$69fffb6a9571fbfe = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2884
+ const { __scopeAvatar: __scopeAvatar , delayMs: delayMs , ...fallbackProps } = props;
2885
+ const context = $cddcb0b647441e34$var$useAvatarContext($cddcb0b647441e34$var$FALLBACK_NAME, __scopeAvatar);
2886
+ const [canRender, setCanRender] = React.useState(delayMs === undefined);
2887
+ React.useEffect(()=>{
2888
+ if (delayMs !== undefined) {
2889
+ const timerId = window.setTimeout(()=>setCanRender(true)
2890
+ , delayMs);
2891
+ return ()=>window.clearTimeout(timerId)
2892
+ ;
2893
+ }
2894
+ }, [
2895
+ delayMs
2896
+ ]);
2897
+ return canRender && context.imageLoadingStatus !== 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({}, fallbackProps, {
2898
+ ref: forwardedRef
2899
+ })) : null;
2900
+ });
2901
+ /* -----------------------------------------------------------------------------------------------*/ function $cddcb0b647441e34$var$useImageLoadingStatus(src) {
2902
+ const [loadingStatus, setLoadingStatus] = React.useState('idle');
2903
+ React.useEffect(()=>{
2904
+ if (!src) {
2905
+ setLoadingStatus('error');
2906
+ return;
2907
+ }
2908
+ let isMounted = true;
2909
+ const image = new window.Image();
2910
+ const updateStatus = (status)=>()=>{
2911
+ if (!isMounted) return;
2912
+ setLoadingStatus(status);
2913
+ }
2914
+ ;
2915
+ setLoadingStatus('loading');
2916
+ image.onload = updateStatus('loaded');
2917
+ image.onerror = updateStatus('error');
2918
+ image.src = src;
2919
+ return ()=>{
2920
+ isMounted = false;
2921
+ };
2922
+ }, [
2923
+ src
2924
+ ]);
2925
+ return loadingStatus;
2926
+ }
2927
+ const $cddcb0b647441e34$export$be92b6f5f03c0fe9 = $cddcb0b647441e34$export$e2255cf6045e8d47;
2928
+ const $cddcb0b647441e34$export$3e431a229df88919 = $cddcb0b647441e34$export$2cd8ae1985206fe8;
2929
+ const $cddcb0b647441e34$export$fb8d7f40caaeea67 = $cddcb0b647441e34$export$69fffb6a9571fbfe;
2930
+
2931
+ var styles$z = {"box":"box-module_box__ETj3v"};
2523
2932
 
2524
- return React.createElement("svg", Object.assign({
2525
- width: "15",
2526
- height: "15",
2527
- viewBox: "0 0 15 15",
2528
- fill: "none",
2529
- xmlns: "http://www.w3.org/2000/svg"
2530
- }, props, {
2531
- ref: forwardedRef
2532
- }), React.createElement("path", {
2533
- d: "M3 2.5C3 2.22386 3.22386 2 3.5 2H9.08579C9.21839 2 9.34557 2.05268 9.43934 2.14645L11.8536 4.56066C11.9473 4.65443 12 4.78161 12 4.91421V12.5C12 12.7761 11.7761 13 11.5 13H3.5C3.22386 13 3 12.7761 3 12.5V2.5ZM3.5 1C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H11.5C12.3284 14 13 13.3284 13 12.5V4.91421C13 4.51639 12.842 4.13486 12.5607 3.85355L10.1464 1.43934C9.86514 1.15804 9.48361 1 9.08579 1H3.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5C4 4.77614 4.22386 5 4.5 5H7.5C7.77614 5 8 4.77614 8 4.5C8 4.22386 7.77614 4 7.5 4H4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H10.5C10.7761 8 11 7.77614 11 7.5C11 7.22386 10.7761 7 10.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H10.5C10.7761 11 11 10.7761 11 10.5C11 10.2239 10.7761 10 10.5 10H4.5Z",
2534
- fill: color,
2535
- fillRule: "evenodd",
2536
- clipRule: "evenodd"
2537
- }));
2933
+ const box = cva(styles$z.box);
2934
+ function Box({ children, className, ...props }) {
2935
+ return (jsxRuntimeExports.jsx("div", { className: box({ className }), ...props, children: children }));
2936
+ }
2937
+
2938
+ var styles$y = {"avatar":"avatar-module_avatar__jlJnk","avatar-square":"avatar-module_avatar-square__vypF7","avatar-circle":"avatar-module_avatar-circle__XP6E3","avatar-disabled":"avatar-module_avatar-disabled__rsBE6","imageWrapper":"avatar-module_imageWrapper__dhsku","image":"avatar-module_image__P6Pav","fallback":"avatar-module_fallback__NzNwU"};
2939
+
2940
+ const avatar = cva(styles$y.avatar, {
2941
+ variants: {
2942
+ shape: {
2943
+ square: styles$y["avatar-square"],
2944
+ circle: styles$y["avatar-circle"],
2945
+ },
2946
+ disabled: {
2947
+ true: styles$y["avatar-disabled"],
2948
+ },
2949
+ },
2950
+ defaultVariants: {
2951
+ shape: "circle",
2952
+ },
2953
+ });
2954
+ const image$1 = cva(styles$y.image);
2955
+ const AvatarRoot = React.forwardRef(({ className, alt, src, fallback, shape, style, imageProps, ...props }, ref) => (jsxRuntimeExports.jsx(Box, { className: styles$y.imageWrapper, style: style, children: jsxRuntimeExports.jsxs($cddcb0b647441e34$export$be92b6f5f03c0fe9, { ref: ref, className: avatar({ shape, className }), style: imageProps, ...props, children: [jsxRuntimeExports.jsx(AvatarImage, { alt: alt, src: src }), jsxRuntimeExports.jsx(AvatarFallback, { children: fallback })] }) })));
2956
+ AvatarRoot.displayName = $cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;
2957
+ const AvatarImage = React.forwardRef(({ className, sizes, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$3e431a229df88919, { ref: ref, className: image$1({ className }), ...props })));
2958
+ AvatarImage.displayName = $cddcb0b647441e34$export$3e431a229df88919.displayName;
2959
+ const fallback = cva(styles$y.fallback);
2960
+ const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$fb8d7f40caaeea67, { ref: ref, className: fallback({ className }), ...props })));
2961
+ AvatarFallback.displayName = $cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;
2962
+ const Avatar = Object.assign(AvatarRoot, {
2963
+ Image: AvatarImage,
2964
+ Fallback: AvatarFallback,
2538
2965
  });
2539
2966
 
2540
- var _excluded$33 = ["color"];
2541
- var MagnifyingGlassIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2542
- var _ref$color = _ref.color,
2543
- color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2544
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$33);
2967
+ var styles$x = {"badge":"badge-module_badge__NAloH"};
2545
2968
 
2546
- return React.createElement("svg", Object.assign({
2547
- width: "15",
2548
- height: "15",
2549
- viewBox: "0 0 15 15",
2550
- fill: "none",
2551
- xmlns: "http://www.w3.org/2000/svg"
2552
- }, props, {
2553
- ref: forwardedRef
2554
- }), React.createElement("path", {
2555
- d: "M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",
2556
- fill: color,
2557
- fillRule: "evenodd",
2558
- clipRule: "evenodd"
2559
- }));
2969
+ const badge = cva(styles$x.badge, {
2970
+ variants: {
2971
+ color: {},
2972
+ },
2560
2973
  });
2974
+ const Badge = (props, ref) => {
2975
+ const { color, className, children } = props;
2976
+ return jsxRuntimeExports.jsx("span", { className: badge({ color, className }), children: children });
2977
+ };
2978
+ var badge$1 = React.forwardRef(Badge);
2561
2979
 
2562
- var _excluded$3e = ["color"];
2563
- var MoonIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2564
- var _ref$color = _ref.color,
2565
- color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2566
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$3e);
2980
+ var styles$w = {"body":"body-module_body__0sfEI","body-small":"body-module_body-small__CjW1C","body-medium":"body-module_body-medium__XVmQw","body-large":"body-module_body-large__KqAga"};
2567
2981
 
2568
- return React.createElement("svg", Object.assign({
2569
- width: "15",
2570
- height: "15",
2571
- viewBox: "0 0 15 15",
2572
- fill: "none",
2573
- xmlns: "http://www.w3.org/2000/svg"
2574
- }, props, {
2575
- ref: forwardedRef
2576
- }), React.createElement("path", {
2577
- d: "M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",
2578
- fill: color,
2579
- fillRule: "evenodd",
2580
- clipRule: "evenodd"
2581
- }));
2982
+ const body$1 = cva(styles$w.body, {
2983
+ variants: {
2984
+ size: {
2985
+ small: styles$w["body-small"],
2986
+ medium: styles$w["body-medium"],
2987
+ large: styles$w["body-large"],
2988
+ },
2989
+ },
2990
+ defaultVariants: {
2991
+ size: "small",
2992
+ },
2582
2993
  });
2994
+ function Body({ children, className, size, ...props }) {
2995
+ return (jsxRuntimeExports.jsx("span", { className: body$1({ size, className }), ...props, children: children }));
2996
+ }
2583
2997
 
2584
- var _excluded$3x = ["color"];
2585
- var PlusIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2586
- var _ref$color = _ref.color,
2587
- color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2588
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$3x);
2998
+ var styles$v = {"button":"button-module_button__9VQ21","button-small":"button-module_button-small__RR1mh","button-medium":"button-module_button-medium__79Bf1","button-large":"button-module_button-large__BQy6w","button-round":"button-module_button-round__Gd30S","button-primary":"button-module_button-primary__R0k9n","button-outline":"button-module_button-outline__MN25q","button-secondary":"button-module_button-secondary__zDkNV","button-ghost":"button-module_button-ghost__KcZUm","button-danger":"button-module_button-danger__dnB-7"};
2589
2999
 
2590
- return React.createElement("svg", Object.assign({
2591
- width: "15",
2592
- height: "15",
2593
- viewBox: "0 0 15 15",
2594
- fill: "none",
2595
- xmlns: "http://www.w3.org/2000/svg"
2596
- }, props, {
2597
- ref: forwardedRef
2598
- }), React.createElement("path", {
2599
- d: "M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",
2600
- fill: color,
2601
- fillRule: "evenodd",
2602
- clipRule: "evenodd"
2603
- }));
3000
+ const button = cva(styles$v.button, {
3001
+ variants: {
3002
+ variant: {
3003
+ primary: styles$v["button-primary"],
3004
+ outline: styles$v["button-outline"],
3005
+ secondary: styles$v["button-secondary"],
3006
+ ghost: styles$v["button-ghost"],
3007
+ danger: styles$v["button-danger"],
3008
+ },
3009
+ size: {
3010
+ small: styles$v["button-small"],
3011
+ medium: styles$v["button-medium"],
3012
+ large: styles$v["button-large"],
3013
+ },
3014
+ },
3015
+ });
3016
+ const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
3017
+ const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360$1 : "button";
3018
+ return (jsxRuntimeExports.jsx(Comp, { className: button({ variant, size, className }), ref: ref, ...props }));
2604
3019
  });
3020
+ Button.displayName = "Button";
2605
3021
 
2606
- var _excluded$4i = ["color"];
2607
- var SunIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2608
- var _ref$color = _ref.color,
2609
- color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2610
- props = _objectWithoutPropertiesLoose$1(_ref, _excluded$4i);
3022
+ function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
3023
+ const ref = React.useRef({
3024
+ value: value,
3025
+ previous: value
3026
+ }); // We compare values before making an update to ensure that
3027
+ // a change has been made. This ensures the previous value is
3028
+ // persisted correctly between renders.
3029
+ return React.useMemo(()=>{
3030
+ if (ref.current.value !== value) {
3031
+ ref.current.previous = ref.current.value;
3032
+ ref.current.value = value;
3033
+ }
3034
+ return ref.current.previous;
3035
+ }, [
3036
+ value
3037
+ ]);
3038
+ }
2611
3039
 
2612
- return React.createElement("svg", Object.assign({
2613
- width: "15",
2614
- height: "15",
2615
- viewBox: "0 0 15 15",
2616
- fill: "none",
2617
- xmlns: "http://www.w3.org/2000/svg"
2618
- }, props, {
2619
- ref: forwardedRef
2620
- }), React.createElement("path", {
2621
- d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
2622
- fill: color,
2623
- fillRule: "evenodd",
2624
- clipRule: "evenodd"
2625
- }));
3040
+ function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
3041
+ const [size, setSize] = React.useState(undefined);
3042
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
3043
+ if (element) {
3044
+ // provide size as early as possible
3045
+ setSize({
3046
+ width: element.offsetWidth,
3047
+ height: element.offsetHeight
3048
+ });
3049
+ const resizeObserver = new ResizeObserver((entries)=>{
3050
+ if (!Array.isArray(entries)) return;
3051
+ // Since we only observe the one element, we don't need to loop over the
3052
+ // array
3053
+ if (!entries.length) return;
3054
+ const entry = entries[0];
3055
+ let width;
3056
+ let height;
3057
+ if ('borderBoxSize' in entry) {
3058
+ const borderSizeEntry = entry['borderBoxSize']; // iron out differences between browsers
3059
+ const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
3060
+ width = borderSize['inlineSize'];
3061
+ height = borderSize['blockSize'];
3062
+ } else {
3063
+ // for browsers that don't support `borderBoxSize`
3064
+ // we calculate it ourselves to get the correct border box.
3065
+ width = element.offsetWidth;
3066
+ height = element.offsetHeight;
3067
+ }
3068
+ setSize({
3069
+ width: width,
3070
+ height: height
3071
+ });
3072
+ });
3073
+ resizeObserver.observe(element, {
3074
+ box: 'border-box'
3075
+ });
3076
+ return ()=>resizeObserver.unobserve(element)
3077
+ ;
3078
+ } else // We only want to reset to `undefined` when the element becomes `null`,
3079
+ // not if it changes to another element.
3080
+ setSize(undefined);
3081
+ }, [
3082
+ element
3083
+ ]);
3084
+ return size;
3085
+ }
3086
+
3087
+ /* -------------------------------------------------------------------------------------------------
3088
+ * Checkbox
3089
+ * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$CHECKBOX_NAME = 'Checkbox';
3090
+ const [$e698a72e93240346$var$createCheckboxContext, $e698a72e93240346$export$b566c4ff5488ea01] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($e698a72e93240346$var$CHECKBOX_NAME);
3091
+ const [$e698a72e93240346$var$CheckboxProvider, $e698a72e93240346$var$useCheckboxContext] = $e698a72e93240346$var$createCheckboxContext($e698a72e93240346$var$CHECKBOX_NAME);
3092
+ const $e698a72e93240346$export$48513f6b9f8ce62d = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
3093
+ const { __scopeCheckbox: __scopeCheckbox , name: name , checked: checkedProp , defaultChecked: defaultChecked , required: required , disabled: disabled , value: value = 'on' , onCheckedChange: onCheckedChange , ...checkboxProps } = props;
3094
+ const [button, setButton] = React.useState(null);
3095
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>setButton(node)
3096
+ );
3097
+ const hasConsumerStoppedPropagationRef = React.useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)
3098
+ const isFormControl = button ? Boolean(button.closest('form')) : true;
3099
+ const [checked = false, setChecked] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
3100
+ prop: checkedProp,
3101
+ defaultProp: defaultChecked,
3102
+ onChange: onCheckedChange
3103
+ });
3104
+ const initialCheckedStateRef = React.useRef(checked);
3105
+ React.useEffect(()=>{
3106
+ const form = button === null || button === void 0 ? void 0 : button.form;
3107
+ if (form) {
3108
+ const reset = ()=>setChecked(initialCheckedStateRef.current)
3109
+ ;
3110
+ form.addEventListener('reset', reset);
3111
+ return ()=>form.removeEventListener('reset', reset)
3112
+ ;
3113
+ }
3114
+ }, [
3115
+ button,
3116
+ setChecked
3117
+ ]);
3118
+ return /*#__PURE__*/ React.createElement($e698a72e93240346$var$CheckboxProvider, {
3119
+ scope: __scopeCheckbox,
3120
+ state: checked,
3121
+ disabled: disabled
3122
+ }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
3123
+ type: "button",
3124
+ role: "checkbox",
3125
+ "aria-checked": $e698a72e93240346$var$isIndeterminate(checked) ? 'mixed' : checked,
3126
+ "aria-required": required,
3127
+ "data-state": $e698a72e93240346$var$getState(checked),
3128
+ "data-disabled": disabled ? '' : undefined,
3129
+ disabled: disabled,
3130
+ value: value
3131
+ }, checkboxProps, {
3132
+ ref: composedRefs,
3133
+ onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
3134
+ // According to WAI ARIA, Checkboxes don't activate on enter keypress
3135
+ if (event.key === 'Enter') event.preventDefault();
3136
+ }),
3137
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, (event)=>{
3138
+ setChecked((prevChecked)=>$e698a72e93240346$var$isIndeterminate(prevChecked) ? true : !prevChecked
3139
+ );
3140
+ if (isFormControl) {
3141
+ hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if checkbox is in a form, stop propagation from the button so that we only propagate
3142
+ // one click event (from the input). We propagate changes from an input so that native
3143
+ // form validation works and form events reflect checkbox updates.
3144
+ if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
3145
+ }
3146
+ })
3147
+ })), isFormControl && /*#__PURE__*/ React.createElement($e698a72e93240346$var$BubbleInput, {
3148
+ control: button,
3149
+ bubbles: !hasConsumerStoppedPropagationRef.current,
3150
+ name: name,
3151
+ value: value,
3152
+ checked: checked,
3153
+ required: required,
3154
+ disabled: disabled // We transform because the input is absolutely positioned but we have
3155
+ ,
3156
+ style: {
3157
+ transform: 'translateX(-100%)'
3158
+ }
3159
+ }));
2626
3160
  });
2627
-
2628
- var styles$v = {"flex":"flex-module_flex__tfvHj","direction-row":"flex-module_direction-row__ZZCCO","direction-column":"flex-module_direction-column__MZhja","direction-rowReverse":"flex-module_direction-rowReverse__cODeQ","direction-columnReverse":"flex-module_direction-columnReverse__uxwTT","align-start":"flex-module_align-start__d1cB2","align-center":"flex-module_align-center__zZ1E6","align-end":"flex-module_align-end__z2g3F","align-stretch":"flex-module_align-stretch__X-Zb0","align-baseline":"flex-module_align-baseline__UImQH","justify-start":"flex-module_justify-start__4eduw","justify-center":"flex-module_justify-center__BMDDv","justify-end":"flex-module_justify-end__pWfzn","justify-between":"flex-module_justify-between__9NSwF","wrap-noWrap":"flex-module_wrap-noWrap__Ly8Pu","wrap-wrap":"flex-module_wrap-wrap__5WZOm","wrap-wrapReverse":"flex-module_wrap-wrapReverse__6u3Es","gap-xs":"flex-module_gap-xs__3h3LG","gap-sm":"flex-module_gap-sm__UMdVH","gap-md":"flex-module_gap-md__sfd7f","gap-lg":"flex-module_gap-lg__LAcQC","gap-xl":"flex-module_gap-xl__3-8uA"};
2629
-
2630
- const flex = cva(styles$v.flex, {
2631
- variants: {
2632
- direction: {
2633
- row: styles$v["direction-row"],
2634
- column: styles$v["direction-column"],
2635
- rowReverse: styles$v["direction-rowReverse"],
2636
- columnReverse: styles$v["direction-columnReverse"],
2637
- },
2638
- align: {
2639
- start: styles$v["align-start"],
2640
- center: styles$v["align-center"],
2641
- end: styles$v["align-end"],
2642
- stretch: styles$v["align-stretch"],
2643
- baseline: styles$v["align-baseline"],
2644
- },
2645
- justify: {
2646
- start: styles$v["justify-start"],
2647
- center: styles$v["justify-center"],
2648
- end: styles$v["justify-end"],
2649
- between: styles$v["justify-between"],
2650
- },
2651
- wrap: {
2652
- noWrap: styles$v["wrap-noWrap"],
2653
- wrap: styles$v["wrap-wrap"],
2654
- wrapReverse: styles$v["wrap-wrapReverse"],
2655
- },
2656
- gap: {
2657
- "extra-small": styles$v["gap-xs"],
2658
- small: styles$v["gap-sm"],
2659
- medium: styles$v["gap-md"],
2660
- large: styles$v["gap-lg"],
2661
- "extra-large": styles$v["gap-xl"],
2662
- },
2663
- },
2664
- defaultVariants: {
2665
- direction: "row",
2666
- align: "stretch",
2667
- justify: "start",
2668
- wrap: "noWrap",
2669
- },
3161
+ /* -------------------------------------------------------------------------------------------------
3162
+ * CheckboxIndicator
3163
+ * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$INDICATOR_NAME = 'CheckboxIndicator';
3164
+ const $e698a72e93240346$export$59aad738f51d1c05 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
3165
+ const { __scopeCheckbox: __scopeCheckbox , forceMount: forceMount , ...indicatorProps } = props;
3166
+ const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);
3167
+ return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
3168
+ present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true
3169
+ }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({
3170
+ "data-state": $e698a72e93240346$var$getState(context.state),
3171
+ "data-disabled": context.disabled ? '' : undefined
3172
+ }, indicatorProps, {
3173
+ ref: forwardedRef,
3174
+ style: {
3175
+ pointerEvents: 'none',
3176
+ ...props.style
3177
+ }
3178
+ })));
2670
3179
  });
2671
- function Flex({ children, direction, align, justify, wrap, gap, className, ...props }) {
2672
- return (jsxRuntimeExports.jsx("div", { className: flex({ direction, align, justify, wrap, gap, className }), ...props, children: children }));
3180
+ /* ---------------------------------------------------------------------------------------------- */ const $e698a72e93240346$var$BubbleInput = (props)=>{
3181
+ const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;
3182
+ const ref = React.useRef(null);
3183
+ const prevChecked = $010c2913dbd2fe3d$export$5cae361ad82dce8b(checked);
3184
+ const controlSize = $db6c3485150b8e66$export$1ab7ae714698c4b8(control); // Bubble checked change to parents (e.g form change event)
3185
+ React.useEffect(()=>{
3186
+ const input = ref.current;
3187
+ const inputProto = window.HTMLInputElement.prototype;
3188
+ const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');
3189
+ const setChecked = descriptor.set;
3190
+ if (prevChecked !== checked && setChecked) {
3191
+ const event = new Event('click', {
3192
+ bubbles: bubbles
3193
+ });
3194
+ input.indeterminate = $e698a72e93240346$var$isIndeterminate(checked);
3195
+ setChecked.call(input, $e698a72e93240346$var$isIndeterminate(checked) ? false : checked);
3196
+ input.dispatchEvent(event);
3197
+ }
3198
+ }, [
3199
+ prevChecked,
3200
+ checked,
3201
+ bubbles
3202
+ ]);
3203
+ return /*#__PURE__*/ React.createElement("input", _extends({
3204
+ type: "checkbox",
3205
+ "aria-hidden": true,
3206
+ defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked
3207
+ }, inputProps, {
3208
+ tabIndex: -1,
3209
+ ref: ref,
3210
+ style: {
3211
+ ...props.style,
3212
+ ...controlSize,
3213
+ position: 'absolute',
3214
+ pointerEvents: 'none',
3215
+ opacity: 0,
3216
+ margin: 0
3217
+ }
3218
+ }));
3219
+ };
3220
+ function $e698a72e93240346$var$isIndeterminate(checked) {
3221
+ return checked === 'indeterminate';
3222
+ }
3223
+ function $e698a72e93240346$var$getState(checked) {
3224
+ return $e698a72e93240346$var$isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';
2673
3225
  }
3226
+ const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
3227
+ const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
2674
3228
 
2675
3229
  var styles$u = {"label":"label-module_label__hM2lk","label-small":"label-module_label-small__se5gE","label-medium":"label-module_label-medium__Z4Tcb","label-large":"label-module_label-large__ba4Jb"};
2676
3230
 
@@ -2843,13 +3397,13 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
2843
3397
  * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
2844
3398
  */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
2845
3399
 
2846
- const $1746a345f3d73bb7$var$useReactId$1 = React__namespace['useId'.toString()] || (()=>undefined
3400
+ const $1746a345f3d73bb7$var$useReactId = React__namespace['useId'.toString()] || (()=>undefined
2847
3401
  );
2848
- let $1746a345f3d73bb7$var$count$1 = 0;
2849
- function $1746a345f3d73bb7$export$f680877a34711e37$1(deterministicId) {
2850
- const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId$1()); // React versions older than 18 will have client-side ids only.
3402
+ let $1746a345f3d73bb7$var$count = 0;
3403
+ function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
3404
+ const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
2851
3405
  $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
2852
- if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count$1++)
3406
+ if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
2853
3407
  );
2854
3408
  }, [
2855
3409
  deterministicId
@@ -4532,9 +5086,9 @@ const $5d3850c4d0b4e6c7$export$3ddf2d174ce01153$1 = (props)=>{
4532
5086
  scope: __scopeDialog,
4533
5087
  triggerRef: triggerRef,
4534
5088
  contentRef: contentRef,
4535
- contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
4536
- titleId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
4537
- descriptionId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
5089
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
5090
+ titleId: $1746a345f3d73bb7$export$f680877a34711e37(),
5091
+ descriptionId: $1746a345f3d73bb7$export$f680877a34711e37(),
4538
5092
  open: open,
4539
5093
  onOpenChange: setOpen,
4540
5094
  onOpenToggle: React.useCallback(()=>setOpen((prevOpen)=>!prevOpen
@@ -4851,20 +5405,6 @@ var ue='[cmdk-list-sizer=""]',M='[cmdk-group=""]',N='[cmdk-group-items=""]',de='
4851
5405
 
4852
5406
  var styles$s = {"command":"command-module_command__uWauu","inputWrapper":"command-module_inputWrapper__3p35Y","inputIcon":"command-module_inputIcon__A5omD","input":"command-module_input__l18cJ","list":"command-module_list__R5zPY","empty":"command-module_empty__had3w","group":"command-module_group__eVKQy","item":"command-module_item__J5y6v","separator":"command-module_separator__etEyE"};
4853
5407
 
4854
- const $1746a345f3d73bb7$var$useReactId = React__namespace['useId'.toString()] || (()=>undefined
4855
- );
4856
- let $1746a345f3d73bb7$var$count = 0;
4857
- function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
4858
- const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
4859
- $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
4860
- if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
4861
- );
4862
- }, [
4863
- deterministicId
4864
- ]);
4865
- return deterministicId || (id ? `radix-${id}` : '');
4866
- }
4867
-
4868
5408
  /**
4869
5409
  * Listens for when the escape key is down
4870
5410
  */ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
@@ -5731,9 +6271,9 @@ const $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 = (props)=>{
5731
6271
  scope: __scopeDialog,
5732
6272
  triggerRef: triggerRef,
5733
6273
  contentRef: contentRef,
5734
- contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
5735
- titleId: $1746a345f3d73bb7$export$f680877a34711e37(),
5736
- descriptionId: $1746a345f3d73bb7$export$f680877a34711e37(),
6274
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
6275
+ titleId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
6276
+ descriptionId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
5737
6277
  open: open,
5738
6278
  onOpenChange: setOpen,
5739
6279
  onOpenToggle: React.useCallback(()=>setOpen((prevOpen)=>!prevOpen
@@ -6071,99 +6611,6 @@ function Display({ children, className, size, ...props }) {
6071
6611
  return (jsxRuntimeExports.jsx("span", { className: display({ size, className }), ...props, children: children }));
6072
6612
  }
6073
6613
 
6074
- // We have resorted to returning slots directly rather than exposing primitives that can then
6075
- // be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.
6076
- // This is because we encountered issues with generic types that cannot be statically analysed
6077
- // due to creating them dynamically via createCollection.
6078
- function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
6079
- /* -----------------------------------------------------------------------------------------------
6080
- * CollectionProvider
6081
- * ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';
6082
- const [createCollectionContext, createCollectionScope] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1(PROVIDER_NAME);
6083
- const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {
6084
- collectionRef: {
6085
- current: null
6086
- },
6087
- itemMap: new Map()
6088
- });
6089
- const CollectionProvider = (props)=>{
6090
- const { scope: scope , children: children } = props;
6091
- const ref = React.useRef(null);
6092
- const itemMap = React.useRef(new Map()).current;
6093
- return /*#__PURE__*/ React.createElement(CollectionProviderImpl, {
6094
- scope: scope,
6095
- itemMap: itemMap,
6096
- collectionRef: ref
6097
- }, children);
6098
- };
6099
- /* -----------------------------------------------------------------------------------------------
6100
- * CollectionSlot
6101
- * ---------------------------------------------------------------------------------------------*/ const COLLECTION_SLOT_NAME = name + 'CollectionSlot';
6102
- const CollectionSlot = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
6103
- const { scope: scope , children: children } = props;
6104
- const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
6105
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.collectionRef);
6106
- return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
6107
- ref: composedRefs
6108
- }, children);
6109
- });
6110
- /* -----------------------------------------------------------------------------------------------
6111
- * CollectionItem
6112
- * ---------------------------------------------------------------------------------------------*/ const ITEM_SLOT_NAME = name + 'CollectionItemSlot';
6113
- const ITEM_DATA_ATTR = 'data-radix-collection-item';
6114
- const CollectionItemSlot = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
6115
- const { scope: scope , children: children , ...itemData } = props;
6116
- const ref = React.useRef(null);
6117
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
6118
- const context = useCollectionContext(ITEM_SLOT_NAME, scope);
6119
- React.useEffect(()=>{
6120
- context.itemMap.set(ref, {
6121
- ref: ref,
6122
- ...itemData
6123
- });
6124
- return ()=>void context.itemMap.delete(ref)
6125
- ;
6126
- });
6127
- return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
6128
- [ITEM_DATA_ATTR]: '',
6129
- ref: composedRefs
6130
- }, children);
6131
- });
6132
- /* -----------------------------------------------------------------------------------------------
6133
- * useCollection
6134
- * ---------------------------------------------------------------------------------------------*/ function useCollection(scope) {
6135
- const context = useCollectionContext(name + 'CollectionConsumer', scope);
6136
- const getItems = React.useCallback(()=>{
6137
- const collectionNode = context.collectionRef.current;
6138
- if (!collectionNode) return [];
6139
- const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
6140
- const items = Array.from(context.itemMap.values());
6141
- const orderedItems = items.sort((a, b)=>orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
6142
- );
6143
- return orderedItems;
6144
- }, [
6145
- context.collectionRef,
6146
- context.itemMap
6147
- ]);
6148
- return getItems;
6149
- }
6150
- return [
6151
- {
6152
- Provider: CollectionProvider,
6153
- Slot: CollectionSlot,
6154
- ItemSlot: CollectionItemSlot
6155
- },
6156
- useCollection,
6157
- createCollectionScope
6158
- ];
6159
- }
6160
-
6161
- const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ React.createContext(undefined);
6162
- /* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {
6163
- const globalDir = React.useContext($f631663db3294ace$var$DirectionContext);
6164
- return localDir || globalDir || 'ltr';
6165
- }
6166
-
6167
6614
  function getAlignment(placement) {
6168
6615
  return placement.split('-')[1];
6169
6616
  }
@@ -8300,7 +8747,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ React.forwardRef
8300
8747
  * -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$ITEM_NAME = 'RovingFocusGroupItem';
8301
8748
  const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
8302
8749
  const { __scopeRovingFocusGroup: __scopeRovingFocusGroup , focusable: focusable = true , active: active = false , tabStopId: tabStopId , ...itemProps } = props;
8303
- const autoId = $1746a345f3d73bb7$export$f680877a34711e37();
8750
+ const autoId = $1746a345f3d73bb7$export$f680877a34711e37$1();
8304
8751
  const id = tabStopId || autoId;
8305
8752
  const context = $d7bdfb9eb0fdf311$var$useRovingFocusContext($d7bdfb9eb0fdf311$var$ITEM_NAME, __scopeRovingFocusGroup);
8306
8753
  const isCurrentTabStop = context.currentTabStopId === id;
@@ -8992,9 +9439,9 @@ const $d08ef79370b62062$export$e44a253a59704894 = (props)=>{
8992
9439
  });
8993
9440
  return /*#__PURE__*/ React.createElement($d08ef79370b62062$var$DropdownMenuProvider, {
8994
9441
  scope: __scopeDropdownMenu,
8995
- triggerId: $1746a345f3d73bb7$export$f680877a34711e37(),
9442
+ triggerId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
8996
9443
  triggerRef: triggerRef,
8997
- contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
9444
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
8998
9445
  open: open,
8999
9446
  onOpenChange: setOpen,
9000
9447
  onOpenToggle: React.useCallback(()=>setOpen((prevOpen)=>!prevOpen
@@ -9350,7 +9797,7 @@ const $cb5cc270b50c6fcd$export$5b6b19405a83ff9d = (props)=>{
9350
9797
  });
9351
9798
  return /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9$1, popperScope, /*#__PURE__*/ React.createElement($cb5cc270b50c6fcd$var$PopoverProvider, {
9352
9799
  scope: __scopePopover,
9353
- contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
9800
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
9354
9801
  triggerRef: triggerRef,
9355
9802
  open: open,
9356
9803
  onOpenChange: setOpen,
@@ -16899,13 +17346,15 @@ var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
16899
17346
  });
16900
17347
  var StateManagedSelect$1 = StateManagedSelect;
16901
17348
 
16902
- var styles$e = {"select":"rselect-module_select__gZKVx","input":"rselect-module_input__6OSt0","control":"rselect-module_control__zsqi5","placeholder":"rselect-module_placeholder__tRMzL","indicatorsContainer":"rselect-module_indicatorsContainer__mufOH"};
17349
+ var styles$e = {"select":"rselect-module_select__gZKVx","option":"rselect-module_option__UNSGQ","isSelected":"rselect-module_isSelected__Gq24Q","control":"rselect-module_control__zsqi5","placeholder":"rselect-module_placeholder__tRMzL","indicatorsContainer":"rselect-module_indicatorsContainer__mufOH"};
16903
17350
 
16904
17351
  const select = cva(styles$e.select);
16905
17352
  const classNames = {
16906
17353
  control: () => cx(styles$e.control),
16907
17354
  option: () => cx(styles$e.option),
16908
- input: () => cx(styles$e.input),
17355
+ input: () => cx(styles$e.input, {
17356
+ isSelected: () => cx(styles$e.isSelected),
17357
+ }),
16909
17358
  placeholder: () => cx(styles$e.placeholder),
16910
17359
  singleValue: () => cx(styles$e.singleValue),
16911
17360
  indicatorsContainer: () => cx(styles$e.indicatorsContainer),
@@ -17762,7 +18211,7 @@ const $cc7e05a45900e73f$export$ef9b1a59e592288f = (props)=>{
17762
18211
  onValueNodeChange: setValueNode,
17763
18212
  valueNodeHasChildren: valueNodeHasChildren,
17764
18213
  onValueNodeHasChildrenChange: setValueNodeHasChildren,
17765
- contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
18214
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
17766
18215
  value: value,
17767
18216
  onValueChange: setValue,
17768
18217
  open: open,
@@ -18426,7 +18875,7 @@ const $cc7e05a45900e73f$export$9ed6e7b40248d36d = /*#__PURE__*/ React.forwardRef
18426
18875
  const [$cc7e05a45900e73f$var$SelectGroupContextProvider, $cc7e05a45900e73f$var$useSelectGroupContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$GROUP_NAME);
18427
18876
  const $cc7e05a45900e73f$export$ee25a334c55de1f4 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
18428
18877
  const { __scopeSelect: __scopeSelect , ...groupProps } = props;
18429
- const groupId = $1746a345f3d73bb7$export$f680877a34711e37();
18878
+ const groupId = $1746a345f3d73bb7$export$f680877a34711e37$1();
18430
18879
  return /*#__PURE__*/ React.createElement($cc7e05a45900e73f$var$SelectGroupContextProvider, {
18431
18880
  scope: __scopeSelect,
18432
18881
  id: groupId
@@ -18464,7 +18913,7 @@ const $cc7e05a45900e73f$export$13ef48a934230896 = /*#__PURE__*/ React.forwardRef
18464
18913
  var _contentContext$itemR;
18465
18914
  return (_contentContext$itemR = contentContext.itemRefCallback) === null || _contentContext$itemR === void 0 ? void 0 : _contentContext$itemR.call(contentContext, node, value, disabled);
18466
18915
  });
18467
- const textId = $1746a345f3d73bb7$export$f680877a34711e37();
18916
+ const textId = $1746a345f3d73bb7$export$f680877a34711e37$1();
18468
18917
  const handleSelect = ()=>{
18469
18918
  if (!disabled) {
18470
18919
  context.onValueChange(value);
@@ -18950,16 +19399,16 @@ function Text({ children, className, size, ...props }) {
18950
19399
  return (jsxRuntimeExports.jsx("span", { className: text$1({ size, className }), ...props, children: children }));
18951
19400
  }
18952
19401
 
18953
- var styles$8 = {"sidebar":"sidebar-module_sidebar__NXH3O","navigations":"sidebar-module_navigations__z5B4k","navigationgroup":"sidebar-module_navigationgroup__bBDHs","navigationgroupheading":"sidebar-module_navigationgroupheading__MkRud","navigationgroupcontent":"sidebar-module_navigationgroupcontent__q70dL","cell":"sidebar-module_cell__NHLSi","active":"sidebar-module_active__lfMUF","disabled":"sidebar-module_disabled__nYLU3","cellText":"sidebar-module_cellText__JV292","footer":"sidebar-module_footer__wLl-f"};
19402
+ var styles$8 = {"sidebar":"sidebar-module_sidebar__NXH3O","logo":"sidebar-module_logo__RaK-j","navigations":"sidebar-module_navigations__z5B4k","navigationgroup":"sidebar-module_navigationgroup__bBDHs","navigationgroupheading":"sidebar-module_navigationgroupheading__MkRud","navigationgroupcontent":"sidebar-module_navigationgroupcontent__q70dL","cell":"sidebar-module_cell__NHLSi","active":"sidebar-module_active__lfMUF","disabled":"sidebar-module_disabled__nYLU3","cellText":"sidebar-module_cellText__JV292","footer":"sidebar-module_footer__wLl-f"};
18954
19403
 
18955
- const SidebarRoot = ({ children }) => {
18956
- return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$8.sidebar, children: children }));
19404
+ const SidebarRoot = ({ children, ...props }) => {
19405
+ return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$8.sidebar, ...props, children: children }));
18957
19406
  };
18958
- const SidebarLogo = ({ name = "Apsara", logo, onClick }) => {
18959
- return (jsxRuntimeExports.jsxs(Flex, { align: "center", direction: "row", gap: "small", onClick: onClick, className: styles$8.logo, children: [jsxRuntimeExports.jsx(Flex, { gap: "small", children: logo }), jsxRuntimeExports.jsx(Text, { children: name })] }));
19407
+ const SidebarLogo = ({ name = "Apsara", logo, onClick, ...props }) => {
19408
+ return (jsxRuntimeExports.jsxs(Flex, { align: "center", direction: "row", gap: "small", onClick: onClick, ...props, children: [jsxRuntimeExports.jsx(Flex, { gap: "small", children: logo }), jsxRuntimeExports.jsx(Text, { size: 2, className: styles$8.logo, children: name })] }));
18960
19409
  };
18961
19410
  const SidebarNavigations = ({ children, ...props }) => {
18962
- return (jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$8.navigations, ...props, children: children }));
19411
+ return (jsxRuntimeExports.jsx(Flex, { direction: "column", gap: "extra-small", ...props, children: children }));
18963
19412
  };
18964
19413
  const SidebarNavigationsGroup = ({ icon, name, children, ...props }) => {
18965
19414
  return (jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$8.navigationgroup, ...props, children: [jsxRuntimeExports.jsxs(Flex, { className: styles$8.navigationgroupheading, children: [icon && icon, jsxRuntimeExports.jsx(Text, { size: 2, style: { color: "var(--foreground-muted)" }, children: name })] }), jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$8.navigationgroupcontent, children: children })] }));
@@ -19627,7 +20076,7 @@ const $a093c7e1ec25a057$export$28c660c63b792dea = (props)=>{
19627
20076
  const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TOOLTIP_NAME, props.__scopeTooltip);
19628
20077
  const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
19629
20078
  const [trigger, setTrigger] = React.useState(null);
19630
- const contentId = $1746a345f3d73bb7$export$f680877a34711e37();
20079
+ const contentId = $1746a345f3d73bb7$export$f680877a34711e37$1();
19631
20080
  const openTimerRef = React.useRef(0);
19632
20081
  const disableHoverableContent = disableHoverableContentProp !== null && disableHoverableContentProp !== void 0 ? disableHoverableContentProp : providerContext.disableHoverableContent;
19633
20082
  const delayDuration = delayDurationProp !== null && delayDurationProp !== void 0 ? delayDurationProp : providerContext.delayDuration;
@@ -23596,7 +24045,7 @@ const TextField = React.forwardRef(({ leading, className, src, size, state, styl
23596
24045
  });
23597
24046
  TextField.displayName = "TextField";
23598
24047
 
23599
- var styles$4 = {"wrapper":"datatable-module_wrapper__Sxg2d","datatable":"datatable-module_datatable__z-Th2","table":"datatable-module_table__x2IkY","head":"datatable-module_head__zCfCW","toolbar":"datatable-module_toolbar__lO-aI","chip":"datatable-module_chip__IiwTD"};
24048
+ var styles$4 = {"wrapper":"datatable-module_wrapper__Sxg2d","datatable":"datatable-module_datatable__z-Th2","table":"datatable-module_table__x2IkY","head":"datatable-module_head__zCfCW","toolbar":"datatable-module_toolbar__lO-aI","chip":"datatable-module_chip__IiwTD","chipWrapper":"datatable-module_chipWrapper__iz69x"};
23600
24049
 
23601
24050
  const FilteredChip = ({ column }) => {
23602
24051
  const { table, removeFilterColumn } = useTable();
@@ -23835,7 +24284,7 @@ const $69cb30bb0017df05$export$b2539bed5023c21c = /*#__PURE__*/ React.forwardRef
23835
24284
  });
23836
24285
  return /*#__PURE__*/ React.createElement($69cb30bb0017df05$var$TabsProvider, {
23837
24286
  scope: __scopeTabs,
23838
- baseId: $1746a345f3d73bb7$export$f680877a34711e37(),
24287
+ baseId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
23839
24288
  value: value,
23840
24289
  onValueChange: setValue,
23841
24290
  orientation: orientation,
@@ -24269,6 +24718,7 @@ function Title({ children, className, size, ...props }) {
24269
24718
  return (jsxRuntimeExports.jsx("span", { className: title({ size, className }), ...props, children: children }));
24270
24719
  }
24271
24720
 
24721
+ exports.Accordion = Accordion;
24272
24722
  exports.Avatar = Avatar;
24273
24723
  exports.Badge = badge$1;
24274
24724
  exports.Body = Body;