xmlui 0.8.3 → 0.8.4
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/{apiInterceptorWorker-BbXqnrUa.mjs → apiInterceptorWorker-RJ4u5Wbp.mjs} +1 -1
- package/dist/{core-BmjxDmQl.mjs → core-CvFpTAHi.mjs} +317 -303
- package/dist/{index-euqWddW6.mjs → index-DEo_e2LS.mjs} +3470 -3471
- package/dist/scripts/src/components/Heading/HeadingNative.js +6 -6
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +2 -2
- package/dist/scripts/src/components/abstractions.js +5 -5
- package/dist/scripts/src/components-core/TableOfContentsContext.js +18 -20
- package/dist/xmlui-metadata.mjs +955 -955
- package/dist/xmlui-metadata.umd.js +9 -9
- package/dist/xmlui-standalone.umd.js +163 -152
- package/dist/xmlui.d.ts +1 -0
- package/dist/xmlui.mjs +1 -1
- package/package.json +5 -3
package/dist/xmlui-metadata.mjs
CHANGED
|
@@ -56,7 +56,7 @@ function k({
|
|
|
56
56
|
apis: l,
|
|
57
57
|
nonVisual: s,
|
|
58
58
|
opaque: v,
|
|
59
|
-
themeVars:
|
|
59
|
+
themeVars: h,
|
|
60
60
|
themeVarDescriptions: c,
|
|
61
61
|
defaultThemeVars: T,
|
|
62
62
|
toneSpecificThemeVars: b,
|
|
@@ -75,7 +75,7 @@ function k({
|
|
|
75
75
|
apis: l,
|
|
76
76
|
nonVisual: s,
|
|
77
77
|
opaque: v,
|
|
78
|
-
themeVars:
|
|
78
|
+
themeVars: h,
|
|
79
79
|
defaultThemeVars: T,
|
|
80
80
|
themeVarDescriptions: c,
|
|
81
81
|
toneSpecificThemeVars: b,
|
|
@@ -831,9 +831,9 @@ function Rs(e) {
|
|
|
831
831
|
if (!o)
|
|
832
832
|
return null;
|
|
833
833
|
const { attributes: l, name: s } = o, v = {};
|
|
834
|
-
return Object.entries(l).forEach(([
|
|
835
|
-
let T =
|
|
836
|
-
/^(data-|aria-)/.test(
|
|
834
|
+
return Object.entries(l).forEach(([h, c]) => {
|
|
835
|
+
let T = h;
|
|
836
|
+
/^(data-|aria-)/.test(h) ? T = h : T = h.replace(Ns, "").toLowerCase(), v[As[T] || h] = c;
|
|
837
837
|
}), /* @__PURE__ */ m("svg", { ...v, style: n, className: i, children: /* @__PURE__ */ m("use", { href: `#${s}` }) });
|
|
838
838
|
},
|
|
839
839
|
[o]
|
|
@@ -894,24 +894,24 @@ function rl(e) {
|
|
|
894
894
|
}
|
|
895
895
|
const ke = ve(function({ name: t, fallback: r, style: o, className: a, size: n, ...i }, l) {
|
|
896
896
|
var f;
|
|
897
|
-
const s = Ps(t, r), v = typeof n == "string" ? Es(n) : n,
|
|
897
|
+
const s = Ps(t, r), v = typeof n == "string" ? Es(n) : n, h = v || i.width, c = v || i.height, T = {
|
|
898
898
|
// className is needed to apply a default color to the icon, thus other component classes can override this one
|
|
899
899
|
className: le(Jn.base, a),
|
|
900
900
|
...i,
|
|
901
901
|
size: v,
|
|
902
|
-
width:
|
|
902
|
+
width: h,
|
|
903
903
|
height: c,
|
|
904
904
|
style: {
|
|
905
905
|
...o,
|
|
906
|
-
"--icon-width":
|
|
906
|
+
"--icon-width": h,
|
|
907
907
|
"--icon-height": c
|
|
908
908
|
}
|
|
909
909
|
}, b = Vs(t);
|
|
910
910
|
return b ? /* @__PURE__ */ m(zs, { ...T, url: b, name: t }) : ((f = s == null ? void 0 : s.renderer) == null ? void 0 : f.call(s, T)) || null;
|
|
911
911
|
});
|
|
912
912
|
function zs(e) {
|
|
913
|
-
var
|
|
914
|
-
const { url: t, width: r, height: o, name: a, style: n, className: i } = e, l = Is(t), s = (
|
|
913
|
+
var h;
|
|
914
|
+
const { url: t, width: r, height: o, name: a, style: n, className: i } = e, l = Is(t), s = (h = l == null ? void 0 : l.toLowerCase()) == null ? void 0 : h.endsWith(".svg"), v = Rs(l);
|
|
915
915
|
if (l && s) {
|
|
916
916
|
const c = v == null ? void 0 : v({ style: n, className: i });
|
|
917
917
|
return c || /* @__PURE__ */ m("span", { style: n, className: i });
|
|
@@ -990,7 +990,7 @@ const lt = {
|
|
|
990
990
|
variant: l = lt.variant,
|
|
991
991
|
themeColor: s = lt.themeColor,
|
|
992
992
|
size: v = lt.size,
|
|
993
|
-
disabled:
|
|
993
|
+
disabled: h,
|
|
994
994
|
children: c,
|
|
995
995
|
formId: T,
|
|
996
996
|
onClick: b,
|
|
@@ -999,21 +999,21 @@ const lt = {
|
|
|
999
999
|
style: w,
|
|
1000
1000
|
gap: _,
|
|
1001
1001
|
className: H,
|
|
1002
|
-
autoFocus:
|
|
1003
|
-
...
|
|
1004
|
-
},
|
|
1005
|
-
const
|
|
1002
|
+
autoFocus: $,
|
|
1003
|
+
...W
|
|
1004
|
+
}, U) {
|
|
1005
|
+
const Z = he(null), V = U ? sr(U, Z) : Z;
|
|
1006
1006
|
ee(() => {
|
|
1007
|
-
|
|
1007
|
+
$ && setTimeout(() => {
|
|
1008
1008
|
var N;
|
|
1009
|
-
(N =
|
|
1009
|
+
(N = Z.current) == null || N.focus();
|
|
1010
1010
|
}, 0);
|
|
1011
|
-
}, [
|
|
1011
|
+
}, [$]);
|
|
1012
1012
|
const R = a === "start";
|
|
1013
1013
|
return /* @__PURE__ */ J(
|
|
1014
1014
|
"button",
|
|
1015
1015
|
{
|
|
1016
|
-
...
|
|
1016
|
+
...W,
|
|
1017
1017
|
id: t,
|
|
1018
1018
|
type: r,
|
|
1019
1019
|
ref: V,
|
|
@@ -1036,8 +1036,8 @@ const lt = {
|
|
|
1036
1036
|
[Ue.alignStart]: n === "start",
|
|
1037
1037
|
[Ue.alignEnd]: n === "end"
|
|
1038
1038
|
}),
|
|
1039
|
-
autoFocus:
|
|
1040
|
-
disabled:
|
|
1039
|
+
autoFocus: $,
|
|
1040
|
+
disabled: h,
|
|
1041
1041
|
form: T,
|
|
1042
1042
|
style: w,
|
|
1043
1043
|
onClick: b,
|
|
@@ -1050,7 +1050,7 @@ const lt = {
|
|
|
1050
1050
|
]
|
|
1051
1051
|
}
|
|
1052
1052
|
);
|
|
1053
|
-
}),
|
|
1053
|
+
}), F = "Button", Ds = k({
|
|
1054
1054
|
description: "Button is an interactive element that triggers an action when clicked.",
|
|
1055
1055
|
status: "stable",
|
|
1056
1056
|
props: {
|
|
@@ -1082,11 +1082,11 @@ const lt = {
|
|
|
1082
1082
|
defaultValue: lt.size
|
|
1083
1083
|
},
|
|
1084
1084
|
label: {
|
|
1085
|
-
description: `This property is an optional string to set a label for the ${
|
|
1085
|
+
description: `This property is an optional string to set a label for the ${F}. If no label is specified and an icon is set, the ${F} will modify its styling to look like a small icon button. When the ${F} has nested children, it will display them and ignore the value of the \`label\` prop.`,
|
|
1086
1086
|
type: "string"
|
|
1087
1087
|
},
|
|
1088
1088
|
type: {
|
|
1089
|
-
description: `This optional string describes how the ${
|
|
1089
|
+
description: `This optional string describes how the ${F} appears in an HTML context. You rarely need to set this property explicitly.`,
|
|
1090
1090
|
availableValues: is,
|
|
1091
1091
|
valueType: "string",
|
|
1092
1092
|
defaultValue: lt.type
|
|
@@ -1098,113 +1098,113 @@ const lt = {
|
|
|
1098
1098
|
},
|
|
1099
1099
|
orientation: jn(lt.orientation),
|
|
1100
1100
|
icon: {
|
|
1101
|
-
description: `This string value denotes an icon name. The framework will render an icon if XMLUI recognizes the icon by its name. If no label is specified and an icon is set, the ${
|
|
1101
|
+
description: `This string value denotes an icon name. The framework will render an icon if XMLUI recognizes the icon by its name. If no label is specified and an icon is set, the ${F} displays only that icon.`,
|
|
1102
1102
|
type: "string"
|
|
1103
1103
|
},
|
|
1104
1104
|
iconPosition: {
|
|
1105
|
-
description: `This optional string determines the location of the icon in the ${
|
|
1105
|
+
description: `This optional string determines the location of the icon in the ${F}.`,
|
|
1106
1106
|
availableValues: Ja,
|
|
1107
1107
|
type: "string",
|
|
1108
1108
|
defaultValue: lt.iconPosition
|
|
1109
1109
|
},
|
|
1110
1110
|
contentPosition: {
|
|
1111
|
-
description: `This optional value determines how the label and icon (or nested children) should be placedinside the ${
|
|
1111
|
+
description: `This optional value determines how the label and icon (or nested children) should be placedinside the ${F} component.`,
|
|
1112
1112
|
availableValues: Fn,
|
|
1113
1113
|
type: "string",
|
|
1114
1114
|
defaultValue: lt.contentPosition
|
|
1115
1115
|
}
|
|
1116
1116
|
},
|
|
1117
1117
|
events: {
|
|
1118
|
-
click: ho(
|
|
1119
|
-
gotFocus: Ct(
|
|
1120
|
-
lostFocus: kt(
|
|
1118
|
+
click: ho(F),
|
|
1119
|
+
gotFocus: Ct(F),
|
|
1120
|
+
lostFocus: kt(F)
|
|
1121
1121
|
},
|
|
1122
1122
|
themeVars: Q(Ue.themeVars),
|
|
1123
1123
|
defaultThemeVars: {
|
|
1124
|
-
[`width-${
|
|
1125
|
-
[`height-${
|
|
1126
|
-
[`borderRadius-${
|
|
1127
|
-
[`fontSize-${
|
|
1128
|
-
[`fontWeight-${
|
|
1129
|
-
[`backgroundColor-${
|
|
1130
|
-
[`backgroundColor-${
|
|
1131
|
-
[`borderColor-${
|
|
1132
|
-
[`backgroundColor-${
|
|
1133
|
-
[`borderColor-${
|
|
1134
|
-
[`borderStyle-${
|
|
1135
|
-
[`textColor-${
|
|
1136
|
-
[`outlineColor-${
|
|
1137
|
-
[`borderWidth-${
|
|
1138
|
-
[`outlineWidth-${
|
|
1139
|
-
[`outlineStyle-${
|
|
1140
|
-
[`outlineOffset-${
|
|
1141
|
-
[`paddingHorizontal-${
|
|
1142
|
-
[`paddingVertical-${
|
|
1143
|
-
[`paddingHorizontal-${
|
|
1144
|
-
[`paddingVertical-${
|
|
1145
|
-
[`paddingHorizontal-${
|
|
1146
|
-
[`paddingVertical-${
|
|
1147
|
-
[`paddingHorizontal-${
|
|
1148
|
-
[`paddingVertical-${
|
|
1124
|
+
[`width-${F}`]: "fit-content",
|
|
1125
|
+
[`height-${F}`]: "fit-content",
|
|
1126
|
+
[`borderRadius-${F}`]: "$borderRadius",
|
|
1127
|
+
[`fontSize-${F}`]: "$fontSize-small",
|
|
1128
|
+
[`fontWeight-${F}`]: "$fontWeight-medium",
|
|
1129
|
+
[`backgroundColor-${F}-primary`]: "$color-primary-500",
|
|
1130
|
+
[`backgroundColor-${F}-attention`]: "$backgroundColor-attention",
|
|
1131
|
+
[`borderColor-${F}-attention`]: "$color-attention",
|
|
1132
|
+
[`backgroundColor-${F}--disabled`]: "$backgroundColor--disabled",
|
|
1133
|
+
[`borderColor-${F}--disabled`]: "$borderColor--disabled",
|
|
1134
|
+
[`borderStyle-${F}`]: "solid",
|
|
1135
|
+
[`textColor-${F}--disabled`]: "$textColor--disabled",
|
|
1136
|
+
[`outlineColor-${F}--focus`]: "$outlineColor--focus",
|
|
1137
|
+
[`borderWidth-${F}`]: "1px",
|
|
1138
|
+
[`outlineWidth-${F}--focus`]: "$outlineWidth--focus",
|
|
1139
|
+
[`outlineStyle-${F}--focus`]: "$outlineStyle--focus",
|
|
1140
|
+
[`outlineOffset-${F}--focus`]: "$outlineOffset--focus",
|
|
1141
|
+
[`paddingHorizontal-${F}-xs`]: "$space-1",
|
|
1142
|
+
[`paddingVertical-${F}-xs`]: "$space-0_5",
|
|
1143
|
+
[`paddingHorizontal-${F}-sm`]: "$space-4",
|
|
1144
|
+
[`paddingVertical-${F}-sm`]: "$space-2",
|
|
1145
|
+
[`paddingHorizontal-${F}-md`]: "$space-4",
|
|
1146
|
+
[`paddingVertical-${F}-md`]: "$space-3",
|
|
1147
|
+
[`paddingHorizontal-${F}-lg`]: "$space-5",
|
|
1148
|
+
[`paddingVertical-${F}-lg`]: "$space-4",
|
|
1149
1149
|
light: {
|
|
1150
|
-
[`textColor-${
|
|
1151
|
-
[`textColor-${
|
|
1152
|
-
[`borderColor-${
|
|
1153
|
-
[`backgroundColor-${
|
|
1154
|
-
[`backgroundColor-${
|
|
1155
|
-
[`backgroundColor-${
|
|
1156
|
-
[`backgroundColor-${
|
|
1157
|
-
[`borderColor-${
|
|
1158
|
-
[`borderColor-${
|
|
1159
|
-
[`textColor-${
|
|
1160
|
-
[`textColor-${
|
|
1161
|
-
[`textColor-${
|
|
1162
|
-
[`backgroundColor-${
|
|
1163
|
-
[`backgroundColor-${
|
|
1164
|
-
[`borderColor-${
|
|
1165
|
-
[`backgroundColor-${
|
|
1166
|
-
[`backgroundColor-${
|
|
1167
|
-
[`backgroundColor-${
|
|
1168
|
-
[`backgroundColor-${
|
|
1169
|
-
[`backgroundColor-${
|
|
1170
|
-
[`backgroundColor-${
|
|
1171
|
-
[`backgroundColor-${
|
|
1172
|
-
[`backgroundColor-${
|
|
1173
|
-
[`backgroundColor-${
|
|
1174
|
-
[`backgroundColor-${
|
|
1175
|
-
[`backgroundColor-${
|
|
1176
|
-
[`backgroundColor-${
|
|
1177
|
-
[`backgroundColor-${
|
|
1150
|
+
[`textColor-${F}`]: "$color-surface-950",
|
|
1151
|
+
[`textColor-${F}-solid`]: "$color-surface-50",
|
|
1152
|
+
[`borderColor-${F}-primary`]: "$color-primary-500",
|
|
1153
|
+
[`backgroundColor-${F}-primary--hover`]: "$color-primary-400",
|
|
1154
|
+
[`backgroundColor-${F}-primary--active`]: "$color-primary-500",
|
|
1155
|
+
[`backgroundColor-${F}-primary-outlined--hover`]: "$color-primary-50",
|
|
1156
|
+
[`backgroundColor-${F}-primary-outlined--active`]: "$color-primary-100",
|
|
1157
|
+
[`borderColor-${F}-primary-outlined`]: "$color-primary-600",
|
|
1158
|
+
[`borderColor-${F}-primary-outlined--hover`]: "$color-primary-500",
|
|
1159
|
+
[`textColor-${F}-primary-outlined`]: "$color-primary-900",
|
|
1160
|
+
[`textColor-${F}-primary-outlined--hover`]: "$color-primary-950",
|
|
1161
|
+
[`textColor-${F}-primary-outlined--active`]: "$color-primary-900",
|
|
1162
|
+
[`backgroundColor-${F}-primary-ghost--hover`]: "$color-primary-50",
|
|
1163
|
+
[`backgroundColor-${F}-primary-ghost--active`]: "$color-primary-100",
|
|
1164
|
+
[`borderColor-${F}-secondary`]: "$color-secondary-100",
|
|
1165
|
+
[`backgroundColor-${F}-secondary`]: "$color-secondary-500",
|
|
1166
|
+
[`backgroundColor-${F}-secondary--hover`]: "$color-secondary-400",
|
|
1167
|
+
[`backgroundColor-${F}-secondary--active`]: "$color-secondary-500",
|
|
1168
|
+
[`backgroundColor-${F}-secondary-outlined--hover`]: "$color-secondary-50",
|
|
1169
|
+
[`backgroundColor-${F}-secondary-outlined--active`]: "$color-secondary-100",
|
|
1170
|
+
[`backgroundColor-${F}-secondary-ghost--hover`]: "$color-secondary-100",
|
|
1171
|
+
[`backgroundColor-${F}-secondary-ghost--active`]: "$color-secondary-100",
|
|
1172
|
+
[`backgroundColor-${F}-attention--hover`]: "$color-danger-400",
|
|
1173
|
+
[`backgroundColor-${F}-attention--active`]: "$color-danger-500",
|
|
1174
|
+
[`backgroundColor-${F}-attention-outlined--hover`]: "$color-danger-50",
|
|
1175
|
+
[`backgroundColor-${F}-attention-outlined--active`]: "$color-danger-100",
|
|
1176
|
+
[`backgroundColor-${F}-attention-ghost--hover`]: "$color-danger-50",
|
|
1177
|
+
[`backgroundColor-${F}-attention-ghost--active`]: "$color-danger-100"
|
|
1178
1178
|
},
|
|
1179
1179
|
dark: {
|
|
1180
|
-
[`textColor-${
|
|
1181
|
-
[`textColor-${
|
|
1182
|
-
[`borderColor-${
|
|
1183
|
-
[`backgroundColor-${
|
|
1184
|
-
[`backgroundColor-${
|
|
1185
|
-
[`backgroundColor-${
|
|
1186
|
-
[`backgroundColor-${
|
|
1187
|
-
[`borderColor-${
|
|
1188
|
-
[`borderColor-${
|
|
1189
|
-
[`textColor-${
|
|
1190
|
-
[`textColor-${
|
|
1191
|
-
[`textColor-${
|
|
1192
|
-
[`backgroundColor-${
|
|
1193
|
-
[`backgroundColor-${
|
|
1194
|
-
[`borderColor-${
|
|
1195
|
-
[`backgroundColor-${
|
|
1196
|
-
[`backgroundColor-${
|
|
1197
|
-
[`backgroundColor-${
|
|
1198
|
-
[`backgroundColor-${
|
|
1199
|
-
[`backgroundColor-${
|
|
1200
|
-
[`backgroundColor-${
|
|
1201
|
-
[`backgroundColor-${
|
|
1202
|
-
[`backgroundColor-${
|
|
1203
|
-
[`backgroundColor-${
|
|
1204
|
-
[`backgroundColor-${
|
|
1205
|
-
[`backgroundColor-${
|
|
1206
|
-
[`backgroundColor-${
|
|
1207
|
-
[`backgroundColor-${
|
|
1180
|
+
[`textColor-${F}`]: "$color-surface-50",
|
|
1181
|
+
[`textColor-${F}-solid`]: "$color-surface-50",
|
|
1182
|
+
[`borderColor-${F}-primary`]: "$color-primary-500",
|
|
1183
|
+
[`backgroundColor-${F}-primary--hover`]: "$color-primary-600",
|
|
1184
|
+
[`backgroundColor-${F}-primary--active`]: "$color-primary-500",
|
|
1185
|
+
[`backgroundColor-${F}-primary-outlined--hover`]: "$color-primary-900",
|
|
1186
|
+
[`backgroundColor-${F}-primary-outlined--active`]: "$color-primary-950",
|
|
1187
|
+
[`borderColor-${F}-primary-outlined`]: "$color-primary-600",
|
|
1188
|
+
[`borderColor-${F}-primary-outlined--hover`]: "$color-primary-500",
|
|
1189
|
+
[`textColor-${F}-primary-outlined`]: "$color-primary-100",
|
|
1190
|
+
[`textColor-${F}-primary-outlined--hover`]: "$color-primary-50",
|
|
1191
|
+
[`textColor-${F}-primary-outlined--active`]: "$color-primary-100",
|
|
1192
|
+
[`backgroundColor-${F}-primary-ghost--hover`]: "$color-primary-900",
|
|
1193
|
+
[`backgroundColor-${F}-primary-ghost--active`]: "$color-primary-950",
|
|
1194
|
+
[`borderColor-${F}-secondary`]: "$color-secondary-500",
|
|
1195
|
+
[`backgroundColor-${F}-secondary`]: "$color-secondary-500",
|
|
1196
|
+
[`backgroundColor-${F}-secondary--hover`]: "$color-secondary-400",
|
|
1197
|
+
[`backgroundColor-${F}-secondary--active`]: "$color-secondary-500",
|
|
1198
|
+
[`backgroundColor-${F}-secondary-outlined--hover`]: "$color-secondary-600",
|
|
1199
|
+
[`backgroundColor-${F}-secondary-outlined--active`]: "$color-secondary-500",
|
|
1200
|
+
[`backgroundColor-${F}-secondary-ghost--hover`]: "$color-secondary-900",
|
|
1201
|
+
[`backgroundColor-${F}-secondary-ghost--active`]: "$color-secondary-950",
|
|
1202
|
+
[`backgroundColor-${F}-attention--hover`]: "$color-danger-400",
|
|
1203
|
+
[`backgroundColor-${F}-attention--active`]: "$color-danger-500",
|
|
1204
|
+
[`backgroundColor-${F}-attention-outlined--hover`]: "$color-danger-900",
|
|
1205
|
+
[`backgroundColor-${F}-attention-outlined--active`]: "$color-danger-950",
|
|
1206
|
+
[`backgroundColor-${F}-attention-ghost--hover`]: "$color-danger-900",
|
|
1207
|
+
[`backgroundColor-${F}-attention-ghost--active`]: "$color-danger-950"
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
1210
|
}), Ms = `'{"backgroundColor-Stack--hover": "var(--xmlui-backgroundColor-Stack--hover)", "border-Stack--hover": "var(--xmlui-border-Stack--hover)"}'`, Fs = "_base_1qnyy_13", Us = "_hoverContainer_1qnyy_26", qs = "_handlesClick_1qnyy_39", Gs = "_vertical_1qnyy_43", Ys = "_reverse_1qnyy_47", Xs = "_horizontal_1qnyy_51", Qs = "_justifyItemsStart_1qnyy_59", Zs = "_justifyItemsCenter_1qnyy_63", js = "_justifyItemsStretch_1qnyy_67", Js = "_justifyItemsEnd_1qnyy_71", Ks = "_alignItemsStart_1qnyy_76", eu = "_alignItemsCenter_1qnyy_80", tu = "_alignItemsStretch_1qnyy_84", ru = "_alignItemsEnd_1qnyy_88", Vt = {
|
|
@@ -1243,7 +1243,7 @@ const ol = "vertical", _o = ve(function({
|
|
|
1243
1243
|
reverse: l,
|
|
1244
1244
|
hoverContainer: s,
|
|
1245
1245
|
visibleOnHover: v,
|
|
1246
|
-
onClick:
|
|
1246
|
+
onClick: h,
|
|
1247
1247
|
onMount: c,
|
|
1248
1248
|
...T
|
|
1249
1249
|
}, b) {
|
|
@@ -1257,7 +1257,7 @@ const ol = "vertical", _o = ve(function({
|
|
|
1257
1257
|
"div",
|
|
1258
1258
|
{
|
|
1259
1259
|
...T,
|
|
1260
|
-
onClick:
|
|
1260
|
+
onClick: h,
|
|
1261
1261
|
ref: b,
|
|
1262
1262
|
style: i,
|
|
1263
1263
|
className: le(
|
|
@@ -1268,7 +1268,7 @@ const ol = "vertical", _o = ve(function({
|
|
|
1268
1268
|
[Vt.reverse]: l,
|
|
1269
1269
|
[Vt.hoverContainer]: s,
|
|
1270
1270
|
"display-on-hover": v,
|
|
1271
|
-
[Vt.handlesClick]: !!
|
|
1271
|
+
[Vt.handlesClick]: !!h
|
|
1272
1272
|
},
|
|
1273
1273
|
f ?? "",
|
|
1274
1274
|
y ?? ""
|
|
@@ -1427,7 +1427,7 @@ const lo = ve(function({
|
|
|
1427
1427
|
ellipses: l = !0,
|
|
1428
1428
|
...s
|
|
1429
1429
|
}, v) {
|
|
1430
|
-
const
|
|
1430
|
+
const h = he(null), c = v ? sr(h, v) : h, T = ce(() => !r || !Ci[r] ? "div" : Ci[r], [r]);
|
|
1431
1431
|
return /* @__PURE__ */ m(Tt, { children: /* @__PURE__ */ m(
|
|
1432
1432
|
T,
|
|
1433
1433
|
{
|
|
@@ -1537,7 +1537,7 @@ const Ju = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)",
|
|
|
1537
1537
|
enabled: l = !0,
|
|
1538
1538
|
required: s = !1,
|
|
1539
1539
|
children: v,
|
|
1540
|
-
validationInProgress:
|
|
1540
|
+
validationInProgress: h = !1,
|
|
1541
1541
|
shrinkToLabel: c = !1,
|
|
1542
1542
|
onFocus: T,
|
|
1543
1543
|
onBlur: b,
|
|
@@ -1545,8 +1545,8 @@ const Ju = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)",
|
|
|
1545
1545
|
validationResult: y,
|
|
1546
1546
|
isInputTemplateUsed: w = !1
|
|
1547
1547
|
}, _) {
|
|
1548
|
-
const H = po(),
|
|
1549
|
-
return a === void 0 ? /* @__PURE__ */ m(Na, { style: o, id:
|
|
1548
|
+
const H = po(), $ = t || H;
|
|
1549
|
+
return a === void 0 ? /* @__PURE__ */ m(Na, { style: o, id: $, onFocus: T, onBlur: b, ref: _, children: v }) : /* @__PURE__ */ J("div", { style: o, ref: _, children: [
|
|
1550
1550
|
/* @__PURE__ */ J(
|
|
1551
1551
|
"div",
|
|
1552
1552
|
{
|
|
@@ -1563,8 +1563,8 @@ const Ju = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)",
|
|
|
1563
1563
|
a && /* @__PURE__ */ J(
|
|
1564
1564
|
"label",
|
|
1565
1565
|
{
|
|
1566
|
-
htmlFor:
|
|
1567
|
-
onClick: () => document.getElementById(
|
|
1566
|
+
htmlFor: $,
|
|
1567
|
+
onClick: () => document.getElementById($).focus(),
|
|
1568
1568
|
style: {
|
|
1569
1569
|
...f,
|
|
1570
1570
|
width: i && mc.test(i) ? `${i}px` : i,
|
|
@@ -1579,7 +1579,7 @@ const Ju = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)",
|
|
|
1579
1579
|
a,
|
|
1580
1580
|
" ",
|
|
1581
1581
|
s && /* @__PURE__ */ m("span", { className: It.requiredMark, children: "*" }),
|
|
1582
|
-
|
|
1582
|
+
h && /* @__PURE__ */ m(
|
|
1583
1583
|
il,
|
|
1584
1584
|
{
|
|
1585
1585
|
style: { height: "1em", width: "1em", marginLeft: "1em", alignSelf: "center" }
|
|
@@ -1588,7 +1588,7 @@ const Ju = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)",
|
|
|
1588
1588
|
]
|
|
1589
1589
|
}
|
|
1590
1590
|
),
|
|
1591
|
-
/* @__PURE__ */ m(Na, { id: w ? void 0 :
|
|
1591
|
+
/* @__PURE__ */ m(Na, { id: w ? void 0 : $, children: v })
|
|
1592
1592
|
]
|
|
1593
1593
|
}
|
|
1594
1594
|
),
|
|
@@ -1604,7 +1604,7 @@ const Ju = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)",
|
|
|
1604
1604
|
maxLength: l,
|
|
1605
1605
|
enabled: s = !0,
|
|
1606
1606
|
placeholder: v,
|
|
1607
|
-
validationStatus:
|
|
1607
|
+
validationStatus: h = "none",
|
|
1608
1608
|
onDidChange: c = de,
|
|
1609
1609
|
onFocus: T = de,
|
|
1610
1610
|
onBlur: b = de,
|
|
@@ -1613,22 +1613,22 @@ const Ju = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)",
|
|
|
1613
1613
|
startIcon: w,
|
|
1614
1614
|
endText: _,
|
|
1615
1615
|
endIcon: H,
|
|
1616
|
-
autoFocus:
|
|
1617
|
-
readOnly:
|
|
1618
|
-
tabIndex:
|
|
1619
|
-
label:
|
|
1616
|
+
autoFocus: $,
|
|
1617
|
+
readOnly: W,
|
|
1618
|
+
tabIndex: U,
|
|
1619
|
+
label: Z,
|
|
1620
1620
|
labelPosition: V,
|
|
1621
1621
|
labelWidth: R,
|
|
1622
1622
|
labelBreak: N,
|
|
1623
|
-
required:
|
|
1624
|
-
},
|
|
1623
|
+
required: O
|
|
1624
|
+
}, x) {
|
|
1625
1625
|
const p = he(null);
|
|
1626
1626
|
ee(() => {
|
|
1627
|
-
|
|
1627
|
+
$ && setTimeout(() => {
|
|
1628
1628
|
var M;
|
|
1629
1629
|
(M = p.current) == null || M.focus();
|
|
1630
1630
|
}, 0);
|
|
1631
|
-
}, [
|
|
1631
|
+
}, [$]);
|
|
1632
1632
|
const [g, C] = Ne.useState(o);
|
|
1633
1633
|
ee(() => {
|
|
1634
1634
|
C(o);
|
|
@@ -1664,24 +1664,24 @@ const Ju = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)",
|
|
|
1664
1664
|
yt,
|
|
1665
1665
|
{
|
|
1666
1666
|
labelPosition: V,
|
|
1667
|
-
label:
|
|
1667
|
+
label: Z,
|
|
1668
1668
|
labelWidth: R,
|
|
1669
1669
|
labelBreak: N,
|
|
1670
|
-
required:
|
|
1670
|
+
required: O,
|
|
1671
1671
|
enabled: s,
|
|
1672
1672
|
onFocus: T,
|
|
1673
1673
|
onBlur: b,
|
|
1674
1674
|
style: i,
|
|
1675
|
-
ref:
|
|
1675
|
+
ref: x,
|
|
1676
1676
|
children: /* @__PURE__ */ J(
|
|
1677
1677
|
"div",
|
|
1678
1678
|
{
|
|
1679
1679
|
className: le(zt.inputRoot, {
|
|
1680
1680
|
[zt.disabled]: !s,
|
|
1681
|
-
[zt.readOnly]:
|
|
1682
|
-
[zt.error]:
|
|
1683
|
-
[zt.warning]:
|
|
1684
|
-
[zt.valid]:
|
|
1681
|
+
[zt.readOnly]: W,
|
|
1682
|
+
[zt.error]: h === "error",
|
|
1683
|
+
[zt.warning]: h === "warning",
|
|
1684
|
+
[zt.valid]: h === "valid"
|
|
1685
1685
|
}),
|
|
1686
1686
|
tabIndex: -1,
|
|
1687
1687
|
onFocus: B,
|
|
@@ -1692,7 +1692,7 @@ const Ju = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)",
|
|
|
1692
1692
|
{
|
|
1693
1693
|
id: t,
|
|
1694
1694
|
type: r,
|
|
1695
|
-
className: le(zt.input, { [zt.readOnly]:
|
|
1695
|
+
className: le(zt.input, { [zt.readOnly]: W }),
|
|
1696
1696
|
disabled: !s,
|
|
1697
1697
|
value: g,
|
|
1698
1698
|
maxLength: l,
|
|
@@ -1701,10 +1701,10 @@ const Ju = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)",
|
|
|
1701
1701
|
onFocus: z,
|
|
1702
1702
|
onBlur: A,
|
|
1703
1703
|
ref: p,
|
|
1704
|
-
readOnly:
|
|
1705
|
-
autoFocus:
|
|
1706
|
-
tabIndex: s ?
|
|
1707
|
-
required:
|
|
1704
|
+
readOnly: W,
|
|
1705
|
+
autoFocus: $,
|
|
1706
|
+
tabIndex: s ? U : -1,
|
|
1707
|
+
required: O
|
|
1708
1708
|
}
|
|
1709
1709
|
),
|
|
1710
1710
|
/* @__PURE__ */ m(so, { text: _, iconName: H, className: zt.adornment })
|
|
@@ -2154,13 +2154,13 @@ const Ht = "Badge", Gc = k({
|
|
|
2154
2154
|
disabled: om,
|
|
2155
2155
|
iconWrapper: am
|
|
2156
2156
|
}, im = ve(function(t, r) {
|
|
2157
|
-
const { to: o, children: a, icon: n, active: i, onClick: l, target: s, disabled: v, style:
|
|
2157
|
+
const { to: o, children: a, icon: n, active: i, onClick: l, target: s, disabled: v, style: h, ...c } = nm(t), T = !!n && !a, b = ce(() => Hc(o), [o]);
|
|
2158
2158
|
return /* @__PURE__ */ J(
|
|
2159
2159
|
o ? ld : "div",
|
|
2160
2160
|
{
|
|
2161
2161
|
ref: r,
|
|
2162
2162
|
to: b,
|
|
2163
|
-
style:
|
|
2163
|
+
style: h,
|
|
2164
2164
|
target: s,
|
|
2165
2165
|
onClick: l,
|
|
2166
2166
|
className: le(to.container, {
|
|
@@ -2210,40 +2210,40 @@ const lm = `'{"Heading:textColor-H1": "var(--xmlui-textColor-H1)", "Heading:lett
|
|
|
2210
2210
|
maxLines: l = 0,
|
|
2211
2211
|
preserveLinebreaks: s,
|
|
2212
2212
|
ellipses: v = !0,
|
|
2213
|
-
className:
|
|
2213
|
+
className: h,
|
|
2214
2214
|
omitFromToc: c = !1,
|
|
2215
2215
|
...T
|
|
2216
2216
|
}, b) {
|
|
2217
|
-
const f = r == null ? void 0 : r.toLowerCase(), y = he(null), [w, _] = me(null), H = he(null),
|
|
2217
|
+
const f = r == null ? void 0 : r.toLowerCase(), y = he(null), [w, _] = me(null), H = he(null), $ = Lt(Yc), W = $ == null ? void 0 : $.registerHeading, U = b ? sr(y, b) : y;
|
|
2218
2218
|
return ee(() => {
|
|
2219
|
-
var V, R, N
|
|
2220
|
-
if (
|
|
2221
|
-
const
|
|
2222
|
-
_(
|
|
2223
|
-
}
|
|
2224
|
-
}, [
|
|
2225
|
-
if (
|
|
2226
|
-
return
|
|
2219
|
+
var Z, V, R, N;
|
|
2220
|
+
if (y.current) {
|
|
2221
|
+
const O = (N = (R = (V = (Z = y.current.textContent) == null ? void 0 : Z.trim()) == null ? void 0 : V.replace(/[^\w\s-]/g, "")) == null ? void 0 : R.replace(/\s+/g, "-")) == null ? void 0 : N.toLowerCase();
|
|
2222
|
+
_(O || null);
|
|
2223
|
+
}
|
|
2224
|
+
}, []), Lo(() => {
|
|
2225
|
+
if (y.current && w && !c)
|
|
2226
|
+
return console.log("HERE", { anchorId: w, registerHeading: W, level: r, omitFromToc: c }), W == null ? void 0 : W({
|
|
2227
2227
|
id: w,
|
|
2228
2228
|
level: parseInt(r.replace("h", "")),
|
|
2229
2229
|
text: y.current.textContent.trim(),
|
|
2230
2230
|
anchor: H.current
|
|
2231
2231
|
});
|
|
2232
|
-
}, [w,
|
|
2232
|
+
}, [w, W, r, c]), /* @__PURE__ */ J(
|
|
2233
2233
|
f,
|
|
2234
2234
|
{
|
|
2235
|
-
ref:
|
|
2235
|
+
ref: U,
|
|
2236
2236
|
id: t,
|
|
2237
2237
|
title: i,
|
|
2238
2238
|
style: { ...a, ...n, ...al(l) },
|
|
2239
|
-
className: le($t.heading, $t[f],
|
|
2239
|
+
className: le($t.heading, $t[f], h || "", {
|
|
2240
2240
|
[$t.truncateOverflow]: l > 0,
|
|
2241
2241
|
[$t.preserveLinebreaks]: s,
|
|
2242
2242
|
[$t.noEllipsis]: !v
|
|
2243
2243
|
}),
|
|
2244
2244
|
...T,
|
|
2245
2245
|
children: [
|
|
2246
|
-
w &&
|
|
2246
|
+
w && /* @__PURE__ */ m("span", { ref: H, id: w, style: { width: 0, height: 0 }, "data-anchor": !0 }),
|
|
2247
2247
|
o
|
|
2248
2248
|
]
|
|
2249
2249
|
}
|
|
@@ -2262,14 +2262,14 @@ ve(function({
|
|
|
2262
2262
|
avatarUrl: l,
|
|
2263
2263
|
showAvatar: s = !!l || Ko.showAvatar,
|
|
2264
2264
|
onClick: v
|
|
2265
|
-
},
|
|
2265
|
+
}, h) {
|
|
2266
2266
|
const c = {
|
|
2267
2267
|
level: "h2"
|
|
2268
2268
|
};
|
|
2269
2269
|
return /* @__PURE__ */ J(
|
|
2270
2270
|
"div",
|
|
2271
2271
|
{
|
|
2272
|
-
ref:
|
|
2272
|
+
ref: h,
|
|
2273
2273
|
className: le(So.wrapper, {
|
|
2274
2274
|
[So.isClickable]: !!v,
|
|
2275
2275
|
[So.vertical]: r === "vertical",
|
|
@@ -2381,7 +2381,7 @@ const ht = "Card", fm = k({
|
|
|
2381
2381
|
validationStatus: l = Et.validationStatus,
|
|
2382
2382
|
updateState: s = de,
|
|
2383
2383
|
onDidChange: v = de,
|
|
2384
|
-
onFocus:
|
|
2384
|
+
onFocus: h = de,
|
|
2385
2385
|
onBlur: c = de,
|
|
2386
2386
|
variant: T = "checkbox",
|
|
2387
2387
|
indeterminate: b = Et.indeterminate,
|
|
@@ -2390,28 +2390,28 @@ const ht = "Card", fm = k({
|
|
|
2390
2390
|
labelPosition: w = "end",
|
|
2391
2391
|
labelWidth: _,
|
|
2392
2392
|
labelBreak: H,
|
|
2393
|
-
required:
|
|
2394
|
-
registerComponentApi:
|
|
2395
|
-
inputRenderer:
|
|
2396
|
-
},
|
|
2393
|
+
required: $,
|
|
2394
|
+
registerComponentApi: W,
|
|
2395
|
+
inputRenderer: U
|
|
2396
|
+
}, Z) {
|
|
2397
2397
|
const V = po(), R = t || V, N = Ne.useRef(null);
|
|
2398
2398
|
ee(() => {
|
|
2399
2399
|
s({ value: r }, { initial: !0 });
|
|
2400
2400
|
}, [r, s]);
|
|
2401
|
-
const
|
|
2401
|
+
const O = X(
|
|
2402
2402
|
(z) => {
|
|
2403
2403
|
var A;
|
|
2404
2404
|
((A = N.current) == null ? void 0 : A.checked) !== z && (s({ value: z }), v(z));
|
|
2405
2405
|
},
|
|
2406
2406
|
[v, s]
|
|
2407
|
-
),
|
|
2407
|
+
), x = X(
|
|
2408
2408
|
(z) => {
|
|
2409
2409
|
i || (s({ value: z.target.checked }), v(z.target.checked));
|
|
2410
2410
|
},
|
|
2411
2411
|
[v, i, s]
|
|
2412
2412
|
), p = X(() => {
|
|
2413
|
-
|
|
2414
|
-
}, [
|
|
2413
|
+
h == null || h();
|
|
2414
|
+
}, [h]), g = X(() => {
|
|
2415
2415
|
c == null || c();
|
|
2416
2416
|
}, [c]);
|
|
2417
2417
|
ee(() => {
|
|
@@ -2421,14 +2421,14 @@ const ht = "Card", fm = k({
|
|
|
2421
2421
|
var z;
|
|
2422
2422
|
(z = N.current) == null || z.focus();
|
|
2423
2423
|
}, []), L = Le((z) => {
|
|
2424
|
-
|
|
2424
|
+
O(z);
|
|
2425
2425
|
});
|
|
2426
2426
|
ee(() => {
|
|
2427
|
-
|
|
2427
|
+
W == null || W({
|
|
2428
2428
|
focus: C,
|
|
2429
2429
|
setValue: L
|
|
2430
2430
|
});
|
|
2431
|
-
}, [C,
|
|
2431
|
+
}, [C, W, L]);
|
|
2432
2432
|
const q = ce(
|
|
2433
2433
|
() => /* @__PURE__ */ m(
|
|
2434
2434
|
"input",
|
|
@@ -2439,11 +2439,11 @@ const ht = "Card", fm = k({
|
|
|
2439
2439
|
role: T,
|
|
2440
2440
|
checked: o,
|
|
2441
2441
|
disabled: !a,
|
|
2442
|
-
required:
|
|
2442
|
+
required: $,
|
|
2443
2443
|
readOnly: i,
|
|
2444
2444
|
"aria-readonly": i,
|
|
2445
2445
|
"aria-checked": o,
|
|
2446
|
-
onChange:
|
|
2446
|
+
onChange: x,
|
|
2447
2447
|
onFocus: p,
|
|
2448
2448
|
onBlur: g,
|
|
2449
2449
|
className: le(qt.resetAppearance, f, {
|
|
@@ -2461,9 +2461,9 @@ const ht = "Card", fm = k({
|
|
|
2461
2461
|
a,
|
|
2462
2462
|
g,
|
|
2463
2463
|
p,
|
|
2464
|
-
|
|
2464
|
+
x,
|
|
2465
2465
|
i,
|
|
2466
|
-
|
|
2466
|
+
$,
|
|
2467
2467
|
l,
|
|
2468
2468
|
o,
|
|
2469
2469
|
T
|
|
@@ -2472,21 +2472,21 @@ const ht = "Card", fm = k({
|
|
|
2472
2472
|
return /* @__PURE__ */ m(
|
|
2473
2473
|
yt,
|
|
2474
2474
|
{
|
|
2475
|
-
ref:
|
|
2475
|
+
ref: Z,
|
|
2476
2476
|
id: R,
|
|
2477
2477
|
label: y,
|
|
2478
2478
|
style: n,
|
|
2479
2479
|
labelPosition: w,
|
|
2480
2480
|
labelWidth: _,
|
|
2481
2481
|
labelBreak: H,
|
|
2482
|
-
required:
|
|
2482
|
+
required: $,
|
|
2483
2483
|
enabled: a,
|
|
2484
|
-
isInputTemplateUsed: !!
|
|
2484
|
+
isInputTemplateUsed: !!U,
|
|
2485
2485
|
shrinkToLabel: !0,
|
|
2486
2486
|
labelStyle: { pointerEvents: i ? "none" : void 0 },
|
|
2487
|
-
children:
|
|
2487
|
+
children: U ? /* @__PURE__ */ J("label", { className: qt.label, children: [
|
|
2488
2488
|
/* @__PURE__ */ m("div", { className: qt.inputContainer, children: q }),
|
|
2489
|
-
|
|
2489
|
+
U({
|
|
2490
2490
|
$checked: o
|
|
2491
2491
|
})
|
|
2492
2492
|
] }) : q
|
|
@@ -2652,7 +2652,7 @@ const ea = [
|
|
|
2652
2652
|
updateState: l = de,
|
|
2653
2653
|
validationStatus: s = et.validationStatus,
|
|
2654
2654
|
onDidChange: v = de,
|
|
2655
|
-
onFocus:
|
|
2655
|
+
onFocus: h = de,
|
|
2656
2656
|
onBlur: c = de,
|
|
2657
2657
|
dateFormat: T = et.dateFormat,
|
|
2658
2658
|
showWeekNumber: b = et.showWeekNumber,
|
|
@@ -2661,14 +2661,14 @@ const ea = [
|
|
|
2661
2661
|
toDate: w,
|
|
2662
2662
|
disabledDates: _ = et.disabledDates,
|
|
2663
2663
|
style: H,
|
|
2664
|
-
registerComponentApi:
|
|
2665
|
-
inline:
|
|
2666
|
-
startText:
|
|
2667
|
-
startIcon:
|
|
2664
|
+
registerComponentApi: $,
|
|
2665
|
+
inline: W = et.inline,
|
|
2666
|
+
startText: U,
|
|
2667
|
+
startIcon: Z,
|
|
2668
2668
|
endText: V,
|
|
2669
2669
|
endIcon: R
|
|
2670
2670
|
}, N) {
|
|
2671
|
-
const
|
|
2671
|
+
const O = f >= 0 && f <= 6 ? f : 0, [x, p] = me(!1), [g, C] = me(!1), L = he(null), q = N ? sr(L, N) : L, z = ce(() => {
|
|
2672
2672
|
if (a === "single" && typeof o == "string")
|
|
2673
2673
|
return ca(o) || Eo(o);
|
|
2674
2674
|
if (a === "range" && typeof o == "object")
|
|
@@ -2683,7 +2683,7 @@ const ea = [
|
|
|
2683
2683
|
`Invalid dateFormat: ${T}. Supported formats are: ${ea.join(", ")}`
|
|
2684
2684
|
);
|
|
2685
2685
|
}, [T]);
|
|
2686
|
-
const A = ce(() => y ? Yo(y, T, /* @__PURE__ */ new Date()) : void 0, [y, T]), B = ce(() => w ? Yo(w, T, /* @__PURE__ */ new Date()) : void 0, [w, T]), P = ce(() => _ == null ? void 0 : _.map((oe) => Yo(oe, T, /* @__PURE__ */ new Date())), [_, T]), [M, E] = me(!1), { root: G } = tr(),
|
|
2686
|
+
const A = ce(() => y ? Yo(y, T, /* @__PURE__ */ new Date()) : void 0, [y, T]), B = ce(() => w ? Yo(w, T, /* @__PURE__ */ new Date()) : void 0, [w, T]), P = ce(() => _ == null ? void 0 : _.map((oe) => Yo(oe, T, /* @__PURE__ */ new Date())), [_, T]), [M, E] = me(!1), { root: G } = tr(), j = () => {
|
|
2687
2687
|
p(!0);
|
|
2688
2688
|
}, K = () => {
|
|
2689
2689
|
p(!1);
|
|
@@ -2699,13 +2699,13 @@ const ea = [
|
|
|
2699
2699
|
ie(Y);
|
|
2700
2700
|
});
|
|
2701
2701
|
ee(() => {
|
|
2702
|
-
|
|
2702
|
+
$ == null || $({
|
|
2703
2703
|
focus: Me,
|
|
2704
2704
|
setValue: Re
|
|
2705
2705
|
});
|
|
2706
|
-
}, [Me,
|
|
2707
|
-
!
|
|
2708
|
-
}, [
|
|
2706
|
+
}, [Me, $, Re]), ee(() => {
|
|
2707
|
+
!x && !g && (c == null || c()), (x || g) && (h == null || h());
|
|
2708
|
+
}, [x, g, h, c]), ee(() => {
|
|
2709
2709
|
l({ value: r }, { initial: !0 });
|
|
2710
2710
|
}, [r, l]);
|
|
2711
2711
|
const ie = X(
|
|
@@ -2726,21 +2726,21 @@ const ea = [
|
|
|
2726
2726
|
},
|
|
2727
2727
|
[v, l, a, T]
|
|
2728
2728
|
);
|
|
2729
|
-
return
|
|
2729
|
+
return W ? /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m("div", { className: it.inlinePickerMenu, children: /* @__PURE__ */ m(
|
|
2730
2730
|
gi,
|
|
2731
2731
|
{
|
|
2732
2732
|
fixedWeeks: !0,
|
|
2733
2733
|
fromDate: A,
|
|
2734
2734
|
toDate: B,
|
|
2735
2735
|
disabled: P,
|
|
2736
|
-
weekStartsOn:
|
|
2736
|
+
weekStartsOn: O,
|
|
2737
2737
|
showWeekNumber: b,
|
|
2738
2738
|
showOutsideDays: !0,
|
|
2739
2739
|
classNames: it,
|
|
2740
2740
|
mode: a === "single" ? "single" : "range",
|
|
2741
2741
|
selected: z,
|
|
2742
2742
|
onSelect: ie,
|
|
2743
|
-
initialFocus: !
|
|
2743
|
+
initialFocus: !W,
|
|
2744
2744
|
numberOfMonths: a === "range" ? 2 : 1
|
|
2745
2745
|
}
|
|
2746
2746
|
) }) }) : /* @__PURE__ */ J(lr.Root, { open: M, onOpenChange: E, modal: !1, children: [
|
|
@@ -2757,10 +2757,10 @@ const ea = [
|
|
|
2757
2757
|
[it.warning]: s === "warning",
|
|
2758
2758
|
[it.valid]: s === "valid"
|
|
2759
2759
|
}),
|
|
2760
|
-
onFocus:
|
|
2760
|
+
onFocus: j,
|
|
2761
2761
|
onBlur: K,
|
|
2762
2762
|
children: [
|
|
2763
|
-
/* @__PURE__ */ m(so, { text:
|
|
2763
|
+
/* @__PURE__ */ m(so, { text: U, iconName: Z, className: it.adornment }),
|
|
2764
2764
|
/* @__PURE__ */ m("div", { className: it.datePickerValue, children: a === "single" && z ? /* @__PURE__ */ m(Tt, { children: Hr(z, T) }) : a === "range" && typeof z == "object" && z.from ? z.to ? /* @__PURE__ */ J(Tt, { children: [
|
|
2765
2765
|
Hr(z.from, T),
|
|
2766
2766
|
" - ",
|
|
@@ -2785,7 +2785,7 @@ const ea = [
|
|
|
2785
2785
|
fromDate: A,
|
|
2786
2786
|
toDate: B,
|
|
2787
2787
|
disabled: P,
|
|
2788
|
-
weekStartsOn:
|
|
2788
|
+
weekStartsOn: O,
|
|
2789
2789
|
showWeekNumber: b,
|
|
2790
2790
|
showOutsideDays: !0,
|
|
2791
2791
|
classNames: it,
|
|
@@ -2947,7 +2947,7 @@ ve(function({
|
|
|
2947
2947
|
alignment: l = Qt.alignment,
|
|
2948
2948
|
disabled: s = !1,
|
|
2949
2949
|
triggerButtonVariant: v = Qt.triggerButtonVariant,
|
|
2950
|
-
triggerButtonThemeColor:
|
|
2950
|
+
triggerButtonThemeColor: h = Qt.triggerButtonThemeColor,
|
|
2951
2951
|
triggerButtonIcon: c = Qt.triggerButtonIcon,
|
|
2952
2952
|
triggerButtonIconPosition: T = Qt.triggerButtonIconPosition
|
|
2953
2953
|
}, b) {
|
|
@@ -2971,7 +2971,7 @@ ve(function({
|
|
|
2971
2971
|
iconPosition: T,
|
|
2972
2972
|
type: "button",
|
|
2973
2973
|
variant: v,
|
|
2974
|
-
themeColor:
|
|
2974
|
+
themeColor: h,
|
|
2975
2975
|
disabled: s,
|
|
2976
2976
|
children: o
|
|
2977
2977
|
}
|
|
@@ -3010,8 +3010,8 @@ ve(function({
|
|
|
3010
3010
|
className: le(Wr.DropdownMenuItem, {
|
|
3011
3011
|
[Wr.active]: l
|
|
3012
3012
|
}),
|
|
3013
|
-
onClick: (
|
|
3014
|
-
|
|
3013
|
+
onClick: (h) => {
|
|
3014
|
+
h.stopPropagation(), r(h);
|
|
3015
3015
|
},
|
|
3016
3016
|
ref: s,
|
|
3017
3017
|
children: [
|
|
@@ -3162,7 +3162,7 @@ const Yt = "DropdownMenu", zp = k({
|
|
|
3162
3162
|
buttonIconPosition: l,
|
|
3163
3163
|
variant: s,
|
|
3164
3164
|
buttonThemeColor: v,
|
|
3165
|
-
buttonSize:
|
|
3165
|
+
buttonSize: h,
|
|
3166
3166
|
autoFocus: c,
|
|
3167
3167
|
validationStatus: T,
|
|
3168
3168
|
updateState: b = de,
|
|
@@ -3171,21 +3171,21 @@ const Yt = "DropdownMenu", zp = k({
|
|
|
3171
3171
|
onBlur: w = de,
|
|
3172
3172
|
registerComponentApi: _,
|
|
3173
3173
|
value: H,
|
|
3174
|
-
initialValue:
|
|
3175
|
-
acceptsFileType:
|
|
3176
|
-
multiple:
|
|
3177
|
-
directory:
|
|
3174
|
+
initialValue: $,
|
|
3175
|
+
acceptsFileType: W,
|
|
3176
|
+
multiple: U = !1,
|
|
3177
|
+
directory: Z = !1,
|
|
3178
3178
|
label: V,
|
|
3179
3179
|
labelPosition: R,
|
|
3180
3180
|
labelWidth: N,
|
|
3181
|
-
labelBreak:
|
|
3182
|
-
required:
|
|
3181
|
+
labelBreak: O,
|
|
3182
|
+
required: x
|
|
3183
3183
|
}) => {
|
|
3184
|
-
const p = $i(
|
|
3184
|
+
const p = $i($) ? $ : void 0, g = $i(H) ? H : void 0, C = he(null), L = typeof W == "string" ? W : W == null ? void 0 : W.join(",");
|
|
3185
3185
|
ee(() => {
|
|
3186
3186
|
c && setTimeout(() => {
|
|
3187
|
-
var
|
|
3188
|
-
(
|
|
3187
|
+
var j;
|
|
3188
|
+
(j = C.current) == null || j.focus();
|
|
3189
3189
|
}, 0);
|
|
3190
3190
|
}, [c]), ee(() => {
|
|
3191
3191
|
b({ value: p }, { initial: !0 });
|
|
@@ -3193,21 +3193,21 @@ const Yt = "DropdownMenu", zp = k({
|
|
|
3193
3193
|
const q = X(() => {
|
|
3194
3194
|
w == null || w();
|
|
3195
3195
|
}, [w]), z = X(() => {
|
|
3196
|
-
var
|
|
3197
|
-
(
|
|
3196
|
+
var j;
|
|
3197
|
+
(j = C.current) == null || j.focus();
|
|
3198
3198
|
}, []), A = X(
|
|
3199
|
-
(
|
|
3200
|
-
|
|
3199
|
+
(j) => {
|
|
3200
|
+
j.length && (b({ value: j }), f(j));
|
|
3201
3201
|
},
|
|
3202
3202
|
[b, f]
|
|
3203
3203
|
), { getRootProps: B, getInputProps: P, open: M } = Zp({
|
|
3204
3204
|
disabled: !t,
|
|
3205
|
-
multiple:
|
|
3205
|
+
multiple: U || Z,
|
|
3206
3206
|
onDrop: A,
|
|
3207
3207
|
noClick: !0,
|
|
3208
3208
|
noKeyboard: !0,
|
|
3209
3209
|
noDragEventsBubbling: !0,
|
|
3210
|
-
useFsAccessApi:
|
|
3210
|
+
useFsAccessApi: Z === !1
|
|
3211
3211
|
}), E = X(() => {
|
|
3212
3212
|
y == null || y();
|
|
3213
3213
|
}, [y]), G = Le(() => {
|
|
@@ -3224,8 +3224,8 @@ const Yt = "DropdownMenu", zp = k({
|
|
|
3224
3224
|
labelPosition: R,
|
|
3225
3225
|
label: V,
|
|
3226
3226
|
labelWidth: N,
|
|
3227
|
-
labelBreak:
|
|
3228
|
-
required:
|
|
3227
|
+
labelBreak: O,
|
|
3228
|
+
required: x,
|
|
3229
3229
|
enabled: t,
|
|
3230
3230
|
onFocus: y,
|
|
3231
3231
|
onBlur: w,
|
|
@@ -3256,7 +3256,7 @@ const Yt = "DropdownMenu", zp = k({
|
|
|
3256
3256
|
"input",
|
|
3257
3257
|
{
|
|
3258
3258
|
...P({
|
|
3259
|
-
webkitdirectory:
|
|
3259
|
+
webkitdirectory: Z ? "true" : void 0
|
|
3260
3260
|
}),
|
|
3261
3261
|
accept: L
|
|
3262
3262
|
}
|
|
@@ -3266,7 +3266,7 @@ const Yt = "DropdownMenu", zp = k({
|
|
|
3266
3266
|
{
|
|
3267
3267
|
placeholder: o,
|
|
3268
3268
|
enabled: t,
|
|
3269
|
-
value: (g == null ? void 0 : g.map((
|
|
3269
|
+
value: (g == null ? void 0 : g.map((j) => j.name).join(", ")) || "",
|
|
3270
3270
|
validationStatus: T,
|
|
3271
3271
|
readOnly: !0,
|
|
3272
3272
|
tabIndex: -1
|
|
@@ -3286,7 +3286,7 @@ const Yt = "DropdownMenu", zp = k({
|
|
|
3286
3286
|
iconPosition: l,
|
|
3287
3287
|
variant: s,
|
|
3288
3288
|
themeColor: v,
|
|
3289
|
-
size:
|
|
3289
|
+
size: h,
|
|
3290
3290
|
className: ro.button,
|
|
3291
3291
|
autoFocus: c,
|
|
3292
3292
|
children: n
|
|
@@ -3440,29 +3440,29 @@ function xh(e = Or, t) {
|
|
|
3440
3440
|
s && (r.cssProps.marginTop = s, r.cssProps.marginBottom = s), f("marginTop"), f("marginBottom"), f("border");
|
|
3441
3441
|
const v = b("borderHorizontal");
|
|
3442
3442
|
v && (r.cssProps.borderLeft = v, r.cssProps.borderRight = v), f("borderRight"), f("borderLeft");
|
|
3443
|
-
const
|
|
3444
|
-
|
|
3443
|
+
const h = b("borderVertical");
|
|
3444
|
+
h && (r.cssProps.borderTop = h, r.cssProps.borderBottom = h), f("borderTop"), f("borderBottom"), f("borderColor"), f("borderStyle"), f("borderWidth"), f("borderRadius"), f("radiusTopLeft", "borderTopLeftRadius"), f("radiusTopRight", "borderTopRightRadius"), f("radiusBottomLeft", "borderBottomLeftRadius"), f("radiusBottomRight", "borderBottomRightRadius"), f("color"), f("fontFamily"), f("fontSize"), f("fontWeight"), f("fontStyle"), f("textDecoration"), f("textDecorationLine"), f("textDecorationColor"), f("textDecorationStyle"), f("textDecorationThickness"), f("textUnderlineOffset"), f("userSelect"), f("letterSpacing"), f("textTransform"), f("lineHeight"), f("textAlign"), f("textAlignLast"), f("textWrap"), f("backgroundColor"), f("background"), f("boxShadow"), f("direction"), f("overflowX"), f("overflowY"), f("zIndex"), f("opacity"), f("zoom"), f("cursor"), f("whiteSpace"), f("outline"), f("outlineWidth"), f("outlineColor"), f("outlineStyle"), f("outlineOffset");
|
|
3445
3445
|
const c = b("wrapContent");
|
|
3446
3446
|
c && (r.cssProps.flexWrap = c === "true" ? "wrap" : "nowrap"), f("canShrink", "flexShrink");
|
|
3447
3447
|
const T = b("canShrink");
|
|
3448
3448
|
if (T && (r.cssProps.flexShrink = T === "true" ? 1 : 0), $a(r.cssProps) && $a(r.issues))
|
|
3449
3449
|
return hh;
|
|
3450
3450
|
return r;
|
|
3451
|
-
function b(
|
|
3452
|
-
var
|
|
3453
|
-
const
|
|
3454
|
-
if (((
|
|
3455
|
-
const R = (V = t.mediaSize) == null ? void 0 : V.sizeIndex, N =
|
|
3451
|
+
function b($) {
|
|
3452
|
+
var Z, V;
|
|
3453
|
+
const W = U();
|
|
3454
|
+
if (((Z = t == null ? void 0 : t.mediaSize) == null ? void 0 : Z.sizeIndex) !== void 0) {
|
|
3455
|
+
const R = (V = t.mediaSize) == null ? void 0 : V.sizeIndex, N = U("xs"), O = U("sm"), x = U("md"), p = U("lg"), g = U("xl"), C = U("xxl");
|
|
3456
3456
|
let L;
|
|
3457
3457
|
switch (R) {
|
|
3458
3458
|
case 0:
|
|
3459
|
-
L = N ??
|
|
3459
|
+
L = N ?? O ?? x;
|
|
3460
3460
|
break;
|
|
3461
3461
|
case 1:
|
|
3462
|
-
L =
|
|
3462
|
+
L = O ?? x;
|
|
3463
3463
|
break;
|
|
3464
3464
|
case 2:
|
|
3465
|
-
L =
|
|
3465
|
+
L = x;
|
|
3466
3466
|
break;
|
|
3467
3467
|
case 3:
|
|
3468
3468
|
L = p;
|
|
@@ -3474,51 +3474,51 @@ function xh(e = Or, t) {
|
|
|
3474
3474
|
L = C ?? g ?? p;
|
|
3475
3475
|
break;
|
|
3476
3476
|
}
|
|
3477
|
-
return L ??
|
|
3477
|
+
return L ?? W;
|
|
3478
3478
|
}
|
|
3479
|
-
return
|
|
3480
|
-
function
|
|
3481
|
-
const N = R ? `${
|
|
3482
|
-
let
|
|
3483
|
-
if (
|
|
3479
|
+
return W;
|
|
3480
|
+
function U(R = "") {
|
|
3481
|
+
const N = R ? `${$}-${R}` : $;
|
|
3482
|
+
let O = e[N];
|
|
3483
|
+
if (O == null)
|
|
3484
3484
|
return;
|
|
3485
|
-
typeof
|
|
3486
|
-
const
|
|
3485
|
+
typeof O == "string" ? O = O.trim() : O = O.toString();
|
|
3486
|
+
const x = O ? O.replace(
|
|
3487
3487
|
mh,
|
|
3488
3488
|
(g) => bh(g.trim())
|
|
3489
3489
|
) : void 0;
|
|
3490
|
-
if (
|
|
3491
|
-
return
|
|
3492
|
-
const p = vh[
|
|
3490
|
+
if (O !== x)
|
|
3491
|
+
return x;
|
|
3492
|
+
const p = vh[$];
|
|
3493
3493
|
if (!p || p.length === 0)
|
|
3494
|
-
return
|
|
3494
|
+
return x;
|
|
3495
3495
|
for (const g of p)
|
|
3496
|
-
if (g.test(
|
|
3497
|
-
return
|
|
3498
|
-
return r.issues.add(N),
|
|
3496
|
+
if (g.test(x))
|
|
3497
|
+
return x;
|
|
3498
|
+
return r.issues.add(N), x;
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
|
-
function f(
|
|
3502
|
-
const
|
|
3503
|
-
|
|
3501
|
+
function f($, W = "") {
|
|
3502
|
+
const U = b($);
|
|
3503
|
+
U && (r.cssProps[W || $] = U);
|
|
3504
3504
|
}
|
|
3505
|
-
function y(
|
|
3506
|
-
return
|
|
3505
|
+
function y($, W) {
|
|
3506
|
+
return $ && H(W) === "horizontal" && ma.test($.toString()) ? _($.toString()) : null;
|
|
3507
3507
|
}
|
|
3508
|
-
function w(
|
|
3509
|
-
return
|
|
3508
|
+
function w($, W) {
|
|
3509
|
+
return $ && H(W) === "vertical" && ma.test($.toString()) ? _($.toString()) : null;
|
|
3510
3510
|
}
|
|
3511
|
-
function _(
|
|
3512
|
-
if (ma.test(
|
|
3513
|
-
const
|
|
3514
|
-
return
|
|
3511
|
+
function _($) {
|
|
3512
|
+
if (ma.test($)) {
|
|
3513
|
+
const W = $.slice(0, -1);
|
|
3514
|
+
return W === "" ? 1 : parseInt(W, 10);
|
|
3515
3515
|
}
|
|
3516
3516
|
return null;
|
|
3517
3517
|
}
|
|
3518
|
-
function H(
|
|
3519
|
-
if (
|
|
3520
|
-
let
|
|
3521
|
-
return
|
|
3518
|
+
function H($) {
|
|
3519
|
+
if (!$) return;
|
|
3520
|
+
let W = ($ == null ? void 0 : $.type) === "Stack" && ($ == null ? void 0 : $.orientation);
|
|
3521
|
+
return W == null ? void 0 : W.toString();
|
|
3522
3522
|
}
|
|
3523
3523
|
}
|
|
3524
3524
|
function bh(e) {
|
|
@@ -3622,41 +3622,41 @@ ve(function({ children: t, forceBreak: r, ...o }, a) {
|
|
|
3622
3622
|
Lo(() => (l((R) => R + 1), () => {
|
|
3623
3623
|
l((R) => R - 1);
|
|
3624
3624
|
}), [l]);
|
|
3625
|
-
const { activeTheme: s, root: v } = tr(),
|
|
3626
|
-
width: b =
|
|
3625
|
+
const { activeTheme: s, root: v } = tr(), h = o.width || "100%", c = o.minWidth || void 0, T = o.maxWidth || void 0, {
|
|
3626
|
+
width: b = h,
|
|
3627
3627
|
minWidth: f,
|
|
3628
3628
|
maxWidth: y,
|
|
3629
3629
|
flex: w
|
|
3630
3630
|
} = ce(() => (
|
|
3631
3631
|
// --- New layout resolution
|
|
3632
3632
|
xh(
|
|
3633
|
-
{ width:
|
|
3633
|
+
{ width: h, maxWidth: T, minWidth: c },
|
|
3634
3634
|
{
|
|
3635
3635
|
type: "Stack",
|
|
3636
3636
|
orientation: "horizontal"
|
|
3637
3637
|
}
|
|
3638
3638
|
).cssProps || {}
|
|
3639
|
-
), [T, c,
|
|
3639
|
+
), [T, c, h, s.themeVars]), _ = ce(() => {
|
|
3640
3640
|
if (b && typeof b == "string" && b.startsWith("var(")) {
|
|
3641
3641
|
if (!pa[b]) {
|
|
3642
3642
|
const R = b.substring(4, b.length - 1), N = getComputedStyle(v).getPropertyValue(R);
|
|
3643
|
-
pa[b] = N ||
|
|
3643
|
+
pa[b] = N || h;
|
|
3644
3644
|
}
|
|
3645
3645
|
return pa[b];
|
|
3646
3646
|
}
|
|
3647
|
-
return b ||
|
|
3648
|
-
}, [
|
|
3647
|
+
return b || h;
|
|
3648
|
+
}, [h, v, b]), H = typeof _ == "string" && _.endsWith("%"), $ = Yu(i), W = ki("(max-width: 420px)"), U = ki("(max-width: 800px)"), Z = {
|
|
3649
3649
|
minWidth: f,
|
|
3650
3650
|
maxWidth: y,
|
|
3651
|
-
width: H ? `min(${b} * ${
|
|
3651
|
+
width: H ? `min(${b} * ${W ? "8" : U ? "4" : "1"}, 100%)` : `min(calc(${b} + ${$}), 100%)`,
|
|
3652
3652
|
paddingBottom: n,
|
|
3653
3653
|
flex: w
|
|
3654
3654
|
}, V = w !== void 0;
|
|
3655
|
-
return V && (
|
|
3655
|
+
return V && (Z.width = "100%", Z.minWidth = f || "1px"), /* @__PURE__ */ J(Tt, { children: [
|
|
3656
3656
|
/* @__PURE__ */ m(
|
|
3657
3657
|
"div",
|
|
3658
3658
|
{
|
|
3659
|
-
style: { ...
|
|
3659
|
+
style: { ...Z, paddingRight: $ },
|
|
3660
3660
|
className: le(yr.flowItem, {
|
|
3661
3661
|
[yr.starSized]: V
|
|
3662
3662
|
}),
|
|
@@ -3672,18 +3672,18 @@ const Li = {
|
|
|
3672
3672
|
rowGap: "$gap-normal"
|
|
3673
3673
|
};
|
|
3674
3674
|
ve(function({ style: t, columnGap: r = 0, rowGap: o = 0, children: a }, n) {
|
|
3675
|
-
const [i, l] = me(0), s = i === 1 ? 0 : r, v = wi(o),
|
|
3675
|
+
const [i, l] = me(0), s = i === 1 ? 0 : r, v = wi(o), h = wi(s), c = ce(
|
|
3676
3676
|
() => ({
|
|
3677
3677
|
// We put a negative margin on the container to fill the space for the row's last columnGap
|
|
3678
|
-
marginRight: `calc(-1 * ${
|
|
3678
|
+
marginRight: `calc(-1 * ${h})`,
|
|
3679
3679
|
marginBottom: `calc(-1 * ${v})`
|
|
3680
3680
|
}),
|
|
3681
|
-
[
|
|
3681
|
+
[h, v]
|
|
3682
3682
|
), T = ce(() => ({
|
|
3683
3683
|
rowGap: v,
|
|
3684
|
-
columnGap:
|
|
3684
|
+
columnGap: h,
|
|
3685
3685
|
setNumberOfChildren: l
|
|
3686
|
-
}), [
|
|
3686
|
+
}), [h, v]);
|
|
3687
3687
|
return /* @__PURE__ */ m(dl.Provider, { value: T, children: /* @__PURE__ */ m("div", { style: t, ref: n, children: /* @__PURE__ */ m("div", { className: yr.outer, children: /* @__PURE__ */ m("div", { className: le(yr.flowContainer, yr.horizontal), style: c, children: a }) }) }) });
|
|
3688
3688
|
});
|
|
3689
3689
|
const _i = "FlowLayout", gh = k({
|
|
@@ -3839,22 +3839,22 @@ const Oh = `'{"padding-ModalDialog": "var(--xmlui-padding-ModalDialog)", "paddin
|
|
|
3839
3839
|
};
|
|
3840
3840
|
Ne.forwardRef(
|
|
3841
3841
|
({ isInitiallyOpen: e, onOpen: t, onClose: r, registerComponentApi: o, renderDialog: a }, n) => {
|
|
3842
|
-
const i = cl(e, t, r), { doOpen: l, doClose: s, isOpen: v, openParams:
|
|
3842
|
+
const i = cl(e, t, r), { doOpen: l, doClose: s, isOpen: v, openParams: h } = i;
|
|
3843
3843
|
return ee(() => {
|
|
3844
3844
|
o == null || o({
|
|
3845
3845
|
open: l,
|
|
3846
3846
|
close: s
|
|
3847
3847
|
});
|
|
3848
3848
|
}, [s, l, o]), v ? /* @__PURE__ */ m(ul.Provider, { value: i, children: a({
|
|
3849
|
-
openParams:
|
|
3849
|
+
openParams: h,
|
|
3850
3850
|
ref: n
|
|
3851
3851
|
}) }) : null;
|
|
3852
3852
|
}
|
|
3853
3853
|
);
|
|
3854
3854
|
const ul = Ne.createContext(null);
|
|
3855
3855
|
function cl(e, t, r) {
|
|
3856
|
-
const [o, a] = me(e), n = he(!1), [i, l] = me(null), s = Le((...
|
|
3857
|
-
l(
|
|
3856
|
+
const [o, a] = me(e), n = he(!1), [i, l] = me(null), s = Le((...h) => {
|
|
3857
|
+
l(h), t == null || t(), a(!0);
|
|
3858
3858
|
}), v = Le(async () => {
|
|
3859
3859
|
if (!n.current)
|
|
3860
3860
|
try {
|
|
@@ -3887,10 +3887,10 @@ const ml = Ne.forwardRef(
|
|
|
3887
3887
|
onOpen: i,
|
|
3888
3888
|
onClose: l
|
|
3889
3889
|
}, s) => {
|
|
3890
|
-
const { root: v } = tr(),
|
|
3890
|
+
const { root: v } = tr(), h = he(null), c = s ? sr(s, h) : h, { isOpen: T, doClose: b, doOpen: f } = qh(r, i, l);
|
|
3891
3891
|
ee(() => {
|
|
3892
3892
|
var _;
|
|
3893
|
-
T && ((_ =
|
|
3893
|
+
T && ((_ = h.current) == null || _.focus());
|
|
3894
3894
|
}, [T]), ee(() => {
|
|
3895
3895
|
if (T) {
|
|
3896
3896
|
const _ = setTimeout(() => {
|
|
@@ -3971,7 +3971,7 @@ function Qh(e) {
|
|
|
3971
3971
|
n - (r.left + a + r.width),
|
|
3972
3972
|
i - (r.top + a + r.height),
|
|
3973
3973
|
r.left - a
|
|
3974
|
-
].map((
|
|
3974
|
+
].map((h) => `${-1 * Math.floor(h)}px`).join(" "), v = new IntersectionObserver(() => {
|
|
3975
3975
|
++o > 1 && Pr(e);
|
|
3976
3976
|
}, {
|
|
3977
3977
|
root: Vr,
|
|
@@ -4073,8 +4073,8 @@ function xl(e, t, r) {
|
|
|
4073
4073
|
let o = t.width, a = t.height, n = r.width, i = r.height;
|
|
4074
4074
|
const l = getComputedStyle(e);
|
|
4075
4075
|
if (l.getPropertyValue("box-sizing") === "content-box") {
|
|
4076
|
-
const v = Gt(l.paddingTop) + Gt(l.paddingBottom) + Gt(l.borderTopWidth) + Gt(l.borderBottomWidth),
|
|
4077
|
-
o -=
|
|
4076
|
+
const v = Gt(l.paddingTop) + Gt(l.paddingBottom) + Gt(l.borderTopWidth) + Gt(l.borderBottomWidth), h = Gt(l.paddingLeft) + Gt(l.paddingRight) + Gt(l.borderRightWidth) + Gt(l.borderLeftWidth);
|
|
4077
|
+
o -= h, n -= h, a -= v, i -= v;
|
|
4078
4078
|
}
|
|
4079
4079
|
return [o, n, a, i].map(Math.round);
|
|
4080
4080
|
}
|
|
@@ -4105,12 +4105,12 @@ function tx(e) {
|
|
|
4105
4105
|
return;
|
|
4106
4106
|
const a = na(e);
|
|
4107
4107
|
if (typeof a != "function") {
|
|
4108
|
-
const n = t.left - r.left, i = t.top - r.top, [l, s, v,
|
|
4108
|
+
const n = t.left - r.left, i = t.top - r.top, [l, s, v, h] = xl(e, t, r), c = {
|
|
4109
4109
|
transform: `translate(${n}px, ${i}px)`
|
|
4110
4110
|
}, T = {
|
|
4111
4111
|
transform: "translate(0, 0)"
|
|
4112
4112
|
};
|
|
4113
|
-
l !== s && (c.width = `${l}px`, T.width = `${s}px`), v !==
|
|
4113
|
+
l !== s && (c.width = `${l}px`, T.width = `${s}px`), v !== h && (c.height = `${v}px`, T.height = `${h}px`), o = e.animate([c, T], {
|
|
4114
4114
|
duration: a.duration,
|
|
4115
4115
|
easing: a.easing
|
|
4116
4116
|
});
|
|
@@ -4146,7 +4146,7 @@ function ox(e) {
|
|
|
4146
4146
|
}
|
|
4147
4147
|
if (!ai(e))
|
|
4148
4148
|
return a();
|
|
4149
|
-
const [n, i, l, s] = ax(e), v = na(e),
|
|
4149
|
+
const [n, i, l, s] = ax(e), v = na(e), h = ut.get(e);
|
|
4150
4150
|
let c;
|
|
4151
4151
|
Object.assign(e.style, {
|
|
4152
4152
|
position: "absolute",
|
|
@@ -4167,7 +4167,7 @@ function ox(e) {
|
|
|
4167
4167
|
transform: "scale(.98)",
|
|
4168
4168
|
opacity: 0
|
|
4169
4169
|
}
|
|
4170
|
-
], { duration: v.duration, easing: "ease-out" }) : (c = new Animation(v(e, "remove",
|
|
4170
|
+
], { duration: v.duration, easing: "ease-out" }) : (c = new Animation(v(e, "remove", h)), c.play()), zr.set(e, c), c.addEventListener("finish", a);
|
|
4171
4171
|
}
|
|
4172
4172
|
function ax(e) {
|
|
4173
4173
|
const t = ut.get(e), [r, , o] = xl(e, t, co(e));
|
|
@@ -4516,20 +4516,20 @@ function Cx(e, t, r, o, a, n = 0) {
|
|
|
4516
4516
|
ee(
|
|
4517
4517
|
function() {
|
|
4518
4518
|
const v = new yl(e, t, i);
|
|
4519
|
-
let
|
|
4519
|
+
let h = !1;
|
|
4520
4520
|
const c = v.preValidate();
|
|
4521
|
-
return
|
|
4521
|
+
return h || (o(Ai(a, c)), c.partial && (async () => {
|
|
4522
4522
|
const T = await l(e, t, i);
|
|
4523
|
-
|
|
4523
|
+
h || o(Ai(a, T));
|
|
4524
4524
|
})()), () => {
|
|
4525
|
-
|
|
4525
|
+
h = !0;
|
|
4526
4526
|
};
|
|
4527
4527
|
},
|
|
4528
4528
|
[a, i, o, t, l, e]
|
|
4529
4529
|
);
|
|
4530
4530
|
}
|
|
4531
4531
|
function kx(e, t, r, o = gl) {
|
|
4532
|
-
const a = nr((_) => _.interactionFlags[e]) || Or, n = a.forceShowValidationResult, i = a.focused, l = a.isValidLostFocus, s = a.isValidOnFocus, v = a.invalidToValid,
|
|
4532
|
+
const a = nr((_) => _.interactionFlags[e]) || Or, n = a.forceShowValidationResult, i = a.focused, l = a.isValidLostFocus, s = a.isValidOnFocus, v = a.invalidToValid, h = !r || r.validatedValue !== t, c = a.isDirty, T = (r == null ? void 0 : r.isValid) === !0;
|
|
4533
4533
|
let b = "none";
|
|
4534
4534
|
for (const _ of (r == null ? void 0 : r.validations) || [])
|
|
4535
4535
|
if (!_.isValid && (b !== "error" && _.severity === "warning" && (b = "warning"), _.severity === "error")) {
|
|
@@ -4549,7 +4549,7 @@ function kx(e, t, r, o = gl) {
|
|
|
4549
4549
|
}
|
|
4550
4550
|
f = f || n;
|
|
4551
4551
|
const [y, w] = me(f);
|
|
4552
|
-
return y !== f && !
|
|
4552
|
+
return y !== f && !h && w(f), h && (f = y), {
|
|
4553
4553
|
isHelperTextShown: f,
|
|
4554
4554
|
validationStatus: f ? b : "none"
|
|
4555
4555
|
};
|
|
@@ -4671,7 +4671,7 @@ Nr((e, t) => {
|
|
|
4671
4671
|
e.validationResults[l].validations = [
|
|
4672
4672
|
...((v = e.validationResults[l]) == null ? void 0 : v.validations) || [],
|
|
4673
4673
|
...s || []
|
|
4674
|
-
], e.validationResults[l].isValid = e.validationResults[l].validations.find((
|
|
4674
|
+
], e.validationResults[l].isValid = e.validationResults[l].validations.find((h) => !h.isValid) === void 0;
|
|
4675
4675
|
}
|
|
4676
4676
|
);
|
|
4677
4677
|
break;
|
|
@@ -4709,7 +4709,7 @@ const wx = {
|
|
|
4709
4709
|
saveLabel: l = "Save",
|
|
4710
4710
|
saveInProgressLabel: s = "Saving...",
|
|
4711
4711
|
swapCancelAndSave: v,
|
|
4712
|
-
onSubmit:
|
|
4712
|
+
onSubmit: h,
|
|
4713
4713
|
onCancel: c,
|
|
4714
4714
|
onReset: T,
|
|
4715
4715
|
buttonRow: b,
|
|
@@ -4718,11 +4718,11 @@ const wx = {
|
|
|
4718
4718
|
itemLabelBreak: w = !0,
|
|
4719
4719
|
itemLabelWidth: _,
|
|
4720
4720
|
itemLabelPosition: H = "top",
|
|
4721
|
-
keepModalOpenOnSubmit:
|
|
4722
|
-
},
|
|
4723
|
-
const
|
|
4724
|
-
Jl(
|
|
4725
|
-
const [
|
|
4721
|
+
keepModalOpenOnSubmit: $ = !1
|
|
4722
|
+
}, W) {
|
|
4723
|
+
const U = he(null);
|
|
4724
|
+
Jl(W, () => U.current);
|
|
4725
|
+
const [Z, V] = me(!1), R = Uh(), N = n && !e.submitInProgress, O = ce(() => ({
|
|
4726
4726
|
itemLabelBreak: w,
|
|
4727
4727
|
itemLabelWidth: _,
|
|
4728
4728
|
itemLabelPosition: H,
|
|
@@ -4742,7 +4742,7 @@ const wx = {
|
|
|
4742
4742
|
w,
|
|
4743
4743
|
H,
|
|
4744
4744
|
_
|
|
4745
|
-
]),
|
|
4745
|
+
]), x = Le(() => {
|
|
4746
4746
|
c == null || c(), R();
|
|
4747
4747
|
}), p = Le(async (z) => {
|
|
4748
4748
|
var M;
|
|
@@ -4754,20 +4754,20 @@ const wx = {
|
|
|
4754
4754
|
);
|
|
4755
4755
|
if (A.length)
|
|
4756
4756
|
return;
|
|
4757
|
-
if (B.length && !
|
|
4757
|
+
if (B.length && !Z) {
|
|
4758
4758
|
V(!0);
|
|
4759
4759
|
return;
|
|
4760
4760
|
}
|
|
4761
4761
|
const P = document.activeElement;
|
|
4762
4762
|
t(Ah());
|
|
4763
4763
|
try {
|
|
4764
|
-
await (
|
|
4764
|
+
await (h == null ? void 0 : h(e.subject, {
|
|
4765
4765
|
passAsDefaultBody: !0
|
|
4766
|
-
})), t(Nh()),
|
|
4766
|
+
})), t(Nh()), $ || R(), r === Or && An(() => {
|
|
4767
4767
|
g();
|
|
4768
4768
|
}), P && typeof P.focus == "function" && P.focus();
|
|
4769
4769
|
} catch (E) {
|
|
4770
|
-
const G = [],
|
|
4770
|
+
const G = [], j = {};
|
|
4771
4771
|
E instanceof Error && "errorCategory" in E && E.errorCategory === "GenericBackendError" && ((M = E.details) != null && M.issues) && Array.isArray(E.details.issues) ? E.details.issues.forEach((K) => {
|
|
4772
4772
|
const te = {
|
|
4773
4773
|
isValid: !1,
|
|
@@ -4775,7 +4775,7 @@ const wx = {
|
|
|
4775
4775
|
severity: K.severity || "error",
|
|
4776
4776
|
fromBackend: !0
|
|
4777
4777
|
};
|
|
4778
|
-
K.field !== void 0 ? (
|
|
4778
|
+
K.field !== void 0 ? (j[K.field] = j[K.field] || [], j[K.field].push(te)) : G.push(te);
|
|
4779
4779
|
}) : G.push({
|
|
4780
4780
|
isValid: !1,
|
|
4781
4781
|
invalidMessage: E.message || "Couldn't save the form.",
|
|
@@ -4784,7 +4784,7 @@ const wx = {
|
|
|
4784
4784
|
}), t(
|
|
4785
4785
|
Wh({
|
|
4786
4786
|
generalValidationResults: G,
|
|
4787
|
-
fieldValidationResults:
|
|
4787
|
+
fieldValidationResults: j
|
|
4788
4788
|
})
|
|
4789
4789
|
);
|
|
4790
4790
|
}
|
|
@@ -4806,7 +4806,7 @@ const wx = {
|
|
|
4806
4806
|
type: "button",
|
|
4807
4807
|
themeColor: "secondary",
|
|
4808
4808
|
variant: "ghost",
|
|
4809
|
-
onClick:
|
|
4809
|
+
onClick: x,
|
|
4810
4810
|
children: i
|
|
4811
4811
|
},
|
|
4812
4812
|
"cancel"
|
|
@@ -4828,10 +4828,10 @@ const wx = {
|
|
|
4828
4828
|
onSubmit: p,
|
|
4829
4829
|
onReset: g,
|
|
4830
4830
|
id: f,
|
|
4831
|
-
ref:
|
|
4831
|
+
ref: U,
|
|
4832
4832
|
children: [
|
|
4833
4833
|
/* @__PURE__ */ m(Ni, { generalValidationResults: e.generalValidationResults }),
|
|
4834
|
-
/* @__PURE__ */ m(Tl.Provider, { value:
|
|
4834
|
+
/* @__PURE__ */ m(Tl.Provider, { value: O, children: o }),
|
|
4835
4835
|
b || /* @__PURE__ */ J("div", { className: Pa.buttonRow, children: [
|
|
4836
4836
|
v && [q, L],
|
|
4837
4837
|
!v && [L, q]
|
|
@@ -4839,7 +4839,7 @@ const wx = {
|
|
|
4839
4839
|
]
|
|
4840
4840
|
}
|
|
4841
4841
|
),
|
|
4842
|
-
|
|
4842
|
+
Z && /* @__PURE__ */ m(
|
|
4843
4843
|
ml,
|
|
4844
4844
|
{
|
|
4845
4845
|
onClose: () => V(!1),
|
|
@@ -5206,7 +5206,7 @@ class Lx {
|
|
|
5206
5206
|
fetch() {
|
|
5207
5207
|
const t = this, r = this.input, o = this._prefetchedPos || r.position, a = r.line, n = this._prefetchedColumn || r.column;
|
|
5208
5208
|
this._lastFetchPosition = this.input.position;
|
|
5209
|
-
let i = null, l = "", s = d.Eof, v = r.position,
|
|
5209
|
+
let i = null, l = "", s = d.Eof, v = r.position, h = r.column, c = null, T = !1, b = this.getStartingPhaseThenReset();
|
|
5210
5210
|
for (; ; ) {
|
|
5211
5211
|
if (c = this.fetchNextChar(), c === null)
|
|
5212
5212
|
return y();
|
|
@@ -5517,8 +5517,8 @@ class Lx {
|
|
|
5517
5517
|
break;
|
|
5518
5518
|
case 34: {
|
|
5519
5519
|
b = 33;
|
|
5520
|
-
const
|
|
5521
|
-
if (
|
|
5520
|
+
const $ = this.input.ahead(0), W = this.input.ahead(1);
|
|
5521
|
+
if ($ === "`" || $ === "$" && W === "{")
|
|
5522
5522
|
return w(d.StringLiteral);
|
|
5523
5523
|
break;
|
|
5524
5524
|
}
|
|
@@ -5669,7 +5669,7 @@ class Lx {
|
|
|
5669
5669
|
f();
|
|
5670
5670
|
}
|
|
5671
5671
|
function f() {
|
|
5672
|
-
l += c, t._prefetched = null, t._prefetchedPos = null, t._prefetchedColumn = null, v = r.position,
|
|
5672
|
+
l += c, t._prefetched = null, t._prefetchedPos = null, t._prefetchedColumn = null, v = r.position, h = r.position;
|
|
5673
5673
|
}
|
|
5674
5674
|
function y() {
|
|
5675
5675
|
return T && (s = ge.get(l) ?? (qi(l[0]) && l[l.length - 1] !== "'" ? d.Identifier : d.Unknown)), {
|
|
@@ -5681,7 +5681,7 @@ class Lx {
|
|
|
5681
5681
|
startLine: a,
|
|
5682
5682
|
endLine: a,
|
|
5683
5683
|
startColumn: n,
|
|
5684
|
-
endColumn:
|
|
5684
|
+
endColumn: h
|
|
5685
5685
|
}
|
|
5686
5686
|
};
|
|
5687
5687
|
}
|
|
@@ -6507,8 +6507,8 @@ class kl {
|
|
|
6507
6507
|
r
|
|
6508
6508
|
);
|
|
6509
6509
|
function v() {
|
|
6510
|
-
const
|
|
6511
|
-
return
|
|
6510
|
+
const h = o._lexer.peek();
|
|
6511
|
+
return h.type !== d.LBrace ? (o.reportError("W012", h), null) : o.parseBlockStatement();
|
|
6512
6512
|
}
|
|
6513
6513
|
}
|
|
6514
6514
|
/**
|
|
@@ -6620,10 +6620,10 @@ class kl {
|
|
|
6620
6620
|
break;
|
|
6621
6621
|
case "SeqE":
|
|
6622
6622
|
l = i.parenthesized === 1;
|
|
6623
|
-
let
|
|
6623
|
+
let h = !1;
|
|
6624
6624
|
if (l)
|
|
6625
6625
|
for (const c of i.expressions) {
|
|
6626
|
-
if (
|
|
6626
|
+
if (h) {
|
|
6627
6627
|
l = !1;
|
|
6628
6628
|
break;
|
|
6629
6629
|
}
|
|
@@ -6646,7 +6646,7 @@ class kl {
|
|
|
6646
6646
|
break;
|
|
6647
6647
|
}
|
|
6648
6648
|
case "SpreadE": {
|
|
6649
|
-
if (
|
|
6649
|
+
if (h = !0, c.operand.type !== "IdE") {
|
|
6650
6650
|
l = !1;
|
|
6651
6651
|
break;
|
|
6652
6652
|
}
|
|
@@ -7408,19 +7408,19 @@ class kl {
|
|
|
7408
7408
|
switch (n.type) {
|
|
7409
7409
|
case d.LParent: {
|
|
7410
7410
|
this._lexer.get();
|
|
7411
|
-
let
|
|
7411
|
+
let h = [];
|
|
7412
7412
|
if (this._lexer.peek().type !== d.RParent) {
|
|
7413
7413
|
const T = this.parseExpr();
|
|
7414
7414
|
if (!T)
|
|
7415
7415
|
return this.reportError("W001"), null;
|
|
7416
|
-
|
|
7416
|
+
h = T.type === "SeqE" ? T.expressions : [T];
|
|
7417
7417
|
}
|
|
7418
7418
|
const c = this._lexer.peek();
|
|
7419
7419
|
this.expectToken(d.RParent, "W006"), r = this.createExpressionNode(
|
|
7420
7420
|
"InvokeE",
|
|
7421
7421
|
{
|
|
7422
7422
|
object: r,
|
|
7423
|
-
arguments:
|
|
7423
|
+
arguments: h
|
|
7424
7424
|
},
|
|
7425
7425
|
t,
|
|
7426
7426
|
c
|
|
@@ -7690,14 +7690,14 @@ class kl {
|
|
|
7690
7690
|
r.push(i);
|
|
7691
7691
|
else {
|
|
7692
7692
|
if (l === "LitE") {
|
|
7693
|
-
const
|
|
7694
|
-
if (typeof
|
|
7693
|
+
const h = i.value;
|
|
7694
|
+
if (typeof h != "number" && typeof h != "string")
|
|
7695
7695
|
return this.expectToken(d.RBrace, "W007"), null;
|
|
7696
7696
|
}
|
|
7697
7697
|
let v = null;
|
|
7698
7698
|
if (l === "IdE") {
|
|
7699
|
-
const
|
|
7700
|
-
(
|
|
7699
|
+
const h = this._lexer.peek();
|
|
7700
|
+
(h.type === d.Comma || h.type === d.RBrace) && (v = { ...i });
|
|
7701
7701
|
}
|
|
7702
7702
|
if (!v && (this.expectToken(d.Colon, "W008"), v = this.getExpression(!1), !v))
|
|
7703
7703
|
return null;
|
|
@@ -7846,14 +7846,14 @@ class kl {
|
|
|
7846
7846
|
* @param endToken The token that ends the statement
|
|
7847
7847
|
*/
|
|
7848
7848
|
createStatementNode(t, r, o, a) {
|
|
7849
|
-
var s, v,
|
|
7849
|
+
var s, v, h, c, T;
|
|
7850
7850
|
const n = (s = o == null ? void 0 : o.location) == null ? void 0 : s.startPosition, i = this._lexer.peek(), l = a ? a.location.endPosition : i.type === d.Eof ? i.location.startPosition + 1 : i.location.startPosition;
|
|
7851
7851
|
return Object.assign({}, r, {
|
|
7852
7852
|
type: t,
|
|
7853
7853
|
startPosition: n,
|
|
7854
7854
|
endPosition: l,
|
|
7855
7855
|
startLine: (v = o == null ? void 0 : o.location) == null ? void 0 : v.startLine,
|
|
7856
|
-
startColumn: (
|
|
7856
|
+
startColumn: (h = o == null ? void 0 : o.location) == null ? void 0 : h.startColumn,
|
|
7857
7857
|
endLine: a ? a.location.endLine : (c = o == null ? void 0 : o.location) == null ? void 0 : c.endLine,
|
|
7858
7858
|
endColumn: a ? a.location.endColumn : (T = o == null ? void 0 : o.location) == null ? void 0 : T.endColumn,
|
|
7859
7859
|
source: this.source && n !== void 0 && l !== void 0 ? this.source.substring(n, l) : void 0,
|
|
@@ -8431,7 +8431,7 @@ function Nx(e) {
|
|
|
8431
8431
|
function Rx(e, t, r, o = !1) {
|
|
8432
8432
|
const a = /* @__PURE__ */ new Map(), n = {}, i = l(e, t, r, !0);
|
|
8433
8433
|
return !i || Object.keys(n).length > 0 ? n : i;
|
|
8434
|
-
function l(s, v,
|
|
8434
|
+
function l(s, v, h, c = !1) {
|
|
8435
8435
|
var T;
|
|
8436
8436
|
if (a.has(s))
|
|
8437
8437
|
return a.get(s);
|
|
@@ -8456,18 +8456,18 @@ function Rx(e, t, r, o = !1) {
|
|
|
8456
8456
|
data: null,
|
|
8457
8457
|
cancel: !1,
|
|
8458
8458
|
skipChildren: !1
|
|
8459
|
-
}, (R, N,
|
|
8460
|
-
if (!R) return
|
|
8459
|
+
}, (R, N, O, x, p) => {
|
|
8460
|
+
if (!R) return O;
|
|
8461
8461
|
if (c)
|
|
8462
8462
|
switch (N.type) {
|
|
8463
8463
|
case "VarS":
|
|
8464
|
-
|
|
8464
|
+
x && V("W027", N);
|
|
8465
8465
|
break;
|
|
8466
8466
|
case "FuncD":
|
|
8467
8467
|
case "ImportD":
|
|
8468
8468
|
break;
|
|
8469
8469
|
default:
|
|
8470
|
-
o && !
|
|
8470
|
+
o && !x && V("W028", N, N.type);
|
|
8471
8471
|
break;
|
|
8472
8472
|
}
|
|
8473
8473
|
else
|
|
@@ -8481,10 +8481,10 @@ function Rx(e, t, r, o = !1) {
|
|
|
8481
8481
|
case "ImportD":
|
|
8482
8482
|
break;
|
|
8483
8483
|
default:
|
|
8484
|
-
o && !
|
|
8484
|
+
o && !x && V("W028", N, N.type);
|
|
8485
8485
|
break;
|
|
8486
8486
|
}
|
|
8487
|
-
return
|
|
8487
|
+
return O;
|
|
8488
8488
|
});
|
|
8489
8489
|
const H = {};
|
|
8490
8490
|
f.filter((R) => R.type === "FuncD").forEach((R) => {
|
|
@@ -8495,52 +8495,52 @@ function Rx(e, t, r, o = !1) {
|
|
|
8495
8495
|
}
|
|
8496
8496
|
H[N.name] = N;
|
|
8497
8497
|
});
|
|
8498
|
-
const
|
|
8498
|
+
const $ = /* @__PURE__ */ new Map();
|
|
8499
8499
|
f.forEach((R) => {
|
|
8500
8500
|
R.type === "ConstS" && R.isExported ? Wx(R, (N) => {
|
|
8501
|
-
|
|
8502
|
-
}) : R.type === "FuncD" && R.isExported && (
|
|
8501
|
+
$.has(N) ? V("W021", R, N) : $.set(N, R);
|
|
8502
|
+
}) : R.type === "FuncD" && R.isExported && ($.has(R.name) ? V("W021", R, R.name) : $.set(R.name, R));
|
|
8503
8503
|
});
|
|
8504
|
-
const
|
|
8504
|
+
const W = {
|
|
8505
8505
|
type: "ScriptModule",
|
|
8506
8506
|
name: s,
|
|
8507
|
-
exports:
|
|
8507
|
+
exports: $,
|
|
8508
8508
|
importedModules: [],
|
|
8509
8509
|
imports: {},
|
|
8510
8510
|
functions: H,
|
|
8511
8511
|
statements: f,
|
|
8512
8512
|
executed: !1
|
|
8513
8513
|
};
|
|
8514
|
-
a.set(s,
|
|
8515
|
-
const
|
|
8514
|
+
a.set(s, W);
|
|
8515
|
+
const U = [], Z = {};
|
|
8516
8516
|
for (let R = 0; R < f.length; R++) {
|
|
8517
8517
|
const N = f[R];
|
|
8518
8518
|
if (N.type !== "ImportD")
|
|
8519
8519
|
continue;
|
|
8520
|
-
const
|
|
8521
|
-
if (
|
|
8520
|
+
const O = h(s, N.moduleFile);
|
|
8521
|
+
if (O === null) {
|
|
8522
8522
|
V("W022", N, N.moduleFile);
|
|
8523
8523
|
continue;
|
|
8524
8524
|
}
|
|
8525
|
-
const
|
|
8526
|
-
if (!
|
|
8525
|
+
const x = l(N.moduleFile, O, h);
|
|
8526
|
+
if (!x)
|
|
8527
8527
|
return;
|
|
8528
|
-
|
|
8528
|
+
U.push(x);
|
|
8529
8529
|
const p = Object.keys(N.imports);
|
|
8530
|
-
p.length > 0 && (
|
|
8530
|
+
p.length > 0 && (Z[T = N.moduleFile] ?? (Z[T] = {}));
|
|
8531
8531
|
for (const g of p)
|
|
8532
|
-
|
|
8532
|
+
x.exports.has(N.imports[g]) ? Z[N.moduleFile][g] = x.exports.get(N.imports[g]) : V("W023", N, N.moduleFile, g);
|
|
8533
8533
|
}
|
|
8534
8534
|
if (w.length > 0)
|
|
8535
8535
|
return n[s] = w, null;
|
|
8536
|
-
return
|
|
8537
|
-
function V(R, N, ...
|
|
8538
|
-
let
|
|
8539
|
-
|
|
8540
|
-
(p, g) =>
|
|
8536
|
+
return U.forEach((R) => R.parent = W), W.importedModules = U, W.imports = Z, W;
|
|
8537
|
+
function V(R, N, ...O) {
|
|
8538
|
+
let x = Xo[R];
|
|
8539
|
+
O && O.forEach(
|
|
8540
|
+
(p, g) => x = x.replaceAll(`{${g}}`, O[g].toString())
|
|
8541
8541
|
), w.push({
|
|
8542
8542
|
code: R,
|
|
8543
|
-
text: Xo[R].replace(/\{(\d+)}/g, (p, g) =>
|
|
8543
|
+
text: Xo[R].replace(/\{(\d+)}/g, (p, g) => O[g]),
|
|
8544
8544
|
position: N.startPosition,
|
|
8545
8545
|
line: N.startLine,
|
|
8546
8546
|
column: N.startColumn
|
|
@@ -8644,7 +8644,7 @@ const eb = ve(function({
|
|
|
8644
8644
|
validationStatus: l = "none",
|
|
8645
8645
|
hasSpinBox: s = !0,
|
|
8646
8646
|
step: v,
|
|
8647
|
-
integersOnly:
|
|
8647
|
+
integersOnly: h = !1,
|
|
8648
8648
|
zeroOrPositive: c = !1,
|
|
8649
8649
|
min: T = c ? 0 : -999999999999999,
|
|
8650
8650
|
max: b = wl,
|
|
@@ -8653,15 +8653,15 @@ const eb = ve(function({
|
|
|
8653
8653
|
onDidChange: w = de,
|
|
8654
8654
|
onFocus: _ = de,
|
|
8655
8655
|
onBlur: H = de,
|
|
8656
|
-
registerComponentApi:
|
|
8657
|
-
startText:
|
|
8658
|
-
startIcon:
|
|
8659
|
-
endText:
|
|
8656
|
+
registerComponentApi: $,
|
|
8657
|
+
startText: W,
|
|
8658
|
+
startIcon: U,
|
|
8659
|
+
endText: Z,
|
|
8660
8660
|
endIcon: V,
|
|
8661
8661
|
autoFocus: R,
|
|
8662
8662
|
readOnly: N,
|
|
8663
|
-
required:
|
|
8664
|
-
label:
|
|
8663
|
+
required: O,
|
|
8664
|
+
label: x,
|
|
8665
8665
|
labelPosition: p,
|
|
8666
8666
|
labelWidth: g,
|
|
8667
8667
|
labelBreak: C
|
|
@@ -8691,16 +8691,16 @@ const eb = ve(function({
|
|
|
8691
8691
|
E(D, D);
|
|
8692
8692
|
},
|
|
8693
8693
|
[E]
|
|
8694
|
-
),
|
|
8694
|
+
), j = X(() => {
|
|
8695
8695
|
if (N) return;
|
|
8696
|
-
const Y = Xi(P, q, T, b,
|
|
8696
|
+
const Y = Xi(P, q, T, b, h);
|
|
8697
8697
|
Y !== void 0 && E(Y, Y.toString());
|
|
8698
|
-
}, [P, q, T, b,
|
|
8698
|
+
}, [P, q, T, b, h, E, N]), K = X(() => {
|
|
8699
8699
|
if (N) return;
|
|
8700
|
-
const Y = Xi(P, -q, T, b,
|
|
8700
|
+
const Y = Xi(P, -q, T, b, h);
|
|
8701
8701
|
Y !== void 0 && E(Y, Y.toString());
|
|
8702
|
-
}, [P, q, T, b,
|
|
8703
|
-
Qi(A.current,
|
|
8702
|
+
}, [P, q, T, b, h, E, N]);
|
|
8703
|
+
Qi(A.current, j), Qi(B.current, K);
|
|
8704
8704
|
const te = (Y) => {
|
|
8705
8705
|
var vo;
|
|
8706
8706
|
let D = !1;
|
|
@@ -8719,10 +8719,10 @@ const eb = ve(function({
|
|
|
8719
8719
|
);
|
|
8720
8720
|
break;
|
|
8721
8721
|
case Ua:
|
|
8722
|
-
(
|
|
8722
|
+
(h || se.includes(Ua) || Ze !== -1) && (D = !0);
|
|
8723
8723
|
break;
|
|
8724
8724
|
case Qo:
|
|
8725
|
-
if (
|
|
8725
|
+
if (h) {
|
|
8726
8726
|
D = !0;
|
|
8727
8727
|
break;
|
|
8728
8728
|
}
|
|
@@ -8742,7 +8742,7 @@ const eb = ve(function({
|
|
|
8742
8742
|
break;
|
|
8743
8743
|
}
|
|
8744
8744
|
const Ye = se.substring(0, Ge) + We + se.substring(Y.target.selectionEnd);
|
|
8745
|
-
|
|
8745
|
+
h && !Yx.test(Ye) ? D = !0 : Xx.test(Ye) || (D = !0);
|
|
8746
8746
|
break;
|
|
8747
8747
|
}
|
|
8748
8748
|
if (Y.data < "0" || Y.data > "9") {
|
|
@@ -8775,9 +8775,9 @@ const eb = ve(function({
|
|
|
8775
8775
|
}
|
|
8776
8776
|
}, be = X(
|
|
8777
8777
|
(Y) => {
|
|
8778
|
-
Y.code === "ArrowUp" && (Y.preventDefault(),
|
|
8778
|
+
Y.code === "ArrowUp" && (Y.preventDefault(), j()), Y.code === "ArrowDown" && (Y.preventDefault(), K());
|
|
8779
8779
|
},
|
|
8780
|
-
[
|
|
8780
|
+
[j, K]
|
|
8781
8781
|
), Me = X(() => {
|
|
8782
8782
|
_ == null || _();
|
|
8783
8783
|
}, [_]), Re = X(() => {
|
|
@@ -8789,19 +8789,19 @@ const eb = ve(function({
|
|
|
8789
8789
|
E(Y, Hl(Y) ? "" : String(Y));
|
|
8790
8790
|
});
|
|
8791
8791
|
return ee(() => {
|
|
8792
|
-
|
|
8792
|
+
$ == null || $({
|
|
8793
8793
|
focus: ie,
|
|
8794
8794
|
setValue: oe
|
|
8795
8795
|
});
|
|
8796
|
-
}, [ie,
|
|
8796
|
+
}, [ie, $, oe]), /* @__PURE__ */ m(
|
|
8797
8797
|
yt,
|
|
8798
8798
|
{
|
|
8799
8799
|
ref: L,
|
|
8800
8800
|
labelPosition: p,
|
|
8801
|
-
label:
|
|
8801
|
+
label: x,
|
|
8802
8802
|
labelWidth: g,
|
|
8803
8803
|
labelBreak: C,
|
|
8804
|
-
required:
|
|
8804
|
+
required: O,
|
|
8805
8805
|
enabled: n,
|
|
8806
8806
|
onFocus: _,
|
|
8807
8807
|
onBlur: H,
|
|
@@ -8823,7 +8823,7 @@ const eb = ve(function({
|
|
|
8823
8823
|
(Y = z.current) == null || Y.focus();
|
|
8824
8824
|
},
|
|
8825
8825
|
children: [
|
|
8826
|
-
/* @__PURE__ */ m(so, { text:
|
|
8826
|
+
/* @__PURE__ */ m(so, { text: W, iconName: U, className: Ke.adornment }),
|
|
8827
8827
|
/* @__PURE__ */ m(
|
|
8828
8828
|
"input",
|
|
8829
8829
|
{
|
|
@@ -8844,10 +8844,10 @@ const eb = ve(function({
|
|
|
8844
8844
|
ref: z,
|
|
8845
8845
|
autoFocus: R,
|
|
8846
8846
|
maxLength: f,
|
|
8847
|
-
required:
|
|
8847
|
+
required: O
|
|
8848
8848
|
}
|
|
8849
8849
|
),
|
|
8850
|
-
/* @__PURE__ */ m(so, { text:
|
|
8850
|
+
/* @__PURE__ */ m(so, { text: Z, iconName: V, className: Ke.adornment }),
|
|
8851
8851
|
s && /* @__PURE__ */ J("div", { className: Ke.spinnerBox, children: [
|
|
8852
8852
|
/* @__PURE__ */ m(
|
|
8853
8853
|
st,
|
|
@@ -8898,8 +8898,8 @@ function Qi(e, t, r = 500) {
|
|
|
8898
8898
|
var v;
|
|
8899
8899
|
(v = n.current) == null || v.call(n), o.current = window.setTimeout(() => {
|
|
8900
8900
|
a.current = window.setInterval(() => {
|
|
8901
|
-
var
|
|
8902
|
-
(
|
|
8901
|
+
var h;
|
|
8902
|
+
(h = n.current) == null || h.call(n);
|
|
8903
8903
|
}, 100);
|
|
8904
8904
|
}, r);
|
|
8905
8905
|
}, l = () => {
|
|
@@ -9025,7 +9025,7 @@ const ba = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount",
|
|
|
9025
9025
|
bubbles: !1,
|
|
9026
9026
|
cancelable: !0
|
|
9027
9027
|
}, db = /* @__PURE__ */ ve((e, t) => {
|
|
9028
|
-
const { loop: r = !1, trapped: o = !1, onMountAutoFocus: a, onUnmountAutoFocus: n, ...i } = e, [l, s] = me(null), v = Zi(a),
|
|
9028
|
+
const { loop: r = !1, trapped: o = !1, onMountAutoFocus: a, onUnmountAutoFocus: n, ...i } = e, [l, s] = me(null), v = Zi(a), h = Zi(n), c = he(null), T = rb(
|
|
9029
9029
|
t,
|
|
9030
9030
|
(y) => s(y)
|
|
9031
9031
|
), b = he({
|
|
@@ -9039,21 +9039,21 @@ const ba = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount",
|
|
|
9039
9039
|
}).current;
|
|
9040
9040
|
ee(() => {
|
|
9041
9041
|
if (o) {
|
|
9042
|
-
let y = function(
|
|
9042
|
+
let y = function($) {
|
|
9043
9043
|
if (b.paused || !l) return;
|
|
9044
|
-
const
|
|
9045
|
-
l.contains(
|
|
9044
|
+
const W = $.target;
|
|
9045
|
+
l.contains(W) ? c.current = W : vr(c.current, {
|
|
9046
9046
|
select: !0
|
|
9047
9047
|
});
|
|
9048
|
-
}, w = function(
|
|
9048
|
+
}, w = function($) {
|
|
9049
9049
|
if (b.paused || !l) return;
|
|
9050
|
-
const
|
|
9051
|
-
|
|
9050
|
+
const W = $.relatedTarget;
|
|
9051
|
+
W !== null && (l.contains(W) || vr(c.current, {
|
|
9052
9052
|
select: !0
|
|
9053
9053
|
}));
|
|
9054
|
-
}, _ = function(
|
|
9054
|
+
}, _ = function($) {
|
|
9055
9055
|
if (document.activeElement === document.body)
|
|
9056
|
-
for (const
|
|
9056
|
+
for (const U of $) U.removedNodes.length > 0 && vr(l);
|
|
9057
9057
|
};
|
|
9058
9058
|
document.addEventListener("focusin", y), document.addEventListener("focusout", w);
|
|
9059
9059
|
const H = new MutationObserver(_);
|
|
@@ -9081,26 +9081,26 @@ const ba = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount",
|
|
|
9081
9081
|
return () => {
|
|
9082
9082
|
l.removeEventListener(ba, v), setTimeout(() => {
|
|
9083
9083
|
const _ = new CustomEvent(va, ji);
|
|
9084
|
-
l.addEventListener(va,
|
|
9084
|
+
l.addEventListener(va, h), l.dispatchEvent(_), _.defaultPrevented || vr(y ?? document.body, {
|
|
9085
9085
|
select: !0
|
|
9086
|
-
}), l.removeEventListener(va,
|
|
9086
|
+
}), l.removeEventListener(va, h), Ki.remove(b);
|
|
9087
9087
|
}, 0);
|
|
9088
9088
|
};
|
|
9089
9089
|
}
|
|
9090
9090
|
}, [
|
|
9091
9091
|
l,
|
|
9092
9092
|
v,
|
|
9093
|
-
|
|
9093
|
+
h,
|
|
9094
9094
|
b
|
|
9095
9095
|
]);
|
|
9096
9096
|
const f = X((y) => {
|
|
9097
9097
|
if (!r && !o || b.paused) return;
|
|
9098
9098
|
const w = y.key === "Tab" && !y.altKey && !y.ctrlKey && !y.metaKey, _ = document.activeElement;
|
|
9099
9099
|
if (w && _) {
|
|
9100
|
-
const H = y.currentTarget, [
|
|
9101
|
-
|
|
9100
|
+
const H = y.currentTarget, [$, W] = ub(H);
|
|
9101
|
+
$ && W ? !y.shiftKey && _ === W ? (y.preventDefault(), r && vr($, {
|
|
9102
9102
|
select: !0
|
|
9103
|
-
})) : y.shiftKey && _ ===
|
|
9103
|
+
})) : y.shiftKey && _ === $ && (y.preventDefault(), r && vr(W, {
|
|
9104
9104
|
select: !0
|
|
9105
9105
|
})) : _ === H && y.preventDefault();
|
|
9106
9106
|
}
|
|
@@ -9256,7 +9256,7 @@ const Qb = ve(function(t, r) {
|
|
|
9256
9256
|
onValueChange: l,
|
|
9257
9257
|
validationStatus: s,
|
|
9258
9258
|
children: v,
|
|
9259
|
-
value:
|
|
9259
|
+
value: h,
|
|
9260
9260
|
height: c,
|
|
9261
9261
|
style: T,
|
|
9262
9262
|
placeholder: b,
|
|
@@ -9264,17 +9264,17 @@ const Qb = ve(function(t, r) {
|
|
|
9264
9264
|
triggerRef: y,
|
|
9265
9265
|
onFocus: w,
|
|
9266
9266
|
options: _
|
|
9267
|
-
} = t, H = r ? sr(y, r) : y,
|
|
9268
|
-
(
|
|
9267
|
+
} = t, H = r ? sr(y, r) : y, $ = h + "", W = X(
|
|
9268
|
+
(U) => {
|
|
9269
9269
|
var V;
|
|
9270
|
-
const
|
|
9271
|
-
(R) => R.value + "" ===
|
|
9270
|
+
const Z = (V = Array.from(_.values()).find(
|
|
9271
|
+
(R) => R.value + "" === U
|
|
9272
9272
|
)) == null ? void 0 : V.value;
|
|
9273
|
-
l(
|
|
9273
|
+
l(Z);
|
|
9274
9274
|
},
|
|
9275
9275
|
[l, _]
|
|
9276
9276
|
);
|
|
9277
|
-
return /* @__PURE__ */ m(la, { Component: Wl, children: /* @__PURE__ */ J(pd, { value:
|
|
9277
|
+
return /* @__PURE__ */ m(la, { Component: Wl, children: /* @__PURE__ */ J(pd, { value: $, onValueChange: W, children: [
|
|
9278
9278
|
/* @__PURE__ */ J(
|
|
9279
9279
|
hd,
|
|
9280
9280
|
{
|
|
@@ -9320,7 +9320,7 @@ const Qb = ve(function(t, r) {
|
|
|
9320
9320
|
validationStatus: l = "none",
|
|
9321
9321
|
onDidChange: s = de,
|
|
9322
9322
|
onFocus: v = de,
|
|
9323
|
-
onBlur:
|
|
9323
|
+
onBlur: h = de,
|
|
9324
9324
|
registerComponentApi: c,
|
|
9325
9325
|
emptyListTemplate: T,
|
|
9326
9326
|
optionLabelRenderer: b,
|
|
@@ -9329,46 +9329,46 @@ const Qb = ve(function(t, r) {
|
|
|
9329
9329
|
dropdownHeight: w,
|
|
9330
9330
|
children: _,
|
|
9331
9331
|
autoFocus: H = !1,
|
|
9332
|
-
searchable:
|
|
9333
|
-
multiSelect:
|
|
9334
|
-
label:
|
|
9335
|
-
labelPosition:
|
|
9332
|
+
searchable: $ = !1,
|
|
9333
|
+
multiSelect: W = !1,
|
|
9334
|
+
label: U,
|
|
9335
|
+
labelPosition: Z,
|
|
9336
9336
|
labelWidth: V,
|
|
9337
9337
|
labelBreak: R,
|
|
9338
9338
|
required: N = !1
|
|
9339
|
-
},
|
|
9339
|
+
}, O) {
|
|
9340
9340
|
var ie;
|
|
9341
|
-
const [
|
|
9341
|
+
const [x, p] = me(null), [g, C] = me(!1), [L, q] = me(0), z = he(), { root: A } = tr(), [B, P] = me(/* @__PURE__ */ new Set());
|
|
9342
9342
|
ee(() => {
|
|
9343
9343
|
r !== void 0 && i({ value: r }, { initial: !0 });
|
|
9344
9344
|
}, [r, i]), ee(() => {
|
|
9345
9345
|
var Y;
|
|
9346
|
-
const oe =
|
|
9346
|
+
const oe = x;
|
|
9347
9347
|
return (Y = z.current) == null || Y.disconnect(), oe && (z.current = new ResizeObserver(() => q(oe.clientWidth)), z.current.observe(oe)), () => {
|
|
9348
9348
|
var D;
|
|
9349
9349
|
(D = z.current) == null || D.disconnect();
|
|
9350
9350
|
};
|
|
9351
|
-
}, [
|
|
9351
|
+
}, [x]);
|
|
9352
9352
|
const M = X(
|
|
9353
9353
|
(oe) => {
|
|
9354
|
-
const Y =
|
|
9354
|
+
const Y = W ? Array.isArray(o) ? o.includes(oe) ? o.filter((D) => D !== oe) : [...o, oe] : [oe] : oe === o ? null : oe;
|
|
9355
9355
|
i({ value: Y }), s(Y), C(!1);
|
|
9356
9356
|
},
|
|
9357
|
-
[
|
|
9357
|
+
[W, o, i, s]
|
|
9358
9358
|
), E = X(() => {
|
|
9359
|
-
const oe =
|
|
9359
|
+
const oe = W ? [] : "";
|
|
9360
9360
|
i({ value: oe }), s(oe);
|
|
9361
|
-
}, [
|
|
9362
|
-
|
|
9363
|
-
}, [
|
|
9361
|
+
}, [W, i, s]), G = X(() => {
|
|
9362
|
+
x == null || x.focus();
|
|
9363
|
+
}, [x]), j = Le((oe) => {
|
|
9364
9364
|
M(oe);
|
|
9365
9365
|
});
|
|
9366
9366
|
ee(() => {
|
|
9367
9367
|
c == null || c({
|
|
9368
9368
|
focus: G,
|
|
9369
|
-
setValue:
|
|
9369
|
+
setValue: j
|
|
9370
9370
|
});
|
|
9371
|
-
}, [G, c,
|
|
9371
|
+
}, [G, c, j]);
|
|
9372
9372
|
const K = ce(
|
|
9373
9373
|
() => T ?? /* @__PURE__ */ J("div", { className: Se.selectEmpty, children: [
|
|
9374
9374
|
/* @__PURE__ */ m(ke, { name: "noresult" }),
|
|
@@ -9390,27 +9390,27 @@ const Qb = ve(function(t, r) {
|
|
|
9390
9390
|
[te, be]
|
|
9391
9391
|
), Re = ce(
|
|
9392
9392
|
() => ({
|
|
9393
|
-
multiSelect:
|
|
9393
|
+
multiSelect: W,
|
|
9394
9394
|
value: o,
|
|
9395
9395
|
optionLabelRenderer: b,
|
|
9396
9396
|
onChange: M
|
|
9397
9397
|
}),
|
|
9398
|
-
[
|
|
9398
|
+
[W, M, o, b]
|
|
9399
9399
|
);
|
|
9400
|
-
return /* @__PURE__ */ m(_l.Provider, { value: Re, children: /* @__PURE__ */ m(ni.Provider, { value: Me, children:
|
|
9400
|
+
return /* @__PURE__ */ m(_l.Provider, { value: Re, children: /* @__PURE__ */ m(ni.Provider, { value: Me, children: $ || W ? /* @__PURE__ */ J(la, { Component: Rl, children: [
|
|
9401
9401
|
_,
|
|
9402
9402
|
/* @__PURE__ */ m(
|
|
9403
9403
|
yt,
|
|
9404
9404
|
{
|
|
9405
|
-
ref:
|
|
9406
|
-
labelPosition:
|
|
9407
|
-
label:
|
|
9405
|
+
ref: O,
|
|
9406
|
+
labelPosition: Z,
|
|
9407
|
+
label: U,
|
|
9408
9408
|
labelWidth: V,
|
|
9409
9409
|
labelBreak: R,
|
|
9410
9410
|
required: N,
|
|
9411
9411
|
enabled: a,
|
|
9412
9412
|
onFocus: v,
|
|
9413
|
-
onBlur:
|
|
9413
|
+
onBlur: h,
|
|
9414
9414
|
style: y,
|
|
9415
9415
|
children: /* @__PURE__ */ J(Rn, { open: g, onOpenChange: C, modal: !1, children: [
|
|
9416
9416
|
/* @__PURE__ */ m(Wn, { asChild: !0, children: /* @__PURE__ */ J(
|
|
@@ -9419,17 +9419,17 @@ const Qb = ve(function(t, r) {
|
|
|
9419
9419
|
id: t,
|
|
9420
9420
|
ref: p,
|
|
9421
9421
|
onFocus: v,
|
|
9422
|
-
onBlur:
|
|
9422
|
+
onBlur: h,
|
|
9423
9423
|
disabled: !a,
|
|
9424
9424
|
"aria-expanded": g,
|
|
9425
9425
|
onClick: () => C((oe) => !oe),
|
|
9426
9426
|
className: le(Se.selectTrigger, Se[l], {
|
|
9427
9427
|
[Se.disabled]: !a,
|
|
9428
|
-
[Se.multi]:
|
|
9428
|
+
[Se.multi]: W
|
|
9429
9429
|
}),
|
|
9430
9430
|
autoFocus: H,
|
|
9431
9431
|
children: [
|
|
9432
|
-
|
|
9432
|
+
W ? Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ m("div", { className: Se.badgeListContainer, children: /* @__PURE__ */ m("div", { className: Se.badgeList, children: o.map(
|
|
9433
9433
|
(oe) => {
|
|
9434
9434
|
var Y;
|
|
9435
9435
|
return f ? f(
|
|
@@ -9453,7 +9453,7 @@ const Qb = ve(function(t, r) {
|
|
|
9453
9453
|
}
|
|
9454
9454
|
) }) }) : /* @__PURE__ */ m("span", { className: Se.placeholder, children: n || "" }) : o != null ? /* @__PURE__ */ m("div", { children: (ie = Array.from(B).find((oe) => oe.value === o)) == null ? void 0 : ie.label }) : /* @__PURE__ */ m("span", { className: Se.placeholder, children: n || "" }),
|
|
9455
9455
|
/* @__PURE__ */ J("div", { className: Se.actions, children: [
|
|
9456
|
-
|
|
9456
|
+
W && Array.isArray(o) && o.length > 0 && /* @__PURE__ */ m(
|
|
9457
9457
|
ke,
|
|
9458
9458
|
{
|
|
9459
9459
|
name: "close",
|
|
@@ -9476,10 +9476,10 @@ const Qb = ve(function(t, r) {
|
|
|
9476
9476
|
zn,
|
|
9477
9477
|
{
|
|
9478
9478
|
className: Se.command,
|
|
9479
|
-
shouldFilter:
|
|
9479
|
+
shouldFilter: $,
|
|
9480
9480
|
filter: (oe, Y, D) => (oe + " " + D.join(" ")).toLowerCase().includes(Y.toLowerCase()) ? 1 : 0,
|
|
9481
9481
|
children: [
|
|
9482
|
-
|
|
9482
|
+
$ ? /* @__PURE__ */ J("div", { className: Se.commandInputContainer, children: [
|
|
9483
9483
|
/* @__PURE__ */ m(ke, { name: "search" }),
|
|
9484
9484
|
/* @__PURE__ */ m(
|
|
9485
9485
|
_a,
|
|
@@ -9516,14 +9516,14 @@ const Qb = ve(function(t, r) {
|
|
|
9516
9516
|
] }) : /* @__PURE__ */ m(
|
|
9517
9517
|
Qb,
|
|
9518
9518
|
{
|
|
9519
|
-
ref:
|
|
9519
|
+
ref: O,
|
|
9520
9520
|
value: o,
|
|
9521
9521
|
options: B,
|
|
9522
9522
|
onValueChange: M,
|
|
9523
9523
|
id: t,
|
|
9524
9524
|
style: y,
|
|
9525
9525
|
onFocus: v,
|
|
9526
|
-
onBlur:
|
|
9526
|
+
onBlur: h,
|
|
9527
9527
|
enabled: a,
|
|
9528
9528
|
validationStatus: l,
|
|
9529
9529
|
triggerRef: p,
|
|
@@ -9534,7 +9534,7 @@ const Qb = ve(function(t, r) {
|
|
|
9534
9534
|
}
|
|
9535
9535
|
) }) });
|
|
9536
9536
|
}), jb = ve(function(t, r) {
|
|
9537
|
-
const o = po(), { label: a, value: n, enabled: i = !0, keywords: l } = t, { value: s, onChange: v, multi:
|
|
9537
|
+
const o = po(), { label: a, value: n, enabled: i = !0, keywords: l } = t, { value: s, onChange: v, multi: h, optionLabelRenderer: c } = Al(), T = Array.isArray(s) && h ? s.includes(n) : s === n;
|
|
9538
9538
|
return /* @__PURE__ */ J(
|
|
9539
9539
|
Xa,
|
|
9540
9540
|
{
|
|
@@ -9599,7 +9599,7 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9599
9599
|
labelPosition: l,
|
|
9600
9600
|
labelWidth: s,
|
|
9601
9601
|
labelBreak: v,
|
|
9602
|
-
required:
|
|
9602
|
+
required: h = !1,
|
|
9603
9603
|
updateState: c = de,
|
|
9604
9604
|
onDidChange: T = de,
|
|
9605
9605
|
onFocus: b = de,
|
|
@@ -9608,26 +9608,26 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9608
9608
|
registerComponentApi: w,
|
|
9609
9609
|
style: _
|
|
9610
9610
|
}, H) {
|
|
9611
|
-
const [
|
|
9611
|
+
const [$, W] = Ne.useState(!1);
|
|
9612
9612
|
ee(() => {
|
|
9613
9613
|
c({ value: o }, { initial: !0 });
|
|
9614
9614
|
}, [o, c]);
|
|
9615
|
-
const
|
|
9616
|
-
(
|
|
9617
|
-
c({ value:
|
|
9615
|
+
const U = X(
|
|
9616
|
+
(x) => {
|
|
9617
|
+
c({ value: x }), T(x);
|
|
9618
9618
|
},
|
|
9619
9619
|
[T, c]
|
|
9620
|
-
),
|
|
9621
|
-
(
|
|
9622
|
-
|
|
9620
|
+
), Z = X(
|
|
9621
|
+
(x) => {
|
|
9622
|
+
U(x);
|
|
9623
9623
|
},
|
|
9624
|
-
[
|
|
9624
|
+
[U]
|
|
9625
9625
|
), V = X(() => {
|
|
9626
|
-
|
|
9626
|
+
W(!0), b == null || b();
|
|
9627
9627
|
}, [b]), R = X(() => {
|
|
9628
|
-
|
|
9629
|
-
}, [f]), N = Le((
|
|
9630
|
-
|
|
9628
|
+
W(!1), f == null || f();
|
|
9629
|
+
}, [f]), N = Le((x) => {
|
|
9630
|
+
U(x);
|
|
9631
9631
|
});
|
|
9632
9632
|
ee(() => {
|
|
9633
9633
|
w == null || w({
|
|
@@ -9639,7 +9639,7 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9639
9639
|
w,
|
|
9640
9640
|
N
|
|
9641
9641
|
]);
|
|
9642
|
-
const
|
|
9642
|
+
const O = ce(() => ({ value: r, status: n }), [r, n]);
|
|
9643
9643
|
return /* @__PURE__ */ m(
|
|
9644
9644
|
yt,
|
|
9645
9645
|
{
|
|
@@ -9648,22 +9648,22 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9648
9648
|
label: i,
|
|
9649
9649
|
labelWidth: s,
|
|
9650
9650
|
labelBreak: v,
|
|
9651
|
-
required:
|
|
9651
|
+
required: h,
|
|
9652
9652
|
enabled: a,
|
|
9653
9653
|
onFocus: b,
|
|
9654
9654
|
onBlur: f,
|
|
9655
9655
|
style: _,
|
|
9656
|
-
children: /* @__PURE__ */ m(la, { Component: cv, children: /* @__PURE__ */ m(Ol.Provider, { value:
|
|
9656
|
+
children: /* @__PURE__ */ m(la, { Component: cv, children: /* @__PURE__ */ m(Ol.Provider, { value: O, children: /* @__PURE__ */ m(
|
|
9657
9657
|
Aa.Root,
|
|
9658
9658
|
{
|
|
9659
9659
|
id: t,
|
|
9660
9660
|
onBlur: R,
|
|
9661
9661
|
onFocus: V,
|
|
9662
|
-
onValueChange:
|
|
9662
|
+
onValueChange: Z,
|
|
9663
9663
|
value: r,
|
|
9664
9664
|
disabled: !a,
|
|
9665
9665
|
className: le(nt.radioGroupContainer, {
|
|
9666
|
-
[nt.focused]:
|
|
9666
|
+
[nt.focused]: $,
|
|
9667
9667
|
[nt.disabled]: !a
|
|
9668
9668
|
}),
|
|
9669
9669
|
children: y
|
|
@@ -9733,7 +9733,7 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9733
9733
|
);
|
|
9734
9734
|
}, yv = () => {
|
|
9735
9735
|
}, Cv = ({ maxRows: e, minRows: t, onChange: r = yv, style: o, ...a }, n) => {
|
|
9736
|
-
const i = he(null), l = Tv(i, n), [s, v] = Pe.useState(), [
|
|
9736
|
+
const i = he(null), l = Tv(i, n), [s, v] = Pe.useState(), [h, c] = Pe.useState();
|
|
9737
9737
|
return ee(() => {
|
|
9738
9738
|
if (!i.current) return;
|
|
9739
9739
|
const T = getComputedStyle(i.current), b = parseFloat(T.lineHeight), f = parseFloat(T.paddingTop) + parseFloat(T.paddingBottom), y = parseFloat(T.borderTop) + parseFloat(T.borderBottom), w = (T.boxSizing === "border-box" ? y : 0) + f;
|
|
@@ -9744,7 +9744,7 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9744
9744
|
ref: l,
|
|
9745
9745
|
...a,
|
|
9746
9746
|
onChange: r,
|
|
9747
|
-
style: { ...o, minHeight: s, maxHeight:
|
|
9747
|
+
style: { ...o, minHeight: s, maxHeight: h }
|
|
9748
9748
|
}
|
|
9749
9749
|
);
|
|
9750
9750
|
}, kv = Pe.forwardRef(Cv), Sv = {
|
|
@@ -9761,7 +9761,7 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9761
9761
|
updateState: l = de,
|
|
9762
9762
|
validationStatus: s,
|
|
9763
9763
|
autoFocus: v = !1,
|
|
9764
|
-
initialValue:
|
|
9764
|
+
initialValue: h = "",
|
|
9765
9765
|
resize: c,
|
|
9766
9766
|
onDidChange: T = de,
|
|
9767
9767
|
onFocus: b = de,
|
|
@@ -9770,15 +9770,15 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9770
9770
|
enterSubmits: w = !0,
|
|
9771
9771
|
escResets: _,
|
|
9772
9772
|
style: H,
|
|
9773
|
-
registerComponentApi:
|
|
9774
|
-
autoSize:
|
|
9775
|
-
maxRows:
|
|
9776
|
-
minRows:
|
|
9773
|
+
registerComponentApi: $,
|
|
9774
|
+
autoSize: W,
|
|
9775
|
+
maxRows: U,
|
|
9776
|
+
minRows: Z,
|
|
9777
9777
|
maxLength: V,
|
|
9778
9778
|
rows: R = 2,
|
|
9779
9779
|
enabled: N = !0,
|
|
9780
|
-
label:
|
|
9781
|
-
labelPosition:
|
|
9780
|
+
label: O,
|
|
9781
|
+
labelPosition: x,
|
|
9782
9782
|
labelWidth: p,
|
|
9783
9783
|
labelBreak: g
|
|
9784
9784
|
}, C) {
|
|
@@ -9794,11 +9794,11 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9794
9794
|
[P]
|
|
9795
9795
|
);
|
|
9796
9796
|
ee(() => {
|
|
9797
|
-
l({ value:
|
|
9798
|
-
}, [
|
|
9797
|
+
l({ value: h }, { initial: !0 });
|
|
9798
|
+
}, [h, l]);
|
|
9799
9799
|
const E = (ie) => i ? !0 : (ie.preventDefault(), !1), G = () => {
|
|
9800
9800
|
B(!0), b == null || b();
|
|
9801
|
-
},
|
|
9801
|
+
}, j = () => {
|
|
9802
9802
|
B(!1), f == null || f();
|
|
9803
9803
|
}, K = X(() => {
|
|
9804
9804
|
setTimeout(() => {
|
|
@@ -9828,12 +9828,12 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9828
9828
|
ie && (ie.setSelectionRange(q, q), z(null));
|
|
9829
9829
|
}
|
|
9830
9830
|
}, [r, q, L]), ee(() => {
|
|
9831
|
-
|
|
9831
|
+
$ == null || $({
|
|
9832
9832
|
focus: K,
|
|
9833
9833
|
insert: te,
|
|
9834
9834
|
setValue: be
|
|
9835
9835
|
});
|
|
9836
|
-
}, [K, te,
|
|
9836
|
+
}, [K, te, $, be]);
|
|
9837
9837
|
const Me = X(
|
|
9838
9838
|
(ie) => {
|
|
9839
9839
|
var oe, Y;
|
|
@@ -9863,7 +9863,7 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9863
9863
|
onChange: M,
|
|
9864
9864
|
onCopy: E,
|
|
9865
9865
|
onFocus: G,
|
|
9866
|
-
onBlur:
|
|
9866
|
+
onBlur: j,
|
|
9867
9867
|
onKeyDown: Me,
|
|
9868
9868
|
autoComplete: "off"
|
|
9869
9869
|
};
|
|
@@ -9871,8 +9871,8 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9871
9871
|
yt,
|
|
9872
9872
|
{
|
|
9873
9873
|
ref: C,
|
|
9874
|
-
labelPosition:
|
|
9875
|
-
label:
|
|
9874
|
+
labelPosition: x,
|
|
9875
|
+
label: O,
|
|
9876
9876
|
labelWidth: p,
|
|
9877
9877
|
labelBreak: g,
|
|
9878
9878
|
required: a,
|
|
@@ -9885,18 +9885,18 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9885
9885
|
{
|
|
9886
9886
|
...Re,
|
|
9887
9887
|
style: H,
|
|
9888
|
-
maxRows:
|
|
9889
|
-
minRows:
|
|
9888
|
+
maxRows: U,
|
|
9889
|
+
minRows: Z,
|
|
9890
9890
|
rows: R
|
|
9891
9891
|
}
|
|
9892
9892
|
)
|
|
9893
9893
|
}
|
|
9894
|
-
) :
|
|
9894
|
+
) : W || !fi(U) || !fi(Z) ? /* @__PURE__ */ m(
|
|
9895
9895
|
yt,
|
|
9896
9896
|
{
|
|
9897
9897
|
ref: C,
|
|
9898
|
-
labelPosition:
|
|
9899
|
-
label:
|
|
9898
|
+
labelPosition: x,
|
|
9899
|
+
label: O,
|
|
9900
9900
|
labelWidth: p,
|
|
9901
9901
|
labelBreak: g,
|
|
9902
9902
|
required: a,
|
|
@@ -9909,8 +9909,8 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9909
9909
|
{
|
|
9910
9910
|
...Re,
|
|
9911
9911
|
style: H,
|
|
9912
|
-
maxRows:
|
|
9913
|
-
minRows:
|
|
9912
|
+
maxRows: U,
|
|
9913
|
+
minRows: Z,
|
|
9914
9914
|
rows: R
|
|
9915
9915
|
}
|
|
9916
9916
|
)
|
|
@@ -9919,8 +9919,8 @@ const Jb = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Inpu
|
|
|
9919
9919
|
yt,
|
|
9920
9920
|
{
|
|
9921
9921
|
ref: C,
|
|
9922
|
-
labelPosition:
|
|
9923
|
-
label:
|
|
9922
|
+
labelPosition: x,
|
|
9923
|
+
label: O,
|
|
9924
9924
|
labelWidth: p,
|
|
9925
9925
|
labelBreak: g,
|
|
9926
9926
|
required: a,
|
|
@@ -9977,7 +9977,7 @@ const Fv = ve(function({
|
|
|
9977
9977
|
validationStatus: l = "none",
|
|
9978
9978
|
onDidChange: s = de,
|
|
9979
9979
|
onFocus: v = de,
|
|
9980
|
-
onBlur:
|
|
9980
|
+
onBlur: h = de,
|
|
9981
9981
|
registerComponentApi: c,
|
|
9982
9982
|
optionRenderer: T = Dv,
|
|
9983
9983
|
emptyListTemplate: b,
|
|
@@ -9986,13 +9986,13 @@ const Fv = ve(function({
|
|
|
9986
9986
|
autoFocus: w = !1,
|
|
9987
9987
|
dropdownHeight: _,
|
|
9988
9988
|
multi: H = !1,
|
|
9989
|
-
label:
|
|
9990
|
-
labelPosition:
|
|
9991
|
-
labelWidth:
|
|
9992
|
-
labelBreak:
|
|
9989
|
+
label: $,
|
|
9990
|
+
labelPosition: W,
|
|
9991
|
+
labelWidth: U,
|
|
9992
|
+
labelBreak: Z,
|
|
9993
9993
|
required: V = !1
|
|
9994
9994
|
}, R) {
|
|
9995
|
-
const [N,
|
|
9995
|
+
const [N, O] = me(null), x = he(null), [p, g] = me(!1), C = he(null), [L, q] = me(/* @__PURE__ */ new Set()), [z, A] = me(""), { root: B } = tr(), [P, M] = me(0), E = he();
|
|
9996
9996
|
ee(() => {
|
|
9997
9997
|
r !== void 0 && i({ value: r || [] }, { initial: !0 });
|
|
9998
9998
|
}, [r, i]), ee(() => {
|
|
@@ -10015,7 +10015,7 @@ const Fv = ve(function({
|
|
|
10015
10015
|
var D;
|
|
10016
10016
|
H || A(((D = Array.from(L).find((se) => se.value === o)) == null ? void 0 : D.labelText) || "");
|
|
10017
10017
|
}, [H, L, o]);
|
|
10018
|
-
const
|
|
10018
|
+
const j = X(() => {
|
|
10019
10019
|
const D = H ? [] : "";
|
|
10020
10020
|
A(""), i({ value: D }), s(D);
|
|
10021
10021
|
}, [H, i, s]), K = X((D) => {
|
|
@@ -10026,7 +10026,7 @@ const Fv = ve(function({
|
|
|
10026
10026
|
return _e.delete(D), _e;
|
|
10027
10027
|
});
|
|
10028
10028
|
}, []), be = (D) => {
|
|
10029
|
-
C.current && !C.current.contains(D.target) &&
|
|
10029
|
+
C.current && !C.current.contains(D.target) && x.current && !x.current.contains(D.target) && (g(!1), x.current.blur());
|
|
10030
10030
|
};
|
|
10031
10031
|
ee(() => (p ? (document.addEventListener("mousedown", be), document.addEventListener("touchend", be)) : (document.removeEventListener("mousedown", be), document.removeEventListener("touchend", be)), () => {
|
|
10032
10032
|
document.removeEventListener("mousedown", be), document.removeEventListener("touchend", be);
|
|
@@ -10039,8 +10039,8 @@ const Fv = ve(function({
|
|
|
10039
10039
|
[b]
|
|
10040
10040
|
), Re = X(() => {
|
|
10041
10041
|
var D;
|
|
10042
|
-
(D =
|
|
10043
|
-
}, [
|
|
10042
|
+
(D = x == null ? void 0 : x.current) == null || D.focus();
|
|
10043
|
+
}, [x]), ie = Le((D) => {
|
|
10044
10044
|
i({ value: Array.isArray(D) ? D : [D] });
|
|
10045
10045
|
});
|
|
10046
10046
|
ee(() => {
|
|
@@ -10069,14 +10069,14 @@ const Fv = ve(function({
|
|
|
10069
10069
|
yt,
|
|
10070
10070
|
{
|
|
10071
10071
|
ref: R,
|
|
10072
|
-
labelPosition:
|
|
10073
|
-
label:
|
|
10074
|
-
labelWidth:
|
|
10075
|
-
labelBreak:
|
|
10072
|
+
labelPosition: W,
|
|
10073
|
+
label: $,
|
|
10074
|
+
labelWidth: U,
|
|
10075
|
+
labelBreak: Z,
|
|
10076
10076
|
required: V,
|
|
10077
10077
|
enabled: a,
|
|
10078
10078
|
onFocus: v,
|
|
10079
|
-
onBlur:
|
|
10079
|
+
onBlur: h,
|
|
10080
10080
|
style: f,
|
|
10081
10081
|
children: /* @__PURE__ */ m(Rn, { open: p, children: /* @__PURE__ */ J(
|
|
10082
10082
|
zn,
|
|
@@ -10088,15 +10088,15 @@ const Fv = ve(function({
|
|
|
10088
10088
|
/* @__PURE__ */ m(Wn, { style: { width: "100%" }, children: /* @__PURE__ */ J(
|
|
10089
10089
|
"div",
|
|
10090
10090
|
{
|
|
10091
|
-
ref:
|
|
10091
|
+
ref: O,
|
|
10092
10092
|
onClick: () => {
|
|
10093
10093
|
var D;
|
|
10094
|
-
a && ((D =
|
|
10094
|
+
a && ((D = x == null ? void 0 : x.current) == null || D.focus());
|
|
10095
10095
|
},
|
|
10096
10096
|
style: f,
|
|
10097
10097
|
className: le(Je.badgeListWrapper, Je[l], {
|
|
10098
10098
|
[Je.disabled]: !a,
|
|
10099
|
-
[Je.focused]: document.activeElement ===
|
|
10099
|
+
[Je.focused]: document.activeElement === x.current
|
|
10100
10100
|
}),
|
|
10101
10101
|
children: [
|
|
10102
10102
|
H ? /* @__PURE__ */ J("div", { className: Je.badgeList, children: [
|
|
@@ -10121,7 +10121,7 @@ const Fv = ve(function({
|
|
|
10121
10121
|
{
|
|
10122
10122
|
id: t,
|
|
10123
10123
|
autoFocus: w,
|
|
10124
|
-
ref:
|
|
10124
|
+
ref: x,
|
|
10125
10125
|
value: z,
|
|
10126
10126
|
disabled: !a,
|
|
10127
10127
|
onValueChange: (D) => {
|
|
@@ -10131,7 +10131,7 @@ const Fv = ve(function({
|
|
|
10131
10131
|
g(!0), v();
|
|
10132
10132
|
},
|
|
10133
10133
|
onBlur: () => {
|
|
10134
|
-
g(!1),
|
|
10134
|
+
g(!1), h();
|
|
10135
10135
|
},
|
|
10136
10136
|
placeholder: n,
|
|
10137
10137
|
className: Je.commandInput
|
|
@@ -10142,7 +10142,7 @@ const Fv = ve(function({
|
|
|
10142
10142
|
{
|
|
10143
10143
|
id: t,
|
|
10144
10144
|
autoFocus: w,
|
|
10145
|
-
ref:
|
|
10145
|
+
ref: x,
|
|
10146
10146
|
value: z,
|
|
10147
10147
|
disabled: !a,
|
|
10148
10148
|
onValueChange: (D) => {
|
|
@@ -10152,7 +10152,7 @@ const Fv = ve(function({
|
|
|
10152
10152
|
g(!0), v();
|
|
10153
10153
|
},
|
|
10154
10154
|
onBlur: () => {
|
|
10155
|
-
g(!1),
|
|
10155
|
+
g(!1), h();
|
|
10156
10156
|
},
|
|
10157
10157
|
placeholder: n,
|
|
10158
10158
|
className: Je.commandInput
|
|
@@ -10163,7 +10163,7 @@ const Fv = ve(function({
|
|
|
10163
10163
|
"button",
|
|
10164
10164
|
{
|
|
10165
10165
|
onClick: (D) => {
|
|
10166
|
-
D.stopPropagation(),
|
|
10166
|
+
D.stopPropagation(), j();
|
|
10167
10167
|
},
|
|
10168
10168
|
children: /* @__PURE__ */ m(ke, { name: "close" })
|
|
10169
10169
|
}
|
|
@@ -10187,7 +10187,7 @@ const Fv = ve(function({
|
|
|
10187
10187
|
className: Je.commandList,
|
|
10188
10188
|
onMouseUp: () => {
|
|
10189
10189
|
var D;
|
|
10190
|
-
(D =
|
|
10190
|
+
(D = x == null ? void 0 : x.current) == null || D.focus();
|
|
10191
10191
|
},
|
|
10192
10192
|
style: { height: _ },
|
|
10193
10193
|
children: [
|
|
@@ -10247,8 +10247,8 @@ function qv({ value: e, label: t, enabled: r = !0, keywords: o }) {
|
|
|
10247
10247
|
disabled: !r,
|
|
10248
10248
|
value: `${e}`,
|
|
10249
10249
|
className: Je.autoCompleteOption,
|
|
10250
|
-
onMouseDown: (
|
|
10251
|
-
|
|
10250
|
+
onMouseDown: (h) => {
|
|
10251
|
+
h.preventDefault(), h.stopPropagation();
|
|
10252
10252
|
},
|
|
10253
10253
|
onSelect: () => {
|
|
10254
10254
|
i(e);
|
|
@@ -10284,7 +10284,7 @@ const Gv = `'{"Input:backgroundColor-track-Slider": "var(--xmlui-backgroundColor
|
|
|
10284
10284
|
onFocus: l = de,
|
|
10285
10285
|
onBlur: s = de,
|
|
10286
10286
|
registerComponentApi: v,
|
|
10287
|
-
enabled:
|
|
10287
|
+
enabled: h = !0,
|
|
10288
10288
|
value: c,
|
|
10289
10289
|
autoFocus: T,
|
|
10290
10290
|
readOnly: b,
|
|
@@ -10293,19 +10293,19 @@ const Gv = `'{"Input:backgroundColor-track-Slider": "var(--xmlui-backgroundColor
|
|
|
10293
10293
|
labelPosition: w,
|
|
10294
10294
|
labelWidth: _,
|
|
10295
10295
|
labelBreak: H,
|
|
10296
|
-
required:
|
|
10297
|
-
validationStatus:
|
|
10298
|
-
initialValue:
|
|
10299
|
-
minStepsBetweenThumbs:
|
|
10296
|
+
required: $,
|
|
10297
|
+
validationStatus: W = "none",
|
|
10298
|
+
initialValue: U,
|
|
10299
|
+
minStepsBetweenThumbs: Z,
|
|
10300
10300
|
rangeStyle: V,
|
|
10301
10301
|
thumbStyle: R
|
|
10302
10302
|
}, N) => {
|
|
10303
|
-
const
|
|
10303
|
+
const O = he(null), [x, p] = Ne.useState([]);
|
|
10304
10304
|
ee(() => {
|
|
10305
10305
|
typeof c == "object" ? p(c) : typeof c == "number" && p([c]);
|
|
10306
10306
|
}, [c]), ee(() => {
|
|
10307
|
-
n({ value:
|
|
10308
|
-
}, [
|
|
10307
|
+
n({ value: U }, { initial: !0 });
|
|
10308
|
+
}, [U, n]);
|
|
10309
10309
|
const g = X(
|
|
10310
10310
|
(B) => {
|
|
10311
10311
|
n({ value: B }), i(B);
|
|
@@ -10322,7 +10322,7 @@ const Gv = `'{"Input:backgroundColor-track-Slider": "var(--xmlui-backgroundColor
|
|
|
10322
10322
|
s == null || s();
|
|
10323
10323
|
}, [s]), z = X(() => {
|
|
10324
10324
|
var B;
|
|
10325
|
-
(B =
|
|
10325
|
+
(B = O.current) == null || B.focus();
|
|
10326
10326
|
}, []), A = Le((B) => {
|
|
10327
10327
|
g(B);
|
|
10328
10328
|
});
|
|
@@ -10338,8 +10338,8 @@ const Gv = `'{"Input:backgroundColor-track-Slider": "var(--xmlui-backgroundColor
|
|
|
10338
10338
|
label: y,
|
|
10339
10339
|
labelWidth: _,
|
|
10340
10340
|
labelBreak: H,
|
|
10341
|
-
required:
|
|
10342
|
-
enabled:
|
|
10341
|
+
required: $,
|
|
10342
|
+
enabled: h,
|
|
10343
10343
|
onFocus: l,
|
|
10344
10344
|
onBlur: s,
|
|
10345
10345
|
style: e,
|
|
@@ -10347,8 +10347,8 @@ const Gv = `'{"Input:backgroundColor-track-Slider": "var(--xmlui-backgroundColor
|
|
|
10347
10347
|
children: /* @__PURE__ */ J(
|
|
10348
10348
|
Pn,
|
|
10349
10349
|
{
|
|
10350
|
-
minStepsBetweenThumbs:
|
|
10351
|
-
ref:
|
|
10350
|
+
minStepsBetweenThumbs: Z,
|
|
10351
|
+
ref: O,
|
|
10352
10352
|
tabIndex: f,
|
|
10353
10353
|
"aria-readonly": b,
|
|
10354
10354
|
className: le(Ut.sliderRoot),
|
|
@@ -10357,28 +10357,28 @@ const Gv = `'{"Input:backgroundColor-track-Slider": "var(--xmlui-backgroundColor
|
|
|
10357
10357
|
min: r,
|
|
10358
10358
|
inverted: a,
|
|
10359
10359
|
step: t,
|
|
10360
|
-
disabled: !
|
|
10360
|
+
disabled: !h,
|
|
10361
10361
|
onFocus: L,
|
|
10362
10362
|
onBlur: q,
|
|
10363
10363
|
onValueChange: C,
|
|
10364
|
-
"aria-required":
|
|
10365
|
-
value:
|
|
10364
|
+
"aria-required": $,
|
|
10365
|
+
value: x,
|
|
10366
10366
|
autoFocus: T,
|
|
10367
10367
|
children: [
|
|
10368
10368
|
/* @__PURE__ */ m(
|
|
10369
10369
|
Bd,
|
|
10370
10370
|
{
|
|
10371
10371
|
className: le(Ut.sliderTrack, {
|
|
10372
|
-
[Ut.disabled]: !
|
|
10372
|
+
[Ut.disabled]: !h,
|
|
10373
10373
|
[Ut.readOnly]: b,
|
|
10374
|
-
[Ut.error]:
|
|
10375
|
-
[Ut.warning]:
|
|
10376
|
-
[Ut.valid]:
|
|
10374
|
+
[Ut.error]: W === "error",
|
|
10375
|
+
[Ut.warning]: W === "warning",
|
|
10376
|
+
[Ut.valid]: W === "valid"
|
|
10377
10377
|
}),
|
|
10378
10378
|
children: /* @__PURE__ */ m(Id, { className: Ut.sliderRange, style: V })
|
|
10379
10379
|
}
|
|
10380
10380
|
),
|
|
10381
|
-
|
|
10381
|
+
x == null ? void 0 : x.map((B, P) => /* @__PURE__ */ m($d, { className: Ut.sliderThumb, style: R }, P))
|
|
10382
10382
|
]
|
|
10383
10383
|
}
|
|
10384
10384
|
)
|
|
@@ -10410,7 +10410,7 @@ const ef = `'{"Input:backgroundColor-ColorPicker": "var(--xmlui-backgroundColor-
|
|
|
10410
10410
|
value: l = Ho.value,
|
|
10411
10411
|
autoFocus: s,
|
|
10412
10412
|
tabIndex: v = -1,
|
|
10413
|
-
label:
|
|
10413
|
+
label: h,
|
|
10414
10414
|
labelPosition: c,
|
|
10415
10415
|
labelWidth: T,
|
|
10416
10416
|
labelBreak: b,
|
|
@@ -10418,29 +10418,29 @@ const ef = `'{"Input:backgroundColor-ColorPicker": "var(--xmlui-backgroundColor-
|
|
|
10418
10418
|
validationStatus: y = Ho.validationStatus,
|
|
10419
10419
|
initialValue: w = Ho.initialValue
|
|
10420
10420
|
}, _) => {
|
|
10421
|
-
const H = he(null),
|
|
10421
|
+
const H = he(null), $ = X(
|
|
10422
10422
|
(N) => {
|
|
10423
10423
|
t({ value: N }), r(N);
|
|
10424
10424
|
},
|
|
10425
10425
|
[r, t]
|
|
10426
|
-
),
|
|
10426
|
+
), W = X(
|
|
10427
10427
|
(N) => {
|
|
10428
|
-
|
|
10428
|
+
$(N.target.value);
|
|
10429
10429
|
},
|
|
10430
|
-
[
|
|
10430
|
+
[$]
|
|
10431
10431
|
);
|
|
10432
10432
|
ee(() => {
|
|
10433
10433
|
t({ value: w }, { initial: !0 });
|
|
10434
10434
|
}, [w, t]);
|
|
10435
|
-
const
|
|
10435
|
+
const U = X(() => {
|
|
10436
10436
|
o == null || o();
|
|
10437
|
-
}, [o]),
|
|
10437
|
+
}, [o]), Z = X(() => {
|
|
10438
10438
|
a == null || a();
|
|
10439
10439
|
}, [a]), V = X(() => {
|
|
10440
10440
|
var N;
|
|
10441
10441
|
(N = H.current) == null || N.focus();
|
|
10442
10442
|
}, []), R = Le((N) => {
|
|
10443
|
-
|
|
10443
|
+
$(N);
|
|
10444
10444
|
});
|
|
10445
10445
|
return ee(() => {
|
|
10446
10446
|
n == null || n({
|
|
@@ -10451,7 +10451,7 @@ const ef = `'{"Input:backgroundColor-ColorPicker": "var(--xmlui-backgroundColor-
|
|
|
10451
10451
|
yt,
|
|
10452
10452
|
{
|
|
10453
10453
|
labelPosition: c,
|
|
10454
|
-
label:
|
|
10454
|
+
label: h,
|
|
10455
10455
|
labelWidth: T,
|
|
10456
10456
|
labelBreak: b,
|
|
10457
10457
|
required: f,
|
|
@@ -10470,10 +10470,10 @@ const ef = `'{"Input:backgroundColor-ColorPicker": "var(--xmlui-backgroundColor-
|
|
|
10470
10470
|
[oo.valid]: y === "valid"
|
|
10471
10471
|
}),
|
|
10472
10472
|
disabled: !i,
|
|
10473
|
-
onFocus:
|
|
10474
|
-
onChange:
|
|
10473
|
+
onFocus: U,
|
|
10474
|
+
onChange: W,
|
|
10475
10475
|
autoFocus: s,
|
|
10476
|
-
onBlur:
|
|
10476
|
+
onBlur: Z,
|
|
10477
10477
|
required: f,
|
|
10478
10478
|
type: "color",
|
|
10479
10479
|
inputMode: "text",
|
|
@@ -10597,7 +10597,7 @@ $n(function({
|
|
|
10597
10597
|
labelWidth: l,
|
|
10598
10598
|
labelBreak: s = Rr.labelBreak,
|
|
10599
10599
|
children: v,
|
|
10600
|
-
validations:
|
|
10600
|
+
validations: h,
|
|
10601
10601
|
onValidate: c,
|
|
10602
10602
|
customValidationsDebounce: T = Rr.customValidationsDebounce,
|
|
10603
10603
|
validationMode: b,
|
|
@@ -10606,16 +10606,16 @@ $n(function({
|
|
|
10606
10606
|
inputRenderer: w,
|
|
10607
10607
|
..._
|
|
10608
10608
|
}) {
|
|
10609
|
-
const H = nr((B) => l || B.itemLabelWidth),
|
|
10609
|
+
const H = nr((B) => l || B.itemLabelWidth), $ = nr(
|
|
10610
10610
|
(B) => s !== void 0 ? s : B.itemLabelBreak
|
|
10611
|
-
),
|
|
10611
|
+
), W = nr(
|
|
10612
10612
|
(B) => i || B.itemLabelPosition || vf[o]
|
|
10613
|
-
),
|
|
10613
|
+
), U = nr(
|
|
10614
10614
|
(B) => Mi(B.originalSubject, r)
|
|
10615
|
-
),
|
|
10615
|
+
), Z = U === void 0 ? _.initialValue : U, V = nr((B) => Mi(B.subject, r)), R = nr((B) => B.validationResults[r]), N = nr((B) => B.dispatch), O = nr((B) => B.enabled), x = n && O;
|
|
10616
10616
|
ee(() => {
|
|
10617
|
-
N(Hh(r,
|
|
10618
|
-
}, [r, N,
|
|
10617
|
+
N(Hh(r, Z));
|
|
10618
|
+
}, [r, N, Z]), Cx(h, c, V, N, r, T);
|
|
10619
10619
|
const p = X(
|
|
10620
10620
|
({ value: B }, P) => {
|
|
10621
10621
|
P != null && P.initial || N(Bh(r, B));
|
|
@@ -10641,7 +10641,7 @@ $n(function({
|
|
|
10641
10641
|
value: V,
|
|
10642
10642
|
updateState: p,
|
|
10643
10643
|
registerComponentApi: f,
|
|
10644
|
-
enabled:
|
|
10644
|
+
enabled: x,
|
|
10645
10645
|
validationStatus: g,
|
|
10646
10646
|
children: v
|
|
10647
10647
|
}
|
|
@@ -10656,7 +10656,7 @@ $n(function({
|
|
|
10656
10656
|
value: V,
|
|
10657
10657
|
updateState: p,
|
|
10658
10658
|
registerComponentApi: f,
|
|
10659
|
-
enabled:
|
|
10659
|
+
enabled: x,
|
|
10660
10660
|
validationStatus: g,
|
|
10661
10661
|
children: v
|
|
10662
10662
|
}
|
|
@@ -10670,7 +10670,7 @@ $n(function({
|
|
|
10670
10670
|
..._,
|
|
10671
10671
|
value: V,
|
|
10672
10672
|
updateState: p,
|
|
10673
|
-
enabled:
|
|
10673
|
+
enabled: x,
|
|
10674
10674
|
validationStatus: g
|
|
10675
10675
|
}
|
|
10676
10676
|
);
|
|
@@ -10683,7 +10683,7 @@ $n(function({
|
|
|
10683
10683
|
..._,
|
|
10684
10684
|
value: V,
|
|
10685
10685
|
updateState: p,
|
|
10686
|
-
enabled:
|
|
10686
|
+
enabled: x,
|
|
10687
10687
|
validationStatus: g,
|
|
10688
10688
|
children: v
|
|
10689
10689
|
}
|
|
@@ -10699,12 +10699,12 @@ $n(function({
|
|
|
10699
10699
|
value: V,
|
|
10700
10700
|
updateState: p,
|
|
10701
10701
|
registerComponentApi: f,
|
|
10702
|
-
enabled:
|
|
10702
|
+
enabled: x,
|
|
10703
10703
|
integersOnly: o === "integer",
|
|
10704
10704
|
validationStatus: g,
|
|
10705
|
-
min:
|
|
10706
|
-
max:
|
|
10707
|
-
maxLength: y ?? (
|
|
10705
|
+
min: h.minValue,
|
|
10706
|
+
max: h.maxValue,
|
|
10707
|
+
maxLength: y ?? (h == null ? void 0 : h.maxLength)
|
|
10708
10708
|
}
|
|
10709
10709
|
);
|
|
10710
10710
|
break;
|
|
@@ -10717,7 +10717,7 @@ $n(function({
|
|
|
10717
10717
|
..._,
|
|
10718
10718
|
value: V,
|
|
10719
10719
|
updateState: p,
|
|
10720
|
-
enabled:
|
|
10720
|
+
enabled: x,
|
|
10721
10721
|
validationStatus: g,
|
|
10722
10722
|
variant: o,
|
|
10723
10723
|
inputRenderer: w
|
|
@@ -10733,7 +10733,7 @@ $n(function({
|
|
|
10733
10733
|
value: V,
|
|
10734
10734
|
updateState: p,
|
|
10735
10735
|
registerComponentApi: f,
|
|
10736
|
-
enabled:
|
|
10736
|
+
enabled: x,
|
|
10737
10737
|
validationStatus: g,
|
|
10738
10738
|
multiple: Ox(_.multiple, !1)
|
|
10739
10739
|
}
|
|
@@ -10748,9 +10748,9 @@ $n(function({
|
|
|
10748
10748
|
value: V,
|
|
10749
10749
|
updateState: p,
|
|
10750
10750
|
registerComponentApi: f,
|
|
10751
|
-
enabled:
|
|
10751
|
+
enabled: x,
|
|
10752
10752
|
validationStatus: g,
|
|
10753
|
-
maxLength: y ?? (
|
|
10753
|
+
maxLength: y ?? (h == null ? void 0 : h.maxLength)
|
|
10754
10754
|
}
|
|
10755
10755
|
);
|
|
10756
10756
|
break;
|
|
@@ -10764,9 +10764,9 @@ $n(function({
|
|
|
10764
10764
|
value: V,
|
|
10765
10765
|
updateState: p,
|
|
10766
10766
|
registerComponentApi: f,
|
|
10767
|
-
enabled:
|
|
10767
|
+
enabled: x,
|
|
10768
10768
|
validationStatus: g,
|
|
10769
|
-
maxLength: y ?? (
|
|
10769
|
+
maxLength: y ?? (h == null ? void 0 : h.maxLength)
|
|
10770
10770
|
}
|
|
10771
10771
|
);
|
|
10772
10772
|
break;
|
|
@@ -10779,9 +10779,9 @@ $n(function({
|
|
|
10779
10779
|
value: V,
|
|
10780
10780
|
updateState: p,
|
|
10781
10781
|
registerComponentApi: f,
|
|
10782
|
-
enabled:
|
|
10782
|
+
enabled: x,
|
|
10783
10783
|
validationStatus: g,
|
|
10784
|
-
maxLength: y ?? (
|
|
10784
|
+
maxLength: y ?? (h == null ? void 0 : h.maxLength)
|
|
10785
10785
|
}
|
|
10786
10786
|
);
|
|
10787
10787
|
break;
|
|
@@ -10794,10 +10794,10 @@ $n(function({
|
|
|
10794
10794
|
value: V,
|
|
10795
10795
|
updateState: p,
|
|
10796
10796
|
registerComponentApi: f,
|
|
10797
|
-
enabled:
|
|
10797
|
+
enabled: x,
|
|
10798
10798
|
validationStatus: g,
|
|
10799
|
-
min:
|
|
10800
|
-
max:
|
|
10799
|
+
min: h.minValue,
|
|
10800
|
+
max: h.maxValue
|
|
10801
10801
|
}
|
|
10802
10802
|
);
|
|
10803
10803
|
break;
|
|
@@ -10810,7 +10810,7 @@ $n(function({
|
|
|
10810
10810
|
value: V,
|
|
10811
10811
|
updateState: p,
|
|
10812
10812
|
registerComponentApi: f,
|
|
10813
|
-
enabled:
|
|
10813
|
+
enabled: x,
|
|
10814
10814
|
validationStatus: g
|
|
10815
10815
|
}
|
|
10816
10816
|
);
|
|
@@ -10833,12 +10833,12 @@ $n(function({
|
|
|
10833
10833
|
return /* @__PURE__ */ m(
|
|
10834
10834
|
yt,
|
|
10835
10835
|
{
|
|
10836
|
-
labelPosition:
|
|
10836
|
+
labelPosition: W,
|
|
10837
10837
|
label: a,
|
|
10838
10838
|
labelWidth: H,
|
|
10839
|
-
labelBreak:
|
|
10840
|
-
enabled:
|
|
10841
|
-
required:
|
|
10839
|
+
labelBreak: $,
|
|
10840
|
+
enabled: x,
|
|
10841
|
+
required: h.required,
|
|
10842
10842
|
validationInProgress: R == null ? void 0 : R.partial,
|
|
10843
10843
|
onFocus: q,
|
|
10844
10844
|
onBlur: z,
|
|
@@ -11974,16 +11974,16 @@ const Xr = "FormItem", Po = vx.filter(
|
|
|
11974
11974
|
}));
|
|
11975
11975
|
}), v = Le((T) => {
|
|
11976
11976
|
e({ value: n.filter((b) => T.includes(b[t])) });
|
|
11977
|
-
}),
|
|
11977
|
+
}), h = Le(() => {
|
|
11978
11978
|
v(dt);
|
|
11979
11979
|
});
|
|
11980
11980
|
Io(() => {
|
|
11981
11981
|
a({
|
|
11982
|
-
clearSelection:
|
|
11982
|
+
clearSelection: h,
|
|
11983
11983
|
setSelectedRowIds: v,
|
|
11984
11984
|
refreshSelection: s
|
|
11985
11985
|
});
|
|
11986
|
-
}, [
|
|
11986
|
+
}, [h, v, a, s]);
|
|
11987
11987
|
const c = ce(() => ({
|
|
11988
11988
|
selectedItems: o,
|
|
11989
11989
|
setSelectedRowIds: v,
|
|
@@ -12208,29 +12208,29 @@ function yT({
|
|
|
12208
12208
|
enableMultiRowSelection: o,
|
|
12209
12209
|
onSelectionDidChange: a
|
|
12210
12210
|
}) {
|
|
12211
|
-
const [n, i] = me(-1), [l, s] = me(null), { selectedItems: v, setSelectedRowIds:
|
|
12211
|
+
const [n, i] = me(-1), [l, s] = me(null), { selectedItems: v, setSelectedRowIds: h, refreshSelection: c, idKey: T } = Ul(), b = ce(() => t.map((O) => O[T]), [T, t]);
|
|
12212
12212
|
ee(() => {
|
|
12213
12213
|
c(r ? e : dt);
|
|
12214
12214
|
}, [c, e, r]);
|
|
12215
12215
|
const f = Kn(o);
|
|
12216
12216
|
ee(() => {
|
|
12217
|
-
f && !o && v.length > 1 &&
|
|
12217
|
+
f && !o && v.length > 1 && h([v[0][T]]);
|
|
12218
12218
|
}, [
|
|
12219
12219
|
o,
|
|
12220
12220
|
T,
|
|
12221
12221
|
f,
|
|
12222
12222
|
v,
|
|
12223
|
-
|
|
12223
|
+
h
|
|
12224
12224
|
]), ee(() => {
|
|
12225
12225
|
r && n !== -1 && !b[n] && b[0] && i(0);
|
|
12226
12226
|
}, [n, r, i, b]);
|
|
12227
12227
|
const y = Le(
|
|
12228
12228
|
// targetIndex: the item affected by an event
|
|
12229
12229
|
// options: key event options
|
|
12230
|
-
(
|
|
12230
|
+
(O, x = {}) => {
|
|
12231
12231
|
if (!r)
|
|
12232
12232
|
return;
|
|
12233
|
-
const p = b[
|
|
12233
|
+
const p = b[O], { shiftKey: g, metaKey: C, ctrlKey: L } = x, q = !o || !g && !C && !L;
|
|
12234
12234
|
let z, A = [...v.map((B) => B[T])];
|
|
12235
12235
|
if (q)
|
|
12236
12236
|
z = {
|
|
@@ -12240,7 +12240,7 @@ function yT({
|
|
|
12240
12240
|
else if (g) {
|
|
12241
12241
|
let B, P, M, E;
|
|
12242
12242
|
if (l) {
|
|
12243
|
-
let
|
|
12243
|
+
let j = b.indexOf(l.from), K = b.indexOf(l.to), te = Math.min(j, K), be = Math.max(j, K);
|
|
12244
12244
|
const Me = b.slice(te, be + 1);
|
|
12245
12245
|
A = A.filter(
|
|
12246
12246
|
(oe) => !Me.includes(oe)
|
|
@@ -12248,7 +12248,7 @@ function yT({
|
|
|
12248
12248
|
let Re = b.indexOf(M), ie = b.indexOf(E);
|
|
12249
12249
|
B = Math.min(Re, ie), P = Math.max(Re, ie);
|
|
12250
12250
|
} else
|
|
12251
|
-
M = p, E = p, B =
|
|
12251
|
+
M = p, E = p, B = O, P = O;
|
|
12252
12252
|
const G = b.slice(B, P + 1);
|
|
12253
12253
|
A = ad(A, G), z = {
|
|
12254
12254
|
from: M,
|
|
@@ -12261,73 +12261,73 @@ function yT({
|
|
|
12261
12261
|
}, C || L ? A.includes(p) ? A = A.filter(
|
|
12262
12262
|
(B) => B !== p
|
|
12263
12263
|
) : A.push(p) : A = [p];
|
|
12264
|
-
i(
|
|
12264
|
+
i(O), h(id(A)), s(z);
|
|
12265
12265
|
}
|
|
12266
|
-
), w = Le((
|
|
12266
|
+
), w = Le((O, x) => {
|
|
12267
12267
|
if (!r)
|
|
12268
12268
|
return;
|
|
12269
|
-
const p = b.indexOf(
|
|
12270
|
-
y(p,
|
|
12271
|
-
}), _ = Le((
|
|
12269
|
+
const p = b.indexOf(O[T]);
|
|
12270
|
+
y(p, x);
|
|
12271
|
+
}), _ = Le((O) => {
|
|
12272
12272
|
if (r) {
|
|
12273
|
-
if (
|
|
12274
|
-
|
|
12275
|
-
let
|
|
12276
|
-
n !== t.length - 1 && y(
|
|
12273
|
+
if (O.key === "ArrowDown") {
|
|
12274
|
+
O.preventDefault();
|
|
12275
|
+
let x = Math.min(t.length - 1, n + 1);
|
|
12276
|
+
n !== t.length - 1 && y(x, O);
|
|
12277
12277
|
}
|
|
12278
|
-
if (
|
|
12279
|
-
|
|
12280
|
-
const
|
|
12281
|
-
y(
|
|
12278
|
+
if (O.key === "PageDown") {
|
|
12279
|
+
O.preventDefault();
|
|
12280
|
+
const x = Math.min(t.length - 1, n + 8);
|
|
12281
|
+
y(x, O);
|
|
12282
12282
|
}
|
|
12283
|
-
if (
|
|
12284
|
-
|
|
12285
|
-
let
|
|
12286
|
-
n >= 0 && y(
|
|
12283
|
+
if (O.key === "ArrowUp") {
|
|
12284
|
+
O.preventDefault();
|
|
12285
|
+
let x = Math.max(0, n - 1);
|
|
12286
|
+
n >= 0 && y(x, O);
|
|
12287
12287
|
}
|
|
12288
|
-
if (
|
|
12289
|
-
|
|
12290
|
-
const
|
|
12291
|
-
y(
|
|
12288
|
+
if (O.key === "PageUp") {
|
|
12289
|
+
O.preventDefault();
|
|
12290
|
+
const x = Math.max(0, n - 8);
|
|
12291
|
+
y(x, O);
|
|
12292
12292
|
}
|
|
12293
12293
|
}
|
|
12294
12294
|
});
|
|
12295
12295
|
ee(() => {
|
|
12296
12296
|
a == null || a(v);
|
|
12297
12297
|
}, [v, a]);
|
|
12298
|
-
const H = Le((
|
|
12299
|
-
r && (!o &&
|
|
12300
|
-
}),
|
|
12301
|
-
let
|
|
12302
|
-
return v.forEach((
|
|
12303
|
-
|
|
12304
|
-
}),
|
|
12305
|
-
}, [T, v]),
|
|
12298
|
+
const H = Le((O) => {
|
|
12299
|
+
r && (!o && O || h(O ? e.map((x) => x[T]) : []));
|
|
12300
|
+
}), $ = ce(() => {
|
|
12301
|
+
let O = {};
|
|
12302
|
+
return v.forEach((x) => {
|
|
12303
|
+
O[x[T]] = !0;
|
|
12304
|
+
}), O;
|
|
12305
|
+
}, [T, v]), W = X(() => v, [v]), U = X(() => v.map((O) => O[T]), [T, v]), Z = X(() => {
|
|
12306
12306
|
H(!1);
|
|
12307
12307
|
}, [H]), V = X(() => {
|
|
12308
12308
|
H(!0);
|
|
12309
12309
|
}, [H]), R = X(
|
|
12310
|
-
(
|
|
12310
|
+
(O) => {
|
|
12311
12311
|
if (!r)
|
|
12312
12312
|
return;
|
|
12313
|
-
let
|
|
12314
|
-
|
|
12313
|
+
let x = Array.isArray(O) ? O : [O];
|
|
12314
|
+
x.length > 1 && !o && (x = [x[0]]), h(x);
|
|
12315
12315
|
},
|
|
12316
|
-
[o, r,
|
|
12316
|
+
[o, r, h]
|
|
12317
12317
|
), N = ce(() => ({
|
|
12318
|
-
getSelectedItems:
|
|
12319
|
-
getSelectedIds:
|
|
12320
|
-
clearSelection:
|
|
12318
|
+
getSelectedItems: W,
|
|
12319
|
+
getSelectedIds: U,
|
|
12320
|
+
clearSelection: Z,
|
|
12321
12321
|
selectAll: V,
|
|
12322
12322
|
selectId: R
|
|
12323
|
-
}), [
|
|
12323
|
+
}), [Z, U, W, V, R]);
|
|
12324
12324
|
return {
|
|
12325
12325
|
onKeyDown: _,
|
|
12326
12326
|
focusedIndex: n,
|
|
12327
12327
|
toggleRowIndex: y,
|
|
12328
12328
|
toggleRow: w,
|
|
12329
12329
|
checkAllRows: H,
|
|
12330
|
-
selectedRowIdMap:
|
|
12330
|
+
selectedRowIdMap: $,
|
|
12331
12331
|
selectedItems: v,
|
|
12332
12332
|
idKey: T,
|
|
12333
12333
|
selectionApi: N
|
|
@@ -12363,7 +12363,7 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12363
12363
|
pageSizes: l = ST,
|
|
12364
12364
|
rowDisabledPredicate: s = CT,
|
|
12365
12365
|
sortBy: v,
|
|
12366
|
-
sortingDirection:
|
|
12366
|
+
sortingDirection: h = "ascending",
|
|
12367
12367
|
iconSortAsc: c,
|
|
12368
12368
|
iconSortDesc: T,
|
|
12369
12369
|
iconNoSort: b,
|
|
@@ -12372,17 +12372,17 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12372
12372
|
style: w,
|
|
12373
12373
|
noDataRenderer: _,
|
|
12374
12374
|
autoFocus: H = !1,
|
|
12375
|
-
hideHeader:
|
|
12376
|
-
hideNoDataView:
|
|
12377
|
-
alwaysShowSelectionHeader:
|
|
12378
|
-
registerComponentApi:
|
|
12375
|
+
hideHeader: $ = !1,
|
|
12376
|
+
hideNoDataView: W = !1,
|
|
12377
|
+
alwaysShowSelectionHeader: U = !1,
|
|
12378
|
+
registerComponentApi: Z,
|
|
12379
12379
|
onSelectionDidChange: V
|
|
12380
12380
|
// cols
|
|
12381
12381
|
}, R) => {
|
|
12382
12382
|
var mi, pi, hi, xi;
|
|
12383
|
-
const { getThemeVar: N } = tr(),
|
|
12383
|
+
const { getThemeVar: N } = tr(), O = Array.isArray(e) ? e : dt, x = he(null), p = R ? sr(x, R) : x, g = he(null), C = he(null), L = v !== void 0, q = ce(() => t || (O.length ? Object.keys(O[0]).map((ne) => ({ header: ne, accessorKey: ne })) : dt), [t, O]);
|
|
12384
12384
|
ee(() => {
|
|
12385
|
-
H &&
|
|
12385
|
+
H && x.current.focus();
|
|
12386
12386
|
}, [H]);
|
|
12387
12387
|
const [z, A] = me(dt), {
|
|
12388
12388
|
toggleRow: B,
|
|
@@ -12390,23 +12390,23 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12390
12390
|
focusedIndex: M,
|
|
12391
12391
|
onKeyDown: E,
|
|
12392
12392
|
selectedRowIdMap: G,
|
|
12393
|
-
idKey:
|
|
12393
|
+
idKey: j,
|
|
12394
12394
|
selectionApi: K
|
|
12395
12395
|
} = yT({
|
|
12396
|
-
items:
|
|
12396
|
+
items: O,
|
|
12397
12397
|
visibleItems: z,
|
|
12398
12398
|
rowsSelectable: n,
|
|
12399
12399
|
enableMultiRowSelection: i,
|
|
12400
12400
|
onSelectionDidChange: V
|
|
12401
|
-
}), te = ce(() =>
|
|
12401
|
+
}), te = ce(() => O.map((ne, ye) => ({
|
|
12402
12402
|
...ne,
|
|
12403
12403
|
order: ye + 1
|
|
12404
|
-
})), [
|
|
12404
|
+
})), [O]), [be, Me] = me(v), [Re, ie] = me(h);
|
|
12405
12405
|
Io(() => {
|
|
12406
12406
|
Me(v);
|
|
12407
12407
|
}, [v]), Io(() => {
|
|
12408
|
-
ie(
|
|
12409
|
-
}, [
|
|
12408
|
+
ie(h);
|
|
12409
|
+
}, [h]);
|
|
12410
12410
|
const oe = ce(() => !be || L ? te : nd(te, be, Re === "ascending" ? "asc" : "desc"), [be, Re, te, L]), Y = X(
|
|
12411
12411
|
async (ne) => {
|
|
12412
12412
|
let ye = "ascending", ue = ne;
|
|
@@ -12469,7 +12469,7 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12469
12469
|
Ea,
|
|
12470
12470
|
{
|
|
12471
12471
|
className: le(Be.checkBoxWrapper, {
|
|
12472
|
-
[Be.showInHeader]:
|
|
12472
|
+
[Be.showInHeader]: U
|
|
12473
12473
|
}),
|
|
12474
12474
|
value: ye.getIsAllRowsSelected(),
|
|
12475
12475
|
indeterminate: ye.getIsSomeRowsSelected(),
|
|
@@ -12493,7 +12493,7 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12493
12493
|
n,
|
|
12494
12494
|
D,
|
|
12495
12495
|
i,
|
|
12496
|
-
|
|
12496
|
+
U,
|
|
12497
12497
|
P,
|
|
12498
12498
|
B
|
|
12499
12499
|
]), [_e, kr] = me({
|
|
@@ -12527,8 +12527,8 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12527
12527
|
enableMultiRowSelection: i,
|
|
12528
12528
|
columnResizeMode: "onChange",
|
|
12529
12529
|
getRowId: X(
|
|
12530
|
-
(ne) => ne[
|
|
12531
|
-
[
|
|
12530
|
+
(ne) => ne[j] + "",
|
|
12531
|
+
[j]
|
|
12532
12532
|
),
|
|
12533
12533
|
state: ce(
|
|
12534
12534
|
() => ({
|
|
@@ -12548,17 +12548,17 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12548
12548
|
const Ye = Lt(gc), fo = Ye && (w == null ? void 0 : w.maxHeight) === void 0 && (w == null ? void 0 : w.height) === void 0 && (w == null ? void 0 : w.flex) === void 0, Yl = X(
|
|
12549
12549
|
(ne, ye) => Nd(ne, (ue, Te) => {
|
|
12550
12550
|
var Oe;
|
|
12551
|
-
const ct = fo && ((Oe =
|
|
12551
|
+
const ct = fo && ((Oe = x.current) == null ? void 0 : Oe.offsetTop) || 0;
|
|
12552
12552
|
ye(ue - ct, Te);
|
|
12553
12553
|
}),
|
|
12554
12554
|
[fo]
|
|
12555
12555
|
), ur = Rd({
|
|
12556
12556
|
count: Ge.length,
|
|
12557
|
-
getScrollElement: X(() => fo && (Ye != null && Ye.current) ? Ye == null ? void 0 : Ye.current :
|
|
12557
|
+
getScrollElement: X(() => fo && (Ye != null && Ye.current) ? Ye == null ? void 0 : Ye.current : x.current, [Ye, fo]),
|
|
12558
12558
|
observeElementOffset: Yl,
|
|
12559
12559
|
estimateSize: X(() => C.current || 30, []),
|
|
12560
12560
|
overscan: 5
|
|
12561
|
-
}), si = ur.getVirtualItems().length > 0 && ((pi = (mi = ur.getVirtualItems()) == null ? void 0 : mi[0]) == null ? void 0 : pi.start) || 0, ui = ur.getVirtualItems().length > 0 ? ur.getTotalSize() - (((xi = (hi = ur.getVirtualItems()) == null ? void 0 : hi[ur.getVirtualItems().length - 1]) == null ? void 0 : xi.end) || 0) : 0, Wo =
|
|
12561
|
+
}), si = ur.getVirtualItems().length > 0 && ((pi = (mi = ur.getVirtualItems()) == null ? void 0 : mi[0]) == null ? void 0 : pi.start) || 0, ui = ur.getVirtualItems().length > 0 ? ur.getTotalSize() - (((xi = (hi = ur.getVirtualItems()) == null ? void 0 : hi[ur.getVirtualItems().length - 1]) == null ? void 0 : xi.end) || 0) : 0, Wo = O.length !== 0, da = he({}), ci = X((ne) => {
|
|
12562
12562
|
da.current[ne] = !0;
|
|
12563
12563
|
}, []), Oo = Le(() => {
|
|
12564
12564
|
if (!g.current)
|
|
@@ -12592,8 +12592,8 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12592
12592
|
Oo();
|
|
12593
12593
|
});
|
|
12594
12594
|
}, [Oo, q]), Lo(() => {
|
|
12595
|
-
|
|
12596
|
-
}, [
|
|
12595
|
+
Z(K);
|
|
12596
|
+
}, [Z, K]), /* @__PURE__ */ J(
|
|
12597
12597
|
"div",
|
|
12598
12598
|
{
|
|
12599
12599
|
className: le(Be.wrapper, { [Be.noScroll]: fo }),
|
|
@@ -12609,7 +12609,7 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12609
12609
|
ref: g,
|
|
12610
12610
|
style: { borderRight: "1px solid transparent" },
|
|
12611
12611
|
children: [
|
|
12612
|
-
|
|
12612
|
+
!$ && /* @__PURE__ */ m("thead", { style: { height: a }, className: Be.headerWrapper, children: We.getHeaderGroups().map((ne, ye) => /* @__PURE__ */ m(
|
|
12613
12613
|
"tr",
|
|
12614
12614
|
{
|
|
12615
12615
|
className: le(Be.headerRow, {
|
|
@@ -12728,7 +12728,7 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12728
12728
|
}
|
|
12729
12729
|
),
|
|
12730
12730
|
o && !Wo && /* @__PURE__ */ m("div", { className: Be.loadingWrapper, children: /* @__PURE__ */ m(il, {}) }),
|
|
12731
|
-
!
|
|
12731
|
+
!W && !o && !Wo && (_ ? _() : /* @__PURE__ */ m("div", { className: Be.noRows, children: "No data available" })),
|
|
12732
12732
|
r && Wo && Ge.length > 0 && _e && // --- Render the pagination controls
|
|
12733
12733
|
/* @__PURE__ */ J("div", { className: Be.pagination, children: [
|
|
12734
12734
|
/* @__PURE__ */ m("div", { style: { flex: 1 }, children: /* @__PURE__ */ J("span", { className: Be.paginationLabel, children: [
|
|
@@ -12738,7 +12738,7 @@ const kT = 42, ST = [10], un = (e) => {
|
|
|
12738
12738
|
Ge[Ge.length - 1].original.order,
|
|
12739
12739
|
" of",
|
|
12740
12740
|
" ",
|
|
12741
|
-
|
|
12741
|
+
O.length,
|
|
12742
12742
|
" entries"
|
|
12743
12743
|
] }) }),
|
|
12744
12744
|
l.length > 1 && /* @__PURE__ */ J("div", { children: [
|
|
@@ -12942,39 +12942,39 @@ ve(
|
|
|
12942
12942
|
layoutCss: n,
|
|
12943
12943
|
registerComponentApi: i
|
|
12944
12944
|
}, l) => {
|
|
12945
|
-
var
|
|
12946
|
-
const s = e(t.props.items) || e(t.props.data), [v,
|
|
12947
|
-
registerColumn: (
|
|
12948
|
-
|
|
12945
|
+
var U, Z, V, R, N, O;
|
|
12946
|
+
const s = e(t.props.items) || e(t.props.data), [v, h] = me(dt), [c, T] = me(Or), b = he([]), [f, y] = me(0), w = ce(() => ({
|
|
12947
|
+
registerColumn: (x, p) => {
|
|
12948
|
+
h(
|
|
12949
12949
|
Nr((g) => {
|
|
12950
12950
|
g.findIndex((L) => L === p) < 0 && g.push(p);
|
|
12951
12951
|
})
|
|
12952
12952
|
), T(
|
|
12953
12953
|
Nr((g) => {
|
|
12954
|
-
g[p] =
|
|
12954
|
+
g[p] = x;
|
|
12955
12955
|
})
|
|
12956
12956
|
);
|
|
12957
12957
|
},
|
|
12958
|
-
unRegisterColumn: (
|
|
12959
|
-
|
|
12960
|
-
Nr((p) => p.filter((g) => g !==
|
|
12958
|
+
unRegisterColumn: (x) => {
|
|
12959
|
+
h(
|
|
12960
|
+
Nr((p) => p.filter((g) => g !== x))
|
|
12961
12961
|
), T(
|
|
12962
12962
|
Nr((p) => {
|
|
12963
|
-
delete p[
|
|
12963
|
+
delete p[x];
|
|
12964
12964
|
})
|
|
12965
12965
|
);
|
|
12966
12966
|
}
|
|
12967
12967
|
}), []), _ = ce(() => ({
|
|
12968
|
-
registerColumn: (
|
|
12968
|
+
registerColumn: (x, p) => {
|
|
12969
12969
|
b.current.find((g) => g === p) || (y((g) => g + 1), b.current.push(p));
|
|
12970
12970
|
},
|
|
12971
|
-
unRegisterColumn: (
|
|
12972
|
-
b.current.find((p) => p ===
|
|
12971
|
+
unRegisterColumn: (x) => {
|
|
12972
|
+
b.current.find((p) => p === x) && (b.current = b.current.filter((p) => p !== x), y((p) => p + 1));
|
|
12973
12973
|
}
|
|
12974
12974
|
}), []), H = ce(
|
|
12975
|
-
() => v.map((
|
|
12975
|
+
() => v.map((x) => c[x]),
|
|
12976
12976
|
[v, c]
|
|
12977
|
-
),
|
|
12977
|
+
), $ = Ul(), W = /* @__PURE__ */ J(Tt, { children: [
|
|
12978
12978
|
/* @__PURE__ */ m(sn.Provider, { value: w, children: r(t.children) }, f),
|
|
12979
12979
|
/* @__PURE__ */ m(sn.Provider, { value: _, children: r(t.children) }),
|
|
12980
12980
|
/* @__PURE__ */ m(
|
|
@@ -12989,14 +12989,14 @@ ve(
|
|
|
12989
12989
|
noDataRenderer: t.props.noDataTemplate && (() => r(t.props.noDataTemplate)),
|
|
12990
12990
|
hideNoDataView: t.props.noDataTemplate === null || t.props.noDataTemplate === "",
|
|
12991
12991
|
loading: e.asOptionalBoolean(t.props.loading),
|
|
12992
|
-
isPaginated: e.asOptionalBoolean((
|
|
12992
|
+
isPaginated: e.asOptionalBoolean((U = t.props) == null ? void 0 : U.isPaginated),
|
|
12993
12993
|
headerHeight: e.asSize(t.props.headerHeight),
|
|
12994
12994
|
rowDisabledPredicate: a(t.props.rowDisabledPredicate),
|
|
12995
|
-
sortBy: e((
|
|
12995
|
+
sortBy: e((Z = t.props) == null ? void 0 : Z.sortBy),
|
|
12996
12996
|
sortingDirection: e((V = t.props) == null ? void 0 : V.sortDirection),
|
|
12997
12997
|
iconSortAsc: e.asOptionalString((R = t.props) == null ? void 0 : R.iconSortAsc),
|
|
12998
12998
|
iconSortDesc: e.asOptionalString((N = t.props) == null ? void 0 : N.iconSortDesc),
|
|
12999
|
-
iconNoSort: e.asOptionalString((
|
|
12999
|
+
iconNoSort: e.asOptionalString((O = t.props) == null ? void 0 : O.iconNoSort),
|
|
13000
13000
|
sortingDidChange: o("sortingDidChange"),
|
|
13001
13001
|
onSelectionDidChange: o("selectionDidChange"),
|
|
13002
13002
|
willSort: o("willSort"),
|
|
@@ -13013,7 +13013,7 @@ ve(
|
|
|
13013
13013
|
}
|
|
13014
13014
|
)
|
|
13015
13015
|
] });
|
|
13016
|
-
return
|
|
13016
|
+
return $ === null ? /* @__PURE__ */ m($g, { children: W }) : W;
|
|
13017
13017
|
}
|
|
13018
13018
|
);
|
|
13019
13019
|
const $T = "Column", LT = k({
|
|
@@ -13369,7 +13369,7 @@ ve(function({
|
|
|
13369
13369
|
onDisplayDidChange: l = de,
|
|
13370
13370
|
registerComponentApi: s,
|
|
13371
13371
|
rotateExpanded: v = gr.rotateExpanded
|
|
13372
|
-
},
|
|
13372
|
+
}, h) {
|
|
13373
13373
|
const [c, T] = me([]), [b, f] = me(/* @__PURE__ */ new Set()), y = X(
|
|
13374
13374
|
(V) => {
|
|
13375
13375
|
T((R) => R.filter((N) => N !== `${V}`));
|
|
@@ -13390,12 +13390,12 @@ ve(function({
|
|
|
13390
13390
|
f((R) => (R.add(V), R));
|
|
13391
13391
|
},
|
|
13392
13392
|
[f]
|
|
13393
|
-
),
|
|
13393
|
+
), $ = X(
|
|
13394
13394
|
(V) => {
|
|
13395
13395
|
f((R) => (R.delete(V), R));
|
|
13396
13396
|
},
|
|
13397
13397
|
[f]
|
|
13398
|
-
),
|
|
13398
|
+
), W = X(
|
|
13399
13399
|
(V) => {
|
|
13400
13400
|
if (b.has(`trigger_${V}`)) {
|
|
13401
13401
|
const R = document.getElementById(`trigger_${V}`);
|
|
@@ -13403,23 +13403,23 @@ ve(function({
|
|
|
13403
13403
|
}
|
|
13404
13404
|
},
|
|
13405
13405
|
[b]
|
|
13406
|
-
),
|
|
13406
|
+
), U = X(
|
|
13407
13407
|
(V) => c.includes(`${V}`),
|
|
13408
13408
|
[c]
|
|
13409
13409
|
);
|
|
13410
13410
|
ee(() => {
|
|
13411
13411
|
s == null || s({
|
|
13412
|
-
expanded:
|
|
13412
|
+
expanded: U,
|
|
13413
13413
|
expand: w,
|
|
13414
13414
|
collapse: y,
|
|
13415
13415
|
toggle: _,
|
|
13416
|
-
focus:
|
|
13416
|
+
focus: W
|
|
13417
13417
|
});
|
|
13418
|
-
}, [s, w, y, _,
|
|
13419
|
-
const
|
|
13418
|
+
}, [s, w, y, _, W, U]);
|
|
13419
|
+
const Z = ce(
|
|
13420
13420
|
() => ({
|
|
13421
13421
|
register: H,
|
|
13422
|
-
unRegister:
|
|
13422
|
+
unRegister: $,
|
|
13423
13423
|
expandItem: w,
|
|
13424
13424
|
expandedItems: c,
|
|
13425
13425
|
hideIcon: o,
|
|
@@ -13430,7 +13430,7 @@ ve(function({
|
|
|
13430
13430
|
}),
|
|
13431
13431
|
[
|
|
13432
13432
|
H,
|
|
13433
|
-
|
|
13433
|
+
$,
|
|
13434
13434
|
c,
|
|
13435
13435
|
o,
|
|
13436
13436
|
a,
|
|
@@ -13442,11 +13442,11 @@ ve(function({
|
|
|
13442
13442
|
);
|
|
13443
13443
|
return ee(() => {
|
|
13444
13444
|
l == null || l(c);
|
|
13445
|
-
}, [c, l]), /* @__PURE__ */ m(MT.Provider, { value:
|
|
13445
|
+
}, [c, l]), /* @__PURE__ */ m(MT.Provider, { value: Z, children: /* @__PURE__ */ m(
|
|
13446
13446
|
Wd.Root,
|
|
13447
13447
|
{
|
|
13448
13448
|
style: t,
|
|
13449
|
-
ref:
|
|
13449
|
+
ref: h,
|
|
13450
13450
|
value: c,
|
|
13451
13451
|
type: "multiple",
|
|
13452
13452
|
className: ql.root,
|
|
@@ -13732,7 +13732,7 @@ const He = "Accordion", FT = k({
|
|
|
13732
13732
|
error: u("This event fires when a request results in an error.")
|
|
13733
13733
|
}
|
|
13734
13734
|
});
|
|
13735
|
-
var
|
|
13735
|
+
var I = /* @__PURE__ */ ((e) => (e[e.EOF = -1] = "EOF", e[e.nullCharacter = 0] = "nullCharacter", e[e.maxAsciiCharacter = 127] = "maxAsciiCharacter", e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.lineSeparator = 8232] = "lineSeparator", e[e.paragraphSeparator = 8233] = "paragraphSeparator", e[e.nextLine = 133] = "nextLine", e[e.space = 32] = "space", e[e.nonBreakingSpace = 160] = "nonBreakingSpace", e[e.enQuad = 8192] = "enQuad", e[e.emQuad = 8193] = "emQuad", e[e.enSpace = 8194] = "enSpace", e[e.emSpace = 8195] = "emSpace", e[e.threePerEmSpace = 8196] = "threePerEmSpace", e[e.fourPerEmSpace = 8197] = "fourPerEmSpace", e[e.sixPerEmSpace = 8198] = "sixPerEmSpace", e[e.figureSpace = 8199] = "figureSpace", e[e.punctuationSpace = 8200] = "punctuationSpace", e[e.thinSpace = 8201] = "thinSpace", e[e.hairSpace = 8202] = "hairSpace", e[e.zeroWidthSpace = 8203] = "zeroWidthSpace", e[e.narrowNoBreakSpace = 8239] = "narrowNoBreakSpace", e[e.ideographicSpace = 12288] = "ideographicSpace", e[e.mathematicalSpace = 8287] = "mathematicalSpace", e[e.ogham = 5760] = "ogham", e[e.replacementCharacter = 65533] = "replacementCharacter", e[e._ = 95] = "_", e[e.$ = 36] = "$", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.ampersand = 38] = "ampersand", e[e.asterisk = 42] = "asterisk", e[e.at = 64] = "at", e[e.backslash = 92] = "backslash", e[e.backtick = 96] = "backtick", e[e.bar = 124] = "bar", e[e.caret = 94] = "caret", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.closeParen = 41] = "closeParen", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.equals = 61] = "equals", e[e.exclamation = 33] = "exclamation", e[e.greaterThan = 62] = "greaterThan", e[e.hash = 35] = "hash", e[e.lessThan = 60] = "lessThan", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.openParen = 40] = "openParen", e[e.percent = 37] = "percent", e[e.plus = 43] = "plus", e[e.question = 63] = "question", e[e.semicolon = 59] = "semicolon", e[e.singleQuote = 39] = "singleQuote", e[e.slash = 47] = "slash", e[e.tilde = 126] = "tilde", e[e.backspace = 8] = "backspace", e[e.formFeed = 12] = "formFeed", e[e.byteOrderMark = 65279] = "byteOrderMark", e[e.tab = 9] = "tab", e[e.verticalTab = 11] = "verticalTab", e))(I || {}), io = /* @__PURE__ */ ((e) => (e[e.Warning = 0] = "Warning", e[e.Error = 1] = "Error", e[e.Suggestion = 2] = "Suggestion", e[e.Message = 3] = "Message", e))(io || {}), Tr = /* @__PURE__ */ ((e) => (e.onlyOneElem = "U002", e.expTagOpen = "U003", e.expTagIdent = "U004", e.expCloseStart = "U005", e.expEndOrClose = "U006", e.tagNameMismatch = "U007", e.expEnd = "U008", e.expAttrIdent = "U009", e.expEq = "U010", e.expAttrValue = "U011", e.duplAttr = "U012", e.uppercaseAttr = "U013", e.invalidChar = "W001", e.untermStr = "W002", e.untermComment = "W007", e.untermCData = "W008", e.untermScript = "W009", e))(Tr || {});
|
|
13736
13736
|
const wa = {
|
|
13737
13737
|
code: "W001",
|
|
13738
13738
|
category: 1,
|
|
@@ -13851,126 +13851,126 @@ function uy(e) {
|
|
|
13851
13851
|
throw new Error("Didn't expect to get here");
|
|
13852
13852
|
}
|
|
13853
13853
|
function cy(e, t, r, o, a) {
|
|
13854
|
-
let n = t, i, l, s, v,
|
|
13855
|
-
return
|
|
13854
|
+
let n = t, i, l, s, v, h, c;
|
|
13855
|
+
return U(n, o, a), {
|
|
13856
13856
|
getStartPos: () => s,
|
|
13857
13857
|
getTokenEnd: () => i,
|
|
13858
|
-
getToken: () =>
|
|
13858
|
+
getToken: () => h,
|
|
13859
13859
|
getTokenStart: () => v,
|
|
13860
13860
|
getTokenText: () => n.substring(v, i),
|
|
13861
13861
|
getTokenValue: () => c,
|
|
13862
|
-
isIdentifier: () =>
|
|
13862
|
+
isIdentifier: () => h === S.Identifier,
|
|
13863
13863
|
peekChar: T,
|
|
13864
13864
|
scanChar: b,
|
|
13865
13865
|
scan: f,
|
|
13866
13866
|
scanTrivia: y,
|
|
13867
13867
|
scanText: w,
|
|
13868
13868
|
getText: _,
|
|
13869
|
-
setText:
|
|
13870
|
-
setOnError:
|
|
13869
|
+
setText: U,
|
|
13870
|
+
setOnError: Z,
|
|
13871
13871
|
resetTokenState: V,
|
|
13872
13872
|
back: R
|
|
13873
13873
|
};
|
|
13874
13874
|
function T(g) {
|
|
13875
13875
|
if (i + (g ?? 0) >= l)
|
|
13876
13876
|
return null;
|
|
13877
|
-
const C =
|
|
13877
|
+
const C = $(i + (g ?? 0));
|
|
13878
13878
|
return isNaN(C) ? null : C;
|
|
13879
13879
|
}
|
|
13880
13880
|
function b() {
|
|
13881
13881
|
if (i >= l)
|
|
13882
13882
|
return null;
|
|
13883
|
-
const g =
|
|
13883
|
+
const g = $(i);
|
|
13884
13884
|
return i += ar(g), g;
|
|
13885
13885
|
}
|
|
13886
13886
|
function f() {
|
|
13887
13887
|
for (s = i; ; ) {
|
|
13888
13888
|
if (v = i, i >= l)
|
|
13889
|
-
return
|
|
13890
|
-
const g =
|
|
13889
|
+
return h = S.EndOfFileToken;
|
|
13890
|
+
const g = $(i);
|
|
13891
13891
|
switch (g) {
|
|
13892
|
-
case
|
|
13893
|
-
case
|
|
13894
|
-
return g ===
|
|
13895
|
-
case
|
|
13896
|
-
case
|
|
13897
|
-
case
|
|
13898
|
-
case
|
|
13899
|
-
case
|
|
13900
|
-
case
|
|
13901
|
-
case
|
|
13902
|
-
case
|
|
13903
|
-
case
|
|
13904
|
-
case
|
|
13905
|
-
case
|
|
13906
|
-
case
|
|
13907
|
-
case
|
|
13908
|
-
case
|
|
13909
|
-
case
|
|
13910
|
-
case
|
|
13911
|
-
case
|
|
13912
|
-
case
|
|
13913
|
-
case
|
|
13914
|
-
case
|
|
13915
|
-
case
|
|
13916
|
-
case
|
|
13892
|
+
case I.lineFeed:
|
|
13893
|
+
case I.carriageReturn:
|
|
13894
|
+
return g === I.carriageReturn && i + 1 < l && H(i + 1) === I.lineFeed ? i += 2 : i++, h = S.NewLineTrivia;
|
|
13895
|
+
case I.tab:
|
|
13896
|
+
case I.verticalTab:
|
|
13897
|
+
case I.formFeed:
|
|
13898
|
+
case I.space:
|
|
13899
|
+
case I.nonBreakingSpace:
|
|
13900
|
+
case I.ogham:
|
|
13901
|
+
case I.enQuad:
|
|
13902
|
+
case I.emQuad:
|
|
13903
|
+
case I.enSpace:
|
|
13904
|
+
case I.emSpace:
|
|
13905
|
+
case I.threePerEmSpace:
|
|
13906
|
+
case I.fourPerEmSpace:
|
|
13907
|
+
case I.sixPerEmSpace:
|
|
13908
|
+
case I.figureSpace:
|
|
13909
|
+
case I.punctuationSpace:
|
|
13910
|
+
case I.thinSpace:
|
|
13911
|
+
case I.hairSpace:
|
|
13912
|
+
case I.zeroWidthSpace:
|
|
13913
|
+
case I.narrowNoBreakSpace:
|
|
13914
|
+
case I.mathematicalSpace:
|
|
13915
|
+
case I.ideographicSpace:
|
|
13916
|
+
case I.byteOrderMark: {
|
|
13917
13917
|
for (; i < l && xn(H(i)); )
|
|
13918
13918
|
i++;
|
|
13919
|
-
return
|
|
13919
|
+
return h = S.WhitespaceTrivia;
|
|
13920
13920
|
}
|
|
13921
|
-
case
|
|
13922
|
-
case
|
|
13923
|
-
case
|
|
13924
|
-
return c =
|
|
13925
|
-
case
|
|
13926
|
-
return H(i + 1) ===
|
|
13927
|
-
case
|
|
13928
|
-
return i++,
|
|
13929
|
-
case
|
|
13930
|
-
return i++,
|
|
13931
|
-
case
|
|
13932
|
-
if (H(i + 1) ===
|
|
13933
|
-
return i += 2,
|
|
13921
|
+
case I.doubleQuote:
|
|
13922
|
+
case I.singleQuote:
|
|
13923
|
+
case I.backtick:
|
|
13924
|
+
return c = x(), h = S.StringLiteral;
|
|
13925
|
+
case I.ampersand:
|
|
13926
|
+
return H(i + 1) === I.a && H(i + 2) === I.m && H(i + 3) === I.p && H(i + 4) === I.semicolon ? (i += 5, h = S.AmpersandEntity) : H(i + 1) === I.l && H(i + 2) === I.t && H(i + 3) === I.semicolon ? (i += 4, h = S.LessThanEntity) : H(i + 1) === I.g && H(i + 2) === I.t && H(i + 3) === I.semicolon ? (i += 4, h = S.GreaterThanEntity) : H(i + 1) === I.q && H(i + 2) === I.u && H(i + 3) === I.o && H(i + 4) === I.t && H(i + 5) === I.semicolon ? (i += 6, h = S.DoubleQuoteEntity) : H(i + 1) === I.a && H(i + 2) === I.p && H(i + 3) === I.o && H(i + 4) === I.s && H(i + 5) === I.semicolon ? (i += 6, h = S.SingleQuoteEntity) : (i++, p(wa, 1), h = S.Unknown);
|
|
13927
|
+
case I.equals:
|
|
13928
|
+
return i++, h = S.Equal;
|
|
13929
|
+
case I.colon:
|
|
13930
|
+
return i++, h = S.Colon;
|
|
13931
|
+
case I.lessThan:
|
|
13932
|
+
if (H(i + 1) === I.slash)
|
|
13933
|
+
return i += 2, h = S.CloseNodeStart;
|
|
13934
13934
|
if (
|
|
13935
13935
|
// --- "<!-- -->", XMLUI comment
|
|
13936
|
-
H(i + 1) ===
|
|
13936
|
+
H(i + 1) === I.exclamation && H(i + 2) === I.minus && H(i + 3) === I.minus
|
|
13937
13937
|
) {
|
|
13938
13938
|
for (i += 4; i < l; ) {
|
|
13939
|
-
if (H(i) ===
|
|
13940
|
-
return i += 3,
|
|
13939
|
+
if (H(i) === I.minus && H(i + 1) === I.minus && H(i + 2) === I.greaterThan)
|
|
13940
|
+
return i += 3, h = S.CommentTrivia;
|
|
13941
13941
|
i += ar(H(i));
|
|
13942
13942
|
}
|
|
13943
|
-
return p(ty, 4),
|
|
13943
|
+
return p(ty, 4), h = S.Unknown;
|
|
13944
13944
|
} else if (
|
|
13945
13945
|
// --- <![CDATA[ section
|
|
13946
|
-
H(i + 1) ===
|
|
13946
|
+
H(i + 1) === I.exclamation && H(i + 2) === I.openBracket && H(i + 3) === I.C && H(i + 4) === I.D && H(i + 5) === I.A && H(i + 6) === I.T && H(i + 7) === I.A && H(i + 8) === I.openBracket
|
|
13947
13947
|
) {
|
|
13948
13948
|
for (i += 9; i < l; ) {
|
|
13949
|
-
if (H(i) ===
|
|
13950
|
-
return i += 3,
|
|
13949
|
+
if (H(i) === I.closeBracket && H(i + 1) === I.closeBracket && H(i + 2) === I.greaterThan)
|
|
13950
|
+
return i += 3, h = S.CData;
|
|
13951
13951
|
i += ar(H(i));
|
|
13952
13952
|
}
|
|
13953
|
-
return p(ry, 9),
|
|
13953
|
+
return p(ry, 9), h = S.CData;
|
|
13954
13954
|
} else if (
|
|
13955
13955
|
// --- <script>
|
|
13956
|
-
H(i + 1) ===
|
|
13956
|
+
H(i + 1) === I.s && H(i + 2) === I.c && H(i + 3) === I.r && H(i + 4) === I.i && H(i + 5) === I.p && H(i + 6) === I.t && H(i + 7) === I.greaterThan
|
|
13957
13957
|
) {
|
|
13958
13958
|
for (i += 8; i < l; ) {
|
|
13959
|
-
if (H(i) ===
|
|
13960
|
-
return i += 9,
|
|
13959
|
+
if (H(i) === I.lessThan && H(i + 1) === I.slash && H(i + 2) === I.s && H(i + 3) === I.c && H(i + 4) === I.r && H(i + 5) === I.i && H(i + 6) === I.p && H(i + 7) === I.t && H(i + 8) === I.greaterThan)
|
|
13960
|
+
return i += 9, h = S.Script;
|
|
13961
13961
|
i += ar(H(i));
|
|
13962
13962
|
}
|
|
13963
|
-
return p(oy, 9),
|
|
13963
|
+
return p(oy, 9), h = S.Script;
|
|
13964
13964
|
}
|
|
13965
|
-
return i++,
|
|
13966
|
-
case
|
|
13967
|
-
return H(i + 1) ===
|
|
13968
|
-
case
|
|
13969
|
-
return i++,
|
|
13965
|
+
return i++, h = S.OpenNodeStart;
|
|
13966
|
+
case I.slash:
|
|
13967
|
+
return H(i + 1) === I.greaterThan ? (i += 2, h = S.NodeClose) : (i++, p(wa, 1), h = S.Unknown);
|
|
13968
|
+
case I.greaterThan:
|
|
13969
|
+
return i++, h = S.NodeEnd;
|
|
13970
13970
|
default:
|
|
13971
13971
|
const C = N(g);
|
|
13972
13972
|
if (C)
|
|
13973
|
-
return
|
|
13973
|
+
return h = C;
|
|
13974
13974
|
if (xn(g)) {
|
|
13975
13975
|
i += ar(g);
|
|
13976
13976
|
continue;
|
|
@@ -13979,7 +13979,7 @@ function cy(e, t, r, o, a) {
|
|
|
13979
13979
|
continue;
|
|
13980
13980
|
}
|
|
13981
13981
|
const L = ar(g);
|
|
13982
|
-
return i += L, p(wa, L),
|
|
13982
|
+
return i += L, p(wa, L), h = S.Unknown;
|
|
13983
13983
|
}
|
|
13984
13984
|
}
|
|
13985
13985
|
}
|
|
@@ -13996,20 +13996,20 @@ function cy(e, t, r, o, a) {
|
|
|
13996
13996
|
function H(g) {
|
|
13997
13997
|
return n.charCodeAt(g);
|
|
13998
13998
|
}
|
|
13999
|
-
function
|
|
14000
|
-
return
|
|
13999
|
+
function $(g) {
|
|
14000
|
+
return W(n, g);
|
|
14001
14001
|
}
|
|
14002
|
-
function
|
|
14002
|
+
function W(g, C) {
|
|
14003
14003
|
return g.codePointAt(C) ?? 0;
|
|
14004
14004
|
}
|
|
14005
|
-
function
|
|
14005
|
+
function U(g, C, L) {
|
|
14006
14006
|
n = g || "", l = L === void 0 ? n.length : C + L, V(C || 0);
|
|
14007
14007
|
}
|
|
14008
|
-
function
|
|
14008
|
+
function Z(g) {
|
|
14009
14009
|
r = g;
|
|
14010
14010
|
}
|
|
14011
14011
|
function V(g) {
|
|
14012
|
-
i = g, s = g, v = g,
|
|
14012
|
+
i = g, s = g, v = g, h = S.Unknown, c = void 0;
|
|
14013
14013
|
}
|
|
14014
14014
|
function R() {
|
|
14015
14015
|
V(s);
|
|
@@ -14017,15 +14017,15 @@ function cy(e, t, r, o, a) {
|
|
|
14017
14017
|
function N(g) {
|
|
14018
14018
|
let C = g;
|
|
14019
14019
|
if (hy(C)) {
|
|
14020
|
-
for (i += ar(C); i < l && xy(C =
|
|
14020
|
+
for (i += ar(C); i < l && xy(C = $(i)); )
|
|
14021
14021
|
i += ar(C);
|
|
14022
|
-
return c = n.substring(v, i),
|
|
14022
|
+
return c = n.substring(v, i), O();
|
|
14023
14023
|
}
|
|
14024
14024
|
}
|
|
14025
|
-
function
|
|
14026
|
-
return
|
|
14025
|
+
function O() {
|
|
14026
|
+
return h = S.Identifier;
|
|
14027
14027
|
}
|
|
14028
|
-
function
|
|
14028
|
+
function x() {
|
|
14029
14029
|
const g = H(i);
|
|
14030
14030
|
i++;
|
|
14031
14031
|
let C = "", L = i;
|
|
@@ -14047,28 +14047,28 @@ function cy(e, t, r, o, a) {
|
|
|
14047
14047
|
}
|
|
14048
14048
|
}
|
|
14049
14049
|
function ar(e) {
|
|
14050
|
-
return e >= 65536 ? 2 : e ===
|
|
14050
|
+
return e >= 65536 ? 2 : e === I.EOF ? 0 : 1;
|
|
14051
14051
|
}
|
|
14052
14052
|
function Gl(e) {
|
|
14053
|
-
return e >=
|
|
14053
|
+
return e >= I.A && e <= I.Z || e >= I.a && e <= I.z;
|
|
14054
14054
|
}
|
|
14055
14055
|
function my(e) {
|
|
14056
|
-
return Gl(e) || py(e) || e ===
|
|
14056
|
+
return Gl(e) || py(e) || e === I._;
|
|
14057
14057
|
}
|
|
14058
14058
|
function py(e) {
|
|
14059
|
-
return e >=
|
|
14059
|
+
return e >= I._0 && e <= I._9;
|
|
14060
14060
|
}
|
|
14061
14061
|
function hy(e) {
|
|
14062
|
-
return Gl(e) || e ===
|
|
14062
|
+
return Gl(e) || e === I.$ || e === I._;
|
|
14063
14063
|
}
|
|
14064
14064
|
function xy(e) {
|
|
14065
|
-
return my(e) || e ===
|
|
14065
|
+
return my(e) || e === I.$ || e === I.minus || e === I.dot;
|
|
14066
14066
|
}
|
|
14067
14067
|
function xn(e) {
|
|
14068
|
-
return e ===
|
|
14068
|
+
return e === I.space || e === I.tab || e === I.verticalTab || e === I.formFeed || e === I.nonBreakingSpace || e === I.nextLine || e === I.ogham || e >= I.enQuad && e <= I.zeroWidthSpace || e === I.narrowNoBreakSpace || e === I.mathematicalSpace || e === I.ideographicSpace || e === I.byteOrderMark;
|
|
14069
14069
|
}
|
|
14070
14070
|
function by(e) {
|
|
14071
|
-
return e ===
|
|
14071
|
+
return e === I.lineFeed || e === I.carriageReturn || e === I.lineSeparator || e === I.paragraphSeparator;
|
|
14072
14072
|
}
|
|
14073
14073
|
function vy(e, t, r) {
|
|
14074
14074
|
var n, i;
|
|
@@ -14135,7 +14135,7 @@ function gy(e) {
|
|
|
14135
14135
|
switch (A.kind) {
|
|
14136
14136
|
case S.TextNode:
|
|
14137
14137
|
case S.StringLiteral:
|
|
14138
|
-
|
|
14138
|
+
O(A.kind);
|
|
14139
14139
|
break;
|
|
14140
14140
|
case S.CloseNodeStart:
|
|
14141
14141
|
break e;
|
|
@@ -14148,11 +14148,11 @@ function gy(e) {
|
|
|
14148
14148
|
}
|
|
14149
14149
|
a.children && a.children.length > 0 ? g(S.ContentListNode) : q();
|
|
14150
14150
|
}
|
|
14151
|
-
function
|
|
14151
|
+
function h() {
|
|
14152
14152
|
for (; ; )
|
|
14153
14153
|
switch (N().kind) {
|
|
14154
14154
|
case S.EndOfFileToken:
|
|
14155
|
-
|
|
14155
|
+
x();
|
|
14156
14156
|
return;
|
|
14157
14157
|
default:
|
|
14158
14158
|
c();
|
|
@@ -14160,36 +14160,36 @@ function gy(e) {
|
|
|
14160
14160
|
}
|
|
14161
14161
|
}
|
|
14162
14162
|
function c() {
|
|
14163
|
-
|
|
14163
|
+
!$(S.CData) && !$(S.Script) && (H(S.OpenNodeStart) ? T() : L(ly));
|
|
14164
14164
|
}
|
|
14165
14165
|
function T() {
|
|
14166
|
-
p(),
|
|
14166
|
+
p(), O(S.OpenNodeStart);
|
|
14167
14167
|
let A;
|
|
14168
|
-
if (H(S.Identifier) ? A = b() :
|
|
14168
|
+
if (H(S.Identifier) ? A = b() : Z(mn), f(), $(S.NodeClose)) {
|
|
14169
14169
|
g(S.ElementNode);
|
|
14170
14170
|
return;
|
|
14171
|
-
} else if (
|
|
14172
|
-
if (v(),
|
|
14171
|
+
} else if ($(S.NodeEnd)) {
|
|
14172
|
+
if (v(), $(S.CloseNodeStart)) {
|
|
14173
14173
|
if (H(S.Identifier)) {
|
|
14174
14174
|
const B = b();
|
|
14175
|
-
A !== void 0 && !vy(A, B, s) &&
|
|
14175
|
+
A !== void 0 && !vy(A, B, s) && Z(qo.tagNameMismatch(s(A), s(B)));
|
|
14176
14176
|
} else
|
|
14177
|
-
|
|
14178
|
-
|
|
14177
|
+
U(mn, [S.NodeEnd]);
|
|
14178
|
+
$(S.NodeEnd) || Z(ay);
|
|
14179
14179
|
} else
|
|
14180
|
-
|
|
14180
|
+
Z(iy);
|
|
14181
14181
|
g(S.ElementNode);
|
|
14182
14182
|
return;
|
|
14183
14183
|
} else
|
|
14184
|
-
|
|
14184
|
+
Z(dy);
|
|
14185
14185
|
}
|
|
14186
14186
|
function b() {
|
|
14187
|
-
return p(),
|
|
14187
|
+
return p(), O(S.Identifier), $(S.Colon) && $(S.Identifier), g(S.TagNameNode);
|
|
14188
14188
|
}
|
|
14189
14189
|
function f() {
|
|
14190
14190
|
p();
|
|
14191
14191
|
const A = [];
|
|
14192
|
-
for (; !
|
|
14192
|
+
for (; !W([S.EndOfFileToken, S.NodeEnd, S.NodeClose]); )
|
|
14193
14193
|
y(A);
|
|
14194
14194
|
a.children.length === 0 ? q() : g(S.AttributeListNode);
|
|
14195
14195
|
}
|
|
@@ -14198,42 +14198,42 @@ function gy(e) {
|
|
|
14198
14198
|
w(A);
|
|
14199
14199
|
else {
|
|
14200
14200
|
const B = [S.Equal];
|
|
14201
|
-
if (!
|
|
14201
|
+
if (!U(pn, B))
|
|
14202
14202
|
return;
|
|
14203
14203
|
}
|
|
14204
|
-
if (
|
|
14204
|
+
if ($(S.Equal) && !$(S.StringLiteral) && !$(S.Identifier)) {
|
|
14205
14205
|
const B = [S.NodeEnd, S.NodeClose];
|
|
14206
|
-
|
|
14206
|
+
U(ny, B);
|
|
14207
14207
|
}
|
|
14208
14208
|
g(S.AttributeNode);
|
|
14209
14209
|
}
|
|
14210
14210
|
function w(A) {
|
|
14211
14211
|
const B = R();
|
|
14212
14212
|
let P;
|
|
14213
|
-
p(),
|
|
14213
|
+
p(), O(S.Identifier), $(S.Colon) && (H(S.Identifier) ? P = O(S.Identifier) : U(pn, [
|
|
14214
14214
|
S.NodeClose,
|
|
14215
14215
|
S.NodeEnd,
|
|
14216
14216
|
S.Equal
|
|
14217
14217
|
])), _(A, { nsIdent: P, nameIdent: B }), g(S.AttributeKeyNode);
|
|
14218
14218
|
}
|
|
14219
14219
|
function _(A, { nameIdent: B, nsIdent: P }) {
|
|
14220
|
-
const M = s(B), E = P === void 0 ? void 0 : s(P), G = ({ ns: be, name: Me }) => Me === M && be === E,
|
|
14221
|
-
|
|
14220
|
+
const M = s(B), E = P === void 0 ? void 0 : s(P), G = ({ ns: be, name: Me }) => Me === M && be === E, j = A.findIndex(G) !== -1, K = "A" <= M[0] && M[0] <= "Z", te = j || K;
|
|
14221
|
+
j && V(qo.duplAttr(M), B.pos, B.end), K && V(qo.uppercaseAttr(M), B.pos, B.end), te || A.push({ name: M });
|
|
14222
14222
|
}
|
|
14223
14223
|
function H(A) {
|
|
14224
14224
|
return R().kind === A;
|
|
14225
14225
|
}
|
|
14226
|
-
function
|
|
14226
|
+
function $(A) {
|
|
14227
14227
|
const B = H(A);
|
|
14228
|
-
return B &&
|
|
14228
|
+
return B && x(), B;
|
|
14229
14229
|
}
|
|
14230
|
-
function
|
|
14230
|
+
function W(A) {
|
|
14231
14231
|
return A.includes(R().kind);
|
|
14232
14232
|
}
|
|
14233
|
-
function
|
|
14234
|
-
return
|
|
14233
|
+
function U(A, B) {
|
|
14234
|
+
return W(B) || H(S.EndOfFileToken) ? (Z(A), !0) : (p(), Z(A), x(), g(S.ErrorNode), !1);
|
|
14235
14235
|
}
|
|
14236
|
-
function
|
|
14236
|
+
function Z({ code: A, message: B, category: P }) {
|
|
14237
14237
|
const { pos: M, end: E } = R();
|
|
14238
14238
|
t.push({
|
|
14239
14239
|
category: P,
|
|
@@ -14268,10 +14268,10 @@ function gy(e) {
|
|
|
14268
14268
|
G = M;
|
|
14269
14269
|
break;
|
|
14270
14270
|
}
|
|
14271
|
-
let
|
|
14271
|
+
let j = -1;
|
|
14272
14272
|
for (; M < P; ++M)
|
|
14273
14273
|
if (B[M].kind === S.CommentTrivia) {
|
|
14274
|
-
|
|
14274
|
+
j = M;
|
|
14275
14275
|
break;
|
|
14276
14276
|
}
|
|
14277
14277
|
let K = !1;
|
|
@@ -14284,14 +14284,14 @@ function gy(e) {
|
|
|
14284
14284
|
let be = te, Me;
|
|
14285
14285
|
E.length > 0 && (Me = E, be = E[0].pos);
|
|
14286
14286
|
let Re = S.TextNode, ie = -1;
|
|
14287
|
-
if (
|
|
14288
|
-
ie = B[
|
|
14287
|
+
if (j !== -1)
|
|
14288
|
+
ie = B[j].pos, l.resetTokenState(ie);
|
|
14289
14289
|
else if (K)
|
|
14290
14290
|
Re = S.StringLiteral, ie = A.end;
|
|
14291
14291
|
else {
|
|
14292
14292
|
for (; ; ) {
|
|
14293
14293
|
const oe = l.peekChar();
|
|
14294
|
-
if (oe === null || oe ===
|
|
14294
|
+
if (oe === null || oe === I.lessThan)
|
|
14295
14295
|
break;
|
|
14296
14296
|
l.scanChar();
|
|
14297
14297
|
}
|
|
@@ -14299,15 +14299,15 @@ function gy(e) {
|
|
|
14299
14299
|
}
|
|
14300
14300
|
return o = { kind: Re, start: be, pos: te, end: ie, triviaBefore: Me }, o;
|
|
14301
14301
|
}
|
|
14302
|
-
function
|
|
14303
|
-
const B =
|
|
14302
|
+
function O(A) {
|
|
14303
|
+
const B = x();
|
|
14304
14304
|
if (B.kind !== A)
|
|
14305
14305
|
throw new Error(
|
|
14306
14306
|
`expected ${hn(A)}, bumped a ${hn(B.kind)}`
|
|
14307
14307
|
);
|
|
14308
14308
|
return B;
|
|
14309
14309
|
}
|
|
14310
|
-
function
|
|
14310
|
+
function x() {
|
|
14311
14311
|
if (o) {
|
|
14312
14312
|
a.children.push(o);
|
|
14313
14313
|
const B = o;
|
|
@@ -14331,7 +14331,7 @@ function gy(e) {
|
|
|
14331
14331
|
if (B = l.scan(), M === null && (M = l.getTokenStart()), n !== void 0) {
|
|
14332
14332
|
let E;
|
|
14333
14333
|
n.message.code === Tr.invalidChar ? E = qo.invalidChar(l.getTokenText()) : E = n.message;
|
|
14334
|
-
const G = l.getTokenStart(),
|
|
14334
|
+
const G = l.getTokenStart(), j = {
|
|
14335
14335
|
kind: B,
|
|
14336
14336
|
start: M,
|
|
14337
14337
|
pos: G,
|
|
@@ -14339,9 +14339,9 @@ function gy(e) {
|
|
|
14339
14339
|
triviaBefore: P.length > 0 ? P : void 0
|
|
14340
14340
|
};
|
|
14341
14341
|
if (P = [], A && E.code === Tr.invalidChar)
|
|
14342
|
-
return n = void 0,
|
|
14342
|
+
return n = void 0, j;
|
|
14343
14343
|
const K = G + n.prefixLength;
|
|
14344
|
-
return
|
|
14344
|
+
return j.end = K, l.resetTokenState(K), p(), a.children.push(j), V(E, G, K), g(S.ErrorNode), n = void 0, C(A);
|
|
14345
14345
|
}
|
|
14346
14346
|
switch (B) {
|
|
14347
14347
|
case S.CommentTrivia:
|
|
@@ -14366,13 +14366,13 @@ function gy(e) {
|
|
|
14366
14366
|
}
|
|
14367
14367
|
}
|
|
14368
14368
|
function L(A) {
|
|
14369
|
-
|
|
14369
|
+
U(A, []);
|
|
14370
14370
|
}
|
|
14371
14371
|
function q() {
|
|
14372
14372
|
const A = r[r.length - 1];
|
|
14373
14373
|
A.children.push(...a.children), a = A, r.pop();
|
|
14374
14374
|
}
|
|
14375
|
-
return
|
|
14375
|
+
return h(), { node: bn(S.ContentListNode, a.children), errors: t };
|
|
14376
14376
|
}
|
|
14377
14377
|
function bn(e, t) {
|
|
14378
14378
|
const r = t[0], o = t[t.length - 1];
|
|
@@ -14394,10 +14394,10 @@ function Ty(e, t, r, o) {
|
|
|
14394
14394
|
if (Nx(i))
|
|
14395
14395
|
return { ...a, moduleErrors: i };
|
|
14396
14396
|
const l = o(i.name);
|
|
14397
|
-
return i.statements.forEach((
|
|
14398
|
-
switch (
|
|
14397
|
+
return i.statements.forEach((h) => {
|
|
14398
|
+
switch (h.type) {
|
|
14399
14399
|
case "VarS":
|
|
14400
|
-
|
|
14400
|
+
h.declarations.forEach((c) => {
|
|
14401
14401
|
if (c.id in a.vars)
|
|
14402
14402
|
throw new Error(`Duplicated var declaration: '${c.id}'`);
|
|
14403
14403
|
a.vars[c.id] = {
|
|
@@ -14408,44 +14408,44 @@ function Ty(e, t, r, o) {
|
|
|
14408
14408
|
});
|
|
14409
14409
|
break;
|
|
14410
14410
|
case "FuncD":
|
|
14411
|
-
v(l,
|
|
14411
|
+
v(l, h);
|
|
14412
14412
|
break;
|
|
14413
14413
|
case "ImportD":
|
|
14414
14414
|
break;
|
|
14415
14415
|
default:
|
|
14416
|
-
throw new Error(`'${
|
|
14416
|
+
throw new Error(`'${h.type}' is not allowed in a code-behind module.`);
|
|
14417
14417
|
}
|
|
14418
14418
|
}), s(i), a;
|
|
14419
|
-
function s(
|
|
14419
|
+
function s(h) {
|
|
14420
14420
|
var T;
|
|
14421
|
-
const c = o(
|
|
14421
|
+
const c = o(h.name);
|
|
14422
14422
|
if (!((T = n == null ? void 0 : n[c]) != null && T.collectedImportsFrom)) {
|
|
14423
|
-
for (const b in
|
|
14424
|
-
const f = o(b), y =
|
|
14423
|
+
for (const b in h.imports) {
|
|
14424
|
+
const f = o(b), y = h.imports[b];
|
|
14425
14425
|
for (const w of Object.values(y))
|
|
14426
14426
|
w.type === "FuncD" && v(f, w);
|
|
14427
14427
|
}
|
|
14428
14428
|
n[c] ?? (n[c] = { collectedImportsFrom: !0 }), n[c].collectedImportsFrom = !0;
|
|
14429
|
-
for (let b of
|
|
14429
|
+
for (let b of h.importedModules)
|
|
14430
14430
|
s(b);
|
|
14431
14431
|
}
|
|
14432
14432
|
}
|
|
14433
|
-
function v(
|
|
14434
|
-
var w, _, H,
|
|
14433
|
+
function v(h, c) {
|
|
14434
|
+
var w, _, H, $;
|
|
14435
14435
|
var T;
|
|
14436
|
-
if (((_ = (w = n == null ? void 0 : n[
|
|
14436
|
+
if (((_ = (w = n == null ? void 0 : n[h]) == null ? void 0 : w.functions) == null ? void 0 : _[c.name]) !== void 0)
|
|
14437
14437
|
return;
|
|
14438
14438
|
if (c.name in a.functions)
|
|
14439
14439
|
throw new Error(`Duplicated function declaration: '${c.name}'`);
|
|
14440
|
-
const b = c.args.length === 1 ? `${c.args[0].source} => ${c.statement.source}` : `(${c.args.map((
|
|
14440
|
+
const b = c.args.length === 1 ? `${c.args[0].source} => ${c.statement.source}` : `(${c.args.map((W) => W.source).join(", ")}) => ${c.statement.source}`, f = {
|
|
14441
14441
|
type: "ArrowE",
|
|
14442
14442
|
args: c.args.slice(),
|
|
14443
14443
|
statement: c.statement,
|
|
14444
14444
|
closureContext: Sl({
|
|
14445
14445
|
blocks: [{ vars: {} }]
|
|
14446
14446
|
})
|
|
14447
|
-
}, y = (
|
|
14448
|
-
y != null && y.closureContext && delete y.closureContext, n[
|
|
14447
|
+
}, y = ($ = (H = f.closureContext[0]) == null ? void 0 : H.vars) == null ? void 0 : $[c.name];
|
|
14448
|
+
y != null && y.closureContext && delete y.closureContext, n[h] ?? (n[h] = { functions: {}, collectedImportsFrom: !1 }), (T = n[h]).functions ?? (T.functions = {}), n[h].functions[c.name] = {
|
|
14449
14449
|
[Ha]: !0,
|
|
14450
14450
|
source: b,
|
|
14451
14451
|
tree: f
|
|
@@ -14517,9 +14517,9 @@ const yy = {
|
|
|
14517
14517
|
field: "field"
|
|
14518
14518
|
};
|
|
14519
14519
|
function Iy(e, t, r, o = () => "") {
|
|
14520
|
-
const a = (
|
|
14520
|
+
const a = (x) => x.text ?? t(x), n = Ay(e), i = U(n), l = [], s = [];
|
|
14521
14521
|
return v(l, i);
|
|
14522
|
-
function v(
|
|
14522
|
+
function v(x, p) {
|
|
14523
14523
|
const g = kn(p, a, s);
|
|
14524
14524
|
if (g === vn)
|
|
14525
14525
|
return c(p);
|
|
@@ -14533,9 +14533,9 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14533
14533
|
}
|
|
14534
14534
|
}
|
|
14535
14535
|
};
|
|
14536
|
-
return T(
|
|
14536
|
+
return T(x, C, p), C;
|
|
14537
14537
|
}
|
|
14538
|
-
function x
|
|
14538
|
+
function h(x, p) {
|
|
14539
14539
|
const g = kn(p, a, s);
|
|
14540
14540
|
g === vn && fe("T006");
|
|
14541
14541
|
let C = {
|
|
@@ -14548,10 +14548,10 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14548
14548
|
}
|
|
14549
14549
|
}
|
|
14550
14550
|
};
|
|
14551
|
-
return T(
|
|
14551
|
+
return T(x, C, p), C;
|
|
14552
14552
|
}
|
|
14553
|
-
function c(
|
|
14554
|
-
const p = jr(
|
|
14553
|
+
function c(x) {
|
|
14554
|
+
const p = jr(x).map($), g = p.find((te) => te.name === "name");
|
|
14555
14555
|
g || fe("T003"), Ba.test(g.value) || fe("T004");
|
|
14556
14556
|
let C;
|
|
14557
14557
|
const L = p.filter((te) => te.startSegment === "method");
|
|
@@ -14563,7 +14563,7 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14563
14563
|
z.length > 0 && (q = {}, z.forEach((te) => {
|
|
14564
14564
|
q[te.name] = te.value;
|
|
14565
14565
|
}));
|
|
14566
|
-
const A = Jr(
|
|
14566
|
+
const A = Jr(x), B = A.filter(
|
|
14567
14567
|
(te) => te.kind === S.ElementNode && !(ir(te, a) in pr)
|
|
14568
14568
|
);
|
|
14569
14569
|
B.length === 0 && B.push(gn(""));
|
|
@@ -14577,33 +14577,33 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14577
14577
|
B.length > 1 || M.length > 0 ? E = Tn([...M, ...B]) : E = B[0], s.push(/* @__PURE__ */ new Map()), p.filter((te) => te.namespace === "xmlns").forEach((te) => {
|
|
14578
14578
|
Cn(s, E, te.unsegmentedName, te.value);
|
|
14579
14579
|
});
|
|
14580
|
-
let G =
|
|
14580
|
+
let G = h(
|
|
14581
14581
|
l,
|
|
14582
14582
|
E
|
|
14583
14583
|
);
|
|
14584
14584
|
s.pop();
|
|
14585
|
-
const
|
|
14585
|
+
const j = {
|
|
14586
14586
|
name: g.value,
|
|
14587
14587
|
component: G,
|
|
14588
14588
|
debug: {
|
|
14589
14589
|
source: {
|
|
14590
|
-
start:
|
|
14591
|
-
end:
|
|
14590
|
+
start: x.start,
|
|
14591
|
+
end: x.end,
|
|
14592
14592
|
fileId: r
|
|
14593
14593
|
}
|
|
14594
14594
|
}
|
|
14595
14595
|
};
|
|
14596
|
-
C && (
|
|
14596
|
+
C && (j.api = C), q && (G.vars = { ...G.vars, ...q }), G.debug = {
|
|
14597
14597
|
source: {
|
|
14598
14598
|
start: E.start,
|
|
14599
14599
|
end: E.end,
|
|
14600
14600
|
fileId: r
|
|
14601
14601
|
}
|
|
14602
14602
|
};
|
|
14603
|
-
const K = yn(
|
|
14604
|
-
return T(l,
|
|
14603
|
+
const K = yn(x, P);
|
|
14604
|
+
return T(l, j, K), j;
|
|
14605
14605
|
}
|
|
14606
|
-
function T(
|
|
14606
|
+
function T(x, p, g) {
|
|
14607
14607
|
var B;
|
|
14608
14608
|
const C = !Ot(p), L = jr(g);
|
|
14609
14609
|
if (s.push(/* @__PURE__ */ new Map()), L.forEach((P) => {
|
|
@@ -14626,14 +14626,14 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14626
14626
|
const M = ir(P, a);
|
|
14627
14627
|
if (!(C && P.kind === S.ElementNode && !(M in pr))) {
|
|
14628
14628
|
if (!(M in pr) && !C) {
|
|
14629
|
-
const E = x
|
|
14629
|
+
const E = h(x, P);
|
|
14630
14630
|
E && (p.children ? typeof p.children == "string" ? p.children = [p.children, E] : Array.isArray(p.children) && p.children.push(E) : p.children = [E]);
|
|
14631
14631
|
return;
|
|
14632
14632
|
}
|
|
14633
14633
|
switch (M) {
|
|
14634
14634
|
case "property":
|
|
14635
14635
|
_(
|
|
14636
|
-
|
|
14636
|
+
x,
|
|
14637
14637
|
p,
|
|
14638
14638
|
P,
|
|
14639
14639
|
(E) => {
|
|
@@ -14647,7 +14647,7 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14647
14647
|
return;
|
|
14648
14648
|
case "event":
|
|
14649
14649
|
_(
|
|
14650
|
-
|
|
14650
|
+
x,
|
|
14651
14651
|
p,
|
|
14652
14652
|
P,
|
|
14653
14653
|
(E) => {
|
|
@@ -14664,7 +14664,7 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14664
14664
|
return;
|
|
14665
14665
|
case pr.variable:
|
|
14666
14666
|
_(
|
|
14667
|
-
|
|
14667
|
+
x,
|
|
14668
14668
|
p,
|
|
14669
14669
|
P,
|
|
14670
14670
|
(E) => {
|
|
@@ -14677,14 +14677,14 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14677
14677
|
);
|
|
14678
14678
|
return;
|
|
14679
14679
|
case "loaders":
|
|
14680
|
-
w(
|
|
14680
|
+
w(x, p, P);
|
|
14681
14681
|
return;
|
|
14682
14682
|
case "uses":
|
|
14683
14683
|
H(p, P);
|
|
14684
14684
|
return;
|
|
14685
14685
|
case "method":
|
|
14686
14686
|
_(
|
|
14687
|
-
|
|
14687
|
+
x,
|
|
14688
14688
|
p,
|
|
14689
14689
|
P,
|
|
14690
14690
|
(E) => {
|
|
@@ -14717,11 +14717,11 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14717
14717
|
const A = ((B = p.scriptCollected) == null ? void 0 : B.moduleErrors) ?? {};
|
|
14718
14718
|
Object.keys(A).length > 0 && (p.scriptError = A);
|
|
14719
14719
|
}
|
|
14720
|
-
function b(
|
|
14721
|
-
const { namespace: g, startSegment: C, name: L, value: q, unsegmentedName: z } =
|
|
14720
|
+
function b(x, p) {
|
|
14721
|
+
const { namespace: g, startSegment: C, name: L, value: q, unsegmentedName: z } = $(p);
|
|
14722
14722
|
if (g === "xmlns")
|
|
14723
|
-
return Cn(s,
|
|
14724
|
-
if (!Ot(
|
|
14723
|
+
return Cn(s, x, z, q);
|
|
14724
|
+
if (!Ot(x)) {
|
|
14725
14725
|
if (C && C !== "method" && C !== "var") {
|
|
14726
14726
|
fe("T021");
|
|
14727
14727
|
return;
|
|
@@ -14733,31 +14733,31 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14733
14733
|
}
|
|
14734
14734
|
switch (L) {
|
|
14735
14735
|
case "id":
|
|
14736
|
-
|
|
14736
|
+
x.uid = q;
|
|
14737
14737
|
return;
|
|
14738
14738
|
case "testId":
|
|
14739
|
-
|
|
14739
|
+
x.testId = q;
|
|
14740
14740
|
return;
|
|
14741
14741
|
case "when":
|
|
14742
|
-
|
|
14742
|
+
x.when = q;
|
|
14743
14743
|
return;
|
|
14744
14744
|
default:
|
|
14745
14745
|
if (C === "var")
|
|
14746
|
-
|
|
14746
|
+
x.vars ?? (x.vars = {}), x.vars[L] = q;
|
|
14747
14747
|
else if (C === "method")
|
|
14748
|
-
|
|
14748
|
+
x.api ?? (x.api = {}), x.api[L] = q;
|
|
14749
14749
|
else if (C === "event")
|
|
14750
|
-
|
|
14750
|
+
x.events ?? (x.events = {}), x.events[L] = q;
|
|
14751
14751
|
else if (fn.test(L)) {
|
|
14752
|
-
|
|
14752
|
+
x.events ?? (x.events = {});
|
|
14753
14753
|
const B = L[2].toLowerCase() + L.substring(3);
|
|
14754
|
-
|
|
14754
|
+
x.events[B] = q;
|
|
14755
14755
|
} else
|
|
14756
|
-
|
|
14756
|
+
x.props ?? (x.props = {}), x.props[L] = q;
|
|
14757
14757
|
return;
|
|
14758
14758
|
}
|
|
14759
14759
|
}
|
|
14760
|
-
function f(
|
|
14760
|
+
function f(x, p) {
|
|
14761
14761
|
let g = null;
|
|
14762
14762
|
if (!p) return g;
|
|
14763
14763
|
let C = null;
|
|
@@ -14787,42 +14787,42 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14787
14787
|
return;
|
|
14788
14788
|
}
|
|
14789
14789
|
}
|
|
14790
|
-
let z = y(
|
|
14790
|
+
let z = y(x, L, q === "field");
|
|
14791
14791
|
if (!z)
|
|
14792
14792
|
return null;
|
|
14793
14793
|
C === "field" ? g[z.name] = z.value : g.push(z.value);
|
|
14794
14794
|
}), g;
|
|
14795
14795
|
}
|
|
14796
|
-
function y(
|
|
14796
|
+
function y(x, p, g = !0) {
|
|
14797
14797
|
const C = ir(p, a), L = Jr(p), q = L.filter(
|
|
14798
|
-
(
|
|
14798
|
+
(j) => j.kind === S.ElementNode && Ba.test(ir(j, a))
|
|
14799
14799
|
), z = L.filter(
|
|
14800
|
-
(
|
|
14801
|
-
), A = jr(p).map(
|
|
14800
|
+
(j) => j.kind === S.ElementNode && !Ba.test(ir(j, a))
|
|
14801
|
+
), A = jr(p).map($), B = A.filter((j) => Cy.indexOf(j.name) >= 0);
|
|
14802
14802
|
if (A.length > B.length)
|
|
14803
14803
|
return fe("T011", C), null;
|
|
14804
|
-
const P = B.find((
|
|
14804
|
+
const P = B.find((j) => j.name === "name");
|
|
14805
14805
|
if (g) {
|
|
14806
14806
|
if (!(P != null && P.value))
|
|
14807
14807
|
return fe("T012", C), null;
|
|
14808
14808
|
} else if (P)
|
|
14809
14809
|
return fe("T018", C), null;
|
|
14810
|
-
const M = P == null ? void 0 : P.value, E = B.find((
|
|
14810
|
+
const M = P == null ? void 0 : P.value, E = B.find((j) => j.name === "value");
|
|
14811
14811
|
if (E && E.value === void 0)
|
|
14812
14812
|
return fe("T019", C), null;
|
|
14813
14813
|
if (M && q.length >= 1) {
|
|
14814
14814
|
if (z.length > 0)
|
|
14815
14815
|
return fe("T020"), null;
|
|
14816
|
-
const
|
|
14816
|
+
const j = q.map((K) => h(x, K));
|
|
14817
14817
|
return {
|
|
14818
14818
|
name: M,
|
|
14819
|
-
value:
|
|
14819
|
+
value: j.length === 1 ? j[0] : j
|
|
14820
14820
|
};
|
|
14821
14821
|
}
|
|
14822
14822
|
let G = E == null ? void 0 : E.value;
|
|
14823
|
-
return G === null ? null : typeof G == "string" ? { name: M, value: G } : { name: M, value: f(
|
|
14823
|
+
return G === null ? null : typeof G == "string" ? { name: M, value: G } : { name: M, value: f(x, L) };
|
|
14824
14824
|
}
|
|
14825
|
-
function w(
|
|
14825
|
+
function w(x, p, g) {
|
|
14826
14826
|
var q;
|
|
14827
14827
|
if (!Ot(p)) {
|
|
14828
14828
|
fe("T009", "loaders");
|
|
@@ -14838,7 +14838,7 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14838
14838
|
fe("T010", "loader");
|
|
14839
14839
|
return;
|
|
14840
14840
|
}
|
|
14841
|
-
const A = x
|
|
14841
|
+
const A = h(x, z);
|
|
14842
14842
|
if (!A.uid) {
|
|
14843
14843
|
fe("T013");
|
|
14844
14844
|
return;
|
|
@@ -14858,8 +14858,8 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14858
14858
|
p.loaders ?? (p.loaders = []), p.loaders.push(A);
|
|
14859
14859
|
});
|
|
14860
14860
|
}
|
|
14861
|
-
function _(
|
|
14862
|
-
const z = y(
|
|
14861
|
+
function _(x, p, g, C, L, q) {
|
|
14862
|
+
const z = y(x, g);
|
|
14863
14863
|
if (!z)
|
|
14864
14864
|
return;
|
|
14865
14865
|
q == null || q((z == null ? void 0 : z.name) ?? "");
|
|
@@ -14867,59 +14867,59 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14867
14867
|
if ((z == null ? void 0 : z.value) !== void 0)
|
|
14868
14868
|
L(A, Go(C(A), B));
|
|
14869
14869
|
else {
|
|
14870
|
-
const P = Jr(g), M = f(
|
|
14870
|
+
const P = Jr(g), M = f(x, P);
|
|
14871
14871
|
let E = C(A);
|
|
14872
14872
|
E = Go(E, M), L(A, E);
|
|
14873
14873
|
}
|
|
14874
14874
|
}
|
|
14875
|
-
function H(
|
|
14876
|
-
if (!Ot(
|
|
14875
|
+
function H(x, p) {
|
|
14876
|
+
if (!Ot(x)) {
|
|
14877
14877
|
fe("T009", "uses");
|
|
14878
14878
|
return;
|
|
14879
14879
|
}
|
|
14880
|
-
const g = jr(p).map(
|
|
14880
|
+
const g = jr(p).map($), C = g.find((L) => L.name === "value");
|
|
14881
14881
|
if (!(C != null && C.value) || g.length !== 1) {
|
|
14882
14882
|
fe("T015", "uses");
|
|
14883
14883
|
return;
|
|
14884
14884
|
}
|
|
14885
|
-
|
|
14885
|
+
x.uses ?? (x.uses = C.value.split(",").map((L) => L.trim()));
|
|
14886
14886
|
}
|
|
14887
|
-
function
|
|
14888
|
-
let p =
|
|
14887
|
+
function $(x) {
|
|
14888
|
+
let p = x.children[0];
|
|
14889
14889
|
const g = p.children.length === 3;
|
|
14890
14890
|
let C;
|
|
14891
14891
|
g && (C = a(p.children[0]));
|
|
14892
14892
|
let L = a(p.children[p.children.length - 1]);
|
|
14893
14893
|
const q = L.split(".");
|
|
14894
|
-
q.length > 2 && fe("T007",
|
|
14894
|
+
q.length > 2 && fe("T007", x, p);
|
|
14895
14895
|
let z, A;
|
|
14896
|
-
q.length === 2 ? (A = q[0], z = q[1], z.trim() === "" && fe("T007",
|
|
14897
|
-
const B = a(
|
|
14896
|
+
q.length === 2 ? (A = q[0], z = q[1], z.trim() === "" && fe("T007", x, z)) : z = L;
|
|
14897
|
+
const B = a(x.children[2]), P = B.substring(1, B.length - 1);
|
|
14898
14898
|
return { namespace: C, startSegment: A, name: z, value: P, unsegmentedName: L };
|
|
14899
14899
|
}
|
|
14900
|
-
function
|
|
14901
|
-
for (let p of
|
|
14900
|
+
function W(x) {
|
|
14901
|
+
for (let p of x) {
|
|
14902
14902
|
const g = p.children[p.children.length - 1], C = N(a(g));
|
|
14903
14903
|
C !== null && (g.text = C);
|
|
14904
14904
|
}
|
|
14905
14905
|
}
|
|
14906
|
-
function
|
|
14907
|
-
const p = Jr(
|
|
14908
|
-
Ly(z), _y(z, a),
|
|
14906
|
+
function U(x) {
|
|
14907
|
+
const p = Jr(x), g = ir(x, a), L = !(g in pr) || g === "property", q = g !== "event" && g !== "method", z = jr(x);
|
|
14908
|
+
Ly(z), _y(z, a), W(z), R(p), O(p, q);
|
|
14909
14909
|
let A = !1, B = !1;
|
|
14910
14910
|
for (let G = 0; G < p.length; ++G) {
|
|
14911
|
-
const
|
|
14911
|
+
const j = p[G];
|
|
14912
14912
|
let K;
|
|
14913
|
-
if (
|
|
14913
|
+
if (j.kind == S.Script) {
|
|
14914
14914
|
B = !0;
|
|
14915
14915
|
continue;
|
|
14916
14916
|
}
|
|
14917
|
-
if (
|
|
14918
|
-
K =
|
|
14917
|
+
if (j.kind === S.ElementNode) {
|
|
14918
|
+
K = U(j), p[G] = K;
|
|
14919
14919
|
continue;
|
|
14920
14920
|
}
|
|
14921
|
-
let te = a(
|
|
14922
|
-
|
|
14921
|
+
let te = a(j);
|
|
14922
|
+
j.kind === S.StringLiteral ? te = te.slice(1, -1) : j.kind === S.CData && (A = !0), L ? A ? K = $y(te) : K = gn(te) : K = {
|
|
14923
14923
|
kind: S.TextNode,
|
|
14924
14924
|
text: te
|
|
14925
14925
|
}, p[G] = K;
|
|
@@ -14938,84 +14938,84 @@ function Iy(e, t, r, o = () => "") {
|
|
|
14938
14938
|
}
|
|
14939
14939
|
if (B && E) {
|
|
14940
14940
|
const G = Tn(M);
|
|
14941
|
-
return P.push(G), yn(
|
|
14941
|
+
return P.push(G), yn(x, P);
|
|
14942
14942
|
}
|
|
14943
|
-
return
|
|
14943
|
+
return x;
|
|
14944
14944
|
}
|
|
14945
|
-
function
|
|
14946
|
-
for (let p = 0; p <
|
|
14947
|
-
if (
|
|
14945
|
+
function Z(x) {
|
|
14946
|
+
for (let p = 0; p < x.length; ++p)
|
|
14947
|
+
if (x[p].kind === S.StringLiteral || x[p].kind === S.TextNode) {
|
|
14948
14948
|
const g = /[\f\n\r\t\v\u0020\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/g;
|
|
14949
|
-
|
|
14949
|
+
x[p].text = a(x[p]).replace(
|
|
14950
14950
|
g,
|
|
14951
14951
|
" "
|
|
14952
14952
|
);
|
|
14953
14953
|
}
|
|
14954
14954
|
}
|
|
14955
|
-
function V(
|
|
14956
|
-
for (let p = 0; p <
|
|
14957
|
-
|
|
14955
|
+
function V(x) {
|
|
14956
|
+
for (let p = 0; p < x.length; ++p)
|
|
14957
|
+
x[p].kind === S.CData && (x[p].text = a(x[p]).slice(ky, -3));
|
|
14958
14958
|
}
|
|
14959
|
-
function R(
|
|
14960
|
-
for (let p of
|
|
14959
|
+
function R(x) {
|
|
14960
|
+
for (let p of x)
|
|
14961
14961
|
if (p.kind === S.StringLiteral || p.kind === S.TextNode) {
|
|
14962
14962
|
const g = N(a(p));
|
|
14963
14963
|
g !== null && (p.text = g);
|
|
14964
14964
|
}
|
|
14965
14965
|
}
|
|
14966
|
-
function N(
|
|
14966
|
+
function N(x) {
|
|
14967
14967
|
let p = "", g = 0;
|
|
14968
|
-
for (let C = 0; C <
|
|
14969
|
-
if (
|
|
14970
|
-
switch (
|
|
14971
|
-
case
|
|
14972
|
-
switch (
|
|
14973
|
-
case
|
|
14974
|
-
|
|
14968
|
+
for (let C = 0; C < x.length; ++C)
|
|
14969
|
+
if (x.charCodeAt(C) === I.ampersand)
|
|
14970
|
+
switch (x.charCodeAt(C + 1)) {
|
|
14971
|
+
case I.a:
|
|
14972
|
+
switch (x.charCodeAt(C + 2)) {
|
|
14973
|
+
case I.m:
|
|
14974
|
+
x.charCodeAt(C + 3) === I.p && x.charCodeAt(C + 4) === I.semicolon && (p = p + x.substring(g, C) + "&", C += 4, g = C + 1);
|
|
14975
14975
|
break;
|
|
14976
|
-
case
|
|
14977
|
-
|
|
14976
|
+
case I.p:
|
|
14977
|
+
x.charCodeAt(C + 3) === I.o && x.charCodeAt(C + 4) === I.s && x.charCodeAt(C + 5) === I.semicolon && (p = p + x.substring(g, C) + "'", C += 5, g = C + 1);
|
|
14978
14978
|
break;
|
|
14979
14979
|
}
|
|
14980
14980
|
break;
|
|
14981
|
-
case
|
|
14982
|
-
|
|
14981
|
+
case I.g:
|
|
14982
|
+
x.charCodeAt(C + 2) === I.t && x.charCodeAt(C + 3) === I.semicolon && (p = p + x.substring(g, C) + ">", C += 3, g = C + 1);
|
|
14983
14983
|
break;
|
|
14984
|
-
case
|
|
14985
|
-
|
|
14984
|
+
case I.l:
|
|
14985
|
+
x.charCodeAt(C + 2) === I.t && x.charCodeAt(C + 3) === I.semicolon && (p = p + x.substring(g, C) + "<", C += 3, g = C + 1);
|
|
14986
14986
|
break;
|
|
14987
|
-
case
|
|
14988
|
-
|
|
14987
|
+
case I.q:
|
|
14988
|
+
x.charCodeAt(C + 2) === I.u && x.charCodeAt(C + 3) === I.o && x.charCodeAt(C + 4) === I.t && x.charCodeAt(C + 5) === I.semicolon && (p = p + x.substring(g, C) + '"', C += 5, g = C + 1);
|
|
14989
14989
|
break;
|
|
14990
|
-
case
|
|
14991
|
-
|
|
14990
|
+
case I.n:
|
|
14991
|
+
x.charCodeAt(C + 2) === I.b && x.charCodeAt(C + 3) === I.s && x.charCodeAt(C + 4) === I.p && x.charCodeAt(C + 5) === I.semicolon && (p = p + x.substring(g, C) + " ", C += 5, g = C + 1);
|
|
14992
14992
|
break;
|
|
14993
14993
|
}
|
|
14994
|
-
return g === 0 ? null : (p +=
|
|
14994
|
+
return g === 0 ? null : (p += x.substring(g), p);
|
|
14995
14995
|
}
|
|
14996
|
-
function
|
|
14997
|
-
p &&
|
|
14998
|
-
for (let g =
|
|
14999
|
-
const C =
|
|
15000
|
-
C.kind === S.StringLiteral && L.kind === S.CData ? (
|
|
14996
|
+
function O(x, p) {
|
|
14997
|
+
p && Z(x), V(x);
|
|
14998
|
+
for (let g = x.length - 1; g > 0; --g) {
|
|
14999
|
+
const C = x[g - 1], L = x[g];
|
|
15000
|
+
C.kind === S.StringLiteral && L.kind === S.CData ? (x[g - 1] = {
|
|
15001
15001
|
kind: S.CData,
|
|
15002
15002
|
text: a(C).slice(1, -1) + a(L)
|
|
15003
|
-
},
|
|
15003
|
+
}, x.pop()) : C.kind === S.CData && L.kind === S.StringLiteral ? (x[g - 1] = {
|
|
15004
15004
|
kind: S.CData,
|
|
15005
15005
|
text: a(C) + a(L).slice(1, -1)
|
|
15006
|
-
},
|
|
15006
|
+
}, x.pop()) : C.kind === S.CData && L.kind === S.TextNode ? (x[g - 1] = {
|
|
15007
15007
|
kind: S.CData,
|
|
15008
15008
|
text: a(C) + a(L)
|
|
15009
|
-
},
|
|
15009
|
+
}, x.pop()) : C.kind === S.CData && L.kind === S.CData ? (x[g - 1] = {
|
|
15010
15010
|
kind: S.CData,
|
|
15011
15011
|
text: a(C) + a(L)
|
|
15012
|
-
},
|
|
15012
|
+
}, x.pop()) : C.kind === S.TextNode && L.kind === S.TextNode ? (a(C).endsWith(" ") && a(L).startsWith(" ") && (C.text = a(C).trimEnd()), x[g - 1] = {
|
|
15013
15013
|
kind: S.TextNode,
|
|
15014
15014
|
text: a(C) + a(L)
|
|
15015
|
-
},
|
|
15015
|
+
}, x.pop()) : C.kind === S.TextNode && L.kind === S.CData && (x[g - 1] = {
|
|
15016
15016
|
kind: S.CData,
|
|
15017
15017
|
text: a(C) + a(L)
|
|
15018
|
-
},
|
|
15018
|
+
}, x.pop());
|
|
15019
15019
|
}
|
|
15020
15020
|
}
|
|
15021
15021
|
}
|
|
@@ -15206,9 +15206,9 @@ function Ny(e, t = 0, r) {
|
|
|
15206
15206
|
const { parse: o, getText: a } = fy(e), { node: n, errors: i } = o();
|
|
15207
15207
|
if (i.length > 0) {
|
|
15208
15208
|
const l = [];
|
|
15209
|
-
for (let
|
|
15210
|
-
e[
|
|
15211
|
-
` && l.push(
|
|
15209
|
+
for (let h = 0; h < e.length; ++h)
|
|
15210
|
+
e[h] === `
|
|
15211
|
+
` && l.push(h);
|
|
15212
15212
|
const s = Ry(i, l), v = Sn(n, a);
|
|
15213
15213
|
return { component: null, errors: s, erroneousCompoundComponentName: v };
|
|
15214
15214
|
}
|
|
@@ -15252,10 +15252,10 @@ function Ry(e, t) {
|
|
|
15252
15252
|
return e;
|
|
15253
15253
|
}
|
|
15254
15254
|
function Sn(e, t) {
|
|
15255
|
-
var s, v,
|
|
15256
|
-
const r = (s = e == null ? void 0 : e.children) == null ? void 0 : s[0], o = (
|
|
15255
|
+
var s, v, h, c, T, b;
|
|
15256
|
+
const r = (s = e == null ? void 0 : e.children) == null ? void 0 : s[0], o = (h = (v = r == null ? void 0 : r.children) == null ? void 0 : v.find(
|
|
15257
15257
|
(f) => f.kind === S.TagNameNode
|
|
15258
|
-
)) == null ? void 0 :
|
|
15258
|
+
)) == null ? void 0 : h.children, a = o == null ? void 0 : o[o.length - 1];
|
|
15259
15259
|
if (a === void 0 || t(a) !== "Component")
|
|
15260
15260
|
return;
|
|
15261
15261
|
const n = (T = (c = r.children) == null ? void 0 : c.find((f) => f.kind === S.AttributeListNode)) == null ? void 0 : T.children, i = (b = n == null ? void 0 : n.find(
|
|
@@ -15392,24 +15392,24 @@ ve(function({
|
|
|
15392
15392
|
controls: l = Qe.controls,
|
|
15393
15393
|
loop: s = Qe.loop,
|
|
15394
15394
|
startIndex: v = Qe.startIndex,
|
|
15395
|
-
prevIcon:
|
|
15395
|
+
prevIcon: h,
|
|
15396
15396
|
nextIcon: c,
|
|
15397
15397
|
transitionDuration: T = Qe.transitionDuration,
|
|
15398
15398
|
autoplayInterval: b = Qe.autoplayInterval,
|
|
15399
15399
|
stopAutoplayOnInteraction: f = Qe.stopAutoplayOnInteraction,
|
|
15400
15400
|
registerComponentApi: y
|
|
15401
15401
|
}, w) {
|
|
15402
|
-
const _ = he(null), [H,
|
|
15402
|
+
const _ = he(null), [H, $] = me(0), [W, U] = me([]), [Z, V] = me(!1), { carouselContextValue: R, carouselItems: N } = tC(), O = w ? sr(_, w) : _, [x, p] = Od(
|
|
15403
15403
|
{
|
|
15404
15404
|
axis: t === "horizontal" ? "x" : "y",
|
|
15405
15405
|
loop: s,
|
|
15406
15406
|
startIndex: v,
|
|
15407
15407
|
duration: T
|
|
15408
15408
|
},
|
|
15409
|
-
|
|
15410
|
-
), g =
|
|
15409
|
+
W
|
|
15410
|
+
), g = h || t === "horizontal" ? "arrowleft" : "arrowup", C = c || t === "horizontal" ? "arrowright" : "arrowdown";
|
|
15411
15411
|
ee(() => {
|
|
15412
|
-
i &&
|
|
15412
|
+
i && U([
|
|
15413
15413
|
zd({
|
|
15414
15414
|
delay: b,
|
|
15415
15415
|
stopOnInteraction: f
|
|
@@ -15437,14 +15437,14 @@ ve(function({
|
|
|
15437
15437
|
if (!K)
|
|
15438
15438
|
return;
|
|
15439
15439
|
const te = K.selectedScrollSnap();
|
|
15440
|
-
n(te),
|
|
15440
|
+
n(te), $(te), A(K.canScrollPrev()), P(K.canScrollNext());
|
|
15441
15441
|
},
|
|
15442
15442
|
[n]
|
|
15443
15443
|
), E = X(() => {
|
|
15444
15444
|
p && (p == null || p.scrollPrev());
|
|
15445
15445
|
}, [p]), G = X(() => {
|
|
15446
15446
|
p == null || p.scrollNext();
|
|
15447
|
-
}, [p]),
|
|
15447
|
+
}, [p]), j = X(
|
|
15448
15448
|
(K) => {
|
|
15449
15449
|
t === "horizontal" ? K.key === "ArrowLeft" ? (K.preventDefault(), E()) : K.key === "ArrowRight" && (K.preventDefault(), G()) : K.key === "ArrowUp" ? (K.preventDefault(), E()) : K.key === "ArrowDown" && (K.preventDefault(), G());
|
|
15450
15450
|
},
|
|
@@ -15464,18 +15464,18 @@ ve(function({
|
|
|
15464
15464
|
p == null || p.off("select", M);
|
|
15465
15465
|
};
|
|
15466
15466
|
}, [p, M]), ee(() => {
|
|
15467
|
-
_ != null && _.current && _.current.addEventListener("keydown",
|
|
15468
|
-
}, [
|
|
15467
|
+
_ != null && _.current && _.current.addEventListener("keydown", j);
|
|
15468
|
+
}, [O, j]), /* @__PURE__ */ m(eC.Provider, { value: R, children: /* @__PURE__ */ J(
|
|
15469
15469
|
"div",
|
|
15470
15470
|
{
|
|
15471
15471
|
style: o,
|
|
15472
|
-
ref:
|
|
15472
|
+
ref: O,
|
|
15473
15473
|
className: le(ft.carousel),
|
|
15474
15474
|
role: "region",
|
|
15475
15475
|
tabIndex: -1,
|
|
15476
15476
|
"aria-roledescription": "carousel",
|
|
15477
15477
|
children: [
|
|
15478
|
-
/* @__PURE__ */ m("div", { ref:
|
|
15478
|
+
/* @__PURE__ */ m("div", { ref: x, className: ft.carouselContentWrapper, children: /* @__PURE__ */ m(
|
|
15479
15479
|
"div",
|
|
15480
15480
|
{
|
|
15481
15481
|
className: le(ft.carouselContent, {
|
|
@@ -15486,7 +15486,7 @@ ve(function({
|
|
|
15486
15486
|
}
|
|
15487
15487
|
) }),
|
|
15488
15488
|
l && /* @__PURE__ */ J("div", { className: ft.controls, children: [
|
|
15489
|
-
i && /* @__PURE__ */ m("button", { className: ft.controlButton, onClick: L, children:
|
|
15489
|
+
i && /* @__PURE__ */ m("button", { className: ft.controlButton, onClick: L, children: Z ? /* @__PURE__ */ m(ke, { name: "pause" }) : /* @__PURE__ */ m(ke, { name: "play" }) }),
|
|
15490
15490
|
/* @__PURE__ */ m("button", { className: ft.controlButton, disabled: !z, onClick: E, children: /* @__PURE__ */ m(ke, { name: g }) }),
|
|
15491
15491
|
/* @__PURE__ */ m("button", { className: ft.controlButton, onClick: G, disabled: !B, children: /* @__PURE__ */ m(ke, { name: C }) })
|
|
15492
15492
|
] }),
|