@vitrumui/react 0.0.0-stage → 1.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.md +3 -0
- package/README.md +87 -2
- package/THIRD_PARTY_NOTICES.md +25 -0
- package/dist/chunk-5H6FHJ6K.js +2 -0
- package/dist/chunk-BCPB75TR.js +2 -0
- package/dist/chunk-D6ZLXL4J.js +2 -0
- package/dist/chunk-E2KN4H6B.js +2 -0
- package/dist/chunk-IMUNBL7U.js +2 -0
- package/dist/chunk-KL26ZVD4.js +2 -0
- package/dist/chunk-P3SF73HG.js +2 -0
- package/dist/chunk-Q5GOHPZ3.js +2 -0
- package/dist/chunk-TIG2HRDS.js +2 -0
- package/dist/chunk-U3CZMSFP.js +2 -0
- package/dist/chunk-ULHSS732.js +2 -0
- package/dist/chunk-UMMRBERM.js +2 -0
- package/dist/chunk-YZILLPGA.js +2 -0
- package/dist/chunk-ZCV4ENGP.js +2 -0
- package/dist/controls/Checkbox.d.ts +28 -0
- package/dist/controls/Checkbox.js +3 -0
- package/dist/controls/Icon.d.ts +14 -0
- package/dist/controls/RangeSlider.d.ts +29 -0
- package/dist/controls/RangeSlider.js +3 -0
- package/dist/controls/Switch.d.ts +19 -0
- package/dist/controls/Switch.js +3 -0
- package/dist/controls/glass/draw.d.ts +29 -0
- package/dist/controls/glass/physics.d.ts +85 -0
- package/dist/controls/glass/runtime.d.ts +33 -0
- package/dist/controls/glass/tokens.d.ts +16 -0
- package/dist/controls/glass/useGlassCanvas.d.ts +10 -0
- package/dist/controls/shared.d.ts +8 -0
- package/dist/glass-action-button.d.ts +26 -0
- package/dist/glass-action-button.js +3 -0
- package/dist/glass-badge.d.ts +12 -0
- package/dist/glass-badge.js +3 -0
- package/dist/glass-button-group.d.ts +35 -0
- package/dist/glass-button-group.js +3 -0
- package/dist/glass-button.d.ts +19 -0
- package/dist/glass-button.js +3 -0
- package/dist/glass-card.d.ts +18 -0
- package/dist/glass-card.js +3 -0
- package/dist/glass-dropdown-menu.d.ts +29 -0
- package/dist/glass-dropdown-menu.js +3 -0
- package/dist/glass-layer.d.ts +97 -0
- package/dist/glass-lens.d.ts +7 -0
- package/dist/glass-menu.d.ts +43 -0
- package/dist/glass-menu.js +3 -0
- package/dist/glass-popover.d.ts +19 -0
- package/dist/glass-popover.js +3 -0
- package/dist/glass-popup.d.ts +27 -0
- package/dist/glass-select.d.ts +19 -0
- package/dist/glass-select.js +3 -0
- package/dist/glass-slide-to-confirm.d.ts +32 -0
- package/dist/glass-slide-to-confirm.js +3 -0
- package/dist/glass-surface.d.ts +71 -0
- package/dist/glass-surface.js +3 -0
- package/dist/glass-tabs.d.ts +19 -0
- package/dist/glass-tabs.js +3 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +3 -0
- package/dist/runtime-2U4MAR2W.js +2 -0
- package/dist/styles.css +3 -0
- package/dist/styles.css.d.ts +1 -0
- package/dist/theme.d.ts +115 -0
- package/dist/theme.js +3 -0
- package/package.json +121 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from "react";
|
|
2
|
+
import { type GlassMaterial, type GlassOptics } from "./glass-layer.js";
|
|
3
|
+
export type GlassCardProps = {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
/** Glass look. Default `clear`: frosts and bends what is behind. `tinted` takes the card's own background colour. */
|
|
6
|
+
material?: GlassMaterial;
|
|
7
|
+
/** Clear glass: how much tint covers the backdrop (0–1, default 0.7): white on a light page, black on a dark one. */
|
|
8
|
+
tint?: number;
|
|
9
|
+
/** Clear glass: how much the backdrop is frosted, in px like CSS `blur()` (default 5). `0` shows it sharp. */
|
|
10
|
+
blur?: number;
|
|
11
|
+
/** Repaint the backdrop every frame, for content that moves behind the card. It then draws while on screen. */
|
|
12
|
+
live?: boolean;
|
|
13
|
+
/** Fine-tuning of the glass: tint colour, a rim line, frost mix, bend, light and shadow. Merged over the card's own. */
|
|
14
|
+
optics?: GlassOptics;
|
|
15
|
+
className?: string;
|
|
16
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "children" | "className">;
|
|
17
|
+
export declare function GlassCard({ children, material, tint, blur, live, optics, className, style, ...rest }: GlassCardProps): import("react").JSX.Element;
|
|
18
|
+
export default GlassCard;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
(function(_0x5c94a9,_0x606383){var _0x1cfc23=_0x393a,_0x275a47=_0x5c94a9();while(!![]){try{var _0x2191ab=parseInt(_0x1cfc23(0xcd))/0x1+-parseInt(_0x1cfc23(0xd0))/0x2+-parseInt(_0x1cfc23(0xcf))/0x3*(-parseInt(_0x1cfc23(0xc9))/0x4)+parseInt(_0x1cfc23(0xd1))/0x5+-parseInt(_0x1cfc23(0xd2))/0x6+parseInt(_0x1cfc23(0xcc))/0x7*(-parseInt(_0x1cfc23(0xce))/0x8)+parseInt(_0x1cfc23(0xcb))/0x9*(parseInt(_0x1cfc23(0xca))/0xa);if(_0x2191ab===_0x606383)break;else _0x275a47['push'](_0x275a47['shift']());}catch(_0x3a9eec){_0x275a47['push'](_0x275a47['shift']());}}}(_0x3036,0x3ee78));export{a as GlassCard,b as default}from'./chunk-KL26ZVD4.js';import'./chunk-IMUNBL7U.js';function _0x393a(_0x261350,_0x5032e5){_0x261350=_0x261350-0xc9;var _0x303603=_0x3036();var _0x393a02=_0x303603[_0x261350];return _0x393a02;}function _0x3036(){var _0x51f8c7=['1708782XwZheD','60TWRrIJ','4063310WLvarM','9hAsrLi','1133461FsEKyQ','435706Ftsial','16lPAPTe','14733MHGmOd','260192CyjkME','403465sFPcdy'];_0x3036=function(){return _0x51f8c7;};return _0x3036();}import'./chunk-ZCV4ENGP.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MenuContent, MenuItem, MenuTrigger, type MenuProps } from "@ui-sdk/react/menu";
|
|
2
|
+
import { type CSSProperties, type ComponentProps, type ReactNode } from "react";
|
|
3
|
+
export type GlassDropdownMenuProps = MenuProps;
|
|
4
|
+
export type GlassDropdownMenuTriggerProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/** Put the trigger on the single child element (a GlassButtonGroupItem) instead of a glass button of its own. */
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & Omit<ComponentProps<typeof MenuTrigger>, "children" | "className" | "render">;
|
|
10
|
+
export type GlassDropdownMenuContentProps = {
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & Omit<ComponentProps<typeof MenuContent>, "children" | "className" | "render">;
|
|
14
|
+
export type GlassDropdownMenuItemProps = {
|
|
15
|
+
className?: string;
|
|
16
|
+
} & Omit<ComponentProps<typeof MenuItem>, "className" | "render">;
|
|
17
|
+
export declare function GlassDropdownMenu({ children, ...options }: GlassDropdownMenuProps): import("react").JSX.Element;
|
|
18
|
+
/** The control that opens the menu: a glass button of its own, or with `asChild` your own element inside a GlassButtonGroup. */
|
|
19
|
+
export declare function GlassDropdownMenuTrigger({ children, asChild, className, ...rest }: GlassDropdownMenuTriggerProps): import("react").JSX.Element;
|
|
20
|
+
/** The list, centred on its control unless `align` says otherwise. Its children are items and separators; they arrive one after another. */
|
|
21
|
+
export declare function GlassDropdownMenuContent({ children, className, sideOffset, align, ...rest }: GlassDropdownMenuContentProps): import("react").JSX.Element;
|
|
22
|
+
/** An action. Pressing it runs `onSelect` and closes the menu. `destructive` paints it red. */
|
|
23
|
+
export declare function GlassDropdownMenuItem({ className, ...rest }: GlassDropdownMenuItemProps): import("react").JSX.Element;
|
|
24
|
+
/** A hairline between items. */
|
|
25
|
+
export declare function GlassDropdownMenuSeparator({ className, style, }: {
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: CSSProperties;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
|
+
export default GlassDropdownMenu;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
const _0x5551ef=_0x18f1;(function(_0x506446,_0x86f9ca){const _0x1ff03a=_0x18f1,_0x2bcf05=_0x506446();while(!![]){try{const _0x15807a=-parseInt(_0x1ff03a(0xfa))/0x1+-parseInt(_0x1ff03a(0xff))/0x2+parseInt(_0x1ff03a(0xf3))/0x3+-parseInt(_0x1ff03a(0xfc))/0x4*(parseInt(_0x1ff03a(0x101))/0x5)+parseInt(_0x1ff03a(0xf5))/0x6*(parseInt(_0x1ff03a(0xf7))/0x7)+-parseInt(_0x1ff03a(0x102))/0x8*(-parseInt(_0x1ff03a(0x103))/0x9)+-parseInt(_0x1ff03a(0xf2))/0xa*(-parseInt(_0x1ff03a(0xf8))/0xb);if(_0x15807a===_0x86f9ca)break;else _0x2bcf05['push'](_0x2bcf05['shift']());}catch(_0x12f7c2){_0x2bcf05['push'](_0x2bcf05['shift']());}}}(_0x4370,0x4a602));import{d,a,c,b}from'./chunk-ULHSS732.js';import'./chunk-IMUNBL7U.js';import'./chunk-ZCV4ENGP.js';import{Menu,MenuTrigger,MenuContent,MenuItem,MenuSeparator}from'@ui-sdk/react/menu';function _0x18f1(_0x33a35e,_0x1943fb){_0x33a35e=_0x33a35e-0xf2;const _0x437090=_0x4370();let _0x18f114=_0x437090[_0x33a35e];return _0x18f114;}import{useContext,Children,isValidElement,cloneElement}from'react';import{jsx,jsxs}from'react/jsx-runtime';function C({children:_0x12b43d,..._0x341771}){let _0x427d5a=d();return jsx(Menu,{..._0x341771,'children':jsx(a['Provider'],{'value':_0x427d5a,'children':_0x12b43d})});}function D({children:_0x1b47ae,asChild:_0x3bb8a9=![],className:_0x5f4861='',..._0x230cdd}){let _0x3e98f2=useContext(a);return _0x3bb8a9||!_0x3e98f2?jsx(MenuTrigger,{'render':Children['only'](_0x1b47ae),..._0x230cdd}):jsxs(MenuTrigger,{'data-vt-host':'','className':'inline-flex\x20h-10\x20shrink-0\x20cursor-pointer\x20items-center\x20justify-center\x20gap-2\x20rounded-full\x20border\x20border-black/10\x20bg-white/60\x20px-5\x20text-sm\x20font-semibold\x20whitespace-nowrap\x20text-neutral-900\x20outline-none\x20select-none\x20focus-visible:ring-2\x20focus-visible:ring-[#3291FF]\x20focus-visible:ring-offset-2\x20disabled:cursor-not-allowed\x20disabled:opacity-40\x20dark:border-white/15\x20dark:bg-white/10\x20dark:text-white\x20data-[vt-tone=dark]:text-white\x20data-[vt-tone=light]:text-neutral-900\x20[&_svg]:size-4\x20[&_svg]:shrink-0\x20'['concat'](_0x5f4861),..._0x230cdd,'children':[jsx(c,{'popup':_0x3e98f2}),jsx('span',{'className':'inline-flex\x20items-center\x20gap-[inherit]','children':_0x1b47ae})]});}function k({children:_0x393f6a,className:_0x4fa734='',sideOffset:_0x3e7e03=0xc,align:_0x23b88e=_0x5551ef(0xf6),..._0x1a6b60}){const _0x270a71=_0x5551ef;let _0x5e02aa=useContext(a);return jsxs(MenuContent,{'data-vt-popup':'','data-vt-skip':'','sideOffset':_0x3e7e03,'align':_0x23b88e,'className':'group/vt\x20min-w-44\x20rounded-3xl\x20p-1.5\x20text-[15px]\x20text-neutral-900\x20outline-none\x20data-[vt-tone=dark]:text-white\x20data-[vt-tone=light]:text-neutral-900\x20'[_0x270a71(0xf9)](_0x4fa734),..._0x1a6b60,'children':[_0x5e02aa&&jsx(b,{'popup':_0x5e02aa}),jsx('div',{'data-vt-list':'','className':_0x270a71(0xf4),'children':Children[_0x270a71(0xfb)](_0x393f6a)['map']((_0x41b802,_0x57252e)=>isValidElement(_0x41b802)?cloneElement(_0x41b802,{'style':{'--vt-i':_0x57252e,..._0x41b802[_0x270a71(0xfd)]['style']}}):_0x41b802)})]});}function S({className:_0x696806='',..._0x575bd0}){const _0x146092=_0x5551ef;return jsx(MenuItem,{'className':_0x146092(0x100)[_0x146092(0xf9)](_0x696806),..._0x575bd0});}function T({className:_0x42761d='',style:_0x28717f}){const _0x4ad749=_0x5551ef;return jsx(MenuSeparator,{'data-vt-item':'','style':_0x28717f,'className':_0x4ad749(0xfe)['concat'](_0x42761d)});}var I=C;export{C as GlassDropdownMenu,k as GlassDropdownMenuContent,S as GlassDropdownMenuItem,T as GlassDropdownMenuSeparator,D as GlassDropdownMenuTrigger,I as default};function _0x4370(){const _0x2e2a7f=['2912418sRwiqp','center','7xXTkbk','517Tngmhk','concat','539379hHldDP','toArray','80RuBadt','props','mx-3.5\x20my-1\x20h-px\x20shrink-0\x20bg-current/15\x20','469668TBlRyN','relative\x20flex\x20h-10\x20cursor-pointer\x20items-center\x20gap-2.5\x20rounded-2xl\x20px-3.5\x20font-medium\x20whitespace-nowrap\x20outline-none\x20select-none\x20transition-colors\x20duration-100\x20data-disabled:cursor-not-allowed\x20data-highlighted:bg-current/10\x20data-destructive:text-red-600\x20group-data-[vt-tone=dark]/vt:data-destructive:text-red-400\x20[&_svg]:size-4\x20[&_svg]:shrink-0\x20','14745qRwlqW','4158424iMlFFA','9BFEHRs','13810MiWOHM','203166tcoCzq','flex\x20flex-col'];_0x4370=function(){return _0x2e2a7f;};return _0x4370();}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export type GlassMaterial = "clear" | "tinted";
|
|
2
|
+
export type GlassDroplet = "none" | "apart" | "merged";
|
|
3
|
+
/**
|
|
4
|
+
* Fine-tuning of the glass. Read on every frame: changing a value redraws the glass without
|
|
5
|
+
* rebuilding it, so it can follow a slider. Colours and frost apply to clear glass.
|
|
6
|
+
*/
|
|
7
|
+
export type GlassOptics = {
|
|
8
|
+
/** Tint colour, any CSS colour. Default: white on a light page, black on a dark one. */
|
|
9
|
+
tintColor?: string;
|
|
10
|
+
/** A line just inside the rim: its colour, opacity (0–1, default 0: none) and width in px (default 1). */
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
borderAlpha?: number;
|
|
13
|
+
borderWidth?: number;
|
|
14
|
+
/** With `blur`: how much of the frost shows over the sharp bend (0–1, default 1). */
|
|
15
|
+
frostMix?: number;
|
|
16
|
+
/** With `blur`: × the frost at the rim, where the glass bends (default 1). */
|
|
17
|
+
frostEdge?: number;
|
|
18
|
+
/** Saturation of what shows through the glass (default 1; 1.5 = more vivid, 0 = grey). */
|
|
19
|
+
saturation?: number;
|
|
20
|
+
/** Without frost: blur of the clear glass in its middle and at its rim, in mip levels (default 0.35 and 2.2). */
|
|
21
|
+
clearBlur?: number;
|
|
22
|
+
clearBlurEdge?: number;
|
|
23
|
+
/** The bend at the rim, × the kit's own (default 1). */
|
|
24
|
+
refraction?: number;
|
|
25
|
+
/**
|
|
26
|
+
* How the rim bends. `edge` (default): along the rim, as deep as the bevel. `radial`: towards
|
|
27
|
+
* the centre, by 6.5% of the viewport × `refraction`, fading over half the glass (`bendCurve`
|
|
28
|
+
* sets how fast, `bendDepth` how far), and the frost blurs the bent picture: the SVG card's rim.
|
|
29
|
+
*/
|
|
30
|
+
bendMode?: "edge" | "radial";
|
|
31
|
+
/** × how far in from the rim the bend reaches (default 1). */
|
|
32
|
+
bendDepth?: number;
|
|
33
|
+
/** How sharply the bend falls off from the rim inwards, an exponent (default 1.6; higher = tighter to the rim). */
|
|
34
|
+
bendCurve?: number;
|
|
35
|
+
/** Colour split at the rim (default 0.12). */
|
|
36
|
+
dispersion?: number;
|
|
37
|
+
/** Magnification of the middle (default 0). */
|
|
38
|
+
magnify?: number;
|
|
39
|
+
/** Light on the glass, all of it (default 1). */
|
|
40
|
+
light?: number;
|
|
41
|
+
/** × the rim light (default 1) and × its line's thickness (default 1). */
|
|
42
|
+
rim?: number;
|
|
43
|
+
rimWidth?: number;
|
|
44
|
+
/** × the width of the bevel that shades the rim (default 1). */
|
|
45
|
+
bevel?: number;
|
|
46
|
+
/** × the fresnel glow, inner shading, top reflection and warm caustic (each default 1). */
|
|
47
|
+
fresnel?: number;
|
|
48
|
+
inner?: number;
|
|
49
|
+
reflection?: number;
|
|
50
|
+
caustic?: number;
|
|
51
|
+
/** The rim light leans towards the cursor (default true). */
|
|
52
|
+
cursorLight?: boolean;
|
|
53
|
+
/** The drop shadow: × its strength, softness and offset (each default 1). */
|
|
54
|
+
shadow?: number;
|
|
55
|
+
shadowSoftness?: number;
|
|
56
|
+
shadowOffset?: number;
|
|
57
|
+
/** Dark glass (a black tint, on a dark page): its own tint cover (in place of `tint`) and rim line. Unset values follow the rest. */
|
|
58
|
+
dark?: {
|
|
59
|
+
tint?: number;
|
|
60
|
+
borderColor?: string;
|
|
61
|
+
borderAlpha?: number;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export type GlassLayerProps = {
|
|
65
|
+
/**
|
|
66
|
+
* `clear`: transparent glass that bends the page behind it (default).
|
|
67
|
+
* `tinted`: glass painted in the host's own CSS background colour, with light and shadow.
|
|
68
|
+
*/
|
|
69
|
+
material?: GlassMaterial;
|
|
70
|
+
/**
|
|
71
|
+
* The host's `[data-vt-drop]` child as a gooey droplet: `apart` (separated; it melts in
|
|
72
|
+
* while pressed) or `merged` (one body). Changing it animates the split or the merge. Default `none`.
|
|
73
|
+
*/
|
|
74
|
+
droplet?: GlassDroplet;
|
|
75
|
+
/** Clear glass: how much of the tint covers the backdrop (0 = invisible, 1 = solid). */
|
|
76
|
+
tint?: number;
|
|
77
|
+
/** Clear glass: frost the backdrop with a blur of this many px, like CSS `blur()` (default 0: sharp). */
|
|
78
|
+
blur?: number;
|
|
79
|
+
/** Clear glass: CSS selector of the ancestor whose content is refracted (default: the page). */
|
|
80
|
+
backdrop?: string;
|
|
81
|
+
/** Clear glass: repaint the backdrop every frame (for animated content behind the glass). */
|
|
82
|
+
live?: boolean;
|
|
83
|
+
/** Listen for hover/press on this ancestor instead of the host (e.g. a whole card link). */
|
|
84
|
+
trigger?: string;
|
|
85
|
+
/** Turn the glass off and keep the host's CSS look. */
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
/** Swell on hover and grow when pressed (default). `false` keeps the glass still under the pointer. */
|
|
88
|
+
swell?: boolean;
|
|
89
|
+
/** Fine-tuning: tint colour, a rim line, frost mix, bend, light and shadow (see GlassOptics). */
|
|
90
|
+
optics?: GlassOptics;
|
|
91
|
+
};
|
|
92
|
+
/** The CSS the glass relies on. Rendered once per page by <GlassStyles /> (React 19 dedupes it). */
|
|
93
|
+
export declare const GLASS_CSS = "\n/* Layered, so a utility class on the host (absolute, fixed) still wins over relative. */\n@layer components{:where([data-vt-host]){position:relative;isolation:isolate}}\n/* Unlayered on purpose: once the glass draws, it must beat the host's own fill utilities. */\n[data-vt-host][data-vt-ready]{background:transparent!important;border-color:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}\n@keyframes vt-marquee{to{transform:translateX(-50%)}}\n[data-vt-marquee]{animation:vt-marquee var(--vt-marquee-duration,5s) linear infinite}\n/* Swapped labels and icons rise from a soft blur; a check draws itself in. */\n@keyframes vt-in{from{opacity:0;filter:blur(3px);transform:translateY(4px)}}\n[data-vt-in]{animation:vt-in .38s cubic-bezier(.2,.8,.2,1) both}\n@keyframes vt-draw{from{stroke-dashoffset:25}}\n[data-vt-draw]{stroke-dasharray:25;animation:vt-draw .42s cubic-bezier(.65,0,.35,1) .12s both}\n@keyframes vt-spin{to{transform:rotate(1turn)}}\n[data-vt-spin]{animation:vt-spin .8s linear infinite}\n[data-vt-ready] [data-vt-fallback]{visibility:hidden}\n@media (prefers-reduced-motion:reduce){[data-vt-marquee],[data-vt-in],[data-vt-draw],[data-vt-spin]{animation:none}}\n";
|
|
94
|
+
/** Injects GLASS_CSS once (React 19 hoists and dedupes `<style href precedence>`). */
|
|
95
|
+
export declare function GlassStyles(): import("react").JSX.Element;
|
|
96
|
+
export declare function GlassLayer({ material, droplet, tint, blur, backdrop, live, trigger, disabled, swell, optics, }: GlassLayerProps): import("react").JSX.Element;
|
|
97
|
+
export default GlassLayer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type GlassLensProps = {
|
|
2
|
+
/** The selected value (any change slides the lens). `null` = nothing selected. */
|
|
3
|
+
value: string | number | null;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function GlassLens({ value, disabled }: GlassLensProps): import("react").JSX.Element;
|
|
7
|
+
export default GlassLens;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { MenuContent, MenuItem, MenuTrigger, type MenuProps } from "@ui-sdk/react/menu";
|
|
2
|
+
import { type CSSProperties, type ComponentProps, type HTMLAttributes, type ReactNode } from "react";
|
|
3
|
+
export type GlassMenuSide = "top" | "right" | "bottom" | "left";
|
|
4
|
+
export type GlassMenuAlign = "start" | "center" | "end";
|
|
5
|
+
export type GlassMenuProps = MenuProps;
|
|
6
|
+
export type GlassMenuTriggerProps = {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/** Put the trigger on the single child element instead of a glass button of its own. */
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
} & Omit<ComponentProps<typeof MenuTrigger>, "children" | "className" | "render">;
|
|
12
|
+
export type GlassMenuContentProps = {
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
side?: GlassMenuSide;
|
|
16
|
+
align?: GlassMenuAlign;
|
|
17
|
+
sideOffset?: number;
|
|
18
|
+
} & Omit<ComponentProps<typeof MenuContent>, "children" | "className" | "render" | "side" | "align" | "sideOffset">;
|
|
19
|
+
export type GlassMenuItemProps = {
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
/** Optional leading icon rendered before the label. */
|
|
22
|
+
icon?: ReactNode;
|
|
23
|
+
/** Optional trailing keyboard shortcut hint (e.g. "⌘D" or "⌫"). */
|
|
24
|
+
shortcut?: ReactNode;
|
|
25
|
+
className?: string;
|
|
26
|
+
} & Omit<ComponentProps<typeof MenuItem>, "children" | "className" | "render" | "shortcut">;
|
|
27
|
+
export type GlassMenuSeparatorProps = {
|
|
28
|
+
className?: string;
|
|
29
|
+
style?: CSSProperties;
|
|
30
|
+
};
|
|
31
|
+
export type GlassMenuLabelProps = HTMLAttributes<HTMLDivElement>;
|
|
32
|
+
export declare function GlassMenu({ children, ...options }: GlassMenuProps): import("react").JSX.Element;
|
|
33
|
+
/** The button whose glass grows into the menu, or with `asChild` your own element. */
|
|
34
|
+
export declare function GlassMenuTrigger({ children, asChild, className, ...rest }: GlassMenuTriggerProps): import("react").JSX.Element;
|
|
35
|
+
/** The unified refractive glass menu surface, positioned on any side (`top`, `right`, `bottom`, `left`). */
|
|
36
|
+
export declare function GlassMenuContent({ children, className, side, align, sideOffset, ...rest }: GlassMenuContentProps): import("react").JSX.Element;
|
|
37
|
+
/** A menu action with optional leading `icon`, trailing `shortcut`, `destructive` tone, and `disabled` state. */
|
|
38
|
+
export declare function GlassMenuItem({ children, icon, shortcut, className, ...rest }: GlassMenuItemProps): import("react").JSX.Element;
|
|
39
|
+
/** A hairline separator between groups of items. */
|
|
40
|
+
export declare function GlassMenuSeparator({ className, style, }: GlassMenuSeparatorProps): import("react").JSX.Element;
|
|
41
|
+
/** A non-interactive section heading inside the menu. */
|
|
42
|
+
export declare function GlassMenuLabel({ className, ...rest }: GlassMenuLabelProps): import("react").JSX.Element;
|
|
43
|
+
export default GlassMenu;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
(function(_0x1cc502,_0x1061f9){var _0x3fe91d=_0x3b11,_0x3ad459=_0x1cc502();while(!![]){try{var _0x57b046=-parseInt(_0x3fe91d(0x15e))/0x1+parseInt(_0x3fe91d(0x160))/0x2*(parseInt(_0x3fe91d(0x164))/0x3)+parseInt(_0x3fe91d(0x15d))/0x4+-parseInt(_0x3fe91d(0x165))/0x5*(-parseInt(_0x3fe91d(0x163))/0x6)+-parseInt(_0x3fe91d(0x15f))/0x7+-parseInt(_0x3fe91d(0x162))/0x8+parseInt(_0x3fe91d(0x15c))/0x9*(parseInt(_0x3fe91d(0x161))/0xa);if(_0x57b046===_0x1061f9)break;else _0x3ad459['push'](_0x3ad459['shift']());}catch(_0x2bbc1b){_0x3ad459['push'](_0x3ad459['shift']());}}}(_0x881b,0x76f32));export{a as GlassMenu,c as GlassMenuContent,d as GlassMenuItem,f as GlassMenuLabel,e as GlassMenuSeparator,b as GlassMenuTrigger,g as default}from'./chunk-5H6FHJ6K.js';import'./chunk-ULHSS732.js';function _0x3b11(_0x5a84f5,_0x38e70b){_0x5a84f5=_0x5a84f5-0x15c;var _0x881b07=_0x881b();var _0x3b1111=_0x881b07[_0x5a84f5];return _0x3b1111;}import'./chunk-IMUNBL7U.js';function _0x881b(){var _0x59cf0e=['4883800DcOjmX','5904784EDYizI','332220JoXnUm','168WXdbdy','10FBpHDB','45sHvmWX','830560rsDkcs','809414xLewsc','6026706XOvtDl','4836KqNyFA'];_0x881b=function(){return _0x59cf0e;};return _0x881b();}import'./chunk-ZCV4ENGP.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PopoverContent, PopoverTrigger, type PopoverProps } from "@ui-sdk/react/popover";
|
|
2
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
3
|
+
export type GlassPopoverProps = PopoverProps;
|
|
4
|
+
export type GlassPopoverTriggerProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/** Put the trigger on the single child element instead of a glass button of its own. */
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & Omit<ComponentProps<typeof PopoverTrigger>, "children" | "className" | "render">;
|
|
10
|
+
export type GlassPopoverContentProps = {
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & Omit<ComponentProps<typeof PopoverContent>, "children" | "className" | "render">;
|
|
14
|
+
export declare function GlassPopover({ children, ...options }: GlassPopoverProps): import("react").JSX.Element;
|
|
15
|
+
/** The button that unfolds into the popover, or with `asChild` your own interactive element. */
|
|
16
|
+
export declare function GlassPopoverTrigger({ children, asChild, className, ...rest }: GlassPopoverTriggerProps): import("react").JSX.Element;
|
|
17
|
+
/** The small glass surface the button unfolds into. Supports `side`, `align` and `sideOffset`. */
|
|
18
|
+
export declare function GlassPopoverContent({ children, className, side, align, sideOffset, ...rest }: GlassPopoverContentProps): import("react").JSX.Element;
|
|
19
|
+
export default GlassPopover;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
(function(_0x400b5f,_0x17f1a5){var _0x2f61f1=_0x4b68,_0x54ebf7=_0x400b5f();while(!![]){try{var _0x10eb33=parseInt(_0x2f61f1(0x11c))/0x1+parseInt(_0x2f61f1(0x120))/0x2*(-parseInt(_0x2f61f1(0x11e))/0x3)+parseInt(_0x2f61f1(0x11d))/0x4+-parseInt(_0x2f61f1(0x116))/0x5*(-parseInt(_0x2f61f1(0x119))/0x6)+-parseInt(_0x2f61f1(0x11b))/0x7*(parseInt(_0x2f61f1(0x117))/0x8)+parseInt(_0x2f61f1(0x11f))/0x9*(-parseInt(_0x2f61f1(0x11a))/0xa)+-parseInt(_0x2f61f1(0x115))/0xb*(-parseInt(_0x2f61f1(0x118))/0xc);if(_0x10eb33===_0x17f1a5)break;else _0x54ebf7['push'](_0x54ebf7['shift']());}catch(_0x16d71d){_0x54ebf7['push'](_0x54ebf7['shift']());}}}(_0x41bd,0xee0d9));export{a as GlassPopover,c as GlassPopoverContent,b as GlassPopoverTrigger,d as default}from'./chunk-D6ZLXL4J.js';import'./chunk-ULHSS732.js';import'./chunk-IMUNBL7U.js';function _0x4b68(_0x36b252,_0x1d2953){_0x36b252=_0x36b252-0x115;var _0x41bde7=_0x41bd();var _0x4b6861=_0x41bde7[_0x36b252];return _0x4b6861;}import'./chunk-ZCV4ENGP.js';function _0x41bd(){var _0xe79526=['5464716GkCjWK','13167DGUaQK','279XiusVR','462mVBjvL','33nHaDSM','100255bvaPFt','208GRlcEn','354492XHQdVf','198xLaqII','191010CSYnjX','210847fiwfbI','1247716xHAYFc'];_0x41bd=function(){return _0xe79526;};return _0x41bd();}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** The shared physics and shape of one popup: the anchor's canvas and the surface's both draw it. */
|
|
2
|
+
declare function createMorph(matchWidth: boolean): {
|
|
3
|
+
setTrigger: (canvas: HTMLCanvasElement | null) => () => void;
|
|
4
|
+
setPanel: (canvas: HTMLCanvasElement | null, hold: HTMLElement | null, cardShadow: HTMLElement | null) => () => void;
|
|
5
|
+
};
|
|
6
|
+
export type GlassPopup = ReturnType<typeof createMorph>;
|
|
7
|
+
/**
|
|
8
|
+
* The popup a control inside may anchor: GlassDropdownMenu provides it, and a GlassButtonGroup
|
|
9
|
+
* under it becomes the anchor, so the menu swells out of the whole group.
|
|
10
|
+
*/
|
|
11
|
+
export declare const GlassPopupContext: import("react").Context<{
|
|
12
|
+
setTrigger: (canvas: HTMLCanvasElement | null) => () => void;
|
|
13
|
+
setPanel: (canvas: HTMLCanvasElement | null, hold: HTMLElement | null, cardShadow: HTMLElement | null) => () => void;
|
|
14
|
+
} | null>;
|
|
15
|
+
/** The surface's share of the glass: the first child of the popup's content. */
|
|
16
|
+
export declare function GlassPopupSurface({ popup: morph }: {
|
|
17
|
+
popup: GlassPopup;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
/** The anchor's share of the glass: the first child of the control that opens the popup. */
|
|
20
|
+
export declare function GlassPopupAnchor({ popup }: {
|
|
21
|
+
popup: GlassPopup;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
23
|
+
/** One gooey popup: hand the result to its GlassPopupAnchor and GlassPopupSurface. `matchWidth` keeps the surface as wide as the anchor. */
|
|
24
|
+
export declare function useGlassPopup({ matchWidth, }?: {
|
|
25
|
+
matchWidth?: boolean;
|
|
26
|
+
}): GlassPopup;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type GlassSelectOption = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type GlassSelectProps = {
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
options: GlassSelectOption[];
|
|
10
|
+
value?: string | null;
|
|
11
|
+
defaultValue?: string | null;
|
|
12
|
+
onValueChange?: (value: string | null) => void;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
name?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function GlassSelect({ label, options, value, defaultValue, onValueChange, placeholder, disabled, name, className, }: GlassSelectProps): import("react").JSX.Element;
|
|
19
|
+
export default GlassSelect;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
function _0x1009(_0x4a6a6c,_0xf9fe93){_0x4a6a6c=_0x4a6a6c-0x192;const _0x14f3f2=_0x14f3();let _0x10097c=_0x14f3f2[_0x4a6a6c];return _0x10097c;}(function(_0x2066cc,_0x414bcb){const _0x4cf17e=_0x1009,_0x4b8c5e=_0x2066cc();while(!![]){try{const _0x2a7f1d=parseInt(_0x4cf17e(0x19b))/0x1*(-parseInt(_0x4cf17e(0x192))/0x2)+-parseInt(_0x4cf17e(0x1a0))/0x3+parseInt(_0x4cf17e(0x196))/0x4+parseInt(_0x4cf17e(0x197))/0x5+-parseInt(_0x4cf17e(0x19d))/0x6+-parseInt(_0x4cf17e(0x1a1))/0x7*(parseInt(_0x4cf17e(0x1a3))/0x8)+parseInt(_0x4cf17e(0x1a2))/0x9*(parseInt(_0x4cf17e(0x19c))/0xa);if(_0x2a7f1d===_0x414bcb)break;else _0x4b8c5e['push'](_0x4b8c5e['shift']());}catch(_0x4074fc){_0x4b8c5e['push'](_0x4b8c5e['shift']());}}}(_0x14f3,0x1cb0f));import{d,c,b}from'./chunk-ULHSS732.js';import'./chunk-IMUNBL7U.js';function _0x14f3(){const _0x204315=['label','relative\x20flex\x20h-10\x20cursor-pointer\x20items-center\x20rounded-2xl\x20px-3.5\x20font-medium\x20outline-none\x20select-none\x20data-disabled:cursor-not-allowed\x20data-disabled:opacity-40\x20data-highlighted:bg-black/8\x20data-selected:font-semibold\x20dark:data-highlighted:bg-white/12','1yBxDFI','2704210JHjnMD','760008bhNNUS','m6\x209\x206\x206\x206-6','concat','97323RrxwuJ','631834qCZmrZ','9BiSXKV','8yylPRM','disabled','map','98624EvIvtf','value','svg','path','389708SOVHqt','241770YcjWnA','flex\x20h-12\x20w-full\x20cursor-pointer\x20items-center\x20justify-between\x20rounded-full\x20border\x20border-black/10\x20bg-white/60\x20pr-4\x20pl-5\x20text-[15px]\x20font-medium\x20text-neutral-900\x20outline-none\x20select-none\x20focus-visible:ring-2\x20focus-visible:ring-[#3291FF]\x20focus-visible:ring-offset-2\x20disabled:cursor-not-allowed\x20disabled:opacity-40\x20dark:border-white/15\x20dark:bg-white/10\x20dark:text-white\x20data-[vt-tone=dark]:text-white\x20data-[vt-tone=light]:text-neutral-900'];_0x14f3=function(){return _0x204315;};return _0x14f3();}import'./chunk-ZCV4ENGP.js';import{Select,SelectLabel,SelectTrigger,SelectValue,SelectContent,SelectList,SelectItem}from'@ui-sdk/react/select';import{jsxs,jsx}from'react/jsx-runtime';function y({label:_0x2fad7f,options:_0x198f1a,value:_0x14a914,defaultValue:_0x1e936e,onValueChange:_0x4b01c4,placeholder:_0x39a9d4,disabled:_0x4c0e9c,name:_0x47b720,className:_0x372ce4=''}){const _0x2d0c4a=_0x1009;let _0x353141=d({'matchWidth':!![]});return jsxs(Select,{..._0x14a914!==void 0x0?{'value':_0x14a914}:{},..._0x1e936e!==void 0x0?{'defaultValue':_0x1e936e}:{},'onValueChange':_0x4c6624=>_0x4b01c4?.(_0x4c6624??null),'placeholder':_0x39a9d4,'disabled':_0x4c0e9c,'name':_0x47b720,'children':[jsxs('div',{'className':'flex\x20w-64\x20flex-col\x20gap-2\x20'[_0x2d0c4a(0x19f)](_0x372ce4),'children':[jsx(SelectLabel,{'className':'text-sm\x20font-medium\x20text-neutral-900\x20dark:text-white','children':_0x2fad7f}),jsxs(SelectTrigger,{'data-vt-host':'','className':_0x2d0c4a(0x198),'children':[jsx(c,{'popup':_0x353141}),jsx(SelectValue,{}),jsx(_0x2d0c4a(0x194),{'aria-hidden':!![],'viewBox':'0\x200\x2024\x2024','fill':'none','stroke':'currentColor','strokeWidth':'2','strokeLinecap':'round','strokeLinejoin':'round','className':'size-4\x20shrink-0\x20opacity-60','children':jsx(_0x2d0c4a(0x195),{'d':_0x2d0c4a(0x19e)})})]})]}),jsxs(SelectContent,{'data-vt-popup':'','data-vt-skip':'','sideOffset':0xc,'className':'rounded-3xl\x20p-1.5\x20text-[15px]\x20text-neutral-900\x20outline-none\x20data-[vt-tone=dark]:text-white\x20data-[vt-tone=light]:text-neutral-900','children':[jsx(b,{'popup':_0x353141}),jsx(SelectList,{'className':'max-h-72\x20overflow-y-auto\x20rounded-[18px]\x20outline-none','children':_0x198f1a[_0x2d0c4a(0x1a5)]((_0x17fb8c,_0x157908)=>jsx(SelectItem,{'value':_0x17fb8c['value'],'disabled':_0x17fb8c[_0x2d0c4a(0x1a4)],'style':{'--vt-i':_0x157908},'className':_0x2d0c4a(0x19a),'children':_0x17fb8c[_0x2d0c4a(0x199)]},_0x17fb8c[_0x2d0c4a(0x193)]))})]})]});}var O=y;export{y as GlassSelect,O as default};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type GlassSlideState = "idle" | "pending" | "success";
|
|
3
|
+
export type GlassSlideSize = "sm" | "md" | "lg" | "xl";
|
|
4
|
+
export type GlassSlideToConfirmProps = {
|
|
5
|
+
/** The instruction, written in the track and used as the slider's name: "Slide to send $240". */
|
|
6
|
+
children: string;
|
|
7
|
+
/** Runs once the thumb reaches the end. Return a promise to stay pending until it settles. */
|
|
8
|
+
onConfirm: () => unknown;
|
|
9
|
+
/** Called when `onConfirm` throws or rejects; the thumb springs back to the start. */
|
|
10
|
+
onConfirmError?: (error: unknown) => void;
|
|
11
|
+
/** Written beside the spinner while `onConfirm` runs. */
|
|
12
|
+
pendingLabel?: string;
|
|
13
|
+
/** Written beside the check once it succeeds. */
|
|
14
|
+
successLabel?: string;
|
|
15
|
+
/** Replaces the instruction after a failure, until the next slide. */
|
|
16
|
+
errorLabel?: string;
|
|
17
|
+
/** Share of the track the thumb must pass before letting go confirms. */
|
|
18
|
+
threshold?: number;
|
|
19
|
+
/** Milliseconds after a success before the track opens again. `0` stays confirmed. */
|
|
20
|
+
resetAfter?: number;
|
|
21
|
+
/** Nudge the thumb every few seconds until it has been touched, to show that it moves. */
|
|
22
|
+
hint?: boolean;
|
|
23
|
+
/** The thumb's idle icon (default: a chevron). */
|
|
24
|
+
icon?: ReactNode;
|
|
25
|
+
size?: GlassSlideSize;
|
|
26
|
+
/** Classes of the fill the thumb pulls behind it: its `bg-*` and the `text-*` written on it. */
|
|
27
|
+
fillClassName?: string;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function GlassSlideToConfirm({ children, onConfirm, onConfirmError, pendingLabel, successLabel, errorLabel, threshold, resetAfter, hint, icon, size, fillClassName, disabled, className, }: GlassSlideToConfirmProps): import("react").JSX.Element;
|
|
32
|
+
export default GlassSlideToConfirm;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
function _0xf1e3(){var _0xcb94c3=['20eTYoXy','8VmbWiN','2580545dVYvts','1464239KaxhhV','71811fHwusV','1566000OexrIB','10917iSRziL','104SzgOJV','1504071FAcUoO','4FwkGPX','707890tWYpem'];_0xf1e3=function(){return _0xcb94c3;};return _0xf1e3();}(function(_0x5ae267,_0x3b8017){var _0x525aa6=_0x4e3e,_0xb4e8b1=_0x5ae267();while(!![]){try{var _0x3b91f7=-parseInt(_0x525aa6(0x132))/0x1+parseInt(_0x525aa6(0x135))/0x2*(-parseInt(_0x525aa6(0x134))/0x3)+-parseInt(_0x525aa6(0x137))/0x4*(-parseInt(_0x525aa6(0x138))/0x5)+-parseInt(_0x525aa6(0x133))/0x6+-parseInt(_0x525aa6(0x13c))/0x7*(-parseInt(_0x525aa6(0x13a))/0x8)+-parseInt(_0x525aa6(0x136))/0x9+parseInt(_0x525aa6(0x139))/0xa*(parseInt(_0x525aa6(0x13b))/0xb);if(_0x3b91f7===_0x3b8017)break;else _0xb4e8b1['push'](_0xb4e8b1['shift']());}catch(_0x329755){_0xb4e8b1['push'](_0xb4e8b1['shift']());}}}(_0xf1e3,0x1fee3));export{a as GlassSlideToConfirm,b as default}from'./chunk-TIG2HRDS.js';import'./chunk-IMUNBL7U.js';function _0x4e3e(_0x117607,_0x1688bb){_0x117607=_0x117607-0x132;var _0xf1e3e3=_0xf1e3();var _0x4e3ecc=_0xf1e3e3[_0x117607];return _0x4e3ecc;}import'./chunk-ZCV4ENGP.js';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type CSSProperties, type ElementType, type ReactNode, type Ref, type RefObject } from "react";
|
|
2
|
+
import { type GlassMaterial, type GlassOptics } from "./glass-layer.js";
|
|
3
|
+
export type GlassSurfaceElevation = "none" | "sm" | "md" | "lg";
|
|
4
|
+
export type UseGlassOptions = {
|
|
5
|
+
/** Glass material: `clear` refracts what sits behind (default), `tinted` uses the host's CSS background. */
|
|
6
|
+
material?: GlassMaterial;
|
|
7
|
+
/** Corner radius in px (number) or any CSS length string (e.g. `"1.5rem"`, `"9999px"`). */
|
|
8
|
+
radius?: number | string;
|
|
9
|
+
/** Clear glass tint opacity covering the backdrop (0–1, default `0.65`). */
|
|
10
|
+
tint?: number;
|
|
11
|
+
/** Optional custom tint color (any CSS color string). Defaults to page-adaptive white/black or theme token. */
|
|
12
|
+
tintColor?: string;
|
|
13
|
+
/** Rim refraction intensity multiplier (default `1`). */
|
|
14
|
+
refraction?: number;
|
|
15
|
+
/** Backdrop frost blur in px (default `5`). `0` keeps the refracted image sharp. */
|
|
16
|
+
blur?: number;
|
|
17
|
+
/** Specular rim highlight & light intensity multiplier (default `1`). */
|
|
18
|
+
specular?: number;
|
|
19
|
+
/** Enable spring hover/press deformation (default `false`). */
|
|
20
|
+
interactive?: boolean;
|
|
21
|
+
/** CSS elevation drop shadow beneath the glass (default `"md"`). */
|
|
22
|
+
elevation?: GlassSurfaceElevation;
|
|
23
|
+
/** Repaint the refracted backdrop every frame for animated content behind the surface (default `false`). */
|
|
24
|
+
live?: boolean;
|
|
25
|
+
/** Optional CSS selector of the ancestor whose DOM subtree is refracted (default: `document.body`). */
|
|
26
|
+
backdrop?: string;
|
|
27
|
+
/** Turn off WebGL2 glass and keep the CSS frosted fallback (default `false`). */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Advanced optical fine-tuning merged over the surface defaults. */
|
|
30
|
+
optics?: GlassOptics;
|
|
31
|
+
};
|
|
32
|
+
export type GlassHostProps = {
|
|
33
|
+
"data-vt-host": "";
|
|
34
|
+
"data-vt-surface": "";
|
|
35
|
+
"data-vt-interactive"?: "";
|
|
36
|
+
style: CSSProperties;
|
|
37
|
+
};
|
|
38
|
+
export type UseGlassResult<T extends HTMLElement = HTMLDivElement> = {
|
|
39
|
+
/** Attach this ref to the target HTML element. */
|
|
40
|
+
ref: RefObject<T | null>;
|
|
41
|
+
/** Computed surface styles (radius, elevation shadow, CSS fallback frost & tint variables). */
|
|
42
|
+
style: CSSProperties;
|
|
43
|
+
/** Spread onto the host element (`data-vt-host`, `data-vt-surface`, `style`). */
|
|
44
|
+
glassProps: GlassHostProps;
|
|
45
|
+
/** `true` once the WebGL2 glass engine has painted the first frame for this surface. */
|
|
46
|
+
isReady: boolean;
|
|
47
|
+
/** `true` when the user has `prefers-reduced-motion: reduce` enabled (synced after hydration). */
|
|
48
|
+
reduceMotion: boolean;
|
|
49
|
+
};
|
|
50
|
+
export declare const ELEVATION_SHADOWS: Record<GlassSurfaceElevation, string>;
|
|
51
|
+
/** Normalizes a numeric or string corner radius into a CSS value. */
|
|
52
|
+
export declare function resolveGlassRadius(radius: number | string | undefined): string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Attaches Vitrum's real-time WebGL2 refractive glass, specular rim highlights, and optional
|
|
55
|
+
* spring hover/press physics to any custom HTML element via `ref`.
|
|
56
|
+
*/
|
|
57
|
+
export declare function useGlass<T extends HTMLElement = HTMLDivElement>(options?: UseGlassOptions): UseGlassResult<T>;
|
|
58
|
+
export type GlassSurfaceProps<E extends ElementType = "div"> = UseGlassOptions & {
|
|
59
|
+
/** Polymorphic element or component type (default `"div"`). */
|
|
60
|
+
as?: E;
|
|
61
|
+
children?: ReactNode;
|
|
62
|
+
className?: string;
|
|
63
|
+
style?: CSSProperties;
|
|
64
|
+
ref?: Ref<HTMLElement>;
|
|
65
|
+
} & Omit<ComponentPropsWithoutRef<E>, keyof UseGlassOptions | "as" | "children" | "className" | "style" | "ref">;
|
|
66
|
+
/**
|
|
67
|
+
* Polymorphic refractive glass container powered by `useGlass()`.
|
|
68
|
+
* Ideal for custom cards, floating toolbars, navbars, docks, and modals.
|
|
69
|
+
*/
|
|
70
|
+
export declare function GlassSurface<E extends ElementType = "div">({ as, children, material, radius, tint, tintColor, refraction, blur, specular, interactive, elevation, live, backdrop, disabled, optics, className, style: userStyle, ref: forwardedRef, ...rest }: GlassSurfaceProps<E>): import("react").JSX.Element;
|
|
71
|
+
export default GlassSurface;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
(function(_0x7f305d,_0x3b6925){var _0x2e213a=_0x2ee3,_0x2f1f16=_0x7f305d();while(!![]){try{var _0xfcb1d5=parseInt(_0x2e213a(0x1d8))/0x1+parseInt(_0x2e213a(0x1d9))/0x2+parseInt(_0x2e213a(0x1d6))/0x3*(parseInt(_0x2e213a(0x1cf))/0x4)+parseInt(_0x2e213a(0x1d7))/0x5+parseInt(_0x2e213a(0x1d2))/0x6*(-parseInt(_0x2e213a(0x1d1))/0x7)+parseInt(_0x2e213a(0x1d0))/0x8*(parseInt(_0x2e213a(0x1d4))/0x9)+parseInt(_0x2e213a(0x1d5))/0xa*(-parseInt(_0x2e213a(0x1d3))/0xb);if(_0xfcb1d5===_0x3b6925)break;else _0x2f1f16['push'](_0x2f1f16['shift']());}catch(_0x6e0b24){_0x2f1f16['push'](_0x2f1f16['shift']());}}}(_0x9656,0x244ba));function _0x2ee3(_0xf52dbf,_0x1503e4){_0xf52dbf=_0xf52dbf-0x1cf;var _0x965636=_0x9656();var _0x2ee3a1=_0x965636[_0xf52dbf];return _0x2ee3a1;}function _0x9656(){var _0x1a20a2=['68454dzqrYL','6170qdOeKO','200967FhIuCy','354640dKxewC','57711TmDzxK','536172xSBVaX','4EUXVSc','304kIredH','7meNyuU','822042LkRsPD','8327hiOjBT'];_0x9656=function(){return _0x1a20a2;};return _0x9656();}export{a as ELEVATION_SHADOWS,d as GlassSurface,e as default,b as resolveGlassRadius,c as useGlass}from'./chunk-P3SF73HG.js';import'./chunk-IMUNBL7U.js';import'./chunk-ZCV4ENGP.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type GlassTabOption<T extends string> = {
|
|
3
|
+
value: T;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
"aria-label"?: string;
|
|
7
|
+
};
|
|
8
|
+
export type GlassTabsProps<T extends string> = {
|
|
9
|
+
options: readonly GlassTabOption<T>[];
|
|
10
|
+
value: T | null;
|
|
11
|
+
onValueChange: (value: T) => void;
|
|
12
|
+
"aria-label": string;
|
|
13
|
+
size?: "sm" | "md" | "lg";
|
|
14
|
+
/** Classes of the selected (resting) pill; its background colour is the lens colour. */
|
|
15
|
+
highlightClassName?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function GlassTabs<T extends string>({ options, value, onValueChange, size, highlightClassName, className, ...aria }: GlassTabsProps<T>): import("react").JSX.Element;
|
|
19
|
+
export default GlassTabs;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
function _0x2926(_0x3afa53,_0x12f42c){_0x3afa53=_0x3afa53-0x16a;var _0x2d7ae0=_0x2d7a();var _0x2926f9=_0x2d7ae0[_0x3afa53];return _0x2926f9;}(function(_0x58d060,_0x142e9f){var _0x305c65=_0x2926,_0xf6c69c=_0x58d060();while(!![]){try{var _0x899363=-parseInt(_0x305c65(0x16a))/0x1+-parseInt(_0x305c65(0x171))/0x2*(-parseInt(_0x305c65(0x16d))/0x3)+-parseInt(_0x305c65(0x170))/0x4+parseInt(_0x305c65(0x16f))/0x5+-parseInt(_0x305c65(0x16e))/0x6+parseInt(_0x305c65(0x16b))/0x7+parseInt(_0x305c65(0x16c))/0x8;if(_0x899363===_0x142e9f)break;else _0xf6c69c['push'](_0xf6c69c['shift']());}catch(_0x49805e){_0xf6c69c['push'](_0xf6c69c['shift']());}}}(_0x2d7a,0x548d4));export{b as GlassTabs,c as default}from'./chunk-UMMRBERM.js';function _0x2d7a(){var _0x3aec7f=['591sHqlUK','2399190TCCbep','1599660QAeaPg','1127228wydouw','478mTAzpZ','6351scZpQp','4280052yHztqj','447168okheXw'];_0x2d7a=function(){return _0x3aec7f;};return _0x2d7a();}import'./chunk-IMUNBL7U.js';import'./chunk-ZCV4ENGP.js';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { GlassButton, type GlassButtonProps, type GlassButtonSize, } from "./glass-button.js";
|
|
2
|
+
export { GlassActionButton, type GlassActionButtonProps, type GlassActionState, } from "./glass-action-button.js";
|
|
3
|
+
export { GlassTabs, type GlassTabsProps, type GlassTabOption, } from "./glass-tabs.js";
|
|
4
|
+
export { GlassBadge, type GlassBadgeProps } from "./glass-badge.js";
|
|
5
|
+
export { GlassSlideToConfirm, type GlassSlideToConfirmProps, type GlassSlideState, type GlassSlideSize, } from "./glass-slide-to-confirm.js";
|
|
6
|
+
export { GlassCard, type GlassCardProps } from "./glass-card.js";
|
|
7
|
+
export { GlassButtonGroup, GlassButtonGroupItem, GlassButtonGroupSeparator, GlassButtonGroupText, type GlassButtonGroupProps, type GlassButtonGroupItemProps, type GlassButtonGroupSize, type GlassButtonGroupOrientation, } from "./glass-button-group.js";
|
|
8
|
+
export { GlassPopover, GlassPopoverTrigger, GlassPopoverContent, type GlassPopoverProps, type GlassPopoverTriggerProps, type GlassPopoverContentProps, } from "./glass-popover.js";
|
|
9
|
+
export { GlassMenu, GlassMenuTrigger, GlassMenuContent, GlassMenuItem, GlassMenuSeparator, GlassMenuLabel, type GlassMenuProps, type GlassMenuTriggerProps, type GlassMenuContentProps, type GlassMenuItemProps, type GlassMenuSeparatorProps, type GlassMenuLabelProps, type GlassMenuSide, type GlassMenuAlign, } from "./glass-menu.js";
|
|
10
|
+
export { GlassLens, type GlassLensProps } from "./glass-lens.js";
|
|
11
|
+
export { GlassPopupAnchor, GlassPopupSurface, useGlassPopup, type GlassPopup, } from "./glass-popup.js";
|
|
12
|
+
export { GlassLayer, GlassStyles, GLASS_CSS, type GlassLayerProps, type GlassMaterial, type GlassDroplet, type GlassOptics, } from "./glass-layer.js";
|
|
13
|
+
export { GlassSurface, useGlass, ELEVATION_SHADOWS, resolveGlassRadius, type GlassSurfaceProps, type GlassSurfaceElevation, type GlassHostProps, type UseGlassOptions, type UseGlassResult, } from "./glass-surface.js";
|
|
14
|
+
export { VitrumProvider, useVitrumTheme, createGlassTheme, defineVitrumConfig, resolveVitrumTheme, resolveThemeTokens, themeToCssVars, vitrumThemes, VITRUM_THEME_NAMES, type VitrumProviderProps, type VitrumTheme, type VitrumThemeName, type VitrumThemeOverrides, type VitrumThemeDarkOverrides, type VitrumThemeContextValue, type VitrumColorScheme, type ResolvedColorScheme, type VitrumMotionPreset, type VitrumConfig, } from "./theme.js";
|
|
15
|
+
export { setLicenseKey } from "@vitrumui/core";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
(function(_0x354ea5,_0x2bb882){var _0x203535=_0x2fbb,_0x3c49b3=_0x354ea5();while(!![]){try{var _0x146452=-parseInt(_0x203535(0x198))/0x1+-parseInt(_0x203535(0x196))/0x2*(-parseInt(_0x203535(0x195))/0x3)+-parseInt(_0x203535(0x192))/0x4+parseInt(_0x203535(0x199))/0x5*(-parseInt(_0x203535(0x19a))/0x6)+-parseInt(_0x203535(0x191))/0x7*(-parseInt(_0x203535(0x194))/0x8)+-parseInt(_0x203535(0x18f))/0x9*(-parseInt(_0x203535(0x197))/0xa)+-parseInt(_0x203535(0x190))/0xb*(-parseInt(_0x203535(0x193))/0xc);if(_0x146452===_0x2bb882)break;else _0x3c49b3['push'](_0x3c49b3['shift']());}catch(_0xf251b5){_0x3c49b3['push'](_0x3c49b3['shift']());}}}(_0x27f3,0x222fd));export{a as ELEVATION_SHADOWS,d as GlassSurface,b as resolveGlassRadius,c as useGlass}from'./chunk-P3SF73HG.js';function _0x2fbb(_0x4822d9,_0x367d2b){_0x4822d9=_0x4822d9-0x18f;var _0x27f372=_0x27f3();var _0x2fbbe7=_0x27f372[_0x4822d9];return _0x2fbbe7;}export{a as GlassButtonGroup,b as GlassButtonGroupItem,c as GlassButtonGroupSeparator,d as GlassButtonGroupText}from'./chunk-YZILLPGA.js';export{a as GlassActionButton}from'./chunk-E2KN4H6B.js';export{a as GlassBadge}from'./chunk-Q5GOHPZ3.js';export{a as GlassSlideToConfirm}from'./chunk-TIG2HRDS.js';export{a as GlassButton}from'./chunk-BCPB75TR.js';export{a as GlassLens,b as GlassTabs}from'./chunk-UMMRBERM.js';export{a as GlassCard}from'./chunk-KL26ZVD4.js';export{a as GlassPopover,c as GlassPopoverContent,b as GlassPopoverTrigger}from'./chunk-D6ZLXL4J.js';export{a as GlassMenu,c as GlassMenuContent,d as GlassMenuItem,f as GlassMenuLabel,e as GlassMenuSeparator,b as GlassMenuTrigger}from'./chunk-5H6FHJ6K.js';export{c as GlassPopupAnchor,b as GlassPopupSurface,d as useGlassPopup}from'./chunk-ULHSS732.js';export{a as GLASS_CSS,c as GlassLayer,b as GlassStyles}from'./chunk-IMUNBL7U.js';export{b as VITRUM_THEME_NAMES,j as VitrumProvider,d as createGlassTheme,e as defineVitrumConfig,f as resolveThemeTokens,c as resolveVitrumTheme,g as themeToCssVars,i as useVitrumTheme,a as vitrumThemes}from'./chunk-ZCV4ENGP.js';function _0x27f3(){var _0x35616a=['1705291zpxmNR','397228PPoRjj','8724rsQlGD','8lUohyW','51tRQBpL','31078eBVgjo','115940gfYoeN','112599yjXLZA','18645ZfzSJT','432uJKBfk','9NdNAEw','1529eecxmk'];_0x27f3=function(){return _0x35616a;};return _0x27f3();}export{setLicenseKey}from'@vitrumui/core';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
2
|
+
function _0x5b9b(){const _0x3962f2=['mix','fgHide','setTransform','radius','mul','PlaneGeometry','#17181c','div','shift','#c6c5c9','outputColorSpace','half','add','LinearFilter','#2a2c31','dirty','570088hSoRFd','bevel','value','CanvasTexture','lightDir','1398stGnec','abs','log2','#02458f','moved','domElement','143OPnaTj','stretch','732219qMKEPE','lensOn','setClearColor','rim','observe','height','lensX','blurEdge','class','now','shadowOffset','classList','min','OrthographicCamera','data-theme','lensY','clientY','3455OOlJmI','NoToneMapping','alwaysRender','addEventListener','frostEdge','bgTex','pointermove','Vector2','shOp','frustumCulled','dpr','frostCenter','mag','Mesh','fgTex','spec','tex','dispose','clearRect','rgba(255,\x20255,\x20255,\x200.06)','draw','needsUpdate','light','shOff','surface','#8d8d95','negate','createElement','compileAsync','generateMipmaps','assign','getAttribute','shSoft','renders','8537kgtGNk','MeshBasicNodeMaterial','clientX','scene','caustic','max','Scene','isIntersecting','rgb','frost','addAssign','getPropertyValue','matches','ctx','premultiplyAlpha','#e2e4e9','dark','size','target','ready','disp','fgUnderLens','step','devW','active','verifyLeft','bgCanvas','unit','devH','visible','devicePixelRatio','inner','70bBxjJw','[data-theme]','canvas','3391929ARCwHH','delete','Vector3','getContext','refract','mulAssign','toVar','closest','28MSLOiG','minFilter','forEach','#3291FF','documentElement','setSize','set','sub','round','#34353b','48620lolNPg','blurCenter','startsWith','pow','shadowOpacity','lightMix','getBoundingClientRect','1162680YPmejQ','devicePx'];_0x5b9b=function(){return _0x3962f2;};return _0x5b9b();}const _0x3bd3be=_0x12c9;(function(_0x783de1,_0x1205c6){const _0x2d13c2=_0x12c9,_0x37caf5=_0x783de1();while(!![]){try{const _0x5a8b43=parseInt(_0x2d13c2(0x229))/0x1*(parseInt(_0x2d13c2(0x1bb))/0x2)+parseInt(_0x2d13c2(0x1f6))/0x3+-parseInt(_0x2d13c2(0x1d7))/0x4+-parseInt(_0x2d13c2(0x207))/0x5*(parseInt(_0x2d13c2(0x1ee))/0x6)+parseInt(_0x2d13c2(0x1c6))/0x7*(-parseInt(_0x2d13c2(0x1e9))/0x8)+parseInt(_0x2d13c2(0x1be))/0x9+-parseInt(_0x2d13c2(0x1d0))/0xa*(-parseInt(_0x2d13c2(0x1f4))/0xb);if(_0x5a8b43===_0x1205c6)break;else _0x37caf5['push'](_0x37caf5['shift']());}catch(_0x17aa01){_0x37caf5['push'](_0x37caf5['shift']());}}}(_0x5b9b,0x3c1de));import*as _0x46f496 from'three/webgpu';import{uniform,Fn,abs,length,max,min,uv,vec2,oneMinus,texture,smoothstep,clamp,vec4,float,normalize,vec3,pow,mix,exp,dot,fwidth,sqrt}from'three/tsl';var fe={'light':{'surface':'#dedfe2','track':_0x3bd3be(0x1e2),'accent':_0x3bd3be(0x1c9),'accentDeep':'#02458f','frostCenter':'#f9fafc','frostEdge':_0x3bd3be(0x238),'text':'#1d1d1f','textMuted':'#6e6e75','well':'rgba(0,\x200,\x200,\x200.055)'},'dark':{'surface':_0x3bd3be(0x1df),'track':_0x3bd3be(0x1cf),'accent':'#3291FF','accentDeep':_0x3bd3be(0x1f1),'frostCenter':_0x3bd3be(0x1e7),'frostEdge':'#1c1d21','text':'#f5f5f7','textMuted':_0x3bd3be(0x220),'well':_0x3bd3be(0x21a)}};function ge(_0x57ab05){let _0x23a726=_0x57ab05['replace']('#',''),_0x4e0c23=parseInt(_0x23a726['length']===0x3?_0x23a726['replace'](/./g,'$&$&'):_0x23a726['slice'](0x0,0x6),0x10);return[(_0x4e0c23>>0x10&0xff)/0xff,(_0x4e0c23>>0x8&0xff)/0xff,(_0x4e0c23&0xff)/0xff];}var Ye=2.27;function $e(){const _0x4abb1c=_0x3bd3be;return{'size':uniform(new _0x46f496['Vector2'](0x1,0x1)),'unit':uniform(0x1),'devicePx':uniform(0x1),'blurShift':uniform(0x0),'center':uniform(new _0x46f496[(_0x4abb1c(0x20e))]()),'half':uniform(new _0x46f496['Vector2'](0x1,0x1)),'radius':uniform(0x1),'bevel':uniform(0x1),'refract':uniform(0x0),'mag':uniform(0x0),'disp':uniform(0x0),'blurC':uniform(0.35),'blurE':uniform(2.2),'frost':uniform(0x0),'rim':uniform(0.55),'caustic':uniform(0.08),'inner':uniform(0.1),'topRefl':uniform(0.3),'shOp':uniform(0.12),'shSoft':uniform(0x22),'shOff':uniform(0x16),'stretch':uniform(new _0x46f496[(_0x4abb1c(0x20e))](0x1,0x1)),'shift':uniform(new _0x46f496['Vector2'](0x0,0x0)),'frostCenter':uniform(new _0x46f496['Vector3'](0.98,0.98,0.99)),'frostEdge':uniform(new _0x46f496['Vector3'](0.89,0.89,0.91)),'surface':uniform(new _0x46f496[(_0x4abb1c(0x1c0))](0.87,0.87,0.89)),'lensOn':uniform(0x1),'lightDir':uniform(new _0x46f496['Vector2'](0x0,-0x1)),'lightMix':uniform(0x0),'fgHide':uniform(0x0)};}var je=1.4,Je=0x2a,Ke=1.6,Qe=0x6,Ze=1.1;function _0x12c9(_0x54f702,_0x3a1e1e){_0x54f702=_0x54f702-0x1ae;const _0x5b9b94=_0x5b9b();let _0x12c909=_0x5b9b94[_0x54f702];return _0x12c909;}function et(_0x97d9cf,_0x3ca44d,_0x23cf0b){const _0x2d7731=_0x3bd3be;let _0x44cc2c=Fn(([_0x3085ef,_0x14130f,_0x90a05])=>{const _0xda5bdc=_0x12c9;let _0x398a6b=abs(_0x3085ef)['sub'](_0x14130f)['add'](_0x90a05);return length(max(_0x398a6b,0x0))['add'](min(max(_0x398a6b['x'],_0x398a6b['y']),0x0))[_0xda5bdc(0x1cd)](_0x90a05);}),_0x4371a9=_0x401180=>{const _0x351e09=_0x12c9;let _0x3f39aa=_0x401180['mul'](_0x97d9cf['unit']);return clamp(vec2(_0x3f39aa['x']['div'](_0x97d9cf[_0x351e09(0x23a)]['x']),oneMinus(_0x3f39aa['y']['div'](_0x97d9cf[_0x351e09(0x23a)]['y']))),vec2(0.0005),vec2(0.9995));},_0xca7ed1=(_0x39be85,_0x53abec)=>{const _0x746050=_0x12c9;let _0x4c9d26=texture(_0x3ca44d,_0x39be85,_0x53abec);return _0x4c9d26[_0x746050(0x231)]['add'](oneMinus(_0x4c9d26['a'])[_0x746050(0x1dd)](_0x97d9cf['surface']));},_0xa2f4fc=_0xa7a46d=>pow(clamp(_0xa7a46d,0x0,0x1),0x1/2.2),_0x55e002=_0x1e8ae3=>{const _0x746b2b=_0x12c9;let _0x2e844b=_0x44cc2c(_0x1e8ae3,_0x97d9cf[_0x746b2b(0x1e4)],_0x97d9cf[_0x746b2b(0x1dc)]),_0x43a5dc=pow(clamp(_0x2e844b[_0x746b2b(0x221)]()[_0x746b2b(0x1e0)](_0x97d9cf['bevel']),0x0,0x1),float(0x1/je));return sqrt(oneMinus(pow(oneMinus(_0x43a5dc),0x2)));},_0x46068a=Fn(()=>{const _0x9d2662=_0x12c9;let _0x547b4e=uv(),_0x147497=vec2(_0x547b4e['x'],oneMinus(_0x547b4e['y']))[_0x9d2662(0x1dd)](_0x97d9cf[_0x9d2662(0x23a)])[_0x9d2662(0x1c4)](),_0x505124=_0x147497[_0x9d2662(0x1e0)](_0x97d9cf['unit'])[_0x9d2662(0x1c4)](),_0x48c972=texture(_0x3ca44d,vec2(_0x547b4e['x'],_0x547b4e['y']))['toVar'](),_0x35ee8f=_0x505124['sub'](_0x97d9cf['center'])[_0x9d2662(0x1e0)](_0x97d9cf[_0x9d2662(0x1f5)])['toVar'](),_0x2f1a04=_0x44cc2c(_0x35ee8f,_0x97d9cf[_0x9d2662(0x1e4)],_0x97d9cf['radius'])[_0x9d2662(0x1c4)](),_0x5af72d=smoothstep(-0.1,0.9,_0x35ee8f['y'][_0x9d2662(0x1e0)](_0x97d9cf[_0x9d2662(0x1e4)]['y']))['mul'](0.92)['add'](0.08),_0xcc842a=smoothstep(-0x4,0xe,_0x2f1a04),_0x49b47a=_0x44cc2c(_0x35ee8f[_0x9d2662(0x1cd)](vec2(0x0,_0x97d9cf[_0x9d2662(0x21e)])),_0x97d9cf[_0x9d2662(0x1e4)],_0x97d9cf['radius']),_0x42d987=_0x44cc2c(_0x35ee8f[_0x9d2662(0x1cd)](vec2(0x0,_0x97d9cf[_0x9d2662(0x21e)]['mul'](1.6))),_0x97d9cf[_0x9d2662(0x1e4)],_0x97d9cf['radius']),_0x3c41f2=oneMinus(smoothstep(-0x6,_0x97d9cf[_0x9d2662(0x227)],_0x49b47a)),_0x3139f9=oneMinus(smoothstep(-0xa,_0x97d9cf['shSoft']['mul'](1.5),_0x42d987)),_0x25befd=min(min(_0x147497['x'],_0x147497['y']),min(_0x97d9cf[_0x9d2662(0x23a)]['x']['sub'](_0x147497['x']),_0x97d9cf['size']['y']['sub'](_0x147497['y']))),_0x57b784=clamp(_0x3c41f2['mul'](_0x97d9cf[_0x9d2662(0x20f)])['add'](_0x3139f9[_0x9d2662(0x1dd)](_0x97d9cf['shOp']))['mul'](_0x5af72d)['mul'](_0xcc842a),0x0,0.85)[_0x9d2662(0x1dd)](smoothstep(0x0,0xe,_0x25befd))['mul'](_0x97d9cf[_0x9d2662(0x1f7)]),_0x1af588=_0xa2f4fc(oneMinus(_0x57b784)),_0x221582=vec4(_0x48c972['rgb']['mul'](_0x1af588),_0x48c972['a']['add'](oneMinus(_0x48c972['a'])[_0x9d2662(0x1dd)](oneMinus(_0x1af588)))),_0x1bbbfa=float(1.25),_0x307f3b=_0x55e002(_0x35ee8f)['toVar'](),_0x2ae7e6=vec2(_0x55e002(_0x35ee8f['add'](vec2(_0x1bbbfa,0x0)))['sub'](_0x307f3b),_0x55e002(_0x35ee8f['add'](vec2(0x0,_0x1bbbfa)))['sub'](_0x307f3b))[_0x9d2662(0x1e0)](_0x1bbbfa),_0x2b66cf=normalize(vec3(_0x2ae7e6['mul'](Je)['negate'](),0x1))[_0x9d2662(0x1c4)](),_0x2cad1a=clamp(oneMinus(_0x307f3b),0x0,0x1)['toVar'](),_0x375180=smoothstep(_0x97d9cf['bevel'][_0x9d2662(0x1dd)](0.35),0x0,_0x2f1a04['negate']())[_0x9d2662(0x1c4)](),_0xc0e642=normalize(vec2(_0x44cc2c(_0x35ee8f['add'](vec2(_0x1bbbfa,0x0)),_0x97d9cf[_0x9d2662(0x1e4)],_0x97d9cf[_0x9d2662(0x1dc)])['sub'](_0x2f1a04),_0x44cc2c(_0x35ee8f[_0x9d2662(0x1e5)](vec2(0x0,_0x1bbbfa)),_0x97d9cf['half'],_0x97d9cf['radius'])['sub'](_0x2f1a04)))['toVar'](),_0x3b902b=_0x35ee8f[_0x9d2662(0x1dd)](float(0x1)['div'](_0x97d9cf[_0x9d2662(0x213)][_0x9d2662(0x1dd)](_0x307f3b)[_0x9d2662(0x1e5)](0x1))),_0x40771c=_0xc0e642['mul'](_0x97d9cf['refract'])['mul'](pow(_0x375180,Ke))['negate']()['toVar'](),_0x5ee91a=_0x97d9cf[_0x9d2662(0x1af)][_0x9d2662(0x1dd)](0.35),_0x572b64=_0x97d9cf['center'][_0x9d2662(0x1e5)](_0x97d9cf['shift']),_0x3fbb34=_0x4371a9(_0x572b64[_0x9d2662(0x1e5)](_0x3b902b)['add'](_0x40771c))[_0x9d2662(0x1c4)](),_0xa7b407=_0x4371a9(_0x572b64['add'](_0x3b902b)[_0x9d2662(0x1e5)](_0x40771c[_0x9d2662(0x1dd)](_0x5ee91a['add'](0x1)))),_0xfc0b3f=_0x4371a9(_0x572b64['add'](_0x3b902b)['add'](_0x40771c[_0x9d2662(0x1dd)](oneMinus(_0x5ee91a)))),_0x2fcf47=max(mix(_0x97d9cf['blurC'],_0x97d9cf['blurE'],pow(_0x375180,1.3))['add'](_0x97d9cf['blurShift']),0x0),_0x3be21a=vec3(_0xca7ed1(_0xa7b407,_0x2fcf47)['r'],_0xca7ed1(_0x3fbb34,_0x2fcf47)['g'],_0xca7ed1(_0xfc0b3f,_0x2fcf47)['b'])[_0x9d2662(0x1c4)](),_0x131d35=_0x35ee8f['y'][_0x9d2662(0x1e0)](_0x97d9cf[_0x9d2662(0x1e4)]['y']),_0x1fa4a4=_0x35ee8f['x']['div'](_0x97d9cf['half']['x']),_0x5db256=smoothstep(0.75,-0.05,_0x131d35)[_0x9d2662(0x1dd)](_0x1fa4a4['mul'](-0.12)[_0x9d2662(0x1e5)](0x1))['mul'](_0x97d9cf['topRefl'])['mul'](0.6)[_0x9d2662(0x1e5)](0.02);_0x3be21a['mulAssign'](_0xa2f4fc(oneMinus(vec3(0x1,0x1,0.72)['mul'](_0x5db256)))),_0x3be21a[_0x9d2662(0x225)](mix(_0x3be21a,mix(_0x97d9cf[_0x9d2662(0x212)],_0x97d9cf[_0x9d2662(0x20b)],pow(_0x2cad1a,1.6)),_0x97d9cf[_0x9d2662(0x232)]));let _0x286996=clamp(_0xc0e642['y']['negate'](),0x0,0x1),_0x39bdac=clamp(_0xc0e642['x'],0x0,0x1),_0x598a4d=clamp(_0xc0e642['x'][_0x9d2662(0x221)](),0x0,0x1),_0x28d203=clamp(_0xc0e642['y'],0x0,0x1),_0x33f18f=smoothstep(_0x97d9cf['bevel'][_0x9d2662(0x1dd)](-0.19),_0x97d9cf[_0x9d2662(0x1ea)]['mul'](-0.024),_0x2f1a04),_0x38c411=_0x286996['add'](_0x598a4d['mul'](0.6))[_0x9d2662(0x1e5)](_0x39bdac[_0x9d2662(0x1dd)](0.3))[_0x9d2662(0x1e5)](_0x28d203[_0x9d2662(0x1dd)](0.15));_0x3be21a[_0x9d2662(0x1c3)](_0xa2f4fc(oneMinus(_0x33f18f[_0x9d2662(0x1dd)](_0x38c411)[_0x9d2662(0x1dd)](_0x97d9cf['inner'])[_0x9d2662(0x1dd)](2.2))));let _0x40aa3b=smoothstep(_0x97d9cf['bevel'][_0x9d2662(0x1dd)](-0.73),_0x97d9cf[_0x9d2662(0x1ea)][_0x9d2662(0x1dd)](-0.13),_0x2f1a04);_0x3be21a['mulAssign'](_0xa2f4fc(oneMinus(_0x40aa3b['mul'](_0x598a4d)[_0x9d2662(0x1dd)](_0x97d9cf[_0x9d2662(0x1ba)])[_0x9d2662(0x1dd)](0x2))));let _0x47db56=exp(_0x2f1a04[_0x9d2662(0x1e5)](_0x97d9cf['bevel']['mul'](0.45))[_0x9d2662(0x1e0)](_0x97d9cf['bevel']['mul'](0.26))[_0x9d2662(0x1d3)](0x2)[_0x9d2662(0x221)]()),_0x1b5cad=_0x39bdac[_0x9d2662(0x1dd)](0.9)[_0x9d2662(0x1e5)](_0x286996['mul'](0.5))[_0x9d2662(0x1e5)](_0x598a4d[_0x9d2662(0x1dd)](0.4))['add'](_0x28d203['mul'](0.3));_0x3be21a[_0x9d2662(0x1c3)](_0xa2f4fc(oneMinus(_0x47db56['mul'](_0x1b5cad)[_0x9d2662(0x1dd)](_0x97d9cf[_0x9d2662(0x1ba)])['mul'](1.5))));let _0x2a3fce=pow(clamp(oneMinus(_0x2b66cf['z']),0x0,0x1),Qe),_0x5bb580=max(_0x97d9cf[_0x9d2662(0x1d8)]['mul'](Ze),0x1),_0x477018=smoothstep(_0x5bb580[_0x9d2662(0x1dd)](1.6),0x0,abs(_0x2f1a04['add'](_0x5bb580[_0x9d2662(0x1dd)](1.8)))),_0xfd98de=exp(pow(_0x35ee8f['y'][_0x9d2662(0x1e0)](0x1e),0x2)['negate']()),_0x15ced2=pow(_0x39bdac,0x2)[_0x9d2662(0x1dd)](_0xfd98de)['mul'](0.9)['add'](pow(_0x28d203,0x2)[_0x9d2662(0x1dd)](0.2))[_0x9d2662(0x1e5)](pow(_0x598a4d,0x2)['mul'](0.55)),_0x2c523f=dot(_0xc0e642,_0x97d9cf[_0x9d2662(0x1ed)]),_0x28eade=clamp(_0x2c523f,0x0,0x1)[_0x9d2662(0x1c4)](),_0xe17446=clamp(_0x2c523f[_0x9d2662(0x221)](),0x0,0x1),_0x43e75a=pow(_0x28eade,0x2)['mul'](0.9)[_0x9d2662(0x1e5)](pow(_0xe17446,0x2)['mul'](0.55)),_0x19713c=_0x97d9cf[_0x9d2662(0x1d5)]['mul'](0.4),_0x2411f6=mix(_0x15ced2,_0x43e75a,_0x19713c),_0x1dd0a3=mix(_0x39bdac,_0x28eade,_0x19713c),_0x49e6a7=mix(_0x598a4d,_0xe17446,_0x19713c),_0x2b9011=mix(vec3(0.82,0.9,1.08),vec3(1.2,0.95,0.78),smoothstep(0.1,-0.5,_0x1fa4a4)),_0x401b44=mix(vec3(0x1),_0x2b9011,_0x28d203['mul'](0.6))['toVar']();_0x401b44['assign'](mix(_0x401b44,vec3(0.12,0.6,1.2),_0x49e6a7['mul'](0.85))),_0x3be21a[_0x9d2662(0x233)](_0x401b44[_0x9d2662(0x1dd)](_0x477018['mul'](_0x2411f6)['mul'](_0x97d9cf[_0x9d2662(0x1f9)])[_0x9d2662(0x1e5)](_0x2a3fce[_0x9d2662(0x1dd)](_0x1dd0a3)['mul'](0.02)))),_0x3be21a[_0x9d2662(0x233)](vec3(0x1,0.92,0.86)[_0x9d2662(0x1dd)](smoothstep(0.72,0.98,_0x2cad1a)['mul'](_0x28d203)['mul'](_0x97d9cf[_0x9d2662(0x22d)])));let _0x54e4dc=max(fwidth(_0x2f1a04),0.0001),_0x4570ce=smoothstep(_0x54e4dc,_0x54e4dc['negate'](),_0x2f1a04)['mul'](_0x97d9cf['lensOn'])[_0x9d2662(0x1c4)](),_0x224ad9=mix(_0x221582,vec4(clamp(_0x3be21a,0x0,0x1),0x1),_0x4570ce),_0x5dd768=texture(_0x23cf0b,vec2(_0x547b4e['x'],_0x547b4e['y']))['mul'](oneMinus(_0x4570ce['mul'](oneMinus(_0x97d9cf[_0x9d2662(0x232)]))['mul'](_0x97d9cf[_0x9d2662(0x1da)])));return _0x5dd768[_0x9d2662(0x1e5)](_0x224ad9['mul'](oneMinus(_0x5dd768['a'])));}),_0x1e0a18=new _0x46f496[(_0x2d7731(0x22a))]();return _0x1e0a18['colorNode']=_0x46068a(),_0x1e0a18['blending']=_0x46f496['NoBlending'],_0x1e0a18['transparent']=![],_0x1e0a18;}function ye(){const _0x5ea8ea=_0x3bd3be;let _0x1cb9b6=document[_0x5ea8ea(0x222)](_0x5ea8ea(0x1bd));_0x1cb9b6['width']=0x2,_0x1cb9b6[_0x5ea8ea(0x1fb)]=0x2;let _0x58f301=new _0x46f496[(_0x5ea8ea(0x1ec))](_0x1cb9b6);return _0x58f301['colorSpace']=_0x46f496['NoColorSpace'],_0x58f301[_0x5ea8ea(0x237)]=!![],_0x58f301[_0x5ea8ea(0x1c7)]=_0x46f496['LinearMipmapLinearFilter'],_0x58f301['magFilter']=_0x46f496[_0x5ea8ea(0x1e6)],_0x58f301['generateMipmaps']=!![],{'canvas':_0x1cb9b6,'tex':_0x58f301};}function tt(_0x45c258){const _0x4b5cf5=_0x3bd3be;let _0x21c16e=_0x45c258[_0x4b5cf5(0x1c5)](_0x4b5cf5(0x1bc))?.[_0x4b5cf5(0x226)](_0x4b5cf5(0x204));return _0x21c16e?_0x21c16e==='dark'?'dark':_0x4b5cf5(0x21d):document['documentElement'][_0x4b5cf5(0x201)]['contains']('dark')?_0x4b5cf5(0x239):'light';}function ee(_0x339abc,_0x20b217){const _0x657580=_0x3bd3be;let [_0x5b3df3,_0x417e8d,_0x485c24]=ge(_0x20b217);_0x339abc[_0x657580(0x1eb)][_0x657580(0x1cc)](_0x5b3df3,_0x417e8d,_0x485c24);}async function nt(){const _0x43e90d=_0x3bd3be;let _0x3906f2=new _0x46f496['WebGPURenderer']({'antialias':![],'alpha':!![],'forceWebGL':!![]});await _0x3906f2['init'](),_0x3906f2['setPixelRatio'](0x1),_0x3906f2[_0x43e90d(0x1e3)]=_0x46f496['LinearSRGBColorSpace'],_0x3906f2['toneMapping']=_0x46f496[_0x43e90d(0x208)],_0x3906f2[_0x43e90d(0x1f8)](0x0,0x0);let _0x1928ec=_0x3906f2[_0x43e90d(0x1f3)],_0x5a71fc=0x0,_0x501910=0x0,_0x5bdf0b=new _0x46f496[(_0x43e90d(0x203))](-0x1,0x1,0x1,-0x1,0.1,0xa);_0x5bdf0b['position']['z']=0x1;let _0x15dc25=new _0x46f496[(_0x43e90d(0x1de))](0x2,0x2),_0x43ac6d=new Set(),_0x3596bd=window['matchMedia']('(prefers-reduced-motion:\x20reduce)'),_0x13cbc3=new IntersectionObserver(_0x18ff42=>{const _0x32aa08=_0x43e90d;for(let _0x29c98b of _0x18ff42)for(let _0x35ca16 of _0x43ac6d)_0x35ca16['canvas']===_0x29c98b[_0x32aa08(0x23b)]&&(_0x35ca16[_0x32aa08(0x1b8)]=_0x29c98b[_0x32aa08(0x230)],_0x35ca16['visible']&&(_0x35ca16['dirty']=!![]));}),_0xc90917=()=>_0x43ac6d[_0x43e90d(0x1c8)](_0x30e90e=>_0x30e90e['dirty']=!![]);new MutationObserver(_0xc90917)[_0x43e90d(0x1fa)](document[_0x43e90d(0x1ca)],{'attributes':!![],'attributeFilter':['data-theme'],'subtree':!![]}),new MutationObserver(_0xc90917)[_0x43e90d(0x1fa)](document['documentElement'],{'attributes':!![],'attributeFilter':[_0x43e90d(0x1fe)]});function _0x238008(_0x97a216,_0x84d77f){const _0x2371f6=_0x43e90d;let _0xb8eb22=Math[_0x2371f6(0x202)](window[_0x2371f6(0x1b9)]||0x1,0x2),_0x21dd19=Math['max'](0x2,Math['round'](_0x84d77f['width']*_0xb8eb22)),_0x290a82=Math['max'](0x2,Math[_0x2371f6(0x1ce)](_0x84d77f[_0x2371f6(0x1fb)]*_0xb8eb22));if(!(_0x21dd19===_0x97a216[_0x2371f6(0x1b2)]&&_0x290a82===_0x97a216[_0x2371f6(0x1b7)]&&_0xb8eb22===_0x97a216['dpr'])){_0x97a216['devW']=_0x21dd19,_0x97a216['devH']=_0x290a82,_0x97a216['dpr']=_0xb8eb22,_0x97a216['canvas']['width']=_0x21dd19,_0x97a216['canvas'][_0x2371f6(0x1fb)]=_0x290a82;for(let _0x2a7021 of['bg','fg']){let _0x31c766=_0x2a7021==='bg'?_0x97a216['bgCanvas']:_0x97a216['fgCanvas'];_0x31c766['width']=_0x21dd19,_0x31c766[_0x2371f6(0x1fb)]=_0x290a82,(_0x2a7021==='bg'?_0x97a216[_0x2371f6(0x20c)]:_0x97a216[_0x2371f6(0x215)])['dispose']();}}}let _0x888938={'x':0x0,'y':0x0,'active':![],'moved':![],'mix':0x0};window['addEventListener'](_0x43e90d(0x20d),_0x1606ae=>{const _0x2bafac=_0x43e90d;_0x888938['x']=_0x1606ae[_0x2bafac(0x22b)],_0x888938['y']=_0x1606ae[_0x2bafac(0x206)],_0x888938['active']=!![],_0x888938['moved']=!![];},{'passive':!![]}),window[_0x43e90d(0x20a)]('scroll',()=>_0x888938[_0x43e90d(0x1f2)]=!![],{'passive':!![],'capture':!![]}),document['documentElement'][_0x43e90d(0x20a)]('pointerleave',()=>{const _0x314512=_0x43e90d;_0x888938[_0x314512(0x1b3)]=![],_0x888938['moved']=!![];});function _0x36b40e(_0x112b9d,_0x5a8bea){const _0x1b4243=_0x43e90d;let _0x4143d2=_0x112b9d['canvas'][_0x1b4243(0x1d6)](),_0x4222bf=_0x888938['x']-(_0x4143d2['left']+_0x112b9d[_0x1b4243(0x1fc)]*_0x5a8bea[_0x1b4243(0x1b6)]),_0x325abd=_0x888938['y']-(_0x4143d2['top']+_0x112b9d[_0x1b4243(0x205)]*_0x5a8bea['unit']),_0x97acbb=Math['hypot'](_0x4222bf,_0x325abd);_0x97acbb>0.5&&_0x112b9d['u']['lightDir'][_0x1b4243(0x1eb)]['set'](_0x4222bf/_0x97acbb,_0x325abd/_0x97acbb),_0x112b9d['u']['lightMix']['value']=_0x5a8bea['cursorLight']?_0x888938['mix']:0x0;}function _0x402703(_0x2655c5){const _0x5e3adc=_0x43e90d;(_0x5a71fc!==_0x2655c5['devW']||_0x501910!==_0x2655c5[_0x5e3adc(0x1b7)])&&(_0x3906f2[_0x5e3adc(0x1cb)](_0x2655c5[_0x5e3adc(0x1b2)],_0x2655c5['devH'],![]),_0x5a71fc=_0x2655c5['devW'],_0x501910=_0x2655c5[_0x5e3adc(0x1b7)]),_0x3906f2['render'](_0x2655c5[_0x5e3adc(0x22c)],_0x5bdf0b),_0x2655c5[_0x5e3adc(0x236)]['clearRect'](0x0,0x0,_0x2655c5[_0x5e3adc(0x1b2)],_0x2655c5['devH']),_0x2655c5[_0x5e3adc(0x236)]['drawImage'](_0x1928ec,0x0,0x0,_0x2655c5[_0x5e3adc(0x1b2)],_0x2655c5['devH'],0x0,0x0,_0x2655c5['devW'],_0x2655c5['devH']);}function _0x15b53e(_0x297205,_0x4afdc1){const _0x340338=_0x43e90d;let _0x109a0e=performance[_0x340338(0x1ff)](),_0x5e5c20=_0x297205['spec']();_0x238008(_0x297205,_0x5e5c20);let _0x14b913=tt(_0x297205['canvas']),_0x1b7c5c=fe[_0x14b913],_0x45a3ad=_0x297205[_0x340338(0x1b5)]['getContext']('2d'),_0x28c820=_0x297205['fgCanvas'][_0x340338(0x1c1)]('2d');for(let _0x28123b of[_0x45a3ad,_0x28c820])_0x28123b[_0x340338(0x1db)](0x1,0x0,0x0,0x1,0x0,0x0),_0x28123b[_0x340338(0x219)](0x0,0x0,_0x297205[_0x340338(0x1b2)],_0x297205[_0x340338(0x1b7)]),_0x28123b[_0x340338(0x1db)](_0x297205[_0x340338(0x211)],0x0,0x0,_0x297205[_0x340338(0x211)],0x0,0x0);let _0x370a8d=_0x5e5c20[_0x340338(0x21b)](_0x45a3ad,_0x28c820,_0x1b7c5c,_0x14b913);_0x297205['bgTex'][_0x340338(0x21c)]=!![],_0x297205['fgTex']['needsUpdate']=!![];let _0x42b924=_0x297205['u'];if(_0x42b924[_0x340338(0x23a)]['value'][_0x340338(0x1cc)](_0x297205['devW'],_0x297205[_0x340338(0x1b7)]),_0x42b924['unit']['value']=_0x5e5c20['unit']*_0x297205['dpr'],_0x42b924[_0x340338(0x1d8)]['value']=0x1/(_0x5e5c20[_0x340338(0x1b6)]*_0x297205['dpr']),_0x42b924['blurShift']['value']=Math[_0x340338(0x1f0)](Math['max'](_0x5e5c20[_0x340338(0x1b6)]*_0x297205[_0x340338(0x211)]/Ye,0.001)),_0x42b924['center'][_0x340338(0x1eb)]['set'](_0x370a8d['x'],_0x370a8d['y']),_0x42b924['half'][_0x340338(0x1eb)][_0x340338(0x1cc)](Math['max'](_0x370a8d['hx'],0.5),Math[_0x340338(0x22e)](_0x370a8d['hy'],0.5)),_0x42b924[_0x340338(0x1dc)][_0x340338(0x1eb)]=Math['max'](0x0,Math['min'](_0x370a8d[_0x340338(0x1dc)],Math[_0x340338(0x202)](_0x370a8d['hx'],_0x370a8d['hy'])-0.5)),_0x42b924[_0x340338(0x1ea)]['value']=Math[_0x340338(0x22e)](_0x370a8d['bevel'],0x1),_0x42b924['refract'][_0x340338(0x1eb)]=_0x370a8d[_0x340338(0x1c2)],_0x42b924[_0x340338(0x213)]['value']=_0x370a8d[_0x340338(0x213)],_0x42b924[_0x340338(0x1af)][_0x340338(0x1eb)]=_0x370a8d['disp'],_0x42b924['blurC']['value']=_0x370a8d[_0x340338(0x1d1)],_0x42b924['blurE']['value']=_0x370a8d[_0x340338(0x1fd)],_0x42b924[_0x340338(0x232)]['value']=_0x370a8d[_0x340338(0x232)],_0x42b924[_0x340338(0x1f9)]['value']=_0x370a8d[_0x340338(0x1f9)],_0x42b924['caustic']['value']=_0x370a8d['caustic'],_0x42b924['inner']['value']=_0x370a8d[_0x340338(0x1ba)],_0x42b924['topRefl']['value']=_0x370a8d['topRefl'],_0x42b924[_0x340338(0x20f)][_0x340338(0x1eb)]=_0x370a8d[_0x340338(0x1d4)],_0x42b924[_0x340338(0x227)]['value']=_0x370a8d['shadowSoftness'],_0x42b924[_0x340338(0x21e)][_0x340338(0x1eb)]=_0x370a8d[_0x340338(0x200)],_0x42b924['stretch']['value']['set'](_0x370a8d['stretchX'],_0x370a8d['stretchY']),_0x42b924[_0x340338(0x1e1)]['value']['set'](_0x370a8d['shiftX'],0x0),ee(_0x42b924['frostCenter'],_0x370a8d['frostCenter']??_0x1b7c5c['frostCenter']),ee(_0x42b924['frostEdge'],_0x370a8d[_0x340338(0x20b)]??_0x1b7c5c[_0x340338(0x20b)]),(_0x4afdc1||!_0x297205['surface'])&&(_0x297205['surface']=getComputedStyle(_0x297205['canvas'])[_0x340338(0x234)]('--vt-surface')['trim']()||_0x1b7c5c['surface']),ee(_0x42b924[_0x340338(0x21f)],_0x297205['surface'][_0x340338(0x1d2)]('#')?_0x297205['surface']:_0x1b7c5c['surface']),_0x42b924[_0x340338(0x1f7)]['value']=_0x370a8d[_0x340338(0x1b8)]===![]?0x0:0x1,_0x42b924[_0x340338(0x1da)][_0x340338(0x1eb)]=_0x5e5c20[_0x340338(0x1b0)]??0x0,_0x297205[_0x340338(0x1fc)]=_0x370a8d['x'],_0x297205['lensY']=_0x370a8d['y'],_0x36b40e(_0x297205,_0x5e5c20),_0x402703(_0x297205),_0x297205[_0x340338(0x228)]++,_0x297205['renderMs']+=performance['now']()-_0x109a0e,_0x297205[_0x340338(0x1b4)]>0x0&&_0x370a8d['visible']!==![]){let _0xef3f3e=Math[_0x340338(0x1ce)](_0x370a8d['x']*_0x5e5c20[_0x340338(0x1b6)]*_0x297205[_0x340338(0x211)]),_0x1c9583=Math['round'](_0x370a8d['y']*_0x5e5c20['unit']*_0x297205['dpr']),_0x210e7d=_0xef3f3e>=0x0&&_0x1c9583>=0x0&&_0xef3f3e<_0x297205['devW']&&_0x1c9583<_0x297205[_0x340338(0x1b7)]&&_0x297205['ctx']['getImageData'](_0xef3f3e,_0x1c9583,0x1,0x1)['data'][0x3]===0x0;_0x297205['verifyLeft']=_0x210e7d?_0x297205['verifyLeft']-0x1:0x0,_0x210e7d&&(_0x297205[_0x340338(0x1e8)]=!![]);}}let _0x153435=performance[_0x43e90d(0x1ff)](),_0x202bb8=_0x280dae=>{const _0x3e6d2e=_0x43e90d;let _0xfa4329=Math[_0x3e6d2e(0x202)]((_0x280dae-_0x153435)/0x3e8,0.03333333333333333);_0x153435=_0x280dae;let _0x30fab5=_0x888938['active']?0x1:0x0,_0x1299d7=_0x888938[_0x3e6d2e(0x1d9)];_0x888938['mix']=_0x3596bd[_0x3e6d2e(0x235)]?_0x30fab5:_0x888938['mix']+(_0x30fab5-_0x888938['mix'])*Math[_0x3e6d2e(0x202)](0x1,_0xfa4329*0x6),Math[_0x3e6d2e(0x1ef)](_0x888938['mix']-_0x30fab5)<0.002&&(_0x888938['mix']=_0x30fab5);let _0x464736=_0x888938['moved']||_0x888938[_0x3e6d2e(0x1d9)]!==_0x1299d7;_0x888938['moved']=![];for(let _0x1ea3fb of _0x43ac6d){if(!_0x1ea3fb[_0x3e6d2e(0x1ae)])continue;let _0x5d1fd3=_0x1ea3fb[_0x3e6d2e(0x216)](),_0x2d1b4c=_0x5d1fd3[_0x3e6d2e(0x1b1)]?.(_0xfa4329,_0x3596bd[_0x3e6d2e(0x235)])??![];if(_0x1ea3fb[_0x3e6d2e(0x1b8)]){if(_0x2d1b4c||_0x1ea3fb['dirty']||_0x5d1fd3[_0x3e6d2e(0x209)]){let _0x48f2e8=_0x1ea3fb[_0x3e6d2e(0x1e8)];_0x1ea3fb['dirty']=![],_0x15b53e(_0x1ea3fb,_0x48f2e8);}else{if(_0x464736&&_0x1ea3fb[_0x3e6d2e(0x1b2)]>0x0){let _0x240a1b=_0x1ea3fb[_0x3e6d2e(0x216)]();if(!_0x240a1b['cursorLight'])continue;_0x36b40e(_0x1ea3fb,_0x240a1b),_0x402703(_0x1ea3fb);}}}}requestAnimationFrame(_0x202bb8);};return requestAnimationFrame(_0x202bb8),{async 'createView'(_0x46fef8,_0x7f7bf0){const _0x40fa33=_0x43e90d;let _0x553815=ye(),_0x40864f=ye();_0x40864f['tex'][_0x40fa33(0x224)]=![],_0x40864f[_0x40fa33(0x217)][_0x40fa33(0x1c7)]=_0x46f496['LinearFilter'];let _0x22074f=$e(),_0x3482d2=et(_0x22074f,_0x553815['tex'],_0x40864f[_0x40fa33(0x217)]),_0x48feee=new _0x46f496[(_0x40fa33(0x22f))](),_0x26199d=new _0x46f496[(_0x40fa33(0x214))](_0x15dc25,_0x3482d2);_0x26199d[_0x40fa33(0x210)]=![],_0x48feee['add'](_0x26199d);let _0x2c3351={'canvas':_0x46fef8,'ctx':_0x46fef8[_0x40fa33(0x1c1)]('2d',{'willReadFrequently':![]}),'spec':_0x7f7bf0,'bgCanvas':_0x553815['canvas'],'fgCanvas':_0x40864f['canvas'],'bgTex':_0x553815['tex'],'fgTex':_0x40864f['tex'],'scene':_0x48feee,'material':_0x3482d2,'u':_0x22074f,'devW':0x0,'devH':0x0,'dpr':0x0,'dirty':!![],'visible':!![],'ready':![],'verifyLeft':0xf0,'surface':'','lensX':0x0,'lensY':0x0,'renders':0x0,'renderMs':0x0};return _0x43ac6d[_0x40fa33(0x1e5)](_0x2c3351),_0x13cbc3[_0x40fa33(0x1fa)](_0x46fef8),_0x238008(_0x2c3351,_0x7f7bf0()),await _0x3906f2[_0x40fa33(0x223)](_0x48feee,_0x5bdf0b),_0x2c3351['ready']=!![],{'invalidate':()=>{_0x2c3351['dirty']=!![];},'stats':()=>({'renders':_0x2c3351['renders'],'ms':_0x2c3351['renderMs']}),'dispose':()=>{const _0x583697=_0x40fa33;_0x43ac6d[_0x583697(0x1bf)](_0x2c3351),_0x13cbc3['unobserve'](_0x46fef8),_0x3482d2['dispose'](),_0x553815['tex'][_0x583697(0x218)](),_0x40864f[_0x583697(0x217)]['dispose']();}};}};}var Ee=null;function ot(){return Ee??=nt(),Ee;}export{ot as getGlassRuntime};
|