@tempots/beatui 0.24.0 → 0.25.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/dist/{2019-7ojCcWUJ.cjs → 2019-BGvIfJgi.cjs} +1 -1
- package/dist/{2019-JwkYbae8.js → 2019-DrrKn54V.js} +2 -2
- package/dist/{2020-BLYgDBO4.cjs → 2020-BK5C7IVQ.cjs} +1 -1
- package/dist/{2020-kK0rQWn9.js → 2020-CFnlLHs-.js} +2 -2
- package/dist/{index-BeoVum6H.js → index-BMX9_XgV.js} +1 -1
- package/dist/{index-CgH6d8ie.cjs → index-CNVCqpBH.cjs} +1 -1
- package/dist/{index-D1rYqvi5.cjs → index-CvvASOCn.cjs} +2 -2
- package/dist/{index-DYmfX0jE.js → index-DkuGi1I_.js} +470 -470
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +72 -71
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/notice-DyoWY5tY.cjs +1 -0
- package/dist/{notice-c9Vbv45l.js → notice-wSAzLfbl.js} +703 -669
- package/dist/types/components/form/control/list-control.d.ts +4 -2
- package/package.json +1 -1
- package/dist/notice-C7I6EmRh.cjs +0 -1
package/dist/index.es.js
CHANGED
|
@@ -5,13 +5,13 @@ import { B as ne, C as gt, n as Ie, r as Ke, I as j, s as re, a as Pe, e as q, g
|
|
|
5
5
|
import { Q as xs, G as ys, c as ws, a2 as Ss, E as Cs, a0 as ks, a9 as Is, L as $s, M as _s, a1 as Ts, N as Ds, P as As, R as Vs, T as Ls, X as Bs, Z as Ms, Y as Os, V as Ns, U as Ps, z as Es, k as Fs, f as Hs, a6 as Rs, a4 as Us, F as js, a8 as zs, aa as Ws, A as qs, a7 as Zs, m as Ys, q as Gs, a3 as Ks, H as Xs, K as Js, a5 as Qs, $ as el, D as tl, t as nl, W as al, u as sl, J as ll } from "./translations-GO9sIajX.js";
|
|
6
6
|
import { T as wt, a as en } from "./theme-CJVt8QIc.js";
|
|
7
7
|
import { t as ol, am as il, f as ul, J as cl, c as dl, N as pl, I as ml, K as bl, d as fl, k as gl, b as hl, a as vl, ab as xl, o as yl, a0 as wl, ae as Sl, q as Cl, H as kl, A as Il, al as $l, g as _l, E as Tl, x as Dl, aj as Al, $ as Vl, a4 as Ll, j as Bl, i as Ml, h as Ol, Y as Nl, X as Pl, Q as El, P as Fl, S as Hl, R as Rl, W as Ul, V as jl, U as zl, T as Wl, a8 as ql, a7 as Zl, aa as Yl, a9 as Gl, n as Kl, m as Xl, l as Jl, _ as Ql, Z as er, ad as tr, p as nr, G as ar, z as sr, ak as lr, D as rr, C as or, w as ir, v as ur, ai as cr, ah as dr, e as pr, a3 as mr, a2 as br, M as fr, L as gr, a5 as hr, a6 as vr, r as xr, O as yr, ac as wr, s as Sr, F as Cr, y as kr, ag as Ir, B as $r, u as _r, af as Tr, a1 as Dr } from "./index-OrV7N-wE.js";
|
|
8
|
-
import { S as tn, G as St, E as nn, F as an, N as Ct, a as oe, M as me, e as et, n as sn, W as Q, d as ln } from "./notice-
|
|
9
|
-
import {
|
|
8
|
+
import { S as tn, G as St, E as nn, F as an, N as Ct, a as oe, M as me, e as et, n as sn, W as Q, d as ln } from "./notice-wSAzLfbl.js";
|
|
9
|
+
import { g as Vr, i as Lr, B as Br, l as Mr, O as Or, C as Nr, j as Pr, L as Er, k as Fr, m as Hr, V as Rr, o as Ur, p as jr, I as zr, q as Wr, w as qr, r as Zr, A as Yr, H as Gr, s as Kr, u as Xr, z as Jr, K as Qr, v as eo, R as to, D as no, x as ao, T as so, y as lo, b as ro, U as oo, J as io, P as uo, Q as co, X as po, h as mo, c as bo, t as fo, f as go } from "./notice-wSAzLfbl.js";
|
|
10
10
|
import { g as $e } from "./timer-CQlK5LhW.js";
|
|
11
11
|
import { u as ge, A as Ee, O as rn, F as on } from "./modal-C2Aa-aVN.js";
|
|
12
|
-
import { B as
|
|
13
|
-
import { L as
|
|
14
|
-
import { b as
|
|
12
|
+
import { B as vo, C as xo, M as yo, a as wo, S as So, b as Co, c as ko, o as Io, s as $o, e as _o, d as To, f as Do } from "./modal-C2Aa-aVN.js";
|
|
13
|
+
import { L as Vo } from "./link-portal-Cr2l9f3k.js";
|
|
14
|
+
import { b as Bo, e as Mo, i as Oo, a as No, c as Po, o as Eo, l as Fo, m as Ho, g as Ro, k as Uo, j as jo, n as zo, r as Wo, s as qo, d as Zo, h as Yo, t as Go } from "./colors-WfmhQ5e1.js";
|
|
15
15
|
function _e(e) {
|
|
16
16
|
if (typeof e != "string") return !1;
|
|
17
17
|
const n = e.startsWith("#") ? e.slice(1) : e;
|
|
@@ -3922,16 +3922,17 @@ export {
|
|
|
3922
3922
|
Ca as BaseComboboxTagsControl,
|
|
3923
3923
|
xt as BaseControl,
|
|
3924
3924
|
Ln as BaseDropdownControl,
|
|
3925
|
+
Br as BaseListControl,
|
|
3925
3926
|
ys as BaseMappedControl,
|
|
3926
|
-
|
|
3927
|
+
Mr as BaseNativeSelectControl,
|
|
3927
3928
|
wa as BaseSelectTagsControl,
|
|
3928
3929
|
Qa as BeatUI,
|
|
3929
3930
|
ne as BeatUII18n,
|
|
3930
3931
|
Aa as BigintInput,
|
|
3931
|
-
|
|
3932
|
+
vo as BooleanValidator,
|
|
3932
3933
|
Pe as Button,
|
|
3933
3934
|
as as ButtonLink,
|
|
3934
|
-
|
|
3935
|
+
Or as Card,
|
|
3935
3936
|
fa as Center,
|
|
3936
3937
|
ba as CenterH,
|
|
3937
3938
|
ws as CheckboxInput,
|
|
@@ -3940,13 +3941,13 @@ export {
|
|
|
3940
3941
|
Tn as Collapse,
|
|
3941
3942
|
ls as CollapsibleSidebarGroup,
|
|
3942
3943
|
Fn as ColorController,
|
|
3943
|
-
|
|
3944
|
+
Nr as ColorInput,
|
|
3944
3945
|
xa as ComboboxControl,
|
|
3945
3946
|
Bn as ComboboxInput,
|
|
3946
3947
|
ka as ComboboxTagsControl,
|
|
3947
3948
|
Et as ComboboxTagsInput,
|
|
3948
3949
|
G as CommonInputAttributes,
|
|
3949
|
-
|
|
3950
|
+
xo as ConfirmModal,
|
|
3950
3951
|
yt as Control,
|
|
3951
3952
|
Qt as Controller,
|
|
3952
3953
|
Ss as DangerLabel,
|
|
@@ -3957,7 +3958,7 @@ export {
|
|
|
3957
3958
|
va as DropdownControl,
|
|
3958
3959
|
Vn as DropdownInput,
|
|
3959
3960
|
Za as DurationInput,
|
|
3960
|
-
|
|
3961
|
+
Pr as EditableText,
|
|
3961
3962
|
Cs as EmailInput,
|
|
3962
3963
|
ks as EmphasisLabel,
|
|
3963
3964
|
Ya as EnsureControl,
|
|
@@ -3976,9 +3977,9 @@ export {
|
|
|
3976
3977
|
$s as Label,
|
|
3977
3978
|
Ta as LazyNativeSelect,
|
|
3978
3979
|
Rn as Link,
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3980
|
+
Vo as LinkPortal,
|
|
3981
|
+
Er as ListControl,
|
|
3982
|
+
Fr as ListInput,
|
|
3982
3983
|
je as Locale,
|
|
3983
3984
|
Ja as LocaleSelector,
|
|
3984
3985
|
_s as MappedControl,
|
|
@@ -3986,38 +3987,38 @@ export {
|
|
|
3986
3987
|
Dt as Menu,
|
|
3987
3988
|
ya as MenuItem,
|
|
3988
3989
|
At as MenuSeparator,
|
|
3989
|
-
|
|
3990
|
+
yo as Modal,
|
|
3990
3991
|
Ts as MutedLabel,
|
|
3991
3992
|
es as NativePdfPreview,
|
|
3992
3993
|
Ct as NativeSelect,
|
|
3993
|
-
|
|
3994
|
+
Hr as NativeSelectControl,
|
|
3994
3995
|
ns as NavigationLink,
|
|
3995
3996
|
ga as NineSliceScrollView,
|
|
3996
|
-
|
|
3997
|
+
Rr as Notice,
|
|
3997
3998
|
Va as NullableBigintInput,
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
3999
|
+
Ur as NullableDateInput,
|
|
4000
|
+
jr as NullableDateTimeInput,
|
|
4001
|
+
zr as NullableDurationInput,
|
|
4002
|
+
Wr as NullableEmailInput,
|
|
4002
4003
|
Ha as NullableInstantInput,
|
|
4003
4004
|
Da as NullableMaskInput,
|
|
4004
|
-
|
|
4005
|
-
|
|
4005
|
+
qr as NullableNumberInput,
|
|
4006
|
+
Zr as NullablePasswordInput,
|
|
4006
4007
|
Ma as NullablePlainDateInput,
|
|
4007
4008
|
Ea as NullablePlainDateTimeInput,
|
|
4008
4009
|
qa as NullablePlainMonthDayInput,
|
|
4009
4010
|
Na as NullablePlainTimeInput,
|
|
4010
4011
|
za as NullablePlainYearMonthInput,
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4012
|
+
Yr as NullableRatingInput,
|
|
4013
|
+
Gr as NullableSliderInput,
|
|
4014
|
+
Kr as NullableTextArea,
|
|
4015
|
+
Xr as NullableTextInput,
|
|
4016
|
+
Jr as NullableUUIDInput,
|
|
4017
|
+
Qr as NullableUrlInput,
|
|
4017
4018
|
Ua as NullableZonedDateTimeInput,
|
|
4018
|
-
|
|
4019
|
+
eo as NumberInput,
|
|
4019
4020
|
Ds as ObjectController,
|
|
4020
|
-
|
|
4021
|
+
wo as ObjectValidator,
|
|
4021
4022
|
ue as Option,
|
|
4022
4023
|
rn as Overlay,
|
|
4023
4024
|
As as PasswordInput,
|
|
@@ -4026,7 +4027,7 @@ export {
|
|
|
4026
4027
|
Wa as PlainMonthDayInput,
|
|
4027
4028
|
Oa as PlainTimeInput,
|
|
4028
4029
|
ja as PlainYearMonthInput,
|
|
4029
|
-
|
|
4030
|
+
to as RatingInput,
|
|
4030
4031
|
Vs as RequiredSymbol,
|
|
4031
4032
|
lt as ScrollablePanel,
|
|
4032
4033
|
tn as SegmentedInput,
|
|
@@ -4041,16 +4042,16 @@ export {
|
|
|
4041
4042
|
rs as SidebarSeparator,
|
|
4042
4043
|
qn as SidebarUrlLink,
|
|
4043
4044
|
ha as Sink,
|
|
4044
|
-
|
|
4045
|
+
no as SliderInput,
|
|
4045
4046
|
Ue as Stack,
|
|
4046
4047
|
ca as StandaloneAppearanceSelector,
|
|
4047
|
-
|
|
4048
|
+
So as StringValidator,
|
|
4048
4049
|
ts as StylePortal,
|
|
4049
|
-
|
|
4050
|
+
ao as Switch,
|
|
4050
4051
|
os as Tabs,
|
|
4051
4052
|
kt as Tag,
|
|
4052
4053
|
La as TagsInput,
|
|
4053
|
-
|
|
4054
|
+
so as TextArea,
|
|
4054
4055
|
Ls as TextInput,
|
|
4055
4056
|
wt as Theme,
|
|
4056
4057
|
en as ThemeAppearance,
|
|
@@ -4060,27 +4061,27 @@ export {
|
|
|
4060
4061
|
cs as ToolbarGroup,
|
|
4061
4062
|
ps as ToolbarSpacer,
|
|
4062
4063
|
bs as Tooltip,
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4064
|
+
lo as UUIDInput,
|
|
4065
|
+
ro as UnionController,
|
|
4066
|
+
oo as UnstyledDropZone,
|
|
4067
|
+
io as UrlInput,
|
|
4067
4068
|
hs as Use,
|
|
4068
4069
|
wn as WithBeatUIBreakpoint,
|
|
4069
4070
|
pa as WithBeatUIElementBreakpoint,
|
|
4070
4071
|
It as WithBreakpoint,
|
|
4071
4072
|
Q as WithTemporal,
|
|
4072
4073
|
Ra as ZonedDateTimeInput,
|
|
4073
|
-
|
|
4074
|
+
Bo as backgroundConfig,
|
|
4074
4075
|
ol as baseSpacing,
|
|
4075
4076
|
il as beatuiPreset,
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4077
|
+
Mo as bgColors,
|
|
4078
|
+
Co as boolean,
|
|
4079
|
+
Oo as borderColors,
|
|
4079
4080
|
ul as breakpoints,
|
|
4080
4081
|
cl as changeFontSize,
|
|
4081
4082
|
Xa as colorInputOptionsFromController,
|
|
4082
|
-
|
|
4083
|
-
|
|
4083
|
+
No as colorShades,
|
|
4084
|
+
Po as colors,
|
|
4084
4085
|
xn as compareBreakpoint,
|
|
4085
4086
|
Bs as connectCommonAttributes,
|
|
4086
4087
|
Ms as connectNumberInput,
|
|
@@ -4090,15 +4091,15 @@ export {
|
|
|
4090
4091
|
dl as createBeatuiPreset,
|
|
4091
4092
|
Ka as createColorController,
|
|
4092
4093
|
We as createLocationMatcher,
|
|
4093
|
-
|
|
4094
|
+
ko as createStandardSchema,
|
|
4094
4095
|
Es as defaultLocale,
|
|
4095
4096
|
Fs as defaultMessages,
|
|
4096
4097
|
ia as delaySignal,
|
|
4097
|
-
|
|
4098
|
-
|
|
4098
|
+
uo as emitExpando,
|
|
4099
|
+
co as emitOptionExpando,
|
|
4099
4100
|
et as emptyToNull,
|
|
4100
|
-
|
|
4101
|
-
|
|
4101
|
+
po as ensureTemporal,
|
|
4102
|
+
mo as fileToBase64,
|
|
4102
4103
|
da as findBreakpoint,
|
|
4103
4104
|
pl as fontFamily,
|
|
4104
4105
|
ml as fontSize,
|
|
@@ -4108,15 +4109,15 @@ export {
|
|
|
4108
4109
|
gl as generateBreakpointVariables,
|
|
4109
4110
|
Je as generateButtonClasses,
|
|
4110
4111
|
Qe as generateButtonStyles,
|
|
4111
|
-
|
|
4112
|
-
|
|
4112
|
+
Eo as generateColorVariables,
|
|
4113
|
+
Fo as generateCoreColorVariables,
|
|
4113
4114
|
hl as generateCoreTokenVariables,
|
|
4114
4115
|
vl as generateFontFamilyOverrideVariables,
|
|
4115
4116
|
it as generateLinkClasses,
|
|
4116
4117
|
ut as generateLinkStyles,
|
|
4117
4118
|
xl as generateMotionVariables,
|
|
4118
4119
|
yl as generateRadiusVariables,
|
|
4119
|
-
|
|
4120
|
+
Ho as generateSemanticColorVariables,
|
|
4120
4121
|
wl as generateSemanticFontVariables,
|
|
4121
4122
|
Sl as generateSemanticMotionVariables,
|
|
4122
4123
|
Cl as generateSemanticRadiusVariables,
|
|
@@ -4132,8 +4133,8 @@ export {
|
|
|
4132
4133
|
Bl as getBreakpointMediaQuery,
|
|
4133
4134
|
Ml as getBreakpointVar,
|
|
4134
4135
|
Ol as getBreakpointVarName,
|
|
4135
|
-
|
|
4136
|
-
|
|
4136
|
+
Ro as getColorVar,
|
|
4137
|
+
Uo as getColorVarName,
|
|
4137
4138
|
oa as getContrastRatio,
|
|
4138
4139
|
Rs as getDirectionClassName,
|
|
4139
4140
|
Us as getDirectionFromLocale,
|
|
@@ -4175,7 +4176,7 @@ export {
|
|
|
4175
4176
|
br as getZIndexVarName,
|
|
4176
4177
|
tt as hexToRgb,
|
|
4177
4178
|
ua as increaseSize,
|
|
4178
|
-
|
|
4179
|
+
jo as interactiveColors,
|
|
4179
4180
|
qs as isIndexedDBAvailable,
|
|
4180
4181
|
Zs as isRTLLocale,
|
|
4181
4182
|
zn as isUrlMatch,
|
|
@@ -4193,18 +4194,18 @@ export {
|
|
|
4193
4194
|
vt as makeOnChangeHandler,
|
|
4194
4195
|
hr as motionDurations,
|
|
4195
4196
|
vr as motionEasings,
|
|
4196
|
-
|
|
4197
|
+
zo as normalizeColorName,
|
|
4197
4198
|
ce as normalizeHexColor,
|
|
4198
4199
|
sn as nullToEmpty,
|
|
4199
|
-
|
|
4200
|
+
Io as object,
|
|
4200
4201
|
Xs as parsePath,
|
|
4201
4202
|
Js as pathToString,
|
|
4202
4203
|
xr as radius,
|
|
4203
4204
|
Qs as resolveDirection,
|
|
4204
|
-
|
|
4205
|
+
Wo as resolveSemanticColorMap,
|
|
4205
4206
|
ra as rgbToHex,
|
|
4206
|
-
|
|
4207
|
-
|
|
4207
|
+
qo as semanticColorNames,
|
|
4208
|
+
Zo as semanticColors,
|
|
4208
4209
|
yr as semanticFontNames,
|
|
4209
4210
|
wr as semanticMotionNames,
|
|
4210
4211
|
Sr as semanticRadiusNames,
|
|
@@ -4216,20 +4217,20 @@ export {
|
|
|
4216
4217
|
_r as spacing,
|
|
4217
4218
|
el as standardSchemaResultToValidation,
|
|
4218
4219
|
tl as storeIconLocally,
|
|
4219
|
-
|
|
4220
|
+
$o as string,
|
|
4220
4221
|
nl as taskToValidation,
|
|
4221
|
-
|
|
4222
|
+
Yo as textColors,
|
|
4222
4223
|
Tr as textShadows,
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4224
|
+
Go as themeColorNames,
|
|
4225
|
+
bo as transformEmptyStringToUndefined,
|
|
4226
|
+
fo as transformNullToUndefined,
|
|
4227
|
+
go as transformUndefinedToNull,
|
|
4227
4228
|
ge as useAnimatedElementToggle,
|
|
4228
|
-
|
|
4229
|
+
_o as useAnimatedToggle,
|
|
4229
4230
|
al as useController,
|
|
4230
|
-
|
|
4231
|
+
To as useFocusTrap,
|
|
4231
4232
|
sl as useForm,
|
|
4232
|
-
|
|
4233
|
+
Do as useTimedToggle,
|
|
4233
4234
|
ll as wrapSegment,
|
|
4234
4235
|
Dr as zIndex
|
|
4235
4236
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-CvvASOCn.cjs");exports.JSONSchemaAllOf=e.JSONSchemaAllOf;exports.JSONSchemaAny=e.JSONSchemaAny;exports.JSONSchemaAnyOf=e.JSONSchemaAnyOf;exports.JSONSchemaArray=e.JSONSchemaArray;exports.JSONSchemaBoolean=e.JSONSchemaBoolean;exports.JSONSchemaConst=e.JSONSchemaConst;exports.JSONSchemaControl=e.JSONSchemaControl;exports.JSONSchemaEnum=e.JSONSchemaEnum;exports.JSONSchemaForm=e.JSONSchemaForm;exports.JSONSchemaGenericControl=e.JSONSchemaGenericControl;exports.JSONSchemaInteger=e.JSONSchemaInteger;exports.JSONSchemaNull=e.JSONSchemaNull;exports.JSONSchemaNumber=e.JSONSchemaNumber;exports.JSONSchemaObject=e.JSONSchemaObject;exports.JSONSchemaOneOf=e.JSONSchemaOneOf;exports.JSONSchemaString=e.JSONSchemaString;exports.JSONSchemaUnion=e.JSONSchemaUnion;exports.SchemaContext=e.SchemaContext;exports.ajvErrorsToControllerValidation=e.ajvErrorsToControllerValidation;exports.ajvErrorsToDependencies=e.ajvErrorsToDependencies;exports.buildMessage=e.buildMessage;exports.buildPath=e.buildPath;exports.clearCaches=e.clearCaches;exports.clearCachesForAjv=e.clearCachesForAjv;exports.compileWithCache=e.compileWithCache;exports.composeEffectiveObjectSchema=e.composeEffectiveObjectSchema;exports.createAJVStandardSchema=e.createAJVStandardSchema;exports.evaluateIfThenElseOverlay=e.evaluateIfThenElseOverlay;exports.evaluateNotViolation=e.evaluateNotViolation;exports.getAjvForSchema=e.getAjvForSchema;exports.getCacheStats=e.getCacheStats;exports.getEvaluatedProperties=e.getEvaluatedProperties;exports.jsonPointerToSegments=e.jsonPointerToSegments;exports.mergeAllOf=e.mergeAllOf;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as s, J as S, R as c, O as o, M as t, H as r, W as m, G as h, X as O, V as n, K as l, N, I as J, P as i, T as v, L as C, Q as u, S as A, v as f, u as g, t as d, s as j, w as E, x as b, z as p, D as y, Y as T, E as F, C as P, A as V, y as x, F as I, q as B, B as D } from "../index-
|
|
1
|
+
import { U as s, J as S, R as c, O as o, M as t, H as r, W as m, G as h, X as O, V as n, K as l, N, I as J, P as i, T as v, L as C, Q as u, S as A, v as f, u as g, t as d, s as j, w as E, x as b, z as p, D as y, Y as T, E as F, C as P, A as V, y as x, F as I, q as B, B as D } from "../index-DkuGi1I_.js";
|
|
2
2
|
export {
|
|
3
3
|
s as JSONSchemaAllOf,
|
|
4
4
|
S as JSONSchemaAny,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("@tempots/dom"),Ft=require("./colors-Qc1mmmfr.cjs"),At=require("./timer-BdH4cK6a.cjs"),et=require("@tempots/ui"),b=require("./translations-DpZ-btu9.cjs");class Dt extends Error{constructor(n="Missing implementation"){super(n),this.name="MissingImplementationError"}}const Tt=e=>St(e).split("_").join(" "),St=e=>(e=e.replace(/::/g,"/"),e=e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2"),e=e.replace(/([a-z\d])([A-Z])/g,"$1_$2"),e=e.replace(/-/g,"_"),e.toLowerCase()),Bt=e=>e.substring(0,1).toUpperCase()+e.substring(1),Ot=e=>{if(typeof Buffer<"u")return Buffer.from(e,"base64").toString("utf8");if(typeof atob<"u")return atob(e);throw new Dt("No implementation found for base64 decoding")};function Q({onChange:e,value:n,accept:l="*/*",enableClick:a=!0,content:r,disabled:o=!1,allowMultiple:s}){return t.Use(b.BeatUII18n,c=>{const u=t.Value.deriveProp(n??[]),i=t.prop(!1),m=h=>{h.preventDefault(),h.stopPropagation(),i.value=!0},d=h=>{h.preventDefault(),h.stopPropagation(),(!h.currentTarget||!h.currentTarget.contains(h.relatedTarget))&&(i.value=!1)},v=h=>{h.preventDefault(),h.stopPropagation(),i.value=!1;const g=Array.from(h.dataTransfer?.files||[]);g.length>0&&(u.value=g,e(g))},p=h=>{t.Value.get(a)&&h.currentTarget.querySelector('input[type="file"]')?.click()};let x=null;const f=()=>{if(x==null)return;const h=Array.from(x.files??[]);h.length>0&&(u.value=h,e(h)),x.value=""},I=h=>{t.Value.get(a)&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),p(h))};return t.html.div(t.attr.role("button"),t.attr.tabindex(t.Value.map(a,h=>h?0:-1)),t.attr.style("position: relative;"),t.on.dragover(m),t.on.dragleave(d),t.on.drop(v),t.on.click(p),t.on.keydown(I),t.html.input(t.attr.type("file"),t.attr.disabled(o),t.attr.accept(l),t.attr.multiple(s),t.attr.style("position: absolute; left: -9999px; opacity: 0; pointer-events: none;"),t.on.change(f),t.WithElement(h=>(x=h,t.OnDispose(u.on(g=>{const C=globalThis.DataTransfer;if(C!=null){const _=new C;g.forEach(w=>_.items.add(w)),h.files=_.files}}))))),t.aria.label(t.bind(c.$.dropZoneInstructions)(a)),r({files:u,clear:()=>u.value=[],change:u.set}))})}function Ut(e,n){return e.length===n.length&&e.every((l,a)=>l===n[a])}function Nt(e,n){const l=["bc-segmented-control",`bc-segmented-control--size-${e}`];return n&&l.push("bc-segmented-control--disabled"),l.join(" ")}function Lt({options:e,value:n,onChange:l,size:a="md",disabled:r=!1},...o){const s=Ft.f(e).map(([c,u])=>({key:c,label:u}));return t.WithElement(()=>{const c=Object.fromEntries(s.map((i,m)=>[i.key,m])),u=t.prop(s.map(()=>({left:0,width:0})),Ut);return t.html.div(t.attr.class(t.computedOf(a,r)((i,m)=>Nt(i??"md",m??!1))),t.html.div(t.attr.class("bc-segmented-control__container"),t.html.div(t.attr.class("bc-segmented-control__indicator"),t.style.width(t.computedOf(n,u)((i,m)=>{const{width:d}=m[c[i]??0];return`${d}px`})),t.style.left(t.computedOf(n,u)((i,m)=>{const{left:d}=m[c[i]??0];return`${d}px`}))),s.map(({label:i,key:m},d)=>t.html.button(t.on.click(v=>{v.preventDefault(),t.Value.get(r)||l?.(m)}),t.attr.disabled(r),t.attr.class("bc-segmented-control__segment"),t.attr.class(t.Value.map(n,v=>v===m?"bc-segmented-control__segment--active":"bc-segmented-control__segment--inactive")),et.ElementRect(v=>{function p(){u.update(f=>{const I=[...f];return I[d]={width:v.value.width,left:v.value.localLeft},I})}const x=At.g(p);return t.OnDispose(x,v.on(p))}),i))),...o)})}function Rt(e){const n=e.type.toLowerCase();return n.startsWith("image/")&&(n.includes("jpeg")||n.includes("jpg")||n.includes("png")||n.includes("gif")||n.includes("webp")||n.includes("svg"))}function zt(e){const n=e.type.toLowerCase();return n.startsWith("image/")?"vscode-icons:file-type-image":n.startsWith("video/")?"vscode-icons:file-type-video":n.startsWith("audio/")?"vscode-icons:file-type-audio":n.includes("pdf")?"vscode-icons:file-type-pdf2":n.includes("word")||n.includes("document")?"vscode-icons:file-type-word":n.includes("excel")||n.includes("spreadsheet")?"vscode-icons:file-type-excel":n.includes("powerpoint")||n.includes("presentation")?"vscode-icons:file-type-powerpoint":n.includes("zip")||n.includes("archive")?"vscode-icons:file-type-zip":n.includes("text")?"vscode-icons:file-type-text":n.includes("json")?"vscode-icons:file-type-json-official":n.includes("csv")?"vscode-icons:file-type-csv":n.includes("xml")?"vscode-icons:file-type-xml":n.includes("yaml")?"vscode-icons:file-type-yaml-official":"vscode-icons:file-type-binary"}function st(e){return t.When(e.map(Rt),()=>{const n=t.prop(null);return e.on(l=>{n.value&&URL.revokeObjectURL(n.value);const a=URL.createObjectURL(l);n.value=a}),t.html.div(t.attr.class("bc-file-input__thumbnail-container"),t.html.img(t.attr.src(n),t.attr.alt(e.map(l=>l.name)),t.attr.class("bc-file-input__thumbnail"),t.OnDispose(()=>{n.value&&URL.revokeObjectURL(n.value)})))},()=>b.Icon({icon:e.map(zt)}))}const pt=(e,...n)=>{const{value:l=t.prop([]),accept:a="*/*",maxFiles:r,maxFileSize:o,onChange:s,onBlur:c,disabled:u,hasError:i,mode:m="default",showFileList:d=!0,...v}=e,p=l,x=t.Value.map(m,_=>_==="compact"),f=_=>{let w=_;if(r!=null){const V=t.Value.get(r);w=w.slice(0,V)}if(o){const V=t.Value.get(o);w=w.filter(y=>y.size<=V)}s?.(w)},I=_=>{const V=p.value.filter((y,k)=>k!==_);s?.(V)},h=()=>{s?.([])},g=({files:_,clear:w,change:V})=>t.Use(b.BeatUII18n,y=>t.html.div(t.attr.class("bc-file-input__drop-zone"),t.html.div(t.attr.class("bc-file-input__drop-zone-content bc-file-input__drop-zone-content--empty"),b.Icon({icon:"mdi:cloud-upload-outline",size:"xl"}),t.html.div(t.attr.class("bc-file-input__drop-zone-text"),t.bind(y.$.filesInputInstructions)(r,o,y.$.fileSizeUnits.value))))),C=({files:_})=>t.Use(b.BeatUII18n,w=>t.html.div(t.attr.class("bc-file-input__compact-input"),t.When(_.map(V=>V.length>0),()=>t.html.span(t.attr.class("bc-file-input__compact-value"),t.ForEach(_,V=>t.html.span(t.attr.class("bc-file-input__compact-value-item"),st(V),t.html.span(t.attr.class("bc-file-input__compact-value-item-name"),V.$.name)))),()=>t.html.span(t.attr.class("bc-file-input__compact-placeholder"),b.Icon({icon:"mdi:cloud-upload-outline",size:"sm"})," ",t.bind(w.$.filesInputInstructions)(r,o,w.$.fileSizeUnits.value)))));return t.Use(b.BeatUII18n,_=>b.InputContainer({baseContainer:t.Value.map(x,w=>!w),disabled:u,hasError:i,after:t.When(x,()=>t.When(p.map(({length:w})=>w>0),()=>b.CloseButton({size:"sm",label:_.$.clearAllFiles,disabled:u,onClick:h},t.attr.class("bc-file-input__compact-clear")))),...v,input:t.When(x,()=>t.html.div(t.attr.class("bc-file-input bc-file-input--compact"),Q({value:p,accept:a,enableClick:!0,allowMultiple:t.Value.map(r??1/0,w=>w>1),disabled:u,onChange:f,content:C})),()=>t.html.div(t.attr.class("bc-file-input"),Q({value:p,accept:a,enableClick:!0,allowMultiple:t.Value.map(r??1/0,w=>w>1),disabled:u,onChange:f,content:g}),t.When(d,()=>t.NotEmpty(p,()=>t.Fragment(t.html.div(t.attr.class("bc-file-input__file-list"),t.ForEach(p,(w,V)=>{const y=V.index;return t.html.div(t.attr.class("bc-file-input__file-item"),t.html.div(t.attr.class("bc-file-input__file-icon"),st(w)),t.html.div(t.attr.class("bc-file-input__file-info"),t.html.div(t.attr.class("bc-file-input__file-name"),t.attr.title(w.$.name),w.$.name),t.html.div(t.attr.class("bc-file-input__file-meta"),t.computedOf(w.$.size,_.$.fileSizeUnits)((k,M)=>b.formatFileSize(k,{units:M}))," • ",t.computedOf(w.$.type,_.$.unknownType)((k,M)=>k||M))),b.CloseButton({size:"sm",label:_.$.removeFile,disabled:u,onClick:()=>I(y)},t.attr.class("bc-file-input__remove-button")))})),t.When(p.map(({length:w})=>w>1),()=>t.html.div(t.attr.class("bc-file-input__clear-all-button-container"),t.html.button(t.attr.type("button"),t.attr.class("bc-file-input__clear-all-button"),t.attr.disabled(u),_.$.clearAllFiles,t.on.click(w=>{w.preventDefault(),w.stopPropagation(),h()})))))))))},...n))};async function dt(e){return new Promise((n,l)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>{const r=a.result;n(r.split(",")[1])},a.onerror=r=>l(r)})}function Wt(e){return Promise.all(e.map(dt))}function Pt(e){if(e.length>=4){if(e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71)return"image/png";if(e[0]===255&&e[1]===216)return"image/jpeg";if(e[0]===71&&e[1]===73&&e[2]===70)return"image/gif";if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e.length>=12&&e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80)return"image/webp"}try{if(new TextDecoder("utf-8").decode(e.slice(0,256)).includes("<svg"))return"image/svg+xml"}catch{}return"application/octet-stream"}function jt(e){const n=Ot(e??""),l=n.length,a=new Uint8Array(l);for(let r=0;r<l;r++)a[r]=n.charCodeAt(r);return a}function mt(e){const{value:n,onChange:l,onInput:a,...r}=e,o=new Map,s=t.Value.toSignal(n).map(m=>m.map((d,v)=>{const p=o.get(d),x=jt(d??""),f=p?.type||Pt(x),I=p?.name??`file-${v}`,h=x.buffer.slice(x.byteOffset,x.byteOffset+x.byteLength),g=new Blob([h],{type:f});return new File([g],I,{type:f})})),c=m=>d=>{m&&Wt(d).then(v=>{for(const[p,x]of v.entries())o.set(x,{name:d[p].name,type:d[p].type});m(v)})},u=c(l),i=c(a);return pt({...r,value:s,onChange:u,onInput:i})}function Ht(e){const{value:n,onInput:l,onChange:a,...r}=e;return mt({...r,maxFiles:1,value:t.Value.map(n,o=>o==null?[]:[o]),onChange:o=>{a?.(o[0])},onInput:o=>{l?.(o[0])}})}function J(e){const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[0,0,0]}function K(e,n,l){const a=r=>r.toString(16).padStart(2,"0");return`#${a(Math.max(0,Math.min(255,e)))}${a(Math.max(0,Math.min(255,n)))}${a(Math.max(0,Math.min(255,l)))}`}function Zt(e){if(!e)return[0,0,0,1];const l=e.trim().match(/^#?([a-fA-F0-9]{3,4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/);if(l){const d=l[1];if(d.length===8){const v=parseInt(d.slice(0,2),16),p=parseInt(d.slice(2,4),16),x=parseInt(d.slice(4,6),16),f=parseInt(d.slice(6,8),16)/255;return[v,p,x,f]}if(d.length===6)return[parseInt(d.slice(0,2),16),parseInt(d.slice(2,4),16),parseInt(d.slice(4,6),16),1];if(d.length===4){const v=parseInt(d[0]+d[0],16),p=parseInt(d[1]+d[1],16),x=parseInt(d[2]+d[2],16),f=parseInt(d[3]+d[3],16)/255;return[v,p,x,f]}if(d.length===3){const v=parseInt(d[0]+d[0],16),p=parseInt(d[1]+d[1],16),x=parseInt(d[2]+d[2],16);return[v,p,x,1]}}const a=e.match(/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0|1|0?\.\d+)\s*\)$/i);if(a)return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),parseFloat(a[4])];const r=e.match(/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i);if(r)return[parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10),1];const o=e.match(/^hsla?\(\s*([+-]?[\d.]+)(?:deg)?\s*[ ,]?\s*([\d.]+)%\s*[ ,]?\s*([\d.]+)%\s*(?:[/,]\s*(\d?(?:\.\d+)?))?\s*\)$/i);if(o){const d=parseFloat(o[1]),v=parseFloat(o[2]),p=parseFloat(o[3]),x=o[4]!=null?parseFloat(o[4]):1,[f,I,h]=ft(d,v/100,p/100);return[f,I,h,x]}const s=e.match(/^hwb\(\s*([+-]?[\d.]+)(?:deg)?\s*[, ]\s*([\d.]+)%\s*[, ]\s*([\d.]+)%\s*(?:[/]\s*(\d?(?:\.\d+)?))?\s*\)$/i);if(s){const d=parseFloat(s[1]),v=parseFloat(s[2])/100,p=parseFloat(s[3])/100,x=s[4]!=null?parseFloat(s[4]):1,[f,I,h]=Xt(d,v,p);return[f,I,h,x]}const c=e.match(/^oklch\(\s*([+-]?[\d.]+%?)\s+([\d.]+)\s+([+-]?[\d.]+)(?:deg)?(?:\s*\/\s*(\d?(?:\.\d+)?))?\s*\)$/i);if(c){const d=c[1],v=parseFloat(c[2]),p=parseFloat(c[3]),x=c[4]!=null?parseFloat(c[4]):1,f=d.endsWith("%")?Math.max(0,Math.min(1,parseFloat(d)/100)):Math.max(0,Math.min(1,parseFloat(d))),[I,h,g]=Qt(f,v,p);return[I,h,g,x]}const[u,i,m]=J(e);return[u,i,m,1]}const qt=(e,n,l,a)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(l)}, ${Math.max(0,Math.min(1,Math.round(a*100)/100))})`;function Yt(e){let n=e+1831565813;return function(){return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}}function ft(e,n,l){e=(e%360+360)%360;const a=(1-Math.abs(2*l-1))*n,r=a*(1-Math.abs(e/60%2-1)),o=l-a/2;let s=0,c=0,u=0;return 0<=e&&e<60?[s,c,u]=[a,r,0]:60<=e&&e<120?[s,c,u]=[r,a,0]:120<=e&&e<180?[s,c,u]=[0,a,r]:180<=e&&e<240?[s,c,u]=[0,r,a]:240<=e&&e<300?[s,c,u]=[r,0,a]:[s,c,u]=[a,0,r],[Math.round((s+o)*255),Math.round((c+o)*255),Math.round((u+o)*255)]}function Xt(e,n,l){e=(e%360+360)%360;const a=n+l;a>1&&(n/=a,l/=a);const[r,o,s]=ft(e,1,.5).map(d=>d/255),c=1-n-l,u=r*c+n,i=o*c+n,m=s*c+n;return[Math.round(u*255),Math.round(i*255),Math.round(m*255)]}function tt(e,n,l){e/=255,n/=255,l/=255;const a=Math.max(e,n,l),r=Math.min(e,n,l);let o=0,s=0;const c=(a+r)/2,u=a-r;if(u!==0){switch(s=c>.5?u/(2-a-r):u/(a+r),a){case e:o=(n-l)/u+(n<l?6:0);break;case n:o=(l-e)/u+2;break;default:o=(e-n)/u+4}o*=60}return[Math.round(o),Math.round(s*100),Math.round(c*100)]}function Gt(e,n,l){const[a]=tt(e,n,l),r=e/255,o=n/255,s=l/255,c=Math.min(r,o,s),u=1-Math.max(r,o,s);return[a,Math.round(c*100),Math.round(u*100)]}function Y(e){const n=e/255;return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function X(e){const n=e<=.0031308?12.92*e:1.055*Math.pow(e,.4166666666666667)-.055;return Math.round(Math.max(0,Math.min(1,n))*255)}function Qt(e,n,l){const a=l*Math.PI/180,r=Math.cos(a)*n,o=Math.sin(a)*n,s=e+.3963377774*r+.2158037573*o,c=e-.1055613458*r-.0638541728*o,u=e-.0894841775*r-1.291485548*o,i=s*s*s,m=c*c*c,d=u*u*u,v=4.0767416621*i-3.3077115913*m+.2309699292*d,p=-1.2684380046*i+2.6097574011*m-.3413193965*d,x=-.0041960863*i-.7034186147*m+1.707614701*d;return[X(v),X(p),X(x)]}function Jt(e,n,l){const a=Y(e),r=Y(n),o=Y(l),s=.4122214708*a+.5363325363*r+.0514459929*o,c=.2119034982*a+.6806995451*r+.1073969566*o,u=.0883024619*a+.2817188376*r+.6299787005*o,i=Math.cbrt(s),m=Math.cbrt(c),d=Math.cbrt(u),v=.2104542553*i+.793617785*m-.0040720468*d,p=1.9779984951*i-2.428592205*m+.4505937099*d,x=.0259040371*i+.7827717662*m-.808675766*d,f=Math.sqrt(p*p+x*x);let I=Math.atan2(x,p)*180/Math.PI;return I<0&&(I+=360),[v,f,I]}function W(e,n,l,a,r,o){switch(r){case"hex":if(o){const s=u=>u.toString(16).padStart(2,"0"),c=Math.max(0,Math.min(255,Math.round(a*255)));return`#${s(e)}${s(n)}${s(l)}${s(c)}`}return K(e,n,l);case"rgb":return`rgb(${e}, ${n}, ${l})`;case"rgba":return`rgba(${e}, ${n}, ${l}, ${Math.round(a*100)/100})`;case"hsl":{const[s,c,u]=tt(e,n,l);return`hsl(${s}, ${c}%, ${u}%)`}case"hsla":{const[s,c,u]=tt(e,n,l);return`hsla(${s}, ${c}%, ${u}%, ${Math.round(a*100)/100})`}case"hwb":{const[s,c,u]=Gt(e,n,l);return a<1?`hwb(${s} ${c}% ${u}% / ${Math.round(a*100)/100})`:`hwb(${s} ${c}% ${u}%)`}case"oklch":{const[s,c,u]=Jt(e,n,l),i=(Math.round(s*1e3)/1e3).toFixed(3),m=(Math.round(c*1e3)/1e3).toFixed(3),d=(Math.round(u*10)/10).toFixed(1),v=Math.round(a*100)/100;return o||a<1?`oklch(${i} ${m} ${d} / ${v})`:`oklch(${i} ${m} ${d})`}}}function P(e,n){return n?e==="rgb"?"rgba":e==="hsl"?"hsla":e:e==="rgba"?"rgb":e==="hsla"?"hsl":e}function Kt(e,n){const[l,a,r]=e,o=l<<16^a<<8^r,s=Yt(o),c=6+Math.floor(s()*5),u=.18+s()*.06,i=[];for(let p=0;p<c;p++){const x=p/c*Math.PI*2,f=n*(1+(s()*2-1)*u),I=Math.cos(x)*f,h=Math.sin(x)*f;i.push({x:I,y:h})}const m=(i[0].x+i[c-1].x)/2,d=(i[0].y+i[c-1].y)/2;let v=`M ${m.toFixed(3)} ${d.toFixed(3)}`;for(let p=0;p<c;p++){const x=i[p],f=i[(p+1)%c],I=(x.x+f.x)/2,h=(x.y+f.y)/2;v+=` Q ${x.x.toFixed(3)} ${x.y.toFixed(3)} ${I.toFixed(3)} ${h.toFixed(3)}`}return v+=" Z",v}const te=e=>{const{value:n,onBlur:l,onChange:a,onInput:r,displayValue:o,size:s,withAlpha:c}=e,u=t.Value.map(s??32,V=>V),i=t.Value.map(n,V=>Zt(V??"#000000")),m=t.Value.map(i,([V,y,k])=>[V,y,k]),d=t.Value.map(i,([,,,V])=>V),v=t.prop(t.Value.get(d)??1),p=t.Value.map(c??!1,V=>V),x=t.Value.map(e.colorTextFormat??"rgb",V=>V),f=t.computedOf(m,v,x,p)(([V,y,k],M,E,$)=>W(V,y,k,M??1,P(E,$),$)),I=t.Value.map(e.colorTextFormat??"hex",V=>V),h=t.Value.map(u,V=>`0 0 ${V} ${V}`),g=t.computedOf(m,u)((V,y)=>Kt(V,y/2)),C=t.computedOf(m,v,p)(([V,y,k],M,E)=>E||M<1?qt(V,y,k,M):K(V,y,k)),_=t.html.div(t.attr.class("bc-color-input__control"),t.attr.class(t.Value.map(p,V=>V?"bc-color-input__control--alpha":"")),t.attr.style(t.computedOf(u)(V=>`min-width:${V+2}px;height:${V+2}px`)),t.svg.svg(t.attr.class("bc-color-input__svg"),t.svgAttr.viewBox(h),t.svg.path(t.svgAttr.d(g),t.svgAttr.fill(C))),t.html.input(t.attr.type("color"),b.CommonInputAttributes(e),t.attr.value(t.Value.map(m,([V,y,k])=>K(V,y,k))),t.attr.class("bc-input bc-color-input bc-color-input__native"),l!=null?t.on.blur(l):t.Empty,a!=null?t.on.change(V=>{const y=V.target.value;if(!a)return;const[k,M,E]=J(y),$=t.Value.get(v)??1,F=P(t.Value.get(I),t.Value.get(p)),D=W(k,M,E,$,F,t.Value.get(p));a(D)}):t.Empty,r!=null?t.on.input(V=>{const y=V.target.value;if(!r)return;const[k,M,E]=J(y),$=t.Value.get(v)??1,F=P(t.Value.get(I),t.Value.get(p)),D=W(k,M,E,$,F,t.Value.get(p));r(D)}):t.Empty)),w=t.When(p,()=>t.html.input(t.attr.type("range"),t.attr.class("bc-color-input__alpha"),t.attr.min(0),t.attr.max(1),t.attr.step(.01),t.attr.value(t.Value.map(v,V=>String(V??1))),t.attr.disabled(e.disabled),t.on.input(V=>{const y=parseFloat(V.target.value);v.set(y);const[k,M,E]=t.Value.get(m),$=P(t.Value.get(I),t.Value.get(p)),F=W(k,M,E,y,$,t.Value.get(p));r?.(F)}),t.on.change(V=>{const y=parseFloat(V.target.value);v.set(y);const[k,M,E]=t.Value.get(m),$=P(t.Value.get(I),t.Value.get(p)),F=W(k,M,E,y,$,t.Value.get(p));a?.(F)})));return b.InputContainer({baseContainer:!0,...e,growInput:!1,input:_,after:t.Fragment(t.When(o??!1,()=>t.html.span(t.attr.class("bc-color-input__rgb"),f)),w,e.after)})},nt="$$tts-exp-",ht=(e,n)=>t.WithElement(l=>{const a=`${nt}${e}`;return t.OnDispose(t.Value.on(n,r=>Reflect.set(l,a,r)))}),ee=(e,n)=>{const l=`${nt}${e}`;return a=>{n(Reflect.get(a.target,l))}},gt=(e,n)=>{const l=`${nt}${e}`;return a=>{const r=a.target,o=r.selectedIndex,s=r.options[o];n(Reflect.get(s,l))}};function ne(e,n,l){const a=["bc-card"];return e!=="default"&&a.push(`bc-card--${e}`),n!=="md"&&a.push(`bc-card--padding-${n}`),l!=="lg"&&a.push(`bc-card--rounded-${l}`),a.join(" ")}function ae({variant:e="default",size:n="md",roundedness:l="lg"}={},...a){return t.html.div(t.attr.class(t.computedOf(e,n,l)((r,o,s)=>ne(r??"default",o??"md",s??"lg"))),...a)}function j(...e){return t.html.div(t.attr.class("bc-group"),...e)}const re=({startEditing:e,value:n,onChange:l,placeholder:a,disabled:r})=>{const o=t.Value.deriveProp(e??!1),s=t.prop(!1),c=t.Value.map(r??!1,u=>u);return t.html.div(t.attr.class("bc-editable-text"),t.attr.class(t.Value.map(c,u=>u?"bc-editable-text--disabled":"")),t.aria.disabled(c),t.When(o,()=>t.html.input(t.attr.placeholder(a),t.attr.value(n),t.attr.class("bc-editable-text__input"),et.AutoSelect(),t.on.keydown(u=>{u.key==="Enter"?o.set(!1):u.key==="Escape"&&(s.set(!0),o.set(!1))}),t.on.blur(t.emitValue(u=>{if(o.set(!1),s.value){s.set(!1);return}l(u)}))),()=>t.html.span(t.on.click(()=>{t.Value.get(c)||o.set(!0)}),t.attr.class("bc-editable-text__display"),t.When(t.Value.map(n,u=>u!=null&&u.trim()!==""),()=>t.html.span(t.attr.class("bc-editable-text__text"),n),()=>t.html.span(t.attr.class("bc-editable-text__placeholder"),a)),t.When(t.Value.map(c,u=>!u),()=>t.html.button(t.attr.class("bc-editable-text__edit-button"),t.Use(b.BeatUII18n,u=>t.aria.label(u.$.editLabel)),t.on.click(()=>o.set(!0)),b.Icon({icon:"line-md/pencil",color:"neutral"}))))))},bt=(e,n,l)=>t.Ensure(e,a=>t.OneOfType(a,{value:r=>{const o=t.computedOf(r,l)((s,c)=>n(s.value,c));return t.html.option(t.OnDispose(o.dispose),t.attr.selected(o),ht("value",r.$.value),r.$.label)},group:r=>t.html.optgroup(t.attr.label(r.$.group),t.ForEach(r.$.options,o=>bt(o,n,l))),break:()=>t.html.hr()})),vt=e=>{const{value:n,onBlur:l,onChange:a,options:r,unselectedLabel:o,equality:s=(i,m)=>i===m,after:c}=e;let u;return b.InputContainer({...e,after:t.Fragment(b.Icon({icon:"ph:caret-down-bold",color:"neutral",size:"sm"}),c),input:t.html.select(t.WithElement(i=>{u=i;const m=new MutationObserver(d=>{const{removedNodes:v}=d[0];v.length>0&&(u.selectedIndex=0)});return m.observe(i,{childList:!0}),t.OnDispose(()=>m.disconnect())}),b.CommonInputAttributes(e),t.attr.class("bc-native-select bc-input"),t.Use(b.BeatUII18n,i=>t.html.option(t.attr.hidden("hidden"),t.coalesce(o,i.$.selectOne))),t.ForEach(r,i=>bt(i,s,n)),l!=null?t.on.blur(l):t.Empty,a!=null?t.on.change(gt("value",i=>a(i))):t.Empty)},t.on.click(()=>{u?.focus(),typeof u?.showPicker=="function"&&u.showPicker()}))};function xt(e){const{controller:n,onChange:l,onBlur:a,...r}=e;return vt({...r,value:n.value,onChange:b.makeOnChangeHandler(n,l),onBlur:b.makeOnBlurHandler(n,a)})}function le(e){return b.InputWrapper({...e,content:xt(e)})}function It(e,n,l){const a=e.length.map(r=>r);return t.Fragment(t.OnDispose(()=>a.dispose()),t.Repeat(a,r=>{const o=e.item(r.index),s=[];return t.Fragment(t.OnDispose(()=>{o.dispose(),s.forEach(c=>c())}),n({list:e,item:o,position:r,remove:()=>e.removeAt(r.index),move:c=>{switch(c){case"up":if(r.index===0)return;e.move(r.index,r.index-1);break;case"down":if(r.index===e.length.value-1)return;e.move(r.index,r.index+1);break;case"first":e.move(r.index,0);break;case"last":e.move(r.index,e.length.value-1)}},canMove:c=>{const u=(()=>{switch(c){case"up":return t.signal(r.index>0);case"down":return e.length.map(i=>r.index<i-1)}})();return s.push(()=>u.dispose()),u},cannotMove:c=>{const u=(()=>{switch(c){case"up":return t.signal(r.index===0);case"down":return e.length.map(i=>r.index===i-1)}})();return s.push(()=>u.dispose()),u}}))},l))}const ot={9:{pattern:/^[0-9]$/},A:{pattern:/^[A-Za-z]$/,transform:e=>e.toUpperCase()},"*":{pattern:/^.$/}},se=e=>e instanceof RegExp;function Vt(e,n,l){if(e==null)return[];const a=l?{...ot,...n}:n??ot,r=(s,c)=>{const u=a[c];u?s.push({type:"pattern",name:c,...u}):s.push({type:"literal",char:c})},o=[];if(typeof e=="string"){for(const s of e)r(o,s);return o}for(const s of e)if(typeof s=="string")if(s.length<=1)r(o,s);else for(const c of s)r(o,c);else se(s)?o.push({type:"pattern",pattern:s}):typeof s=="object"&&s&&o.push(s);return o}function oe(e,n){return l=>{switch(e){case"digits":return/[0-9]/.test(l);case"letters":return/[A-Za-z]/.test(l);case"alphanumeric":return/[A-Za-z0-9]/.test(l);case"custom":return n?.(l)??!0;default:return!0}}}function ut(e,n,l,a,r,o){const s={raw:e,previousConformed:n,cursor:r??e.length,completed:!1},c=a.definitions??{},u=typeof l=="function"?l(e,s):l,i=Vt(u,c,a.useDefaultDefinitions??!0),m=oe(a.allowMode,a.allow),d=new Set;for(const $ of i)$.type==="literal"&&d.add($.char);if(a.prefix)for(const $ of a.prefix)d.add($);if(a.suffix)for(const $ of a.suffix)d.add($);const v=Array.from(e).filter($=>m($)&&!d.has($));if(v.length===0)return{value:"",cursor:0,completed:!1};const p=[],x=[];let f=0,I=0,h=0,g=-1;for(const $ of i){if($.type==="literal"){p.push($.char),x.push({kind:"literal",filled:!0});continue}I+=$.optional?0:1;const F=v[f];if(F==null)break;if($.type==="any"){h++,p.push($.transform?$.transform(F):F),x.push({kind:"slot",filled:!0}),g=x.length-1,f++;continue}if($.type==="pattern")if($.pattern.test(F)){h++;const D=$.transform?$.transform(F):F;p.push(D),x.push({kind:"slot",filled:!0}),g=x.length-1,f++}else{f++;continue}}const C=p.join(""),_=(a.prefix??"")+C+(a.suffix??"");let V=(a.prefix??"").length;if(g>=0){let $=g+1;if((o?.policy??"smart")!=="sticky")for(;$<x.length&&x[$].kind==="literal";)$++;V+=$}const y=a.completion?.mode==="min"?(a.completion.minChars??0)<=h:a.completion?.mode==="custom"?!!a.completion.isComplete?.(_):I>0&&h>=I,k=a.pipe?.(_,{...s,completed:y});let M,E=V;return k===!1?(M=n,E=n.length):typeof k=="string"?(M=k,E=k.length):typeof k=="object"&&k?(M=k.value,E=k.cursor??k.value.length):M=_,{value:M,cursor:E,completed:y}}function ue(e,n){const l=n?.strategy??"none";return l==="custom"&&n?.unmask?n.unmask(e):l==="strip"?e.replace(/[^A-Za-z0-9]/g,""):e}const at=e=>{const{value:n,onBlur:l,onChange:a,onInput:r,onAccept:o,onComplete:s,mask:c,definitions:u,useDefaultDefinitions:i,extraLiterals:m,prefix:d,suffix:v,autofix:p,pipe:x,completion:f,unmask:I,allowMode:h,allow:g,placeholder:C,placeholderOptions:_}=e,w=t.computedOf(n,c,u,i,m,d,v,p,f,I,h,C,_)((y,k,M,E,$,F,D,R,z,L,O,H,B)=>k?ut(y??"","",k,{definitions:M??{},useDefaultDefinitions:E??!0,extraLiterals:$??[],autofix:R??"none",completion:z??{mode:"mask"},pipe:x??(A=>A),unmask:L??{strategy:"none"},allowMode:O??"all",allow:g,prefix:F,suffix:D}).value:y??""),V=(y,k)=>{const M=y.value??"",E=t.Value.get(n)??"",$=c!=null?t.Value.get(c):null,F=u!=null?t.Value.get(u):void 0,D=i!=null?t.Value.get(i):void 0,R=m!=null?t.Value.get(m):void 0,z=p!=null?t.Value.get(p):void 0,L=f!=null?t.Value.get(f):void 0,O=I!=null?t.Value.get(I):void 0,H=h!=null?t.Value.get(h):void 0,B=d!=null?t.Value.get(d):void 0,A=v!=null?t.Value.get(v):void 0,{value:U,cursor:q,completed:rt}=$?ut(M,E,$,{definitions:F??{},useDefaultDefinitions:D??!0,extraLiterals:R??[],autofix:z??"none",completion:L??{mode:"mask"},pipe:x??(Et=>Et),unmask:O??{strategy:"none"},allowMode:H??"all",allow:g,prefix:B,suffix:A},y.selectionStart??M.length,e.cursor?t.Value.get(e.cursor):void 0):{value:M,cursor:M.length,completed:!0};if(U!==M){y.value=U;try{y.setSelectionRange(q,q)}catch{}}const lt=ue(U,O);o?.({raw:lt,conformed:U,completed:rt,cursor:q}),k==="input"?r?.(U):(a?.(U),rt&&s?.({raw:lt,conformed:U}))};return b.InputContainer({...e,input:t.input.text(b.CommonInputAttributes(e),t.attr.value(w),t.attr.class("bc-input"),l!=null?t.on.blur(l):t.Empty,t.WithElement(y=>y instanceof HTMLInputElement?t.Fragment(t.on.input(()=>V(y,"input")),t.on.change(()=>V(y,"change")),t.on.keydown(k=>{if(k.key!=="Backspace"||!(e.cursor?t.Value.get(e.cursor)?.backspaceRubberBand??!0:!0))return;const E=y.selectionStart??0,$=y.selectionEnd??E;if(E!==$||E<=0)return;const F=y.value??"",D=c!=null?t.Value.get(c):null;if(!D)return;const R=u!=null?t.Value.get(u):void 0,z=i!=null?t.Value.get(i):!0,L=d!=null?t.Value.get(d):void 0,O=v!=null?t.Value.get(v):void 0,H=Vt(typeof D=="function"?D(F,{raw:F,previousConformed:F,cursor:E,completed:!1}):D,R??{},z??!0),B=new Set;for(const A of H)A.type==="literal"&&B.add(A.char);if(L)for(const A of L)B.add(A);if(O)for(const A of O)B.add(A);if(B.has(F[E-1])){let A=E-1;for(;A>=0&&B.has(F[A]);)A--;A>=0&&(k.preventDefault(),k.stopPropagation(),y.value=F.slice(0,A)+F.slice(A+1),V(y,"input"))}})):t.Empty))})};function S(e,n,l){const a=t.Value.map(e,o=>o!=null),r=b.defaultMessages.clearValue;return t.When(a,()=>t.html.button(t.attr.type("button"),t.attr.class("bc-input-container__reset"),t.aria.label(r),t.attr.title(r),t.attr.disabled(n??!1),b.Icon({icon:"mdi:close",size:"sm"}),t.on.click(o=>{o.preventDefault(),o.stopPropagation(),l?.(null)})))}const ce=e=>{const{value:n,onBlur:l,onChange:a,after:r,disabled:o}=e,s=S(n,o,a);return b.InputContainer({...e,input:t.input.date(b.CommonInputAttributes(e),t.attr.valueAsDate(n),t.attr.class("bc-input"),l!=null?t.on.blur(t.emitValue(l)):t.Empty,a!=null?t.on.change(t.emitValueAsNullableDate(a)):t.Empty),after:r!=null?t.Fragment(s,r):s})},ie=e=>{const n=e.getFullYear(),l=e.getMonth()+1,a=e.getDate(),r=e.getHours(),o=e.getMinutes(),s=e.getSeconds();return`${n}-${l.toString().padStart(2,"0")}-${a.toString().padStart(2,"0")}T${r.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`},pe=e=>{const{value:n,onBlur:l,onChange:a,after:r,disabled:o}=e,s=t.Value.map(n,u=>u!=null?ie(u):null),c=S(n,o,a);return b.InputContainer({...e,input:t.input["datetime-local"](b.CommonInputAttributes(e),t.attr.value(t.Value.map(s,u=>u??null)),t.attr.class("bc-input"),l!=null?t.on.blur(t.emitValue(l)):t.Empty,a!=null?t.on.change(t.emitValueAsNullableDateTime(a)):t.Empty),after:r!=null?t.Fragment(c,r):c})},T=e=>typeof e=="string"&&e.trim()===""?null:e,N=e=>e??"",de=e=>{const{value:n,onBlur:l,onChange:a,onInput:r,after:o,disabled:s,...c}=e,u=S(n,s,a);return b.TextInput({...c,value:t.Value.map(n,N),onChange:a!=null?i=>a(T(i)):void 0,onInput:r!=null?i=>r(T(i)):void 0,onBlur:l,after:o!=null?t.Fragment(u,o):u})},me=e=>{const{value:n,onBlur:l,onChange:a,onInput:r,after:o,disabled:s,...c}=e,u=S(n,s,a);return b.EmailInput({...c,value:t.Value.map(n,N),onChange:a!=null?i=>a(T(i)):void 0,onInput:r!=null?i=>r(T(i)):void 0,onBlur:l,after:o!=null?t.Fragment(u,o):u})},fe=e=>{const{value:n,onBlur:l,onChange:a,onInput:r,after:o,disabled:s,...c}=e,u=S(n,s,a);return b.PasswordInput({...c,value:t.Value.map(n,N),onChange:a!=null?i=>a(T(i)):void 0,onInput:r!=null?i=>r(T(i)):void 0,onBlur:l,after:o!=null?t.Fragment(u,o):u})},wt=e=>{const{value:n,onBlur:l,onChange:a,onInput:r,rows:o}=e;return b.InputContainer({...e,input:t.html.textarea(b.CommonInputAttributes(e),t.attr.rows(o??3),t.attr.value(n),t.attr.class("bc-input"),l!=null?t.on.blur(t.emitValue(l)):t.Empty,a!=null?t.on.change(t.emitValue(a)):t.Empty,r!=null?t.on.input(t.emitValue(r)):t.Empty)})},he=e=>{const{value:n,onBlur:l,onChange:a,onInput:r,after:o,disabled:s,...c}=e,u=S(n,s,a);return wt({...c,value:t.Value.map(n,N),onChange:a!=null?i=>a(T(i)):void 0,onInput:r!=null?i=>r(T(i)):void 0,onBlur:l,after:o!=null?t.Fragment(u,o):u})},ge=e=>{const{value:n,step:l,min:a,max:r,onBlur:o,onChange:s,onInput:c,after:u}=e,i=v=>{const p=a!=null?t.Value.get(a):void 0,x=r!=null?t.Value.get(r):void 0;return p!=null&&v<p?p:x!=null&&v>x?x:v},m=l!=null?t.Use(b.BeatUII18n,v=>{const p=t.computedOf(n,a)((h,g)=>g==null?!0:(h??0)>g),x=t.computedOf(n,r)((h,g)=>g==null?!0:(h??0)<g),f=h=>{const g=t.Value.get(n)??0,C=t.Value.get(l),_=h?.shiftKey?10:1,w=g-C*_,V=a!=null?t.Value.get(a):void 0;if(V!=null&&w<V)return;const y=i(w);y!==g&&s&&s(y)},I=h=>{const g=t.Value.get(n)??0,C=t.Value.get(l),_=h?.shiftKey?10:1,w=g+C*_,V=r!=null?t.Value.get(r):void 0;if(V!=null&&w>V)return;const y=i(w);y!==g&&s&&s(y)};return b.Stack(t.attr.class("bc-number-input-steppers"),t.html.button(t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),t.attr.disabled(t.computedOf(x,e.disabled??!1)((h,g)=>!h||g)),t.on.click(h=>I(h)),t.aria.label(v.$.incrementValue),b.Icon({icon:"line-md:plus",size:"xs"})),t.html.button(t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),t.attr.disabled(t.computedOf(p,e.disabled??!1)((h,g)=>!h||g)),t.on.click(h=>f(h)),t.aria.label(v.$.decrementValue),b.Icon({icon:"line-md:minus",size:"xs"})))}):null,d=u!=null&&m!=null?t.Fragment(m,u):u??m;return b.InputContainer({...e,input:t.input.number(a!=null?t.Fragment(t.attr.min(a),t.OnDispose(t.Value.on(a,v=>{v<t.Value.get(n)}))):t.Empty,r!=null?t.Fragment(t.attr.max(r),t.OnDispose(t.Value.on(r,v=>{v>t.Value.get(n)}))):t.Empty,b.CommonInputAttributes(e),t.attr.valueAsNumber(n),t.attr.step(l),t.attr.class("bc-input bc-number-input"),o!=null?t.on.blur(t.emitValue(o)):t.Empty,s!=null?t.on.change(t.emitValueAsNumber(s)):t.Empty,c!=null?t.on.input(t.emitValueAsNumber(c)):t.Empty,l!=null?t.on.wheel(v=>{v.preventDefault();const p=t.Value.get(n)??0,x=t.Value.get(l),f=v.shiftKey?10:1,I=v.deltaY<0?x*f:-x*f,h=i(p+I);h!==p&&s&&s(h)}):t.Empty),after:d})},ct=e=>{if(e==null||e==="")return null;const n=Number(e);return Number.isNaN(n)?null:n},be=e=>{const{value:n,step:l,min:a,max:r,onBlur:o,onChange:s,onInput:c,after:u}=e,i=p=>{const x=a!=null?t.Value.get(a):void 0,f=r!=null?t.Value.get(r):void 0;return x!=null&&p<x?x:f!=null&&p>f?f:p},m=(()=>{if(l==null)return null;const p=t.computedOf(n,a)((g,C)=>{const _=g??0;return C==null?!0:_>C}),x=t.computedOf(n,r)((g,C)=>{const _=g??0;return C==null?!0:_<C}),f=g=>{const C=t.Value.get(n)??0,_=t.Value.get(l),w=g?.shiftKey?10:1,V=C-_*w,y=a!=null?t.Value.get(a):void 0;if(y!=null&&V<y)return;const k=i(V);k!==C&&s&&s(k)},I=g=>{const C=t.Value.get(n)??0,_=t.Value.get(l),w=g?.shiftKey?10:1,V=C+_*w,y=r!=null?t.Value.get(r):void 0;if(y!=null&&V>y)return;const k=i(V);k!==C&&s&&s(k)};return((g,C)=>b.Stack(t.attr.class("bc-number-input-steppers"),t.html.button(t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),t.attr.disabled(t.computedOf(x,e.disabled??!1)((_,w)=>!_||w)),t.on.click(_=>I(_)),t.aria.label(g),b.Icon({icon:"line-md:plus",size:"xs"})),t.html.button(t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),t.attr.disabled(t.computedOf(p,e.disabled??!1)((_,w)=>!_||w)),t.on.click(_=>f(_)),t.aria.label(C),b.Icon({icon:"line-md:minus",size:"xs"}))))(b.defaultMessages.incrementValue,b.defaultMessages.decrementValue)})(),d=S(n,e.disabled,s),v=u!=null&&m!=null?t.Fragment(m,d,u):u!=null?t.Fragment(d,u):m!=null?t.Fragment(m,d):d;return b.InputContainer({...e,input:t.input.number(a!=null?t.Fragment(t.attr.min(a),t.OnDispose(t.Value.on(a,p=>{}))):t.Empty,r!=null?t.Fragment(t.attr.max(r),t.OnDispose(t.Value.on(r,p=>{}))):t.Empty,b.CommonInputAttributes(e),t.attr.value(t.Value.map(n,p=>p==null?"":String(p))),t.attr.step(l),t.attr.class("bc-input bc-number-input"),o!=null?t.on.blur(t.emitValue(o)):t.Empty,s!=null?t.on.change(t.emitValue(p=>{const x=ct(p);s(x)})):t.Empty,c!=null?t.on.input(t.emitValue(p=>{const x=ct(p);c(x)})):t.Empty,l!=null?t.on.wheel(p=>{p.preventDefault();const x=t.Value.get(n)??0,f=t.Value.get(l),I=p.shiftKey?10:1,h=p.deltaY<0?f*I:-f*I,g=i(x+h);g!==x&&s&&s(g)}):t.Empty),after:v})},ve=({value:e,onChange:n,offLabel:l,onLabel:a,label:r,disabled:o=!1,size:s="md",id:c,color:u="primary"})=>{const i=c??b.sessionId("switch"),m=`${i}-label`;function d(f,I){const h=["bc-switch",`bc-switch--size-${I}`,`bc-switch--${I}`];return f&&h.push("bc-switch--disabled"),h.join(" ")}function v(f){const I=f??"primary",h=new Map,g=b.backgroundValue(I,"solid","light"),C=b.backgroundValue(I,"solid","dark");return h.set("--switch-track-on-bg",g.backgroundColor),h.set("--switch-track-on-label",g.textColor),h.set("--switch-track-on-bg-dark",C.backgroundColor),h.set("--switch-track-on-label-dark",C.textColor),h.set("--switch-track-on-border-dark",b.borderColorValue(I,"dark")),Array.from(h.entries()).map(([_,w])=>`${_}: ${w}`).join("; ")}const p=()=>{t.Value.get(o)||n(!t.Value.get(e))},x=f=>{t.Value.get(o)||(f.key===" "||f.key==="Enter")&&(f.preventDefault(),p())};return t.html.div(t.attr.class(t.computedOf(o??!1,s)((f,I)=>d(f??!1,I??"md"))),t.attr.style(t.computedOf(u)(f=>v(f))),t.attr.id(i),t.attr.role("switch"),t.attr.tabindex(t.Value.map(o,f=>f?-1:0)),t.aria.checked(e),t.aria.disabled(o),t.aria.labelledby(r!=null?m:void 0),t.on.click(p),t.on.keydown(x),r!=null?b.Label(t.attr.id(m),t.attr.class(`bc-switch__label bc-switch__label--size-${s} bc-switch__label--nowrap`),r):null,t.html.div(t.attr.class("bc-switch__track"),t.attr.class(t.Value.map(e,f=>f?"bc-switch__track--on":"bc-switch__track--off")),l!=null?t.html.div(t.aria.hidden(!0),t.attr.class("bc-switch__track-label bc-switch__track-label--off"),t.attr.class(t.Value.map(e,f=>f?"bc-switch__track-label--hidden":"bc-switch__track-label--visible")),l):null,a!=null?t.html.div(t.attr.class("bc-switch__track-label bc-switch__track-label--on"),t.attr.class(t.Value.map(e,f=>f?"bc-switch__track-label--visible":"bc-switch__track-label--hidden")),a):null,et.ElementRect(f=>t.Use(b.Locale,({direction:I})=>t.html.div(t.attr.class("bc-switch__thumb"),t.attr.class(t.Value.map(e,h=>h?"bc-switch__thumb--on":"bc-switch__thumb--off")),t.style.transform(t.computedOf(e,f,s,I)((h,{width:g},C,_)=>{const w=(()=>{switch(C){case"xs":return 5;case"sm":return 5.5;case"md":return 6;case"lg":return 7;case"xl":return 8}})(),V=_==="rtl"?`calc((var(--spacing-base) * ${w}) - ${g}px)`:`calc(${g}px - (var(--spacing-base) * ${w}))`;return h?`translateX(${V})`:"translateX(0)"})))))))},yt=e=>{const n={type:"pattern",pattern:/[0-9A-Fa-f]/,transform:a=>a.toLowerCase()};return at({...e,mask:[n,n,n,n,n,n,n,n,"-",n,n,n,n,"-",n,n,n,n,"-",n,n,n,n,"-",n,n,n,n,n,n,n,n,n,n,n,n],placeholder:e.placeholder??"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"})},xe=e=>{const{value:n,onBlur:l,onChange:a,onInput:r,after:o,disabled:s,...c}=e,u=S(n,s,a);return yt({...c,value:t.Value.map(n,N),onChange:a!=null?i=>a(T(i)):void 0,onInput:r!=null?i=>r(T(i)):void 0,onBlur:l,after:o!=null?t.Fragment(u,o):u})},Ie="line-md:star-alt-filled",Ve="line-md:star-alt",_t=e=>{const{value:n,onChange:l,disabled:a,max:r=5,fullColor:o="yellow",emptyColor:s="neutral",fullIcon:c=Ie,emptyIcon:u=Ve,size:i="md",onBlur:m,rounding:d=1}=e,v=()=>{const g=t.Value.get(d);return g>0?g:1},p=g=>Math.min(Math.max(g,0),t.Value.get(r)),x=(g,C)=>{if(t.Value.get(a??!1))return;const w=g.currentTarget.getBoundingClientRect(),V=(g.clientX-w.left)/w.width,y=C-1+V,k=v(),M=Math.ceil(y/k)*k,E=p(M);l?.(E)},f=g=>{if(t.Value.get(a??!1))return;const C=v(),_=t.Value.get(n)??0;let w;switch(g.key){case"ArrowRight":case"ArrowUp":w=p(_+C);break;case"ArrowLeft":case"ArrowDown":w=p(_-C);break;case"Home":w=0;break;case"End":w=t.Value.get(r);break;default:return}g.preventDefault(),l?.(w)},I=t.Value.map(i,g=>`bc-icon--${g}`),h=({index:g,counter:C})=>t.html.span(t.attr.class("bc-rating-input__icon-container"),t.attr.class(I),b.Icon({icon:u,size:i,color:s,tone:"soft"},t.attr.class("bc-rating-input__icon-empty")),t.html.span(t.attr.class("bc-rating-input__icon-clipper"),t.attr.class(I),t.style.width(t.Value.map(n,_=>{const w=Math.floor(_);return w>g?"100%":w<g?"0%":`${(_-g)*100}%`})),b.Icon({icon:c,size:i,color:o,tone:"soft"},t.attr.class("bc-rating-input__icon-full"))),t.on.click(t.emit(_=>x(_,C),{preventDefault:!0,stopPropagation:!0})));return b.InputContainer({baseContainer:!0,growInput:!1,focusableSelector:'[role="slider"]',...e,input:t.html.div(b.CommonInputAttributes(e),t.attr.class("bc-rating-input"),t.attr.role("slider"),t.attr.tabindex(t.Value.map(a??!1,g=>g?-1:0)),t.aria.disabled(a??!1),t.aria.valuemin(0),t.aria.valuemax(t.Value.map(r,g=>g??0)),t.aria.valuenow(t.Value.map(n,g=>g??0)),t.aria.valuetext(t.computedOf(n,r)((g,C)=>{const _=g??0,w=C??0;return`${String(_)} / ${String(w)}`})),t.on.keydown(f),m!=null?t.on.blur(m):null,t.Repeat(r,h))})},we=e=>{const{value:n,onChange:l,onBlur:a,after:r,disabled:o,...s}=e,c=S(n,o,l);return _t({...s,value:t.Value.map(n,u=>u??0),onChange:l,onBlur:a,after:r!=null?t.Fragment(c,r):c})},ye=e=>{const{value:n,step:l,min:a,max:r,onBlur:o,onChange:s,onInput:c}=e;return b.InputContainer({...e,focusableSelector:'input[type="range"]',input:t.html.input(t.attr.type("range"),b.CommonInputAttributes(e),t.attr.min(a),t.attr.max(r),t.attr.step(l),t.attr.valueAsNumber(n),t.attr.class("bc-input bc-slider-input"),o!=null?t.on.blur(t.emitValueAsNumber(o)):t.Empty,s!=null?t.on.change(t.emitValueAsNumber(s)):t.Empty,c!=null?t.on.input(t.emitValueAsNumber(c)):t.Empty)})},_e=e=>{const{value:n,step:l,min:a,max:r,onBlur:o,onChange:s,onInput:c}=e,u=t.Value.map(n,m=>{if(m!=null)return m;const d=a!=null?t.Value.get(a):void 0;return typeof d=="number"?d:0}),i=S(n,e.disabled,m=>{s?.(m)});return b.InputContainer({...e,focusableSelector:'input[type="range"]',after:i,input:t.html.input(t.attr.type("range"),b.CommonInputAttributes(e),t.attr.min(a),t.attr.max(r),t.attr.step(l),t.attr.valueAsNumber(u),t.attr.class("bc-input bc-slider-input"),o!=null?t.on.blur(t.emitValueAsNumber(o)):t.Empty,s!=null?t.on.change(t.emitValueAsNumber(m=>{s(m)})):t.Empty,c!=null?t.on.input(t.emitValueAsNumber(m=>{c(m)})):t.Empty)},t.Fragment())};let G=null;async function Z(){const e=globalThis;return e.Temporal?e.Temporal:(G||(G=Promise.resolve().then(()=>require("./index.esm-DJRz9AE-.cjs")).then(n=>{const l=n.Temporal;return e.Temporal||(e.Temporal=l),l})),G)}const Ct=(e,n)=>n?t.Task(Z,{then:e,pending:n.pending,error:n.error}):t.Task(Z,e),Ce=/^P(\d+([YMWD]|$)){0,4}(T(\d+([HMS]|$)){0,3})?$/i,ke=/^P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)(T(\d+H)?(\d+M)?(\d+S)?)?$/i;function kt(e){return{mask:null,allowMode:"custom",allow:n=>/[0-9ptwdhms]/i.test(n),pipe:n=>{const l=n.toUpperCase();return l.length===0?l:!l.startsWith("P")||!Ce.test(l)?!1:l},completion:{mode:"custom",isComplete:n=>{const l=n.toUpperCase();if(!ke.test(l))return!1;try{return e(l),!0}catch{return!1}}}}}const it=(e,n)=>{if(e==null)return null;try{return e.Duration.from(n)}catch{return null}},$e=e=>{const{value:n,onChange:l,after:a,disabled:r,onBlur:o}=e,s=()=>{const i=S(n,r,l);return a!=null?t.Fragment(i,a):i},c=e.placeholder!=null?t.Empty:t.attr.placeholder("P0DT0H0M0S");return Ct(i=>at({...e,value:t.Value.map(n,m=>m?.toString()??""),onChange:l?m=>l(m===""?null:i.Duration.from(m)):void 0,onInput:void 0,...kt(i.Duration.from),placeholder:"P0DT0H0M0S",after:s()}),{pending:()=>b.InputContainer({...e,input:t.input.text(b.CommonInputAttributes(e),t.attr.value(t.Value.map(n,i=>i?.toString()??"")),t.attr.class("bc-input"),c,o!=null?t.on.blur(()=>o()):t.Empty,l!=null?t.on.change(i=>{const d=i.currentTarget?.value??"";if(d===""){l(null);return}const v=globalThis.Temporal,p=it(v,d);if(p!=null){l(p);return}Z().then(x=>{const f=it(x,d);f!=null&&l(f)}).catch(()=>{})}):t.Empty),after:s()})})},$t=e=>{const{value:n,onBlur:l,onChange:a,onInput:r}=e;return b.InputContainer({...e,input:t.input.url(b.CommonInputAttributes(e),t.attr.value(n),t.attr.class("bc-input"),l!=null?t.on.blur(t.emitValue(l)):t.Empty,a!=null?t.on.change(t.emitValue(a)):t.Empty,r!=null?t.on.input(t.emitValue(r)):t.Empty)})},Me=e=>{const{value:n,onBlur:l,onChange:a,onInput:r,after:o,disabled:s,...c}=e,u=S(n,s,a);return $t({...c,value:t.Value.map(n,N),onChange:a!=null?i=>a(T(i)):void 0,onInput:r!=null?i=>r(T(i)):void 0,onBlur:l,after:o!=null?t.Fragment(u,o):u})},Mt=e=>{const{controller:n,element:l,separator:a,showMove:r=!0,showRemove:o=!0,showAdd:s=!0,createItem:c,addLabel:u,controlsLayout:i="aside",removeDisabled:m,addDisabled:d}=e,v=t.Value.toSignal(i).map(f=>f==="aside"),p=f=>{const I=t.When(r??!1,()=>t.html.div(t.attr.class("bc-group--align-center"),t.attr.class(v.map(g=>g?"bc-group--direction-column bc-group--gap-1":"bc-group--direction-row bc-group--gap-1")),b.Button({size:"xs",roundedness:"full",variant:"text",onClick:()=>f.move("up"),disabled:f.cannotMove("up")},t.Use(b.BeatUII18n,g=>b.Icon({size:"xs",icon:"line-md:arrow-up",title:g.$.incrementValue}))),b.Button({size:"xs",roundedness:"full",variant:"text",onClick:()=>f.move("down"),disabled:f.cannotMove("down")},t.Use(b.BeatUII18n,g=>b.Icon({size:"xs",icon:"line-md:arrow-down",title:g.$.decrementValue}))))),h=t.When(o,()=>t.Use(b.BeatUII18n,g=>b.CloseButton({size:"xs",label:t.Value.map(g.$.removeItem,C=>C.toLowerCase()),color:"danger",disabled:m,onClick:f.remove})));return g=>t.When(v,()=>j(t.attr.class("bc-group--gap-1 bc-group--align-center"),b.Stack(t.attr.class("bc-stack--grow"),g),b.Stack(t.attr.class("bc-stack--align-center"),t.When(n.value.map(C=>C.length>1),()=>I),h)),()=>b.Stack(t.attr.class("bc-stack--gap-2"),g,j(t.attr.class("bc-group--gap-2 bc-group--justify-between"),t.When(n.value.map(C=>C.length>1),()=>I,()=>t.html.div()),h)))},x=t.When(t.computedOf(s,c)((f,I)=>f&&I!=null),()=>j(t.attr.class("bc-group--gap-2 bc-group--align-center bc-group--justify-center"),b.Button({size:"sm",variant:"filled",onClick:()=>n.push(c()),disabled:t.computedOf(n.disabled,d??!1)((f,I)=>f||I)},t.Use(b.BeatUII18n,f=>j(t.attr.class("bc-group--gap-2"),b.Icon({icon:"line-md:plus"}),u??f.$.addLabel)))));return t.Fragment(It(n,f=>p(f)(l(f)),a),x)},Ee=(e,...n)=>{const{controller:l,element:a,separator:r,showMove:o,showRemove:s,showAdd:c,createItem:u,addLabel:i,controlsLayout:m,removeDisabled:d,addDisabled:v,...p}=e;return b.InputWrapper({...p,content:Mt({controller:l,element:a,separator:r,showMove:o,showRemove:s,showAdd:c,createItem:u,addLabel:i,controlsLayout:m,removeDisabled:d,addDisabled:v})},...n)};class Fe extends b.Controller{branches;activeBranch;#e;#t=new Map;constructor(n,l,a,r,o,s,c=b.O){super(n,l,a,r,o,c),this.branches=s;const u=m=>{for(const d of s)if(d.detect(m))return d.key;return s[0]?.key??"unknown"};this.activeBranch=a.map(u,b.O);const i=m=>{if(this.#t.has(m))return this.#t.get(m);const d=s.find(p=>p.key===m);if(!d)throw new Error(`Unknown branch: ${m}`);const v=new b.Controller([...n,m],p=>{this.change(p)},a.map(p=>d.detect(p)?p:d.defaultValue(),c),r.map(b.makeMapValidation([m])),{disabled:this.disabled,validationMode:this.parent.validationMode},c);return this.#t.set(m,v),v};this.#e=this.activeBranch.map(m=>i(m),b.O),this.onDispose(()=>{for(const m of this.#t.values())m.dispose();this.#t.clear(),this.activeBranch.dispose(),this.#e.dispose()})}get activeController(){return t.Value.get(this.#e)}getBranchController(n){const l=this.branches.find(r=>r.key===n);if(!l)throw new Error(`Unknown branch: ${n}`);if(this.#t.has(n))return this.#t.get(n);const a=new b.Controller([...this.path,n],r=>{this.change(r)},this.value.map(r=>l.detect(r)?r:l.defaultValue(),b.O),this.status.map(b.makeMapValidation([n])),{disabled:this.disabled,validationMode:this.parent.validationMode},b.O);return this.#t.set(n,a),a}switchToBranch(n,l=!1){const a=this.branches.find(s=>s.key===n);if(!a)throw new Error(`Unknown branch: ${n}`);const r=t.Value.get(this.value);if(a.detect(r))return!0;if(a.convert){const s=a.convert(r);if(s.ok)return this.change(s.value),!0}if(l&&typeof window=="object"&&typeof window.confirm=="function"&&!window.confirm("Changing type will clear the current value. Continue?"))return!1;const o=a.defaultValue();return this.change(o),!0}get activeBranchDefinition(){const n=t.Value.get(this.activeBranch);return this.branches.find(l=>l.key===n)}}function Ae(e){return e.transform(n=>n??null,n=>n??void 0)}function De(e){return e.transform(n=>n??"",n=>n===""?void 0:n)}function Te(e){return e.transform(n=>n??void 0,n=>n??null)}function Se(e){switch(e){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";case"info":default:return"material-symbols:info-outline"}}function Be(e){switch(e){case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":default:return"info"}}function Oe(e,n,l,a){const r=["bc-notice",`bc-notice--${e}`,`bc-notice--tone-${n}`];return l&&r.push("bc-notice--dismissible"),a&&a.length>0&&r.push(a),r.join(" ")}function Ue({variant:e="info",tone:n="subtle",role:l,title:a,icon:r,closable:o=!1,onDismiss:s,class:c},...u){const i=t.Value.map(o,f=>!!f||s!=null),m=t.Value.map(e,f=>f??"info"),d=t.Value.map(n,f=>f??"subtle"),v=t.computedOf(l,m)((f,I)=>f??(I==="danger"?"alert":"status")),p=t.prop(!0),x=t.Use(b.BeatUII18n,f=>t.html.div(t.attr.class(t.computedOf(m,d,i,c)((I,h,g,C)=>Oe(I,h,g,C))),t.attr.role(t.Value.map(v,I=>I)),t.Unless(t.Value.map(r,I=>I===!1),()=>t.html.div(t.attr.class("bc-notice__icon"),b.Icon({icon:t.computedOf(r,m)((I,h)=>I===void 0?Se(h):String(I)),size:"md",color:t.Value.map(m,Be)}))),t.html.div(t.attr.class("bc-notice__body"),t.Ensure(a,I=>t.html.div(t.attr.class("bc-notice__title"),I)),t.html.div(t.attr.class("bc-notice__content"),...u)),t.When(i,()=>b.CloseButton({size:"xs",label:f.$.closeModal,onClick:()=>{p.set(!1),s?.()}}))));return t.When(p,()=>x)}exports.Base64Input=Ht;exports.Base64sInput=mt;exports.BaseListControl=Mt;exports.BaseNativeSelectControl=xt;exports.Card=ae;exports.ColorInput=te;exports.EditableText=re;exports.Expando=ht;exports.FilesInput=pt;exports.Group=j;exports.ListControl=Ee;exports.ListInput=It;exports.MaskInput=at;exports.NativeSelect=vt;exports.NativeSelectControl=le;exports.Notice=Ue;exports.NullableDateInput=ce;exports.NullableDateTimeInput=pe;exports.NullableDurationInput=$e;exports.NullableEmailInput=me;exports.NullableNumberInput=be;exports.NullablePasswordInput=fe;exports.NullableRatingInput=we;exports.NullableResetAfter=S;exports.NullableSliderInput=_e;exports.NullableTextArea=he;exports.NullableTextInput=de;exports.NullableUUIDInput=xe;exports.NullableUrlInput=Me;exports.NumberInput=ge;exports.RatingInput=_t;exports.SegmentedInput=Lt;exports.SliderInput=ye;exports.Switch=ve;exports.TextArea=wt;exports.UUIDInput=yt;exports.UnionController=Fe;exports.UnstyledDropZone=Q;exports.UrlInput=$t;exports.WithTemporal=Ct;exports._t=Bt;exports.durationMaskConfig=kt;exports.emitExpando=ee;exports.emitOptionExpando=gt;exports.emptyToNull=T;exports.ensureTemporal=Z;exports.fileToBase64=dt;exports.gt=Tt;exports.nullToEmpty=N;exports.transformEmptyStringToUndefined=De;exports.transformNullToUndefined=Ae;exports.transformUndefinedToNull=Te;
|