@okam/stack-ui 1.10.3 → 1.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/index.mjs +164 -162
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as Xt from "react";
|
|
2
|
-
import k, { useMemo as
|
|
2
|
+
import k, { useMemo as te, useRef as T, memo as x, lazy as er, Suspense as tr, useState as V, useEffect as re, useCallback as dt, createContext as rr, useContext as nr } from "react";
|
|
3
3
|
import { jsx as a, jsxs as y, Fragment as or } from "react/jsx-runtime";
|
|
4
4
|
import { tv as p } from "tailwind-variants";
|
|
5
5
|
import { get as ar } from "radash";
|
|
6
|
-
import { useLink as sr, FocusRing as
|
|
6
|
+
import { useLink as sr, FocusRing as Q, useButton as Me, FocusScope as be, useFocusManager as ir, useOverlay as ft, useModal as ht, useDialog as Ae, mergeProps as mt, DismissButton as ke, useOverlayTrigger as lr, useOverlayPosition as cr, OverlayContainer as ur, useIsSSR as dr, useListBox as fr, useOption as hr, usePopover as mr, Overlay as pr, useSelect as gr, HiddenSelect as br, useTextField as pt, useLocale as yr, useRadio as $r, useFocusRing as vr, VisuallyHidden as wr, useRadioGroup as xr } from "react-aria";
|
|
7
7
|
import Cr from "react-div-100vh";
|
|
8
8
|
import { useOverlayTriggerState as Mr } from "@react-stately/overlays";
|
|
9
9
|
import { useTransition as Ie, animated as Be, config as gt } from "react-spring";
|
|
10
10
|
import { OverlayContainer as kr, usePopover as Sr, Overlay as Dr, DismissButton as je } from "@react-aria/overlays";
|
|
11
|
-
import { FocusRing as
|
|
11
|
+
import { FocusRing as ye, useFocusRing as bt } from "@react-aria/focus";
|
|
12
12
|
import { useOverlayTriggerState as Pr, useSelectState as Tr } from "react-stately";
|
|
13
13
|
import Rr from "isomorphic-dompurify";
|
|
14
14
|
import { useDateFormatter as Ar, useLocale as _e } from "@react-aria/i18n";
|
|
@@ -37,7 +37,7 @@ const Gr = {
|
|
|
37
37
|
typography: () => ""
|
|
38
38
|
}, [Qr, qr] = Wr();
|
|
39
39
|
function Zr({ children: e, brandTheme: t = Gr }) {
|
|
40
|
-
const r =
|
|
40
|
+
const r = te(() => ({ brandTheme: t }), [t]);
|
|
41
41
|
return /* @__PURE__ */ a(qr, { value: r, children: e });
|
|
42
42
|
}
|
|
43
43
|
const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, children: r }), Xr = p({
|
|
@@ -144,7 +144,7 @@ const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, ch
|
|
|
144
144
|
large: "lg:col-start-3 sm:col-start-1 sm:col-end-13 lg:col-end-11 md:col-start-3 md:col-end-11 col-start-1 col-end-13"
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
}),
|
|
147
|
+
}), ae = p({
|
|
148
148
|
base: `
|
|
149
149
|
flex
|
|
150
150
|
items-center
|
|
@@ -637,11 +637,11 @@ const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, ch
|
|
|
637
637
|
calendarUnderlay: (e) => kn(e)
|
|
638
638
|
},
|
|
639
639
|
popover: {
|
|
640
|
-
button: (e) =>
|
|
640
|
+
button: (e) => ae(e),
|
|
641
641
|
popover: () => "border-2 text-black p-4 bg-gray-300"
|
|
642
642
|
},
|
|
643
643
|
typography: (e) => B(e),
|
|
644
|
-
button: (e) =>
|
|
644
|
+
button: (e) => ae(e),
|
|
645
645
|
sidePanel: {
|
|
646
646
|
wrapper: (e) => Hn(e),
|
|
647
647
|
container: (e) => Wn(e),
|
|
@@ -681,12 +681,12 @@ const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, ch
|
|
|
681
681
|
errorMessage: (e) => B(e)
|
|
682
682
|
},
|
|
683
683
|
select: {
|
|
684
|
-
button: (e) =>
|
|
684
|
+
button: (e) => ae(e),
|
|
685
685
|
ul: (e) => B({
|
|
686
686
|
...e,
|
|
687
687
|
className: "outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"
|
|
688
688
|
}),
|
|
689
|
-
popover: (e) =>
|
|
689
|
+
popover: (e) => ae(e),
|
|
690
690
|
errorMessage: (e) => B({ ...e, size: "footnotes", isError: !0 }),
|
|
691
691
|
wrapper: () => "flex flex-col gap-4 relative",
|
|
692
692
|
container: () => "flex flex-col gap-4",
|
|
@@ -736,7 +736,7 @@ const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, ch
|
|
|
736
736
|
{ ...e, elementType: s?.toString(), onPress: n },
|
|
737
737
|
t ?? d
|
|
738
738
|
), f = g(c, l, i);
|
|
739
|
-
return /* @__PURE__ */ a(
|
|
739
|
+
return /* @__PURE__ */ a(Q, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ a(r, { ref: d, ...b, ...u, className: f, children: o }) });
|
|
740
740
|
}), xt = k.forwardRef((e, t) => {
|
|
741
741
|
const {
|
|
742
742
|
as: r = "button",
|
|
@@ -752,8 +752,8 @@ const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, ch
|
|
|
752
752
|
{ ...e, isDisabled: u, elementType: s, onPress: n },
|
|
753
753
|
t ?? b
|
|
754
754
|
), h = g(c, l, i);
|
|
755
|
-
return /* @__PURE__ */ a(
|
|
756
|
-
}),
|
|
755
|
+
return /* @__PURE__ */ a(Q, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ a(r, { ref: b, ...f, ...d, className: h, children: o }) });
|
|
756
|
+
}), X = k.forwardRef(
|
|
757
757
|
(e, t) => {
|
|
758
758
|
const { as: r } = e;
|
|
759
759
|
return r === "a" ? /* @__PURE__ */ a(wt, { ref: t, ...e }) : /* @__PURE__ */ a(xt, { ref: t, ...e });
|
|
@@ -761,7 +761,7 @@ const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, ch
|
|
|
761
761
|
), Zn = (e) => {
|
|
762
762
|
const { as: t } = e, r = T(null);
|
|
763
763
|
return t === "a" ? /* @__PURE__ */ a(wt, { ref: r, ...e }) : /* @__PURE__ */ a(xt, { ref: r, ...e });
|
|
764
|
-
},
|
|
764
|
+
}, ee = k.memo(Zn), Kn = (e, t) => {
|
|
765
765
|
const r = e[t];
|
|
766
766
|
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((n, o) => {
|
|
767
767
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + t)));
|
|
@@ -770,7 +770,7 @@ const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, ch
|
|
|
770
770
|
__proto__: null,
|
|
771
771
|
default: Ct
|
|
772
772
|
}, Symbol.toStringTag, { value: "Module" })), to = (e) => {
|
|
773
|
-
const { icon: t, ...r } = e, n =
|
|
773
|
+
const { icon: t, ...r } = e, n = te(() => er(() => Kn(/* @__PURE__ */ Object.assign({ "../icons/ArrowDown.tsx": () => Promise.resolve().then(() => wa), "../icons/ArrowLeft.tsx": () => Promise.resolve().then(() => Ma), "../icons/ArrowRight.tsx": () => Promise.resolve().then(() => Da), "../icons/BrandArrowRight.tsx": () => Promise.resolve().then(() => Ra), "../icons/Check.tsx": () => Promise.resolve().then(() => Ba), "../icons/ChevronLeft.tsx": () => Promise.resolve().then(() => Ea), "../icons/ChevronRight.tsx": () => Promise.resolve().then(() => Fa), "../icons/CloseBtn.tsx": () => Promise.resolve().then(() => Ya), "../icons/Facebook.tsx": () => Promise.resolve().then(() => Ja), "../icons/FacebookColored.tsx": () => Promise.resolve().then(() => Ga), "../icons/FacebookRounded.tsx": () => Promise.resolve().then(() => Za), "../icons/Globe.tsx": () => Promise.resolve().then(() => es), "../icons/IconFallback.tsx": () => Promise.resolve().then(() => eo), "../icons/Instagram.tsx": () => Promise.resolve().then(() => ns), "../icons/InstagramColored.tsx": () => Promise.resolve().then(() => ss), "../icons/Link.tsx": () => Promise.resolve().then(() => cs), "../icons/LinkedIn.tsx": () => Promise.resolve().then(() => fs), "../icons/Mail.tsx": () => Promise.resolve().then(() => ps), "../icons/Plus.tsx": () => Promise.resolve().then(() => ys), "../icons/Share.tsx": () => Promise.resolve().then(() => ws), "../icons/Twitter.tsx": () => Promise.resolve().then(() => Ms), "../icons/TwitterColored.tsx": () => Promise.resolve().then(() => Ds), "../icons/Upload.tsx": () => Promise.resolve().then(() => Rs), "../icons/X.tsx": () => Promise.resolve().then(() => Bs), "../icons/YouTube.tsx": () => Promise.resolve().then(() => Es), "../icons/YouTubeColored.tsx": () => Promise.resolve().then(() => Fs) }), `../icons/${t || "ArrowRight"}.tsx`)), [t]);
|
|
774
774
|
return /* @__PURE__ */ a(tr, { fallback: /* @__PURE__ */ a(Ct, { className: "overflow-visible pointer-events-none" }), children: /* @__PURE__ */ a(n, { ...r, className: "overflow-visible pointer-events-none", ...e }) });
|
|
775
775
|
}, O = (e) => {
|
|
776
776
|
const { icon: t, as: r = "span", tokens: n, customTheme: o, themeName: s = "icon", children: i, ...l } = e, c = g(s, n, o);
|
|
@@ -793,7 +793,7 @@ const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, ch
|
|
|
793
793
|
"aria-controls": `accordion-content-${n}`,
|
|
794
794
|
children: [
|
|
795
795
|
/* @__PURE__ */ y(
|
|
796
|
-
|
|
796
|
+
ee,
|
|
797
797
|
{
|
|
798
798
|
themeName: `${r}.button`,
|
|
799
799
|
tokens: { ...o, isOpen: d },
|
|
@@ -831,7 +831,7 @@ const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, ch
|
|
|
831
831
|
}, children: t?.map((f) => {
|
|
832
832
|
const { ariaLabel: h, onClick: w, href: m, icon: v, key: $ } = f;
|
|
833
833
|
return /* @__PURE__ */ a(
|
|
834
|
-
|
|
834
|
+
ee,
|
|
835
835
|
{
|
|
836
836
|
themeName: `${i}.link`,
|
|
837
837
|
tokens: { ...l, isOpen: n },
|
|
@@ -862,12 +862,12 @@ const Kr = (e) => ({ children: r }) => /* @__PURE__ */ a(Zr, { brandTheme: e, ch
|
|
|
862
862
|
m.target.parentElement?.lastChild?.firstChild?.focus();
|
|
863
863
|
});
|
|
864
864
|
};
|
|
865
|
-
return /* @__PURE__ */ a(
|
|
865
|
+
return /* @__PURE__ */ a(be, { autoFocus: !0, restoreFocus: !0, contain: d, children: /* @__PURE__ */ y("div", { className: f, onKeyDown: (m) => {
|
|
866
866
|
const v = m.currentTarget.firstChild, $ = m.currentTarget.lastChild, D = $.firstChild, P = $.lastChild, { listDirection: M } = c ?? {};
|
|
867
867
|
M === "row" && (m.key === "ArrowRight" && m.target === v && (D?.focus(), m.preventDefault()), m.key === "ArrowLeft" && m.target === v && (P.focus(), m.preventDefault())), M === "column" && (m.key === "ArrowDown" && m.target === v && (D?.focus(), m.preventDefault()), m.key === "ArrowUp" && m.target === v && (P.focus(), m.preventDefault())), m.key === "Escape" && (b(!1), v?.focus()), document.activeElement === $ && v?.focus();
|
|
868
868
|
}, children: [
|
|
869
869
|
/* @__PURE__ */ a(
|
|
870
|
-
|
|
870
|
+
X,
|
|
871
871
|
{
|
|
872
872
|
themeName: `${l}.button`,
|
|
873
873
|
tokens: { ...c, isOpen: d },
|
|
@@ -910,7 +910,7 @@ const kt = (e, t, r) => {
|
|
|
910
910
|
defaultOpen: e,
|
|
911
911
|
onOpenChange: (d) => t?.(d)
|
|
912
912
|
}), o = k.useRef(null), s = k.useRef(null);
|
|
913
|
-
|
|
913
|
+
re(() => {
|
|
914
914
|
if (e) {
|
|
915
915
|
n.open();
|
|
916
916
|
return;
|
|
@@ -950,7 +950,7 @@ function pi({ children: e, defaultSelectedKey: t }) {
|
|
|
950
950
|
closeButtonRef: o,
|
|
951
951
|
openButtonProps: s,
|
|
952
952
|
openButtonRef: i
|
|
953
|
-
} = kt(!1), l =
|
|
953
|
+
} = kt(!1), l = te(
|
|
954
954
|
() => ({
|
|
955
955
|
defaultSelectedKey: t,
|
|
956
956
|
overlayState: r,
|
|
@@ -1001,12 +1001,12 @@ const ao = ({ isVisible: e, children: t }) => Ie(e, {
|
|
|
1001
1001
|
config: gt.stiff
|
|
1002
1002
|
})((n, o) => o && /* @__PURE__ */ a(Be.div, { style: n, children: t })), uo = (e) => {
|
|
1003
1003
|
const { children: t } = e, r = k.useRef(null), { overlayProps: n, underlayProps: o } = ft(e, r), { modalProps: s } = ht(), { dialogProps: i } = Ae(e, r);
|
|
1004
|
-
return /* @__PURE__ */ a("div", { ...o, children: /* @__PURE__ */ a(
|
|
1004
|
+
return /* @__PURE__ */ a("div", { ...o, children: /* @__PURE__ */ a(Q, { focusRingClass: "has-focus-ring", within: !0, autoFocus: !0, children: /* @__PURE__ */ a(be, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ a("div", { ...n, ...i, ...s, ref: r, children: t }) }) }) });
|
|
1005
1005
|
}, St = (e) => {
|
|
1006
1006
|
const [t, r] = V(!1), { children: n, state: o, onCloseCallBack: s, transitionComponent: i = co } = e, l = dt(() => {
|
|
1007
1007
|
o.close(), s?.();
|
|
1008
1008
|
}, [o.close, s]);
|
|
1009
|
-
return
|
|
1009
|
+
return re(() => {
|
|
1010
1010
|
!o.isOpen && t || r(!0);
|
|
1011
1011
|
}, [o.isOpen]), t ? /* @__PURE__ */ a(kr, { children: /* @__PURE__ */ a(i, { isVisible: o.isOpen, children: /* @__PURE__ */ a(uo, { isOpen: o.isOpen, onClose: l, isDismissable: !0, children: n }) }) }) : null;
|
|
1012
1012
|
}, fo = (e) => {
|
|
@@ -1032,8 +1032,8 @@ const ao = ({ isVisible: e, children: t }) => Ie(e, {
|
|
|
1032
1032
|
s
|
|
1033
1033
|
), m = g(`${l}.container`, c, u);
|
|
1034
1034
|
return /* @__PURE__ */ y("div", { children: [
|
|
1035
|
-
/* @__PURE__ */ a(
|
|
1036
|
-
|
|
1035
|
+
/* @__PURE__ */ a(ye, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ y(
|
|
1036
|
+
X,
|
|
1037
1037
|
{
|
|
1038
1038
|
ref: b,
|
|
1039
1039
|
themeName: `${l}.wrapper`,
|
|
@@ -1047,7 +1047,7 @@ const ao = ({ isVisible: e, children: t }) => Ie(e, {
|
|
|
1047
1047
|
) }),
|
|
1048
1048
|
/* @__PURE__ */ a(St, { onCloseCallBack: s, state: d, children: /* @__PURE__ */ y("div", { children: [
|
|
1049
1049
|
/* @__PURE__ */ a(
|
|
1050
|
-
|
|
1050
|
+
X,
|
|
1051
1051
|
{
|
|
1052
1052
|
themeName: `${l}.closeBtn`,
|
|
1053
1053
|
type: "button",
|
|
@@ -1083,7 +1083,7 @@ const ao = ({ isVisible: e, children: t }) => Ie(e, {
|
|
|
1083
1083
|
},
|
|
1084
1084
|
t
|
|
1085
1085
|
), { modalProps: b } = ht(), { dialogProps: f } = Ae({}, t), h = g(`${i}.popover`, l, c);
|
|
1086
|
-
return /* @__PURE__ */ a(
|
|
1086
|
+
return /* @__PURE__ */ a(be, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ y(
|
|
1087
1087
|
ho,
|
|
1088
1088
|
{
|
|
1089
1089
|
customTheme: h,
|
|
@@ -1092,7 +1092,7 @@ const ao = ({ isVisible: e, children: t }) => Ie(e, {
|
|
|
1092
1092
|
...s,
|
|
1093
1093
|
...u,
|
|
1094
1094
|
children: [
|
|
1095
|
-
k.Children.map(o, (w) => /* @__PURE__ */ a(
|
|
1095
|
+
k.Children.map(o, (w) => /* @__PURE__ */ a(Q, { focusRingClass: "has-focus-ring", children: w })),
|
|
1096
1096
|
/* @__PURE__ */ a(ke, { onDismiss: n })
|
|
1097
1097
|
]
|
|
1098
1098
|
}
|
|
@@ -1108,7 +1108,7 @@ function yi(e) {
|
|
|
1108
1108
|
}), { onPress: w, ...m } = b;
|
|
1109
1109
|
return /* @__PURE__ */ y(or, { children: [
|
|
1110
1110
|
/* @__PURE__ */ a(
|
|
1111
|
-
|
|
1111
|
+
X,
|
|
1112
1112
|
{
|
|
1113
1113
|
themeName: `${s}.button`,
|
|
1114
1114
|
handlePress: w,
|
|
@@ -1170,18 +1170,19 @@ const $i = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ a
|
|
|
1170
1170
|
);
|
|
1171
1171
|
}, go = (e) => {
|
|
1172
1172
|
const t = k.useRef(null), { listBoxRef: r = t, state: n, themeName: o = "option" } = e, { listBoxProps: s } = fr(e, n, r);
|
|
1173
|
-
return /* @__PURE__ */ a(
|
|
1173
|
+
return /* @__PURE__ */ a(be, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ a(Ee, { ...s, ref: r, as: "ul", themeName: `${o}.ul`, children: [...n.collection].map((i) => /* @__PURE__ */ a(po, { themeName: `${o}.li`, item: i, state: n }, i.key)) }) });
|
|
1174
1174
|
}, bo = (e) => {
|
|
1175
|
-
const t = k.useRef(null), { popoverRef: r = t, state: n, children: o, themeName: s = "popover",
|
|
1175
|
+
const t = k.useRef(null), { popoverRef: r = t, state: n, children: o, themeName: s = "popover", triggerRef: i, ...l } = e, { popoverProps: c, underlayProps: u } = mr(
|
|
1176
1176
|
{
|
|
1177
1177
|
...e,
|
|
1178
|
-
popoverRef: r
|
|
1178
|
+
popoverRef: r,
|
|
1179
|
+
triggerRef: i
|
|
1179
1180
|
},
|
|
1180
1181
|
n
|
|
1181
1182
|
);
|
|
1182
1183
|
return /* @__PURE__ */ y(pr, { children: [
|
|
1183
|
-
/* @__PURE__ */ a("div", { ...
|
|
1184
|
-
/* @__PURE__ */ y(Ee, { themeName: s, ...
|
|
1184
|
+
/* @__PURE__ */ a("div", { ...u, style: { position: "fixed", inset: 0 } }),
|
|
1185
|
+
/* @__PURE__ */ y(Ee, { themeName: s, ...l, ...c, as: "div", ref: r, children: [
|
|
1185
1186
|
/* @__PURE__ */ a(ke, { onDismiss: n.close }),
|
|
1186
1187
|
o,
|
|
1187
1188
|
/* @__PURE__ */ a(ke, { onDismiss: n.close })
|
|
@@ -1209,15 +1210,16 @@ const $i = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ a
|
|
|
1209
1210
|
selectedKey: h,
|
|
1210
1211
|
defaultSelectedKey: f,
|
|
1211
1212
|
onSelectionChange: b
|
|
1212
|
-
}), { triggerProps: D, menuProps: P, labelProps: M } = gr({ ...m }, $, v), I = g(`${l}.wrapper`, c, u), U = g(`${l}.container`, c, u);
|
|
1213
|
+
}), { triggerProps: D, menuProps: P, labelProps: M } = gr({ ...m }, $, v), I = g(`${l}.wrapper`, c, u), U = g(`${l}.container`, c, u), { onPress: oe, onPressStart: q, ...Y } = D;
|
|
1213
1214
|
return /* @__PURE__ */ y("div", { className: I, children: [
|
|
1214
1215
|
d && /* @__PURE__ */ a(A, { ...M, as: "label", themeName: `${l}.label`, children: d }),
|
|
1215
1216
|
/* @__PURE__ */ a(br, { ...o, state: $, triggerRef: v, name: t, isDisabled: !0 }),
|
|
1216
1217
|
/* @__PURE__ */ y("div", { className: U, children: [
|
|
1217
1218
|
/* @__PURE__ */ y(
|
|
1218
|
-
|
|
1219
|
+
X,
|
|
1219
1220
|
{
|
|
1220
|
-
...
|
|
1221
|
+
...Y,
|
|
1222
|
+
handlePress: q,
|
|
1221
1223
|
ref: v,
|
|
1222
1224
|
disabled: n,
|
|
1223
1225
|
themeName: `${l}.button`,
|
|
@@ -1261,7 +1263,7 @@ const $i = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ a
|
|
|
1261
1263
|
customTheme: d
|
|
1262
1264
|
} = e, b = _r(e), f = T(null), { inputProps: h } = Ir(e, b, f), { isSelected: w } = b, { focusProps: m, isFocusVisible: v } = bt(), $ = { ...u, selected: w, isDisabled: n, isError: o, isFocusVisible: v }, D = g(`${c}.container`, $, d), P = g(`${c}.checkBox`, $, d), M = g(`${c}.checkMark`, $, d), I = g(`${c}.checkMarkIcon`, $, d);
|
|
1263
1265
|
return /* @__PURE__ */ y("div", { children: [
|
|
1264
|
-
/* @__PURE__ */ a(
|
|
1266
|
+
/* @__PURE__ */ a(ye, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ y("label", { className: D, htmlFor: t, "aria-label": i, "aria-disabled": n, children: [
|
|
1265
1267
|
/* @__PURE__ */ a(Br, { children: /* @__PURE__ */ a("input", { type: "checkbox", ref: f, "aria-labelledby": t, ...h, ...m }) }),
|
|
1266
1268
|
/* @__PURE__ */ a("div", { className: P, "aria-checked": w, role: "checkbox", "aria-labelledby": t, children: /* @__PURE__ */ a("div", { className: M, children: l && /* @__PURE__ */ a(O, { icon: l, customTheme: I }) }) }),
|
|
1267
1269
|
/* @__PURE__ */ a(A, { themeName: `${c}.label`, tokens: $, children: r })
|
|
@@ -1285,15 +1287,15 @@ const $i = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ a
|
|
|
1285
1287
|
themeName: h = "textarea",
|
|
1286
1288
|
tokens: w,
|
|
1287
1289
|
customTheme: m
|
|
1288
|
-
} = e, v = T(null), { errorMessageProps: $, inputProps: D, labelProps: P } = pt(e, v), M = { ...w, isDisabled: i, isError: l != null }, I = g(`${h}.wrapper`, M, m), U = g(`${h}.input`, M, m),
|
|
1290
|
+
} = e, v = T(null), { errorMessageProps: $, inputProps: D, labelProps: P } = pt(e, v), M = { ...w, isDisabled: i, isError: l != null }, I = g(`${h}.wrapper`, M, m), U = g(`${h}.input`, M, m), oe = g(`${h}.label`, M, m), q = g(`${h}.container`, M, m);
|
|
1289
1291
|
return /* @__PURE__ */ y("div", { children: [
|
|
1290
1292
|
/* @__PURE__ */ y("div", { className: I, "aria-disabled": i, children: [
|
|
1291
|
-
r && /* @__PURE__ */ a("label", { className:
|
|
1292
|
-
/* @__PURE__ */ a("div", { className:
|
|
1293
|
+
r && /* @__PURE__ */ a("label", { className: oe, ...P, children: r }),
|
|
1294
|
+
/* @__PURE__ */ a("div", { className: q, children: /* @__PURE__ */ a(ye, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ a(
|
|
1293
1295
|
"textarea",
|
|
1294
1296
|
{
|
|
1295
|
-
ref: (
|
|
1296
|
-
f?.(
|
|
1297
|
+
ref: (Y) => {
|
|
1298
|
+
f?.(Y), v.current = Y;
|
|
1297
1299
|
},
|
|
1298
1300
|
className: U,
|
|
1299
1301
|
placeholder: o,
|
|
@@ -1329,22 +1331,22 @@ const $i = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ a
|
|
|
1329
1331
|
themeName: h = "textInput",
|
|
1330
1332
|
tokens: w,
|
|
1331
1333
|
customTheme: m
|
|
1332
|
-
} = e, v = T(null), { errorMessageProps: $, inputProps: D, labelProps: P } = pt(e, v), M = { ...w, isDisabled: o, isError: s != null }, I = g(`${h}.wrapper`, M, m), U = g(`${h}.label`, M, m),
|
|
1334
|
+
} = e, v = T(null), { errorMessageProps: $, inputProps: D, labelProps: P } = pt(e, v), M = { ...w, isDisabled: o, isError: s != null }, I = g(`${h}.wrapper`, M, m), U = g(`${h}.label`, M, m), oe = g(`${h}.input`, M, m), q = g(`${h}.container`, M, m);
|
|
1333
1335
|
return /* @__PURE__ */ y("div", { children: [
|
|
1334
|
-
/* @__PURE__ */ a(
|
|
1336
|
+
/* @__PURE__ */ a(ye, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ y("div", { "aria-disabled": o, className: I, children: [
|
|
1335
1337
|
r && // eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
1336
1338
|
/* @__PURE__ */ a("label", { className: U, ...P, children: r }),
|
|
1337
|
-
/* @__PURE__ */ y("div", { className:
|
|
1339
|
+
/* @__PURE__ */ y("div", { className: q, children: [
|
|
1338
1340
|
f,
|
|
1339
1341
|
/* @__PURE__ */ a(
|
|
1340
1342
|
"input",
|
|
1341
1343
|
{
|
|
1342
1344
|
...D,
|
|
1343
|
-
className:
|
|
1345
|
+
className: oe,
|
|
1344
1346
|
disabled: o,
|
|
1345
1347
|
required: n,
|
|
1346
|
-
ref: (
|
|
1347
|
-
d?.(
|
|
1348
|
+
ref: (Y) => {
|
|
1349
|
+
d?.(Y), v.current = Y;
|
|
1348
1350
|
},
|
|
1349
1351
|
"aria-label": i,
|
|
1350
1352
|
"aria-labelledby": t,
|
|
@@ -1384,18 +1386,18 @@ function _(e, t) {
|
|
|
1384
1386
|
return e - t * Math.floor(e / t);
|
|
1385
1387
|
}
|
|
1386
1388
|
const Pt = 1721426;
|
|
1387
|
-
function
|
|
1388
|
-
t =
|
|
1389
|
+
function z(e, t, r, n) {
|
|
1390
|
+
t = ne(e, t);
|
|
1389
1391
|
let o = t - 1, s = -2;
|
|
1390
1392
|
return r <= 2 ? s = 0 : N(t) && (s = -1), Pt - 1 + 365 * o + Math.floor(o / 4) - Math.floor(o / 100) + Math.floor(o / 400) + Math.floor((367 * r - 362) / 12 + s + n);
|
|
1391
1393
|
}
|
|
1392
1394
|
function N(e) {
|
|
1393
1395
|
return e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0);
|
|
1394
1396
|
}
|
|
1395
|
-
function
|
|
1397
|
+
function ne(e, t) {
|
|
1396
1398
|
return e === "BC" ? 1 - t : t;
|
|
1397
1399
|
}
|
|
1398
|
-
function
|
|
1400
|
+
function $e(e) {
|
|
1399
1401
|
let t = "AD";
|
|
1400
1402
|
return e <= 0 && (t = "BC", e = 1 - e), [
|
|
1401
1403
|
t,
|
|
@@ -1434,13 +1436,13 @@ const wo = {
|
|
|
1434
1436
|
};
|
|
1435
1437
|
class E {
|
|
1436
1438
|
fromJulianDay(t) {
|
|
1437
|
-
let r = t, n = r - Pt, o = Math.floor(n / 146097), s = _(n, 146097), i = Math.floor(s / 36524), l = _(s, 36524), c = Math.floor(l / 1461), u = _(l, 1461), d = Math.floor(u / 365), b = o * 400 + i * 100 + c * 4 + d + (i !== 4 && d !== 4 ? 1 : 0), [f, h] =
|
|
1438
|
-
r <
|
|
1439
|
-
let v = Math.floor(((w + m) * 12 + 373) / 367), $ = r -
|
|
1439
|
+
let r = t, n = r - Pt, o = Math.floor(n / 146097), s = _(n, 146097), i = Math.floor(s / 36524), l = _(s, 36524), c = Math.floor(l / 1461), u = _(l, 1461), d = Math.floor(u / 365), b = o * 400 + i * 100 + c * 4 + d + (i !== 4 && d !== 4 ? 1 : 0), [f, h] = $e(b), w = r - z(f, h, 1, 1), m = 2;
|
|
1440
|
+
r < z(f, h, 3, 1) ? m = 0 : N(h) && (m = 1);
|
|
1441
|
+
let v = Math.floor(((w + m) * 12 + 373) / 367), $ = r - z(f, h, v, 1) + 1;
|
|
1440
1442
|
return new S(f, h, v, $);
|
|
1441
1443
|
}
|
|
1442
1444
|
toJulianDay(t) {
|
|
1443
|
-
return
|
|
1445
|
+
return z(t.era, t.year, t.month, t.day);
|
|
1444
1446
|
}
|
|
1445
1447
|
getDaysInMonth(t) {
|
|
1446
1448
|
return wo[N(t.year) ? "leapyear" : "standard"][t.month - 1];
|
|
@@ -1570,7 +1572,7 @@ const xo = {
|
|
|
1570
1572
|
XK: 1
|
|
1571
1573
|
};
|
|
1572
1574
|
function Je(e, t) {
|
|
1573
|
-
return t =
|
|
1575
|
+
return t = ve(t, e.calendar), e.era === t.era && e.year === t.year && e.month === t.month && e.day === t.day;
|
|
1574
1576
|
}
|
|
1575
1577
|
function Tt(e, t) {
|
|
1576
1578
|
let r = e.calendar.toJulianDay(e), n = Math.ceil(r + 1 - So(t)) % 7;
|
|
@@ -1612,8 +1614,8 @@ function Do(e, t) {
|
|
|
1612
1614
|
return Math.ceil((Tt(Mo(e), t) + r) / 7);
|
|
1613
1615
|
}
|
|
1614
1616
|
function Ge(e) {
|
|
1615
|
-
e =
|
|
1616
|
-
let t =
|
|
1617
|
+
e = ve(e, new E());
|
|
1618
|
+
let t = ne(e.era, e.year);
|
|
1617
1619
|
return It(t, e.month, e.day, e.hour, e.minute, e.second, e.millisecond);
|
|
1618
1620
|
}
|
|
1619
1621
|
function It(e, t, r, n, o, s, i) {
|
|
@@ -1673,8 +1675,8 @@ function Ro(e, t, r = "compatible") {
|
|
|
1673
1675
|
if (t === "UTC")
|
|
1674
1676
|
return Ge(n);
|
|
1675
1677
|
if (t === At() && r === "compatible") {
|
|
1676
|
-
n =
|
|
1677
|
-
let c = /* @__PURE__ */ new Date(), u =
|
|
1678
|
+
n = ve(n, new E());
|
|
1679
|
+
let c = /* @__PURE__ */ new Date(), u = ne(n.era, n.year);
|
|
1678
1680
|
return c.setFullYear(u, n.month - 1, n.day), c.setHours(n.hour, n.minute, n.second, n.millisecond), c.getTime();
|
|
1679
1681
|
}
|
|
1680
1682
|
let o = Ge(n), s = Qe(o - Ze, t), i = Qe(o + Ze, t), l = Po(n, t, o - s, o - i);
|
|
@@ -1709,13 +1711,13 @@ function Ot(e, t) {
|
|
|
1709
1711
|
({ hour: r, minute: n, second: o, millisecond: s } = e);
|
|
1710
1712
|
else if ("hour" in e && !t)
|
|
1711
1713
|
return e;
|
|
1712
|
-
return t && ({ hour: r, minute: n, second: o, millisecond: s } = t), new
|
|
1714
|
+
return t && ({ hour: r, minute: n, second: o, millisecond: s } = t), new fe(e.calendar, e.era, e.year, e.month, e.day, r, n, o, s);
|
|
1713
1715
|
}
|
|
1714
|
-
function
|
|
1716
|
+
function ve(e, t) {
|
|
1715
1717
|
if (e.calendar.identifier === t.identifier)
|
|
1716
1718
|
return e;
|
|
1717
1719
|
let r = t.fromJulianDay(e.calendar.toJulianDay(e)), n = e.copy();
|
|
1718
|
-
return n.calendar = t, n.era = r.era, n.year = r.year, n.month = r.month, n.day = r.day,
|
|
1720
|
+
return n.calendar = t, n.era = r.era, n.year = r.year, n.month = r.month, n.day = r.day, G(n), n;
|
|
1719
1721
|
}
|
|
1720
1722
|
function Le(e, t) {
|
|
1721
1723
|
let r = e.copy(), n = "hour" in r ? Eo(r, t) : 0;
|
|
@@ -1750,7 +1752,7 @@ function Ao(e) {
|
|
|
1750
1752
|
function Et(e) {
|
|
1751
1753
|
e.month = Math.max(1, Math.min(e.calendar.getMonthsInYear(e), e.month)), e.day = Math.max(1, Math.min(e.calendar.getDaysInMonth(e), e.day));
|
|
1752
1754
|
}
|
|
1753
|
-
function
|
|
1755
|
+
function G(e) {
|
|
1754
1756
|
e.calendar.constrainDate && e.calendar.constrainDate(e), e.year = Math.max(1, Math.min(e.calendar.getYearsInEra(e), e.year)), Et(e);
|
|
1755
1757
|
}
|
|
1756
1758
|
function Io(e) {
|
|
@@ -1764,21 +1766,21 @@ function Lt(e, t) {
|
|
|
1764
1766
|
}
|
|
1765
1767
|
function Nt(e, t) {
|
|
1766
1768
|
let r = e.copy();
|
|
1767
|
-
return t.era != null && (r.era = t.era), t.year != null && (r.year = t.year), t.month != null && (r.month = t.month), t.day != null && (r.day = t.day),
|
|
1769
|
+
return t.era != null && (r.era = t.era), t.year != null && (r.year = t.year), t.month != null && (r.month = t.month), t.day != null && (r.day = t.day), G(r), r;
|
|
1768
1770
|
}
|
|
1769
1771
|
function Bo(e, t) {
|
|
1770
1772
|
let r = e.copy();
|
|
1771
1773
|
return t.hour != null && (r.hour = t.hour), t.minute != null && (r.minute = t.minute), t.second != null && (r.second = t.second), t.millisecond != null && (r.millisecond = t.millisecond), Oo(r), r;
|
|
1772
1774
|
}
|
|
1773
1775
|
function _o(e) {
|
|
1774
|
-
e.second += Math.floor(e.millisecond / 1e3), e.millisecond =
|
|
1776
|
+
e.second += Math.floor(e.millisecond / 1e3), e.millisecond = se(e.millisecond, 1e3), e.minute += Math.floor(e.second / 60), e.second = se(e.second, 60), e.hour += Math.floor(e.minute / 60), e.minute = se(e.minute, 60);
|
|
1775
1777
|
let t = Math.floor(e.hour / 24);
|
|
1776
|
-
return e.hour =
|
|
1778
|
+
return e.hour = se(e.hour, 24), t;
|
|
1777
1779
|
}
|
|
1778
1780
|
function Oo(e) {
|
|
1779
1781
|
e.millisecond = Math.max(0, Math.min(e.millisecond, 1e3)), e.second = Math.max(0, Math.min(e.second, 59)), e.minute = Math.max(0, Math.min(e.minute, 59)), e.hour = Math.max(0, Math.min(e.hour, 23));
|
|
1780
1782
|
}
|
|
1781
|
-
function
|
|
1783
|
+
function se(e, t) {
|
|
1782
1784
|
let r = e % t;
|
|
1783
1785
|
return r < 0 && (r += t), r;
|
|
1784
1786
|
}
|
|
@@ -1792,7 +1794,7 @@ function Ft(e, t, r, n) {
|
|
|
1792
1794
|
let l = e.calendar.getEras(), c = l.indexOf(e.era);
|
|
1793
1795
|
if (c < 0)
|
|
1794
1796
|
throw new Error("Invalid era: " + e.era);
|
|
1795
|
-
c = F(c, r, 0, l.length - 1, n?.round), o.era = l[c],
|
|
1797
|
+
c = F(c, r, 0, l.length - 1, n?.round), o.era = l[c], G(o);
|
|
1796
1798
|
break;
|
|
1797
1799
|
}
|
|
1798
1800
|
case "year":
|
|
@@ -1808,7 +1810,7 @@ function Ft(e, t, r, n) {
|
|
|
1808
1810
|
default:
|
|
1809
1811
|
throw new Error("Unsupported field " + t);
|
|
1810
1812
|
}
|
|
1811
|
-
return e.calendar.balanceDate && e.calendar.balanceDate(o),
|
|
1813
|
+
return e.calendar.balanceDate && e.calendar.balanceDate(o), G(o), o;
|
|
1812
1814
|
}
|
|
1813
1815
|
function Lo(e, t, r, n) {
|
|
1814
1816
|
let o = e.copy();
|
|
@@ -1849,7 +1851,7 @@ function No(e) {
|
|
|
1849
1851
|
return `${String(e.hour).padStart(2, "0")}:${String(e.minute).padStart(2, "0")}:${String(e.second).padStart(2, "0")}${e.millisecond ? String(e.millisecond / 1e3).slice(1) : ""}`;
|
|
1850
1852
|
}
|
|
1851
1853
|
function Vt(e) {
|
|
1852
|
-
let t =
|
|
1854
|
+
let t = ve(e, new E());
|
|
1853
1855
|
return `${String(t.year).padStart(4, "0")}-${String(t.month).padStart(2, "0")}-${String(t.day).padStart(2, "0")}`;
|
|
1854
1856
|
}
|
|
1855
1857
|
function Fo(e) {
|
|
@@ -1915,14 +1917,14 @@ class S {
|
|
|
1915
1917
|
value: void 0
|
|
1916
1918
|
});
|
|
1917
1919
|
let [r, n, o, s, i] = Ut(t);
|
|
1918
|
-
this.calendar = r, this.era = n, this.year = o, this.month = s, this.day = i,
|
|
1920
|
+
this.calendar = r, this.era = n, this.year = o, this.month = s, this.day = i, G(this);
|
|
1919
1921
|
}
|
|
1920
1922
|
}
|
|
1921
1923
|
var Uo = /* @__PURE__ */ new WeakMap();
|
|
1922
|
-
class
|
|
1924
|
+
class fe {
|
|
1923
1925
|
/** Returns a copy of this date. */
|
|
1924
1926
|
copy() {
|
|
1925
|
-
return this.era ? new
|
|
1927
|
+
return this.era ? new fe(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond) : new fe(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
1926
1928
|
}
|
|
1927
1929
|
/** Returns a new `CalendarDateTime` with the given duration added to it. */
|
|
1928
1930
|
add(t) {
|
|
@@ -1970,10 +1972,10 @@ class ue {
|
|
|
1970
1972
|
value: void 0
|
|
1971
1973
|
});
|
|
1972
1974
|
let [r, n, o, s, i] = Ut(t);
|
|
1973
|
-
this.calendar = r, this.era = n, this.year = o, this.month = s, this.day = i, this.hour = t.shift() || 0, this.minute = t.shift() || 0, this.second = t.shift() || 0, this.millisecond = t.shift() || 0,
|
|
1975
|
+
this.calendar = r, this.era = n, this.year = o, this.month = s, this.day = i, this.hour = t.shift() || 0, this.minute = t.shift() || 0, this.second = t.shift() || 0, this.millisecond = t.shift() || 0, G(this);
|
|
1974
1976
|
}
|
|
1975
1977
|
}
|
|
1976
|
-
const
|
|
1978
|
+
const H = [
|
|
1977
1979
|
[
|
|
1978
1980
|
1868,
|
|
1979
1981
|
9,
|
|
@@ -2020,7 +2022,7 @@ const J = [
|
|
|
2020
2022
|
4,
|
|
2021
2023
|
30
|
|
2022
2024
|
]
|
|
2023
|
-
],
|
|
2025
|
+
], ce = [
|
|
2024
2026
|
1867,
|
|
2025
2027
|
1911,
|
|
2026
2028
|
1925,
|
|
@@ -2034,11 +2036,11 @@ const J = [
|
|
|
2034
2036
|
"reiwa"
|
|
2035
2037
|
];
|
|
2036
2038
|
function Ke(e) {
|
|
2037
|
-
const t =
|
|
2038
|
-
return t === -1 ?
|
|
2039
|
+
const t = H.findIndex(([r, n, o]) => e.year < r || e.year === r && e.month < n || e.year === r && e.month === n && e.day < o);
|
|
2040
|
+
return t === -1 ? H.length - 1 : t === 0 ? 0 : t - 1;
|
|
2039
2041
|
}
|
|
2040
2042
|
function xe(e) {
|
|
2041
|
-
let t =
|
|
2043
|
+
let t = ce[L.indexOf(e.era)];
|
|
2042
2044
|
if (!t)
|
|
2043
2045
|
throw new Error("Unknown era: " + e.era);
|
|
2044
2046
|
return new S(e.year + t, e.month, e.day);
|
|
@@ -2046,23 +2048,23 @@ function xe(e) {
|
|
|
2046
2048
|
class jo extends E {
|
|
2047
2049
|
fromJulianDay(t) {
|
|
2048
2050
|
let r = super.fromJulianDay(t), n = Ke(r);
|
|
2049
|
-
return new S(this, L[n], r.year -
|
|
2051
|
+
return new S(this, L[n], r.year - ce[n], r.month, r.day);
|
|
2050
2052
|
}
|
|
2051
2053
|
toJulianDay(t) {
|
|
2052
2054
|
return super.toJulianDay(xe(t));
|
|
2053
2055
|
}
|
|
2054
2056
|
balanceDate(t) {
|
|
2055
2057
|
let r = xe(t), n = Ke(r);
|
|
2056
|
-
L[n] !== t.era && (t.era = L[n], t.year = r.year -
|
|
2058
|
+
L[n] !== t.era && (t.era = L[n], t.year = r.year - ce[n]), this.constrainDate(t);
|
|
2057
2059
|
}
|
|
2058
2060
|
constrainDate(t) {
|
|
2059
2061
|
let r = L.indexOf(t.era), n = Yo[r];
|
|
2060
2062
|
if (n != null) {
|
|
2061
|
-
let [o, s, i] = n, l = o -
|
|
2063
|
+
let [o, s, i] = n, l = o - ce[r];
|
|
2062
2064
|
t.year = Math.max(1, Math.min(l, t.year)), t.year === l && (t.month = Math.min(s, t.month), t.month === s && (t.day = Math.min(i, t.day)));
|
|
2063
2065
|
}
|
|
2064
2066
|
if (t.year === 1 && r >= 0) {
|
|
2065
|
-
let [, o, s] =
|
|
2067
|
+
let [, o, s] = H[r];
|
|
2066
2068
|
t.month = Math.max(o, t.month), t.month === o && (t.day = Math.max(s, t.day));
|
|
2067
2069
|
}
|
|
2068
2070
|
}
|
|
@@ -2070,7 +2072,7 @@ class jo extends E {
|
|
|
2070
2072
|
return L;
|
|
2071
2073
|
}
|
|
2072
2074
|
getYearsInEra(t) {
|
|
2073
|
-
let r = L.indexOf(t.era), n =
|
|
2075
|
+
let r = L.indexOf(t.era), n = H[r], o = H[r + 1];
|
|
2074
2076
|
if (o == null)
|
|
2075
2077
|
return 9999 - n[0] + 1;
|
|
2076
2078
|
let s = o[0] - n[0];
|
|
@@ -2094,13 +2096,13 @@ class jo extends E {
|
|
|
2094
2096
|
function Xe(e) {
|
|
2095
2097
|
if (e.year === 1) {
|
|
2096
2098
|
let t = L.indexOf(e.era);
|
|
2097
|
-
return
|
|
2099
|
+
return H[t];
|
|
2098
2100
|
}
|
|
2099
2101
|
}
|
|
2100
2102
|
const Yt = -543;
|
|
2101
2103
|
class zo extends E {
|
|
2102
2104
|
fromJulianDay(t) {
|
|
2103
|
-
let r = super.fromJulianDay(t), n =
|
|
2105
|
+
let r = super.fromJulianDay(t), n = ne(r.era, r.year);
|
|
2104
2106
|
return new S(this, n - Yt, r.month, r.day);
|
|
2105
2107
|
}
|
|
2106
2108
|
toJulianDay(t) {
|
|
@@ -2121,15 +2123,15 @@ class zo extends E {
|
|
|
2121
2123
|
}
|
|
2122
2124
|
}
|
|
2123
2125
|
function et(e) {
|
|
2124
|
-
let [t, r] =
|
|
2126
|
+
let [t, r] = $e(e.year + Yt);
|
|
2125
2127
|
return new S(t, r, e.month, e.day);
|
|
2126
2128
|
}
|
|
2127
|
-
const
|
|
2129
|
+
const he = 1911;
|
|
2128
2130
|
function jt(e) {
|
|
2129
|
-
return e.era === "minguo" ? e.year +
|
|
2131
|
+
return e.era === "minguo" ? e.year + he : 1 - e.year + he;
|
|
2130
2132
|
}
|
|
2131
2133
|
function tt(e) {
|
|
2132
|
-
let t = e -
|
|
2134
|
+
let t = e - he;
|
|
2133
2135
|
return t > 0 ? [
|
|
2134
2136
|
"minguo",
|
|
2135
2137
|
t
|
|
@@ -2140,7 +2142,7 @@ function tt(e) {
|
|
|
2140
2142
|
}
|
|
2141
2143
|
class Jo extends E {
|
|
2142
2144
|
fromJulianDay(t) {
|
|
2143
|
-
let r = super.fromJulianDay(t), n =
|
|
2145
|
+
let r = super.fromJulianDay(t), n = ne(r.era, r.year), [o, s] = tt(n);
|
|
2144
2146
|
return new S(this, o, s, r.month, r.day);
|
|
2145
2147
|
}
|
|
2146
2148
|
toJulianDay(t) {
|
|
@@ -2163,14 +2165,14 @@ class Jo extends E {
|
|
|
2163
2165
|
return super.getDaysInMonth(rt(t));
|
|
2164
2166
|
}
|
|
2165
2167
|
getYearsInEra(t) {
|
|
2166
|
-
return t.era === "before_minguo" ? 9999 : 9999 -
|
|
2168
|
+
return t.era === "before_minguo" ? 9999 : 9999 - he;
|
|
2167
2169
|
}
|
|
2168
2170
|
constructor(...t) {
|
|
2169
2171
|
super(...t), this.identifier = "roc";
|
|
2170
2172
|
}
|
|
2171
2173
|
}
|
|
2172
2174
|
function rt(e) {
|
|
2173
|
-
let [t, r] =
|
|
2175
|
+
let [t, r] = $e(jt(e));
|
|
2174
2176
|
return new S(t, r, e.month, e.day);
|
|
2175
2177
|
}
|
|
2176
2178
|
const Ho = 1948321;
|
|
@@ -2178,19 +2180,19 @@ function Wo(e) {
|
|
|
2178
2180
|
let t = e > 0 ? e - 474 : e - 473, r = _(t, 2820) + 474;
|
|
2179
2181
|
return _((r + 38) * 31, 128) < 31;
|
|
2180
2182
|
}
|
|
2181
|
-
function
|
|
2183
|
+
function ie(e, t, r) {
|
|
2182
2184
|
let n = e > 0 ? e - 474 : e - 473, o = _(n, 2820) + 474, s = t <= 7 ? 31 * (t - 1) : 30 * (t - 1) + 6;
|
|
2183
2185
|
return Ho - 1 + 1029983 * Math.floor(n / 2820) + 365 * (o - 1) + Math.floor((31 * o - 5) / 128) + s + r;
|
|
2184
2186
|
}
|
|
2185
2187
|
class Go {
|
|
2186
2188
|
fromJulianDay(t) {
|
|
2187
|
-
let r = t -
|
|
2189
|
+
let r = t - ie(475, 1, 1), n = Math.floor(r / 1029983), o = _(r, 1029983), s = o === 1029982 ? 2820 : Math.floor((128 * o + 46878) / 46751), i = 474 + 2820 * n + s;
|
|
2188
2190
|
i <= 0 && i--;
|
|
2189
|
-
let l = t -
|
|
2191
|
+
let l = t - ie(i, 1, 1) + 1, c = l <= 186 ? Math.ceil(l / 31) : Math.ceil((l - 6) / 31), u = t - ie(i, c, 1) + 1;
|
|
2190
2192
|
return new S(this, i, c, u);
|
|
2191
2193
|
}
|
|
2192
2194
|
toJulianDay(t) {
|
|
2193
|
-
return
|
|
2195
|
+
return ie(t.year, t.month, t.day);
|
|
2194
2196
|
}
|
|
2195
2197
|
getMonthsInYear() {
|
|
2196
2198
|
return 12;
|
|
@@ -2213,7 +2215,7 @@ class Go {
|
|
|
2213
2215
|
const Ce = 78, nt = 80;
|
|
2214
2216
|
class Qo extends E {
|
|
2215
2217
|
fromJulianDay(t) {
|
|
2216
|
-
let r = super.fromJulianDay(t), n = r.year - Ce, o = t -
|
|
2218
|
+
let r = super.fromJulianDay(t), n = r.year - Ce, o = t - z(r.era, r.year, 1, 1), s;
|
|
2217
2219
|
o < nt ? (n--, s = N(r.year - 1) ? 31 : 30, o += s + 155 + 90 + 10) : (s = N(r.year) ? 31 : 30, o -= nt);
|
|
2218
2220
|
let i, l;
|
|
2219
2221
|
if (o < s)
|
|
@@ -2225,8 +2227,8 @@ class Qo extends E {
|
|
|
2225
2227
|
return new S(this, n, i, l);
|
|
2226
2228
|
}
|
|
2227
2229
|
toJulianDay(t) {
|
|
2228
|
-
let r = t.year + Ce, [n, o] =
|
|
2229
|
-
return N(o) ? (s = 31, i =
|
|
2230
|
+
let r = t.year + Ce, [n, o] = $e(r), s, i;
|
|
2231
|
+
return N(o) ? (s = 31, i = z(n, o, 3, 21)) : (s = 30, i = z(n, o, 3, 22)), t.month === 1 ? i + t.day - 1 : (i += s + Math.min(t.month - 2, 5) * 31, t.month >= 8 && (i += (t.month - 7) * 30), i += t.day - 1, i);
|
|
2230
2232
|
}
|
|
2231
2233
|
getDaysInMonth(t) {
|
|
2232
2234
|
return t.month === 1 && N(t.year + Ce) || t.month >= 2 && t.month <= 6 ? 31 : 30;
|
|
@@ -2245,12 +2247,12 @@ class Qo extends E {
|
|
|
2245
2247
|
super(...t), this.identifier = "indian";
|
|
2246
2248
|
}
|
|
2247
2249
|
}
|
|
2248
|
-
const
|
|
2249
|
-
function
|
|
2250
|
+
const me = 1948440, ot = 1948439, R = 1300, J = 1600, qo = 460322;
|
|
2251
|
+
function pe(e, t, r, n) {
|
|
2250
2252
|
return n + Math.ceil(29.5 * (r - 1)) + (t - 1) * 354 + Math.floor((3 + 11 * t) / 30) + e - 1;
|
|
2251
2253
|
}
|
|
2252
2254
|
function zt(e, t, r) {
|
|
2253
|
-
let n = Math.floor((30 * (r - t) + 10646) / 10631), o = Math.min(12, Math.ceil((r - (29 +
|
|
2255
|
+
let n = Math.floor((30 * (r - t) + 10646) / 10631), o = Math.min(12, Math.ceil((r - (29 + pe(t, n, 1, 1))) / 29.5) + 1), s = r - pe(t, n, o, 1) + 1;
|
|
2254
2256
|
return new S(e, n, o, s);
|
|
2255
2257
|
}
|
|
2256
2258
|
function at(e) {
|
|
@@ -2258,10 +2260,10 @@ function at(e) {
|
|
|
2258
2260
|
}
|
|
2259
2261
|
class Ne {
|
|
2260
2262
|
fromJulianDay(t) {
|
|
2261
|
-
return zt(this,
|
|
2263
|
+
return zt(this, me, t);
|
|
2262
2264
|
}
|
|
2263
2265
|
toJulianDay(t) {
|
|
2264
|
-
return
|
|
2266
|
+
return pe(me, t.year, t.month, t.day);
|
|
2265
2267
|
}
|
|
2266
2268
|
getDaysInMonth(t) {
|
|
2267
2269
|
let r = 29 + t.month % 2;
|
|
@@ -2290,47 +2292,47 @@ class Zo extends Ne {
|
|
|
2290
2292
|
return zt(this, ot, t);
|
|
2291
2293
|
}
|
|
2292
2294
|
toJulianDay(t) {
|
|
2293
|
-
return
|
|
2295
|
+
return pe(ot, t.year, t.month, t.day);
|
|
2294
2296
|
}
|
|
2295
2297
|
constructor(...t) {
|
|
2296
2298
|
super(...t), this.identifier = "islamic-tbla";
|
|
2297
2299
|
}
|
|
2298
2300
|
}
|
|
2299
2301
|
const Ko = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
|
|
2300
|
-
let Pe,
|
|
2301
|
-
function
|
|
2302
|
-
return qo +
|
|
2302
|
+
let Pe, W;
|
|
2303
|
+
function ue(e) {
|
|
2304
|
+
return qo + W[e - R];
|
|
2303
2305
|
}
|
|
2304
|
-
function
|
|
2306
|
+
function Z(e, t) {
|
|
2305
2307
|
let r = e - R, n = 1 << 11 - (t - 1);
|
|
2306
2308
|
return Pe[r] & n ? 30 : 29;
|
|
2307
2309
|
}
|
|
2308
2310
|
function st(e, t) {
|
|
2309
|
-
let r =
|
|
2311
|
+
let r = ue(e);
|
|
2310
2312
|
for (let n = 1; n < t; n++)
|
|
2311
|
-
r +=
|
|
2313
|
+
r += Z(e, n);
|
|
2312
2314
|
return r;
|
|
2313
2315
|
}
|
|
2314
2316
|
function it(e) {
|
|
2315
|
-
return
|
|
2317
|
+
return W[e + 1 - R] - W[e - R];
|
|
2316
2318
|
}
|
|
2317
2319
|
class Xo extends Ne {
|
|
2318
2320
|
fromJulianDay(t) {
|
|
2319
|
-
let r = t -
|
|
2321
|
+
let r = t - me, n = ue(R), o = ue(J);
|
|
2320
2322
|
if (r < n || r > o)
|
|
2321
2323
|
return super.fromJulianDay(t);
|
|
2322
2324
|
{
|
|
2323
2325
|
let s = R - 1, i = 1, l = 1;
|
|
2324
2326
|
for (; l > 0; ) {
|
|
2325
|
-
s++, l = r -
|
|
2327
|
+
s++, l = r - ue(s) + 1;
|
|
2326
2328
|
let c = it(s);
|
|
2327
2329
|
if (l === c) {
|
|
2328
2330
|
i = 12;
|
|
2329
2331
|
break;
|
|
2330
2332
|
} else if (l < c) {
|
|
2331
|
-
let u =
|
|
2333
|
+
let u = Z(s, i);
|
|
2332
2334
|
for (i = 1; l > u; )
|
|
2333
|
-
l -= u, i++, u =
|
|
2335
|
+
l -= u, i++, u = Z(s, i);
|
|
2334
2336
|
break;
|
|
2335
2337
|
}
|
|
2336
2338
|
}
|
|
@@ -2338,43 +2340,43 @@ class Xo extends Ne {
|
|
|
2338
2340
|
}
|
|
2339
2341
|
}
|
|
2340
2342
|
toJulianDay(t) {
|
|
2341
|
-
return t.year < R || t.year >
|
|
2343
|
+
return t.year < R || t.year > J ? super.toJulianDay(t) : me + st(t.year, t.month) + (t.day - 1);
|
|
2342
2344
|
}
|
|
2343
2345
|
getDaysInMonth(t) {
|
|
2344
|
-
return t.year < R || t.year >
|
|
2346
|
+
return t.year < R || t.year > J ? super.getDaysInMonth(t) : Z(t.year, t.month);
|
|
2345
2347
|
}
|
|
2346
2348
|
getDaysInYear(t) {
|
|
2347
|
-
return t.year < R || t.year >
|
|
2349
|
+
return t.year < R || t.year > J ? super.getDaysInYear(t) : it(t.year);
|
|
2348
2350
|
}
|
|
2349
2351
|
constructor() {
|
|
2350
|
-
if (super(), this.identifier = "islamic-umalqura", Pe || (Pe = new Uint16Array(Uint8Array.from(atob(Ko), (t) => t.charCodeAt(0)).buffer)), !
|
|
2351
|
-
|
|
2352
|
+
if (super(), this.identifier = "islamic-umalqura", Pe || (Pe = new Uint16Array(Uint8Array.from(atob(Ko), (t) => t.charCodeAt(0)).buffer)), !W) {
|
|
2353
|
+
W = new Uint32Array(J - R + 1);
|
|
2352
2354
|
let t = 0;
|
|
2353
|
-
for (let r = R; r <=
|
|
2354
|
-
|
|
2355
|
+
for (let r = R; r <= J; r++) {
|
|
2356
|
+
W[r - R] = t;
|
|
2355
2357
|
for (let n = 1; n <= 12; n++)
|
|
2356
|
-
t +=
|
|
2358
|
+
t += Z(r, n);
|
|
2357
2359
|
}
|
|
2358
2360
|
}
|
|
2359
2361
|
}
|
|
2360
2362
|
}
|
|
2361
2363
|
const lt = 347997, Jt = 1080, Ht = 24 * Jt, ea = 29, ta = 12 * Jt + 793, ra = ea * Ht + ta;
|
|
2362
|
-
function
|
|
2364
|
+
function j(e) {
|
|
2363
2365
|
return _(e * 7 + 1, 19) < 7;
|
|
2364
2366
|
}
|
|
2365
|
-
function
|
|
2367
|
+
function de(e) {
|
|
2366
2368
|
let t = Math.floor((235 * e - 234) / 19), r = 12084 + 13753 * t, n = t * 29 + Math.floor(r / 25920);
|
|
2367
2369
|
return _(3 * (n + 1), 7) < 3 && (n += 1), n;
|
|
2368
2370
|
}
|
|
2369
2371
|
function na(e) {
|
|
2370
|
-
let t =
|
|
2371
|
-
return
|
|
2372
|
+
let t = de(e - 1), r = de(e);
|
|
2373
|
+
return de(e + 1) - r === 356 ? 2 : r - t === 382 ? 1 : 0;
|
|
2372
2374
|
}
|
|
2373
|
-
function
|
|
2374
|
-
return
|
|
2375
|
+
function K(e) {
|
|
2376
|
+
return de(e) + na(e);
|
|
2375
2377
|
}
|
|
2376
2378
|
function Wt(e) {
|
|
2377
|
-
return
|
|
2379
|
+
return K(e + 1) - K(e);
|
|
2378
2380
|
}
|
|
2379
2381
|
function oa(e) {
|
|
2380
2382
|
let t = Wt(e);
|
|
@@ -2387,35 +2389,35 @@ function oa(e) {
|
|
|
2387
2389
|
return 2;
|
|
2388
2390
|
}
|
|
2389
2391
|
}
|
|
2390
|
-
function
|
|
2391
|
-
if (t >= 6 && !
|
|
2392
|
+
function le(e, t) {
|
|
2393
|
+
if (t >= 6 && !j(e) && t++, t === 4 || t === 7 || t === 9 || t === 11 || t === 13)
|
|
2392
2394
|
return 29;
|
|
2393
2395
|
let r = oa(e);
|
|
2394
|
-
return t === 2 ? r === 2 ? 30 : 29 : t === 3 ? r === 0 ? 29 : 30 : t === 6 ?
|
|
2396
|
+
return t === 2 ? r === 2 ? 30 : 29 : t === 3 ? r === 0 ? 29 : 30 : t === 6 ? j(e) ? 30 : 0 : 30;
|
|
2395
2397
|
}
|
|
2396
2398
|
class aa {
|
|
2397
2399
|
fromJulianDay(t) {
|
|
2398
|
-
let r = t - lt, n = r * Ht / ra, o = Math.floor((19 * n + 234) / 235) + 1, s =
|
|
2400
|
+
let r = t - lt, n = r * Ht / ra, o = Math.floor((19 * n + 234) / 235) + 1, s = K(o), i = Math.floor(r - s);
|
|
2399
2401
|
for (; i < 1; )
|
|
2400
|
-
o--, s =
|
|
2402
|
+
o--, s = K(o), i = Math.floor(r - s);
|
|
2401
2403
|
let l = 1, c = 0;
|
|
2402
2404
|
for (; c < i; )
|
|
2403
|
-
c +=
|
|
2404
|
-
l--, c -=
|
|
2405
|
+
c += le(o, l), l++;
|
|
2406
|
+
l--, c -= le(o, l);
|
|
2405
2407
|
let u = i - c;
|
|
2406
2408
|
return new S(this, o, l, u);
|
|
2407
2409
|
}
|
|
2408
2410
|
toJulianDay(t) {
|
|
2409
|
-
let r =
|
|
2411
|
+
let r = K(t.year);
|
|
2410
2412
|
for (let n = 1; n < t.month; n++)
|
|
2411
|
-
r +=
|
|
2413
|
+
r += le(t.year, n);
|
|
2412
2414
|
return r + t.day + lt;
|
|
2413
2415
|
}
|
|
2414
2416
|
getDaysInMonth(t) {
|
|
2415
|
-
return
|
|
2417
|
+
return le(t.year, t.month);
|
|
2416
2418
|
}
|
|
2417
2419
|
getMonthsInYear(t) {
|
|
2418
|
-
return
|
|
2420
|
+
return j(t.year) ? 13 : 12;
|
|
2419
2421
|
}
|
|
2420
2422
|
getDaysInYear(t) {
|
|
2421
2423
|
return Wt(t.year);
|
|
@@ -2429,18 +2431,18 @@ class aa {
|
|
|
2429
2431
|
];
|
|
2430
2432
|
}
|
|
2431
2433
|
balanceYearMonth(t, r) {
|
|
2432
|
-
r.year !== t.year && (
|
|
2434
|
+
r.year !== t.year && (j(r.year) && !j(t.year) && r.month > 6 ? t.month-- : !j(r.year) && j(t.year) && r.month > 6 && t.month++);
|
|
2433
2435
|
}
|
|
2434
2436
|
constructor() {
|
|
2435
2437
|
this.identifier = "hebrew";
|
|
2436
2438
|
}
|
|
2437
2439
|
}
|
|
2438
2440
|
const Te = 1723856, ct = 1824665, Re = 5500;
|
|
2439
|
-
function
|
|
2441
|
+
function ge(e, t, r, n) {
|
|
2440
2442
|
return e + 365 * t + Math.floor(t / 4) + 30 * (r - 1) + n - 1;
|
|
2441
2443
|
}
|
|
2442
2444
|
function Fe(e, t) {
|
|
2443
|
-
let r = Math.floor(4 * (t - e) / 1461), n = 1 + Math.floor((t -
|
|
2445
|
+
let r = Math.floor(4 * (t - e) / 1461), n = 1 + Math.floor((t - ge(e, r, 1, 1)) / 30), o = t + 1 - ge(e, r, n, 1);
|
|
2444
2446
|
return [
|
|
2445
2447
|
r,
|
|
2446
2448
|
n,
|
|
@@ -2460,7 +2462,7 @@ class Ve {
|
|
|
2460
2462
|
}
|
|
2461
2463
|
toJulianDay(t) {
|
|
2462
2464
|
let r = t.year;
|
|
2463
|
-
return t.era === "AA" && (r -= Re),
|
|
2465
|
+
return t.era === "AA" && (r -= Re), ge(Te, r, t.month, t.day);
|
|
2464
2466
|
}
|
|
2465
2467
|
getDaysInMonth(t) {
|
|
2466
2468
|
return Qt(t.year, t.month);
|
|
@@ -2508,7 +2510,7 @@ class ia extends Ve {
|
|
|
2508
2510
|
}
|
|
2509
2511
|
toJulianDay(t) {
|
|
2510
2512
|
let r = t.year;
|
|
2511
|
-
return t.era === "BCE" && (r = 1 - r),
|
|
2513
|
+
return t.era === "BCE" && (r = 1 - r), ge(ct, r, t.month, t.day);
|
|
2512
2514
|
}
|
|
2513
2515
|
getDaysInMonth(t) {
|
|
2514
2516
|
let r = t.year;
|
|
@@ -2600,7 +2602,7 @@ function ua({ buttons: e, tokens: t, customTheme: r, themeName: n = "calendar",
|
|
|
2600
2602
|
/* @__PURE__ */ a(A, { as: "p", tokens: { size: "h6" }, children: b }),
|
|
2601
2603
|
/* @__PURE__ */ y("div", { className: w, children: [
|
|
2602
2604
|
/* @__PURE__ */ a(
|
|
2603
|
-
|
|
2605
|
+
ee,
|
|
2604
2606
|
{
|
|
2605
2607
|
themeName: `${n}.navigationButtons`,
|
|
2606
2608
|
tokens: { ...t },
|
|
@@ -2611,7 +2613,7 @@ function ua({ buttons: e, tokens: t, customTheme: r, themeName: n = "calendar",
|
|
|
2611
2613
|
}
|
|
2612
2614
|
),
|
|
2613
2615
|
/* @__PURE__ */ a(
|
|
2614
|
-
|
|
2616
|
+
ee,
|
|
2615
2617
|
{
|
|
2616
2618
|
themeName: `${n}.navigationButtons`,
|
|
2617
2619
|
tokens: { ...t },
|
|
@@ -2649,7 +2651,7 @@ function fa({ themeName: e = "datePicker", tokens: t, ...r }) {
|
|
|
2649
2651
|
}
|
|
2650
2652
|
function ha({ segment: e, state: t }) {
|
|
2651
2653
|
const r = T(null), { segmentProps: n } = Lr(e, t, r), o = g("datePicker.dateSegment");
|
|
2652
|
-
return /* @__PURE__ */ a(
|
|
2654
|
+
return /* @__PURE__ */ a(Q, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ y("div", { ...n, ref: r, className: o, children: [
|
|
2653
2655
|
/* @__PURE__ */ a(
|
|
2654
2656
|
"span",
|
|
2655
2657
|
{
|
|
@@ -2692,7 +2694,7 @@ function ki({
|
|
|
2692
2694
|
$ && /* @__PURE__ */ a("span", { ...f, children: $ }),
|
|
2693
2695
|
s && /* @__PURE__ */ a("div", { ...h, children: s }),
|
|
2694
2696
|
/* @__PURE__ */ a("div", { ...d, ref: u, children: /* @__PURE__ */ y(
|
|
2695
|
-
|
|
2697
|
+
ee,
|
|
2696
2698
|
{
|
|
2697
2699
|
themeName: `${n}.button`,
|
|
2698
2700
|
tokens: { ...t },
|
|
@@ -2720,7 +2722,7 @@ function ki({
|
|
|
2720
2722
|
}
|
|
2721
2723
|
function ma(e, t, r) {
|
|
2722
2724
|
let [n, o] = V(e || t), s = T(e !== void 0), i = e !== void 0;
|
|
2723
|
-
|
|
2725
|
+
re(() => {
|
|
2724
2726
|
let u = s.current;
|
|
2725
2727
|
u !== i && console.warn(`WARN: A component changed from ${u ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}.`), s.current = i;
|
|
2726
2728
|
}, [
|
|
@@ -2746,7 +2748,7 @@ function ma(e, t, r) {
|
|
|
2746
2748
|
}
|
|
2747
2749
|
let pa = Math.round(Math.random() * 1e10), ga = 0;
|
|
2748
2750
|
function Zt(e) {
|
|
2749
|
-
let t =
|
|
2751
|
+
let t = te(() => e.name || `radio-group-${pa}-${++ga}`, [
|
|
2750
2752
|
e.name
|
|
2751
2753
|
]), [r, n] = ma(e.value, e.defaultValue, e.onChange), [o, s] = V(null);
|
|
2752
2754
|
return {
|
|
@@ -2774,7 +2776,7 @@ function ya() {
|
|
|
2774
2776
|
}
|
|
2775
2777
|
const Si = (e) => {
|
|
2776
2778
|
const { id: t, label: r, themeName: n = "radio", tokens: o, customTheme: s, value: i, fieldRef: l } = e, c = ya(), u = T(null), { inputProps: d } = $r(e, c, u), b = c?.selectedValue === i, { focusProps: f } = vr(), h = { ...o, selected: b }, w = g(`${n}.label`, h, s), m = g(`${n}.radio`, h, s), v = g(`${n}.selectedMark`, h, s);
|
|
2777
|
-
return /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
2779
|
+
return /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(Q, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ y("label", { htmlFor: t, className: w, children: [
|
|
2778
2780
|
/* @__PURE__ */ a(wr, { children: /* @__PURE__ */ a(
|
|
2779
2781
|
"input",
|
|
2780
2782
|
{
|
|
@@ -3107,15 +3109,15 @@ const Si = (e) => {
|
|
|
3107
3109
|
}, Symbol.toStringTag, { value: "Module" })), [Pi, Vs] = Mt();
|
|
3108
3110
|
function Ti({ children: e }) {
|
|
3109
3111
|
const [t, r] = V(!1);
|
|
3110
|
-
|
|
3112
|
+
re(() => {
|
|
3111
3113
|
r(!0);
|
|
3112
3114
|
}, []);
|
|
3113
|
-
const n =
|
|
3115
|
+
const n = te(() => ({ isClient: t }), [t]);
|
|
3114
3116
|
return /* @__PURE__ */ a(Vs, { value: n, children: e });
|
|
3115
3117
|
}
|
|
3116
3118
|
const Ue = (e, t, r = "sharing_tool") => `?utm_source=${e}&utm_medium=${t}&utm_campaign=${r}`, Ye = () => {
|
|
3117
3119
|
const [e, t] = V(), [r, n] = V();
|
|
3118
|
-
return
|
|
3120
|
+
return re(() => {
|
|
3119
3121
|
t(window.location.href), n(window.document.title);
|
|
3120
3122
|
}, []), { windowLocation: e, windowTitle: r };
|
|
3121
3123
|
}, Ri = (e, t, r) => {
|
|
@@ -3136,8 +3138,8 @@ export {
|
|
|
3136
3138
|
ze as Box,
|
|
3137
3139
|
ho as BoxWithForwardRef,
|
|
3138
3140
|
Ta as BrandArrowRight,
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
+
ee as Button,
|
|
3142
|
+
X as ButtonWithForwardRef,
|
|
3141
3143
|
ua as Calendar,
|
|
3142
3144
|
Ia as Check,
|
|
3143
3145
|
xi as Checkbox,
|