advi-ui 0.1.0
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/LICENSE +21 -0
- package/README.md +112 -0
- package/dist/advi-ui.cjs.js +46 -0
- package/dist/advi-ui.cjs.js.map +1 -0
- package/dist/advi-ui.css +2 -0
- package/dist/advi-ui.es.js +3814 -0
- package/dist/advi-ui.es.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/components/PageNotFound.d.ts +1 -0
- package/dist/src/components/ui/button.d.ts +11 -0
- package/dist/src/components/ui/card.d.ts +11 -0
- package/dist/src/components/ui/dialog.d.ts +19 -0
- package/dist/src/components/ui/header.d.ts +9 -0
- package/dist/src/components/ui/input.d.ts +9 -0
- package/dist/src/components/ui/label.d.ts +5 -0
- package/dist/src/components/ui/link.d.ts +14 -0
- package/dist/src/components/ui/loading.d.ts +9 -0
- package/dist/src/components/ui/modal.d.ts +12 -0
- package/dist/src/components/ui/page-aside.d.ts +9 -0
- package/dist/src/components/ui/textarea.d.ts +11 -0
- package/dist/src/components/ui/toast.d.ts +11 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/lib/utils.d.ts +2 -0
- package/dist/src/main.d.ts +0 -0
- package/package.json +98 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Atharva Devasthali
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# advi-ui
|
|
2
|
+
|
|
3
|
+
A personal React component library built with **Tailwind CSS**, **SCSS**, and **Storybook** — designed for clean, composable UI.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Stack
|
|
8
|
+
|
|
9
|
+
| Tool | Purpose |
|
|
10
|
+
|------|---------|
|
|
11
|
+
| React 19 + TypeScript | Component authoring |
|
|
12
|
+
| Vite | Build & dev server |
|
|
13
|
+
| Tailwind CSS + SCSS | Styling |
|
|
14
|
+
| class-variance-authority | Variant management |
|
|
15
|
+
| Radix UI / Base UI | Accessible primitives |
|
|
16
|
+
| Lucide React | Icons |
|
|
17
|
+
| Storybook 10 | Component explorer |
|
|
18
|
+
| Vitest + Playwright | Testing |
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Getting Started
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Install dependencies
|
|
26
|
+
npm install
|
|
27
|
+
|
|
28
|
+
# Start Storybook
|
|
29
|
+
npm run storybook
|
|
30
|
+
|
|
31
|
+
# Run tests
|
|
32
|
+
npm test
|
|
33
|
+
|
|
34
|
+
# Build the library
|
|
35
|
+
npm run build:lib
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
Install the package:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install advi-ui
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Import components and styles:
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
import { Button } from "advi-ui";
|
|
52
|
+
import "advi-ui/styles";
|
|
53
|
+
|
|
54
|
+
export default function App() {
|
|
55
|
+
return <Button variant="outline">Hello</Button>;
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Components
|
|
62
|
+
|
|
63
|
+
| Component | Description |
|
|
64
|
+
|-----------|-------------|
|
|
65
|
+
| `Button` | Multiple variants: `default`, `destructive`, `outline`, `secondary`, `ghost`, `link` |
|
|
66
|
+
| `Header` | Responsive nav header with mobile drawer |
|
|
67
|
+
| `Loading` | Animated spinner with custom text |
|
|
68
|
+
| `Toast` | Lightweight toast notifications — success, error, warning, info |
|
|
69
|
+
| `Card` | Container with header/content/footer slots |
|
|
70
|
+
| `Dialog` | Accessible modal dialog |
|
|
71
|
+
| `Input` | Styled text input |
|
|
72
|
+
| `Textarea` | Multi-line input |
|
|
73
|
+
| `Label` | Form label |
|
|
74
|
+
| `Link` | Internal and external link wrapper |
|
|
75
|
+
| `Modal` | Full-featured modal overlay |
|
|
76
|
+
| `PageAside` | Sidebar layout primitive |
|
|
77
|
+
| `PageNotFound` | 404 page component |
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Project Structure
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
src/
|
|
85
|
+
├── components/
|
|
86
|
+
│ ├── ui/ # Core UI primitives
|
|
87
|
+
│ └── PageNotFound.tsx
|
|
88
|
+
├── stories/
|
|
89
|
+
│ ├── ui/ # Storybook stories for UI components
|
|
90
|
+
│ └── components/ # Storybook stories for page-level components
|
|
91
|
+
└── styles/ # SCSS source files
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Scripts
|
|
97
|
+
|
|
98
|
+
| Command | Description |
|
|
99
|
+
|---------|-------------|
|
|
100
|
+
| `npm run dev` | Start Vite dev server |
|
|
101
|
+
| `npm run storybook` | Launch Storybook on port 6006 |
|
|
102
|
+
| `npm run build` | TypeScript check + Vite build |
|
|
103
|
+
| `npm run build:lib` | Build distributable library |
|
|
104
|
+
| `npm run build-storybook` | Build static Storybook |
|
|
105
|
+
| `npm test` | Run Vitest tests |
|
|
106
|
+
| `npm run lint` | Run ESLint |
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## License
|
|
111
|
+
|
|
112
|
+
MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require(`react`),l=s(c,1);c=s(c);let u=require(`react/jsx-runtime`),d=require(`react-dom`);d=s(d,1);function f(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function p(...e){return t=>{let n=!1,r=e.map(e=>{let r=f(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():f(e[t],null)}}}}function m(...e){return l.useCallback(p(...e),e)}var h=Symbol.for(`react.lazy`),g=l.use;function _(e){return typeof e==`object`&&!!e&&`then`in e}function v(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===h&&`_payload`in e&&_(e._payload)}function y(e){let t=b(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e;v(r)&&typeof g==`function`&&(r=g(r._payload));let a=l.Children.toArray(r),o=a.find(x);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var ee=y(`Slot`);function b(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(v(n)&&typeof g==`function`&&(n=g(n._payload)),l.isValidElement(n)){let e=C(n),i=S(r,n.props);return n.type!==l.Fragment&&(i.ref=t?p(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var te=Symbol(`radix.slottable`);function x(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===te}function S(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function C(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ne(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ne(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function re(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ne(e))&&(r&&(r+=` `),r+=t);return r}var w=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,ie=re,T=(e,t)=>n=>{if(t?.variants==null)return ie(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=w(t)||w(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return ie(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},E=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},D=(e,t)=>({classGroupId:e,validator:t}),O=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),k=`-`,ae=[],A=`arbitrary..`,oe=e=>{let t=le(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return ce(e);let n=e.split(k);return se(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?E(i,t):t:i||ae}return n[e]||ae}}},se=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=se(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(k):e.slice(t).join(k),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},ce=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?A+r:void 0})(),le=e=>{let{theme:t,classGroups:n}=e;return j(n,t)},j=(e,t)=>{let n=O();for(let r in e){let i=e[r];M(i,n,r,t)}return n},M=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ue(i,t,n,r)}},ue=(e,t,n,r)=>{if(typeof e==`string`){de(e,t,n);return}if(typeof e==`function`){N(e,t,n,r);return}fe(e,t,n,r)},de=(e,t,n)=>{let r=e===``?t:P(t,e);r.classGroupId=n},N=(e,t,n,r)=>{if(pe(e)){M(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(D(n,e))},fe=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];M(o,P(t,a),n,r)}},P=(e,t)=>{let n=e,r=t.split(k),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=O(),n.nextPart.set(t,i)),n=i}return n},pe=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,me=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},F=`!`,he=`:`,ge=[],_e=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ve=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===he){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(F)?(c=s.slice(0,-1),l=!0):s.startsWith(F)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return _e(t,l,c,u)};if(t){let e=t+he,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):_e(ge,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ye=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},be=e=>({cache:me(e.cacheSize),parseClassName:ve(e),sortModifiers:ye(e),...oe(e)}),xe=/\s+/,Se=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(xe),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+F:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Ce=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=we(n))&&(i&&(i+=` `),i+=r);return i},we=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=we(e[r]))&&(n&&(n+=` `),n+=t);return n},Te=(e,...t)=>{let n,r,i,a,o=o=>(n=be(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Se(e,n);return i(e,a),a};return a=o,(...e)=>a(Ce(...e))},Ee=[],I=e=>{let t=t=>t[e]||Ee;return t.isThemeGetter=!0,t},De=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Oe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ke=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,je=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Me=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ne=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>ke.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),z=e=>!!e&&Number.isInteger(Number(e)),Fe=e=>e.endsWith(`%`)&&R(e.slice(0,-1)),B=e=>Ae.test(e),Ie=()=>!0,Le=e=>je.test(e)&&!Me.test(e),Re=()=>!1,ze=e=>Ne.test(e),Be=e=>Pe.test(e),Ve=e=>!V(e)&&!U(e),He=e=>W(e,it,Re),V=e=>De.test(e),H=e=>W(e,at,Le),Ue=e=>W(e,ot,R),We=e=>W(e,ct,Ie),Ge=e=>W(e,st,Re),Ke=e=>W(e,nt,Re),qe=e=>W(e,rt,Be),Je=e=>W(e,lt,ze),U=e=>Oe.test(e),Ye=e=>G(e,at),Xe=e=>G(e,st),Ze=e=>G(e,nt),Qe=e=>G(e,it),$e=e=>G(e,rt),et=e=>G(e,lt,!0),tt=e=>G(e,ct,!0),W=(e,t,n)=>{let r=De.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},G=(e,t,n=!1)=>{let r=Oe.exec(e);return r?r[1]?t(r[1]):n:!1},nt=e=>e===`position`||e===`percentage`,rt=e=>e===`image`||e===`url`,it=e=>e===`length`||e===`size`||e===`bg-size`,at=e=>e===`length`,ot=e=>e===`number`,st=e=>e===`family-name`,ct=e=>e===`number`||e===`weight`,lt=e=>e===`shadow`,ut=Te(()=>{let e=I(`color`),t=I(`font`),n=I(`text`),r=I(`font-weight`),i=I(`tracking`),a=I(`leading`),o=I(`breakpoint`),s=I(`container`),c=I(`spacing`),l=I(`radius`),u=I(`shadow`),d=I(`inset-shadow`),f=I(`text-shadow`),p=I(`drop-shadow`),m=I(`blur`),h=I(`perspective`),g=I(`aspect`),_=I(`ease`),v=I(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],ee=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...ee(),U,V],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],x=()=>[`auto`,`contain`,`none`],S=()=>[U,V,c],C=()=>[L,`full`,`auto`,...S()],ne=()=>[z,`none`,`subgrid`,U,V],re=()=>[`auto`,{span:[`full`,z,U,V]},z,U,V],w=()=>[z,`auto`,U,V],ie=()=>[`auto`,`min`,`max`,`fr`,U,V],T=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],E=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],D=()=>[`auto`,...S()],O=()=>[L,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...S()],k=()=>[L,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...S()],ae=()=>[L,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...S()],A=()=>[e,U,V],oe=()=>[...ee(),Ze,Ke,{position:[U,V]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ce=()=>[`auto`,`cover`,`contain`,Qe,He,{size:[U,V]}],le=()=>[Fe,Ye,H],j=()=>[``,`none`,`full`,l,U,V],M=()=>[``,R,Ye,H],ue=()=>[`solid`,`dashed`,`dotted`,`double`],de=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],N=()=>[R,Fe,Ze,Ke],fe=()=>[``,`none`,m,U,V],P=()=>[`none`,R,U,V],pe=()=>[`none`,R,U,V],me=()=>[R,U,V],F=()=>[L,`full`,...S()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[B],breakpoint:[B],color:[Ie],container:[B],"drop-shadow":[B],ease:[`in`,`out`,`in-out`],font:[Ve],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[B],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[B],shadow:[B],spacing:[`px`,R],text:[B],"text-shadow":[B],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,L,V,U,g]}],container:[`container`],columns:[{columns:[R,V,U,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:b()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[z,`auto`,U,V]}],basis:[{basis:[L,`full`,`auto`,s,...S()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[R,L,`auto`,`initial`,`none`,V]}],grow:[{grow:[``,R,U,V]}],shrink:[{shrink:[``,R,U,V]}],order:[{order:[z,`first`,`last`,`none`,U,V]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...T(),`normal`]}],"justify-items":[{"justify-items":[...E(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...E()]}],"align-content":[{content:[`normal`,...T()]}],"align-items":[{items:[...E(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...E(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...E(),`baseline`]}],"place-self":[{"place-self":[`auto`,...E()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":S()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":S()}],"space-y-reverse":[`space-y-reverse`],size:[{size:O()}],"inline-size":[{inline:[`auto`,...k()]}],"min-inline-size":[{"min-inline":[`auto`,...k()]}],"max-inline-size":[{"max-inline":[`none`,...k()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...O()]}],"min-w":[{"min-w":[s,`screen`,`none`,...O()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...O()]}],h:[{h:[`screen`,`lh`,...O()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...O()]}],"max-h":[{"max-h":[`screen`,`lh`,...O()]}],"font-size":[{text:[`base`,n,Ye,H]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,tt,We]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Fe,V]}],"font-family":[{font:[Xe,Ge,t]}],"font-features":[{"font-features":[V]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,U,V]}],"line-clamp":[{"line-clamp":[R,`none`,U,Ue]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":[`none`,U,V]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,U,V]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[R,`from-font`,`auto`,U,H]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[R,`auto`,U,V]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:S()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,U,V]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,U,V]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},z,U,V],radial:[``,U,V],conic:[z,U,V]},$e,qe]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":M()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[R,U,V]}],"outline-w":[{outline:[``,R,Ye,H]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,et,Je]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,et,Je]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:M()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[R,H]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,et,Je]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[R,U,V]}],"mix-blend":[{"mix-blend":[...de(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":de()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[U,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":ee()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,U,V]}],filter:[{filter:[``,`none`,U,V]}],blur:[{blur:fe()}],brightness:[{brightness:[R,U,V]}],contrast:[{contrast:[R,U,V]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,et,Je]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,R,U,V]}],"hue-rotate":[{"hue-rotate":[R,U,V]}],invert:[{invert:[``,R,U,V]}],saturate:[{saturate:[R,U,V]}],sepia:[{sepia:[``,R,U,V]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,U,V]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[R,U,V]}],"backdrop-contrast":[{"backdrop-contrast":[R,U,V]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,R,U,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,U,V]}],"backdrop-invert":[{"backdrop-invert":[``,R,U,V]}],"backdrop-opacity":[{"backdrop-opacity":[R,U,V]}],"backdrop-saturate":[{"backdrop-saturate":[R,U,V]}],"backdrop-sepia":[{"backdrop-sepia":[``,R,U,V]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,U,V]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[R,`initial`,U,V]}],ease:[{ease:[`linear`,`initial`,_,U,V]}],delay:[{delay:[R,U,V]}],animate:[{animate:[`none`,v,U,V]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,U,V]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:P()}],"rotate-x":[{"rotate-x":P()}],"rotate-y":[{"rotate-y":P()}],"rotate-z":[{"rotate-z":P()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":[`scale-3d`],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[U,V,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":[`translate-none`],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,U,V]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,U,V]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[R,Ye,H,Ue]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function K(...e){return ut(re(e))}var dt=T(`vi-btn`,{variants:{variant:{default:`vi-btn-variant-default`,destructive:`vi-btn-variant-destructive`,outline:`vi-btn-variant-outline`,secondary:`vi-btn-variant-secondary`,ghost:`vi-btn-variant-ghost`,link:`vi-btn-variant-link`},size:{default:`vi-btn-size-default`,sm:`vi-btn-size-sm`,lg:`vi-btn-size-lg`,icon:`vi-btn-size-icon`}},defaultVariants:{variant:`default`,size:`default`}}),ft=(0,l.forwardRef)(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,u.jsx)(r?ee:`button`,{className:K(dt({variant:t,size:n,className:e})),ref:a,...i}));ft.displayName=`Button`;var pt=T(`vi-card-header`,{variants:{direction:{row:`flex-row`,column:`flex-col`}},defaultVariants:{direction:`column`}}),mt=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsx)(`div`,{ref:n,className:K(`vi-card`,e),...t}));mt.displayName=`Card`;var ht=(0,l.forwardRef)(({className:e,direction:t,...n},r)=>(0,u.jsx)(`div`,{ref:r,className:K(pt({direction:t}),e),...n}));ht.displayName=`CardHeader`;var gt=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsx)(`div`,{ref:n,className:K(`vi-card-title`,e),...t}));gt.displayName=`CardTitle`;var _t=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsx)(`div`,{ref:n,className:K(`vi-card-description`,e),...t}));_t.displayName=`CardDescription`;var vt=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsx)(`div`,{ref:n,className:K(`vi-card-content`,e),...t}));vt.displayName=`CardContent`;var yt=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsx)(`div`,{ref:n,className:K(`vi-card-footer`,e),...t}));yt.displayName=`CardFooter`,typeof window<`u`&&window.document&&window.document.createElement;function q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function bt(e,t){let n=l.createContext(t),r=e=>{let{children:t,...r}=e,i=l.useMemo(()=>r,Object.values(r));return(0,u.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=l.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function xt(e,t=[]){let n=[];function r(t,r){let i=l.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=l.useMemo(()=>o,Object.values(o));return(0,u.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=l.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>l.createContext(e));return function(n){let r=n?.[e]||t;return l.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,St(i,...t)]}function St(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Ct=globalThis?.document?l.useLayoutEffect:()=>{},wt=l.useId||(()=>void 0),Tt=0;function Et(e){let[t,n]=l.useState(wt());return Ct(()=>{e||n(e=>e??String(Tt++))},[e]),e||(t?`radix-${t}`:``)}var Dt=l.useInsertionEffect||Ct;function Ot({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=kt({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=l.useRef(e!==void 0);l.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,l.useCallback(t=>{if(s){let n=At(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function kt({defaultProp:e,onChange:t}){let[n,r]=l.useState(e),i=l.useRef(n),a=l.useRef(t);return Dt(()=>{a.current=t},[t]),l.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function At(e){return typeof e==`function`}function jt(e){let t=Mt(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(Pt);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Mt(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=It(n),i=Ft(r,n.props);return n.type!==l.Fragment&&(i.ref=t?p(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nt=Symbol(`radix.slottable`);function Pt(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Nt}function Ft(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function It(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var J=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=jt(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,u.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Lt(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}function Rt(e){let t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...e)=>t.current?.(...e),[])}function zt(e,t=globalThis?.document){let n=Rt(e);l.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Bt=`DismissableLayer`,Vt=`dismissableLayer.update`,Ht=`dismissableLayer.pointerDownOutside`,Ut=`dismissableLayer.focusOutside`,Wt,Gt=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kt=l.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,d=l.useContext(Gt),[f,p]=l.useState(null),h=f?.ownerDocument??globalThis?.document,[,g]=l.useState({}),_=m(t,e=>p(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),ee=v.indexOf(y),b=f?v.indexOf(f):-1,te=d.layersWithOutsidePointerEventsDisabled.size>0,x=b>=ee,S=Yt(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!x||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},h),C=Xt(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},h);return zt(e=>{b===d.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},h),l.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Wt=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Zt(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Wt)}},[f,h,n,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Zt())},[f,d]),l.useEffect(()=>{let e=()=>g({});return document.addEventListener(Vt,e),()=>document.removeEventListener(Vt,e)},[]),(0,u.jsx)(J.div,{...c,ref:_,style:{pointerEvents:te?x?`auto`:`none`:void 0,...e.style},onFocusCapture:q(e.onFocusCapture,C.onFocusCapture),onBlurCapture:q(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,S.onPointerDownCapture)})});Kt.displayName=Bt;var qt=`DismissableLayerBranch`,Jt=l.forwardRef((e,t)=>{let n=l.useContext(Gt),r=l.useRef(null),i=m(t,r);return l.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(J.div,{...e,ref:i})});Jt.displayName=qt;function Yt(e,t=globalThis?.document){let n=Rt(e),r=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){Qt(Ht,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xt(e,t=globalThis?.document){let n=Rt(e),r=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!r.current&&Qt(Ut,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zt(){let e=new CustomEvent(Vt);document.dispatchEvent(e)}function Qt(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Lt(i,a):i.dispatchEvent(a)}var $t=`focusScope.autoFocusOnMount`,en=`focusScope.autoFocusOnUnmount`,tn={bubbles:!1,cancelable:!0},nn=`FocusScope`,rn=l.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=l.useState(null),d=Rt(i),f=Rt(a),p=l.useRef(null),h=m(t,e=>c(e)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(g.paused||!s)return;let t=e.target;s.contains(t)?p.current=t:Y(p.current,{select:!0})},t=function(e){if(g.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Y(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Y(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,g.paused]),l.useEffect(()=>{if(s){dn.add(g);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent($t,tn);s.addEventListener($t,d),s.dispatchEvent(t),t.defaultPrevented||(an(mn(sn(s)),{select:!0}),document.activeElement===e&&Y(s))}return()=>{s.removeEventListener($t,d),setTimeout(()=>{let t=new CustomEvent(en,tn);s.addEventListener(en,f),s.dispatchEvent(t),t.defaultPrevented||Y(e??document.body,{select:!0}),s.removeEventListener(en,f),dn.remove(g)},0)}}},[s,d,f,g]);let _=l.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=on(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Y(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Y(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,u.jsx)(J.div,{tabIndex:-1,...o,ref:h,onKeyDown:_})});rn.displayName=nn;function an(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Y(r,{select:t}),document.activeElement!==n)return}function on(e){let t=sn(e);return[cn(t,e),cn(t.reverse(),e)]}function sn(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cn(e,t){for(let n of e)if(!ln(n,{upTo:t}))return n}function ln(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function un(e){return e instanceof HTMLInputElement&&`select`in e}function Y(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&un(e)&&t&&e.select()}}var dn=fn();function fn(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=pn(e,t),e.unshift(t)},remove(t){e=pn(e,t),e[0]?.resume()}}}function pn(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function mn(e){return e.filter(e=>e.tagName!==`A`)}var hn=`Portal`,gn=l.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=l.useState(!1);Ct(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?d.default.createPortal((0,u.jsx)(J.div,{...r,ref:t}),o):null});gn.displayName=hn;function _n(e,t){return l.useReducer((e,n)=>t[e][n]??e,e)}var vn=e=>{let{present:t,children:n}=e,r=yn(t),i=typeof n==`function`?n({present:r.isPresent}):l.Children.only(n),a=m(r.ref,xn(i));return typeof n==`function`||r.isPresent?l.cloneElement(i,{ref:a}):null};vn.displayName=`Presence`;function yn(e){let[t,n]=l.useState(),r=l.useRef(null),i=l.useRef(e),a=l.useRef(`none`),[o,s]=_n(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return l.useEffect(()=>{let e=bn(r.current);a.current=o===`mounted`?e:`none`},[o]),Ct(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=bn(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Ct(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=bn(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=bn(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:l.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function bn(e){return e?.animationName||`none`}function xn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sn=0;function Cn(){l.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??wn()),document.body.insertAdjacentElement(`beforeend`,e[1]??wn()),Sn++,()=>{Sn===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Sn--}},[])}function wn(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var X=function(){return X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},X.apply(this,arguments)};function Tn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function En(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Dn=`right-scroll-bar-position`,On=`width-before-scroll-bar`,kn=`with-scroll-bars-hidden`,An=`--removed-body-scroll-bar-size`;function jn(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Mn(e,t){var n=(0,c.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Nn=typeof window<`u`?c.useLayoutEffect:c.useEffect,Pn=new WeakMap;function Fn(e,t){var n=Mn(t||null,function(t){return e.forEach(function(e){return jn(e,t)})});return Nn(function(){var t=Pn.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||jn(e,null)}),i.forEach(function(e){r.has(e)||jn(e,a)})}Pn.set(n,e)},[e]),n}function In(e){return e}function Ln(e,t){t===void 0&&(t=In);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Rn(e){e===void 0&&(e={});var t=Ln(null);return t.options=X({async:!0,ssr:!1},e),t}var zn=function(e){var t=e.sideCar,n=Tn(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return c.createElement(r,X({},n))};zn.isSideCarExport=!0;function Bn(e,t){return e.useMedium(t),zn}var Vn=Rn(),Hn=function(){},Un=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Hn,onWheelCapture:Hn,onTouchMoveCapture:Hn}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,ee=e.gapMode,b=Tn(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),te=p,x=Fn([n,t]),S=X(X({},b),i);return c.createElement(c.Fragment,null,d&&c.createElement(te,{sideCar:Vn,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:ee}),o?c.cloneElement(c.Children.only(s),X(X({},S),{ref:x})):c.createElement(y,X({},S,{className:l,ref:x}),s))});Un.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Un.classNames={fullWidth:On,zeroRight:Dn};var Wn,Gn=function(){if(Wn)return Wn;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Kn(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Gn();return t&&e.setAttribute(`nonce`,t),e}function qn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Jn(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Yn=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Kn())&&(qn(t,n),Jn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xn=function(){var e=Yn();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Zn=function(){var e=Xn();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Qn={left:0,top:0,right:0,gap:0},$n=function(e){return parseInt(e||``,10)||0},er=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[$n(n),$n(r),$n(i)]},tr=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Qn;var t=er(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nr=Zn(),rr=`data-scroll-locked`,ir=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
2
|
+
.${kn} {
|
|
3
|
+
overflow: hidden ${r};
|
|
4
|
+
padding-right: ${s}px ${r};
|
|
5
|
+
}
|
|
6
|
+
body[${rr}] {
|
|
7
|
+
overflow: hidden ${r};
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
10
|
+
padding-left: ${i}px;
|
|
11
|
+
padding-top: ${a}px;
|
|
12
|
+
padding-right: ${o}px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: ${s}px ${r};
|
|
16
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.${Dn} {
|
|
20
|
+
right: ${s}px ${r};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.${On} {
|
|
24
|
+
margin-right: ${s}px ${r};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.${Dn} .${Dn} {
|
|
28
|
+
right: 0 ${r};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.${On} .${On} {
|
|
32
|
+
margin-right: 0 ${r};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[${rr}] {
|
|
36
|
+
${An}: ${s}px;
|
|
37
|
+
}
|
|
38
|
+
`},ar=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},or=function(){c.useEffect(function(){return document.body.setAttribute(rr,(ar()+1).toString()),function(){var e=ar()-1;e<=0?document.body.removeAttribute(rr):document.body.setAttribute(rr,e.toString())}},[])},sr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;or();var a=c.useMemo(function(){return tr(i)},[i]);return c.createElement(nr,{styles:ir(a,!t,i,n?``:`!important`)})},cr=!1;if(typeof window<`u`)try{var lr=Object.defineProperty({},`passive`,{get:function(){return cr=!0,!0}});window.addEventListener(`test`,lr,lr),window.removeEventListener(`test`,lr,lr)}catch{cr=!1}var ur=cr?{passive:!1}:!1,dr=function(e){return e.tagName===`TEXTAREA`},fr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!dr(e)&&n[t]===`visible`)},pr=function(e){return fr(e,`overflowY`)},mr=function(e){return fr(e,`overflowX`)},hr=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),vr(e,r)){var i=yr(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gr=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},_r=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},vr=function(e,t){return e===`v`?pr(t):mr(t)},yr=function(e,t){return e===`v`?gr(t):_r(t)},br=function(e,t){return e===`h`&&t===`rtl`?-1:1},xr=function(e,t,n,r,i){var a=br(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=yr(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&vr(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Sr=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cr=function(e){return[e.deltaX,e.deltaY]},wr=function(e){return e&&`current`in e?e.current:e},Tr=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Er=function(e){return`
|
|
39
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
41
|
+
`},Dr=0,Or=[];function kr(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(Dr++)[0],a=c.useState(Zn)[0],o=c.useRef(e);c.useEffect(function(){o.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=En([e.lockRef.current],(e.shards||[]).map(wr),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Sr(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=hr(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=hr(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return xr(h,t,e,h===`h`?s:c,!0)},[]),l=c.useCallback(function(e){var n=e;if(!(!Or.length||Or[Or.length-1]!==a)){var r=`deltaY`in n?Cr(n):Sr(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Tr(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(wr).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ar(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=Sr(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,Cr(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,Sr(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return Or.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,ur),document.addEventListener(`touchmove`,l,ur),document.addEventListener(`touchstart`,d,ur),function(){Or=Or.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,l,ur),document.removeEventListener(`touchmove`,l,ur),document.removeEventListener(`touchstart`,d,ur)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Er(i)}):null,m?c.createElement(sr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ar(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var jr=Bn(Vn,kr),Mr=c.forwardRef(function(e,t){return c.createElement(Un,X({},e,{ref:t,sideCar:jr}))});Mr.classNames=Un.classNames;var Nr=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Pr=new WeakMap,Fr=new WeakMap,Ir={},Lr=0,Rr=function(e){return e&&(e.host||Rr(e.parentNode))},zr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Rr(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Br=function(e,t,n,r){var i=zr(t,Array.isArray(e)?e:[e]);Ir[n]||(Ir[n]=new WeakMap);var a=Ir[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Pr.get(e)||0)+1,l=(a.get(e)||0)+1;Pr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Fr.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Lr++,function(){o.forEach(function(e){var t=Pr.get(e)-1,i=a.get(e)-1;Pr.set(e,t),a.set(e,i),t||(Fr.has(e)||e.removeAttribute(r),Fr.delete(e)),i||e.removeAttribute(n)}),Lr--,Lr||(Pr=new WeakMap,Pr=new WeakMap,Fr=new WeakMap,Ir={})}},Vr=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Nr(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Br(r,i,n,`aria-hidden`)):function(){return null}};function Hr(e){let t=Ur(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(Gr);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ur(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=qr(n),i=Kr(r,n.props);return n.type!==l.Fragment&&(i.ref=t?p(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wr=Symbol(`radix.slottable`);function Gr(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Wr}function Kr(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function qr(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Jr=`Dialog`,[Yr,Xr]=xt(Jr),[Zr,Z]=Yr(Jr),Qr=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=l.useRef(null),c=l.useRef(null),[d,f]=Ot({prop:r,defaultProp:i??!1,onChange:a,caller:Jr});return(0,u.jsx)(Zr,{scope:t,triggerRef:s,contentRef:c,contentId:Et(),titleId:Et(),descriptionId:Et(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(e=>!e),[f]),modal:o,children:n})};Qr.displayName=Jr;var $r=`DialogTrigger`,ei=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z($r,n),a=m(t,i.triggerRef);return(0,u.jsx)(J.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":yi(i.open),...r,ref:a,onClick:q(e.onClick,i.onOpenToggle)})});ei.displayName=$r;var ti=`DialogPortal`,[ni,ri]=Yr(ti,{forceMount:void 0}),ii=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Z(ti,t);return(0,u.jsx)(ni,{scope:t,forceMount:n,children:l.Children.map(r,e=>(0,u.jsx)(vn,{present:n||a.open,children:(0,u.jsx)(gn,{asChild:!0,container:i,children:e})}))})};ii.displayName=ti;var ai=`DialogOverlay`,oi=l.forwardRef((e,t)=>{let n=ri(ai,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Z(ai,e.__scopeDialog);return a.modal?(0,u.jsx)(vn,{present:r||a.open,children:(0,u.jsx)(ci,{...i,ref:t})}):null});oi.displayName=ai;var si=Hr(`DialogOverlay.RemoveScroll`),ci=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(ai,n);return(0,u.jsx)(Mr,{as:si,allowPinchZoom:!0,shards:[i.contentRef],children:(0,u.jsx)(J.div,{"data-state":yi(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),Q=`DialogContent`,li=l.forwardRef((e,t)=>{let n=ri(Q,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Z(Q,e.__scopeDialog);return(0,u.jsx)(vn,{present:r||a.open,children:a.modal?(0,u.jsx)(ui,{...i,ref:t}):(0,u.jsx)(di,{...i,ref:t})})});li.displayName=Q;var ui=l.forwardRef((e,t)=>{let n=Z(Q,e.__scopeDialog),r=l.useRef(null),i=m(t,n.contentRef,r);return l.useEffect(()=>{let e=r.current;if(e)return Vr(e)},[]),(0,u.jsx)(fi,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:q(e.onFocusOutside,e=>e.preventDefault())})}),di=l.forwardRef((e,t)=>{let n=Z(Q,e.__scopeDialog),r=l.useRef(!1),i=l.useRef(!1);return(0,u.jsx)(fi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),fi=l.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Z(Q,n),c=l.useRef(null),d=m(t,c);return Cn(),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,u.jsx)(Kt,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":yi(s.open),...o,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ci,{titleId:s.titleId}),(0,u.jsx)(Ti,{contentRef:c,descriptionId:s.descriptionId})]})]})}),pi=`DialogTitle`,mi=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(pi,n);return(0,u.jsx)(J.h2,{id:i.titleId,...r,ref:t})});mi.displayName=pi;var hi=`DialogDescription`,gi=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(hi,n);return(0,u.jsx)(J.p,{id:i.descriptionId,...r,ref:t})});gi.displayName=hi;var _i=`DialogClose`,vi=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(_i,n);return(0,u.jsx)(J.button,{type:`button`,...r,ref:t,onClick:q(e.onClick,()=>i.onOpenChange(!1))})});vi.displayName=_i;function yi(e){return e?`open`:`closed`}var bi=`DialogTitleWarning`,[xi,Si]=bt(bi,{contentName:Q,titleName:pi,docsSlug:`dialog`}),Ci=({titleId:e})=>{let t=Si(bi),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
42
|
+
|
|
43
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
|
+
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wi=`DialogDescriptionWarning`,Ti=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Si(wi).contentName}}.`;return l.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ei=Qr,Di=ei,Oi=ii,ki=oi,Ai=li,ji=mi,Mi=gi,Ni=vi,Pi=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Fi=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Ii=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Li=e=>{let t=Ii(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ri={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},zi=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Bi=(0,c.createContext)({}),Vi=()=>(0,c.useContext)(Bi),Hi=(0,c.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},l)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=Vi()??{},h=r??f?Number(n??d)*24/Number(t??u):n??d;return(0,c.createElement)(`svg`,{ref:l,...Ri,width:t??u??Ri.width,height:t??u??Ri.height,stroke:e??p,strokeWidth:h,className:Pi(`lucide`,m,i),...!a&&!zi(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,c.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Ui=(e,t)=>{let n=(0,c.forwardRef)(({className:n,...r},i)=>(0,c.createElement)(Hi,{ref:i,iconNode:t,className:Pi(`lucide-${Fi(Li(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Li(e),n},Wi=Ui(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),Gi=Ui(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Ki=Ui(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),qi=Ui(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Ji=Ei,Yi=Di,Xi=Oi,Zi=Ni,Qi=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsx)(ki,{ref:n,className:K(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));Qi.displayName=ki.displayName;var $i=(0,l.forwardRef)(({className:e,children:t,...n},r)=>(0,u.jsxs)(Xi,{children:[(0,u.jsx)(Qi,{}),(0,u.jsxs)(Ai,{ref:r,className:K(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...n,children:[t,(0,u.jsxs)(Ni,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,children:[(0,u.jsx)(qi,{className:`h-4 w-4`}),(0,u.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));$i.displayName=Ai.displayName;var ea=({className:e,...t})=>(0,u.jsx)(`div`,{className:K(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});ea.displayName=`DialogHeader`;var ta=({className:e,...t})=>(0,u.jsx)(`div`,{className:K(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});ta.displayName=`DialogFooter`;var na=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsx)(ji,{ref:n,className:K(`text-lg font-semibold leading-none tracking-tight`,e),...t}));na.displayName=ji.displayName;var ra=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsx)(Mi,{ref:n,className:K(`text-sm text-muted-foreground`,e),...t}));ra.displayName=Mi.displayName;var ia=({link:e,className:t,noBaseClass:n=!1,children:r})=>(0,u.jsx)(u.Fragment,{children:e.is_external_link?(0,u.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:n?t:K(`vi-link`,t),title:e.text,children:r??e.text}):(0,u.jsx)(`a`,{href:e.url,className:n?t:K(`vi-link`,t),title:e.text,children:r??e.text})}),aa=({content:e})=>{let[t,n]=(0,l.useState)(!1);return(0,u.jsxs)(`header`,{className:`vi-header`,children:[(0,u.jsxs)(`div`,{className:`vi-header-desktop`,children:[(0,u.jsx)(`div`,{className:`vi-header-logo-wrapper`,children:(0,u.jsxs)(ia,{link:e.logo_link,className:`vi-header-logo-link group`,noBaseClass:!0,children:[(0,u.jsx)(`div`,{className:`vi-header-logo-icon-wrapper group-hover:shadow-lg`,children:(0,u.jsx)(Wi,{className:`vi-header-logo-icon`})}),(0,u.jsx)(`span`,{className:`vi-header-logo-text`,children:e.logo_link.text})]})}),e.nav_items&&(0,u.jsx)(`nav`,{className:`hidden md:flex items-center gap-1`,children:e.nav_items.map((e,t)=>(0,u.jsx)(ia,{className:`px-4 py-2 rounded-lg text-sm font-medium text-gray-700 dark:text-gray-300 hover:text-[#BB3E00] dark:hover:text-[#F7AD45] hover:bg-gray-100 dark:hover:bg-gray-900 transition-colors`,link:e,noBaseClass:!0},`nav-link-${t}`))}),(0,u.jsx)(`div`,{className:`hidden md:flex items-center gap-3`,children:(0,u.jsx)(ft,{asChild:!0,className:`bg-gradient-to-r from-[#F7AD45] to-[#BB3E00] hover:from-[#F7AD45]/90 hover:to-[#BB3E00]/90 text-white shadow-lg shadow-orange-500/20 border-0`,children:(0,u.jsx)(ia,{link:e.login_link,noBaseClass:!0})})}),(0,u.jsx)(`button`,{className:`md:hidden p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-900 transition-colors`,onClick:()=>n(!t),"aria-label":`Toggle menu`,children:t?(0,u.jsx)(qi,{size:24,className:`text-gray-700 dark:text-gray-300`}):(0,u.jsx)(Ki,{size:24,className:`text-gray-700 dark:text-gray-300`})})]}),(0,u.jsx)(`div`,{className:K(`md:hidden border-t bg-white/95 dark:bg-gray-950/95 backdrop-blur-md overflow-hidden transition-all duration-300 ease-in-out`,t?`max-h-96 opacity-100`:`max-h-0 opacity-0`),children:(0,u.jsxs)(`nav`,{className:`flex flex-col px-6 py-4 gap-2`,children:[e.nav_items&&e.nav_items.map((e,t)=>(0,u.jsx)(ia,{className:`px-4 py-2 rounded-lg text-sm font-medium text-gray-700 dark:text-gray-300 hover:text-[#BB3E00] dark:hover:text-[#F7AD45] hover:bg-gray-100 dark:hover:bg-gray-900 transition-colors`,link:e,noBaseClass:!0},`nav-link-${t}`)),(0,u.jsx)(`div`,{className:`flex flex-col gap-2 mt-4 pt-4 border-t`,children:(0,u.jsx)(ft,{className:`w-full bg-gradient-to-r from-[#F7AD45] to-[#BB3E00] hover:from-[#F7AD45]/90 hover:to-[#BB3E00]/90 text-white shadow-lg shadow-orange-500/20 border-0`,children:(0,u.jsx)(ia,{link:e.login_link,noBaseClass:!0})})})]})})]})},oa=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=y(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,u.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),sa=`Label`,ca=l.forwardRef((e,t)=>(0,u.jsx)(oa.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));ca.displayName=sa;var la=ca,ua=T(`text-sm font-normal font-rubik leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),da=l.default.forwardRef(({className:e,...t},n)=>(0,u.jsx)(la,{ref:n,className:K(ua(),e),...t}));da.displayName=la.displayName;var fa=(0,l.forwardRef)(({className:e,type:t,label:n,description:r,validate:i,onValueChange:a,...o},s)=>{let[c,d]=(0,l.useState)(null);return(0,u.jsxs)(`div`,{className:`flex flex-col gap-1 w-full`,children:[n&&(0,u.jsx)(da,{children:n}),(0,u.jsx)(`input`,{ref:s,type:t,className:K(`flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 font-rubik text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,c&&`border-red-500 focus-visible:ring-red-500`,e),onChange:e=>{a&&a(e.target.value),i&&d(i(e.target.value)),o.onChange?.(e)},...o}),r&&(0,u.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:r}),c&&(0,u.jsx)(`p`,{className:`text-xs text-red-500 font-medium`,children:c})]})});fa.displayName=`Input`;var pa=({text:e=`Loading...`,className:t,...n})=>(0,u.jsxs)(`div`,{className:K(`flex flex-row items-center justify-center gap-3 p-4 text-muted-foreground`,t),...n,children:[(0,u.jsxs)(`svg`,{className:`h-6 w-6 animate-spin text-muted-foreground`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,u.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,u.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z`})]}),(0,u.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e})]});pa.displayName=`Loading`;var ma=({open:e,onOpenChange:t,trigger:n,title:r,description:i,children:a,footer:o})=>(0,u.jsxs)(Ji,{open:e,onOpenChange:t,children:[(0,u.jsx)(Yi,{asChild:!0,children:n}),(0,u.jsxs)($i,{className:`sm:max-w-md`,children:[(0,u.jsxs)(ea,{children:[r&&(0,u.jsx)(na,{children:r}),i&&(0,u.jsx)(ra,{children:i})]}),(0,u.jsx)(`div`,{className:`py-4`,children:a}),o&&(0,u.jsx)(ta,{children:o})]})]}),ha=({children:e,title:t,userName:n,onLogout:r})=>(0,u.jsxs)(`aside`,{className:`w-64 bg-white dark:bg-neutral-800 shadow-md p-4 flex flex-col justify-between h-screen`,children:[(0,u.jsxs)(`div`,{children:[t&&(0,u.jsx)(`div`,{className:`mb-6 px-2 py-3 border-b border-border`,children:(0,u.jsx)(`span`,{className:`text-xl font-bold tracking-tight text-gray-900 dark:text-white`,children:t})}),(0,u.jsx)(`nav`,{className:`space-y-1 mt-2`,children:e})]}),(0,u.jsxs)(`div`,{children:[n&&(0,u.jsx)(`p`,{className:`text-xs text-muted-foreground px-1 mb-2 truncate`,children:n}),r&&(0,u.jsxs)(ft,{variant:`outline`,className:`w-full justify-start`,onClick:r,children:[(0,u.jsx)(Gi,{className:`mr-2 h-4 w-4`}),`Logout`]})]})]}),ga=(0,l.forwardRef)(({className:e,label:t,description:n,maskedLength:r=8,hidden:i,validate:a,onValidationChange:o,...s},c)=>{let[d,f]=(0,l.useState)(null);return(0,u.jsxs)(`div`,{className:`flex flex-col gap-1 w-full`,children:[t&&(0,u.jsx)(`label`,{className:`text-sm font-medium`,children:t}),(0,u.jsxs)(`div`,{className:`relative`,children:[(0,u.jsx)(`textarea`,{ref:c,className:K(`flex min-h-[36px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,d&&`border-red-500 focus-visible:ring-red-500`,s.value&&i&&`text-transparent`,e),onChange:e=>{if(a){let t=a(e.target.value);f(t),o?.(!t)}s.onChange?.(e)},...s,placeholder:i?void 0:s.placeholder}),i&&(0,u.jsx)(`div`,{className:`absolute inset-0 p-2 h-fit pointer-events-none`,children:`•`.repeat(r)})]}),n&&(0,u.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:n}),d&&(0,u.jsx)(`p`,{className:`text-xs text-red-500 font-medium`,children:d})]})});ga.displayName=`Textarea`;var $=null,_a=({children:e})=>{let[t,n]=(0,l.useState)([]),r=(0,l.useCallback)(e=>{let t=Date.now().toString()+Math.random().toString(36),r={...e,id:t};n(e=>[...e,r].slice(-5)),setTimeout(()=>{n(e=>e.filter(e=>e.id!==t))},e.duration||5e3)},[]);return(0,l.useEffect)(()=>($=r,()=>{$=null}),[r]),(0,u.jsxs)(u.Fragment,{children:[e,(0,u.jsx)(`div`,{className:`vi-toast-viewport`,children:t.map(e=>(0,u.jsx)(va,{...e},e.id))})]})},va=({variant:e,title:t,description:n})=>{let r=!!t;return(0,u.jsx)(`div`,{className:K(`vi-toast`,`vi-toast-variant-${e}`),children:(0,u.jsxs)(`div`,{className:`vi-toast-content`,children:[r&&(0,u.jsx)(`div`,{className:`vi-toast-title`,children:t}),n&&(0,u.jsx)(`div`,{className:K(`vi-toast-description`,!r&&`vi-toast-description-colored`),children:n})]})})},ya={success:(e,t)=>{let n=t!==void 0;$?.({variant:`success`,title:n?e:void 0,description:n?t:e})},error:(e,t)=>{let n=t!==void 0;$?.({variant:`error`,title:n?e:void 0,description:n?t:e})},warning:(e,t)=>{let n=t!==void 0;$?.({variant:`warning`,title:n?e:void 0,description:n?t:e})},info:(e,t)=>{let n=t!==void 0;$?.({variant:`info`,title:n?e:void 0,description:n?t:e})},default:(e,t)=>{let n=t!==void 0;$?.({variant:`default`,title:n?e:void 0,description:n?t:e})}},ba=()=>(0,u.jsxs)(`div`,{className:`relative flex h-screen w-full flex-col items-center justify-center overflow-hidden bg-background px-4`,children:[(0,u.jsx)(`div`,{className:`absolute inset-0 opacity-40 dark:opacity-15`,style:{background:`linear-gradient(135deg, rgba(247, 173, 69, 0.15) 0%, transparent 50%, rgba(101, 124, 106, 0.15) 100%)`}}),(0,u.jsx)(`div`,{className:`absolute top-1/4 left-1/4 h-64 w-64 animate-pulse rounded-full blur-3xl opacity-70 dark:opacity-40`,style:{backgroundColor:`rgba(247, 173, 69, 0.3)`}}),(0,u.jsx)(`div`,{className:`absolute bottom-1/4 right-1/4 h-64 w-64 animate-pulse rounded-full blur-3xl opacity-70 dark:opacity-40`,style:{backgroundColor:`rgba(162, 185, 167, 0.3)`,animationDelay:`1s`}}),(0,u.jsxs)(`div`,{className:`relative z-10 flex flex-col items-center gap-6 text-center`,children:[(0,u.jsxs)(`div`,{className:`relative`,children:[(0,u.jsx)(`h1`,{className:`text-9xl font-black tracking-tighter bg-clip-text text-transparent animate-in fade-in slide-in-from-bottom-4 duration-700`,style:{backgroundImage:`linear-gradient(135deg, #BB3E00 0%, #F7AD45 40%, #657C6A 70%, #A2B9A7 100%)`},children:`404`}),(0,u.jsx)(`div`,{className:`absolute inset-0 -z-10 blur-2xl opacity-50 dark:opacity-30`,style:{background:`linear-gradient(135deg, #F7AD45, #657C6A)`}})]}),(0,u.jsxs)(`div`,{className:`space-y-3 animate-in fade-in slide-in-from-bottom-4 duration-700 delay-150`,children:[(0,u.jsx)(`h2`,{className:`text-2xl font-semibold text-foreground`,children:`Page Not Found`}),(0,u.jsx)(`p`,{className:`max-w-md text-base text-muted-foreground`,children:`Looks like you've ventured into uncharted territory. The page you're looking for doesn't exist or has been moved.`})]}),(0,u.jsx)(`div`,{className:`flex flex-col sm:flex-row gap-3 animate-in fade-in slide-in-from-bottom-4 duration-700 delay-300`,children:(0,u.jsx)(ft,{asChild:!0,size:`lg`,className:`group relative overflow-hidden text-white border-0 shadow-lg hover:shadow-xl transition-shadow`,style:{background:`linear-gradient(135deg, #F7AD45 0%, #BB3E00 100%)`,boxShadow:`0 10px 40px -10px rgba(187, 62, 0, 0.3)`},children:(0,u.jsx)(`a`,{href:`/`,className:`hover:opacity-90 transition-opacity`,children:(0,u.jsxs)(`span`,{className:`relative z-10 flex items-center gap-2`,children:[(0,u.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`transition-transform group-hover:-translate-x-1`,children:[(0,u.jsx)(`path`,{d:`m12 19-7-7 7-7`}),(0,u.jsx)(`path`,{d:`M19 12H5`})]}),`Back to Home`]})})})})]}),(0,u.jsx)(`div`,{className:`absolute bottom-0 left-0 right-0 h-px opacity-30 dark:opacity-20`,style:{background:`linear-gradient(90deg, transparent, #F7AD45, #657C6A, transparent)`}})]});exports.Button=ft,exports.Card=mt,exports.CardContent=vt,exports.CardDescription=_t,exports.CardFooter=yt,exports.CardHeader=ht,exports.CardTitle=gt,exports.Dialog=Ji,exports.DialogClose=Zi,exports.DialogContent=$i,exports.DialogDescription=ra,exports.DialogFooter=ta,exports.DialogHeader=ea,exports.DialogOverlay=Qi,exports.DialogPortal=Xi,exports.DialogTitle=na,exports.DialogTrigger=Yi,exports.Header=aa,exports.Input=fa,exports.Label=da,exports.Link=ia,exports.Loading=pa,exports.Modal=ma,exports.PageAside=ha,exports.PageNotFound=ba,exports.Textarea=ga,exports.ToastProvider=_a,exports.buttonVariants=dt,exports.cn=K,exports.toast=ya;
|
|
46
|
+
//# sourceMappingURL=advi-ui.cjs.js.map
|