@strapi/design-system 2.1.0 → 2.1.1
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/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Select/MultiSelect.d.ts.map +1 -1
- package/dist/components/Select/SelectParts.d.ts +1 -0
- package/dist/components/Select/SelectParts.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/index.js +128 -126
- package/dist/index.mjs +408 -397
- package/dist/themes/utils.d.ts.map +1 -1
- package/package.json +6 -5
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { styled as x, css as D, keyframes as fe, useTheme as Xa, createGlobalStyle as Ja, ThemeProvider as Qa } from "styled-components";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import { useEffect as
|
|
4
|
-
import { useCallbackRef as
|
|
5
|
-
import { DateFormatter as ih, getLocalTimeZone as Dn, today as br, parseAbsolute as nh, toCalendarDate as rh, minDate as On, maxDate as En, startOfMonth as oh, startOfWeek as
|
|
3
|
+
import { useEffect as gs, useLayoutEffect as Za, useRef as Yr, useState as Mn, startTransition as Xr, useMemo as ps, Children as eh, useCallback as th } from "react";
|
|
4
|
+
import { useCallbackRef as ms } from "@radix-ui/react-use-callback-ref";
|
|
5
|
+
import { DateFormatter as ih, getLocalTimeZone as Dn, today as br, parseAbsolute as nh, toCalendarDate as rh, minDate as On, maxDate as En, startOfMonth as oh, startOfWeek as bs, getDayOfWeek as sh, isSameDay as ys, endOfMonth as lh, parseAbsoluteToLocal as ah, toCalendarDateTime as hh } from "@internationalized/date";
|
|
6
6
|
import { jsx as u, jsxs as $, Fragment as yr } from "react/jsx-runtime";
|
|
7
7
|
import * as rt from "@radix-ui/react-tooltip";
|
|
8
8
|
import { Provider as ch } from "@radix-ui/react-tooltip";
|
|
9
9
|
import * as dh from "@radix-ui/react-dismissable-layer";
|
|
10
|
-
import { useCallbackRef as
|
|
10
|
+
import { useCallbackRef as ws, Combobox as Oe, Select as Le, composeEventHandlers as wt, usePrev as uh } from "@strapi/ui-primitives";
|
|
11
11
|
import { composeEventHandlers as N1, useCallbackRef as F1, useCollator as W1, useFilter as H1 } from "@strapi/ui-primitives";
|
|
12
12
|
import * as xi from "@radix-ui/react-accordion";
|
|
13
|
-
import { CaretDown as Ze, Cross as kt, CheckCircle as fh, WarningCircle as gh, Information as ph, Loader as
|
|
13
|
+
import { CaretDown as Ze, Cross as kt, CheckCircle as fh, WarningCircle as gh, Information as ph, Loader as xs, ExternalLink as mh, ChevronRight as wr, Minus as bh, ChevronLeft as vs, Calendar as yh, Clock as wh, Search as Ss } from "@strapi/icons";
|
|
14
14
|
import * as xr from "@radix-ui/react-avatar";
|
|
15
15
|
import * as Ee from "@radix-ui/react-dropdown-menu";
|
|
16
|
-
import * as
|
|
16
|
+
import * as Cs from "@radix-ui/react-checkbox";
|
|
17
17
|
import { flushSync as xh, createPortal as vh } from "react-dom";
|
|
18
18
|
import * as nn from "@radix-ui/react-scroll-area";
|
|
19
19
|
import * as tt from "@radix-ui/react-alert-dialog";
|
|
@@ -26,11 +26,11 @@ import { useCodeMirror as Eh } from "@uiw/react-codemirror";
|
|
|
26
26
|
import * as $t from "@radix-ui/react-dialog";
|
|
27
27
|
import { NumberParser as Ih, NumberFormatter as Ph } from "@internationalized/number";
|
|
28
28
|
import * as _t from "@radix-ui/react-popover";
|
|
29
|
-
import * as
|
|
29
|
+
import * as ks from "@radix-ui/react-progress";
|
|
30
30
|
import * as vr from "@radix-ui/react-radio-group";
|
|
31
|
-
import * as
|
|
31
|
+
import * as $s from "@radix-ui/react-switch";
|
|
32
32
|
import * as rn from "@radix-ui/react-tabs";
|
|
33
|
-
import { cloneDeep as
|
|
33
|
+
import { cloneDeep as Jr, assignWith as Lh, merge as Bh } from "lodash";
|
|
34
34
|
const Gt = (i, e) => {
|
|
35
35
|
const t = m.createContext(e), n = (o) => {
|
|
36
36
|
const { children: s, ...l } = o, a = m.useMemo(() => l, Object.values(l));
|
|
@@ -53,7 +53,7 @@ function Ri(i) {
|
|
|
53
53
|
function Wi(i, e, t) {
|
|
54
54
|
return i && e && zh(i, e) ? i[e] : t;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const Qr = {
|
|
57
57
|
padding: ["padding-block-start", "padding-inline-end", "padding-block-end", "padding-inline-start"],
|
|
58
58
|
paddingTop: "padding-block-start",
|
|
59
59
|
paddingRight: "padding-inline-end",
|
|
@@ -140,15 +140,15 @@ function Fh(i, e) {
|
|
|
140
140
|
const Bt = (i, e) => {
|
|
141
141
|
const t = Object.entries(i).reduce(
|
|
142
142
|
(n, r) => {
|
|
143
|
-
const [o, s] = r, l = Fh(o, e), a = Object.prototype.hasOwnProperty.call(
|
|
143
|
+
const [o, s] = r, l = Fh(o, e), a = Object.prototype.hasOwnProperty.call(Qr, o) ? Qr[o] : o;
|
|
144
144
|
return a && (s || s === 0) && (typeof s == "object" && !Array.isArray(s) ? Object.entries(s).forEach(([c, h]) => {
|
|
145
145
|
n[c] = {
|
|
146
146
|
...n[c],
|
|
147
|
-
...
|
|
147
|
+
...Zr(a, h, l)
|
|
148
148
|
};
|
|
149
149
|
}) : n.initial = {
|
|
150
150
|
...n.initial,
|
|
151
|
-
...
|
|
151
|
+
...Zr(a, s, l)
|
|
152
152
|
}), n;
|
|
153
153
|
},
|
|
154
154
|
{
|
|
@@ -167,7 +167,7 @@ const Bt = (i, e) => {
|
|
|
167
167
|
return n;
|
|
168
168
|
}, []).join(`
|
|
169
169
|
`);
|
|
170
|
-
},
|
|
170
|
+
}, Zr = (i, e, t) => {
|
|
171
171
|
if (Array.isArray(i) && Array.isArray(e)) {
|
|
172
172
|
const n = Nh(e);
|
|
173
173
|
return i.reduce((r, o, s) => (r[o] = Wi(t, n[s], n[s]), r), {});
|
|
@@ -351,12 +351,12 @@ const Bt = (i, e) => {
|
|
|
351
351
|
},
|
|
352
352
|
i
|
|
353
353
|
)};
|
|
354
|
-
`, Vh = "alpha", jh = "beta", qh = "delta", Kh = "epsilon",
|
|
354
|
+
`, Vh = "alpha", jh = "beta", qh = "delta", Kh = "epsilon", eo = "omega", Uh = "pi", _h = "sigma", As = D`
|
|
355
355
|
display: block;
|
|
356
356
|
white-space: nowrap;
|
|
357
357
|
overflow: hidden;
|
|
358
358
|
text-overflow: ellipsis;
|
|
359
|
-
`, Gh = ({ $variant: i =
|
|
359
|
+
`, Gh = ({ $variant: i = eo, theme: e, $fontSize: t, $lineHeight: n }) => {
|
|
360
360
|
const r = t && Bt({ fontSize: t }, e), o = n && Bt({ lineHeight: n }, e);
|
|
361
361
|
switch (i) {
|
|
362
362
|
case Vh:
|
|
@@ -472,7 +472,7 @@ const Bt = (i, e) => {
|
|
|
472
472
|
}
|
|
473
473
|
`}
|
|
474
474
|
`;
|
|
475
|
-
case
|
|
475
|
+
case eo:
|
|
476
476
|
return D`
|
|
477
477
|
/* -------------------------------------------------------------
|
|
478
478
|
* Font Size
|
|
@@ -581,7 +581,7 @@ const Bt = (i, e) => {
|
|
|
581
581
|
}
|
|
582
582
|
), Yh = x(R)`
|
|
583
583
|
${({ $variant: i, $fontSize: e, $lineHeight: t, theme: n }) => Gh({ $variant: i, theme: n, $fontSize: e, $lineHeight: t })}
|
|
584
|
-
${({ $ellipsis: i }) => i ?
|
|
584
|
+
${({ $ellipsis: i }) => i ? As : ""}
|
|
585
585
|
|
|
586
586
|
${({ theme: i, ...e }) => Bt(
|
|
587
587
|
{
|
|
@@ -600,7 +600,9 @@ const Bt = (i, e) => {
|
|
|
600
600
|
${(i) => i.$size === "S" ? D`
|
|
601
601
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
602
602
|
border: solid 1px ${(e) => e.theme.colors.neutral200};
|
|
603
|
-
` : D
|
|
603
|
+
` : D`
|
|
604
|
+
|
|
605
|
+
`}
|
|
604
606
|
`, Zh = m.forwardRef((i, e) => {
|
|
605
607
|
const { size: t } = Sr("Item");
|
|
606
608
|
return /* @__PURE__ */ u(ec, { $size: t, "data-size": t, ref: e, ...i });
|
|
@@ -648,10 +650,10 @@ const Bt = (i, e) => {
|
|
|
648
650
|
`, tc = m.forwardRef(
|
|
649
651
|
({ caretPosition: i = "left", description: e, icon: t, iconProps: n, children: r, ...o }, s) => {
|
|
650
652
|
const { size: l } = Sr("Trigger");
|
|
651
|
-
return /* @__PURE__ */ $(
|
|
653
|
+
return /* @__PURE__ */ $(Rs, { $caretPosition: i, $size: l, ref: s, ...o, children: [
|
|
652
654
|
i === "left" ? /* @__PURE__ */ u(_i, { $size: l, children: /* @__PURE__ */ u(Ze, { width: l === "S" ? "1.2rem" : "1.6rem", height: l === "S" ? "1.2rem" : "1.6rem" }) }) : null,
|
|
653
655
|
/* @__PURE__ */ $(T, { tag: "span", gap: 2, overflow: "hidden", children: [
|
|
654
|
-
t && l === "S" ? /* @__PURE__ */ u(
|
|
656
|
+
t && l === "S" ? /* @__PURE__ */ u(Ts, { children: /* @__PURE__ */ u(t, { ...n }) }) : null,
|
|
655
657
|
/* @__PURE__ */ $(T, { alignItems: "flex-start", direction: "column", tag: "span", ref: s, overflow: "hidden", children: [
|
|
656
658
|
/* @__PURE__ */ u(
|
|
657
659
|
I,
|
|
@@ -670,7 +672,7 @@ const Bt = (i, e) => {
|
|
|
670
672
|
i === "right" ? /* @__PURE__ */ u(_i, { $size: l, children: /* @__PURE__ */ u(Ze, { width: l === "S" ? "1.2rem" : "1.6rem", height: l === "S" ? "1.2rem" : "1.6rem" }) }) : null
|
|
671
673
|
] });
|
|
672
674
|
}
|
|
673
|
-
),
|
|
675
|
+
), Ts = x(R)`
|
|
674
676
|
color: ${(i) => i.theme.colors.neutral500};
|
|
675
677
|
display: flex;
|
|
676
678
|
|
|
@@ -693,7 +695,7 @@ const Bt = (i, e) => {
|
|
|
693
695
|
transform ${(i) => i.theme.motion.timings[200]} ${(i) => i.theme.motion.easings.authenticMotion},
|
|
694
696
|
${(i) => i.theme.transitions.backgroundColor};
|
|
695
697
|
}
|
|
696
|
-
`,
|
|
698
|
+
`, Rs = x(xi.Trigger)`
|
|
697
699
|
display: flex;
|
|
698
700
|
align-items: center;
|
|
699
701
|
justify-content: ${(i) => i.$caretPosition === "left" ? "flex-start" : "space-between"};
|
|
@@ -724,8 +726,8 @@ const Bt = (i, e) => {
|
|
|
724
726
|
}
|
|
725
727
|
`, ic = m.forwardRef((i, e) => {
|
|
726
728
|
const { size: t } = Sr("Trigger");
|
|
727
|
-
return /* @__PURE__ */ u(
|
|
728
|
-
}),
|
|
729
|
+
return /* @__PURE__ */ u(Ms, { $size: t, ...i, ref: e });
|
|
730
|
+
}), Ms = x(T).attrs((i) => ({
|
|
729
731
|
...i,
|
|
730
732
|
tag: "span"
|
|
731
733
|
}))`
|
|
@@ -756,10 +758,10 @@ const Bt = (i, e) => {
|
|
|
756
758
|
&[data-state='open'] {
|
|
757
759
|
background-color: ${(i) => i.theme.colors.primary100};
|
|
758
760
|
|
|
759
|
-
& > ${
|
|
761
|
+
& > ${Rs} {
|
|
760
762
|
color: ${(i) => i.theme.colors.primary600};
|
|
761
763
|
|
|
762
|
-
& ${
|
|
764
|
+
& ${Ts} {
|
|
763
765
|
color: ${(i) => i.theme.colors.primary600};
|
|
764
766
|
}
|
|
765
767
|
|
|
@@ -768,7 +770,7 @@ const Bt = (i, e) => {
|
|
|
768
770
|
}
|
|
769
771
|
}
|
|
770
772
|
|
|
771
|
-
& > ${
|
|
773
|
+
& > ${Ms} > button {
|
|
772
774
|
color: ${(i) => i.theme.colors.primary600};
|
|
773
775
|
}
|
|
774
776
|
}
|
|
@@ -866,7 +868,7 @@ const Bt = (i, e) => {
|
|
|
866
868
|
] });
|
|
867
869
|
};
|
|
868
870
|
zt.displayName = "AccessibleIcon";
|
|
869
|
-
const
|
|
871
|
+
const Ds = (i) => {
|
|
870
872
|
switch (i) {
|
|
871
873
|
case "danger":
|
|
872
874
|
return "danger100";
|
|
@@ -877,7 +879,7 @@ const Ms = (i) => {
|
|
|
877
879
|
default:
|
|
878
880
|
return "primary100";
|
|
879
881
|
}
|
|
880
|
-
}, cc = (i) =>
|
|
882
|
+
}, cc = (i) => Ds(i).replace("100", "200"), In = ({ theme: i, $variant: e }) => e === "danger" ? i.colors.danger700 : e === "success" ? i.colors.success700 : e === "warning" ? i.colors.warning700 : i.colors.primary700, dc = x(R)`
|
|
881
883
|
${on};
|
|
882
884
|
`, uc = x(T)`
|
|
883
885
|
svg {
|
|
@@ -909,7 +911,7 @@ const Ms = (i) => {
|
|
|
909
911
|
T,
|
|
910
912
|
{
|
|
911
913
|
alignItems: "flex-start",
|
|
912
|
-
background:
|
|
914
|
+
background: Ds(t),
|
|
913
915
|
borderColor: cc(t),
|
|
914
916
|
shadow: "filterShadow",
|
|
915
917
|
gap: 3,
|
|
@@ -953,7 +955,7 @@ const Ms = (i) => {
|
|
|
953
955
|
);
|
|
954
956
|
function We({ prop: i, defaultProp: e, onChange: t = () => {
|
|
955
957
|
} }) {
|
|
956
|
-
const [n, r] =
|
|
958
|
+
const [n, r] = Os({ defaultProp: e, onChange: t }), o = i !== void 0, s = o ? i : n, l = ms(t), a = m.useCallback(
|
|
957
959
|
(c) => {
|
|
958
960
|
if (o) {
|
|
959
961
|
const d = typeof c == "function" ? c(i) : c;
|
|
@@ -965,8 +967,8 @@ function We({ prop: i, defaultProp: e, onChange: t = () => {
|
|
|
965
967
|
);
|
|
966
968
|
return [s, a];
|
|
967
969
|
}
|
|
968
|
-
function
|
|
969
|
-
const t = m.useState(i), [n] = t, r = m.useRef(n), o =
|
|
970
|
+
function Os({ defaultProp: i, onChange: e }) {
|
|
971
|
+
const t = m.useState(i), [n] = t, r = m.useRef(n), o = ms(e);
|
|
970
972
|
return m.useEffect(() => {
|
|
971
973
|
r.current !== n && (o(n), r.current = n);
|
|
972
974
|
}, [n, r, o]), t;
|
|
@@ -1110,7 +1112,7 @@ const Pn = {
|
|
|
1110
1112
|
opacity: 0;
|
|
1111
1113
|
}
|
|
1112
1114
|
`
|
|
1113
|
-
}, ui = 32,
|
|
1115
|
+
}, ui = 32, to = 2, mc = m.forwardRef(
|
|
1114
1116
|
({ onLoadingStatusChange: i, delayMs: e = 600, src: t, alt: n, fallback: r, preview: o = !1, ...s }, l) => {
|
|
1115
1117
|
const [a, c] = We({
|
|
1116
1118
|
onChange: i
|
|
@@ -1136,7 +1138,7 @@ const Pn = {
|
|
|
1136
1138
|
f ? /* @__PURE__ */ u(rt.Portal, { children: /* @__PURE__ */ u(wc, { side: "top", sideOffset: 4, children: /* @__PURE__ */ u(xc, { src: t, alt: n }) }) }) : null
|
|
1137
1139
|
] });
|
|
1138
1140
|
}
|
|
1139
|
-
),
|
|
1141
|
+
), Es = D`
|
|
1140
1142
|
display: inline-flex;
|
|
1141
1143
|
align-items: center;
|
|
1142
1144
|
justify-content: center;
|
|
@@ -1145,7 +1147,7 @@ const Pn = {
|
|
|
1145
1147
|
user-select: none;
|
|
1146
1148
|
overflow: hidden;
|
|
1147
1149
|
border-radius: 50%;
|
|
1148
|
-
`,
|
|
1150
|
+
`, Is = D`
|
|
1149
1151
|
width: 100%;
|
|
1150
1152
|
height: 100%;
|
|
1151
1153
|
object-fit: cover;
|
|
@@ -1153,7 +1155,7 @@ const Pn = {
|
|
|
1153
1155
|
`, Bn = x(xr.Root)`
|
|
1154
1156
|
position: relative;
|
|
1155
1157
|
z-index: 0;
|
|
1156
|
-
${
|
|
1158
|
+
${Es}
|
|
1157
1159
|
width: ${ui / 10}rem;
|
|
1158
1160
|
height: ${ui / 10}rem;
|
|
1159
1161
|
/* TODO: we should get the user email & hash it to turn it into a hex-value so different emails can consistently get a different background */
|
|
@@ -1165,18 +1167,18 @@ const Pn = {
|
|
|
1165
1167
|
${(i) => i.theme.motion.easings.authenticMotion};
|
|
1166
1168
|
}
|
|
1167
1169
|
`, yc = x(xr.Image)`
|
|
1168
|
-
${
|
|
1170
|
+
${Is}
|
|
1169
1171
|
`, wc = x(rt.Content)`
|
|
1170
|
-
${
|
|
1171
|
-
width: ${ui *
|
|
1172
|
-
height: ${ui *
|
|
1172
|
+
${Es}
|
|
1173
|
+
width: ${ui * to / 10}rem;
|
|
1174
|
+
height: ${ui * to / 10}rem;
|
|
1173
1175
|
|
|
1174
1176
|
@media (prefers-reduced-motion: no-preference) {
|
|
1175
1177
|
animation: ${te.fadeIn} ${(i) => i.theme.motion.timings[200]}
|
|
1176
1178
|
${(i) => i.theme.motion.easings.authenticMotion};
|
|
1177
1179
|
}
|
|
1178
1180
|
`, xc = x.img`
|
|
1179
|
-
${
|
|
1181
|
+
${Is}
|
|
1180
1182
|
`, vc = m.forwardRef((i, e) => /* @__PURE__ */ u(Sc, { ...i, ref: e, tag: "div" })), Sc = x(T)`
|
|
1181
1183
|
& > ${Bn} + ${Bn} {
|
|
1182
1184
|
margin-left: -${ui / 10 / 2}rem;
|
|
@@ -1185,7 +1187,7 @@ const Pn = {
|
|
|
1185
1187
|
__proto__: null,
|
|
1186
1188
|
Group: vc,
|
|
1187
1189
|
Item: mc
|
|
1188
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1190
|
+
}, Symbol.toStringTag, { value: "Module" })), Ps = ({
|
|
1189
1191
|
active: i = !1,
|
|
1190
1192
|
size: e = "M",
|
|
1191
1193
|
textColor: t = "neutral600",
|
|
@@ -1248,8 +1250,8 @@ const Pn = {
|
|
|
1248
1250
|
...n
|
|
1249
1251
|
}
|
|
1250
1252
|
)
|
|
1251
|
-
),
|
|
1252
|
-
|
|
1253
|
+
), Ls = () => /* @__PURE__ */ u(R, { "aria-hidden": !0, paddingLeft: 1, paddingRight: 1, children: /* @__PURE__ */ u(I, { variant: "pi", textColor: "neutral500", children: "/" }) });
|
|
1254
|
+
Ls.displayName = "Divider";
|
|
1253
1255
|
const $c = x(T)`
|
|
1254
1256
|
// CrumbLinks do have padding-x, because they need to have a
|
|
1255
1257
|
// interaction effect, which mis-aligns the breadcrumbs on the left.
|
|
@@ -1265,7 +1267,7 @@ const $c = x(T)`
|
|
|
1265
1267
|
const l = r.length > 1 && s + 1 < r.length;
|
|
1266
1268
|
return /* @__PURE__ */ $(T, { inline: !0, tag: "li", children: [
|
|
1267
1269
|
o,
|
|
1268
|
-
l && /* @__PURE__ */ u(
|
|
1270
|
+
l && /* @__PURE__ */ u(Ls, {})
|
|
1269
1271
|
] });
|
|
1270
1272
|
}) }) });
|
|
1271
1273
|
}
|
|
@@ -1304,13 +1306,13 @@ const Nt = (i) => i.replaceAll(":", "");
|
|
|
1304
1306
|
function Dc(i, e) {
|
|
1305
1307
|
typeof i == "function" ? i(e) : i != null && (i.current = e);
|
|
1306
1308
|
}
|
|
1307
|
-
function
|
|
1309
|
+
function Bs(...i) {
|
|
1308
1310
|
return (e) => i.forEach((t) => Dc(t, e));
|
|
1309
1311
|
}
|
|
1310
1312
|
function ve(...i) {
|
|
1311
|
-
return m.useCallback(
|
|
1313
|
+
return m.useCallback(Bs(...i), i);
|
|
1312
1314
|
}
|
|
1313
|
-
const Oc = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), He = Oc() ?
|
|
1315
|
+
const Oc = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), He = Oc() ? gs : Za, Ec = m.useId || (() => {
|
|
1314
1316
|
});
|
|
1315
1317
|
let Ic = 0;
|
|
1316
1318
|
const Se = (i) => {
|
|
@@ -1319,7 +1321,7 @@ const Se = (i) => {
|
|
|
1319
1321
|
i || t((n) => n ?? String(Ic++));
|
|
1320
1322
|
}, [i]), (i == null ? void 0 : i.toString()) ?? (e || "");
|
|
1321
1323
|
}, Si = (i, e, { selectorToWatch: t, skipWhen: n = !1 }) => {
|
|
1322
|
-
const r =
|
|
1324
|
+
const r = ws(e);
|
|
1323
1325
|
m.useEffect(() => {
|
|
1324
1326
|
if (n || !i.current) return;
|
|
1325
1327
|
const o = {
|
|
@@ -1334,12 +1336,12 @@ const Se = (i) => {
|
|
|
1334
1336
|
l.disconnect();
|
|
1335
1337
|
};
|
|
1336
1338
|
}, [n, r, t, i]);
|
|
1337
|
-
}, Cr = "success-light", kr = "danger-light", sn = "default", Ci = "tertiary", ki = "secondary",
|
|
1339
|
+
}, Cr = "success-light", kr = "danger-light", sn = "default", Ci = "tertiary", ki = "secondary", zs = "danger", Ns = "success", ln = "ghost", $r = [Cr, kr], Pc = [sn, Ci, ki, zs, Ns, ln, ...$r], Lc = ["XS", "S", "M", "L"], De = (i) => i === Cr || i === kr ? `${i.substring(0, i.lastIndexOf("-"))}` : i === Ci ? "neutral" : i === sn || i === ki || Pc.every((e) => e !== i) ? "primary" : `${i}`, Fs = ({ theme: i }) => D`
|
|
1338
1340
|
border: 1px solid ${i.colors.neutral200};
|
|
1339
1341
|
background: ${i.colors.neutral150};
|
|
1340
1342
|
color: ${i.colors.neutral600};
|
|
1341
1343
|
cursor: default;
|
|
1342
|
-
`,
|
|
1344
|
+
`, Ws = ({ theme: i, $variant: e }) => [...$r, ki].includes(e) ? D`
|
|
1343
1345
|
background-color: ${i.colors.neutral0};
|
|
1344
1346
|
` : e === Ci ? D`
|
|
1345
1347
|
background-color: ${i.colors.neutral100};
|
|
@@ -1351,7 +1353,7 @@ const Se = (i) => {
|
|
|
1351
1353
|
` : D`
|
|
1352
1354
|
border: 1px solid ${i.colors[`${De(e)}500`]};
|
|
1353
1355
|
background: ${i.colors[`${De(e)}500`]};
|
|
1354
|
-
`,
|
|
1356
|
+
`, Hs = ({ theme: i, $variant: e }) => [...$r, ki].includes(e) ? D`
|
|
1355
1357
|
background-color: ${i.colors.neutral0};
|
|
1356
1358
|
border: 1px solid ${i.colors[`${De(e)}600`]};
|
|
1357
1359
|
color: ${i.colors[`${De(e)}600`]};
|
|
@@ -1360,7 +1362,7 @@ const Se = (i) => {
|
|
|
1360
1362
|
` : D`
|
|
1361
1363
|
border: 1px solid ${i.colors[`${De(e)}600`]};
|
|
1362
1364
|
background: ${i.colors[`${De(e)}600`]};
|
|
1363
|
-
`,
|
|
1365
|
+
`, Vs = ({ theme: i, $variant: e }) => {
|
|
1364
1366
|
switch (e) {
|
|
1365
1367
|
case kr:
|
|
1366
1368
|
case Cr:
|
|
@@ -1386,8 +1388,8 @@ const Se = (i) => {
|
|
|
1386
1388
|
fill: ${i.colors.neutral500};
|
|
1387
1389
|
}
|
|
1388
1390
|
`;
|
|
1391
|
+
case Ns:
|
|
1389
1392
|
case zs:
|
|
1390
|
-
case Bs:
|
|
1391
1393
|
return D`
|
|
1392
1394
|
border: 1px solid ${i.colors[`${De(e)}600`]};
|
|
1393
1395
|
background: ${i.colors[`${De(e)}600`]};
|
|
@@ -1453,7 +1455,7 @@ const Se = (i) => {
|
|
|
1453
1455
|
to {
|
|
1454
1456
|
transform: rotate(359deg);
|
|
1455
1457
|
}
|
|
1456
|
-
`, zc = x(
|
|
1458
|
+
`, zc = x(xs)`
|
|
1457
1459
|
animation: ${Bc} 2s infinite linear;
|
|
1458
1460
|
will-change: transform;
|
|
1459
1461
|
`, Nc = x(T)`
|
|
@@ -1475,18 +1477,18 @@ const Se = (i) => {
|
|
|
1475
1477
|
`);
|
|
1476
1478
|
}}
|
|
1477
1479
|
text-decoration: none;
|
|
1478
|
-
${
|
|
1480
|
+
${Vs}
|
|
1479
1481
|
|
|
1480
1482
|
&:hover {
|
|
1481
|
-
${
|
|
1483
|
+
${Ws}
|
|
1482
1484
|
}
|
|
1483
1485
|
|
|
1484
1486
|
&:active {
|
|
1485
|
-
${
|
|
1487
|
+
${Hs}
|
|
1486
1488
|
}
|
|
1487
1489
|
|
|
1488
1490
|
&[aria-disabled='true'] {
|
|
1489
|
-
${
|
|
1491
|
+
${Fs}
|
|
1490
1492
|
}
|
|
1491
1493
|
|
|
1492
1494
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -1617,24 +1619,24 @@ const Se = (i) => {
|
|
|
1617
1619
|
`;
|
|
1618
1620
|
}
|
|
1619
1621
|
}}
|
|
1620
|
-
${
|
|
1622
|
+
${Vs}
|
|
1621
1623
|
${(i) => i.$variant === "tertiary" ? D`
|
|
1622
1624
|
color: ${i.theme.colors.neutral500};
|
|
1623
1625
|
` : ""}
|
|
1624
1626
|
|
|
1625
1627
|
&:hover {
|
|
1626
|
-
${
|
|
1628
|
+
${Ws}
|
|
1627
1629
|
${(i) => i.$variant === "tertiary" ? D`
|
|
1628
1630
|
color: ${i.theme.colors.neutral600};
|
|
1629
1631
|
` : ""}
|
|
1630
1632
|
}
|
|
1631
1633
|
|
|
1632
1634
|
&:active {
|
|
1633
|
-
${
|
|
1635
|
+
${Hs}
|
|
1634
1636
|
}
|
|
1635
1637
|
|
|
1636
1638
|
&[aria-disabled='true'] {
|
|
1637
|
-
${
|
|
1639
|
+
${Fs}
|
|
1638
1640
|
}
|
|
1639
1641
|
|
|
1640
1642
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -1752,7 +1754,7 @@ const Se = (i) => {
|
|
|
1752
1754
|
({ children: i, intersectionId: e, onCloseAutoFocus: t, popoverPlacement: n = "bottom-start", ...r }, o) => {
|
|
1753
1755
|
const [s, l] = n.split("-");
|
|
1754
1756
|
return /* @__PURE__ */ u(Ee.Portal, { children: /* @__PURE__ */ u(Uc, { align: l, side: s, loop: !0, onCloseAutoFocus: t, asChild: !0, children: /* @__PURE__ */ $(
|
|
1755
|
-
|
|
1757
|
+
js,
|
|
1756
1758
|
{
|
|
1757
1759
|
ref: o,
|
|
1758
1760
|
direction: "column",
|
|
@@ -1775,7 +1777,7 @@ const Se = (i) => {
|
|
|
1775
1777
|
}
|
|
1776
1778
|
) }) });
|
|
1777
1779
|
}
|
|
1778
|
-
),
|
|
1780
|
+
), js = x(T)`
|
|
1779
1781
|
scrollbar-width: none;
|
|
1780
1782
|
-ms-overflow-style: none;
|
|
1781
1783
|
-webkit-overflow-scrolling: touch;
|
|
@@ -1821,7 +1823,7 @@ const Se = (i) => {
|
|
|
1821
1823
|
children: l.children
|
|
1822
1824
|
}
|
|
1823
1825
|
) : /* @__PURE__ */ $(
|
|
1824
|
-
|
|
1826
|
+
Ks,
|
|
1825
1827
|
{
|
|
1826
1828
|
cursor: "pointer",
|
|
1827
1829
|
color: Nn(s, e),
|
|
@@ -1836,7 +1838,7 @@ const Se = (i) => {
|
|
|
1836
1838
|
r && /* @__PURE__ */ u(T, { tag: "span", color: li(s, e), "aria-hidden": !0, children: r })
|
|
1837
1839
|
]
|
|
1838
1840
|
}
|
|
1839
|
-
) }),
|
|
1841
|
+
) }), qs = ({ theme: i, $variant: e }) => D`
|
|
1840
1842
|
text-align: left;
|
|
1841
1843
|
width: 100%;
|
|
1842
1844
|
border-radius: ${i.borderRadius};
|
|
@@ -1859,8 +1861,8 @@ const Se = (i) => {
|
|
|
1859
1861
|
}
|
|
1860
1862
|
|
|
1861
1863
|
color: ${i.colors[Nn(e, !1)]};
|
|
1862
|
-
`,
|
|
1863
|
-
${({ theme: i, $variant: e }) =>
|
|
1864
|
+
`, Ks = x(T)`
|
|
1865
|
+
${({ theme: i, $variant: e }) => qs({ theme: i, $variant: e })}
|
|
1864
1866
|
`, Gc = x(Wc)`
|
|
1865
1867
|
/* We include this here again because typically when people use OptionLink they provide an as prop which cancels the Box props */
|
|
1866
1868
|
color: ${({ theme: i, color: e }) => Wi(i.colors, e, void 0)};
|
|
@@ -1890,7 +1892,7 @@ const Se = (i) => {
|
|
|
1890
1892
|
}
|
|
1891
1893
|
}
|
|
1892
1894
|
|
|
1893
|
-
${({ theme: i, $variant: e }) =>
|
|
1895
|
+
${({ theme: i, $variant: e }) => qs({ theme: i, $variant: e })}
|
|
1894
1896
|
`, Yc = x(R)`
|
|
1895
1897
|
/* Negative horizontal margin to compensate Menu.Content's padding */
|
|
1896
1898
|
margin: ${({ theme: i }) => i.spaces[1]} -${({ theme: i }) => i.spaces[1]};
|
|
@@ -1917,12 +1919,12 @@ const Se = (i) => {
|
|
|
1917
1919
|
/* @__PURE__ */ u(wr, { fill: "neutral500", height: "1.2rem", width: "1.2rem" })
|
|
1918
1920
|
]
|
|
1919
1921
|
}
|
|
1920
|
-
) })), td = x(
|
|
1922
|
+
) })), td = x(Ks)`
|
|
1921
1923
|
&[data-state='open'] {
|
|
1922
1924
|
background-color: ${({ theme: i }) => i.colors.primary100};
|
|
1923
1925
|
}
|
|
1924
1926
|
`, id = m.forwardRef((i, e) => /* @__PURE__ */ u(Ee.Portal, { children: /* @__PURE__ */ u(Ee.SubContent, { sideOffset: 8, asChild: !0, children: /* @__PURE__ */ u(
|
|
1925
|
-
|
|
1927
|
+
js,
|
|
1926
1928
|
{
|
|
1927
1929
|
ref: e,
|
|
1928
1930
|
direction: "column",
|
|
@@ -1938,17 +1940,17 @@ const Se = (i) => {
|
|
|
1938
1940
|
overflow: "auto",
|
|
1939
1941
|
...i
|
|
1940
1942
|
}
|
|
1941
|
-
) }) })),
|
|
1943
|
+
) }) })), Us = jc, _s = qc, Gs = Kc, Ys = _c, nd = Xc, rd = Jc, od = Zc, sd = ed, ld = id, Am = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1942
1944
|
__proto__: null,
|
|
1943
|
-
Content:
|
|
1944
|
-
Item:
|
|
1945
|
+
Content: Gs,
|
|
1946
|
+
Item: Ys,
|
|
1945
1947
|
Label: rd,
|
|
1946
|
-
Root:
|
|
1948
|
+
Root: Us,
|
|
1947
1949
|
Separator: nd,
|
|
1948
1950
|
SubContent: ld,
|
|
1949
1951
|
SubRoot: od,
|
|
1950
1952
|
SubTrigger: sd,
|
|
1951
|
-
Trigger:
|
|
1953
|
+
Trigger: _s
|
|
1952
1954
|
}, Symbol.toStringTag, { value: "Module" })), ad = m.forwardRef(
|
|
1953
1955
|
({ children: i, onOpen: e, onClose: t, popoverPlacement: n, onReachEnd: r, ...o }, s) => {
|
|
1954
1956
|
const l = m.useRef(null), a = ve(s, l), c = m.useRef(null), [h, d] = m.useState(!1), f = (w) => {
|
|
@@ -1963,12 +1965,12 @@ const Se = (i) => {
|
|
|
1963
1965
|
* not be null. Because it uses a portal that (sensibly) is not mounted 24/7.
|
|
1964
1966
|
*/
|
|
1965
1967
|
skipWhen: !h
|
|
1966
|
-
}), /* @__PURE__ */ $(
|
|
1967
|
-
/* @__PURE__ */ u(
|
|
1968
|
-
/* @__PURE__ */ u(
|
|
1968
|
+
}), /* @__PURE__ */ $(Us, { onOpenChange: g, children: [
|
|
1969
|
+
/* @__PURE__ */ u(_s, { ref: a, ...o, children: o.label }),
|
|
1970
|
+
/* @__PURE__ */ u(Gs, { ref: c, intersectionId: b, popoverPlacement: n, children: i })
|
|
1969
1971
|
] });
|
|
1970
1972
|
}
|
|
1971
|
-
), Tm =
|
|
1973
|
+
), Tm = Ys, hd = x(ad)`
|
|
1972
1974
|
padding: ${({ theme: i }) => `${i.spaces[1]} ${i.spaces[2]}`};
|
|
1973
1975
|
height: unset;
|
|
1974
1976
|
|
|
@@ -1980,9 +1982,9 @@ const Se = (i) => {
|
|
|
1980
1982
|
({ children: i, ...e }, t) => /* @__PURE__ */ u(hd, { ref: t, endIcon: null, size: "S", ...e, children: i })
|
|
1981
1983
|
);
|
|
1982
1984
|
cd.displayName = "CrumbSimpleMenu";
|
|
1983
|
-
const
|
|
1985
|
+
const Xs = m.createContext({ id: "" }), Js = () => m.useContext(Xs), Rm = m.forwardRef(({ id: i, ...e }, t) => {
|
|
1984
1986
|
const n = Se(i), r = m.useMemo(() => ({ id: n }), [n]);
|
|
1985
|
-
return /* @__PURE__ */ u(
|
|
1987
|
+
return /* @__PURE__ */ u(Xs.Provider, { value: r, children: /* @__PURE__ */ u(
|
|
1986
1988
|
R,
|
|
1987
1989
|
{
|
|
1988
1990
|
ref: t,
|
|
@@ -2031,7 +2033,7 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2031
2033
|
`, pd = x.div`
|
|
2032
2034
|
margin-left: auto;
|
|
2033
2035
|
flex-shrink: 0;
|
|
2034
|
-
`, md = x(
|
|
2036
|
+
`, md = x(Ps)`
|
|
2035
2037
|
margin-left: ${({ theme: i }) => i.spaces[1]};
|
|
2036
2038
|
`, Dm = (i) => /* @__PURE__ */ u(pd, { children: /* @__PURE__ */ u(md, { ...i }) }), Om = (i) => /* @__PURE__ */ u(R, { paddingLeft: 3, paddingRight: 3, paddingTop: 2, paddingBottom: 2, children: /* @__PURE__ */ u(T, { ...i, alignItems: "flex-start" }) }), bd = ({ fill: i, ...e }) => {
|
|
2037
2039
|
const { colors: t } = Xa();
|
|
@@ -2046,7 +2048,7 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2046
2048
|
children: /* @__PURE__ */ u("path", { d: "M29.0613 10.0613L13.0613 26.0613C12.9219 26.2011 12.7563 26.3121 12.574 26.3878C12.3917 26.4635 12.1962 26.5024 11.9988 26.5024C11.8013 26.5024 11.6059 26.4635 11.4235 26.3878C11.2412 26.3121 11.0756 26.2011 10.9363 26.0613L3.93626 19.0613C3.79673 18.9217 3.68605 18.7561 3.61053 18.5738C3.53502 18.3915 3.49615 18.1961 3.49615 17.9988C3.49615 17.8014 3.53502 17.606 3.61053 17.4237C3.68605 17.2414 3.79673 17.0758 3.93626 16.9363C4.07579 16.7967 4.24143 16.686 4.42374 16.6105C4.60604 16.535 4.80143 16.4962 4.99876 16.4962C5.19608 16.4962 5.39147 16.535 5.57378 16.6105C5.75608 16.686 5.92173 16.7967 6.06126 16.9363L12 22.875L26.9388 7.93876C27.2205 7.65697 27.6027 7.49866 28.0013 7.49866C28.3998 7.49866 28.782 7.65697 29.0638 7.93876C29.3455 8.22055 29.5039 8.60274 29.5039 9.00126C29.5039 9.39977 29.3455 9.78197 29.0638 10.0638L29.0613 10.0613Z" })
|
|
2047
2049
|
}
|
|
2048
2050
|
);
|
|
2049
|
-
},
|
|
2051
|
+
}, io = m.forwardRef(
|
|
2050
2052
|
({ defaultChecked: i, checked: e, onCheckedChange: t, ...n }, r) => {
|
|
2051
2053
|
const o = m.useRef(null), [s, l] = We({
|
|
2052
2054
|
defaultProp: i,
|
|
@@ -2058,7 +2060,7 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2058
2060
|
s === "indeterminate" ? /* @__PURE__ */ u(bh, { fill: "neutral0" }) : null
|
|
2059
2061
|
] }) });
|
|
2060
2062
|
}
|
|
2061
|
-
), yd = x(
|
|
2063
|
+
), yd = x(Cs.Root)`
|
|
2062
2064
|
background: ${(i) => i.theme.colors.neutral0};
|
|
2063
2065
|
width: 2rem;
|
|
2064
2066
|
height: 2rem;
|
|
@@ -2095,7 +2097,7 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2095
2097
|
min-width: 44px;
|
|
2096
2098
|
min-height: 44px;
|
|
2097
2099
|
}
|
|
2098
|
-
`, wd = x(
|
|
2100
|
+
`, wd = x(Cs.Indicator)`
|
|
2099
2101
|
display: inline-flex;
|
|
2100
2102
|
pointer-events: auto !important;
|
|
2101
2103
|
width: 100%;
|
|
@@ -2110,11 +2112,11 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2110
2112
|
`, Tr = m.forwardRef(({ children: i, ...e }, t) => {
|
|
2111
2113
|
const n = Se(e.id);
|
|
2112
2114
|
return i ? /* @__PURE__ */ $(T, { gap: 2, children: [
|
|
2113
|
-
/* @__PURE__ */ u(
|
|
2115
|
+
/* @__PURE__ */ u(io, { id: n, ...e }),
|
|
2114
2116
|
/* @__PURE__ */ u(I, { tag: "label", textColor: "neutral800", htmlFor: n, children: i })
|
|
2115
|
-
] }) : /* @__PURE__ */ u(
|
|
2117
|
+
] }) : /* @__PURE__ */ u(io, { ref: t, ...e });
|
|
2116
2118
|
}), Em = m.forwardRef((i, e) => {
|
|
2117
|
-
const { id: t } =
|
|
2119
|
+
const { id: t } = Js();
|
|
2118
2120
|
return /* @__PURE__ */ u(dd, { position: "start", children: /* @__PURE__ */ u(Tr, { "aria-labelledby": `${t}-title`, ...i, ref: e }) });
|
|
2119
2121
|
}), xd = x(R)`
|
|
2120
2122
|
word-break: break-all;
|
|
@@ -2135,7 +2137,7 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2135
2137
|
children: /* @__PURE__ */ u(I, { variant: "pi", textColor: "neutral0", children: i })
|
|
2136
2138
|
}
|
|
2137
2139
|
), Bm = (i) => {
|
|
2138
|
-
const { id: e } =
|
|
2140
|
+
const { id: e } = Js();
|
|
2139
2141
|
return /* @__PURE__ */ u(I, { variant: "pi", id: `${e}-title`, textColor: "neutral800", fontWeight: "bold", tag: "div", ...i });
|
|
2140
2142
|
}, zm = (i) => /* @__PURE__ */ u(I, { variant: "pi", ...i, textColor: "neutral600", tag: "div" }), Y = {
|
|
2141
2143
|
DOWN: "ArrowDown",
|
|
@@ -2154,7 +2156,7 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2154
2156
|
grid-template-areas: 'startAction slides endAction';
|
|
2155
2157
|
`, Cd = x(T)`
|
|
2156
2158
|
grid-area: slides;
|
|
2157
|
-
`,
|
|
2159
|
+
`, no = x(R)`
|
|
2158
2160
|
grid-area: ${({ $area: i }) => i};
|
|
2159
2161
|
|
|
2160
2162
|
&:focus svg path,
|
|
@@ -2189,8 +2191,8 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2189
2191
|
position: "relative",
|
|
2190
2192
|
children: [
|
|
2191
2193
|
g && g.length > 1 && /* @__PURE__ */ $(yr, { children: [
|
|
2192
|
-
/* @__PURE__ */ u(
|
|
2193
|
-
/* @__PURE__ */ u(
|
|
2194
|
+
/* @__PURE__ */ u(no, { tag: "button", onClick: o, $area: "startAction", ref: d, type: "button", children: /* @__PURE__ */ u(zt, { label: s, children: /* @__PURE__ */ u(vs, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) }),
|
|
2195
|
+
/* @__PURE__ */ u(no, { tag: "button", onClick: r, $area: "endAction", ref: f, type: "button", children: /* @__PURE__ */ u(zt, { label: n, children: /* @__PURE__ */ u(wr, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) })
|
|
2194
2196
|
] }),
|
|
2195
2197
|
/* @__PURE__ */ u(Cd, { "aria-live": "polite", paddingLeft: 2, paddingRight: 2, width: "100%", overflow: "hidden", children: g }),
|
|
2196
2198
|
i
|
|
@@ -2208,18 +2210,18 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2208
2210
|
button: {
|
|
2209
2211
|
S: {
|
|
2210
2212
|
initial: "4rem",
|
|
2211
|
-
|
|
2213
|
+
medium: "3.2rem"
|
|
2212
2214
|
},
|
|
2213
2215
|
M: {
|
|
2214
2216
|
initial: "4.4rem",
|
|
2215
|
-
|
|
2217
|
+
medium: "3.6rem"
|
|
2216
2218
|
},
|
|
2217
2219
|
L: {
|
|
2218
2220
|
initial: "4.8rem",
|
|
2219
|
-
|
|
2221
|
+
medium: "4rem"
|
|
2220
2222
|
}
|
|
2221
2223
|
}
|
|
2222
|
-
},
|
|
2224
|
+
}, Qs = {
|
|
2223
2225
|
sizes: $d,
|
|
2224
2226
|
zIndices: {
|
|
2225
2227
|
navigation: 100,
|
|
@@ -2306,10 +2308,10 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2306
2308
|
popupShadow: "0px 2px 15px rgba(33, 33, 52, 0.1)",
|
|
2307
2309
|
tableShadow: "0px 1px 4px rgba(33, 33, 52, 0.1)"
|
|
2308
2310
|
}
|
|
2309
|
-
},
|
|
2311
|
+
}, Zs = {
|
|
2310
2312
|
colors: Ad.color,
|
|
2311
2313
|
shadows: Td.shadow,
|
|
2312
|
-
...
|
|
2314
|
+
...Qs
|
|
2313
2315
|
}, Rd = {
|
|
2314
2316
|
color: {
|
|
2315
2317
|
alternative100: "#181826",
|
|
@@ -2369,8 +2371,8 @@ const Ys = m.createContext({ id: "" }), Xs = () => m.useContext(Ys), Rm = m.forw
|
|
|
2369
2371
|
}, Nm = {
|
|
2370
2372
|
colors: Rd.color,
|
|
2371
2373
|
shadows: Md.shadow,
|
|
2372
|
-
...
|
|
2373
|
-
},
|
|
2374
|
+
...Qs
|
|
2375
|
+
}, ro = (i) => `
|
|
2374
2376
|
${i}
|
|
2375
2377
|
|
|
2376
2378
|
The following is an example:
|
|
@@ -2379,18 +2381,18 @@ The following is an example:
|
|
|
2379
2381
|
import { lightTheme, extendTheme } from '@strapi/design-system';
|
|
2380
2382
|
|
|
2381
2383
|
const myCustomTheme = extendTheme(lightTheme, {
|
|
2382
|
-
${Object.keys(
|
|
2384
|
+
${Object.keys(Zs).map((e) => `${e}: /* put the overrides for the ${e} key */,`).join(`
|
|
2383
2385
|
`)}
|
|
2384
2386
|
})
|
|
2385
2387
|
`, Fm = (i, e) => {
|
|
2386
2388
|
if (!Ri(i)) {
|
|
2387
|
-
const o =
|
|
2389
|
+
const o = ro(
|
|
2388
2390
|
"The first argument should be an object and corresponds to the theme you want to extend."
|
|
2389
2391
|
);
|
|
2390
2392
|
throw new Error(o);
|
|
2391
2393
|
}
|
|
2392
2394
|
if (!Ri(e)) {
|
|
2393
|
-
const o =
|
|
2395
|
+
const o = ro(
|
|
2394
2396
|
"The second argument should be an object and corresponds to the keys of the theme you want to override."
|
|
2395
2397
|
);
|
|
2396
2398
|
throw new Error(o);
|
|
@@ -2401,7 +2403,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2401
2403
|
if (Ri(o) && Ri(s))
|
|
2402
2404
|
return Bh(o, s);
|
|
2403
2405
|
}
|
|
2404
|
-
const n =
|
|
2406
|
+
const n = Jr(i ?? {}), r = Jr(e ?? {});
|
|
2405
2407
|
return Lh(n, r, t), n;
|
|
2406
2408
|
}, Wm = (i) => ({ theme: e, size: t }) => e.sizes[i][t], at = (i = "&") => ({ theme: e, $hasError: t = !1 }) => D`
|
|
2407
2409
|
outline: none;
|
|
@@ -2595,10 +2597,10 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2595
2597
|
color: ${i.colors.neutral600};
|
|
2596
2598
|
background: ${i.colors.neutral150};
|
|
2597
2599
|
` : void 0};
|
|
2598
|
-
`,
|
|
2600
|
+
`, el = () => {
|
|
2599
2601
|
const { id: i, hint: e, error: t } = Ce("Hint");
|
|
2600
2602
|
return !e || t ? null : /* @__PURE__ */ u(I, { variant: "pi", tag: "p", id: `${i}-hint`, textColor: "neutral600", children: e });
|
|
2601
|
-
},
|
|
2603
|
+
}, tl = () => {
|
|
2602
2604
|
const { id: i, error: e } = Ce("Error");
|
|
2603
2605
|
return !e || typeof e != "string" ? null : /* @__PURE__ */ u(I, { variant: "pi", tag: "p", id: `${i}-error`, textColor: "danger600", "data-strapi-field-error": !0, children: e });
|
|
2604
2606
|
}, Bd = m.forwardRef(({ label: i, children: e, ...t }, n) => /* @__PURE__ */ u(
|
|
@@ -2619,8 +2621,8 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2619
2621
|
`, Hm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2620
2622
|
__proto__: null,
|
|
2621
2623
|
Action: Bd,
|
|
2622
|
-
Error:
|
|
2623
|
-
Hint:
|
|
2624
|
+
Error: tl,
|
|
2625
|
+
Hint: el,
|
|
2624
2626
|
Input: an,
|
|
2625
2627
|
Label: Rr,
|
|
2626
2628
|
Root: xt,
|
|
@@ -2663,8 +2665,8 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2663
2665
|
children: e
|
|
2664
2666
|
}
|
|
2665
2667
|
),
|
|
2666
|
-
/* @__PURE__ */ u(
|
|
2667
|
-
/* @__PURE__ */ u(
|
|
2668
|
+
/* @__PURE__ */ u(el, {}),
|
|
2669
|
+
/* @__PURE__ */ u(tl, {})
|
|
2668
2670
|
] }) });
|
|
2669
2671
|
}
|
|
2670
2672
|
), jm = ({ horizontal: i = !0, ...e }) => /* @__PURE__ */ u(
|
|
@@ -2679,13 +2681,13 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2679
2681
|
gap: 1,
|
|
2680
2682
|
...e
|
|
2681
2683
|
}
|
|
2682
|
-
),
|
|
2683
|
-
${
|
|
2684
|
+
), oo = x(R)`
|
|
2685
|
+
${As}
|
|
2684
2686
|
`, qm = (i) => {
|
|
2685
2687
|
const [e, t] = m.useState(!1), n = () => {
|
|
2686
2688
|
t(!0);
|
|
2687
2689
|
};
|
|
2688
|
-
return e ? /* @__PURE__ */ u(Ar, { label: i.alt ?? "", children: /* @__PURE__ */ u(
|
|
2690
|
+
return e ? /* @__PURE__ */ u(Ar, { label: i.alt ?? "", children: /* @__PURE__ */ u(oo, { tag: "img", height: "100%", maxWidth: "100%", ...i }) }) : /* @__PURE__ */ u(oo, { tag: "img", height: "100%", maxWidth: "100%", ...i, onError: n });
|
|
2689
2691
|
}, Nd = x(T)`
|
|
2690
2692
|
display: ${({ $selected: i }) => i ? "flex" : "none"};
|
|
2691
2693
|
`, Km = ({ label: i, children: e, selected: t = !1, ...n }) => /* @__PURE__ */ u(
|
|
@@ -2702,7 +2704,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2702
2704
|
...n,
|
|
2703
2705
|
children: e
|
|
2704
2706
|
}
|
|
2705
|
-
),
|
|
2707
|
+
), il = D`
|
|
2706
2708
|
font-size: 1.6rem;
|
|
2707
2709
|
line-height: 2.4rem;
|
|
2708
2710
|
|
|
@@ -2710,7 +2712,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2710
2712
|
font-size: 1.4rem;
|
|
2711
2713
|
line-height: 2.2rem;
|
|
2712
2714
|
}
|
|
2713
|
-
`,
|
|
2715
|
+
`, Mr = ({
|
|
2714
2716
|
$size: i = "M",
|
|
2715
2717
|
$hasValue: e = !1,
|
|
2716
2718
|
$hasClear: t = !1,
|
|
@@ -2741,8 +2743,8 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2741
2743
|
}, hn = m.forwardRef(
|
|
2742
2744
|
({ children: i, viewportRef: e, ...t }, n) => /* @__PURE__ */ $(Fd, { ref: n, ...t, children: [
|
|
2743
2745
|
/* @__PURE__ */ u(Wd, { ref: e, children: i }),
|
|
2744
|
-
/* @__PURE__ */ u(
|
|
2745
|
-
/* @__PURE__ */ u(
|
|
2746
|
+
/* @__PURE__ */ u(so, { orientation: "vertical", children: /* @__PURE__ */ u(lo, {}) }),
|
|
2747
|
+
/* @__PURE__ */ u(so, { orientation: "horizontal", children: /* @__PURE__ */ u(lo, {}) })
|
|
2746
2748
|
] })
|
|
2747
2749
|
), Fd = x(nn.Root)`
|
|
2748
2750
|
width: 100%;
|
|
@@ -2751,7 +2753,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2751
2753
|
display: flex;
|
|
2752
2754
|
`, Wd = x(nn.Viewport)`
|
|
2753
2755
|
min-width: 100%;
|
|
2754
|
-
`,
|
|
2756
|
+
`, so = x(nn.Scrollbar)`
|
|
2755
2757
|
display: flex;
|
|
2756
2758
|
/* ensures no selection */
|
|
2757
2759
|
user-select: none;
|
|
@@ -2768,7 +2770,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2768
2770
|
height: 0.4rem;
|
|
2769
2771
|
margin: 0.4rem;
|
|
2770
2772
|
}
|
|
2771
|
-
`,
|
|
2773
|
+
`, lo = x(nn.Thumb)`
|
|
2772
2774
|
position: relative;
|
|
2773
2775
|
flex: 1;
|
|
2774
2776
|
background-color: ${(i) => i.theme.colors.neutral150};
|
|
@@ -2838,7 +2840,7 @@ function Mt(i, e, t) {
|
|
|
2838
2840
|
n = s;
|
|
2839
2841
|
}, o;
|
|
2840
2842
|
}
|
|
2841
|
-
function
|
|
2843
|
+
function ao(i, e) {
|
|
2842
2844
|
if (i === void 0)
|
|
2843
2845
|
throw new Error("Unexpected undefined");
|
|
2844
2846
|
return i;
|
|
@@ -2848,7 +2850,7 @@ const Kd = (i, e) => Math.abs(i - e) < 1.01, Ud = (i, e, t) => {
|
|
|
2848
2850
|
return function(...r) {
|
|
2849
2851
|
i.clearTimeout(n), n = i.setTimeout(() => e.apply(this, r), t);
|
|
2850
2852
|
};
|
|
2851
|
-
},
|
|
2853
|
+
}, ho = (i) => {
|
|
2852
2854
|
const { offsetWidth: e, offsetHeight: t } = i;
|
|
2853
2855
|
return { width: e, height: t };
|
|
2854
2856
|
}, _d = (i) => i, Gd = (i) => {
|
|
@@ -2867,7 +2869,7 @@ const Kd = (i, e) => Math.abs(i - e) < 1.01, Ud = (i, e, t) => {
|
|
|
2867
2869
|
const { width: l, height: a } = s;
|
|
2868
2870
|
e({ width: Math.round(l), height: Math.round(a) });
|
|
2869
2871
|
};
|
|
2870
|
-
if (r(
|
|
2872
|
+
if (r(ho(t)), !n.ResizeObserver)
|
|
2871
2873
|
return () => {
|
|
2872
2874
|
};
|
|
2873
2875
|
const o = new n.ResizeObserver((s) => {
|
|
@@ -2880,16 +2882,16 @@ const Kd = (i, e) => Math.abs(i - e) < 1.01, Ud = (i, e, t) => {
|
|
|
2880
2882
|
return;
|
|
2881
2883
|
}
|
|
2882
2884
|
}
|
|
2883
|
-
r(
|
|
2885
|
+
r(ho(t));
|
|
2884
2886
|
};
|
|
2885
2887
|
i.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(l) : l();
|
|
2886
2888
|
});
|
|
2887
2889
|
return o.observe(t, { box: "border-box" }), () => {
|
|
2888
2890
|
o.unobserve(t);
|
|
2889
2891
|
};
|
|
2890
|
-
},
|
|
2892
|
+
}, co = {
|
|
2891
2893
|
passive: !0
|
|
2892
|
-
},
|
|
2894
|
+
}, uo = typeof window > "u" ? !0 : "onscrollend" in window, Xd = (i, e) => {
|
|
2893
2895
|
const t = i.scrollElement;
|
|
2894
2896
|
if (!t)
|
|
2895
2897
|
return;
|
|
@@ -2897,7 +2899,7 @@ const Kd = (i, e) => Math.abs(i - e) < 1.01, Ud = (i, e, t) => {
|
|
|
2897
2899
|
if (!n)
|
|
2898
2900
|
return;
|
|
2899
2901
|
let r = 0;
|
|
2900
|
-
const o = i.options.useScrollendEvent &&
|
|
2902
|
+
const o = i.options.useScrollendEvent && uo ? () => {
|
|
2901
2903
|
} : Ud(
|
|
2902
2904
|
n,
|
|
2903
2905
|
() => {
|
|
@@ -2908,9 +2910,9 @@ const Kd = (i, e) => Math.abs(i - e) < 1.01, Ud = (i, e, t) => {
|
|
|
2908
2910
|
const { horizontal: d, isRtl: f } = i.options;
|
|
2909
2911
|
r = d ? t.scrollLeft * (f && -1 || 1) : t.scrollTop, o(), e(r, h);
|
|
2910
2912
|
}, l = s(!0), a = s(!1);
|
|
2911
|
-
a(), t.addEventListener("scroll", l,
|
|
2912
|
-
const c = i.options.useScrollendEvent &&
|
|
2913
|
-
return c && t.addEventListener("scrollend", a,
|
|
2913
|
+
a(), t.addEventListener("scroll", l, co);
|
|
2914
|
+
const c = i.options.useScrollendEvent && uo;
|
|
2915
|
+
return c && t.addEventListener("scrollend", a, co), () => {
|
|
2914
2916
|
t.removeEventListener("scroll", l), c && t.removeEventListener("scrollend", a);
|
|
2915
2917
|
};
|
|
2916
2918
|
}, Jd = (i, e, t) => {
|
|
@@ -3180,11 +3182,11 @@ class Zd {
|
|
|
3180
3182
|
), this.getVirtualItemForOffset = (t) => {
|
|
3181
3183
|
const n = this.getMeasurements();
|
|
3182
3184
|
if (n.length !== 0)
|
|
3183
|
-
return
|
|
3185
|
+
return ao(
|
|
3184
3186
|
n[nl(
|
|
3185
3187
|
0,
|
|
3186
3188
|
n.length - 1,
|
|
3187
|
-
(r) =>
|
|
3189
|
+
(r) => ao(n[r]).start,
|
|
3188
3190
|
t
|
|
3189
3191
|
)]
|
|
3190
3192
|
);
|
|
@@ -3331,7 +3333,7 @@ function eu({
|
|
|
3331
3333
|
}
|
|
3332
3334
|
return { startIndex: s, endIndex: l };
|
|
3333
3335
|
}
|
|
3334
|
-
const
|
|
3336
|
+
const fo = typeof document < "u" ? m.useLayoutEffect : m.useEffect;
|
|
3335
3337
|
function tu(i) {
|
|
3336
3338
|
const e = m.useReducer(() => ({}), {})[1], t = {
|
|
3337
3339
|
...i,
|
|
@@ -3342,7 +3344,7 @@ function tu(i) {
|
|
|
3342
3344
|
}, [n] = m.useState(
|
|
3343
3345
|
() => new Zd(t)
|
|
3344
3346
|
);
|
|
3345
|
-
return n.setOptions(t),
|
|
3347
|
+
return n.setOptions(t), fo(() => n._didMount(), []), fo(() => n._willUpdate()), n;
|
|
3346
3348
|
}
|
|
3347
3349
|
function iu(i) {
|
|
3348
3350
|
return tu({
|
|
@@ -3387,13 +3389,13 @@ const nu = xe((i, e) => {
|
|
|
3387
3389
|
itemCount: n,
|
|
3388
3390
|
renderItem: r
|
|
3389
3391
|
}) => {
|
|
3390
|
-
const o =
|
|
3391
|
-
|
|
3392
|
+
const o = Yr(null), [s, l] = Mn(!1), a = Yr(!0);
|
|
3393
|
+
gs(() => (a.current = !0, typeof Xr == "function" && Xr(() => {
|
|
3392
3394
|
a.current && l(!0);
|
|
3393
3395
|
}), () => {
|
|
3394
3396
|
a.current = !1;
|
|
3395
3397
|
}), []);
|
|
3396
|
-
const c =
|
|
3398
|
+
const c = ps(() => r && n !== void 0 ? [] : eh.toArray(i), [i, r, n]), h = n ?? c.length, d = iu({
|
|
3397
3399
|
count: h,
|
|
3398
3400
|
// parentRef is the inner container; the scroll element is its closest scrollable ancestor
|
|
3399
3401
|
getScrollElement: () => o.current ?? null,
|
|
@@ -3504,18 +3506,18 @@ const nu = xe((i, e) => {
|
|
|
3504
3506
|
N && N(ke);
|
|
3505
3507
|
}, qa = (ke) => {
|
|
3506
3508
|
L && v && !C && L(ke);
|
|
3507
|
-
},
|
|
3509
|
+
}, Ur = () => {
|
|
3508
3510
|
F && ae && o !== "visible" ? F(ae) : F && o === "visible" && (F(), qe(!1));
|
|
3509
|
-
}, Ka = Se(),
|
|
3511
|
+
}, Ka = Se(), _r = `intersection-${Nt(Ka)}`;
|
|
3510
3512
|
Si(Ke, qa, {
|
|
3511
|
-
selectorToWatch: `#${
|
|
3513
|
+
selectorToWatch: `#${_r}`,
|
|
3512
3514
|
/**
|
|
3513
3515
|
* We need to know when the select is open because only then will viewportRef
|
|
3514
3516
|
* not be null. Because it uses a portal that (sensibly) is not mounted 24/7.
|
|
3515
3517
|
*/
|
|
3516
3518
|
skipWhen: !V
|
|
3517
3519
|
});
|
|
3518
|
-
const { error: pn, ...Ti } = Ce("Combobox"), Ua = !!pn || b, mn = Ti.id ?? w, _a = Ti.name ?? S, Ga = Ti.required || ue,
|
|
3520
|
+
const { error: pn, ...Ti } = Ce("Combobox"), Ua = !!pn || b, mn = Ti.id ?? w, _a = Ti.name ?? S, Ga = Ti.required || ue, Gr = m.Children.toArray(t).filter(Boolean).length, Ya = !!!(ae && ae !== "" || ht && ht !== "") && Gr > 100;
|
|
3519
3521
|
let bn;
|
|
3520
3522
|
return pn ? bn = `${mn}-error` : Ti.hint && (bn = `${mn}-hint`), /* @__PURE__ */ $(
|
|
3521
3523
|
Oe.Root,
|
|
@@ -3581,16 +3583,16 @@ const nu = xe((i, e) => {
|
|
|
3581
3583
|
),
|
|
3582
3584
|
/* @__PURE__ */ u(Oe.Portal, { children: /* @__PURE__ */ $(uu, { sideOffset: 4, children: [
|
|
3583
3585
|
/* @__PURE__ */ u(hn, { children: /* @__PURE__ */ u(Oe.Viewport, { ref: Ke, children: /* @__PURE__ */ $(R, { padding: 1, children: [
|
|
3584
|
-
Ya ? /* @__PURE__ */ u(lu, { itemCount:
|
|
3586
|
+
Ya ? /* @__PURE__ */ u(lu, { itemCount: Gr, children: t }) : t,
|
|
3585
3587
|
o !== !0 && !C ? /* @__PURE__ */ u(Oe.NoValueFound, { asChild: !0, children: /* @__PURE__ */ u(Fn, { $hasHover: !1, children: /* @__PURE__ */ u(I, { children: M(ae ?? "") }) }) }) : null,
|
|
3586
3588
|
C ? /* @__PURE__ */ u(T, { justifyContent: "center", alignItems: "center", paddingTop: 2, paddingBottom: 2, children: /* @__PURE__ */ u(Vd, { small: !0, children: A }) }) : null,
|
|
3587
|
-
/* @__PURE__ */ u(R, { id:
|
|
3589
|
+
/* @__PURE__ */ u(R, { id: _r, width: "100%", height: "1px" })
|
|
3588
3590
|
] }) }) }),
|
|
3589
3591
|
o ? /* @__PURE__ */ u(
|
|
3590
3592
|
fu,
|
|
3591
3593
|
{
|
|
3592
|
-
onPointerUp:
|
|
3593
|
-
onClick:
|
|
3594
|
+
onPointerUp: Ur,
|
|
3595
|
+
onClick: Ur,
|
|
3594
3596
|
disabled: s,
|
|
3595
3597
|
asChild: !0,
|
|
3596
3598
|
children: /* @__PURE__ */ u(Fn, { children: /* @__PURE__ */ $(T, { gap: 2, children: [
|
|
@@ -3616,7 +3618,7 @@ const nu = xe((i, e) => {
|
|
|
3616
3618
|
gap: ${({ theme: i }) => i.spaces[4]};
|
|
3617
3619
|
padding-inline-start: ${({ theme: i }) => i.spaces[4]};
|
|
3618
3620
|
padding-inline-end: ${({ theme: i }) => i.spaces[3]};
|
|
3619
|
-
${({ $size: i, $hasTextValue: e, $hasClear: t, theme: n }) =>
|
|
3621
|
+
${({ $size: i, $hasTextValue: e, $hasClear: t, theme: n }) => Mr({
|
|
3620
3622
|
$size: i || "M",
|
|
3621
3623
|
$hasValue: e || !1,
|
|
3622
3624
|
$hasClear: t || !1,
|
|
@@ -3637,11 +3639,12 @@ const nu = xe((i, e) => {
|
|
|
3637
3639
|
${({ theme: i, $hasError: e }) => at()({ theme: i, $hasError: e })};
|
|
3638
3640
|
`, cu = x(Oe.TextInput)`
|
|
3639
3641
|
width: 100%;
|
|
3640
|
-
${
|
|
3642
|
+
${il}
|
|
3641
3643
|
color: ${({ theme: i }) => i.colors.neutral800};
|
|
3642
3644
|
padding: 0;
|
|
3643
3645
|
border: none;
|
|
3644
3646
|
background-color: transparent;
|
|
3647
|
+
text-overflow: ellipsis;
|
|
3645
3648
|
|
|
3646
3649
|
&:focus-visible {
|
|
3647
3650
|
outline: none;
|
|
@@ -3858,18 +3861,18 @@ const Et = {
|
|
|
3858
3861
|
Log: "live-region-log",
|
|
3859
3862
|
Status: "live-region-status",
|
|
3860
3863
|
Alert: "live-region-alert"
|
|
3861
|
-
},
|
|
3864
|
+
}, go = (i) => {
|
|
3862
3865
|
const e = document.querySelector(`#${Et.Log}`);
|
|
3863
3866
|
e && (e.innerText = i);
|
|
3864
|
-
},
|
|
3867
|
+
}, po = (i) => {
|
|
3865
3868
|
const e = document.querySelector(`#${Et.Status}`);
|
|
3866
3869
|
e && (e.innerText = i);
|
|
3867
|
-
},
|
|
3870
|
+
}, mo = (i) => {
|
|
3868
3871
|
const e = document.querySelector(`#${Et.Alert}`);
|
|
3869
3872
|
e && (e.innerText = i);
|
|
3870
3873
|
}, Gm = () => (m.useEffect(() => () => {
|
|
3871
|
-
|
|
3872
|
-
}, []), { notifyLog:
|
|
3874
|
+
go(""), mo(""), po("");
|
|
3875
|
+
}, []), { notifyLog: go, notifyAlert: mo, notifyStatus: po }), Ru = () => /* @__PURE__ */ $(lt, { children: [
|
|
3873
3876
|
/* @__PURE__ */ u("p", { role: "log", "aria-live": "polite", id: Et.Log, "aria-relevant": "all" }),
|
|
3874
3877
|
/* @__PURE__ */ u("p", { role: "status", "aria-live": "polite", id: Et.Status, "aria-relevant": "all" }),
|
|
3875
3878
|
/* @__PURE__ */ u("p", { role: "alert", "aria-live": "assertive", id: Et.Alert, "aria-relevant": "all" })
|
|
@@ -3972,12 +3975,12 @@ ${D`
|
|
|
3972
3975
|
overflow-y: hidden;
|
|
3973
3976
|
}
|
|
3974
3977
|
`}
|
|
3975
|
-
`,
|
|
3978
|
+
`, bo = "en-EN", sl = () => typeof navigator > "u" ? bo : navigator.language ? navigator.language : bo, [Du, cn] = Gt("StrapiDesignSystem", {
|
|
3976
3979
|
locale: sl()
|
|
3977
3980
|
}), Ym = ({
|
|
3978
3981
|
children: i,
|
|
3979
3982
|
locale: e = sl(),
|
|
3980
|
-
theme: t =
|
|
3983
|
+
theme: t = Zs,
|
|
3981
3984
|
tooltipConfig: n
|
|
3982
3985
|
}) => (He(() => {
|
|
3983
3986
|
const r = document.createElement("style");
|
|
@@ -4023,9 +4026,10 @@ const Eu = m.forwardRef(
|
|
|
4023
4026
|
"aria-labelledby": g ? `${s}-label` : void 0,
|
|
4024
4027
|
$size: l,
|
|
4025
4028
|
$withTags: a,
|
|
4029
|
+
$hasClear: !!i,
|
|
4026
4030
|
...c,
|
|
4027
4031
|
children: [
|
|
4028
|
-
/* @__PURE__ */ $(T, { flex: "1", tag: "span", gap: 3, children: [
|
|
4032
|
+
/* @__PURE__ */ $(T, { flex: "1", tag: "span", gap: 3, overflow: "hidden", children: [
|
|
4029
4033
|
t && /* @__PURE__ */ u(T, { tag: "span", "aria-hidden": !0, children: t }),
|
|
4030
4034
|
o
|
|
4031
4035
|
] }),
|
|
@@ -4050,30 +4054,23 @@ const Eu = m.forwardRef(
|
|
|
4050
4054
|
}
|
|
4051
4055
|
), Iu = x(T)`
|
|
4052
4056
|
border: 1px solid ${({ theme: i, $hasError: e }) => e ? i.colors.danger600 : i.colors.neutral200};
|
|
4053
|
-
${(i) =>
|
|
4054
|
-
|
|
4055
|
-
case "S":
|
|
4056
|
-
return D`
|
|
4057
|
-
padding-block: calc(${i.theme.spaces[2]} - 1px); // 1px to compensate for the border
|
|
4058
|
-
padding-inline-start: ${i.$withTags ? i.theme.spaces[1] : i.theme.spaces[4]};
|
|
4059
|
-
padding-inline-end: ${i.theme.spaces[3]};
|
|
4057
|
+
padding-inline-start: ${({ theme: i }) => i.spaces[4]};
|
|
4058
|
+
padding-inline-end: ${({ theme: i }) => i.spaces[3]};
|
|
4060
4059
|
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
`;
|
|
4065
|
-
default:
|
|
4066
|
-
return D`
|
|
4067
|
-
padding-block: ${i.$withTags ? "0.3rem" : `calc(${i.theme.spaces[3]} - 1px)`}; // 1px to compensate for the border
|
|
4068
|
-
padding-inline-start: ${i.$withTags ? i.theme.spaces[1] : i.theme.spaces[4]};
|
|
4069
|
-
padding-inline-end: ${i.theme.spaces[3]};
|
|
4060
|
+
${({ $size: i, $hasClear: e, $withTags: t, theme: n }) => t ? D`
|
|
4061
|
+
padding-inline-start: calc(${n.spaces[2]} - 1px);
|
|
4062
|
+
padding-block: calc(${n.spaces[2]} - 1px);
|
|
4070
4063
|
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4064
|
+
${n.breakpoints.medium} {
|
|
4065
|
+
padding-inline-start: 0.3rem;
|
|
4066
|
+
padding-block: 0.3rem;
|
|
4067
|
+
}
|
|
4068
|
+
` : Mr({
|
|
4069
|
+
$size: i || "M",
|
|
4070
|
+
$hasValue: e,
|
|
4071
|
+
$hasClear: e,
|
|
4072
|
+
theme: n
|
|
4073
|
+
})}
|
|
4077
4074
|
cursor: pointer;
|
|
4078
4075
|
|
|
4079
4076
|
&[aria-disabled='true'] {
|
|
@@ -4091,7 +4088,9 @@ const Eu = m.forwardRef(
|
|
|
4091
4088
|
& > svg {
|
|
4092
4089
|
fill: ${({ theme: i }) => i.colors.neutral500};
|
|
4093
4090
|
}
|
|
4094
|
-
`, Lu = m.forwardRef(
|
|
4091
|
+
`, Lu = m.forwardRef(
|
|
4092
|
+
({ children: i, placeholder: e, withTags: t, ...n }, r) => /* @__PURE__ */ u(Bu, { ref: r, ellipsis: !0, ...n, children: /* @__PURE__ */ u(zu, { placeholder: e, $withTags: t, children: i }) })
|
|
4093
|
+
), Bu = x(I)`
|
|
4095
4094
|
flex: 1;
|
|
4096
4095
|
min-height: 2.4rem;
|
|
4097
4096
|
|
|
@@ -4099,9 +4098,11 @@ const Eu = m.forwardRef(
|
|
|
4099
4098
|
min-height: 2.2rem;
|
|
4100
4099
|
}
|
|
4101
4100
|
`, zu = x(Le.Value)`
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4101
|
+
${({ $withTags: i }) => i ? D`
|
|
4102
|
+
display: flex;
|
|
4103
|
+
flex-wrap: wrap;
|
|
4104
|
+
gap: ${({ theme: e }) => e.spaces[1]};
|
|
4105
|
+
` : null};
|
|
4105
4106
|
`, Nu = m.forwardRef((i, e) => /* @__PURE__ */ u(Fu, { ref: e, ...i, children: /* @__PURE__ */ u(hn, { children: i.children }) })), Fu = x(Le.Content)`
|
|
4106
4107
|
background: ${({ theme: i }) => i.colors.neutral0};
|
|
4107
4108
|
box-shadow: ${({ theme: i }) => i.shadows.filterShadow};
|
|
@@ -4157,7 +4158,7 @@ const Eu = m.forwardRef(
|
|
|
4157
4158
|
background-color: ${({ theme: i }) => i.colors.primary100};
|
|
4158
4159
|
cursor: pointer;
|
|
4159
4160
|
}
|
|
4160
|
-
`, al = Le.Root, hl = Eu, cl = Lu, dl = Le.Portal, ul = Nu, fl = Wu,
|
|
4161
|
+
`, al = Le.Root, hl = Eu, cl = Lu, dl = Le.Portal, ul = Nu, fl = Wu, Dr = Hu, gl = Le.ItemIndicator, pl = Le.ItemText, qu = Le.Group, yo = m.forwardRef(
|
|
4161
4162
|
({
|
|
4162
4163
|
children: i,
|
|
4163
4164
|
clearLabel: e = "Clear",
|
|
@@ -4233,12 +4234,12 @@ const Eu = m.forwardRef(
|
|
|
4233
4234
|
}
|
|
4234
4235
|
);
|
|
4235
4236
|
}
|
|
4236
|
-
),
|
|
4237
|
-
({ value: i, startIcon: e, children: t, ...n }, r) => /* @__PURE__ */ $(
|
|
4237
|
+
), wo = m.forwardRef(
|
|
4238
|
+
({ value: i, startIcon: e, children: t, ...n }, r) => /* @__PURE__ */ $(Dr, { ref: r, value: i.toString(), ...n, children: [
|
|
4238
4239
|
e && /* @__PURE__ */ u(T, { tag: "span", "aria-hidden": !0, children: e }),
|
|
4239
4240
|
/* @__PURE__ */ u(I, { lineHeight: "20px", width: "100%", children: /* @__PURE__ */ u(pl, { children: t }) })
|
|
4240
4241
|
] })
|
|
4241
|
-
), Ku = 200,
|
|
4242
|
+
), Ku = 200, xo = 15, [Uu, Yt] = Gt("DatePicker"), _u = m.forwardRef(
|
|
4242
4243
|
({
|
|
4243
4244
|
/**
|
|
4244
4245
|
* DatePickerCalendar props
|
|
@@ -4278,8 +4279,8 @@ const Eu = m.forwardRef(
|
|
|
4278
4279
|
}
|
|
4279
4280
|
}), [oe, le] = m.useMemo(() => {
|
|
4280
4281
|
const Z = t ? gt(t) : br("UTC"), ft = o ? gt(o) : Z.set({ day: 1, month: 1, year: Z.year - Ku });
|
|
4281
|
-
let Zt = r ? gt(r) : Z.set({ day: 31, month: 12, year: Z.year +
|
|
4282
|
-
return Zt.compare(ft) < 0 && (Zt = ft.set({ day: 31, month: 12, year: ft.year +
|
|
4282
|
+
let Zt = r ? gt(r) : Z.set({ day: 31, month: 12, year: Z.year + xo });
|
|
4283
|
+
return Zt.compare(ft) < 0 && (Zt = ft.set({ day: 31, month: 12, year: ft.year + xo })), [ft, Zt];
|
|
4283
4284
|
}, [o, r, t]), [Be, V] = m.useState(
|
|
4284
4285
|
Gu({
|
|
4285
4286
|
currentValue: J,
|
|
@@ -4356,7 +4357,7 @@ const Eu = m.forwardRef(
|
|
|
4356
4357
|
}
|
|
4357
4358
|
);
|
|
4358
4359
|
}
|
|
4359
|
-
),
|
|
4360
|
+
), vo = (i) => !!i.match(/^[^a-zA-Z]*$/), Gu = ({ currentValue: i, minDate: e, maxDate: t }) => {
|
|
4360
4361
|
const n = br("UTC");
|
|
4361
4362
|
return i || (On(e, n) === e && En(t, n) === t ? n : On(e, n) === n ? e : En(t, n) === n ? t : n);
|
|
4362
4363
|
}, Yu = "DatePickerTrigger", Xu = m.forwardRef(
|
|
@@ -4407,7 +4408,7 @@ const Eu = m.forwardRef(
|
|
|
4407
4408
|
min-width: ${({ $hasOnClear: i }) => i ? "160px" : "130px"};
|
|
4408
4409
|
border: 1px solid ${({ theme: i, $hasError: e }) => e ? i.colors.danger600 : i.colors.neutral200};
|
|
4409
4410
|
padding-inline: ${({ theme: i }) => i.spaces[3]};
|
|
4410
|
-
${({ $size: i, $hasTextValue: e, $hasOnClear: t, theme: n }) =>
|
|
4411
|
+
${({ $size: i, $hasTextValue: e, $hasOnClear: t, theme: n }) => Mr({
|
|
4411
4412
|
$size: i || "M",
|
|
4412
4413
|
$hasValue: e || !1,
|
|
4413
4414
|
$hasClear: t || !1,
|
|
@@ -4484,7 +4485,7 @@ const Eu = m.forwardRef(
|
|
|
4484
4485
|
n.onTextValueChange(f.format(n.calendarDate.toDate(n.timeZone))), n.onValueChange(n.calendarDate);
|
|
4485
4486
|
}),
|
|
4486
4487
|
onChange: wt(e.onChange, (y) => {
|
|
4487
|
-
if (
|
|
4488
|
+
if (vo(y.target.value)) {
|
|
4488
4489
|
const v = y.target.value.split(p), [k, C, A] = b.map((K, L) => {
|
|
4489
4490
|
const se = v[L];
|
|
4490
4491
|
return {
|
|
@@ -4507,7 +4508,7 @@ const Eu = m.forwardRef(
|
|
|
4507
4508
|
}
|
|
4508
4509
|
}),
|
|
4509
4510
|
onKeyDown: wt(e.onKeyDown, (y) => {
|
|
4510
|
-
if (!n.open && (
|
|
4511
|
+
if (!n.open && (vo(y.key) || ["ArrowDown", "Backspace"].includes(y.key)))
|
|
4511
4512
|
d();
|
|
4512
4513
|
else if (["Tab"].includes(y.key) && n.open)
|
|
4513
4514
|
y.preventDefault();
|
|
@@ -4554,7 +4555,7 @@ function ef(i, e, t) {
|
|
|
4554
4555
|
}
|
|
4555
4556
|
const tf = x.input`
|
|
4556
4557
|
width: 100%;
|
|
4557
|
-
${
|
|
4558
|
+
${il}
|
|
4558
4559
|
color: ${({ theme: i }) => i.colors.neutral800};
|
|
4559
4560
|
border: none;
|
|
4560
4561
|
background-color: transparent;
|
|
@@ -4672,7 +4673,7 @@ const tf = x.input`
|
|
|
4672
4673
|
),
|
|
4673
4674
|
[a, f, o]
|
|
4674
4675
|
), p = Ue(r, { weekday: "short" }), b = m.useMemo(() => {
|
|
4675
|
-
const S =
|
|
4676
|
+
const S = bs(br(o), r);
|
|
4676
4677
|
return [...new Array(7).keys()].map((M) => {
|
|
4677
4678
|
const z = S.add({ days: M }).toDate(o);
|
|
4678
4679
|
return p.format(z);
|
|
@@ -4709,21 +4710,21 @@ const tf = x.input`
|
|
|
4709
4710
|
children: /* @__PURE__ */ $(T, { ref: n, direction: "column", alignItems: "stretch", padding: 4, ...t, children: [
|
|
4710
4711
|
/* @__PURE__ */ $(ff, { justifyContent: "flex-start", paddingBottom: 4, paddingLeft: 2, paddingRight: 2, gap: 2, children: [
|
|
4711
4712
|
/* @__PURE__ */ u(xt, { children: /* @__PURE__ */ u(
|
|
4712
|
-
|
|
4713
|
+
yo,
|
|
4713
4714
|
{
|
|
4714
4715
|
"aria-label": i,
|
|
4715
4716
|
value: g[a.month - 1],
|
|
4716
4717
|
onChange: k,
|
|
4717
|
-
children: g.map((S) => /* @__PURE__ */ u(
|
|
4718
|
+
children: g.map((S) => /* @__PURE__ */ u(wo, { value: S, children: S }, S))
|
|
4718
4719
|
}
|
|
4719
4720
|
) }),
|
|
4720
4721
|
/* @__PURE__ */ u(xt, { children: /* @__PURE__ */ u(
|
|
4721
|
-
|
|
4722
|
+
yo,
|
|
4722
4723
|
{
|
|
4723
4724
|
value: a.year.toString(),
|
|
4724
4725
|
"aria-label": e,
|
|
4725
4726
|
onChange: C,
|
|
4726
|
-
children: d.map((S) => /* @__PURE__ */ u(
|
|
4727
|
+
children: d.map((S) => /* @__PURE__ */ u(wo, { value: S, children: S }, S))
|
|
4727
4728
|
}
|
|
4728
4729
|
) })
|
|
4729
4730
|
] }),
|
|
@@ -4749,14 +4750,14 @@ const tf = x.input`
|
|
|
4749
4750
|
), uf = (i, e) => (t) => {
|
|
4750
4751
|
let n = i.add({ weeks: t });
|
|
4751
4752
|
const r = [];
|
|
4752
|
-
n =
|
|
4753
|
+
n = bs(n, e);
|
|
4753
4754
|
const o = sh(n, e);
|
|
4754
4755
|
for (let s = 0; s < o; s++)
|
|
4755
4756
|
r.push(null);
|
|
4756
4757
|
for (; r.length < 7; ) {
|
|
4757
4758
|
r.push(n);
|
|
4758
4759
|
const s = n.add({ days: 1 });
|
|
4759
|
-
if (
|
|
4760
|
+
if (ys(n, s))
|
|
4760
4761
|
break;
|
|
4761
4762
|
n = s;
|
|
4762
4763
|
}
|
|
@@ -4784,7 +4785,7 @@ const tf = x.input`
|
|
|
4784
4785
|
text-transform: capitalize;
|
|
4785
4786
|
`, mf = "DatePickerCalendarCell", bf = m.forwardRef(
|
|
4786
4787
|
({ date: i, startDate: e, disabled: t, ...n }, r) => {
|
|
4787
|
-
const { timeZone: o, calendarDate: s, onValueChange: l, onOpenChange: a, onTextValueChange: c, onCalendarDateChange: h } = Yt(mf), { dateFormatter: d, cellDateFormatter: f, textValueFormatter: g } = cf("DatePickerCalendarCell"), p =
|
|
4788
|
+
const { timeZone: o, calendarDate: s, onValueChange: l, onOpenChange: a, onTextValueChange: c, onCalendarDateChange: h } = Yt(mf), { dateFormatter: d, cellDateFormatter: f, textValueFormatter: g } = cf("DatePickerCalendarCell"), p = ys(s, i), b = m.useMemo(() => d.format(i.toDate(o)), [d, i, o]), w = m.useMemo(
|
|
4788
4789
|
() => f.formatToParts(i.toDate(o)).find((C) => C.type === "day").value,
|
|
4789
4790
|
[f, i, o]
|
|
4790
4791
|
), y = lh(e), v = i.compare(e) < 0 || i.compare(y) > 0;
|
|
@@ -5045,10 +5046,10 @@ function kf(i) {
|
|
|
5045
5046
|
if (e == t) return !1;
|
|
5046
5047
|
}
|
|
5047
5048
|
}
|
|
5048
|
-
function
|
|
5049
|
+
function So(i) {
|
|
5049
5050
|
return i >= 127462 && i <= 127487;
|
|
5050
5051
|
}
|
|
5051
|
-
const
|
|
5052
|
+
const Co = 8205;
|
|
5052
5053
|
function $f(i, e, t = !0, n = !0) {
|
|
5053
5054
|
return (t ? wl : Af)(i, e, n);
|
|
5054
5055
|
}
|
|
@@ -5056,13 +5057,13 @@ function wl(i, e, t) {
|
|
|
5056
5057
|
if (e == i.length) return e;
|
|
5057
5058
|
e && xl(i.charCodeAt(e)) && vl(i.charCodeAt(e - 1)) && e--;
|
|
5058
5059
|
let n = wn(i, e);
|
|
5059
|
-
for (e +=
|
|
5060
|
+
for (e += ko(n); e < i.length; ) {
|
|
5060
5061
|
let r = wn(i, e);
|
|
5061
|
-
if (n ==
|
|
5062
|
-
e +=
|
|
5063
|
-
else if (
|
|
5062
|
+
if (n == Co || r == Co || t && kf(r))
|
|
5063
|
+
e += ko(r), n = r;
|
|
5064
|
+
else if (So(r)) {
|
|
5064
5065
|
let o = 0, s = e - 2;
|
|
5065
|
-
for (; s >= 0 &&
|
|
5066
|
+
for (; s >= 0 && So(wn(i, s)); )
|
|
5066
5067
|
o++, s -= 2;
|
|
5067
5068
|
if (o % 2 == 0) break;
|
|
5068
5069
|
e += 2;
|
|
@@ -5091,7 +5092,7 @@ function xl(i) {
|
|
|
5091
5092
|
function vl(i) {
|
|
5092
5093
|
return i >= 55296 && i < 56320;
|
|
5093
5094
|
}
|
|
5094
|
-
function
|
|
5095
|
+
function ko(i) {
|
|
5095
5096
|
return i < 65536 ? 1 : 2;
|
|
5096
5097
|
}
|
|
5097
5098
|
class W {
|
|
@@ -5248,7 +5249,7 @@ class ee extends W {
|
|
|
5248
5249
|
}
|
|
5249
5250
|
}
|
|
5250
5251
|
decompose(e, t, n, r) {
|
|
5251
|
-
let o = e <= 0 && t >= this.length ? this : new ee(
|
|
5252
|
+
let o = e <= 0 && t >= this.length ? this : new ee($o(this.text, e, t), Math.min(t, this.length) - Math.max(0, e));
|
|
5252
5253
|
if (r & 1) {
|
|
5253
5254
|
let s = n.pop(), l = Hi(o.text, s.text.slice(), 0, o.length);
|
|
5254
5255
|
if (l.length <= 32)
|
|
@@ -5264,7 +5265,7 @@ class ee extends W {
|
|
|
5264
5265
|
if (!(n instanceof ee))
|
|
5265
5266
|
return super.replace(e, t, n);
|
|
5266
5267
|
[e, t] = Ft(this, e, t);
|
|
5267
|
-
let r = Hi(this.text, Hi(n.text,
|
|
5268
|
+
let r = Hi(this.text, Hi(n.text, $o(this.text, 0, e)), t), o = this.length + n.length - (t - e);
|
|
5268
5269
|
return r.length <= 32 ? new ee(r, o) : Ne.from(ee.split(r, []), o);
|
|
5269
5270
|
}
|
|
5270
5271
|
sliceString(e, t = this.length, n = `
|
|
@@ -5402,7 +5403,7 @@ function Hi(i, e, t = 0, n = 1e9) {
|
|
|
5402
5403
|
}
|
|
5403
5404
|
return e;
|
|
5404
5405
|
}
|
|
5405
|
-
function
|
|
5406
|
+
function $o(i, e, t) {
|
|
5406
5407
|
return Hi(i, [""], e, t);
|
|
5407
5408
|
}
|
|
5408
5409
|
class ai {
|
|
@@ -6187,10 +6188,10 @@ function $l(i, e) {
|
|
|
6187
6188
|
if (t.to > e)
|
|
6188
6189
|
throw new RangeError("Selection points outside of document");
|
|
6189
6190
|
}
|
|
6190
|
-
let
|
|
6191
|
+
let Or = 0;
|
|
6191
6192
|
class P {
|
|
6192
6193
|
constructor(e, t, n, r, o) {
|
|
6193
|
-
this.combine = e, this.compareInput = t, this.compare = n, this.isStatic = r, this.id =
|
|
6194
|
+
this.combine = e, this.compareInput = t, this.compare = n, this.isStatic = r, this.id = Or++, this.default = e([]), this.extensions = typeof o == "function" ? o(this) : o;
|
|
6194
6195
|
}
|
|
6195
6196
|
/**
|
|
6196
6197
|
Returns a facet reader for this facet, which can be used to
|
|
@@ -6203,7 +6204,7 @@ class P {
|
|
|
6203
6204
|
Define a new facet.
|
|
6204
6205
|
*/
|
|
6205
6206
|
static define(e = {}) {
|
|
6206
|
-
return new P(e.combine || ((t) => t), e.compareInput || ((t, n) => t === n), e.compare || (e.combine ? (t, n) => t === n :
|
|
6207
|
+
return new P(e.combine || ((t) => t), e.compareInput || ((t, n) => t === n), e.compare || (e.combine ? (t, n) => t === n : Er), !!e.static, e.enables);
|
|
6207
6208
|
}
|
|
6208
6209
|
/**
|
|
6209
6210
|
Returns an extension that adds the given value to this facet.
|
|
@@ -6238,12 +6239,12 @@ class P {
|
|
|
6238
6239
|
return t || (t = (n) => n), this.compute([e], (n) => t(n.field(e)));
|
|
6239
6240
|
}
|
|
6240
6241
|
}
|
|
6241
|
-
function
|
|
6242
|
+
function Er(i, e) {
|
|
6242
6243
|
return i == e || i.length == e.length && i.every((t, n) => t === e[n]);
|
|
6243
6244
|
}
|
|
6244
6245
|
class Vi {
|
|
6245
6246
|
constructor(e, t, n, r) {
|
|
6246
|
-
this.dependencies = e, this.facet = t, this.type = n, this.value = r, this.id =
|
|
6247
|
+
this.dependencies = e, this.facet = t, this.type = n, this.value = r, this.id = Or++;
|
|
6247
6248
|
}
|
|
6248
6249
|
dynamicSlot(e) {
|
|
6249
6250
|
var t;
|
|
@@ -6257,7 +6258,7 @@ class Vi {
|
|
|
6257
6258
|
update(d, f) {
|
|
6258
6259
|
if (a && f.docChanged || c && (f.docChanged || f.selection) || qn(d, h)) {
|
|
6259
6260
|
let g = n(d);
|
|
6260
|
-
if (l ?
|
|
6261
|
+
if (l ? !Ao(g, d.values[s], r) : !r(g, d.values[s]))
|
|
6261
6262
|
return d.values[s] = g, 1;
|
|
6262
6263
|
}
|
|
6263
6264
|
return 0;
|
|
@@ -6266,7 +6267,7 @@ class Vi {
|
|
|
6266
6267
|
let g, p = f.config.address[o];
|
|
6267
6268
|
if (p != null) {
|
|
6268
6269
|
let b = Yi(f, p);
|
|
6269
|
-
if (this.dependencies.every((w) => w instanceof P ? f.facet(w) === d.facet(w) : w instanceof At ? f.field(w, !1) == d.field(w, !1) : !0) || (l ?
|
|
6270
|
+
if (this.dependencies.every((w) => w instanceof P ? f.facet(w) === d.facet(w) : w instanceof At ? f.field(w, !1) == d.field(w, !1) : !0) || (l ? Ao(g = n(d), b, r) : r(g = n(d), b)))
|
|
6270
6271
|
return d.values[s] = b, 0;
|
|
6271
6272
|
} else
|
|
6272
6273
|
g = n(d);
|
|
@@ -6275,7 +6276,7 @@ class Vi {
|
|
|
6275
6276
|
};
|
|
6276
6277
|
}
|
|
6277
6278
|
}
|
|
6278
|
-
function
|
|
6279
|
+
function Ao(i, e, t) {
|
|
6279
6280
|
if (i.length != e.length)
|
|
6280
6281
|
return !1;
|
|
6281
6282
|
for (let n = 0; n < i.length; n++)
|
|
@@ -6317,7 +6318,7 @@ function Mf(i, e, t) {
|
|
|
6317
6318
|
},
|
|
6318
6319
|
reconfigure(a, c) {
|
|
6319
6320
|
let h = qn(a, n), d = c.config.facets[e.id], f = c.facet(e);
|
|
6320
|
-
if (d && !h &&
|
|
6321
|
+
if (d && !h && Er(t, d))
|
|
6321
6322
|
return a.values[s] = f, 0;
|
|
6322
6323
|
let g = l(a);
|
|
6323
6324
|
return e.compare(g, f) ? (a.values[s] = f, 0) : (a.values[s] = g, 1);
|
|
@@ -6333,7 +6334,7 @@ class At {
|
|
|
6333
6334
|
Define a state field.
|
|
6334
6335
|
*/
|
|
6335
6336
|
static define(e) {
|
|
6336
|
-
let t = new At(
|
|
6337
|
+
let t = new At(Or++, e.create, e.update, e.compare || ((n, r) => n === r), e);
|
|
6337
6338
|
return e.provide && (t.provides = e.provide(t)), t;
|
|
6338
6339
|
}
|
|
6339
6340
|
create(e) {
|
|
@@ -6463,7 +6464,7 @@ class Gi {
|
|
|
6463
6464
|
(w) => w.type == 0
|
|
6464
6465
|
/* Provider.Static */
|
|
6465
6466
|
))
|
|
6466
|
-
if (l[p.id] = a.length << 1 | 1,
|
|
6467
|
+
if (l[p.id] = a.length << 1 | 1, Er(b, g))
|
|
6467
6468
|
a.push(n.facet(p));
|
|
6468
6469
|
else {
|
|
6469
6470
|
let w = p.combine(g.map((y) => y.value));
|
|
@@ -7132,7 +7133,7 @@ class gi {
|
|
|
7132
7133
|
function Yn(i, e) {
|
|
7133
7134
|
return i.from - e.from || i.value.startSide - e.value.startSide;
|
|
7134
7135
|
}
|
|
7135
|
-
class
|
|
7136
|
+
class Ir {
|
|
7136
7137
|
constructor(e, t, n, r) {
|
|
7137
7138
|
this.from = e, this.to = t, this.value = n, this.maxPoint = r;
|
|
7138
7139
|
}
|
|
@@ -7169,7 +7170,7 @@ class Er {
|
|
|
7169
7170
|
continue;
|
|
7170
7171
|
(g - f || c.endSide - c.startSide) < 0 || (s < 0 && (s = f), c.point && (l = Math.max(l, g - f)), n.push(c), r.push(f - s), o.push(g - s));
|
|
7171
7172
|
}
|
|
7172
|
-
return { mapped: n.length ? new
|
|
7173
|
+
return { mapped: n.length ? new Ir(r, o, n, l) : null, pos: s };
|
|
7173
7174
|
}
|
|
7174
7175
|
}
|
|
7175
7176
|
class X {
|
|
@@ -7289,8 +7290,8 @@ class X {
|
|
|
7289
7290
|
to notify it of possible differences.
|
|
7290
7291
|
*/
|
|
7291
7292
|
static compare(e, t, n, r, o = -1) {
|
|
7292
|
-
let s = e.filter((d) => d.maxPoint > 0 || !d.isEmpty && d.maxPoint >= o), l = t.filter((d) => d.maxPoint > 0 || !d.isEmpty && d.maxPoint >= o), a =
|
|
7293
|
-
n.iterGaps((d, f, g) =>
|
|
7293
|
+
let s = e.filter((d) => d.maxPoint > 0 || !d.isEmpty && d.maxPoint >= o), l = t.filter((d) => d.maxPoint > 0 || !d.isEmpty && d.maxPoint >= o), a = To(s, l, n), c = new ii(s, a, o), h = new ii(l, a, o);
|
|
7294
|
+
n.iterGaps((d, f, g) => Ro(c, d, h, f, g, r)), n.empty && n.length == 0 && Ro(c, 0, h, 0, 0, r);
|
|
7294
7295
|
}
|
|
7295
7296
|
/**
|
|
7296
7297
|
Compare the contents of two groups of range sets, returning true
|
|
@@ -7303,7 +7304,7 @@ class X {
|
|
|
7303
7304
|
return !1;
|
|
7304
7305
|
if (!o.length)
|
|
7305
7306
|
return !0;
|
|
7306
|
-
let l =
|
|
7307
|
+
let l = To(o, s), a = new ii(o, l, 0).goto(n), c = new ii(s, l, 0).goto(n);
|
|
7307
7308
|
for (; ; ) {
|
|
7308
7309
|
if (a.to != c.to || !Xn(a.active, c.active) || a.point && (!c.point || !a.point.eq(c.point)))
|
|
7309
7310
|
return !1;
|
|
@@ -7372,7 +7373,7 @@ function Hf(i) {
|
|
|
7372
7373
|
X.empty.nextLayer = X.empty;
|
|
7373
7374
|
class Xi {
|
|
7374
7375
|
finishChunk(e) {
|
|
7375
|
-
this.chunks.push(new
|
|
7376
|
+
this.chunks.push(new Ir(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
|
|
7376
7377
|
}
|
|
7377
7378
|
/**
|
|
7378
7379
|
Create an empty builder.
|
|
@@ -7423,7 +7424,7 @@ class Xi {
|
|
|
7423
7424
|
return this.from = null, t;
|
|
7424
7425
|
}
|
|
7425
7426
|
}
|
|
7426
|
-
function
|
|
7427
|
+
function To(i, e, t) {
|
|
7427
7428
|
let n = /* @__PURE__ */ new Map();
|
|
7428
7429
|
for (let o of i)
|
|
7429
7430
|
for (let s = 0; s < o.chunk.length; s++)
|
|
@@ -7553,13 +7554,13 @@ class ii {
|
|
|
7553
7554
|
this.cursor.forward(e, t);
|
|
7554
7555
|
}
|
|
7555
7556
|
removeActive(e) {
|
|
7556
|
-
Di(this.active, e), Di(this.activeTo, e), Di(this.activeRank, e), this.minActive =
|
|
7557
|
+
Di(this.active, e), Di(this.activeTo, e), Di(this.activeRank, e), this.minActive = Mo(this.active, this.activeTo);
|
|
7557
7558
|
}
|
|
7558
7559
|
addActive(e) {
|
|
7559
7560
|
let t = 0, { value: n, to: r, rank: o } = this.cursor;
|
|
7560
7561
|
for (; t < this.activeRank.length && (o - this.activeRank[t] || r - this.activeTo[t]) > 0; )
|
|
7561
7562
|
t++;
|
|
7562
|
-
Oi(this.active, t, n), Oi(this.activeTo, t, r), Oi(this.activeRank, t, o), e && Oi(e, t, this.cursor.from), this.minActive =
|
|
7563
|
+
Oi(this.active, t, n), Oi(this.activeTo, t, r), Oi(this.activeRank, t, o), e && Oi(e, t, this.cursor.from), this.minActive = Mo(this.active, this.activeTo);
|
|
7563
7564
|
}
|
|
7564
7565
|
// After calling this, if `this.point` != null, the next range is a
|
|
7565
7566
|
// point. Otherwise, it's a regular range, covered by `this.active`.
|
|
@@ -7616,7 +7617,7 @@ class ii {
|
|
|
7616
7617
|
return t;
|
|
7617
7618
|
}
|
|
7618
7619
|
}
|
|
7619
|
-
function
|
|
7620
|
+
function Ro(i, e, t, n, r, o) {
|
|
7620
7621
|
i.goto(e), t.goto(n);
|
|
7621
7622
|
let s = n + r, l = n, a = n - e;
|
|
7622
7623
|
for (; ; ) {
|
|
@@ -7644,7 +7645,7 @@ function Oi(i, e, t) {
|
|
|
7644
7645
|
i[n + 1] = i[n];
|
|
7645
7646
|
i[e] = t;
|
|
7646
7647
|
}
|
|
7647
|
-
function
|
|
7648
|
+
function Mo(i, e) {
|
|
7648
7649
|
let t = -1, n = 1e9;
|
|
7649
7650
|
for (let r = 0; r < e.length; r++)
|
|
7650
7651
|
(e[r] - n || i[r].endSide - i[t].endSide) < 0 && (t = r, n = e[r]);
|
|
@@ -7660,7 +7661,7 @@ function Vf(i, e, t, n) {
|
|
|
7660
7661
|
}
|
|
7661
7662
|
return i.length;
|
|
7662
7663
|
}
|
|
7663
|
-
const Jn = "ͼ",
|
|
7664
|
+
const Jn = "ͼ", Do = typeof Symbol > "u" ? "__" + Jn : Symbol.for(Jn), Qn = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
|
|
7664
7665
|
class Ht {
|
|
7665
7666
|
// :: (Object<Style>, ?{finish: ?(string) → string})
|
|
7666
7667
|
// Create a style module from the given spec.
|
|
@@ -7702,8 +7703,8 @@ class Ht {
|
|
|
7702
7703
|
// :: () → string
|
|
7703
7704
|
// Generate a new unique CSS class name.
|
|
7704
7705
|
static newName() {
|
|
7705
|
-
let e = Do
|
|
7706
|
-
return Do
|
|
7706
|
+
let e = Oo[Do] || 1;
|
|
7707
|
+
return Oo[Do] = e + 1, Jn + e.toString(36);
|
|
7707
7708
|
}
|
|
7708
7709
|
// :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
|
|
7709
7710
|
//
|
|
@@ -7726,14 +7727,14 @@ class Ht {
|
|
|
7726
7727
|
r ? o && r.setNonce(o) : r = new jf(e, o), r.mount(Array.isArray(t) ? t : [t], e);
|
|
7727
7728
|
}
|
|
7728
7729
|
}
|
|
7729
|
-
let
|
|
7730
|
+
let Eo = /* @__PURE__ */ new Map();
|
|
7730
7731
|
class jf {
|
|
7731
7732
|
constructor(e, t) {
|
|
7732
7733
|
let n = e.ownerDocument || e, r = n.defaultView;
|
|
7733
7734
|
if (!e.head && e.adoptedStyleSheets && r.CSSStyleSheet) {
|
|
7734
|
-
let o =
|
|
7735
|
+
let o = Eo.get(n);
|
|
7735
7736
|
if (o) return e[Qn] = o;
|
|
7736
|
-
this.sheet = new r.CSSStyleSheet(),
|
|
7737
|
+
this.sheet = new r.CSSStyleSheet(), Eo.set(n, this);
|
|
7737
7738
|
} else
|
|
7738
7739
|
this.styleTag = n.createElement("style"), t && this.styleTag.setAttribute("nonce", t);
|
|
7739
7740
|
this.modules = [], e[Qn] = this;
|
|
@@ -7870,7 +7871,7 @@ function bi(i) {
|
|
|
7870
7871
|
return i.nodeType == 3 ? St(i, 0, i.nodeValue.length).getClientRects() : i.nodeType == 1 ? i.getClientRects() : [];
|
|
7871
7872
|
}
|
|
7872
7873
|
function ci(i, e, t, n) {
|
|
7873
|
-
return t ?
|
|
7874
|
+
return t ? Io(i, e, t, n, -1) || Io(i, e, t, n, 1) : !1;
|
|
7874
7875
|
}
|
|
7875
7876
|
function vt(i) {
|
|
7876
7877
|
for (var e = 0; ; e++)
|
|
@@ -7880,7 +7881,7 @@ function vt(i) {
|
|
|
7880
7881
|
function Ji(i) {
|
|
7881
7882
|
return i.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(i.nodeName);
|
|
7882
7883
|
}
|
|
7883
|
-
function
|
|
7884
|
+
function Io(i, e, t, n, r) {
|
|
7884
7885
|
for (; ; ) {
|
|
7885
7886
|
if (i == t && e == n)
|
|
7886
7887
|
return !0;
|
|
@@ -8031,9 +8032,9 @@ function zl(i) {
|
|
|
8031
8032
|
}
|
|
8032
8033
|
}
|
|
8033
8034
|
}
|
|
8034
|
-
let
|
|
8035
|
+
let Po;
|
|
8035
8036
|
function St(i, e, t = e) {
|
|
8036
|
-
let n =
|
|
8037
|
+
let n = Po || (Po = document.createRange());
|
|
8037
8038
|
return n.setEnd(i, t), n.setStart(i, e), n;
|
|
8038
8039
|
}
|
|
8039
8040
|
function Pt(i, e, t, n) {
|
|
@@ -8114,7 +8115,7 @@ class pe {
|
|
|
8114
8115
|
return new pe(e.parentNode, vt(e) + 1, t);
|
|
8115
8116
|
}
|
|
8116
8117
|
}
|
|
8117
|
-
const
|
|
8118
|
+
const Pr = [];
|
|
8118
8119
|
class q {
|
|
8119
8120
|
constructor() {
|
|
8120
8121
|
this.parent = null, this.dom = null, this.flags = 2;
|
|
@@ -8153,13 +8154,13 @@ class q {
|
|
|
8153
8154
|
}
|
|
8154
8155
|
if (o = r ? r.nextSibling : n.firstChild, t && !t.written && t.node == n && o != s.dom && (t.written = !0), s.dom.parentNode == n)
|
|
8155
8156
|
for (; o && o != s.dom; )
|
|
8156
|
-
o =
|
|
8157
|
+
o = Lo(o);
|
|
8157
8158
|
else
|
|
8158
8159
|
n.insertBefore(s.dom, o);
|
|
8159
8160
|
r = s.dom;
|
|
8160
8161
|
}
|
|
8161
8162
|
for (o = r ? r.nextSibling : n.firstChild, o && t && t.node == n && (t.written = !0); o; )
|
|
8162
|
-
o =
|
|
8163
|
+
o = Lo(o);
|
|
8163
8164
|
} else if (this.flags & 1)
|
|
8164
8165
|
for (let n of this.children)
|
|
8165
8166
|
n.flags & 7 && (n.sync(e, t), n.flags &= -8);
|
|
@@ -8236,7 +8237,7 @@ class q {
|
|
|
8236
8237
|
e = t;
|
|
8237
8238
|
}
|
|
8238
8239
|
}
|
|
8239
|
-
replaceChildren(e, t, n =
|
|
8240
|
+
replaceChildren(e, t, n = Pr) {
|
|
8240
8241
|
this.markDirty();
|
|
8241
8242
|
for (let r = e; r < t; r++) {
|
|
8242
8243
|
let o = this.children[r];
|
|
@@ -8296,7 +8297,7 @@ class q {
|
|
|
8296
8297
|
}
|
|
8297
8298
|
}
|
|
8298
8299
|
q.prototype.breakAfter = 0;
|
|
8299
|
-
function
|
|
8300
|
+
function Lo(i) {
|
|
8300
8301
|
let e = i.nextSibling;
|
|
8301
8302
|
return i.parentNode.removeChild(i), e;
|
|
8302
8303
|
}
|
|
@@ -8337,16 +8338,16 @@ function ql(i, e, t, n, r, o) {
|
|
|
8337
8338
|
i.length += d, jl(i, c, h, l, a, n, 0, r, o);
|
|
8338
8339
|
}
|
|
8339
8340
|
let Te = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, tr = typeof document < "u" ? document : { documentElement: { style: {} } };
|
|
8340
|
-
const ir = /* @__PURE__ */ /Edge\/(\d+)/.exec(Te.userAgent), Kl = /* @__PURE__ */ /MSIE \d/.test(Te.userAgent), nr = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Te.userAgent), fn = !!(Kl || nr || ir),
|
|
8341
|
+
const ir = /* @__PURE__ */ /Edge\/(\d+)/.exec(Te.userAgent), Kl = /* @__PURE__ */ /MSIE \d/.test(Te.userAgent), nr = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Te.userAgent), fn = !!(Kl || nr || ir), Bo = !fn && /* @__PURE__ */ /gecko\/(\d+)/i.test(Te.userAgent), Sn = !fn && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Te.userAgent), Xf = "webkitFontSmoothing" in tr.documentElement.style, Ul = !fn && /* @__PURE__ */ /Apple Computer/.test(Te.vendor), zo = Ul && (/* @__PURE__ */ /Mobile\/\w+/.test(Te.userAgent) || Te.maxTouchPoints > 2);
|
|
8341
8342
|
var O = {
|
|
8342
|
-
mac:
|
|
8343
|
+
mac: zo || /* @__PURE__ */ /Mac/.test(Te.platform),
|
|
8343
8344
|
ie: fn,
|
|
8344
8345
|
ie_version: Kl ? tr.documentMode || 6 : nr ? +nr[1] : ir ? +ir[1] : 0,
|
|
8345
|
-
gecko:
|
|
8346
|
-
gecko_version:
|
|
8346
|
+
gecko: Bo,
|
|
8347
|
+
gecko_version: Bo ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(Te.userAgent) || [0, 0])[1] : 0,
|
|
8347
8348
|
chrome: !!Sn,
|
|
8348
8349
|
chrome_version: Sn ? +Sn[1] : 0,
|
|
8349
|
-
ios:
|
|
8350
|
+
ios: zo,
|
|
8350
8351
|
android: /* @__PURE__ */ /Android\b/.test(Te.userAgent),
|
|
8351
8352
|
safari: Ul,
|
|
8352
8353
|
webkit_version: Xf ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(Te.userAgent) || [0, 0])[1] : 0,
|
|
@@ -8553,7 +8554,7 @@ class jt extends q {
|
|
|
8553
8554
|
return !0;
|
|
8554
8555
|
}
|
|
8555
8556
|
}
|
|
8556
|
-
Ie.prototype.children = yt.prototype.children = jt.prototype.children =
|
|
8557
|
+
Ie.prototype.children = yt.prototype.children = jt.prototype.children = Pr;
|
|
8557
8558
|
function _l(i, e) {
|
|
8558
8559
|
let t = i.dom, { children: n } = i, r = 0;
|
|
8559
8560
|
for (let o = 0; r < n.length; r++) {
|
|
@@ -8610,11 +8611,11 @@ function rr(i, e) {
|
|
|
8610
8611
|
t == "class" && e.class ? e.class += " " + i.class : t == "style" && e.style ? e.style += ";" + i.style : e[t] = i[t];
|
|
8611
8612
|
return e;
|
|
8612
8613
|
}
|
|
8613
|
-
const
|
|
8614
|
+
const No = /* @__PURE__ */ Object.create(null);
|
|
8614
8615
|
function Qi(i, e, t) {
|
|
8615
8616
|
if (i == e)
|
|
8616
8617
|
return !0;
|
|
8617
|
-
i || (i =
|
|
8618
|
+
i || (i = No), e || (e = No);
|
|
8618
8619
|
let n = Object.keys(i), r = Object.keys(e);
|
|
8619
8620
|
if (n.length - (t && n.indexOf(t) > -1 ? 1 : 0) != r.length - (t && r.indexOf(t) > -1 ? 1 : 0))
|
|
8620
8621
|
return !1;
|
|
@@ -8641,7 +8642,7 @@ function tg(i) {
|
|
|
8641
8642
|
}
|
|
8642
8643
|
return e;
|
|
8643
8644
|
}
|
|
8644
|
-
class
|
|
8645
|
+
class Lr {
|
|
8645
8646
|
/**
|
|
8646
8647
|
Compare this instance to another instance of the same type.
|
|
8647
8648
|
(TypeScript can't express this, but only instances of the same
|
|
@@ -8982,7 +8983,7 @@ class Qe extends q {
|
|
|
8982
8983
|
return n.breakAfter = this.breakAfter, n;
|
|
8983
8984
|
}
|
|
8984
8985
|
get children() {
|
|
8985
|
-
return
|
|
8986
|
+
return Pr;
|
|
8986
8987
|
}
|
|
8987
8988
|
sync(e) {
|
|
8988
8989
|
(!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.widget.editable || (this.dom.contentEditable = "false"));
|
|
@@ -9020,7 +9021,7 @@ class Qe extends q {
|
|
|
9020
9021
|
return t == n ? !1 : e < 0 ? t < 0 : n > 0;
|
|
9021
9022
|
}
|
|
9022
9023
|
}
|
|
9023
|
-
class sr extends
|
|
9024
|
+
class sr extends Lr {
|
|
9024
9025
|
constructor(e) {
|
|
9025
9026
|
super(), this.height = e;
|
|
9026
9027
|
}
|
|
@@ -9118,7 +9119,7 @@ function Ei(i, e) {
|
|
|
9118
9119
|
i = new et(t, [i], i.length);
|
|
9119
9120
|
return i;
|
|
9120
9121
|
}
|
|
9121
|
-
class qt extends
|
|
9122
|
+
class qt extends Lr {
|
|
9122
9123
|
constructor(e) {
|
|
9123
9124
|
super(), this.tag = e;
|
|
9124
9125
|
}
|
|
@@ -9140,7 +9141,7 @@ qt.block = /* @__PURE__ */ new qt("div");
|
|
|
9140
9141
|
var be = /* @__PURE__ */ function(i) {
|
|
9141
9142
|
return i[i.LTR = 0] = "LTR", i[i.RTL = 1] = "RTL", i;
|
|
9142
9143
|
}(be || (be = {}));
|
|
9143
|
-
const Ct = be.LTR,
|
|
9144
|
+
const Ct = be.LTR, Br = be.RTL;
|
|
9144
9145
|
function Jl(i) {
|
|
9145
9146
|
let e = [];
|
|
9146
9147
|
for (let t = 0; t < i.length; t++)
|
|
@@ -9161,7 +9162,7 @@ class nt {
|
|
|
9161
9162
|
The direction of this span.
|
|
9162
9163
|
*/
|
|
9163
9164
|
get dir() {
|
|
9164
|
-
return this.level % 2 ?
|
|
9165
|
+
return this.level % 2 ? Br : Ct;
|
|
9165
9166
|
}
|
|
9166
9167
|
/**
|
|
9167
9168
|
@internal
|
|
@@ -9384,7 +9385,7 @@ function hr(i, e, t, n, r, o, s) {
|
|
|
9384
9385
|
}
|
|
9385
9386
|
function hg(i, e, t) {
|
|
9386
9387
|
if (!i)
|
|
9387
|
-
return [new nt(0, 0, e ==
|
|
9388
|
+
return [new nt(0, 0, e == Br ? 1 : 0)];
|
|
9388
9389
|
if (e == Ct && !t.length && !og.test(i))
|
|
9389
9390
|
return ea(i.length);
|
|
9390
9391
|
if (t.length)
|
|
@@ -9417,11 +9418,11 @@ function dg(i, e, t) {
|
|
|
9417
9418
|
if (r == 1)
|
|
9418
9419
|
return Ct;
|
|
9419
9420
|
if (r == 2 || r == 4)
|
|
9420
|
-
return
|
|
9421
|
+
return Br;
|
|
9421
9422
|
}
|
|
9422
9423
|
return Ct;
|
|
9423
9424
|
}
|
|
9424
|
-
const ia = /* @__PURE__ */ P.define(), na = /* @__PURE__ */ P.define(), ra = /* @__PURE__ */ P.define(), oa = /* @__PURE__ */ P.define(), cr = /* @__PURE__ */ P.define(), sa = /* @__PURE__ */ P.define(), la = /* @__PURE__ */ P.define(),
|
|
9425
|
+
const ia = /* @__PURE__ */ P.define(), na = /* @__PURE__ */ P.define(), ra = /* @__PURE__ */ P.define(), oa = /* @__PURE__ */ P.define(), cr = /* @__PURE__ */ P.define(), sa = /* @__PURE__ */ P.define(), la = /* @__PURE__ */ P.define(), zr = /* @__PURE__ */ P.define(), Nr = /* @__PURE__ */ P.define(), aa = /* @__PURE__ */ P.define({
|
|
9425
9426
|
combine: (i) => i.some((e) => e)
|
|
9426
9427
|
}), ug = /* @__PURE__ */ P.define({
|
|
9427
9428
|
combine: (i) => i.some((e) => e)
|
|
@@ -9530,8 +9531,8 @@ class Cn {
|
|
|
9530
9531
|
this.spec = this.value = null;
|
|
9531
9532
|
}
|
|
9532
9533
|
}
|
|
9533
|
-
const da = /* @__PURE__ */ P.define(),
|
|
9534
|
-
function
|
|
9534
|
+
const da = /* @__PURE__ */ P.define(), Fr = /* @__PURE__ */ P.define(), wi = /* @__PURE__ */ P.define(), ua = /* @__PURE__ */ P.define(), Wr = /* @__PURE__ */ P.define(), fa = /* @__PURE__ */ P.define();
|
|
9535
|
+
function Fo(i, e) {
|
|
9535
9536
|
let t = i.state.facet(fa);
|
|
9536
9537
|
if (!t.length)
|
|
9537
9538
|
return t;
|
|
@@ -9670,7 +9671,7 @@ class Zi {
|
|
|
9670
9671
|
return this.flags == 0 && this.transactions.length == 0;
|
|
9671
9672
|
}
|
|
9672
9673
|
}
|
|
9673
|
-
class
|
|
9674
|
+
class Wo extends q {
|
|
9674
9675
|
get length() {
|
|
9675
9676
|
return this.view.state.doc.length;
|
|
9676
9677
|
}
|
|
@@ -10127,10 +10128,10 @@ function Cg(i, e) {
|
|
|
10127
10128
|
function kn(i, e) {
|
|
10128
10129
|
return i.top < e.bottom - 1 && i.bottom > e.top + 1;
|
|
10129
10130
|
}
|
|
10130
|
-
function
|
|
10131
|
+
function Ho(i, e) {
|
|
10131
10132
|
return e < i.top ? { top: e, left: i.left, right: i.right, bottom: i.bottom } : i;
|
|
10132
10133
|
}
|
|
10133
|
-
function
|
|
10134
|
+
function Vo(i, e) {
|
|
10134
10135
|
return e > i.bottom ? { top: i.top, left: i.left, right: i.right, bottom: e } : i;
|
|
10135
10136
|
}
|
|
10136
10137
|
function dr(i, e, t) {
|
|
@@ -10139,24 +10140,24 @@ function dr(i, e, t) {
|
|
|
10139
10140
|
let b = bi(p);
|
|
10140
10141
|
for (let w = 0; w < b.length; w++) {
|
|
10141
10142
|
let y = b[w];
|
|
10142
|
-
r && kn(r, y) && (y =
|
|
10143
|
+
r && kn(r, y) && (y = Ho(Vo(y, r.bottom), r.top));
|
|
10143
10144
|
let v = Sg(e, y), k = Cg(t, y);
|
|
10144
10145
|
if (v == 0 && k == 0)
|
|
10145
|
-
return p.nodeType == 3 ?
|
|
10146
|
-
(!n || s > k || s == k && o > v) && (n = p, r = y, o = v, s = k, l = v ? e < y.left ? w > 0 : w < b.length - 1 : !0), v == 0 ? t > y.bottom && (!h || h.bottom < y.bottom) ? (a = p, h = y) : t < y.top && (!d || d.top > y.top) && (c = p, d = y) : h && kn(h, y) ? h =
|
|
10146
|
+
return p.nodeType == 3 ? jo(p, e, t) : dr(p, e, t);
|
|
10147
|
+
(!n || s > k || s == k && o > v) && (n = p, r = y, o = v, s = k, l = v ? e < y.left ? w > 0 : w < b.length - 1 : !0), v == 0 ? t > y.bottom && (!h || h.bottom < y.bottom) ? (a = p, h = y) : t < y.top && (!d || d.top > y.top) && (c = p, d = y) : h && kn(h, y) ? h = Vo(h, y.bottom) : d && kn(d, y) && (d = Ho(d, y.top));
|
|
10147
10148
|
}
|
|
10148
10149
|
}
|
|
10149
10150
|
if (h && h.bottom >= t ? (n = a, r = h) : d && d.top <= t && (n = c, r = d), !n)
|
|
10150
10151
|
return { node: i, offset: 0 };
|
|
10151
10152
|
let f = Math.max(r.left, Math.min(r.right, e));
|
|
10152
10153
|
if (n.nodeType == 3)
|
|
10153
|
-
return
|
|
10154
|
+
return jo(n, f, t);
|
|
10154
10155
|
if (l && n.contentEditable != "false")
|
|
10155
10156
|
return dr(n, f, t);
|
|
10156
10157
|
let g = Array.prototype.indexOf.call(i.childNodes, n) + (e >= (r.left + r.right) / 2 ? 1 : 0);
|
|
10157
10158
|
return { node: i, offset: g };
|
|
10158
10159
|
}
|
|
10159
|
-
function
|
|
10160
|
+
function jo(i, e, t) {
|
|
10160
10161
|
let n = i.nodeValue.length, r = -1, o = 1e9, s = 0;
|
|
10161
10162
|
for (let l = 0; l < n; l++) {
|
|
10162
10163
|
let a = St(i, l, l + 1).getClientRects();
|
|
@@ -10192,9 +10193,9 @@ function ba(i, e, t, n = -1) {
|
|
|
10192
10193
|
d = l + f;
|
|
10193
10194
|
let g = a.from;
|
|
10194
10195
|
if (g < i.viewport.from)
|
|
10195
|
-
return i.viewport.from == 0 ? 0 : t ? null :
|
|
10196
|
+
return i.viewport.from == 0 ? 0 : t ? null : qo(i, s, a, h, d);
|
|
10196
10197
|
if (g > i.viewport.to)
|
|
10197
|
-
return i.viewport.to == i.state.doc.length ? i.state.doc.length : t ? null :
|
|
10198
|
+
return i.viewport.to == i.state.doc.length ? i.state.doc.length : t ? null : qo(i, s, a, h, d);
|
|
10198
10199
|
let p = i.dom.ownerDocument, b = i.root.elementFromPoint ? i.root : p, w = b.elementFromPoint(h, d);
|
|
10199
10200
|
w && !i.contentDOM.contains(w) && (w = null), w || (h = Math.max(s.left + 1, Math.min(s.right - 1, h)), w = b.elementFromPoint(h, d), w && !i.contentDOM.contains(w) && (w = null));
|
|
10200
10201
|
let y, v = -1;
|
|
@@ -10223,7 +10224,7 @@ function ba(i, e, t, n = -1) {
|
|
|
10223
10224
|
} else
|
|
10224
10225
|
return k.localPosFromDOM(y, v) + k.posAtStart;
|
|
10225
10226
|
}
|
|
10226
|
-
function
|
|
10227
|
+
function qo(i, e, t, n, r) {
|
|
10227
10228
|
let o = Math.round((n - e.left) * i.defaultCharacterWidth);
|
|
10228
10229
|
if (i.lineWrapping && t.height > i.defaultLineHeight * 1.5) {
|
|
10229
10230
|
let l = i.viewState.heightOracle.textHeight, a = Math.floor((r - t.top - (i.defaultLineHeight - l) * 0.5) / l);
|
|
@@ -10294,7 +10295,7 @@ function Tg(i, e, t, n) {
|
|
|
10294
10295
|
}
|
|
10295
10296
|
return E.cursor(t ? r.to : r.from, t ? -1 : 1);
|
|
10296
10297
|
}
|
|
10297
|
-
function
|
|
10298
|
+
function Ko(i, e, t, n) {
|
|
10298
10299
|
let r = i.state.doc.lineAt(e.head), o = i.bidiSpans(r), s = i.textDirectionAt(r.from);
|
|
10299
10300
|
for (let l = e, a = null; ; ) {
|
|
10300
10301
|
let c = cg(r, o, s, l, t), h = ta;
|
|
@@ -10357,7 +10358,7 @@ function Ki(i, e, t) {
|
|
|
10357
10358
|
}
|
|
10358
10359
|
}
|
|
10359
10360
|
function $n(i, e, t) {
|
|
10360
|
-
let n = Ki(i.state.facet(
|
|
10361
|
+
let n = Ki(i.state.facet(Wr).map((r) => r(i)), t.from, e.head > t.from ? -1 : 1);
|
|
10361
10362
|
return n == t.from ? t : E.cursor(n, n < t.from ? 1 : -1);
|
|
10362
10363
|
}
|
|
10363
10364
|
const oi = "";
|
|
@@ -10429,7 +10430,7 @@ function Og(i, e, t) {
|
|
|
10429
10430
|
t = vt(e) + 1, e = e.parentNode;
|
|
10430
10431
|
}
|
|
10431
10432
|
}
|
|
10432
|
-
class
|
|
10433
|
+
class Uo {
|
|
10433
10434
|
constructor(e, t) {
|
|
10434
10435
|
this.node = e, this.offset = t, this.pos = -1;
|
|
10435
10436
|
}
|
|
@@ -10473,14 +10474,14 @@ function ya(i, e) {
|
|
|
10473
10474
|
insert: i.state.doc.slice(r.from, t.from).append(t.insert).append(i.state.doc.slice(t.to, r.to))
|
|
10474
10475
|
} : O.chrome && t && t.from == t.to && t.from == r.head && t.insert.toString() == `
|
|
10475
10476
|
` && i.lineWrapping && (n && (n = E.single(n.main.anchor - 1, n.main.head - 1)), t = { from: r.from, to: r.to, insert: W.of([" "]) }), t)
|
|
10476
|
-
return
|
|
10477
|
+
return Hr(i, t, n, o);
|
|
10477
10478
|
if (n && !n.main.eq(r)) {
|
|
10478
10479
|
let s = !1, l = "select";
|
|
10479
10480
|
return i.inputState.lastSelectionTime > Date.now() - 50 && (i.inputState.lastSelectionOrigin == "select" && (s = !0), l = i.inputState.lastSelectionOrigin), i.dispatch({ selection: n, scrollIntoView: s, userEvent: l }), !0;
|
|
10480
10481
|
} else
|
|
10481
10482
|
return !1;
|
|
10482
10483
|
}
|
|
10483
|
-
function
|
|
10484
|
+
function Hr(i, e, t, n = -1) {
|
|
10484
10485
|
if (O.ios && i.inputState.flushIOSKey(e))
|
|
10485
10486
|
return !0;
|
|
10486
10487
|
let r = i.state.selection.main;
|
|
@@ -10560,7 +10561,7 @@ function Lg(i) {
|
|
|
10560
10561
|
if (i.root.activeElement != i.contentDOM)
|
|
10561
10562
|
return e;
|
|
10562
10563
|
let { anchorNode: t, anchorOffset: n, focusNode: r, focusOffset: o } = i.observer.selectionRange;
|
|
10563
|
-
return t && (e.push(new
|
|
10564
|
+
return t && (e.push(new Uo(t, n)), (r != t || o != n) && e.push(new Uo(r, o))), e;
|
|
10564
10565
|
}
|
|
10565
10566
|
function Bg(i, e) {
|
|
10566
10567
|
if (i.length == 0)
|
|
@@ -10629,7 +10630,7 @@ class zg {
|
|
|
10629
10630
|
this.mouseSelection && this.mouseSelection.destroy();
|
|
10630
10631
|
}
|
|
10631
10632
|
}
|
|
10632
|
-
function
|
|
10633
|
+
function _o(i, e) {
|
|
10633
10634
|
return (t, n) => {
|
|
10634
10635
|
try {
|
|
10635
10636
|
return e.call(i, n, t);
|
|
@@ -10648,12 +10649,12 @@ function Ng(i) {
|
|
|
10648
10649
|
if (o)
|
|
10649
10650
|
for (let l in o) {
|
|
10650
10651
|
let a = o[l];
|
|
10651
|
-
a && t(l).handlers.push(
|
|
10652
|
+
a && t(l).handlers.push(_o(n.value, a));
|
|
10652
10653
|
}
|
|
10653
10654
|
if (s)
|
|
10654
10655
|
for (let l in s) {
|
|
10655
10656
|
let a = s[l];
|
|
10656
|
-
a && t(l).observers.push(
|
|
10657
|
+
a && t(l).observers.push(_o(n.value, a));
|
|
10657
10658
|
}
|
|
10658
10659
|
}
|
|
10659
10660
|
for (let n in Pe)
|
|
@@ -10676,7 +10677,7 @@ function Hg(i, e) {
|
|
|
10676
10677
|
}
|
|
10677
10678
|
class Vg {
|
|
10678
10679
|
constructor(e, t, n, r) {
|
|
10679
|
-
this.view = e, this.startEvent = t, this.style = n, this.mustSelect = r, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParents = Uf(e.contentDOM), this.atoms = e.state.facet(
|
|
10680
|
+
this.view = e, this.startEvent = t, this.style = n, this.mustSelect = r, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParents = Uf(e.contentDOM), this.atoms = e.state.facet(Wr).map((s) => s(e));
|
|
10680
10681
|
let o = e.contentDOM.ownerDocument;
|
|
10681
10682
|
o.addEventListener("mousemove", this.move = this.move.bind(this)), o.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = t.shiftKey, this.multiple = e.state.facet(G.allowMultipleSelections) && jg(e, t), this.dragging = Kg(e, t) && Sa(t) == 1 ? null : !1;
|
|
10682
10683
|
}
|
|
@@ -10784,7 +10785,7 @@ function gn(i, e, t) {
|
|
|
10784
10785
|
return t;
|
|
10785
10786
|
}
|
|
10786
10787
|
function va(i, e) {
|
|
10787
|
-
e = gn(i.state,
|
|
10788
|
+
e = gn(i.state, zr, e);
|
|
10788
10789
|
let { state: t } = i, n, r = 1, o = t.toText(e), s = o.lines == t.selection.ranges.length;
|
|
10789
10790
|
if (ur != null && t.selection.ranges.every((a) => a.empty) && ur == o.toString()) {
|
|
10790
10791
|
let a = -1;
|
|
@@ -10841,7 +10842,7 @@ Pe.mousedown = (i, e) => {
|
|
|
10841
10842
|
}
|
|
10842
10843
|
return !1;
|
|
10843
10844
|
};
|
|
10844
|
-
function
|
|
10845
|
+
function Go(i, e, t, n) {
|
|
10845
10846
|
if (n == 1)
|
|
10846
10847
|
return E.cursor(e, t);
|
|
10847
10848
|
if (n == 2)
|
|
@@ -10851,7 +10852,7 @@ function _o(i, e, t, n) {
|
|
|
10851
10852
|
return l < i.state.doc.length && l == o.to && l++, E.range(s, l);
|
|
10852
10853
|
}
|
|
10853
10854
|
}
|
|
10854
|
-
let
|
|
10855
|
+
let Yo = (i, e, t) => e >= t.top && e <= t.bottom && i >= t.left && i <= t.right;
|
|
10855
10856
|
function Gg(i, e, t, n) {
|
|
10856
10857
|
let r = ie.find(i.docView, e);
|
|
10857
10858
|
if (!r)
|
|
@@ -10862,33 +10863,33 @@ function Gg(i, e, t, n) {
|
|
|
10862
10863
|
if (o == r.length)
|
|
10863
10864
|
return -1;
|
|
10864
10865
|
let s = r.coordsAt(o, -1);
|
|
10865
|
-
if (s &&
|
|
10866
|
+
if (s && Yo(t, n, s))
|
|
10866
10867
|
return -1;
|
|
10867
10868
|
let l = r.coordsAt(o, 1);
|
|
10868
|
-
return l &&
|
|
10869
|
+
return l && Yo(t, n, l) ? 1 : s && s.bottom >= n ? -1 : 1;
|
|
10869
10870
|
}
|
|
10870
|
-
function
|
|
10871
|
+
function Xo(i, e) {
|
|
10871
10872
|
let t = i.posAtCoords({ x: e.clientX, y: e.clientY }, !1);
|
|
10872
10873
|
return { pos: t, bias: Gg(i, t, e.clientX, e.clientY) };
|
|
10873
10874
|
}
|
|
10874
10875
|
const Yg = O.ie && O.ie_version <= 11;
|
|
10875
|
-
let
|
|
10876
|
+
let Jo = null, Qo = 0, Zo = 0;
|
|
10876
10877
|
function Sa(i) {
|
|
10877
10878
|
if (!Yg)
|
|
10878
10879
|
return i.detail;
|
|
10879
|
-
let e =
|
|
10880
|
-
return
|
|
10880
|
+
let e = Jo, t = Zo;
|
|
10881
|
+
return Jo = i, Zo = Date.now(), Qo = !e || t > Date.now() - 400 && Math.abs(e.clientX - i.clientX) < 2 && Math.abs(e.clientY - i.clientY) < 2 ? (Qo + 1) % 3 : 1;
|
|
10881
10882
|
}
|
|
10882
10883
|
function Xg(i, e) {
|
|
10883
|
-
let t =
|
|
10884
|
+
let t = Xo(i, e), n = Sa(e), r = i.state.selection;
|
|
10884
10885
|
return {
|
|
10885
10886
|
update(o) {
|
|
10886
10887
|
o.docChanged && (t.pos = o.changes.mapPos(t.pos), r = r.map(o.changes));
|
|
10887
10888
|
},
|
|
10888
10889
|
get(o, s, l) {
|
|
10889
|
-
let a =
|
|
10890
|
+
let a = Xo(i, o), c, h = Go(i, a.pos, a.bias, n);
|
|
10890
10891
|
if (t.pos != a.pos && !s) {
|
|
10891
|
-
let d =
|
|
10892
|
+
let d = Go(i, t.pos, t.bias, n), f = Math.min(d.from, h.from), g = Math.max(d.to, h.to);
|
|
10892
10893
|
h = f < h.from ? E.range(f, g) : E.range(g, f);
|
|
10893
10894
|
}
|
|
10894
10895
|
return s ? r.replaceRange(r.main.extend(h.from, h.to)) : l && n == 1 && r.ranges.length > 1 && (c = Jg(r, a.pos)) ? c : l ? r.addRange(h) : E.create([h]);
|
|
@@ -10913,11 +10914,11 @@ Pe.dragstart = (i, e) => {
|
|
|
10913
10914
|
}
|
|
10914
10915
|
}
|
|
10915
10916
|
let { inputState: n } = i;
|
|
10916
|
-
return n.mouseSelection && (n.mouseSelection.dragging = !0), n.draggedContent = t, e.dataTransfer && (e.dataTransfer.setData("Text", gn(i.state,
|
|
10917
|
+
return n.mouseSelection && (n.mouseSelection.dragging = !0), n.draggedContent = t, e.dataTransfer && (e.dataTransfer.setData("Text", gn(i.state, Nr, i.state.sliceDoc(t.from, t.to))), e.dataTransfer.effectAllowed = "copyMove"), !1;
|
|
10917
10918
|
};
|
|
10918
10919
|
Pe.dragend = (i) => (i.inputState.draggedContent = null, !1);
|
|
10919
|
-
function
|
|
10920
|
-
if (t = gn(i.state,
|
|
10920
|
+
function es(i, e, t, n) {
|
|
10921
|
+
if (t = gn(i.state, zr, t), !t)
|
|
10921
10922
|
return;
|
|
10922
10923
|
let r = i.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: o } = i.inputState, s = n && o && qg(i, e) ? { from: o.from, to: o.to } : null, l = { from: r, insert: t }, a = i.state.changes(s ? [s, l] : l);
|
|
10923
10924
|
i.focus(), i.dispatch({
|
|
@@ -10934,7 +10935,7 @@ Pe.drop = (i, e) => {
|
|
|
10934
10935
|
let t = e.dataTransfer.files;
|
|
10935
10936
|
if (t && t.length) {
|
|
10936
10937
|
let n = Array(t.length), r = 0, o = () => {
|
|
10937
|
-
++r == t.length &&
|
|
10938
|
+
++r == t.length && es(i, e, n.filter((s) => s != null).join(i.state.lineBreak), !1);
|
|
10938
10939
|
};
|
|
10939
10940
|
for (let s = 0; s < t.length; s++) {
|
|
10940
10941
|
let l = new FileReader();
|
|
@@ -10946,7 +10947,7 @@ Pe.drop = (i, e) => {
|
|
|
10946
10947
|
} else {
|
|
10947
10948
|
let n = e.dataTransfer.getData("Text");
|
|
10948
10949
|
if (n)
|
|
10949
|
-
return
|
|
10950
|
+
return es(i, e, n, !0), !0;
|
|
10950
10951
|
}
|
|
10951
10952
|
return !1;
|
|
10952
10953
|
};
|
|
@@ -10978,7 +10979,7 @@ function Zg(i) {
|
|
|
10978
10979
|
}
|
|
10979
10980
|
n = !0;
|
|
10980
10981
|
}
|
|
10981
|
-
return { text: gn(i,
|
|
10982
|
+
return { text: gn(i, Nr, e.join(i.lineBreak)), ranges: t, linewise: n };
|
|
10982
10983
|
}
|
|
10983
10984
|
let ur = null;
|
|
10984
10985
|
Pe.copy = Pe.cut = (i, e) => {
|
|
@@ -11034,7 +11035,7 @@ Pe.beforeinput = (i, e) => {
|
|
|
11034
11035
|
let o = (t = e.dataTransfer) === null || t === void 0 ? void 0 : t.getData("text/plain"), s = e.getTargetRanges();
|
|
11035
11036
|
if (o && s.length) {
|
|
11036
11037
|
let l = s[0], a = i.posAtDOM(l.startContainer, l.startOffset), c = i.posAtDOM(l.endContainer, l.endOffset);
|
|
11037
|
-
return
|
|
11038
|
+
return Hr(i, { from: a, to: c, insert: i.state.toText(o) }, null), !0;
|
|
11038
11039
|
}
|
|
11039
11040
|
}
|
|
11040
11041
|
let r;
|
|
@@ -11047,15 +11048,15 @@ Pe.beforeinput = (i, e) => {
|
|
|
11047
11048
|
}
|
|
11048
11049
|
return O.ios && e.inputType == "deleteContentForward" && i.observer.flushSoon(), O.safari && e.inputType == "insertText" && i.inputState.composing >= 0 && setTimeout(() => Me.compositionend(i, e), 20), !1;
|
|
11049
11050
|
};
|
|
11050
|
-
const
|
|
11051
|
+
const ts = /* @__PURE__ */ new Set();
|
|
11051
11052
|
function ep(i) {
|
|
11052
|
-
|
|
11053
|
+
ts.has(i) || (ts.add(i), i.addEventListener("copy", () => {
|
|
11053
11054
|
}), i.addEventListener("cut", () => {
|
|
11054
11055
|
}));
|
|
11055
11056
|
}
|
|
11056
|
-
const
|
|
11057
|
+
const is = ["pre-wrap", "normal", "pre-line", "break-spaces"];
|
|
11057
11058
|
let Kt = !1;
|
|
11058
|
-
function
|
|
11059
|
+
function ns() {
|
|
11059
11060
|
Kt = !1;
|
|
11060
11061
|
}
|
|
11061
11062
|
class tp {
|
|
@@ -11073,7 +11074,7 @@ class tp {
|
|
|
11073
11074
|
return this.doc = e, this;
|
|
11074
11075
|
}
|
|
11075
11076
|
mustRefreshForWrapping(e) {
|
|
11076
|
-
return
|
|
11077
|
+
return is.indexOf(e) > -1 != this.lineWrapping;
|
|
11077
11078
|
}
|
|
11078
11079
|
mustRefreshForHeights(e) {
|
|
11079
11080
|
let t = !1;
|
|
@@ -11084,7 +11085,7 @@ class tp {
|
|
|
11084
11085
|
return t;
|
|
11085
11086
|
}
|
|
11086
11087
|
refresh(e, t, n, r, o, s) {
|
|
11087
|
-
let l =
|
|
11088
|
+
let l = is.indexOf(e) > -1, a = Math.round(t) != Math.round(this.lineHeight) || this.lineWrapping != l;
|
|
11088
11089
|
if (this.lineWrapping = l, this.lineHeight = t, this.charWidth = n, this.textHeight = r, this.lineLength = o, a) {
|
|
11089
11090
|
this.heightSamples = {};
|
|
11090
11091
|
for (let c = 0; c < s.length; c++) {
|
|
@@ -11188,7 +11189,7 @@ class we {
|
|
|
11188
11189
|
for (d += g.to - c, c = g.to; l > 0 && f.from <= r[l - 1].toA; )
|
|
11189
11190
|
a = r[l - 1].fromA, h = r[l - 1].fromB, l--, a < f.from && (f = o.lineAt(a, _.ByPosNoHeight, n, 0, 0));
|
|
11190
11191
|
h += f.from - a, a = f.from;
|
|
11191
|
-
let p =
|
|
11192
|
+
let p = Vr.build(n.setDoc(s), e, h, d);
|
|
11192
11193
|
o = en(o, o.replace(a, c, p));
|
|
11193
11194
|
}
|
|
11194
11195
|
return o.updateHeight(n, 0);
|
|
@@ -11391,9 +11392,9 @@ class np extends we {
|
|
|
11391
11392
|
let s = o.length;
|
|
11392
11393
|
for (let l of n)
|
|
11393
11394
|
o.push(l);
|
|
11394
|
-
if (e > 0 &&
|
|
11395
|
+
if (e > 0 && rs(o, s - 1), t < this.length) {
|
|
11395
11396
|
let l = o.length;
|
|
11396
|
-
this.decomposeRight(t, o),
|
|
11397
|
+
this.decomposeRight(t, o), rs(o, l);
|
|
11397
11398
|
}
|
|
11398
11399
|
return we.of(o);
|
|
11399
11400
|
}
|
|
@@ -11420,12 +11421,12 @@ class np extends we {
|
|
|
11420
11421
|
return this.left + (this.break ? " " : "-") + this.right;
|
|
11421
11422
|
}
|
|
11422
11423
|
}
|
|
11423
|
-
function
|
|
11424
|
+
function rs(i, e) {
|
|
11424
11425
|
let t, n;
|
|
11425
11426
|
i[e] == null && (t = i[e - 1]) instanceof ce && (n = i[e + 1]) instanceof ce && i.splice(e - 1, 3, new ce(t.length + 1 + n.length));
|
|
11426
11427
|
}
|
|
11427
11428
|
const rp = 5;
|
|
11428
|
-
class
|
|
11429
|
+
class Vr {
|
|
11429
11430
|
constructor(e, t) {
|
|
11430
11431
|
this.pos = e, this.oracle = t, this.nodes = [], this.lineStart = -1, this.lineEnd = -1, this.covering = null, this.writtenTo = e;
|
|
11431
11432
|
}
|
|
@@ -11489,7 +11490,7 @@ class Hr {
|
|
|
11489
11490
|
// starts or ends in a line break, or has multiple line breaks next
|
|
11490
11491
|
// to each other.
|
|
11491
11492
|
static build(e, t, n, r) {
|
|
11492
|
-
let o = new
|
|
11493
|
+
let o = new Vr(n, e);
|
|
11493
11494
|
return X.spans(t, n, r, o, 0), o.finish(n);
|
|
11494
11495
|
}
|
|
11495
11496
|
}
|
|
@@ -11561,7 +11562,7 @@ class An {
|
|
|
11561
11562
|
}).range(this.from, this.to);
|
|
11562
11563
|
}
|
|
11563
11564
|
}
|
|
11564
|
-
class cp extends
|
|
11565
|
+
class cp extends Lr {
|
|
11565
11566
|
constructor(e, t) {
|
|
11566
11567
|
super(), this.size = e, this.vertical = t;
|
|
11567
11568
|
}
|
|
@@ -11576,10 +11577,10 @@ class cp extends Pr {
|
|
|
11576
11577
|
return this.vertical ? this.size : -1;
|
|
11577
11578
|
}
|
|
11578
11579
|
}
|
|
11579
|
-
class
|
|
11580
|
+
class os {
|
|
11580
11581
|
constructor(e) {
|
|
11581
|
-
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler =
|
|
11582
|
-
let t = e.facet(
|
|
11582
|
+
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = ss, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = be.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
|
|
11583
|
+
let t = e.facet(Fr).some((n) => typeof n != "function" && n.class == "cm-lineWrapping");
|
|
11583
11584
|
this.heightOracle = new tp(t), this.stateDeco = e.facet(wi).filter((n) => typeof n != "function"), this.heightMap = we.empty().applyChanges(this.stateDeco, W.empty, this.heightOracle.setDoc(e.doc), [new Re(0, 0, 0, e.doc.length)]);
|
|
11584
11585
|
for (let n = 0; n < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); n++)
|
|
11585
11586
|
;
|
|
@@ -11598,7 +11599,7 @@ class rs {
|
|
|
11598
11599
|
}
|
|
11599
11600
|
updateScaler() {
|
|
11600
11601
|
let e = this.scaler;
|
|
11601
|
-
return this.scaler = this.heightMap.height <= 7e6 ?
|
|
11602
|
+
return this.scaler = this.heightMap.height <= 7e6 ? ss : new jr(this.heightOracle, this.heightMap, this.viewports), e.eq(this.scaler) ? 0 : 2;
|
|
11602
11603
|
}
|
|
11603
11604
|
updateViewportLines() {
|
|
11604
11605
|
this.viewportLines = [], this.heightMap.forEachLine(this.viewport.from, this.viewport.to, this.heightOracle.setDoc(this.state.doc), 0, 0, (e) => {
|
|
@@ -11610,7 +11611,7 @@ class rs {
|
|
|
11610
11611
|
let n = this.stateDeco;
|
|
11611
11612
|
this.stateDeco = this.state.facet(wi).filter((h) => typeof h != "function");
|
|
11612
11613
|
let r = e.changedRanges, o = Re.extendWithRanges(r, op(n, this.stateDeco, e ? e.changes : he.empty(this.state.doc.length))), s = this.heightMap.height, l = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
|
|
11613
|
-
|
|
11614
|
+
ns(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), o), (this.heightMap.height != s || Kt) && (e.flags |= 2), l ? (this.scrollAnchorPos = e.changes.mapPos(l.from, -1), this.scrollAnchorHeight = l.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = s);
|
|
11614
11615
|
let a = o.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
|
|
11615
11616
|
(t && (t.range.head < a.from || t.range.head > a.to) || !this.viewportIsAppropriate(a)) && (a = this.getViewport(0, t));
|
|
11616
11617
|
let c = a.from != this.viewport.from || a.to != this.viewport.to;
|
|
@@ -11642,7 +11643,7 @@ class rs {
|
|
|
11642
11643
|
let { lineHeight: A, charWidth: S, textHeight: M } = e.docView.measureTextSize();
|
|
11643
11644
|
s = A > 0 && r.refresh(o, A, S, M, Math.max(5, v / S), C), s && (e.docView.minWidth = 0, c |= 16);
|
|
11644
11645
|
}
|
|
11645
|
-
b > 0 && w > 0 ? h = Math.max(b, w) : b < 0 && w < 0 && (h = Math.min(b, w)),
|
|
11646
|
+
b > 0 && w > 0 ? h = Math.max(b, w) : b < 0 && w < 0 && (h = Math.min(b, w)), ns();
|
|
11646
11647
|
for (let A of this.viewports) {
|
|
11647
11648
|
let S = A.from == this.viewport.from ? C : e.docView.measureVisibleLineHeights(A);
|
|
11648
11649
|
this.heightMap = (s ? we.empty().applyChanges(this.stateDeco, W.empty, this.heightOracle, [new Re(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(r, 0, s, new ip(A.from, S));
|
|
@@ -11854,7 +11855,7 @@ function up(i, e) {
|
|
|
11854
11855
|
if (e(t))
|
|
11855
11856
|
return t;
|
|
11856
11857
|
}
|
|
11857
|
-
const
|
|
11858
|
+
const ss = {
|
|
11858
11859
|
toDOM(i) {
|
|
11859
11860
|
return i;
|
|
11860
11861
|
},
|
|
@@ -11866,7 +11867,7 @@ const os = {
|
|
|
11866
11867
|
return i == this;
|
|
11867
11868
|
}
|
|
11868
11869
|
};
|
|
11869
|
-
class
|
|
11870
|
+
class jr {
|
|
11870
11871
|
constructor(e, t, n) {
|
|
11871
11872
|
let r = 0, o = 0, s = 0;
|
|
11872
11873
|
this.viewports = n.map(({ from: l, to: a }) => {
|
|
@@ -11897,7 +11898,7 @@ class Vr {
|
|
|
11897
11898
|
}
|
|
11898
11899
|
}
|
|
11899
11900
|
eq(e) {
|
|
11900
|
-
return e instanceof
|
|
11901
|
+
return e instanceof jr ? this.scale == e.scale && this.viewports.length == e.viewports.length && this.viewports.every((t, n) => t.from == e.viewports[n].from && t.to == e.viewports[n].to) : !1;
|
|
11901
11902
|
}
|
|
11902
11903
|
}
|
|
11903
11904
|
function si(i, e) {
|
|
@@ -12385,7 +12386,7 @@ class pp {
|
|
|
12385
12386
|
if (!t || t.ignoreMutation(e))
|
|
12386
12387
|
return null;
|
|
12387
12388
|
if (t.markDirty(e.type == "attributes"), e.type == "attributes" && (t.flags |= 4), e.type == "childList") {
|
|
12388
|
-
let n =
|
|
12389
|
+
let n = ls(t, e.previousSibling || e.target.previousSibling, -1), r = ls(t, e.nextSibling || e.target.nextSibling, 1);
|
|
12389
12390
|
return {
|
|
12390
12391
|
from: n ? t.posAfter(n) : t.posAtStart,
|
|
12391
12392
|
to: r ? t.posBefore(r) : t.posAtEnd,
|
|
@@ -12413,7 +12414,7 @@ class pp {
|
|
|
12413
12414
|
this.removeWindowListeners(this.win), clearTimeout(this.parentCheck), clearTimeout(this.resizeTimeout), this.win.cancelAnimationFrame(this.delayedFlush), this.win.cancelAnimationFrame(this.flushingAndroidKey), this.editContext && (this.view.contentDOM.editContext = null, this.editContext.destroy());
|
|
12414
12415
|
}
|
|
12415
12416
|
}
|
|
12416
|
-
function
|
|
12417
|
+
function ls(i, e, t) {
|
|
12417
12418
|
for (; e; ) {
|
|
12418
12419
|
let n = q.get(e);
|
|
12419
12420
|
if (n && n.parent == i)
|
|
@@ -12423,7 +12424,7 @@ function ss(i, e, t) {
|
|
|
12423
12424
|
}
|
|
12424
12425
|
return null;
|
|
12425
12426
|
}
|
|
12426
|
-
function
|
|
12427
|
+
function as(i, e) {
|
|
12427
12428
|
let t = e.startContainer, n = e.startOffset, r = e.endContainer, o = e.endOffset, s = i.docView.domAtPos(i.state.selection.main.anchor);
|
|
12428
12429
|
return ci(s.node, s.offset, r, o) && ([t, n, r, o] = [r, o, t, n]), { anchorNode: t, anchorOffset: n, focusNode: r, focusOffset: o };
|
|
12429
12430
|
}
|
|
@@ -12431,13 +12432,13 @@ function mp(i, e) {
|
|
|
12431
12432
|
if (e.getComposedRanges) {
|
|
12432
12433
|
let r = e.getComposedRanges(i.root)[0];
|
|
12433
12434
|
if (r)
|
|
12434
|
-
return
|
|
12435
|
+
return as(i, r);
|
|
12435
12436
|
}
|
|
12436
12437
|
let t = null;
|
|
12437
12438
|
function n(r) {
|
|
12438
12439
|
r.preventDefault(), r.stopImmediatePropagation(), t = r.getTargetRanges()[0];
|
|
12439
12440
|
}
|
|
12440
|
-
return i.contentDOM.addEventListener("beforeinput", n, !0), i.dom.ownerDocument.execCommand("indent"), i.contentDOM.removeEventListener("beforeinput", n, !0), t ?
|
|
12441
|
+
return i.contentDOM.addEventListener("beforeinput", n, !0), i.dom.ownerDocument.execCommand("indent"), i.contentDOM.removeEventListener("beforeinput", n, !0), t ? as(i, t) : null;
|
|
12441
12442
|
}
|
|
12442
12443
|
class bp {
|
|
12443
12444
|
constructor(e) {
|
|
@@ -12459,7 +12460,7 @@ class bp {
|
|
|
12459
12460
|
}
|
|
12460
12461
|
if ((O.mac || O.android) && c.from == s - 1 && /^\. ?$/.test(n.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (c = { from: l, to: a, insert: W.of([n.text.replace(".", " ")]) }), this.pendingContextChange = c, !e.state.readOnly) {
|
|
12461
12462
|
let h = this.to - this.from + (c.to - c.from + c.insert.length);
|
|
12462
|
-
|
|
12463
|
+
Hr(e, c, E.single(this.toEditorPos(n.selectionStart, h), this.toEditorPos(n.selectionEnd, h)));
|
|
12463
12464
|
}
|
|
12464
12465
|
this.pendingContextChange && (this.revertPending(e.state), this.setSelection(e.state));
|
|
12465
12466
|
}, this.handlers.characterboundsupdate = (n) => {
|
|
@@ -12640,10 +12641,10 @@ class H {
|
|
|
12640
12641
|
var t;
|
|
12641
12642
|
this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom);
|
|
12642
12643
|
let { dispatch: n } = e;
|
|
12643
|
-
this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((o) => n(o, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || Gf(e.parent) || document, this.viewState = new
|
|
12644
|
+
this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((o) => n(o, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || Gf(e.parent) || document, this.viewState = new os(e.state || G.create(e)), e.scrollTo && e.scrollTo.is(Ii) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(Ot).map((r) => new Cn(r));
|
|
12644
12645
|
for (let r of this.plugins)
|
|
12645
12646
|
r.update(this);
|
|
12646
|
-
this.observer = new pp(this), this.inputState = new zg(this), this.inputState.ensureHandlers(this.plugins), this.docView = new
|
|
12647
|
+
this.observer = new pp(this), this.inputState = new zg(this), this.inputState.ensureHandlers(this.plugins), this.docView = new Wo(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(), !((t = document.fonts) === null || t === void 0) && t.ready && document.fonts.ready.then(() => this.requestMeasure());
|
|
12647
12648
|
}
|
|
12648
12649
|
dispatch(...e) {
|
|
12649
12650
|
let t = e.length == 1 && e[0] instanceof me ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)];
|
|
@@ -12721,10 +12722,10 @@ class H {
|
|
|
12721
12722
|
try {
|
|
12722
12723
|
for (let n of this.plugins)
|
|
12723
12724
|
n.destroy(this);
|
|
12724
|
-
this.viewState = new
|
|
12725
|
+
this.viewState = new os(e), this.plugins = e.facet(Ot).map((n) => new Cn(n)), this.pluginMap.clear();
|
|
12725
12726
|
for (let n of this.plugins)
|
|
12726
12727
|
n.update(this);
|
|
12727
|
-
this.docView.destroy(), this.docView = new
|
|
12728
|
+
this.docView.destroy(), this.docView = new Wo(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = [];
|
|
12728
12729
|
} finally {
|
|
12729
12730
|
this.updateState = 0;
|
|
12730
12731
|
}
|
|
@@ -12800,12 +12801,12 @@ class H {
|
|
|
12800
12801
|
try {
|
|
12801
12802
|
return g.read(this);
|
|
12802
12803
|
} catch (p) {
|
|
12803
|
-
return Xe(this.state, p),
|
|
12804
|
+
return Xe(this.state, p), hs;
|
|
12804
12805
|
}
|
|
12805
12806
|
}), d = Zi.create(this, this.state, []), f = !1;
|
|
12806
12807
|
d.flags |= a, t ? t.flags |= a : t = d, this.updateState = 2, d.empty || (this.updatePlugins(d), this.inputState.update(d), this.updateAttrs(), f = this.docView.update(d), f && this.docViewUpdate());
|
|
12807
12808
|
for (let g = 0; g < c.length; g++)
|
|
12808
|
-
if (h[g] !=
|
|
12809
|
+
if (h[g] != hs)
|
|
12809
12810
|
try {
|
|
12810
12811
|
let p = c[g];
|
|
12811
12812
|
p.write && p.write(h[g], this);
|
|
@@ -12841,7 +12842,7 @@ class H {
|
|
|
12841
12842
|
return gr + " " + (this.state.facet(fr) ? Ra : Ta) + " " + this.state.facet(Fi);
|
|
12842
12843
|
}
|
|
12843
12844
|
updateAttrs() {
|
|
12844
|
-
let e =
|
|
12845
|
+
let e = cs(this, da, {
|
|
12845
12846
|
class: "cm-editor" + (this.hasFocus ? " cm-focused " : " ") + this.themeClasses
|
|
12846
12847
|
}), t = {
|
|
12847
12848
|
spellcheck: "false",
|
|
@@ -12855,7 +12856,7 @@ class H {
|
|
|
12855
12856
|
role: "textbox",
|
|
12856
12857
|
"aria-multiline": "true"
|
|
12857
12858
|
};
|
|
12858
|
-
this.state.readOnly && (t["aria-readonly"] = "true"),
|
|
12859
|
+
this.state.readOnly && (t["aria-readonly"] = "true"), cs(this, Fr, t);
|
|
12859
12860
|
let n = this.observer.ignore(() => {
|
|
12860
12861
|
let r = or(this.contentDOM, this.contentAttrs, t), o = or(this.dom, this.editorAttrs, e);
|
|
12861
12862
|
return r || o;
|
|
@@ -13002,7 +13003,7 @@ class H {
|
|
|
13002
13003
|
whether it should also be moved over.
|
|
13003
13004
|
*/
|
|
13004
13005
|
moveByChar(e, t, n) {
|
|
13005
|
-
return $n(this, e,
|
|
13006
|
+
return $n(this, e, Ko(this, e, t, n));
|
|
13006
13007
|
}
|
|
13007
13008
|
/**
|
|
13008
13009
|
Move a cursor position across the next group of either
|
|
@@ -13010,7 +13011,7 @@ class H {
|
|
|
13010
13011
|
non-whitespace characters.
|
|
13011
13012
|
*/
|
|
13012
13013
|
moveByGroup(e, t) {
|
|
13013
|
-
return $n(this, e,
|
|
13014
|
+
return $n(this, e, Ko(this, e, t, (n) => Rg(this, e.head, n)));
|
|
13014
13015
|
}
|
|
13015
13016
|
/**
|
|
13016
13017
|
Get the cursor position visually at the start or end of a line.
|
|
@@ -13154,9 +13155,9 @@ class H {
|
|
|
13154
13155
|
return ea(e.length);
|
|
13155
13156
|
let t = this.textDirectionAt(e.from), n;
|
|
13156
13157
|
for (let o of this.bidiCache)
|
|
13157
|
-
if (o.from == e.from && o.dir == t && (o.fresh || Zl(o.isolates, n =
|
|
13158
|
+
if (o.from == e.from && o.dir == t && (o.fresh || Zl(o.isolates, n = Fo(this, e))))
|
|
13158
13159
|
return o.order;
|
|
13159
|
-
n || (n =
|
|
13160
|
+
n || (n = Fo(this, e));
|
|
13160
13161
|
let r = hg(e.text, t, n);
|
|
13161
13162
|
return this.bidiCache.push(new tn(e.from, e.to, t, n, !0, r)), r;
|
|
13162
13163
|
}
|
|
@@ -13302,8 +13303,8 @@ class H {
|
|
|
13302
13303
|
}
|
|
13303
13304
|
H.styleModule = ri;
|
|
13304
13305
|
H.inputHandler = sa;
|
|
13305
|
-
H.clipboardInputFilter =
|
|
13306
|
-
H.clipboardOutputFilter =
|
|
13306
|
+
H.clipboardInputFilter = zr;
|
|
13307
|
+
H.clipboardOutputFilter = Nr;
|
|
13307
13308
|
H.scrollHandler = ha;
|
|
13308
13309
|
H.focusChangeEffect = la;
|
|
13309
13310
|
H.perLineTextDirection = aa;
|
|
@@ -13315,16 +13316,16 @@ H.dragMovesSelection = na;
|
|
|
13315
13316
|
H.clickAddsSelectionRange = ia;
|
|
13316
13317
|
H.decorations = wi;
|
|
13317
13318
|
H.outerDecorations = ua;
|
|
13318
|
-
H.atomicRanges =
|
|
13319
|
+
H.atomicRanges = Wr;
|
|
13319
13320
|
H.bidiIsolatedRanges = fa;
|
|
13320
13321
|
H.scrollMargins = ga;
|
|
13321
13322
|
H.darkTheme = fr;
|
|
13322
13323
|
H.cspNonce = /* @__PURE__ */ P.define({ combine: (i) => i.length ? i[0] : "" });
|
|
13323
|
-
H.contentAttributes =
|
|
13324
|
+
H.contentAttributes = Fr;
|
|
13324
13325
|
H.editorAttributes = da;
|
|
13325
13326
|
H.lineWrapping = /* @__PURE__ */ H.contentAttributes.of({ class: "cm-lineWrapping" });
|
|
13326
13327
|
H.announce = /* @__PURE__ */ ne.define();
|
|
13327
|
-
const yp = 4096,
|
|
13328
|
+
const yp = 4096, hs = {};
|
|
13328
13329
|
class tn {
|
|
13329
13330
|
constructor(e, t, n, r, o, s) {
|
|
13330
13331
|
this.from = e, this.to = t, this.dir = n, this.isolates = r, this.fresh = o, this.order = s;
|
|
@@ -13340,7 +13341,7 @@ class tn {
|
|
|
13340
13341
|
return n;
|
|
13341
13342
|
}
|
|
13342
13343
|
}
|
|
13343
|
-
function
|
|
13344
|
+
function cs(i, e, t) {
|
|
13344
13345
|
for (let n = i.state.facet(e), r = n.length - 1; r >= 0; r--) {
|
|
13345
13346
|
let o = n[r], s = typeof o == "function" ? o(i) : o;
|
|
13346
13347
|
s && rr(s, t);
|
|
@@ -13478,7 +13479,7 @@ const Da = ne.define(), Oa = ne.define(), wp = ye.mark({
|
|
|
13478
13479
|
font-size: ${({ theme: i }) => i.fontSizes[3]};
|
|
13479
13480
|
line-height: ${({ theme: i }) => i.lineHeights[6]};
|
|
13480
13481
|
|
|
13481
|
-
${({ theme: i }) => i.breakpoints.
|
|
13482
|
+
${({ theme: i }) => i.breakpoints.medium} {
|
|
13482
13483
|
font-size: ${({ theme: i }) => i.fontSizes[2]};
|
|
13483
13484
|
line-height: ${({ theme: i }) => i.lineHeights[2]};
|
|
13484
13485
|
}
|
|
@@ -13728,7 +13729,7 @@ const Da = ne.define(), Oa = ne.define(), wp = ye.mark({
|
|
|
13728
13729
|
value: f,
|
|
13729
13730
|
endAction: /* @__PURE__ */ $(T, { direction: "column", children: [
|
|
13730
13731
|
/* @__PURE__ */ u(
|
|
13731
|
-
|
|
13732
|
+
ds,
|
|
13732
13733
|
{
|
|
13733
13734
|
disabled: o,
|
|
13734
13735
|
"aria-hidden": !0,
|
|
@@ -13741,7 +13742,7 @@ const Da = ne.define(), Oa = ne.define(), wp = ye.mark({
|
|
|
13741
13742
|
}
|
|
13742
13743
|
),
|
|
13743
13744
|
/* @__PURE__ */ u(
|
|
13744
|
-
|
|
13745
|
+
ds,
|
|
13745
13746
|
{
|
|
13746
13747
|
disabled: o,
|
|
13747
13748
|
"aria-hidden": !0,
|
|
@@ -13757,7 +13758,7 @@ const Da = ne.define(), Oa = ne.define(), wp = ye.mark({
|
|
|
13757
13758
|
}
|
|
13758
13759
|
);
|
|
13759
13760
|
}
|
|
13760
|
-
),
|
|
13761
|
+
), ds = x.button`
|
|
13761
13762
|
display: flex;
|
|
13762
13763
|
justify-content: center;
|
|
13763
13764
|
align-items: center;
|
|
@@ -13776,10 +13777,10 @@ function zp({
|
|
|
13776
13777
|
onChange: t = () => {
|
|
13777
13778
|
}
|
|
13778
13779
|
}) {
|
|
13779
|
-
const [n, r] =
|
|
13780
|
+
const [n, r] = Os({
|
|
13780
13781
|
defaultProp: e,
|
|
13781
13782
|
onChange: t
|
|
13782
|
-
}), o = i !== void 0, s = i instanceof Function ? i(n) : i, l = o ? s : n, a =
|
|
13783
|
+
}), o = i !== void 0, s = i instanceof Function ? i(n) : i, l = o ? s : n, a = ws(t), c = m.useCallback(
|
|
13783
13784
|
(h) => {
|
|
13784
13785
|
if (o) {
|
|
13785
13786
|
const f = typeof h == "function" ? h(s) : h;
|
|
@@ -13791,20 +13792,20 @@ function zp({
|
|
|
13791
13792
|
);
|
|
13792
13793
|
return [l, c];
|
|
13793
13794
|
}
|
|
13794
|
-
const Ia = m.createContext({ activePage: 1, pageCount: 1 }),
|
|
13795
|
+
const Ia = m.createContext({ activePage: 1, pageCount: 1 }), qr = () => m.useContext(Ia), o1 = ({ children: i, label: e = "Pagination", activePage: t, pageCount: n }) => {
|
|
13795
13796
|
const r = m.useMemo(() => ({ activePage: t, pageCount: n }), [t, n]);
|
|
13796
13797
|
return /* @__PURE__ */ u(Ia.Provider, { value: r, children: /* @__PURE__ */ u(R, { "aria-label": e, tag: "nav", children: /* @__PURE__ */ u(T, { tag: "ol", gap: 1, children: m.Children.map(i, (o, s) => /* @__PURE__ */ u("li", { children: o }, s)) }) }) });
|
|
13797
13798
|
}, s1 = xe(
|
|
13798
13799
|
({ children: i, ...e }, t) => {
|
|
13799
|
-
const { activePage: n } =
|
|
13800
|
+
const { activePage: n } = qr(), r = n === 1;
|
|
13800
13801
|
return /* @__PURE__ */ $(La, { ref: t, "aria-disabled": r, tabIndex: r ? -1 : void 0, ...e, children: [
|
|
13801
13802
|
/* @__PURE__ */ u(lt, { children: i }),
|
|
13802
|
-
/* @__PURE__ */ u(
|
|
13803
|
+
/* @__PURE__ */ u(vs, { "aria-hidden": !0 })
|
|
13803
13804
|
] });
|
|
13804
13805
|
}
|
|
13805
13806
|
), l1 = xe(
|
|
13806
13807
|
({ children: i, ...e }, t) => {
|
|
13807
|
-
const { activePage: n, pageCount: r } =
|
|
13808
|
+
const { activePage: n, pageCount: r } = qr(), o = n === r;
|
|
13808
13809
|
return /* @__PURE__ */ $(La, { ref: t, "aria-disabled": o, tabIndex: o ? -1 : void 0, ...e, children: [
|
|
13809
13810
|
/* @__PURE__ */ u(lt, { children: i }),
|
|
13810
13811
|
/* @__PURE__ */ u(wr, { "aria-hidden": !0 })
|
|
@@ -13837,7 +13838,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
13837
13838
|
` : void 0}
|
|
13838
13839
|
`, a1 = xe(
|
|
13839
13840
|
({ number: i, children: e, ...t }, n) => {
|
|
13840
|
-
const { activePage: r } =
|
|
13841
|
+
const { activePage: r } = qr(), o = r === i;
|
|
13841
13842
|
return /* @__PURE__ */ $(Np, { ref: n, ...t, "aria-current": o, $active: o, children: [
|
|
13842
13843
|
/* @__PURE__ */ u(lt, { children: e }),
|
|
13843
13844
|
/* @__PURE__ */ u(I, { "aria-hidden": !0, fontWeight: o ? "bold" : void 0, lineHeight: "revert", variant: "pi", children: i })
|
|
@@ -13911,7 +13912,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
13911
13912
|
Trigger: Vp
|
|
13912
13913
|
}, Symbol.toStringTag, { value: "Module" })), d1 = m.forwardRef(
|
|
13913
13914
|
({ size: i = "M", value: e, ...t }, n) => /* @__PURE__ */ u(_p, { ref: n, $size: i, ...t, children: /* @__PURE__ */ u(Gp, { style: { transform: `translate3D(-${100 - (e ?? 0)}%, 0, 0)` } }) })
|
|
13914
|
-
), _p = x(
|
|
13915
|
+
), _p = x(ks.Root)`
|
|
13915
13916
|
position: relative;
|
|
13916
13917
|
overflow: hidden;
|
|
13917
13918
|
width: ${(i) => i.$size === "S" ? "7.8rem" : "10.2rem"};
|
|
@@ -13922,7 +13923,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
13922
13923
|
/* Fix overflow clipping in Safari */
|
|
13923
13924
|
/* https://gist.github.com/domske/b66047671c780a238b51c51ffde8d3a0 */
|
|
13924
13925
|
transform: translateZ(0);
|
|
13925
|
-
`, Gp = x(
|
|
13926
|
+
`, Gp = x(ks.Indicator)`
|
|
13926
13927
|
background-color: ${({ theme: i }) => i.colors.neutral0};
|
|
13927
13928
|
border-radius: ${({ theme: i }) => i.borderRadius};
|
|
13928
13929
|
width: 100%;
|
|
@@ -14142,7 +14143,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14142
14143
|
path {
|
|
14143
14144
|
fill: ${({ theme: i }) => i.colors.neutral500};
|
|
14144
14145
|
}
|
|
14145
|
-
`, Na = x(
|
|
14146
|
+
`, Na = x(Ss)`
|
|
14146
14147
|
font-size: 1rem;
|
|
14147
14148
|
path {
|
|
14148
14149
|
fill: ${({ theme: i }) => i.colors.neutral500};
|
|
@@ -14191,7 +14192,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14191
14192
|
({ name: i, children: e, value: t = "", onClear: n, clearLabel: r = "Clear", ...o }, s) => {
|
|
14192
14193
|
const l = m.useRef(null), a = t.length > 0, c = (d) => {
|
|
14193
14194
|
n(d), l.current.focus();
|
|
14194
|
-
}, h =
|
|
14195
|
+
}, h = Bs(s, l);
|
|
14195
14196
|
return /* @__PURE__ */ u(a0, { children: /* @__PURE__ */ $(xt, { name: i, children: [
|
|
14196
14197
|
/* @__PURE__ */ u(lt, { children: /* @__PURE__ */ u(Rr, { children: e }) }),
|
|
14197
14198
|
/* @__PURE__ */ u(
|
|
@@ -14352,7 +14353,15 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14352
14353
|
onClear: L != null && L.length ? a : void 0,
|
|
14353
14354
|
withTags: !!(w && ((L == null ? void 0 : L.length) ?? !1)),
|
|
14354
14355
|
size: g,
|
|
14355
|
-
children: /* @__PURE__ */ u(
|
|
14356
|
+
children: /* @__PURE__ */ u(
|
|
14357
|
+
cl,
|
|
14358
|
+
{
|
|
14359
|
+
placeholder: d,
|
|
14360
|
+
textColor: L != null && L.length ? "neutral800" : "neutral600",
|
|
14361
|
+
withTags: w,
|
|
14362
|
+
children: L != null && L.length ? w ? se : t ? t(L) : void 0 : void 0
|
|
14363
|
+
}
|
|
14364
|
+
)
|
|
14356
14365
|
}
|
|
14357
14366
|
),
|
|
14358
14367
|
/* @__PURE__ */ u(dl, { children: /* @__PURE__ */ u(ul, { position: "popper", sideOffset: 4, onCloseAutoFocus: c, children: /* @__PURE__ */ $(fl, { ref: k, children: [
|
|
@@ -14364,14 +14373,14 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14364
14373
|
);
|
|
14365
14374
|
}
|
|
14366
14375
|
), Fa = m.forwardRef(
|
|
14367
|
-
({ value: i, children: e, startIcon: t, ...n }, r) => /* @__PURE__ */ $(
|
|
14376
|
+
({ value: i, children: e, startIcon: t, ...n }, r) => /* @__PURE__ */ $(Dr, { ref: r, value: i.toString(), ...n, children: [
|
|
14368
14377
|
t && /* @__PURE__ */ u(R, { tag: "span", "aria-hidden": !0, children: t }),
|
|
14369
14378
|
/* @__PURE__ */ u(gl, { children: ({ isSelected: o, isIntermediate: s }) => /* @__PURE__ */ u(Tr, { checked: s ? "indeterminate" : o }) }),
|
|
14370
14379
|
/* @__PURE__ */ u(I, { children: /* @__PURE__ */ u(pl, { children: e }) })
|
|
14371
14380
|
] })
|
|
14372
14381
|
), m0 = m.forwardRef(
|
|
14373
14382
|
({ children: i, label: e, startIcon: t, values: n = [], ...r }, o) => /* @__PURE__ */ $(qu, { ref: o, children: [
|
|
14374
|
-
/* @__PURE__ */ $(
|
|
14383
|
+
/* @__PURE__ */ $(Dr, { value: n, ...r, children: [
|
|
14375
14384
|
t && /* @__PURE__ */ u(R, { tag: "span", "aria-hidden": !0, children: t }),
|
|
14376
14385
|
/* @__PURE__ */ u(gl, { children: ({ isSelected: s, isIntermediate: l }) => /* @__PURE__ */ u(Tr, { checked: l ? "indeterminate" : s }) }),
|
|
14377
14386
|
/* @__PURE__ */ u(I, { children: e })
|
|
@@ -14414,7 +14423,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14414
14423
|
overflow-y: auto;
|
|
14415
14424
|
border-right: 1px solid ${({ theme: i }) => i.colors.neutral200};
|
|
14416
14425
|
z-index: 1;
|
|
14417
|
-
`,
|
|
14426
|
+
`, us = x(bl)`
|
|
14418
14427
|
width: 2.4rem;
|
|
14419
14428
|
background-color: ${({ theme: i }) => i.colors.neutral200};
|
|
14420
14429
|
`, m1 = ({
|
|
@@ -14463,13 +14472,13 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14463
14472
|
children: t
|
|
14464
14473
|
}
|
|
14465
14474
|
) }),
|
|
14466
|
-
/* @__PURE__ */ u(R, { paddingLeft: 2, paddingTop: 4, children: /* @__PURE__ */ u(
|
|
14475
|
+
/* @__PURE__ */ u(R, { paddingLeft: 2, paddingTop: 4, children: /* @__PURE__ */ u(us, {}) })
|
|
14467
14476
|
] }) : /* @__PURE__ */ $(T, { direction: "column", alignItems: "flex-start", paddingLeft: 6, paddingTop: 6, paddingBottom: 2, paddingRight: 4, children: [
|
|
14468
14477
|
/* @__PURE__ */ $(T, { justifyContent: "space-between", alignItems: "flex-start", width: "100%", gap: 2, children: [
|
|
14469
14478
|
/* @__PURE__ */ u(I, { variant: "beta", tag: i, children: e }),
|
|
14470
|
-
n && /* @__PURE__ */ u(ot, { ref: b, onClick: w, label: t, children: /* @__PURE__ */ u(
|
|
14479
|
+
n && /* @__PURE__ */ u(ot, { ref: b, onClick: w, label: t, children: /* @__PURE__ */ u(Ss, {}) })
|
|
14471
14480
|
] }),
|
|
14472
|
-
/* @__PURE__ */ u(R, { paddingTop: 4, children: /* @__PURE__ */ u(
|
|
14481
|
+
/* @__PURE__ */ u(R, { paddingTop: 4, children: /* @__PURE__ */ u(us, {}) })
|
|
14473
14482
|
] });
|
|
14474
14483
|
}, b1 = xe(
|
|
14475
14484
|
({ active: i, children: e, icon: t = null, withBullet: n = !1, isSubSectionChild: r = !1, ...o }, s) => /* @__PURE__ */ $(
|
|
@@ -14603,7 +14612,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14603
14612
|
}
|
|
14604
14613
|
),
|
|
14605
14614
|
t && /* @__PURE__ */ u(
|
|
14606
|
-
|
|
14615
|
+
Ps,
|
|
14607
14616
|
{
|
|
14608
14617
|
backgroundColor: "neutral150",
|
|
14609
14618
|
textColor: "neutral600",
|
|
@@ -14659,7 +14668,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14659
14668
|
i ? /* @__PURE__ */ u(R0, { "aria-hidden": !0, "data-disabled": s, "data-state": c ? "checked" : "unchecked", children: c ? e : t }) : null
|
|
14660
14669
|
] });
|
|
14661
14670
|
}
|
|
14662
|
-
), A0 = x(
|
|
14671
|
+
), A0 = x($s.Root)`
|
|
14663
14672
|
width: 4rem;
|
|
14664
14673
|
height: 2.4rem;
|
|
14665
14674
|
border-radius: 1.2rem;
|
|
@@ -14676,7 +14685,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14676
14685
|
@media (prefers-reduced-motion: no-preference) {
|
|
14677
14686
|
transition: ${(i) => i.theme.transitions.backgroundColor};
|
|
14678
14687
|
}
|
|
14679
|
-
`, T0 = x(
|
|
14688
|
+
`, T0 = x($s.Thumb)`
|
|
14680
14689
|
display: block;
|
|
14681
14690
|
height: 1.6rem;
|
|
14682
14691
|
width: 1.6rem;
|
|
@@ -14702,13 +14711,13 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14702
14711
|
&[data-disabled='true'] {
|
|
14703
14712
|
color: ${({ theme: i }) => i.colors.neutral500};
|
|
14704
14713
|
}
|
|
14705
|
-
`, [M0,
|
|
14714
|
+
`, [M0, Kr] = Gt("Tabs"), D0 = m.forwardRef(
|
|
14706
14715
|
({ disabled: i = !1, variant: e = "regular", hasError: t, ...n }, r) => /* @__PURE__ */ u(M0, { disabled: i, hasError: t, variant: e, children: /* @__PURE__ */ u(O0, { ref: r, ...n }) })
|
|
14707
14716
|
), O0 = x(rn.Root)`
|
|
14708
14717
|
width: 100%;
|
|
14709
14718
|
position: relative;
|
|
14710
14719
|
`, E0 = m.forwardRef((i, e) => {
|
|
14711
|
-
const { variant: t } =
|
|
14720
|
+
const { variant: t } = Kr("List");
|
|
14712
14721
|
return /* @__PURE__ */ u(I0, { ref: e, ...i, $variant: t });
|
|
14713
14722
|
}), I0 = x(rn.List)`
|
|
14714
14723
|
display: flex;
|
|
@@ -14717,7 +14726,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14717
14726
|
z-index: 0;
|
|
14718
14727
|
`, P0 = m.forwardRef(
|
|
14719
14728
|
({ children: i, disabled: e, ...t }, n) => {
|
|
14720
|
-
const { disabled: r, variant: o, hasError: s } =
|
|
14729
|
+
const { disabled: r, variant: o, hasError: s } = Kr("Trigger"), l = r === !0 || r === t.value || e, a = s === t.value;
|
|
14721
14730
|
return /* @__PURE__ */ $(L0, { ref: n, ...t, $hasError: a, $variant: o, disabled: l, children: [
|
|
14722
14731
|
/* @__PURE__ */ u(Ha, { fontWeight: "bold", variant: o === "simple" ? "sigma" : void 0, children: i }),
|
|
14723
14732
|
o === "simple" ? /* @__PURE__ */ u(Wa, {}) : null
|
|
@@ -14782,10 +14791,12 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14782
14791
|
color: ${(i) => i.theme.colors.neutral400};
|
|
14783
14792
|
}
|
|
14784
14793
|
`, B0 = m.forwardRef((i, e) => {
|
|
14785
|
-
const { variant: t } =
|
|
14794
|
+
const { variant: t } = Kr("Content");
|
|
14786
14795
|
return /* @__PURE__ */ u(z0, { $variant: t, ref: e, ...i });
|
|
14787
14796
|
}), z0 = x(rn.Content)`
|
|
14788
|
-
${(i) => i.$variant === "simple" ? D
|
|
14797
|
+
${(i) => i.$variant === "simple" ? D`
|
|
14798
|
+
|
|
14799
|
+
` : D`
|
|
14789
14800
|
position: relative;
|
|
14790
14801
|
z-index: 1;
|
|
14791
14802
|
background-color: ${(e) => e.theme.colors.neutral0};
|
|
@@ -14928,7 +14939,7 @@ const Ia = m.createContext({ activePage: 1, pageCount: 1 }), jr = () => m.useCon
|
|
|
14928
14939
|
gap: 2,
|
|
14929
14940
|
...s,
|
|
14930
14941
|
children: [
|
|
14931
|
-
r ? /* @__PURE__ */ u(G0, { "aria-hidden": !0, children: /* @__PURE__ */ u(
|
|
14942
|
+
r ? /* @__PURE__ */ u(G0, { "aria-hidden": !0, children: /* @__PURE__ */ u(xs, {}) }) : e,
|
|
14932
14943
|
/* @__PURE__ */ u(I, { variant: "pi", children: i }),
|
|
14933
14944
|
t
|
|
14934
14945
|
]
|
|
@@ -15057,7 +15068,7 @@ const O1 = m.forwardRef(
|
|
|
15057
15068
|
$hasError: w,
|
|
15058
15069
|
children: [
|
|
15059
15070
|
/* @__PURE__ */ u(
|
|
15060
|
-
|
|
15071
|
+
fs,
|
|
15061
15072
|
{
|
|
15062
15073
|
hasRadius: !0,
|
|
15063
15074
|
flex: "1 1 50%",
|
|
@@ -15081,7 +15092,7 @@ const O1 = m.forwardRef(
|
|
|
15081
15092
|
}
|
|
15082
15093
|
),
|
|
15083
15094
|
/* @__PURE__ */ u(
|
|
15084
|
-
|
|
15095
|
+
fs,
|
|
15085
15096
|
{
|
|
15086
15097
|
hasRadius: !0,
|
|
15087
15098
|
flex: "1 1 50%",
|
|
@@ -15126,7 +15137,7 @@ const O1 = m.forwardRef(
|
|
|
15126
15137
|
}
|
|
15127
15138
|
), Z0 = x(T)`
|
|
15128
15139
|
${at()}
|
|
15129
|
-
`,
|
|
15140
|
+
`, fs = x(T)`
|
|
15130
15141
|
padding-block: 0.6rem;
|
|
15131
15142
|
`, em = x.input`
|
|
15132
15143
|
height: 100%;
|
|
@@ -15147,7 +15158,7 @@ const O1 = m.forwardRef(
|
|
|
15147
15158
|
right: 0
|
|
15148
15159
|
};
|
|
15149
15160
|
function I1() {
|
|
15150
|
-
const [i, e] = Mn(null), [t, n] = Mn(tm), r =
|
|
15161
|
+
const [i, e] = Mn(null), [t, n] = Mn(tm), r = ps(
|
|
15151
15162
|
() => new ResizeObserver((o) => {
|
|
15152
15163
|
if (o[0]) {
|
|
15153
15164
|
const { x: s, y: l, width: a, height: c, top: h, left: d, bottom: f, right: g } = o[0].contentRect;
|
|
@@ -15233,7 +15244,7 @@ export {
|
|
|
15233
15244
|
Sm as Accordion,
|
|
15234
15245
|
Cm as Alert,
|
|
15235
15246
|
km as Avatar,
|
|
15236
|
-
|
|
15247
|
+
Ps as Badge,
|
|
15237
15248
|
vi as BaseLink,
|
|
15238
15249
|
R as Box,
|
|
15239
15250
|
Ac as Breadcrumbs,
|
|
@@ -15307,8 +15318,8 @@ export {
|
|
|
15307
15318
|
d0 as SearchForm,
|
|
15308
15319
|
c0 as Searchbar,
|
|
15309
15320
|
ad as SimpleMenu,
|
|
15310
|
-
|
|
15311
|
-
|
|
15321
|
+
yo as SingleSelect,
|
|
15322
|
+
wo as SingleSelectOption,
|
|
15312
15323
|
i1 as SkipToContent,
|
|
15313
15324
|
g1 as Status,
|
|
15314
15325
|
p1 as SubNav,
|
|
@@ -15335,16 +15346,16 @@ export {
|
|
|
15335
15346
|
A1 as Tr,
|
|
15336
15347
|
I as Typography,
|
|
15337
15348
|
lt as VisuallyHidden,
|
|
15338
|
-
|
|
15349
|
+
Os as _internaluseUncontrolledState,
|
|
15339
15350
|
N1 as composeEventHandlers,
|
|
15340
|
-
|
|
15351
|
+
Bs as composeRefs,
|
|
15341
15352
|
ei as convertUTCDateToCalendarDateTime,
|
|
15342
15353
|
Nm as darkTheme,
|
|
15343
15354
|
Fm as extendTheme,
|
|
15344
15355
|
Wm as getThemeSize,
|
|
15345
15356
|
at as inputFocusStyle,
|
|
15346
15357
|
Oc as isSSR,
|
|
15347
|
-
|
|
15358
|
+
Zs as lightTheme,
|
|
15348
15359
|
F1 as useCallbackRef,
|
|
15349
15360
|
W1 as useCollator,
|
|
15350
15361
|
ve as useComposedRefs,
|