@veevarts/design-system 2.11.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, jsxs as u, Fragment as be } from "react/jsx-runtime";
|
|
2
|
-
import { HeroUIProvider as dl, Button as mn, Card as
|
|
2
|
+
import { HeroUIProvider as dl, Button as mn, Card as Ce, CardBody as Ae, DatePicker as or, Popover as $a, PopoverTrigger as Sa, PopoverContent as Aa, ScrollShadow as ul, TimeInput as ml, Select as fl, Input as $e, cn as p, SelectItem as ut, Alert as rt, Tooltip as at, Divider as xt, Dropdown as Da, DropdownTrigger as Ea, DropdownMenu as Fa, DropdownItem as qt, ButtonGroup as hl, useInput as pl, NumberInput as bi, Image as fa, CardHeader as xi, CardFooter as gl, Chip as it, Skeleton as se, Autocomplete as bl, AutocompleteItem as xl, Checkbox as La, Modal as Ln, ModalContent as _n, ModalHeader as Mn, ModalBody as Rn, ModalFooter as yi, Accordion as On, AccordionItem as Pn, Tabs as zn, Tab as ha, DropdownSection as cr, Spinner as vi, Switch as yl, CheckboxGroup as vl, RadioGroup as wl, Radio as Nl, Table as kl, TableHeader as Cl, TableColumn as $l, TableBody as Sl, Textarea as Al, Breadcrumbs as Dl, BreadcrumbItem as El, useProviderContext as Fl } from "@heroui/react";
|
|
3
3
|
export * from "@heroui/react";
|
|
4
|
-
import W, { forwardRef as St, useState as Y, useEffect as
|
|
4
|
+
import W, { forwardRef as St, useState as Y, useEffect as Fe, createElement as fn, useMemo as me, useRef as Oe, useId as _a, useReducer as Ll, useCallback as ne, isValidElement as _l, useLayoutEffect as Ml, Fragment as Rl } from "react";
|
|
5
5
|
import { Clock3 as Ol, Globe as dr, User as ur, Heading as wi, Check as Ni, ListTodo as ki, ListOrdered as Ci, List as Tn, AlignJustify as Pl, AlignRight as zl, AlignCenter as Tl, AlignLeft as $i, CornerDownLeft as Il, Redo2 as Bl, Undo2 as Vl, Eraser as mr, Minus as Ul, Quote as jl, CodeSquare as Hl, FileText as Wl, Link2 as ql, Highlighter as Si, Palette as Ai, Code as Yl, Underline as Gl, Strikethrough as Kl, Italic as Ql, Bold as Zl, X as Xl, ZoomOut as Jl, ZoomIn as eo, Link as to, Clock as fr, CheckCircle as ao, AlertCircle as no, Plus as In, CircleDollarSign as Di } from "lucide-react";
|
|
6
6
|
import { m as pa, LazyMotion as Ei, domAnimation as Fi, motion as ga, AnimatePresence as hn } from "framer-motion";
|
|
7
7
|
import { EditorProvider as ro, useCurrentEditor as Li } from "@tiptap/react";
|
|
@@ -32,7 +32,7 @@ import { Document as Ao } from "@tiptap/extension-document";
|
|
|
32
32
|
import { Text as Do } from "@tiptap/extension-text";
|
|
33
33
|
import { Dropcursor as Eo } from "@tiptap/extension-dropcursor";
|
|
34
34
|
import { Gapcursor as Fo } from "@tiptap/extension-gapcursor";
|
|
35
|
-
const
|
|
35
|
+
const Le = {
|
|
36
36
|
brand: {
|
|
37
37
|
primary: {
|
|
38
38
|
500: "#C14615",
|
|
@@ -103,7 +103,7 @@ const Fe = {
|
|
|
103
103
|
tight: "1.25",
|
|
104
104
|
normal: "1.5"
|
|
105
105
|
}
|
|
106
|
-
}, { gray: ta } =
|
|
106
|
+
}, { gray: ta } = Le.neutral, Lo = Le.palettes.warning[700], _o = Le.palettes.warning[100], ht = {
|
|
107
107
|
rustFill: "#FBEBE4",
|
|
108
108
|
rustBorder: "#EBC3B1",
|
|
109
109
|
page: "#F6F7F8",
|
|
@@ -114,12 +114,12 @@ const Fe = {
|
|
|
114
114
|
infoFill: "#E8EEFC"
|
|
115
115
|
}, _i = {
|
|
116
116
|
// Brand — the 500 already matches the scale exactly.
|
|
117
|
-
"--rust":
|
|
117
|
+
"--rust": Le.brand.primary[500],
|
|
118
118
|
"--rust-fill": ht.rustFill,
|
|
119
119
|
"--rust-border": ht.rustBorder,
|
|
120
120
|
// Chrome
|
|
121
121
|
"--page": ht.page,
|
|
122
|
-
"--surface":
|
|
122
|
+
"--surface": Le.neutral.white,
|
|
123
123
|
"--border": ht.border,
|
|
124
124
|
"--hair": ht.hair,
|
|
125
125
|
// Text — all four match the scale's grays exactly.
|
|
@@ -128,13 +128,13 @@ const Fe = {
|
|
|
128
128
|
"--sub": ta[500],
|
|
129
129
|
"--muted": ta[400],
|
|
130
130
|
// Semantic — text tone paired with the tint it sits on.
|
|
131
|
-
"--ok":
|
|
131
|
+
"--ok": Le.semantic.success,
|
|
132
132
|
"--ok-fill": ht.okFill,
|
|
133
133
|
"--warn": Lo,
|
|
134
134
|
"--warn-fill": _o,
|
|
135
|
-
"--danger":
|
|
135
|
+
"--danger": Le.semantic.danger,
|
|
136
136
|
"--danger-fill": ht.dangerFill,
|
|
137
|
-
"--info":
|
|
137
|
+
"--info": Le.semantic.info,
|
|
138
138
|
"--info-fill": ht.infoFill
|
|
139
139
|
};
|
|
140
140
|
Object.fromEntries(
|
|
@@ -153,7 +153,7 @@ ${a}${r}
|
|
|
153
153
|
}
|
|
154
154
|
`;
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const Me = {
|
|
157
157
|
/** `--line`: row, card and divider hairline. */
|
|
158
158
|
line: "#E7E7E9",
|
|
159
159
|
/** `--line2`: the lighter hairline under list rows and above the role bar. */
|
|
@@ -170,7 +170,7 @@ const _e = {
|
|
|
170
170
|
"warn-icon": "#EFD9B2",
|
|
171
171
|
/** `--eb` / `--ef`, plus the banner icon disc `.banner.err .bic`. */
|
|
172
172
|
"danger-fill": "#FCEBEB",
|
|
173
|
-
danger:
|
|
173
|
+
danger: Le.semantic.danger,
|
|
174
174
|
"danger-icon": "#F3D3CF",
|
|
175
175
|
/** `--ib` / `--if` */
|
|
176
176
|
"info-fill": "#EAF1FC",
|
|
@@ -182,7 +182,7 @@ const _e = {
|
|
|
182
182
|
/** `.btn-dstr` — the fill behind an irreversible confirmation. */
|
|
183
183
|
destructive: "#A32D2D"
|
|
184
184
|
};
|
|
185
|
-
({ ...
|
|
185
|
+
({ ...Me });
|
|
186
186
|
function k0({ children: e }) {
|
|
187
187
|
return /* @__PURE__ */ n(dl, { children: e });
|
|
188
188
|
}
|
|
@@ -1245,7 +1245,7 @@ function Wi(e) {
|
|
|
1245
1245
|
});
|
|
1246
1246
|
} else w && ((h = e.onLoad) === null || h === void 0 || h.call(e, b));
|
|
1247
1247
|
}
|
|
1248
|
-
|
|
1248
|
+
Fe(() => (a(!0), c), []), Fe(() => {
|
|
1249
1249
|
t && f();
|
|
1250
1250
|
}, [e.icon, t]);
|
|
1251
1251
|
const { name: m, data: g } = l;
|
|
@@ -1275,7 +1275,7 @@ function Rc({
|
|
|
1275
1275
|
removeAriaLabel: i = "Remove gift card",
|
|
1276
1276
|
testId: s = "veevart-applied-code-card"
|
|
1277
1277
|
}) {
|
|
1278
|
-
return /* @__PURE__ */ n(
|
|
1278
|
+
return /* @__PURE__ */ n(Ce, { "data-testid": s, shadow: "sm", className: "w-full", children: /* @__PURE__ */ u(Ae, { className: "flex flex-row items-start justify-between gap-2 p-4", children: [
|
|
1279
1279
|
/* @__PURE__ */ u("div", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
1280
1280
|
/* @__PURE__ */ n("span", { className: "text-xs text-default-500", children: r }),
|
|
1281
1281
|
/* @__PURE__ */ n("span", { "data-testid": `${s}-code`, className: "truncate font-medium text-foreground", children: e }),
|
|
@@ -1947,12 +1947,12 @@ function nd(e) {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
const nt = St(
|
|
1949
1949
|
({ popoverProps: e, ...t }, a) => {
|
|
1950
|
-
const r =
|
|
1950
|
+
const r = Oe(null), [i, s] = Y(void 0), l = {
|
|
1951
1951
|
...e,
|
|
1952
1952
|
disableDialogFocus: e?.disableDialogFocus ?? (i ? !0 : void 0),
|
|
1953
1953
|
portalContainer: e?.portalContainer ?? i
|
|
1954
1954
|
};
|
|
1955
|
-
return
|
|
1955
|
+
return Fe(() => {
|
|
1956
1956
|
s(nd(r.current));
|
|
1957
1957
|
}, []), /* @__PURE__ */ n("span", { ref: r, className: "contents", children: /* @__PURE__ */ n(
|
|
1958
1958
|
fl,
|
|
@@ -2000,7 +2000,7 @@ function C0({
|
|
|
2000
2000
|
return /* @__PURE__ */ u("div", { "data-testid": d, className: "flex flex-col gap-1", children: [
|
|
2001
2001
|
/* @__PURE__ */ u("div", { className: "flex items-end gap-2", children: [
|
|
2002
2002
|
/* @__PURE__ */ n(
|
|
2003
|
-
|
|
2003
|
+
$e,
|
|
2004
2004
|
{
|
|
2005
2005
|
"data-testid": `${d}-input`,
|
|
2006
2006
|
label: s,
|
|
@@ -2206,8 +2206,8 @@ var Ka;
|
|
|
2206
2206
|
const ld = typeof document < "u" ? (Ka = W.useInsertionEffect) !== null && Ka !== void 0 ? Ka : W.useLayoutEffect : () => {
|
|
2207
2207
|
};
|
|
2208
2208
|
function Pa(e, t, a) {
|
|
2209
|
-
let [r, i] = Y(e || t), s =
|
|
2210
|
-
|
|
2209
|
+
let [r, i] = Y(e || t), s = Oe(r), l = Oe(e !== void 0), o = e !== void 0;
|
|
2210
|
+
Fe(() => {
|
|
2211
2211
|
let m = l.current;
|
|
2212
2212
|
m !== o && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${m ? "controlled" : "uncontrolled"} to ${o ? "controlled" : "uncontrolled"}.`), l.current = o;
|
|
2213
2213
|
}, [
|
|
@@ -2462,7 +2462,7 @@ function A0(e) {
|
|
|
2462
2462
|
}
|
|
2463
2463
|
) }) });
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function Se(e, t = "en-US", a = "USD") {
|
|
2466
2466
|
try {
|
|
2467
2467
|
return new Intl.NumberFormat(t, {
|
|
2468
2468
|
style: "currency",
|
|
@@ -2784,8 +2784,8 @@ const E0 = (e) => {
|
|
|
2784
2784
|
return /* @__PURE__ */ u("div", { className: "flex flex-col gap-6 md:flex-row md:items-start md:justify-between", children: [
|
|
2785
2785
|
/* @__PURE__ */ u("div", { className: "flex w-full flex-col gap-3 md:w-2/5", children: [
|
|
2786
2786
|
/* @__PURE__ */ n("h2", { className: "text-sm font-medium text-gray-700", children: r }),
|
|
2787
|
-
/* @__PURE__ */ n(
|
|
2788
|
-
|
|
2787
|
+
/* @__PURE__ */ n(Ce, { className: "w-full border border-gray-200 shadow-none", children: /* @__PURE__ */ n(
|
|
2788
|
+
Ae,
|
|
2789
2789
|
{
|
|
2790
2790
|
className: "h-60 gap-2 overflow-y-auto",
|
|
2791
2791
|
onDragOver: (F) => F.preventDefault(),
|
|
@@ -2869,8 +2869,8 @@ const E0 = (e) => {
|
|
|
2869
2869
|
] }),
|
|
2870
2870
|
/* @__PURE__ */ u("div", { className: "flex w-full flex-col gap-3 md:w-2/5", children: [
|
|
2871
2871
|
/* @__PURE__ */ n("h2", { className: "text-sm font-medium text-gray-700", children: i }),
|
|
2872
|
-
/* @__PURE__ */ n(
|
|
2873
|
-
|
|
2872
|
+
/* @__PURE__ */ n(Ce, { className: "w-full border border-gray-200 shadow-none", children: /* @__PURE__ */ n(
|
|
2873
|
+
Ae,
|
|
2874
2874
|
{
|
|
2875
2875
|
className: "h-60 gap-2 overflow-y-auto",
|
|
2876
2876
|
onDragOver: (F) => F.preventDefault(),
|
|
@@ -3316,7 +3316,7 @@ const xd = [
|
|
|
3316
3316
|
function Za(e) {
|
|
3317
3317
|
return /^#([0-9A-F]{3}){1,2}$/i.test(e);
|
|
3318
3318
|
}
|
|
3319
|
-
const
|
|
3319
|
+
const Re = {
|
|
3320
3320
|
min: 50,
|
|
3321
3321
|
max: 200,
|
|
3322
3322
|
step: 10,
|
|
@@ -3380,7 +3380,7 @@ function Nd({ value: e, onChange: t, onApply: a, placeholder: r = "#000000" }) {
|
|
|
3380
3380
|
return /* @__PURE__ */ u("div", { className: "space-y-2", children: [
|
|
3381
3381
|
/* @__PURE__ */ u("div", { className: "flex gap-2", children: [
|
|
3382
3382
|
/* @__PURE__ */ n(
|
|
3383
|
-
|
|
3383
|
+
$e,
|
|
3384
3384
|
{
|
|
3385
3385
|
type: "text",
|
|
3386
3386
|
value: e,
|
|
@@ -3486,9 +3486,9 @@ function Pr({ editor: e, type: t, allowCustomColor: a = !0, label: r, isDisabled
|
|
|
3486
3486
|
function kd({
|
|
3487
3487
|
zoom: e,
|
|
3488
3488
|
onZoomChange: t,
|
|
3489
|
-
min: a =
|
|
3490
|
-
max: r =
|
|
3491
|
-
step: i =
|
|
3489
|
+
min: a = Re.min,
|
|
3490
|
+
max: r = Re.max,
|
|
3491
|
+
step: i = Re.step
|
|
3492
3492
|
}) {
|
|
3493
3493
|
const s = () => {
|
|
3494
3494
|
const m = Math.max(a, e - i);
|
|
@@ -3497,8 +3497,8 @@ function kd({
|
|
|
3497
3497
|
const m = Math.min(r, e + i);
|
|
3498
3498
|
t(m);
|
|
3499
3499
|
}, o = () => {
|
|
3500
|
-
t(
|
|
3501
|
-
}, c = e <= a, d = e >= r, f = e ===
|
|
3500
|
+
t(Re.default);
|
|
3501
|
+
}, c = e <= a, d = e >= r, f = e === Re.default;
|
|
3502
3502
|
return /* @__PURE__ */ u("div", { className: "flex items-center gap-1", children: [
|
|
3503
3503
|
/* @__PURE__ */ n(at, { content: "Zoom out", placement: "top", offset: 10, children: /* @__PURE__ */ n(
|
|
3504
3504
|
V,
|
|
@@ -3584,7 +3584,7 @@ function Cd({ editor: e, isDisabled: t = !1 }) {
|
|
|
3584
3584
|
) }),
|
|
3585
3585
|
/* @__PURE__ */ n(Aa, { children: /* @__PURE__ */ u("div", { className: "flex flex-col gap-3 p-3 w-72", children: [
|
|
3586
3586
|
/* @__PURE__ */ n(
|
|
3587
|
-
|
|
3587
|
+
$e,
|
|
3588
3588
|
{
|
|
3589
3589
|
size: "sm",
|
|
3590
3590
|
variant: "bordered",
|
|
@@ -3599,7 +3599,7 @@ function Cd({ editor: e, isDisabled: t = !1 }) {
|
|
|
3599
3599
|
}
|
|
3600
3600
|
),
|
|
3601
3601
|
/* @__PURE__ */ n(
|
|
3602
|
-
|
|
3602
|
+
$e,
|
|
3603
3603
|
{
|
|
3604
3604
|
size: "sm",
|
|
3605
3605
|
variant: "bordered",
|
|
@@ -3654,7 +3654,7 @@ function ps(e, t) {
|
|
|
3654
3654
|
}
|
|
3655
3655
|
}), s;
|
|
3656
3656
|
}, [e, t]), [r, i] = Y(a);
|
|
3657
|
-
return
|
|
3657
|
+
return Fe(() => {
|
|
3658
3658
|
if (!e)
|
|
3659
3659
|
return;
|
|
3660
3660
|
const s = () => {
|
|
@@ -3731,15 +3731,15 @@ function gs(e, t) {
|
|
|
3731
3731
|
isActive: s
|
|
3732
3732
|
};
|
|
3733
3733
|
}
|
|
3734
|
-
function Sd(e =
|
|
3735
|
-
const [t, a] = Y(e), r = ne((o =
|
|
3736
|
-
a((c) => Math.min(
|
|
3737
|
-
}, []), i = ne((o =
|
|
3738
|
-
a((c) => Math.max(
|
|
3734
|
+
function Sd(e = Re.default) {
|
|
3735
|
+
const [t, a] = Y(e), r = ne((o = Re.step) => {
|
|
3736
|
+
a((c) => Math.min(Re.max, c + o));
|
|
3737
|
+
}, []), i = ne((o = Re.step) => {
|
|
3738
|
+
a((c) => Math.max(Re.min, c - o));
|
|
3739
3739
|
}, []), s = ne(() => {
|
|
3740
|
-
a(
|
|
3740
|
+
a(Re.default);
|
|
3741
3741
|
}, []), l = ne((o) => {
|
|
3742
|
-
const c = Math.max(
|
|
3742
|
+
const c = Math.max(Re.min, Math.min(Re.max, o));
|
|
3743
3743
|
a(c);
|
|
3744
3744
|
}, []);
|
|
3745
3745
|
return {
|
|
@@ -3748,9 +3748,9 @@ function Sd(e = Me.default) {
|
|
|
3748
3748
|
zoomIn: r,
|
|
3749
3749
|
zoomOut: i,
|
|
3750
3750
|
resetZoom: s,
|
|
3751
|
-
isMinZoom: t <=
|
|
3752
|
-
isMaxZoom: t >=
|
|
3753
|
-
isDefaultZoom: t ===
|
|
3751
|
+
isMinZoom: t <= Re.min,
|
|
3752
|
+
isMaxZoom: t >= Re.max,
|
|
3753
|
+
isDefaultZoom: t === Re.default
|
|
3754
3754
|
};
|
|
3755
3755
|
}
|
|
3756
3756
|
const Ad = ["bold", "italic", "strike", "underline", "code"];
|
|
@@ -4270,16 +4270,16 @@ const _d = {
|
|
|
4270
4270
|
s: "text-decoration: line-through;",
|
|
4271
4271
|
u: "text-decoration: underline;",
|
|
4272
4272
|
// Code - using mono font family and token colors
|
|
4273
|
-
code: `background-color: ${
|
|
4274
|
-
pre: `background: ${
|
|
4273
|
+
code: `background-color: ${Le.neutral.gray[100]}; border-radius: 0.4rem; font-size: ${xe.fontSize.sm}; padding: 0.25em 0.3em; font-family: ${xe.fontFamily.mono};`,
|
|
4274
|
+
pre: `background: ${Le.neutral.gray[800]}; border-radius: ${pe.sm}; color: ${Le.neutral.gray[100]}; font-family: ${xe.fontFamily.mono}; margin: ${pe.lg} 0; padding: 0.75rem ${pe.md}; overflow-x: auto;`,
|
|
4275
4275
|
// Blockquote
|
|
4276
|
-
blockquote: `border-left: 3px solid ${
|
|
4276
|
+
blockquote: `border-left: 3px solid ${Le.neutral.gray[300]}; margin: ${pe.lg} 0; padding-left: ${pe.md}; color: ${Le.neutral.gray[500]};`,
|
|
4277
4277
|
// Horizontal rule
|
|
4278
|
-
hr: `border: none; border-top: 1px solid ${
|
|
4278
|
+
hr: `border: none; border-top: 1px solid ${Le.neutral.gray[200]}; margin: ${pe.xl} 0;`,
|
|
4279
4279
|
// Links - using brand primary color
|
|
4280
|
-
a: `color: ${
|
|
4280
|
+
a: `color: ${Le.brand.primary.DEFAULT}; text-decoration: underline; cursor: pointer;`,
|
|
4281
4281
|
// Mark/Highlight - using warning palette
|
|
4282
|
-
mark: `background-color: ${
|
|
4282
|
+
mark: `background-color: ${Le.palettes.warning[200]}; border-radius: ${pe.xs}; padding: 0 0.125rem;`,
|
|
4283
4283
|
// Task list checkbox label
|
|
4284
4284
|
label: `display: flex; align-items: center; gap: ${pe.sm}; cursor: pointer;`,
|
|
4285
4285
|
// Input checkbox (task items)
|
|
@@ -4374,7 +4374,7 @@ const Pd = ({
|
|
|
4374
4374
|
isMultiline: !0
|
|
4375
4375
|
}), U = R ? /* @__PURE__ */ n("label", { ...O(), children: R }) : null, q = W.useCallback(
|
|
4376
4376
|
({ editor: z }) => {
|
|
4377
|
-
const ee = z.getHTML(), G = N ? Od(ee) : ee, re = z.getJSON(), K = z.getText(), X = K.length, Z = K.split(/\s+/).filter((
|
|
4377
|
+
const ee = z.getHTML(), G = N ? Od(ee) : ee, re = z.getJSON(), K = z.getText(), X = K.length, Z = K.split(/\s+/).filter((oe) => oe.length > 0).length, te = {
|
|
4378
4378
|
html: G,
|
|
4379
4379
|
json: re,
|
|
4380
4380
|
text: K,
|
|
@@ -4382,11 +4382,11 @@ const Pd = ({
|
|
|
4382
4382
|
words: Z
|
|
4383
4383
|
};
|
|
4384
4384
|
if (g?.(te), h?.(te), "onChange" in k && typeof k.onChange == "function") {
|
|
4385
|
-
const
|
|
4385
|
+
const oe = {
|
|
4386
4386
|
target: { value: G },
|
|
4387
4387
|
currentTarget: { value: G }
|
|
4388
4388
|
};
|
|
4389
|
-
k.onChange(
|
|
4389
|
+
k.onChange(oe);
|
|
4390
4390
|
}
|
|
4391
4391
|
},
|
|
4392
4392
|
[g, h, k, N]
|
|
@@ -4602,7 +4602,7 @@ const zr = [
|
|
|
4602
4602
|
)
|
|
4603
4603
|
] })
|
|
4604
4604
|
] });
|
|
4605
|
-
return E ? /* @__PURE__ */ n(
|
|
4605
|
+
return E ? /* @__PURE__ */ n(Ce, { className: p("w-full", k), "data-testid": "donation-amounts-card", children: /* @__PURE__ */ n(Ae, { children: K }) }) : /* @__PURE__ */ n("div", { className: p("w-full", k), "data-testid": "donation-amounts-plain", children: K });
|
|
4606
4606
|
};
|
|
4607
4607
|
Vd.displayName = "DonationAmounts";
|
|
4608
4608
|
const Ud = (e) => {
|
|
@@ -4658,10 +4658,10 @@ const Ud = (e) => {
|
|
|
4658
4658
|
e !== void 0 ? Math.max(0, e) : void 0,
|
|
4659
4659
|
Math.max(0, t),
|
|
4660
4660
|
a
|
|
4661
|
-
), N =
|
|
4662
|
-
|
|
4661
|
+
), N = Oe(null), k = Oe(!1);
|
|
4662
|
+
Fe(() => () => {
|
|
4663
4663
|
N.current && clearInterval(N.current);
|
|
4664
|
-
}, []),
|
|
4664
|
+
}, []), Fe(() => {
|
|
4665
4665
|
if (!f || w <= 0) {
|
|
4666
4666
|
N.current && (clearInterval(N.current), N.current = null);
|
|
4667
4667
|
return;
|
|
@@ -4671,7 +4671,7 @@ const Ud = (e) => {
|
|
|
4671
4671
|
}, 1e3), () => {
|
|
4672
4672
|
N.current && (clearInterval(N.current), N.current = null);
|
|
4673
4673
|
};
|
|
4674
|
-
}, [f, w, x, r]),
|
|
4674
|
+
}, [f, w, x, r]), Fe(() => {
|
|
4675
4675
|
w > 0 && (k.current = !1);
|
|
4676
4676
|
}, [w]);
|
|
4677
4677
|
const E = c || jd(i), v = Hd(s), S = {
|
|
@@ -4760,8 +4760,8 @@ const Dt = ({
|
|
|
4760
4760
|
showMoreButtonClassName: m,
|
|
4761
4761
|
labels: g
|
|
4762
4762
|
}) => {
|
|
4763
|
-
const [h, b] = Y(!1), [w, x] = Y(!1), N =
|
|
4764
|
-
return
|
|
4763
|
+
const [h, b] = Y(!1), [w, x] = Y(!1), N = Oe(null);
|
|
4764
|
+
return Fe(() => {
|
|
4765
4765
|
const k = () => {
|
|
4766
4766
|
if (N.current) {
|
|
4767
4767
|
const E = N.current.scrollHeight > N.current.clientHeight;
|
|
@@ -4769,7 +4769,7 @@ const Dt = ({
|
|
|
4769
4769
|
}
|
|
4770
4770
|
};
|
|
4771
4771
|
return k(), window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
|
|
4772
|
-
}, [l]), d === "horizontal" ? /* @__PURE__ */ n(
|
|
4772
|
+
}, [l]), d === "horizontal" ? /* @__PURE__ */ n(Ce, { className: p("border-0 shadow-none", e), "data-testid": "event-details-root", children: /* @__PURE__ */ n(Ae, { className: "p-0", "data-testid": "event-details-horizontal-layout", children: /* @__PURE__ */ u("div", { className: "flex flex-col items-start gap-5 sm:flex-row sm:gap-8", children: [
|
|
4773
4773
|
o && a && /* @__PURE__ */ n(
|
|
4774
4774
|
"div",
|
|
4775
4775
|
{
|
|
@@ -4812,7 +4812,7 @@ const Dt = ({
|
|
|
4812
4812
|
(w || h) && /* @__PURE__ */ n("div", { className: "flex justify-end mt-1", children: /* @__PURE__ */ n(V, { onPress: () => b(!h), variant: "light", className: p("text-primary", m), size: "md", startContent: /* @__PURE__ */ n(T, { icon: h ? "solar:eye-closed-linear" : "solar:eye-linear", width: 20 }), "data-testid": "event-details-toggle-description", children: h ? g.showLess || "Hide" : g.showMore || "Show" }) })
|
|
4813
4813
|
] })
|
|
4814
4814
|
] })
|
|
4815
|
-
] }) }) }) : /* @__PURE__ */ u(
|
|
4815
|
+
] }) }) }) : /* @__PURE__ */ u(Ce, { className: p("border-0 shadow-none", e), "data-testid": "event-details-root", children: [
|
|
4816
4816
|
/* @__PURE__ */ u(
|
|
4817
4817
|
xi,
|
|
4818
4818
|
{
|
|
@@ -4848,7 +4848,7 @@ const Dt = ({
|
|
|
4848
4848
|
]
|
|
4849
4849
|
}
|
|
4850
4850
|
),
|
|
4851
|
-
/* @__PURE__ */ u(
|
|
4851
|
+
/* @__PURE__ */ u(Ae, { className: p("space-y-3", c ? "py-1 space-y-2" : "py-3"), "data-testid": "event-details-body", children: [
|
|
4852
4852
|
/* @__PURE__ */ n("h3", { className: p("font-semibold text-base text-gray-700", c ? "text-sm" : ""), "data-testid": "event-details-info-label", children: g.eventInformation }),
|
|
4853
4853
|
/* @__PURE__ */ u("div", { className: "flex flex-wrap gap-4", "data-testid": "event-details-info", children: [
|
|
4854
4854
|
r && /* @__PURE__ */ n(Dt, { icon: "solar:calendar-minimalistic-linear", testId: "event-details-date", children: r }),
|
|
@@ -4957,11 +4957,11 @@ const qd = {
|
|
|
4957
4957
|
disabledReason: R,
|
|
4958
4958
|
disabled: F
|
|
4959
4959
|
}) => {
|
|
4960
|
-
const D = me(() => ({ ...qd, ...l }), [l]), [O, I] = Y(a), U = t !== void 0 ? t : O, q = !!(c || F), z = v || !!e.compact, ee = E === "press-to-add", G = me(() => typeof S == "boolean" ? S : typeof e.isSoldOut == "boolean" ? e.isSoldOut : !Et(e.totalTicketsSold) || !Et(e.ticketsAllowed) ? !1 : e.totalTicketsSold >= e.ticketsAllowed, [S, e.isSoldOut, e.totalTicketsSold, e.ticketsAllowed]), re = me(() => typeof M == "boolean" ? M : typeof e.isMaxReached == "boolean" ? e.isMaxReached : G || !Et(e.ticketsAllowed) ? !1 : U >= e.ticketsAllowed - (e.totalTicketsSold ?? 0), [M, e.isMaxReached, G, e.ticketsAllowed, e.totalTicketsSold, U]), K = me(() => typeof $ == "boolean" ? $ : typeof e.isRuleBlocked == "boolean" ? e.isRuleBlocked : !1, [$, e.isRuleBlocked]), X = R || e.disabledReason, Z = q || G || K, te = (
|
|
4961
|
-
if (Z ||
|
|
4962
|
-
const
|
|
4963
|
-
t === void 0 && I(
|
|
4964
|
-
},
|
|
4960
|
+
const D = me(() => ({ ...qd, ...l }), [l]), [O, I] = Y(a), U = t !== void 0 ? t : O, q = !!(c || F), z = v || !!e.compact, ee = E === "press-to-add", G = me(() => typeof S == "boolean" ? S : typeof e.isSoldOut == "boolean" ? e.isSoldOut : !Et(e.totalTicketsSold) || !Et(e.ticketsAllowed) ? !1 : e.totalTicketsSold >= e.ticketsAllowed, [S, e.isSoldOut, e.totalTicketsSold, e.ticketsAllowed]), re = me(() => typeof M == "boolean" ? M : typeof e.isMaxReached == "boolean" ? e.isMaxReached : G || !Et(e.ticketsAllowed) ? !1 : U >= e.ticketsAllowed - (e.totalTicketsSold ?? 0), [M, e.isMaxReached, G, e.ticketsAllowed, e.totalTicketsSold, U]), K = me(() => typeof $ == "boolean" ? $ : typeof e.isRuleBlocked == "boolean" ? e.isRuleBlocked : !1, [$, e.isRuleBlocked]), X = R || e.disabledReason, Z = q || G || K, te = (ue) => {
|
|
4961
|
+
if (Z || ue > 0 && re) return;
|
|
4962
|
+
const De = Math.max(0, U + ue);
|
|
4963
|
+
t === void 0 && I(De), r?.(e.id, De);
|
|
4964
|
+
}, oe = me(() => {
|
|
4965
4965
|
if (G)
|
|
4966
4966
|
return "soldOut";
|
|
4967
4967
|
if (K)
|
|
@@ -4969,9 +4969,9 @@ const qd = {
|
|
|
4969
4969
|
if (q)
|
|
4970
4970
|
return "disabled";
|
|
4971
4971
|
}, [G, K, q]), J = me(() => L || (G || K ? "danger" : re ? "warning" : "default"), [L, G, K, re]), he = me(() => {
|
|
4972
|
-
if (
|
|
4973
|
-
return
|
|
4974
|
-
}, [
|
|
4972
|
+
if (oe)
|
|
4973
|
+
return oe === "ruleBlocked" ? C || X || D.ruleBlocked : oe === "soldOut" ? C || X || D.soldOut : oe === "disabled" ? C || X || D.disabled : C || D.maxReached;
|
|
4974
|
+
}, [oe, C, X, D]), ie = {
|
|
4975
4975
|
soldOut: "danger",
|
|
4976
4976
|
ruleBlocked: J,
|
|
4977
4977
|
disabled: "default",
|
|
@@ -4988,14 +4988,14 @@ const qd = {
|
|
|
4988
4988
|
className: p("text-base font-medium", z && "text-sm", x.name),
|
|
4989
4989
|
children: e.name
|
|
4990
4990
|
}
|
|
4991
|
-
),
|
|
4991
|
+
), Ue = () => {
|
|
4992
4992
|
if (!b)
|
|
4993
4993
|
return null;
|
|
4994
|
-
const
|
|
4994
|
+
const ue = w?.price ?? e.price, De = w?.originalPrice, tt = Tr(ue, s, i);
|
|
4995
4995
|
if (o?.renderPrice)
|
|
4996
|
-
return o.renderPrice(
|
|
4997
|
-
if (Et(
|
|
4998
|
-
const A = Tr(
|
|
4996
|
+
return o.renderPrice(ue, tt, e);
|
|
4997
|
+
if (Et(De) && Et(ue) && De > ue) {
|
|
4998
|
+
const A = Tr(De, s, i);
|
|
4999
4999
|
return /* @__PURE__ */ u(
|
|
5000
5000
|
"div",
|
|
5001
5001
|
{
|
|
@@ -5064,8 +5064,8 @@ const qd = {
|
|
|
5064
5064
|
), st = () => {
|
|
5065
5065
|
if (!h || !Et(e.numberOfPeople) || e.numberOfPeople <= 0)
|
|
5066
5066
|
return null;
|
|
5067
|
-
const
|
|
5068
|
-
return o?.renderPeopleCount ? o.renderPeopleCount(e.numberOfPeople,
|
|
5067
|
+
const ue = e.numberOfPeople === 1 ? D.person : D.people;
|
|
5068
|
+
return o?.renderPeopleCount ? o.renderPeopleCount(e.numberOfPeople, ue, e) : /* @__PURE__ */ u(
|
|
5069
5069
|
"p",
|
|
5070
5070
|
{
|
|
5071
5071
|
"data-testid": "offer-card-people-count",
|
|
@@ -5081,18 +5081,18 @@ const qd = {
|
|
|
5081
5081
|
),
|
|
5082
5082
|
e.numberOfPeople,
|
|
5083
5083
|
" ",
|
|
5084
|
-
|
|
5084
|
+
ue
|
|
5085
5085
|
]
|
|
5086
5086
|
}
|
|
5087
5087
|
);
|
|
5088
5088
|
}, et = () => {
|
|
5089
|
-
const
|
|
5089
|
+
const ue = U === 0 || Z, De = re || Z;
|
|
5090
5090
|
return o?.renderQuantitySelector ? o.renderQuantitySelector({
|
|
5091
5091
|
quantity: U,
|
|
5092
5092
|
onIncrement: () => te(1),
|
|
5093
5093
|
onDecrement: () => te(-1),
|
|
5094
|
-
isDecrementDisabled:
|
|
5095
|
-
isIncrementDisabled:
|
|
5094
|
+
isDecrementDisabled: ue,
|
|
5095
|
+
isIncrementDisabled: De,
|
|
5096
5096
|
isDisabled: Z
|
|
5097
5097
|
}) : /* @__PURE__ */ u("div", { className: p("flex items-center gap-2", x.quantitySelector), children: [
|
|
5098
5098
|
/* @__PURE__ */ n(
|
|
@@ -5100,7 +5100,7 @@ const qd = {
|
|
|
5100
5100
|
{
|
|
5101
5101
|
"data-testid": "offer-card-decrement-button",
|
|
5102
5102
|
onPress: () => te(-1),
|
|
5103
|
-
isDisabled:
|
|
5103
|
+
isDisabled: ue,
|
|
5104
5104
|
variant: d,
|
|
5105
5105
|
color: U > 0 ? k : f,
|
|
5106
5106
|
radius: "full",
|
|
@@ -5116,7 +5116,7 @@ const qd = {
|
|
|
5116
5116
|
{
|
|
5117
5117
|
"data-testid": "offer-card-increment-button",
|
|
5118
5118
|
onPress: () => te(1),
|
|
5119
|
-
isDisabled:
|
|
5119
|
+
isDisabled: De,
|
|
5120
5120
|
variant: d,
|
|
5121
5121
|
color: U > 0 ? k : f,
|
|
5122
5122
|
radius: "full",
|
|
@@ -5127,21 +5127,21 @@ const qd = {
|
|
|
5127
5127
|
}
|
|
5128
5128
|
)
|
|
5129
5129
|
] });
|
|
5130
|
-
}, yt = (
|
|
5130
|
+
}, yt = (ue, De) => o?.renderDisabledState ? o.renderDisabledState(ue, De) : ue === "soldOut" && o?.renderSoldOut ? o.renderSoldOut(De) : ue === "maxReached" && o?.renderMaxReachedAlert ? o.renderMaxReachedAlert(De) : /* @__PURE__ */ n(
|
|
5131
5131
|
it,
|
|
5132
5132
|
{
|
|
5133
|
-
"data-testid": qe[
|
|
5134
|
-
color: ie[
|
|
5135
|
-
variant:
|
|
5133
|
+
"data-testid": qe[ue],
|
|
5134
|
+
color: ie[ue],
|
|
5135
|
+
variant: ue === "maxReached" ? "flat" : "solid",
|
|
5136
5136
|
className: p(
|
|
5137
5137
|
"gap-2 px-4",
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5138
|
+
ue === "maxReached" ? "h-8" : "h-10",
|
|
5139
|
+
ue === "soldOut" && x.soldOut,
|
|
5140
|
+
ue === "maxReached" && x.maxReachedAlert,
|
|
5141
5141
|
z && "h-8"
|
|
5142
5142
|
),
|
|
5143
5143
|
startContent: /* @__PURE__ */ n(T, { icon: "gravity-ui:triangle-exclamation-fill", width: 14 }),
|
|
5144
|
-
children: /* @__PURE__ */ n("span", { className: "font-medium text-sm", children:
|
|
5144
|
+
children: /* @__PURE__ */ n("span", { className: "font-medium text-sm", children: De })
|
|
5145
5145
|
}
|
|
5146
5146
|
), mt = /* @__PURE__ */ u(
|
|
5147
5147
|
"div",
|
|
@@ -5160,7 +5160,7 @@ const qd = {
|
|
|
5160
5160
|
),
|
|
5161
5161
|
children: [
|
|
5162
5162
|
Ie(),
|
|
5163
|
-
|
|
5163
|
+
Ue(),
|
|
5164
5164
|
/* @__PURE__ */ u(
|
|
5165
5165
|
"div",
|
|
5166
5166
|
{
|
|
@@ -5185,7 +5185,7 @@ const qd = {
|
|
|
5185
5185
|
z && "space-x-1 pb-1 md:p-1",
|
|
5186
5186
|
x.compactFooter
|
|
5187
5187
|
),
|
|
5188
|
-
children:
|
|
5188
|
+
children: oe && he ? yt(oe, he) : et()
|
|
5189
5189
|
}
|
|
5190
5190
|
)
|
|
5191
5191
|
]
|
|
@@ -5202,14 +5202,14 @@ const qd = {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
) : null;
|
|
5204
5204
|
return m ? /* @__PURE__ */ u(
|
|
5205
|
-
|
|
5205
|
+
Ce,
|
|
5206
5206
|
{
|
|
5207
5207
|
className: p("w-full", ee && !Z && !re && "cursor-pointer", z && x.compact, x.base),
|
|
5208
5208
|
"data-testid": N || `offer-card-${e.id}`,
|
|
5209
5209
|
isPressable: ee && !Z && !re,
|
|
5210
5210
|
onPress: ee && !Z && !re ? () => te(1) : void 0,
|
|
5211
5211
|
children: [
|
|
5212
|
-
/* @__PURE__ */ n(
|
|
5212
|
+
/* @__PURE__ */ n(Ae, { className: p("pt-1 pb-0", z ? "pb-0.5" : "", x.body), children: mt }),
|
|
5213
5213
|
/* @__PURE__ */ n(hn, { children: Ye && /* @__PURE__ */ n(gl, { className: p("w-full mt-0 pt-0", z ? "pt-1" : "", x.footer), children: Ye }) })
|
|
5214
5214
|
]
|
|
5215
5215
|
}
|
|
@@ -5236,7 +5236,7 @@ const Yd = ({
|
|
|
5236
5236
|
}) => {
|
|
5237
5237
|
if (s) {
|
|
5238
5238
|
const o = s();
|
|
5239
|
-
return r ? /* @__PURE__ */ n(
|
|
5239
|
+
return r ? /* @__PURE__ */ n(Ce, { "data-testid": "offer-card-empty", className: p("w-full", i.base), children: /* @__PURE__ */ n(Ae, { "data-testid": "offer-card-empty-body", children: o }) }) : /* @__PURE__ */ n("div", { "data-testid": "offer-card-empty", className: p("w-full", i.base), children: o });
|
|
5240
5240
|
}
|
|
5241
5241
|
const l = /* @__PURE__ */ u(
|
|
5242
5242
|
"div",
|
|
@@ -5260,7 +5260,7 @@ const Yd = ({
|
|
|
5260
5260
|
]
|
|
5261
5261
|
}
|
|
5262
5262
|
);
|
|
5263
|
-
return r ? /* @__PURE__ */ n(
|
|
5263
|
+
return r ? /* @__PURE__ */ n(Ce, { "data-testid": "offer-card-empty", className: p("w-full", i.base), children: /* @__PURE__ */ n(Ae, { "data-testid": "offer-card-empty-body", children: l }) }) : /* @__PURE__ */ n("div", { "data-testid": "offer-card-empty", className: p("w-full", i.base), children: l });
|
|
5264
5264
|
};
|
|
5265
5265
|
Yd.displayName = "OfferCardEmpty";
|
|
5266
5266
|
const Gd = {
|
|
@@ -5283,7 +5283,7 @@ const Gd = {
|
|
|
5283
5283
|
className: i.alert
|
|
5284
5284
|
}
|
|
5285
5285
|
);
|
|
5286
|
-
return a ? /* @__PURE__ */ n(
|
|
5286
|
+
return a ? /* @__PURE__ */ n(Ce, { "data-testid": "offer-card-error", className: p("w-full", i.base), children: /* @__PURE__ */ n(Ae, { "data-testid": "offer-card-error-body", children: l }) }) : /* @__PURE__ */ n("div", { "data-testid": "offer-card-error", className: p("w-full", i.base), children: l });
|
|
5287
5287
|
};
|
|
5288
5288
|
Kd.displayName = "OfferCardError";
|
|
5289
5289
|
const Qd = {
|
|
@@ -5296,7 +5296,7 @@ const Qd = {
|
|
|
5296
5296
|
}, Zd = ({ quantity: e = 2, gap: t = 4, classNames: a = {} }) => {
|
|
5297
5297
|
const r = Qd[t];
|
|
5298
5298
|
return /* @__PURE__ */ n("div", { "data-testid": "offer-card-skeleton-container", className: p(r, a.base), children: Array.from({ length: e }).map((i, s) => /* @__PURE__ */ u(
|
|
5299
|
-
|
|
5299
|
+
Ce,
|
|
5300
5300
|
{
|
|
5301
5301
|
"data-testid": `offer-card-skeleton-${s}`,
|
|
5302
5302
|
className: p("w-full", a.card),
|
|
@@ -5319,7 +5319,7 @@ const Qd = {
|
|
|
5319
5319
|
] })
|
|
5320
5320
|
}
|
|
5321
5321
|
),
|
|
5322
|
-
/* @__PURE__ */ n(
|
|
5322
|
+
/* @__PURE__ */ n(Ae, { "data-testid": `offer-card-skeleton-body-${s}`, className: "pt-2 pb-0", children: /* @__PURE__ */ u("div", { className: "grid grid-cols-1 xl:grid-cols-3 gap-2 items-start", children: [
|
|
5323
5323
|
/* @__PURE__ */ u("div", { className: "xl:col-span-2 space-y-2", children: [
|
|
5324
5324
|
/* @__PURE__ */ n(
|
|
5325
5325
|
se,
|
|
@@ -5529,11 +5529,11 @@ const Xd = {
|
|
|
5529
5529
|
) : /* @__PURE__ */ n("div", { "data-testid": "offer-card-list", className: C, children: M.map(R) });
|
|
5530
5530
|
};
|
|
5531
5531
|
tu.displayName = "OfferCardList";
|
|
5532
|
-
var Qt = (e) => e.type === "checkbox", kt = (e) => e instanceof Date,
|
|
5532
|
+
var Qt = (e) => e.type === "checkbox", kt = (e) => e instanceof Date, Ve = (e) => e == null;
|
|
5533
5533
|
const bs = (e) => typeof e == "object";
|
|
5534
|
-
var
|
|
5534
|
+
var ke = (e) => !Ve(e) && !Array.isArray(e) && bs(e) && !kt(e), xs = (e) => ke(e) && e.target ? Qt(e.target) ? e.target.checked : e.target.value : e, au = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, ys = (e, t) => e.has(au(t)), nu = (e) => {
|
|
5535
5535
|
const t = e.constructor && e.constructor.prototype;
|
|
5536
|
-
return
|
|
5536
|
+
return ke(t) && t.hasOwnProperty("isPrototypeOf");
|
|
5537
5537
|
}, Gn = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
5538
5538
|
function ve(e) {
|
|
5539
5539
|
if (e instanceof Date)
|
|
@@ -5542,7 +5542,7 @@ function ve(e) {
|
|
|
5542
5542
|
if (Gn && (e instanceof Blob || t))
|
|
5543
5543
|
return e;
|
|
5544
5544
|
const a = Array.isArray(e);
|
|
5545
|
-
if (!a && !(
|
|
5545
|
+
if (!a && !(ke(e) && nu(e)))
|
|
5546
5546
|
return e;
|
|
5547
5547
|
const r = a ? [] : Object.create(Object.getPrototypeOf(e));
|
|
5548
5548
|
for (const i in e)
|
|
@@ -5550,9 +5550,9 @@ function ve(e) {
|
|
|
5550
5550
|
return r;
|
|
5551
5551
|
}
|
|
5552
5552
|
var Ta = (e) => /^\w*$/.test(e), ge = (e) => e === void 0, Kn = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Qn = (e) => Kn(e.replace(/["|']|\]/g, "").split(/\.|\[/)), H = (e, t, a) => {
|
|
5553
|
-
if (!t || !
|
|
5553
|
+
if (!t || !ke(e))
|
|
5554
5554
|
return a;
|
|
5555
|
-
const r = (Ta(t) ? [t] : Qn(t)).reduce((i, s) =>
|
|
5555
|
+
const r = (Ta(t) ? [t] : Qn(t)).reduce((i, s) => Ve(i) ? i : i[s], e);
|
|
5556
5556
|
return ge(r) || r === e ? ge(e[t]) ? a : e[t] : r;
|
|
5557
5557
|
}, He = (e) => typeof e == "boolean", Te = (e) => typeof e == "function", fe = (e, t, a) => {
|
|
5558
5558
|
let r = -1;
|
|
@@ -5562,7 +5562,7 @@ var Ta = (e) => /^\w*$/.test(e), ge = (e) => e === void 0, Kn = (e) => Array.isA
|
|
|
5562
5562
|
let c = a;
|
|
5563
5563
|
if (r !== l) {
|
|
5564
5564
|
const d = e[o];
|
|
5565
|
-
c =
|
|
5565
|
+
c = ke(d) || Array.isArray(d) ? d : isNaN(+i[r + 1]) ? {} : [];
|
|
5566
5566
|
}
|
|
5567
5567
|
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
5568
5568
|
return;
|
|
@@ -5629,7 +5629,7 @@ function ru(e) {
|
|
|
5629
5629
|
c.current.isValid && a._setValid(!0);
|
|
5630
5630
|
}, [a]), W.useMemo(() => ws(l, a, c.current, !1), [l, a]);
|
|
5631
5631
|
}
|
|
5632
|
-
var We = (e) => typeof e == "string", kn = (e, t, a, r, i) => We(e) ? (r && t.watch.add(e), H(a, e, i)) : Array.isArray(e) ? e.map((s) => (r && t.watch.add(s), H(a, s))) : (r && (t.watchAll = !0), a), Cn = (e) =>
|
|
5632
|
+
var We = (e) => typeof e == "string", kn = (e, t, a, r, i) => We(e) ? (r && t.watch.add(e), H(a, e, i)) : Array.isArray(e) ? e.map((s) => (r && t.watch.add(s), H(a, s))) : (r && (t.watchAll = !0), a), Cn = (e) => Ve(e) || !bs(e);
|
|
5633
5633
|
function Xe(e, t, a = /* @__PURE__ */ new WeakSet()) {
|
|
5634
5634
|
if (Cn(e) || Cn(t))
|
|
5635
5635
|
return Object.is(e, t);
|
|
@@ -5647,7 +5647,7 @@ function Xe(e, t, a = /* @__PURE__ */ new WeakSet()) {
|
|
|
5647
5647
|
return !1;
|
|
5648
5648
|
if (s !== "ref") {
|
|
5649
5649
|
const o = t[s];
|
|
5650
|
-
if (kt(l) && kt(o) ||
|
|
5650
|
+
if (kt(l) && kt(o) || ke(l) && ke(o) || Array.isArray(l) && Array.isArray(o) ? !Xe(l, o, a) : !Object.is(l, o))
|
|
5651
5651
|
return !1;
|
|
5652
5652
|
}
|
|
5653
5653
|
}
|
|
@@ -5816,14 +5816,14 @@ function Ns(e, t) {
|
|
|
5816
5816
|
for (const r in e)
|
|
5817
5817
|
if (e.hasOwnProperty(r)) {
|
|
5818
5818
|
const i = e[r], s = t[r];
|
|
5819
|
-
if (i &&
|
|
5819
|
+
if (i && ke(i) && s) {
|
|
5820
5820
|
const l = Ns(i, s);
|
|
5821
|
-
|
|
5821
|
+
ke(l) && (a[r] = l);
|
|
5822
5822
|
} else e[r] && (a[r] = s);
|
|
5823
5823
|
}
|
|
5824
5824
|
return a;
|
|
5825
5825
|
}
|
|
5826
|
-
var
|
|
5826
|
+
var ze = (e) => ke(e) && !Object.keys(e).length, Jn = (e) => e.type === "file", va = (e) => {
|
|
5827
5827
|
if (!Gn)
|
|
5828
5828
|
return !1;
|
|
5829
5829
|
const t = e ? e.ownerDocument : 0;
|
|
@@ -5844,7 +5844,7 @@ function uu(e) {
|
|
|
5844
5844
|
}
|
|
5845
5845
|
function we(e, t) {
|
|
5846
5846
|
const a = Array.isArray(t) ? t : Ta(t) ? [t] : Qn(t), r = a.length === 1 ? e : du(e, a), i = a.length - 1, s = a[i];
|
|
5847
|
-
return r && delete r[s], i !== 0 && (
|
|
5847
|
+
return r && delete r[s], i !== 0 && (ke(r) && ze(r) || Array.isArray(r) && uu(r)) && we(e, a.slice(0, -1)), e;
|
|
5848
5848
|
}
|
|
5849
5849
|
var mu = (e) => {
|
|
5850
5850
|
for (const t in e)
|
|
@@ -5853,7 +5853,7 @@ var mu = (e) => {
|
|
|
5853
5853
|
return !1;
|
|
5854
5854
|
};
|
|
5855
5855
|
function Cs(e) {
|
|
5856
|
-
return Array.isArray(e) ||
|
|
5856
|
+
return Array.isArray(e) || ke(e) && !mu(e);
|
|
5857
5857
|
}
|
|
5858
5858
|
function $n(e, t = {}) {
|
|
5859
5859
|
for (const a in e) {
|
|
@@ -5867,7 +5867,7 @@ function _t(e, t, a) {
|
|
|
5867
5867
|
for (const r in e) {
|
|
5868
5868
|
const i = e[r];
|
|
5869
5869
|
if (Cs(i))
|
|
5870
|
-
ge(t) || Cn(a[r]) ? a[r] = $n(i, Array.isArray(i) ? [] : {}) : _t(i,
|
|
5870
|
+
ge(t) || Cn(a[r]) ? a[r] = $n(i, Array.isArray(i) ? [] : {}) : _t(i, Ve(t) ? {} : t[r], a[r]);
|
|
5871
5871
|
else {
|
|
5872
5872
|
const s = t[r];
|
|
5873
5873
|
a[r] = !Xe(i, s);
|
|
@@ -5916,7 +5916,7 @@ var fu = (e, t, a, r) => {
|
|
|
5916
5916
|
fields: i,
|
|
5917
5917
|
shouldUseNativeValidation: r
|
|
5918
5918
|
};
|
|
5919
|
-
}, wa = (e) => e instanceof RegExp, It = (e) => ge(e) ? e : wa(e) ? e.source :
|
|
5919
|
+
}, wa = (e) => e instanceof RegExp, It = (e) => ge(e) ? e : wa(e) ? e.source : ke(e) ? wa(e.value) ? e.value.source : e.value : e, Hr = (e) => ({
|
|
5920
5920
|
isOnSubmit: !e || e === Ze.onSubmit,
|
|
5921
5921
|
isOnBlur: e === Ze.onBlur,
|
|
5922
5922
|
isOnChange: e === Ze.onChange,
|
|
@@ -5924,7 +5924,7 @@ var fu = (e, t, a, r) => {
|
|
|
5924
5924
|
isOnTouch: e === Ze.onTouched
|
|
5925
5925
|
});
|
|
5926
5926
|
const Wr = "AsyncFunction";
|
|
5927
|
-
var hu = (e) => !!e && !!e.validate && !!(Te(e.validate) && e.validate.constructor.name === Wr ||
|
|
5927
|
+
var hu = (e) => !!e && !!e.validate && !!(Te(e.validate) && e.validate.constructor.name === Wr || ke(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === Wr)), pu = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), qr = (e, t, a) => !a && (t.watchAll || t.watch.has(e) || [...t.watch].some((r) => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length))));
|
|
5928
5928
|
const Wt = (e, t, a, r) => {
|
|
5929
5929
|
for (const i of a || Object.keys(e)) {
|
|
5930
5930
|
const s = H(e, i);
|
|
@@ -5937,7 +5937,7 @@ const Wt = (e, t, a, r) => {
|
|
|
5937
5937
|
return !0;
|
|
5938
5938
|
if (Wt(o, t))
|
|
5939
5939
|
break;
|
|
5940
|
-
} else if (
|
|
5940
|
+
} else if (ke(o) && Wt(o, t))
|
|
5941
5941
|
break;
|
|
5942
5942
|
}
|
|
5943
5943
|
}
|
|
@@ -5973,7 +5973,7 @@ function Yr(e, t, a) {
|
|
|
5973
5973
|
var gu = (e, t, a, r) => {
|
|
5974
5974
|
a(e);
|
|
5975
5975
|
const { name: i, ...s } = e;
|
|
5976
|
-
return
|
|
5976
|
+
return ze(s) || Object.keys(s).length >= Object.keys(t).length || Object.keys(s).find((l) => t[l] === (!r || Ze.all));
|
|
5977
5977
|
}, bu = (e, t, a) => !e || !t || e === t || Ht(e).some((r) => r && (a ? r === t : r.startsWith(t) || t.startsWith(r))), xu = (e, t, a, r, i) => i.isOnAll ? !1 : !a && i.isOnTouch ? !(t || e) : (a ? r.isOnBlur : i.isOnBlur) ? !e : (a ? r.isOnChange : i.isOnChange) ? e : !0, yu = (e, t) => !Kn(H(e, t)).length && we(e, t), vu = (e, t, a) => {
|
|
5978
5978
|
const r = Ht(H(e, a));
|
|
5979
5979
|
return fe(r, "root", t[a]), fe(e, a, r), e;
|
|
@@ -5986,7 +5986,7 @@ function Gr(e, t, a = "validate") {
|
|
|
5986
5986
|
ref: t
|
|
5987
5987
|
};
|
|
5988
5988
|
}
|
|
5989
|
-
var Ft = (e) =>
|
|
5989
|
+
var Ft = (e) => ke(e) && !wa(e) ? e : {
|
|
5990
5990
|
value: e,
|
|
5991
5991
|
message: ""
|
|
5992
5992
|
}, Kr = async (e, t, a, r, i, s) => {
|
|
@@ -6004,7 +6004,7 @@ var Ft = (e) => Ne(e) && !wa(e) ? e : {
|
|
|
6004
6004
|
...R(D ? U : q, z)
|
|
6005
6005
|
};
|
|
6006
6006
|
};
|
|
6007
|
-
if (s ? !Array.isArray(k) || !k.length : c && (!L && (C ||
|
|
6007
|
+
if (s ? !Array.isArray(k) || !k.length : c && (!L && (C || Ve(k)) || He(k) && !k || $ && !$s(o).isValid || M && !As(o).isValid)) {
|
|
6008
6008
|
const { value: D, message: O } = We(c) ? { value: !!c, message: c } : Ft(c);
|
|
6009
6009
|
if (D && (S[w] = {
|
|
6010
6010
|
type: lt.required,
|
|
@@ -6014,12 +6014,12 @@ var Ft = (e) => Ne(e) && !wa(e) ? e : {
|
|
|
6014
6014
|
}, !r))
|
|
6015
6015
|
return v(O), S;
|
|
6016
6016
|
}
|
|
6017
|
-
if (!C && (!
|
|
6017
|
+
if (!C && (!Ve(m) || !Ve(g))) {
|
|
6018
6018
|
let D, O;
|
|
6019
6019
|
const I = Ft(g), U = Ft(m);
|
|
6020
|
-
if (!
|
|
6020
|
+
if (!Ve(k) && !isNaN(k)) {
|
|
6021
6021
|
const q = l.valueAsNumber || k && +k;
|
|
6022
|
-
|
|
6022
|
+
Ve(I.value) || (D = q > I.value), Ve(U.value) || (O = q < U.value);
|
|
6023
6023
|
} else {
|
|
6024
6024
|
const q = l.valueAsDate || new Date(k), z = (re) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + re), ee = l.type == "time", G = l.type == "week";
|
|
6025
6025
|
We(I.value) && k && (D = ee ? z(k) > z(I.value) : G ? k > I.value : q > new Date(I.value)), We(U.value) && k && (O = ee ? z(k) < z(U.value) : G ? k < U.value : q < new Date(U.value));
|
|
@@ -6028,7 +6028,7 @@ var Ft = (e) => Ne(e) && !wa(e) ? e : {
|
|
|
6028
6028
|
return v(S[w].message), S;
|
|
6029
6029
|
}
|
|
6030
6030
|
if ((d || f) && !C && (We(k) || s && Array.isArray(k))) {
|
|
6031
|
-
const D = Ft(d), O = Ft(f), I = !
|
|
6031
|
+
const D = Ft(d), O = Ft(f), I = !Ve(D.value) && k.length > +D.value, U = !Ve(O.value) && k.length < +O.value;
|
|
6032
6032
|
if ((I || U) && (F(I, D.message, O.message), !r))
|
|
6033
6033
|
return v(S[w].message), S;
|
|
6034
6034
|
}
|
|
@@ -6050,10 +6050,10 @@ var Ft = (e) => Ne(e) && !wa(e) ? e : {
|
|
|
6050
6050
|
...R(lt.validate, O.message)
|
|
6051
6051
|
}, !r))
|
|
6052
6052
|
return v(O.message), S;
|
|
6053
|
-
} else if (
|
|
6053
|
+
} else if (ke(b)) {
|
|
6054
6054
|
let D = {};
|
|
6055
6055
|
for (const O in b) {
|
|
6056
|
-
if (!
|
|
6056
|
+
if (!ze(D) && !r)
|
|
6057
6057
|
break;
|
|
6058
6058
|
const I = Gr(await b[O](k, a), E, O);
|
|
6059
6059
|
I && (D = {
|
|
@@ -6061,7 +6061,7 @@ var Ft = (e) => Ne(e) && !wa(e) ? e : {
|
|
|
6061
6061
|
...R(O, I.message)
|
|
6062
6062
|
}, v(I.message), r && (S[w] = D));
|
|
6063
6063
|
}
|
|
6064
|
-
if (!
|
|
6064
|
+
if (!ze(D) && (S[w] = {
|
|
6065
6065
|
ref: E,
|
|
6066
6066
|
...D
|
|
6067
6067
|
}, !r))
|
|
@@ -6094,7 +6094,7 @@ function Nu(e = {}) {
|
|
|
6094
6094
|
validatingFields: {},
|
|
6095
6095
|
errors: t.errors || {},
|
|
6096
6096
|
disabled: t.disabled || !1
|
|
6097
|
-
}, r = {}, i =
|
|
6097
|
+
}, r = {}, i = ke(t.defaultValues) || ke(t.values) ? ve(t.defaultValues || t.values) || {} : {}, s = t.shouldUnregister ? {} : ve(i), l = {
|
|
6098
6098
|
action: !1,
|
|
6099
6099
|
mount: !1,
|
|
6100
6100
|
watch: !1,
|
|
@@ -6128,7 +6128,7 @@ function Nu(e = {}) {
|
|
|
6128
6128
|
}, x = async (y) => {
|
|
6129
6129
|
if (!l.keepIsValid && !t.disabled && (m.isValid || g.isValid || y)) {
|
|
6130
6130
|
let A;
|
|
6131
|
-
t.resolver ? (A =
|
|
6131
|
+
t.resolver ? (A = ze((await L()).errors), N()) : A = await R(r, !0), A !== a.isValid && h.state.next({
|
|
6132
6132
|
isValid: A
|
|
6133
6133
|
});
|
|
6134
6134
|
}
|
|
@@ -6137,7 +6137,7 @@ function Nu(e = {}) {
|
|
|
6137
6137
|
_ && (A ? fe(a.validatingFields, _, A) : we(a.validatingFields, _));
|
|
6138
6138
|
}), h.state.next({
|
|
6139
6139
|
validatingFields: a.validatingFields,
|
|
6140
|
-
isValidating: !
|
|
6140
|
+
isValidating: !ze(a.validatingFields)
|
|
6141
6141
|
}));
|
|
6142
6142
|
}, k = (y, A = [], _, j, B = !0, P = !0) => {
|
|
6143
6143
|
if (j && _ && !t.disabled) {
|
|
@@ -6179,25 +6179,25 @@ function Nu(e = {}) {
|
|
|
6179
6179
|
}
|
|
6180
6180
|
}, M = (y, A, _, j, B) => {
|
|
6181
6181
|
let P = !1, Q = !1;
|
|
6182
|
-
const
|
|
6182
|
+
const ce = {
|
|
6183
6183
|
name: y
|
|
6184
6184
|
};
|
|
6185
6185
|
if (!t.disabled) {
|
|
6186
6186
|
if (!_ || j) {
|
|
6187
|
-
(m.isDirty || g.isDirty) && (Q = a.isDirty, a.isDirty =
|
|
6188
|
-
const
|
|
6189
|
-
Q = !!H(a.dirtyFields, y),
|
|
6187
|
+
(m.isDirty || g.isDirty) && (Q = a.isDirty, a.isDirty = ce.isDirty = D(), P = Q !== ce.isDirty);
|
|
6188
|
+
const de = Xe(H(i, y), A);
|
|
6189
|
+
Q = !!H(a.dirtyFields, y), de ? we(a.dirtyFields, y) : fe(a.dirtyFields, y, !0), ce.dirtyFields = a.dirtyFields, P = P || (m.dirtyFields || g.dirtyFields) && Q !== !de;
|
|
6190
6190
|
}
|
|
6191
6191
|
if (_) {
|
|
6192
|
-
const
|
|
6193
|
-
|
|
6192
|
+
const de = H(a.touchedFields, y);
|
|
6193
|
+
de || (fe(a.touchedFields, y, _), ce.touchedFields = a.touchedFields, P = P || (m.touchedFields || g.touchedFields) && de !== _);
|
|
6194
6194
|
}
|
|
6195
|
-
P && B && h.state.next(
|
|
6195
|
+
P && B && h.state.next(ce);
|
|
6196
6196
|
}
|
|
6197
|
-
return P ?
|
|
6197
|
+
return P ? ce : {};
|
|
6198
6198
|
}, $ = (y, A, _, j) => {
|
|
6199
6199
|
const B = H(a.errors, y), P = (m.isValid || g.isValid) && He(A) && a.isValid !== A;
|
|
6200
|
-
if (t.delayError && _ ? (c = w(() => E(y, _)), c(t.delayError)) : (clearTimeout(d), c = null, _ ? fe(a.errors, y, _) : we(a.errors, y)), (_ ? !Xe(B, _) : B) || !
|
|
6200
|
+
if (t.delayError && _ ? (c = w(() => E(y, _)), c(t.delayError)) : (clearTimeout(d), c = null, _ ? fe(a.errors, y, _) : we(a.errors, y)), (_ ? !Xe(B, _) : B) || !ze(j) || P) {
|
|
6201
6201
|
const Q = {
|
|
6202
6202
|
...j,
|
|
6203
6203
|
...P && He(A) ? { isValid: A } : {},
|
|
@@ -6227,14 +6227,14 @@ function Nu(e = {}) {
|
|
|
6227
6227
|
if (B) {
|
|
6228
6228
|
const { _f: P, ...Q } = B;
|
|
6229
6229
|
if (P) {
|
|
6230
|
-
const
|
|
6231
|
-
|
|
6232
|
-
const
|
|
6233
|
-
if (
|
|
6230
|
+
const ce = o.array.has(P.name), de = B._f && hu(B._f);
|
|
6231
|
+
de && m.validatingFields && N([P.name], !0);
|
|
6232
|
+
const Pe = await Kr(B, o.disabled, s, b, t.shouldUseNativeValidation && !A, ce);
|
|
6233
|
+
if (de && m.validatingFields && N([P.name]), Pe[P.name] && (_.valid = !1, A || e.shouldUseNativeValidation))
|
|
6234
6234
|
break;
|
|
6235
|
-
!A && (H(
|
|
6235
|
+
!A && (H(Pe, P.name) ? ce ? vu(a.errors, Pe, P.name) : fe(a.errors, P.name, Pe[P.name]) : we(a.errors, P.name));
|
|
6236
6236
|
}
|
|
6237
|
-
!
|
|
6237
|
+
!ze(Q) && await R(Q, A, _);
|
|
6238
6238
|
}
|
|
6239
6239
|
}
|
|
6240
6240
|
return _.valid;
|
|
@@ -6251,8 +6251,8 @@ function Nu(e = {}) {
|
|
|
6251
6251
|
let B = A;
|
|
6252
6252
|
if (j) {
|
|
6253
6253
|
const P = j._f;
|
|
6254
|
-
P && (!P.disabled && fe(s, y, Ss(A, P)), B = va(P.ref) &&
|
|
6255
|
-
(!Q.defaultChecked || !Q.disabled) && (Array.isArray(B) ? Q.checked = !!B.find((
|
|
6254
|
+
P && (!P.disabled && fe(s, y, Ss(A, P)), B = va(P.ref) && Ve(A) ? "" : A, ks(P.ref) ? [...P.ref.options].forEach((Q) => Q.selected = B.includes(Q.value)) : P.refs ? Qt(P.ref) ? P.refs.forEach((Q) => {
|
|
6255
|
+
(!Q.defaultChecked || !Q.disabled) && (Array.isArray(B) ? Q.checked = !!B.find((ce) => ce === Q.value) : Q.checked = B === Q.value || !!B);
|
|
6256
6256
|
}) : P.refs.forEach((Q) => Q.checked = Q.value === B) : Jn(P.ref) ? P.ref.value = "" : (P.ref.value = B, P.ref.type || h.state.next({
|
|
6257
6257
|
name: y,
|
|
6258
6258
|
values: ve(s)
|
|
@@ -6264,7 +6264,7 @@ function Nu(e = {}) {
|
|
|
6264
6264
|
if (!A.hasOwnProperty(j))
|
|
6265
6265
|
return;
|
|
6266
6266
|
const B = A[j], P = y + "." + j, Q = H(r, P);
|
|
6267
|
-
(o.array.has(y) ||
|
|
6267
|
+
(o.array.has(y) || ke(B) || Q && !Q._f) && !kt(B) ? q(P, B, _) : U(P, B, _);
|
|
6268
6268
|
}
|
|
6269
6269
|
}, z = (y, A, _ = {}) => {
|
|
6270
6270
|
const j = H(r, y), B = o.array.has(y), P = ve(A);
|
|
@@ -6275,7 +6275,7 @@ function Nu(e = {}) {
|
|
|
6275
6275
|
name: y,
|
|
6276
6276
|
dirtyFields: _t(i, s),
|
|
6277
6277
|
isDirty: D(y, P)
|
|
6278
|
-
})) : j && !j._f && !
|
|
6278
|
+
})) : j && !j._f && !Ve(P) ? q(y, P, _) : U(y, P, _), qr(y, o) ? h.state.next({
|
|
6279
6279
|
...a,
|
|
6280
6280
|
name: y,
|
|
6281
6281
|
values: ve(s)
|
|
@@ -6287,14 +6287,14 @@ function Nu(e = {}) {
|
|
|
6287
6287
|
l.mount = !0;
|
|
6288
6288
|
const A = y.target;
|
|
6289
6289
|
let _ = A.name, j = !0;
|
|
6290
|
-
const B = H(r, _), P = (
|
|
6291
|
-
j = Number.isNaN(
|
|
6292
|
-
}, Q = Hr(t.mode),
|
|
6290
|
+
const B = H(r, _), P = (de) => {
|
|
6291
|
+
j = Number.isNaN(de) || kt(de) && isNaN(de.getTime()) || Xe(de, H(s, _, de));
|
|
6292
|
+
}, Q = Hr(t.mode), ce = Hr(t.reValidateMode);
|
|
6293
6293
|
if (B) {
|
|
6294
|
-
let
|
|
6295
|
-
const vt = A.type ? jr(B._f) : xs(y), ft = y.type === ya.BLUR || y.type === ya.FOCUS_OUT, ll = !pu(B._f) && !t.resolver && !H(a.errors, _) && !B._f.deps || xu(ft, H(a.touchedFields, _), a.isSubmitted,
|
|
6294
|
+
let de, Pe;
|
|
6295
|
+
const vt = A.type ? jr(B._f) : xs(y), ft = y.type === ya.BLUR || y.type === ya.FOCUS_OUT, ll = !pu(B._f) && !t.resolver && !H(a.errors, _) && !B._f.deps || xu(ft, H(a.touchedFields, _), a.isSubmitted, ce, Q), Va = qr(_, o, ft);
|
|
6296
6296
|
fe(s, _, vt), ft ? (!A || !A.readOnly) && (B._f.onBlur && B._f.onBlur(y), c && c(0)) : B._f.onChange && B._f.onChange(y);
|
|
6297
|
-
const Ua = M(_, vt, ft), ol = !
|
|
6297
|
+
const Ua = M(_, vt, ft), ol = !ze(Ua) || Va;
|
|
6298
6298
|
if (!ft && h.state.next({
|
|
6299
6299
|
name: _,
|
|
6300
6300
|
type: y.type,
|
|
@@ -6305,11 +6305,11 @@ function Nu(e = {}) {
|
|
|
6305
6305
|
const { errors: sr } = await L([_]);
|
|
6306
6306
|
if (N([_]), P(vt), j) {
|
|
6307
6307
|
const cl = Yr(a.errors, r, _), lr = Yr(sr, r, cl.name || _);
|
|
6308
|
-
|
|
6308
|
+
de = lr.error, _ = lr.name, Pe = ze(sr);
|
|
6309
6309
|
}
|
|
6310
6310
|
} else
|
|
6311
|
-
N([_], !0),
|
|
6312
|
-
j && (B._f.deps && (!Array.isArray(B._f.deps) || B._f.deps.length > 0) && re(B._f.deps), $(_,
|
|
6311
|
+
N([_], !0), de = (await Kr(B, o.disabled, s, b, t.shouldUseNativeValidation))[_], N([_]), P(vt), j && (de ? Pe = !1 : (m.isValid || g.isValid) && (Pe = await R(r, !0)));
|
|
6312
|
+
j && (B._f.deps && (!Array.isArray(B._f.deps) || B._f.deps.length > 0) && re(B._f.deps), $(_, Pe, de, Ua));
|
|
6313
6313
|
}
|
|
6314
6314
|
}, G = (y, A) => {
|
|
6315
6315
|
if (H(a.errors, A) && y.focus)
|
|
@@ -6319,7 +6319,7 @@ function Nu(e = {}) {
|
|
|
6319
6319
|
const B = Ht(y);
|
|
6320
6320
|
if (t.resolver) {
|
|
6321
6321
|
const P = await C(ge(y) ? y : B);
|
|
6322
|
-
_ =
|
|
6322
|
+
_ = ze(P), j = y ? !B.some((Q) => H(P, Q)) : _;
|
|
6323
6323
|
} else y ? (j = (await Promise.all(B.map(async (P) => {
|
|
6324
6324
|
const Q = H(r, P);
|
|
6325
6325
|
return await R(Q && Q._f ? { [P]: Q } : Q);
|
|
@@ -6345,9 +6345,9 @@ function Nu(e = {}) {
|
|
|
6345
6345
|
errors: y ? a.errors : {}
|
|
6346
6346
|
});
|
|
6347
6347
|
}, te = (y, A, _) => {
|
|
6348
|
-
const j = (H(r, y, { _f: {} })._f || {}).ref, B = H(a.errors, y) || {}, { ref: P, message: Q, type:
|
|
6348
|
+
const j = (H(r, y, { _f: {} })._f || {}).ref, B = H(a.errors, y) || {}, { ref: P, message: Q, type: ce, ...de } = B;
|
|
6349
6349
|
fe(a.errors, y, {
|
|
6350
|
-
...
|
|
6350
|
+
...de,
|
|
6351
6351
|
...A,
|
|
6352
6352
|
ref: j
|
|
6353
6353
|
}), h.state.next({
|
|
@@ -6355,11 +6355,11 @@ function Nu(e = {}) {
|
|
|
6355
6355
|
errors: a.errors,
|
|
6356
6356
|
isValid: !1
|
|
6357
6357
|
}), _ && _.shouldFocus && j && j.focus && j.focus();
|
|
6358
|
-
},
|
|
6358
|
+
}, oe = (y, A) => Te(y) ? h.state.subscribe({
|
|
6359
6359
|
next: (_) => "values" in _ && y(O(void 0, A), _)
|
|
6360
6360
|
}) : O(y, A, !0), J = (y) => h.state.subscribe({
|
|
6361
6361
|
next: (A) => {
|
|
6362
|
-
bu(y.name, A.name, y.exact) && gu(A, y.formState || m,
|
|
6362
|
+
bu(y.name, A.name, y.exact) && gu(A, y.formState || m, ue, y.reRenderRoot) && y.callback({
|
|
6363
6363
|
values: { ...s },
|
|
6364
6364
|
...a,
|
|
6365
6365
|
...A,
|
|
@@ -6419,15 +6419,15 @@ function Nu(e = {}) {
|
|
|
6419
6419
|
ref: (B) => {
|
|
6420
6420
|
if (B) {
|
|
6421
6421
|
Ie(y, A), _ = H(r, y);
|
|
6422
|
-
const P = ge(B.value) && B.querySelectorAll && B.querySelectorAll("input,select,textarea")[0] || B, Q = cu(P),
|
|
6423
|
-
if (Q ?
|
|
6422
|
+
const P = ge(B.value) && B.querySelectorAll && B.querySelectorAll("input,select,textarea")[0] || B, Q = cu(P), ce = _._f.refs || [];
|
|
6423
|
+
if (Q ? ce.find((de) => de === P) : P === _._f.ref)
|
|
6424
6424
|
return;
|
|
6425
6425
|
fe(r, y, {
|
|
6426
6426
|
_f: {
|
|
6427
6427
|
..._._f,
|
|
6428
6428
|
...Q ? {
|
|
6429
6429
|
refs: [
|
|
6430
|
-
...
|
|
6430
|
+
...ce.filter(Xa),
|
|
6431
6431
|
P,
|
|
6432
6432
|
...Array.isArray(H(i, y)) ? [{}] : []
|
|
6433
6433
|
],
|
|
@@ -6439,7 +6439,7 @@ function Nu(e = {}) {
|
|
|
6439
6439
|
_ = H(r, y, {}), _._f && (_._f.mount = !1), (t.shouldUnregister || A.shouldUnregister) && !(ys(o.array, y) && l.action) && o.unMount.add(y);
|
|
6440
6440
|
}
|
|
6441
6441
|
};
|
|
6442
|
-
},
|
|
6442
|
+
}, Ue = () => t.shouldFocusError && Wt(r, G, o.mount), At = (y) => {
|
|
6443
6443
|
He(y) && (h.state.next({ disabled: y }), Wt(r, (A, _) => {
|
|
6444
6444
|
const j = H(r, _);
|
|
6445
6445
|
j && (A.disabled = j._f.disabled || y, Array.isArray(j._f.refs) && j._f.refs.forEach((B) => {
|
|
@@ -6460,7 +6460,7 @@ function Nu(e = {}) {
|
|
|
6460
6460
|
if (o.disabled.size)
|
|
6461
6461
|
for (const P of o.disabled)
|
|
6462
6462
|
we(B, P);
|
|
6463
|
-
if (we(a.errors, "root"),
|
|
6463
|
+
if (we(a.errors, "root"), ze(a.errors)) {
|
|
6464
6464
|
h.state.next({
|
|
6465
6465
|
errors: {}
|
|
6466
6466
|
});
|
|
@@ -6470,11 +6470,11 @@ function Nu(e = {}) {
|
|
|
6470
6470
|
j = P;
|
|
6471
6471
|
}
|
|
6472
6472
|
} else
|
|
6473
|
-
A && await A({ ...a.errors }, _),
|
|
6473
|
+
A && await A({ ...a.errors }, _), Ue(), setTimeout(Ue);
|
|
6474
6474
|
if (h.state.next({
|
|
6475
6475
|
isSubmitted: !0,
|
|
6476
6476
|
isSubmitting: !1,
|
|
6477
|
-
isSubmitSuccessful:
|
|
6477
|
+
isSubmitSuccessful: ze(a.errors) && !j,
|
|
6478
6478
|
submitCount: a.submitCount + 1,
|
|
6479
6479
|
errors: a.errors
|
|
6480
6480
|
}), j)
|
|
@@ -6482,27 +6482,27 @@ function Nu(e = {}) {
|
|
|
6482
6482
|
}, et = (y, A = {}) => {
|
|
6483
6483
|
H(r, y) && (ge(A.defaultValue) ? z(y, ve(H(i, y))) : (z(y, A.defaultValue), fe(i, y, ve(A.defaultValue))), A.keepTouched || we(a.touchedFields, y), A.keepDirty || (we(a.dirtyFields, y), a.isDirty = A.defaultValue ? D(y, ve(H(i, y))) : D()), A.keepError || (we(a.errors, y), m.isValid && x()), h.state.next({ ...a }));
|
|
6484
6484
|
}, yt = (y, A = {}) => {
|
|
6485
|
-
const _ = y ? ve(y) : i, j = ve(_), B =
|
|
6485
|
+
const _ = y ? ve(y) : i, j = ve(_), B = ze(y), P = B ? i : j;
|
|
6486
6486
|
if (A.keepDefaultValues || (i = _), !A.keepValues) {
|
|
6487
6487
|
if (A.keepDirtyValues) {
|
|
6488
6488
|
const Q = /* @__PURE__ */ new Set([
|
|
6489
6489
|
...o.mount,
|
|
6490
6490
|
...Object.keys(_t(i, s))
|
|
6491
6491
|
]);
|
|
6492
|
-
for (const
|
|
6493
|
-
const
|
|
6494
|
-
|
|
6492
|
+
for (const ce of Array.from(Q)) {
|
|
6493
|
+
const de = H(a.dirtyFields, ce), Pe = H(s, ce), vt = H(P, ce);
|
|
6494
|
+
de && !ge(Pe) ? fe(P, ce, Pe) : !de && !ge(vt) && z(ce, vt);
|
|
6495
6495
|
}
|
|
6496
6496
|
} else {
|
|
6497
6497
|
if (Gn && ge(y))
|
|
6498
6498
|
for (const Q of o.mount) {
|
|
6499
|
-
const
|
|
6500
|
-
if (
|
|
6501
|
-
const
|
|
6502
|
-
if (va(
|
|
6503
|
-
const
|
|
6504
|
-
if (
|
|
6505
|
-
|
|
6499
|
+
const ce = H(r, Q);
|
|
6500
|
+
if (ce && ce._f) {
|
|
6501
|
+
const de = Array.isArray(ce._f.refs) ? ce._f.refs[0] : ce._f.ref;
|
|
6502
|
+
if (va(de)) {
|
|
6503
|
+
const Pe = de.closest("form");
|
|
6504
|
+
if (Pe) {
|
|
6505
|
+
Pe.reset();
|
|
6506
6506
|
break;
|
|
6507
6507
|
}
|
|
6508
6508
|
}
|
|
@@ -6528,7 +6528,7 @@ function Nu(e = {}) {
|
|
|
6528
6528
|
watch: /* @__PURE__ */ new Set(),
|
|
6529
6529
|
watchAll: !1,
|
|
6530
6530
|
focus: ""
|
|
6531
|
-
}, l.mount = !m.isValid || !!A.keepIsValid || !!A.keepDirtyValues || !t.shouldUnregister && !
|
|
6531
|
+
}, l.mount = !m.isValid || !!A.keepIsValid || !!A.keepDirtyValues || !t.shouldUnregister && !ze(P), l.watch = !!t.shouldUnregister, l.keepIsValid = !!A.keepIsValid, l.action = !1, A.keepErrors || (a.errors = {}), h.state.next({
|
|
6532
6532
|
submitCount: A.keepSubmitCount ? a.submitCount : 0,
|
|
6533
6533
|
isDirty: B ? !1 : A.keepDirty ? a.isDirty : !!(A.keepDefaultValues && !Xe(y, i)),
|
|
6534
6534
|
isSubmitted: A.keepIsSubmitted ? a.isSubmitted : !1,
|
|
@@ -6547,7 +6547,7 @@ function Nu(e = {}) {
|
|
|
6547
6547
|
B.focus(), A.shouldSelect && Te(B.select) && B.select();
|
|
6548
6548
|
});
|
|
6549
6549
|
}
|
|
6550
|
-
},
|
|
6550
|
+
}, ue = (y) => {
|
|
6551
6551
|
a = {
|
|
6552
6552
|
...a,
|
|
6553
6553
|
...y
|
|
@@ -6562,7 +6562,7 @@ function Nu(e = {}) {
|
|
|
6562
6562
|
_subscribe: J,
|
|
6563
6563
|
_runSchema: L,
|
|
6564
6564
|
_updateIsValidating: N,
|
|
6565
|
-
_focusError:
|
|
6565
|
+
_focusError: Ue,
|
|
6566
6566
|
_getWatch: O,
|
|
6567
6567
|
_getDirty: D,
|
|
6568
6568
|
_setValid: x,
|
|
@@ -6618,7 +6618,7 @@ function Nu(e = {}) {
|
|
|
6618
6618
|
trigger: re,
|
|
6619
6619
|
register: Ie,
|
|
6620
6620
|
handleSubmit: st,
|
|
6621
|
-
watch:
|
|
6621
|
+
watch: oe,
|
|
6622
6622
|
setValue: z,
|
|
6623
6623
|
getValues: K,
|
|
6624
6624
|
reset: mt,
|
|
@@ -6796,14 +6796,14 @@ const Cu = {
|
|
|
6796
6796
|
t || Ja()
|
|
6797
6797
|
), C = v ? M.field.value ?? Ja() : e ?? $, R = v && !!M.fieldState?.error, F = v && (M.fieldState?.isTouched ?? !1), D = R || F, O = D && (!C.amount || C.amount <= 0), I = D && !C.glAccount, [U, q] = Y(C.glAccount?.name || ""), z = ne(
|
|
6798
6798
|
(te) => {
|
|
6799
|
-
const
|
|
6800
|
-
v && M.field.onChange(
|
|
6799
|
+
const oe = { ...C, ...te };
|
|
6800
|
+
v && M.field.onChange(oe), !v && e === void 0 && L(oe), s?.(oe);
|
|
6801
6801
|
},
|
|
6802
6802
|
[C, e, s, v, M]
|
|
6803
6803
|
), ee = ne(
|
|
6804
6804
|
(te) => {
|
|
6805
|
-
const
|
|
6806
|
-
z({ amount:
|
|
6805
|
+
const oe = te || 0;
|
|
6806
|
+
z({ amount: oe }), l?.(oe);
|
|
6807
6807
|
},
|
|
6808
6808
|
[z, l]
|
|
6809
6809
|
), G = ne(
|
|
@@ -6832,13 +6832,13 @@ const Cu = {
|
|
|
6832
6832
|
d?.();
|
|
6833
6833
|
}, [d]);
|
|
6834
6834
|
return /* @__PURE__ */ n(
|
|
6835
|
-
|
|
6835
|
+
Ce,
|
|
6836
6836
|
{
|
|
6837
6837
|
radius: "md",
|
|
6838
6838
|
shadow: "sm",
|
|
6839
6839
|
"data-testid": w || "revenue-distribution-card",
|
|
6840
6840
|
className: p(b.base),
|
|
6841
|
-
children: /* @__PURE__ */ u(
|
|
6841
|
+
children: /* @__PURE__ */ u(Ae, { className: p("flex flex-row flex-nowrap items-start gap-4", b.body), children: [
|
|
6842
6842
|
/* @__PURE__ */ n("div", { className: p("shrink-0", b.amountContainer), children: /* @__PURE__ */ n(
|
|
6843
6843
|
bi,
|
|
6844
6844
|
{
|
|
@@ -6956,13 +6956,13 @@ const Su = ({
|
|
|
6956
6956
|
/* @__PURE__ */ n("p", { className: p("text-default-500 text-sm text-center", i.message), children: e })
|
|
6957
6957
|
] });
|
|
6958
6958
|
return r ? /* @__PURE__ */ n(
|
|
6959
|
-
|
|
6959
|
+
Ce,
|
|
6960
6960
|
{
|
|
6961
6961
|
radius: "sm",
|
|
6962
6962
|
shadow: "sm",
|
|
6963
6963
|
"data-testid": "revenue-distribution-empty",
|
|
6964
6964
|
className: p("w-full", i.base),
|
|
6965
|
-
children: /* @__PURE__ */ n(
|
|
6965
|
+
children: /* @__PURE__ */ n(Ae, { children: l })
|
|
6966
6966
|
}
|
|
6967
6967
|
) : /* @__PURE__ */ n("div", { "data-testid": "revenue-distribution-empty", className: p("w-full", i.base), children: l });
|
|
6968
6968
|
};
|
|
@@ -6988,13 +6988,13 @@ const Au = {
|
|
|
6988
6988
|
}
|
|
6989
6989
|
);
|
|
6990
6990
|
return a ? /* @__PURE__ */ n(
|
|
6991
|
-
|
|
6991
|
+
Ce,
|
|
6992
6992
|
{
|
|
6993
6993
|
radius: "sm",
|
|
6994
6994
|
shadow: "sm",
|
|
6995
6995
|
"data-testid": "revenue-distribution-error",
|
|
6996
6996
|
className: p("w-full", i.base),
|
|
6997
|
-
children: /* @__PURE__ */ n(
|
|
6997
|
+
children: /* @__PURE__ */ n(Ae, { children: l })
|
|
6998
6998
|
}
|
|
6999
6999
|
) : /* @__PURE__ */ n("div", { "data-testid": "revenue-distribution-error", className: p("w-full", i.base), children: l });
|
|
7000
7000
|
};
|
|
@@ -7025,7 +7025,7 @@ const Eu = ({
|
|
|
7025
7025
|
] }),
|
|
7026
7026
|
/* @__PURE__ */ n("div", { className: "shrink-0 pb-2", children: /* @__PURE__ */ n(se, { className: "h-8 w-20 rounded-lg" }) })
|
|
7027
7027
|
] }, s);
|
|
7028
|
-
return t ? /* @__PURE__ */ n("div", { className: p("flex flex-col gap-3", a.base), children: r.map((s) => /* @__PURE__ */ n(
|
|
7028
|
+
return t ? /* @__PURE__ */ n("div", { className: p("flex flex-col gap-3", a.base), children: r.map((s) => /* @__PURE__ */ n(Ce, { radius: "md", shadow: "sm", "data-testid": `revenue-distribution-skeleton-${s}`, children: /* @__PURE__ */ n(Ae, { children: i(s) }) }, s)) }) : /* @__PURE__ */ n("div", { "data-testid": "revenue-distribution-skeleton", className: p("flex flex-col gap-3", a.base), children: r.map((s) => i(s)) });
|
|
7029
7029
|
};
|
|
7030
7030
|
Eu.displayName = "RevenueDistributionSkeleton";
|
|
7031
7031
|
function Es({
|
|
@@ -7282,7 +7282,7 @@ function z0({
|
|
|
7282
7282
|
}
|
|
7283
7283
|
}, te = () => {
|
|
7284
7284
|
q(!1), x();
|
|
7285
|
-
},
|
|
7285
|
+
}, oe = (J) => {
|
|
7286
7286
|
const he = d ?? e.find((ie) => !ie.fund)?.id ?? e[0]?.id;
|
|
7287
7287
|
he && (g(
|
|
7288
7288
|
e.map(
|
|
@@ -7386,7 +7386,7 @@ function z0({
|
|
|
7386
7386
|
labels: v,
|
|
7387
7387
|
selectedFundIds: e.map((J) => J.fund?.id).filter(Boolean),
|
|
7388
7388
|
portalContainer: E,
|
|
7389
|
-
onSelect:
|
|
7389
|
+
onSelect: oe,
|
|
7390
7390
|
onClose: b
|
|
7391
7391
|
}
|
|
7392
7392
|
),
|
|
@@ -7475,7 +7475,7 @@ function Tu({
|
|
|
7475
7475
|
}
|
|
7476
7476
|
),
|
|
7477
7477
|
/* @__PURE__ */ n("label", { className: "flex min-w-0 flex-1 items-center [@container(min-width:560px)]:w-48 [@container(min-width:560px)]:flex-none", children: /* @__PURE__ */ n(
|
|
7478
|
-
|
|
7478
|
+
$e,
|
|
7479
7479
|
{
|
|
7480
7480
|
variant: "bordered",
|
|
7481
7481
|
type: "number",
|
|
@@ -7581,7 +7581,7 @@ function Iu({
|
|
|
7581
7581
|
/* @__PURE__ */ n(Mn, { className: "px-6 pr-12 pt-6 text-xl font-semibold leading-7 text-zinc-950", children: t.modalTitle }),
|
|
7582
7582
|
/* @__PURE__ */ u(Rn, { className: "flex min-h-0 flex-1 flex-col px-6 pb-6", children: [
|
|
7583
7583
|
/* @__PURE__ */ n(
|
|
7584
|
-
|
|
7584
|
+
$e,
|
|
7585
7585
|
{
|
|
7586
7586
|
variant: "bordered",
|
|
7587
7587
|
"aria-label": t.searchPlaceholder,
|
|
@@ -7866,15 +7866,15 @@ function B0({
|
|
|
7866
7866
|
] }) : void 0, X = (ie) => {
|
|
7867
7867
|
ie !== F && (e || C(ie), E?.(ie), ie === "manual" && i.length === 0 && S([Zr()]));
|
|
7868
7868
|
}, Z = (ie, qe) => {
|
|
7869
|
-
const Ie = i.find((
|
|
7869
|
+
const Ie = i.find((Ue) => Ue.id === ie);
|
|
7870
7870
|
Ct(Ie?.status) || S(
|
|
7871
7871
|
i.map(
|
|
7872
|
-
(
|
|
7872
|
+
(Ue) => Ue.id === ie ? { ...Ue, ...qe } : Ue
|
|
7873
7873
|
)
|
|
7874
7874
|
);
|
|
7875
7875
|
}, te = () => {
|
|
7876
7876
|
S([...i, Zr()]);
|
|
7877
|
-
},
|
|
7877
|
+
}, oe = (ie) => {
|
|
7878
7878
|
const qe = i.find((Ie) => Ie.id === ie);
|
|
7879
7879
|
Ct(qe?.status) || S(i.filter((Ie) => Ie.id !== ie));
|
|
7880
7880
|
}, J = () => {
|
|
@@ -7955,7 +7955,7 @@ function B0({
|
|
|
7955
7955
|
formatter: D,
|
|
7956
7956
|
locale: r,
|
|
7957
7957
|
onUpdateInstallment: Z,
|
|
7958
|
-
onRemoveInstallment:
|
|
7958
|
+
onRemoveInstallment: oe
|
|
7959
7959
|
}
|
|
7960
7960
|
),
|
|
7961
7961
|
F === "manual" && /* @__PURE__ */ n("div", { className: "flex flex-wrap gap-3", children: /* @__PURE__ */ n(
|
|
@@ -8027,7 +8027,7 @@ function lm({ settings: e, inputs: t, labels: a, className: r, onSettingsChange:
|
|
|
8027
8027
|
const s = (l) => {
|
|
8028
8028
|
if (l === "numberOfInstallments")
|
|
8029
8029
|
return /* @__PURE__ */ n("div", { className: "min-w-0", children: /* @__PURE__ */ n(
|
|
8030
|
-
|
|
8030
|
+
$e,
|
|
8031
8031
|
{
|
|
8032
8032
|
variant: "bordered",
|
|
8033
8033
|
label: a.numberOfInstallments,
|
|
@@ -8202,7 +8202,7 @@ function dm({
|
|
|
8202
8202
|
}) {
|
|
8203
8203
|
const [l, o] = Y(null);
|
|
8204
8204
|
return /* @__PURE__ */ n(
|
|
8205
|
-
|
|
8205
|
+
$e,
|
|
8206
8206
|
{
|
|
8207
8207
|
variant: "bordered",
|
|
8208
8208
|
"aria-label": t,
|
|
@@ -8457,7 +8457,7 @@ function U0({
|
|
|
8457
8457
|
/* @__PURE__ */ u("div", { className: "min-w-0 w-full max-w-[280px]", children: [
|
|
8458
8458
|
/* @__PURE__ */ n("label", { className: "mb-1 block text-sm font-normal text-zinc-950", children: x.searchLabel }),
|
|
8459
8459
|
/* @__PURE__ */ n(
|
|
8460
|
-
|
|
8460
|
+
$e,
|
|
8461
8461
|
{
|
|
8462
8462
|
variant: "bordered",
|
|
8463
8463
|
size: "md",
|
|
@@ -8493,7 +8493,7 @@ function U0({
|
|
|
8493
8493
|
children: /* @__PURE__ */ u("div", { className: "flex flex-col gap-2", children: [
|
|
8494
8494
|
$.map((C, R) => {
|
|
8495
8495
|
const F = C.status ?? "scheduled", D = tn(C), O = an(C, x.paidOn, a), I = nn(C, x.refundedAmount, E);
|
|
8496
|
-
return /* @__PURE__ */ n(
|
|
8496
|
+
return /* @__PURE__ */ n(Ce, { radius: "lg", shadow: "none", className: "border border-default-200", children: /* @__PURE__ */ u(Ae, { className: "gap-3 p-3", children: [
|
|
8497
8497
|
/* @__PURE__ */ u("div", { className: "flex items-start justify-between gap-2", children: [
|
|
8498
8498
|
/* @__PURE__ */ u("div", { className: "min-w-0", children: [
|
|
8499
8499
|
/* @__PURE__ */ u("p", { className: "text-xs text-default-500", children: [
|
|
@@ -8812,7 +8812,7 @@ const ym = {
|
|
|
8812
8812
|
className: m = ""
|
|
8813
8813
|
}) => {
|
|
8814
8814
|
const g = Array.isArray(e) ? e : [], [h, b] = Y(o), [w, x] = Y(l), N = { ...ym, ...i };
|
|
8815
|
-
|
|
8815
|
+
Fe(() => {
|
|
8816
8816
|
b(o);
|
|
8817
8817
|
}, [o]);
|
|
8818
8818
|
const k = (v) => {
|
|
@@ -8892,7 +8892,7 @@ const ym = {
|
|
|
8892
8892
|
maximumFractionDigits: 2
|
|
8893
8893
|
}).format(r), x = !!c && !f, N = m || g;
|
|
8894
8894
|
return /* @__PURE__ */ n(
|
|
8895
|
-
|
|
8895
|
+
Ce,
|
|
8896
8896
|
{
|
|
8897
8897
|
shadow: "none",
|
|
8898
8898
|
isPressable: !!c,
|
|
@@ -8989,7 +8989,7 @@ const ym = {
|
|
|
8989
8989
|
}
|
|
8990
8990
|
));
|
|
8991
8991
|
return /* @__PURE__ */ u(
|
|
8992
|
-
|
|
8992
|
+
Ce,
|
|
8993
8993
|
{
|
|
8994
8994
|
"data-testid": k || `catalog-item-card-${e ?? "item"}`,
|
|
8995
8995
|
className: p("w-full overflow-hidden", w),
|
|
@@ -9000,7 +9000,7 @@ const ym = {
|
|
|
9000
9000
|
radius: "lg",
|
|
9001
9001
|
children: [
|
|
9002
9002
|
/* @__PURE__ */ n("div", { children: L }),
|
|
9003
|
-
/* @__PURE__ */ u(
|
|
9003
|
+
/* @__PURE__ */ u(Ae, { className: p("gap-3", b ? "p-3" : "p-4", x), children: [
|
|
9004
9004
|
/* @__PURE__ */ n(
|
|
9005
9005
|
"h3",
|
|
9006
9006
|
{
|
|
@@ -9066,7 +9066,7 @@ const Nm = {
|
|
|
9066
9066
|
"sold-out": "Sold out"
|
|
9067
9067
|
};
|
|
9068
9068
|
function km({ title: e, subtitle: t, price: a, imageUrl: r, status: i, isDisabled: s = !1, onPress: l, className: o }) {
|
|
9069
|
-
return /* @__PURE__ */ n(
|
|
9069
|
+
return /* @__PURE__ */ n(Ce, { isPressable: !!l, isDisabled: s, onPress: l, shadow: "none", radius: "lg", className: p("w-full border border-pos-hair", o), children: /* @__PURE__ */ u(Ae, { className: "flex-row items-center gap-5 p-4", children: [
|
|
9070
9070
|
/* @__PURE__ */ n("div", { className: "grid size-[4.875rem] shrink-0 place-items-center overflow-hidden rounded-xl bg-default-100 text-default-500", children: r ? /* @__PURE__ */ n(fa, { removeWrapper: !0, src: r, alt: "", className: "size-full object-cover" }) : /* @__PURE__ */ n(T, { icon: "solar:ticket-outline", width: 28 }) }),
|
|
9071
9071
|
/* @__PURE__ */ u("div", { className: "min-w-0 flex-1", children: [
|
|
9072
9072
|
/* @__PURE__ */ n("h3", { className: "truncate text-lg font-semibold text-foreground", children: e }),
|
|
@@ -9641,7 +9641,7 @@ const zm = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9641
9641
|
}) => {
|
|
9642
9642
|
const o = me(() => i ?? [], [i]), c = { ...Tm, ...a }, [d, f] = Y(
|
|
9643
9643
|
() => ri(o, t, !0)
|
|
9644
|
-
), m =
|
|
9644
|
+
), m = Oe(!1), g = me(() => {
|
|
9645
9645
|
const k = tr(o).map(
|
|
9646
9646
|
({ exhibition: E, dateGroup: v, ticket: S }) => [ii(E.id, v.id, S.id), S]
|
|
9647
9647
|
);
|
|
@@ -9671,7 +9671,7 @@ const zm = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9671
9671
|
const E = ri(o, t, k);
|
|
9672
9672
|
f(E), l?.(E);
|
|
9673
9673
|
};
|
|
9674
|
-
return
|
|
9674
|
+
return Fe(() => {
|
|
9675
9675
|
!m.current && h && (l?.(d), m.current = !0);
|
|
9676
9676
|
}, [h, d, l]), /* @__PURE__ */ u("div", { className: p("flex flex-col w-full font-sans", s), "data-testid": "ticket-selection", children: [
|
|
9677
9677
|
/* @__PURE__ */ u("div", { className: "flex items-center justify-between py-2 gap-4", "data-testid": "ticket-selection-header", children: [
|
|
@@ -9900,7 +9900,7 @@ const Qm = "No sessions available for this date", Zm = (e) => e === "sold-out" |
|
|
|
9900
9900
|
M.map((C) => {
|
|
9901
9901
|
const R = si(C), F = C.id === l;
|
|
9902
9902
|
return /* @__PURE__ */ n("li", { className: "rounded-xl", children: /* @__PURE__ */ n(
|
|
9903
|
-
|
|
9903
|
+
Ce,
|
|
9904
9904
|
{
|
|
9905
9905
|
shadow: "sm",
|
|
9906
9906
|
radius: "lg",
|
|
@@ -9916,7 +9916,7 @@ const Qm = "No sessions available for this date", Zm = (e) => e === "sold-out" |
|
|
|
9916
9916
|
F ? "w-full ring-2 ring-gray-900" : ""
|
|
9917
9917
|
),
|
|
9918
9918
|
"aria-label": m ? m(C, { isSelected: F, isUnavailable: R }) : R ? `${C.startTime} ${C.endTime} sold out` : `${C.startTime} ${C.endTime} available`,
|
|
9919
|
-
children: /* @__PURE__ */ u(
|
|
9919
|
+
children: /* @__PURE__ */ u(Ae, { className: "flex flex-col items-center gap-3 p-4 text-center", children: [
|
|
9920
9920
|
/* @__PURE__ */ u("span", { className: "text-sm font-semibold text-gray-900", children: [
|
|
9921
9921
|
C.startTime,
|
|
9922
9922
|
" – ",
|
|
@@ -9949,7 +9949,7 @@ function tf() {
|
|
|
9949
9949
|
}
|
|
9950
9950
|
const Xt = (e, t) => e >= t * tf(), af = 1120;
|
|
9951
9951
|
function Ot() {
|
|
9952
|
-
const e =
|
|
9952
|
+
const e = Oe(null), [t, a] = Y(0), [, r] = Y("");
|
|
9953
9953
|
return Ml(() => {
|
|
9954
9954
|
const i = e.current;
|
|
9955
9955
|
if (!i || typeof ResizeObserver > "u") return;
|
|
@@ -9958,7 +9958,7 @@ function Ot() {
|
|
|
9958
9958
|
o && a(o.borderBoxSize?.[0]?.inlineSize ?? o.contentRect.width);
|
|
9959
9959
|
});
|
|
9960
9960
|
return a(i.getBoundingClientRect().width), s.observe(i), () => s.disconnect();
|
|
9961
|
-
}, []),
|
|
9961
|
+
}, []), Fe(() => {
|
|
9962
9962
|
if (typeof MutationObserver > "u") return;
|
|
9963
9963
|
const i = document.documentElement, s = new MutationObserver(() => r(getComputedStyle(i).fontSize));
|
|
9964
9964
|
return s.observe(i, { attributes: !0, attributeFilter: ["style", "class"] }), () => s.disconnect();
|
|
@@ -10074,16 +10074,16 @@ const nf = 48, Ge = {
|
|
|
10074
10074
|
}, lf = (e) => e.variant === "list" ? /* @__PURE__ */ n(sf, { ...e }) : /* @__PURE__ */ n(Ts, { ...e, list: !1, narrow: !1 });
|
|
10075
10075
|
lf.displayName = "PageHeader";
|
|
10076
10076
|
const Je = {
|
|
10077
|
-
ok: { fg:
|
|
10078
|
-
warn: { fg:
|
|
10079
|
-
danger: { fg:
|
|
10080
|
-
info: { fg:
|
|
10081
|
-
violet: { fg:
|
|
10082
|
-
neutral: { fg:
|
|
10077
|
+
ok: { fg: Me.ok, bg: Me["ok-fill"] },
|
|
10078
|
+
warn: { fg: Me.warn, bg: Me["warn-fill"] },
|
|
10079
|
+
danger: { fg: Me.danger, bg: Me["danger-fill"] },
|
|
10080
|
+
info: { fg: Me.info, bg: Me["info-fill"] },
|
|
10081
|
+
violet: { fg: Me.violet, bg: Me["violet-fill"] },
|
|
10082
|
+
neutral: { fg: Me.neutral, bg: Me["neutral-fill"] }
|
|
10083
10083
|
};
|
|
10084
10084
|
function Jt(e) {
|
|
10085
|
-
if (e === "positive") return { color:
|
|
10086
|
-
if (e === "negative") return { color:
|
|
10085
|
+
if (e === "positive") return { color: Me.ok };
|
|
10086
|
+
if (e === "negative") return { color: Me.danger };
|
|
10087
10087
|
}
|
|
10088
10088
|
const of = {
|
|
10089
10089
|
active: "success",
|
|
@@ -10252,7 +10252,7 @@ function gf() {
|
|
|
10252
10252
|
}
|
|
10253
10253
|
function bf() {
|
|
10254
10254
|
const [e, t] = Y(!1);
|
|
10255
|
-
return
|
|
10255
|
+
return Fe(() => {
|
|
10256
10256
|
const a = () => t(gf()), r = typeof window.matchMedia == "function" ? window.matchMedia(Is) : null;
|
|
10257
10257
|
r?.addEventListener?.("change", a);
|
|
10258
10258
|
const i = typeof MutationObserver > "u" ? null : new MutationObserver(a);
|
|
@@ -10434,51 +10434,54 @@ const $f = {
|
|
|
10434
10434
|
searchLabel: a,
|
|
10435
10435
|
searchPlaceholder: r,
|
|
10436
10436
|
searchIcon: i,
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10437
|
+
searchClearable: s = !1,
|
|
10438
|
+
children: l,
|
|
10439
|
+
trailing: o,
|
|
10440
|
+
searchWidth: c = "md",
|
|
10441
|
+
className: d,
|
|
10442
|
+
"data-testid": f = "admin-toolbar"
|
|
10442
10443
|
}) => {
|
|
10443
|
-
const { ref:
|
|
10444
|
+
const { ref: m, width: g } = Ot(), h = g > 0 && !Xt(g, Sf);
|
|
10444
10445
|
return /* @__PURE__ */ u(
|
|
10445
10446
|
"div",
|
|
10446
10447
|
{
|
|
10447
|
-
ref:
|
|
10448
|
+
ref: m,
|
|
10448
10449
|
role: "search",
|
|
10449
|
-
"data-testid":
|
|
10450
|
+
"data-testid": f,
|
|
10450
10451
|
"data-variant": "framed",
|
|
10451
|
-
"data-size":
|
|
10452
|
-
className: p(Ke.base,
|
|
10452
|
+
"data-size": h ? "narrow" : "wide",
|
|
10453
|
+
className: p(Ke.base, h && Ke.narrow, d),
|
|
10453
10454
|
children: [
|
|
10454
|
-
|
|
10455
|
+
l,
|
|
10455
10456
|
/* @__PURE__ */ n(
|
|
10456
10457
|
"div",
|
|
10457
10458
|
{
|
|
10458
|
-
"data-testid": `${
|
|
10459
|
-
className:
|
|
10459
|
+
"data-testid": `${f}-search-slot`,
|
|
10460
|
+
className: h ? Ke.searchNarrow : Ke.searchWide,
|
|
10460
10461
|
children: /* @__PURE__ */ n(
|
|
10461
|
-
|
|
10462
|
+
$e,
|
|
10462
10463
|
{
|
|
10463
10464
|
type: "search",
|
|
10464
10465
|
"aria-label": a,
|
|
10465
10466
|
placeholder: r ?? a,
|
|
10466
10467
|
value: e,
|
|
10467
10468
|
onValueChange: t,
|
|
10469
|
+
isClearable: s,
|
|
10470
|
+
onClear: s ? () => t("") : void 0,
|
|
10468
10471
|
startContent: /* @__PURE__ */ n(
|
|
10469
10472
|
"span",
|
|
10470
10473
|
{
|
|
10471
10474
|
"aria-hidden": "true",
|
|
10472
|
-
"data-testid": `${
|
|
10475
|
+
"data-testid": `${f}-search-icon`,
|
|
10473
10476
|
className: Ke.icon,
|
|
10474
10477
|
children: i ?? /* @__PURE__ */ n(T, { icon: "lucide:search" })
|
|
10475
10478
|
}
|
|
10476
10479
|
),
|
|
10477
|
-
"data-testid": `${
|
|
10480
|
+
"data-testid": `${f}-search`,
|
|
10478
10481
|
variant: "bordered",
|
|
10479
10482
|
radius: "none",
|
|
10480
10483
|
classNames: {
|
|
10481
|
-
base:
|
|
10484
|
+
base: h ? Ke.inputBaseNarrow : c === "lg" ? Ke.inputBaseLg : Ke.inputBaseMd,
|
|
10482
10485
|
inputWrapper: Ke.inputWrapper,
|
|
10483
10486
|
innerWrapper: Ke.innerWrapper,
|
|
10484
10487
|
input: Ke.input
|
|
@@ -10487,7 +10490,7 @@ const $f = {
|
|
|
10487
10490
|
)
|
|
10488
10491
|
}
|
|
10489
10492
|
),
|
|
10490
|
-
|
|
10493
|
+
o
|
|
10491
10494
|
]
|
|
10492
10495
|
}
|
|
10493
10496
|
);
|
|
@@ -10497,13 +10500,14 @@ const $f = {
|
|
|
10497
10500
|
searchLabel: a,
|
|
10498
10501
|
searchPlaceholder: r,
|
|
10499
10502
|
searchIcon: i,
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10503
|
+
searchClearable: s = !1,
|
|
10504
|
+
children: l,
|
|
10505
|
+
trailing: o,
|
|
10506
|
+
searchWidth: c = "md",
|
|
10507
|
+
variant: d = "default",
|
|
10508
|
+
className: f,
|
|
10509
|
+
"data-testid": m = "admin-toolbar"
|
|
10510
|
+
}) => d === "framed" ? /* @__PURE__ */ n(
|
|
10507
10511
|
Af,
|
|
10508
10512
|
{
|
|
10509
10513
|
searchValue: e,
|
|
@@ -10511,27 +10515,30 @@ const $f = {
|
|
|
10511
10515
|
searchLabel: a,
|
|
10512
10516
|
searchPlaceholder: r,
|
|
10513
10517
|
searchIcon: i,
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10518
|
+
searchClearable: s,
|
|
10519
|
+
trailing: o,
|
|
10520
|
+
searchWidth: c,
|
|
10521
|
+
className: f,
|
|
10522
|
+
"data-testid": m,
|
|
10523
|
+
children: l
|
|
10524
|
+
}
|
|
10525
|
+
) : /* @__PURE__ */ u("div", { role: "search", "data-testid": m, className: p("flex flex-wrap items-center gap-3 mb-4", f), children: [
|
|
10521
10526
|
/* @__PURE__ */ n(
|
|
10522
|
-
|
|
10527
|
+
$e,
|
|
10523
10528
|
{
|
|
10524
10529
|
type: "search",
|
|
10525
10530
|
"aria-label": a,
|
|
10526
10531
|
placeholder: r ?? a,
|
|
10527
10532
|
value: e,
|
|
10528
10533
|
onValueChange: t,
|
|
10534
|
+
isClearable: s,
|
|
10535
|
+
onClear: s ? () => t("") : void 0,
|
|
10529
10536
|
startContent: i ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "flex text-acct-muted", children: i }) : void 0,
|
|
10530
|
-
"data-testid": `${
|
|
10537
|
+
"data-testid": `${m}-search`,
|
|
10531
10538
|
variant: "bordered",
|
|
10532
10539
|
radius: "none",
|
|
10533
10540
|
classNames: {
|
|
10534
|
-
base: $f[
|
|
10541
|
+
base: $f[c],
|
|
10535
10542
|
inputWrapper: [
|
|
10536
10543
|
"h-10 min-h-10 !h-10 rounded-[11px] border border-acct-border bg-acct-surface px-3",
|
|
10537
10544
|
"data-[hover=true]:border-acct-rust-border",
|
|
@@ -10541,8 +10548,8 @@ const $f = {
|
|
|
10541
10548
|
}
|
|
10542
10549
|
}
|
|
10543
10550
|
),
|
|
10544
|
-
|
|
10545
|
-
|
|
10551
|
+
l,
|
|
10552
|
+
o ? /* @__PURE__ */ n("div", { className: "ml-auto", children: o }) : null
|
|
10546
10553
|
] });
|
|
10547
10554
|
Df.displayName = "AdminToolbar";
|
|
10548
10555
|
const Ef = "ml-0.5 inline-flex min-w-[18px] items-center justify-center rounded-full bg-primary px-1.5 text-xs font-semibold text-primary-foreground", Ff = "ml-0.5 inline-flex min-w-[1.125rem] items-center justify-center rounded-full bg-primary px-1.5 text-xs font-semibold text-primary-foreground", Lf = "h-9 gap-1.5 rounded-full border border-gray-200 bg-white px-3.5 text-sm font-medium text-gray-700 hover:bg-gray-50 data-[pressed=true]:bg-gray-50", _f = W.forwardRef(
|
|
@@ -10648,7 +10655,7 @@ const Bf = ({
|
|
|
10648
10655
|
className: m,
|
|
10649
10656
|
"data-testid": g = "admin-text-field"
|
|
10650
10657
|
}) => /* @__PURE__ */ n(
|
|
10651
|
-
|
|
10658
|
+
$e,
|
|
10652
10659
|
{
|
|
10653
10660
|
labelPlacement: e ? "outside" : void 0,
|
|
10654
10661
|
label: e && t ? /* @__PURE__ */ u(be, { children: [
|
|
@@ -11004,8 +11011,8 @@ const js = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11004
11011
|
k,
|
|
11005
11012
|
g
|
|
11006
11013
|
]
|
|
11007
|
-
), $ = v.isValid && v.change > 0, L = !v.isValid && v.received > 0, C =
|
|
11008
|
-
|
|
11014
|
+
), $ = v.isValid && v.change > 0, L = !v.isValid && v.received > 0, C = Se(v.change, i, e.currency), R = Se(e.value, i, e.currency), [F, D] = Y(""), O = Oe(null);
|
|
11015
|
+
Fe(() => {
|
|
11009
11016
|
O.current && clearTimeout(O.current);
|
|
11010
11017
|
const U = $ ? on(m.changeMessageTemplate, { change: C }) : "", q = $ ? Kf : 0;
|
|
11011
11018
|
return O.current = setTimeout(() => D(U), q), () => {
|
|
@@ -11015,7 +11022,7 @@ const js = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11015
11022
|
const I = `${f}-received`;
|
|
11016
11023
|
return /* @__PURE__ */ u("div", { className: p("flex flex-col gap-3", d), "data-testid": f, children: [
|
|
11017
11024
|
/* @__PURE__ */ n(
|
|
11018
|
-
|
|
11025
|
+
$e,
|
|
11019
11026
|
{
|
|
11020
11027
|
id: I,
|
|
11021
11028
|
label: m.receivedLabel,
|
|
@@ -11140,7 +11147,7 @@ const js = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11140
11147
|
}, [o]), $ = N && E.checkNumber.trim() === "", L = `${g}-check-number`, C = `${g}-bank-name`, R = `${g}-date`;
|
|
11141
11148
|
return /* @__PURE__ */ u("div", { className: p("grid grid-cols-1 sm:grid-cols-2 gap-4", m), "data-testid": g, children: [
|
|
11142
11149
|
/* @__PURE__ */ n(
|
|
11143
|
-
|
|
11150
|
+
$e,
|
|
11144
11151
|
{
|
|
11145
11152
|
id: L,
|
|
11146
11153
|
label: h.checkNumberLabel,
|
|
@@ -11162,7 +11169,7 @@ const js = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11162
11169
|
}
|
|
11163
11170
|
),
|
|
11164
11171
|
!l && /* @__PURE__ */ n(
|
|
11165
|
-
|
|
11172
|
+
$e,
|
|
11166
11173
|
{
|
|
11167
11174
|
id: C,
|
|
11168
11175
|
label: h.bankNameLabel,
|
|
@@ -11179,7 +11186,7 @@ const js = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11179
11186
|
}
|
|
11180
11187
|
),
|
|
11181
11188
|
!s && /* @__PURE__ */ n(
|
|
11182
|
-
|
|
11189
|
+
$e,
|
|
11183
11190
|
{
|
|
11184
11191
|
id: R,
|
|
11185
11192
|
label: h.dateLabel,
|
|
@@ -11312,7 +11319,7 @@ const Jf = {
|
|
|
11312
11319
|
}
|
|
11313
11320
|
),
|
|
11314
11321
|
l && /* @__PURE__ */ n(
|
|
11315
|
-
|
|
11322
|
+
$e,
|
|
11316
11323
|
{
|
|
11317
11324
|
id: v,
|
|
11318
11325
|
label: f.referenceLabel,
|
|
@@ -11380,7 +11387,7 @@ const ah = {
|
|
|
11380
11387
|
{
|
|
11381
11388
|
className: "text-base font-semibold tracking-tight",
|
|
11382
11389
|
"data-testid": `${c}-remaining-amount`,
|
|
11383
|
-
children:
|
|
11390
|
+
children: Se(g ? f : m, r, e.currency)
|
|
11384
11391
|
}
|
|
11385
11392
|
)
|
|
11386
11393
|
]
|
|
@@ -11397,7 +11404,7 @@ const ah = {
|
|
|
11397
11404
|
{
|
|
11398
11405
|
className: "mt-1 text-4xl font-bold tracking-tight",
|
|
11399
11406
|
"data-testid": `${c}-remaining-amount`,
|
|
11400
|
-
children:
|
|
11407
|
+
children: Se(g ? f : m, r, e.currency)
|
|
11401
11408
|
}
|
|
11402
11409
|
)
|
|
11403
11410
|
]
|
|
@@ -11470,7 +11477,7 @@ const oh = ({
|
|
|
11470
11477
|
}
|
|
11471
11478
|
),
|
|
11472
11479
|
/* @__PURE__ */ n("span", { className: "flex-1 truncate", "data-testid": `${d}-label`, children: t.label }),
|
|
11473
|
-
/* @__PURE__ */ n("span", { className: "font-semibold tabular-nums", "data-testid": `${d}-amount`, children:
|
|
11480
|
+
/* @__PURE__ */ n("span", { className: "font-semibold tabular-nums", "data-testid": `${d}-amount`, children: Se(t.amount, a, r) }),
|
|
11474
11481
|
/* @__PURE__ */ n(
|
|
11475
11482
|
it,
|
|
11476
11483
|
{
|
|
@@ -11952,7 +11959,7 @@ const yh = {
|
|
|
11952
11959
|
{
|
|
11953
11960
|
className: p("mt-1 text-4xl font-bold tracking-tight", l.amount),
|
|
11954
11961
|
"data-testid": `${s}-amount`,
|
|
11955
|
-
children:
|
|
11962
|
+
children: Se(e.value, a, e.currency)
|
|
11956
11963
|
}
|
|
11957
11964
|
)
|
|
11958
11965
|
]
|
|
@@ -12064,7 +12071,7 @@ const Ws = ({
|
|
|
12064
12071
|
{
|
|
12065
12072
|
className: "text-2xl font-bold text-info-700",
|
|
12066
12073
|
"data-testid": `${c}-amount`,
|
|
12067
|
-
children:
|
|
12074
|
+
children: Se(e.value, r, e.currency)
|
|
12068
12075
|
}
|
|
12069
12076
|
),
|
|
12070
12077
|
a && /* @__PURE__ */ n("span", { className: "mt-0.5 text-xs text-info-700/80", children: a })
|
|
@@ -12207,7 +12214,7 @@ const qs = ({
|
|
|
12207
12214
|
return /* @__PURE__ */ u("div", { className: p("flex flex-col gap-3 border-t border-default-100 pt-5", h), "data-testid": b, children: [
|
|
12208
12215
|
/* @__PURE__ */ n("h3", { className: p("text-lg font-semibold", g && "sr-only"), "data-testid": `${b}-heading`, children: e }),
|
|
12209
12216
|
/* @__PURE__ */ n(
|
|
12210
|
-
|
|
12217
|
+
$e,
|
|
12211
12218
|
{
|
|
12212
12219
|
id: w,
|
|
12213
12220
|
label: t,
|
|
@@ -12342,8 +12349,8 @@ const Ah = 60, Dh = (e, t, a = Ah) => t ? e > a : e < -a, Ys = (e, t) => Math.ma
|
|
|
12342
12349
|
onDragEnd: (t, a) => {
|
|
12343
12350
|
Dh(a?.offset?.y ?? 0, e.open) && e.onToggleOpen?.(), e.setDragHeight(null);
|
|
12344
12351
|
}
|
|
12345
|
-
}), $t = (e, t) =>
|
|
12346
|
-
function
|
|
12352
|
+
}), $t = (e, t) => Se(e.value, t, e.currency);
|
|
12353
|
+
function le(e) {
|
|
12347
12354
|
return e != null && e !== !1 && e !== "";
|
|
12348
12355
|
}
|
|
12349
12356
|
const ar = ({
|
|
@@ -12420,7 +12427,7 @@ const ar = ({
|
|
|
12420
12427
|
]
|
|
12421
12428
|
}
|
|
12422
12429
|
),
|
|
12423
|
-
|
|
12430
|
+
le(e.trailing) && /* @__PURE__ */ n("div", { "data-testid": `summary-item-trailing-${e.id}`, className: "flex justify-end", children: e.trailing }),
|
|
12424
12431
|
e.dateLabel && /* @__PURE__ */ u(
|
|
12425
12432
|
"div",
|
|
12426
12433
|
{
|
|
@@ -12899,7 +12906,7 @@ const el = ({
|
|
|
12899
12906
|
el.displayName = "SummaryActionBar";
|
|
12900
12907
|
const Oh = "(max-width: 767px)", Ph = (e) => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(e).matches : !1, zh = (e = Oh) => {
|
|
12901
12908
|
const [t, a] = Y(() => Ph(e));
|
|
12902
|
-
return
|
|
12909
|
+
return Fe(() => {
|
|
12903
12910
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
12904
12911
|
const r = window.matchMedia(e), i = () => a(r.matches);
|
|
12905
12912
|
return i(), r.addEventListener("change", i), () => r.removeEventListener("change", i);
|
|
@@ -12936,9 +12943,9 @@ const Oh = "(max-width: 767px)", Ph = (e) => typeof window < "u" && typeof windo
|
|
|
12936
12943
|
"data-testid": D = "summary",
|
|
12937
12944
|
className: O
|
|
12938
12945
|
}) => {
|
|
12939
|
-
const I = C?.removeAriaLabel ?? "Remove item", U = C?.removeTotalRowAriaLabel ?? "Remove discount", q = C?.removePostTotalRowAriaLabel ?? "Remove applied code", z = C?.toggleAriaLabel ?? "Toggle summary", ee = C?.cartAriaLabel ?? "View cart", G = F === "compact", re = zh(), X = g ?? (M ?? (re ? "mobile" : "main")) === "mobile", [Z, te] = Y(w),
|
|
12940
|
-
|
|
12941
|
-
}, [
|
|
12946
|
+
const I = C?.removeAriaLabel ?? "Remove item", U = C?.removeTotalRowAriaLabel ?? "Remove discount", q = C?.removePostTotalRowAriaLabel ?? "Remove applied code", z = C?.toggleAriaLabel ?? "Toggle summary", ee = C?.cartAriaLabel ?? "View cart", G = F === "compact", re = zh(), X = g ?? (M ?? (re ? "mobile" : "main")) === "mobile", [Z, te] = Y(w), oe = h !== void 0, J = !X || (oe ? h : Z), he = ne(() => {
|
|
12947
|
+
oe || te((P) => !P), b?.();
|
|
12948
|
+
}, [oe, b]), [ie, qe] = Y(0), [Ie, Ue] = Y(null), At = Oe(null), st = Oe(null), et = ne(() => {
|
|
12942
12949
|
const P = At.current;
|
|
12943
12950
|
P && qe(Fh(P.scrollHeight, window.innerHeight));
|
|
12944
12951
|
}, []), yt = ne(
|
|
@@ -12947,8 +12954,8 @@ const Oh = "(max-width: 767px)", Ph = (e) => typeof window < "u" && typeof windo
|
|
|
12947
12954
|
},
|
|
12948
12955
|
[et]
|
|
12949
12956
|
);
|
|
12950
|
-
|
|
12951
|
-
const mt = Rh({ open: J, fullHeight: ie, setDragHeight:
|
|
12957
|
+
Fe(() => (window.addEventListener("resize", et), () => window.removeEventListener("resize", et)), [et]);
|
|
12958
|
+
const mt = Rh({ open: J, fullHeight: ie, setDragHeight: Ue, onToggleOpen: he }), Ye = Ie !== null, ue = _h(Ie, J, ie), De = ie > 0 ? Math.min(1, Math.max(0, ue / ie)) : J ? 1 : 0, tt = /* @__PURE__ */ n(Qs, { total: o, locale: r, compact: G, className: R.total }), y = c && c.length > 0 && /* @__PURE__ */ n("div", { "data-testid": "summary-post-total-rows", className: "flex flex-col gap-4", children: c.map((P) => /* @__PURE__ */ n(
|
|
12952
12959
|
nr,
|
|
12953
12960
|
{
|
|
12954
12961
|
row: P,
|
|
@@ -13025,7 +13032,7 @@ const Oh = "(max-width: 767px)", Ph = (e) => typeof window < "u" && typeof windo
|
|
|
13025
13032
|
secondaryTotal: m,
|
|
13026
13033
|
locale: r,
|
|
13027
13034
|
open: J,
|
|
13028
|
-
progress:
|
|
13035
|
+
progress: De,
|
|
13029
13036
|
dragging: Ye,
|
|
13030
13037
|
toggleAriaLabel: z,
|
|
13031
13038
|
onToggleOpen: he,
|
|
@@ -13037,7 +13044,7 @@ const Oh = "(max-width: 767px)", Ph = (e) => typeof window < "u" && typeof windo
|
|
|
13037
13044
|
{
|
|
13038
13045
|
"data-testid": "summary-reveal",
|
|
13039
13046
|
"aria-hidden": !J,
|
|
13040
|
-
style: { height:
|
|
13047
|
+
style: { height: ue },
|
|
13041
13048
|
className: p(
|
|
13042
13049
|
// min-h-0 lets the panel give way inside the max-h-dvh
|
|
13043
13050
|
// sheet (the header/action bar keep their min-content
|
|
@@ -13063,7 +13070,7 @@ const Oh = "(max-width: 767px)", Ph = (e) => typeof window < "u" && typeof windo
|
|
|
13063
13070
|
el,
|
|
13064
13071
|
{
|
|
13065
13072
|
open: J,
|
|
13066
|
-
progress:
|
|
13073
|
+
progress: De,
|
|
13067
13074
|
dragging: Ye,
|
|
13068
13075
|
primaryAction: x,
|
|
13069
13076
|
isLoading: N,
|
|
@@ -13115,7 +13122,7 @@ const Ih = {
|
|
|
13115
13122
|
cancel: "Cancel",
|
|
13116
13123
|
partialBadge: "Partial refund",
|
|
13117
13124
|
owesBadge: "Customer owes"
|
|
13118
|
-
}, Bh = { backgroundColor:
|
|
13125
|
+
}, Bh = { backgroundColor: Me.destructive, color: "#fff" }, di = "inline-flex h-[22px] items-center gap-[5px] whitespace-nowrap rounded-full px-[9px] text-xs font-medium leading-none", dn = "absolute top-0 h-5 w-5 opacity-0", Vh = ({
|
|
13119
13126
|
onClose: e,
|
|
13120
13127
|
steps: t,
|
|
13121
13128
|
activeStepId: a,
|
|
@@ -13210,7 +13217,7 @@ const Ih = {
|
|
|
13210
13217
|
"data-testid": `${g}-total`,
|
|
13211
13218
|
children: [
|
|
13212
13219
|
/* @__PURE__ */ n("span", { children: l.label }),
|
|
13213
|
-
l.amount && /* @__PURE__ */ n("span", { className: "tabular-nums text-default-900", children:
|
|
13220
|
+
l.amount && /* @__PURE__ */ n("span", { className: "tabular-nums text-default-900", children: Se(l.amount.value, void 0, l.amount.currency) }),
|
|
13214
13221
|
l.badge === "partial" && /* @__PURE__ */ n(
|
|
13215
13222
|
"span",
|
|
13216
13223
|
{
|
|
@@ -13294,7 +13301,7 @@ const Hh = (e) => Number.isFinite(e) ? e.toFixed(2) : "", En = ({
|
|
|
13294
13301
|
"data-testid": o,
|
|
13295
13302
|
inputTestId: c
|
|
13296
13303
|
}) => {
|
|
13297
|
-
const [d, f] = Y(null), m =
|
|
13304
|
+
const [d, f] = Y(null), m = Oe(null), g = Math.abs(e - t) > 4e-3;
|
|
13298
13305
|
return /* @__PURE__ */ u(
|
|
13299
13306
|
"span",
|
|
13300
13307
|
{
|
|
@@ -13353,10 +13360,10 @@ const Wh = {
|
|
|
13353
13360
|
amountOnlyDetail: "Not tied to an item · up to {amount} remaining",
|
|
13354
13361
|
amountOnlyRemove: "Remove amount refund"
|
|
13355
13362
|
}, qh = "inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-nowrap rounded-full border border-pos-line bg-default-100 px-[9px] text-xs font-medium leading-none text-default-600", ui = "flex h-11 flex-1 items-center justify-center bg-white text-lg text-default-900 outline-none transition-colors hover:bg-default-100 disabled:opacity-50 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary", un = "absolute h-5 w-5 opacity-0", Yh = (e) => {
|
|
13356
|
-
const t =
|
|
13363
|
+
const t = Se(e.paidAmount.value, void 0, e.paidAmount.currency);
|
|
13357
13364
|
if (e.quantity <= 1) return t;
|
|
13358
13365
|
const a = jh(e.paidAmount, e.quantity);
|
|
13359
|
-
return `${e.quantity} × ${
|
|
13366
|
+
return `${e.quantity} × ${Se(a.value, void 0, a.currency)} · ${t}`;
|
|
13360
13367
|
}, Gh = ({
|
|
13361
13368
|
items: e,
|
|
13362
13369
|
selections: t,
|
|
@@ -13420,7 +13427,7 @@ const Wh = {
|
|
|
13420
13427
|
className: "flex w-full flex-wrap items-center gap-2.5 sm:w-auto sm:flex-nowrap",
|
|
13421
13428
|
"data-testid": `${b}-partial`,
|
|
13422
13429
|
children: [
|
|
13423
|
-
h ? /* @__PURE__ */ n("span", { className: "text-sm font-semibold tabular-nums", children:
|
|
13430
|
+
h ? /* @__PURE__ */ n("span", { className: "text-sm font-semibold tabular-nums", children: Se(m.paidAmount.value, void 0, m.paidAmount.currency) }) : /* @__PURE__ */ n(
|
|
13424
13431
|
En,
|
|
13425
13432
|
{
|
|
13426
13433
|
value: E,
|
|
@@ -13587,7 +13594,7 @@ const Wh = {
|
|
|
13587
13594
|
/* @__PURE__ */ n("p", { className: "text-sm font-semibold", children: d.amountOnlyTitle }),
|
|
13588
13595
|
/* @__PURE__ */ n("p", { className: "text-[12.5px] text-default-500", children: d.amountOnlyDetail.replace(
|
|
13589
13596
|
"{amount}",
|
|
13590
|
-
|
|
13597
|
+
Se(s.max.value, void 0, s.max.currency)
|
|
13591
13598
|
) })
|
|
13592
13599
|
] }),
|
|
13593
13600
|
/* @__PURE__ */ u("div", { className: "flex w-full flex-wrap items-center gap-2.5 sm:w-[290px] sm:flex-nowrap", children: [
|
|
@@ -13955,7 +13962,7 @@ const np = {
|
|
|
13955
13962
|
),
|
|
13956
13963
|
/* @__PURE__ */ u("span", { className: "min-w-0", children: [
|
|
13957
13964
|
/* @__PURE__ */ n("span", { className: "block text-sm font-semibold", children: f.label }),
|
|
13958
|
-
/* @__PURE__ */ n("span", { className: "block text-xs text-default-500", children:
|
|
13965
|
+
/* @__PURE__ */ n("span", { className: "block text-xs text-default-500", children: Se(f.maxRefundable.value, void 0, f.maxRefundable.currency) })
|
|
13959
13966
|
] })
|
|
13960
13967
|
]
|
|
13961
13968
|
},
|
|
@@ -14047,11 +14054,11 @@ const sp = (e) => e.refunded !== null, lp = {
|
|
|
14047
14054
|
/* @__PURE__ */ u("div", { "data-testid": `${g}-totals`, children: [
|
|
14048
14055
|
/* @__PURE__ */ u("div", { className: "mb-4 flex items-center justify-between gap-2.5 rounded-xl bg-default-100 px-4 py-3.5", children: [
|
|
14049
14056
|
/* @__PURE__ */ n("span", { className: "text-[13px] font-semibold text-default-500", children: h.remaining }),
|
|
14050
|
-
/* @__PURE__ */ n("span", { className: "text-[22px] font-semibold tabular-nums", children:
|
|
14057
|
+
/* @__PURE__ */ n("span", { className: "text-[22px] font-semibold tabular-nums", children: Se(a.value, void 0, a.currency) }),
|
|
14051
14058
|
/* @__PURE__ */ u("span", { className: "sr-only", children: [
|
|
14052
14059
|
h.refundedSoFar,
|
|
14053
14060
|
": ",
|
|
14054
|
-
|
|
14061
|
+
Se(t.value, void 0, t.currency)
|
|
14055
14062
|
] })
|
|
14056
14063
|
] }),
|
|
14057
14064
|
b.length > 0 && /* @__PURE__ */ u("div", { children: [
|
|
@@ -14079,7 +14086,7 @@ const sp = (e) => e.refunded !== null, lp = {
|
|
|
14079
14086
|
/* @__PURE__ */ n("span", { className: "block text-[13.5px] font-semibold", children: $.label }),
|
|
14080
14087
|
$.feeNote && /* @__PURE__ */ n("span", { className: "block text-[11.5px] text-default-500", children: $.feeNote })
|
|
14081
14088
|
] }),
|
|
14082
|
-
/* @__PURE__ */ n("span", { className: "font-semibold tabular-nums", children:
|
|
14089
|
+
/* @__PURE__ */ n("span", { className: "font-semibold tabular-nums", children: Se($.refunded.value, void 0, $.refunded.currency) }),
|
|
14083
14090
|
/* @__PURE__ */ n(
|
|
14084
14091
|
"span",
|
|
14085
14092
|
{
|
|
@@ -14206,7 +14213,7 @@ const up = {
|
|
|
14206
14213
|
/* @__PURE__ */ n("p", { className: "text-[17px] font-semibold", children: o.label }),
|
|
14207
14214
|
a && /* @__PURE__ */ n("p", { className: "mt-1.5 text-[13px] text-default-500", children: a }),
|
|
14208
14215
|
/* @__PURE__ */ n(
|
|
14209
|
-
|
|
14216
|
+
$e,
|
|
14210
14217
|
{
|
|
14211
14218
|
type: "password",
|
|
14212
14219
|
inputMode: "numeric",
|
|
@@ -14260,7 +14267,7 @@ const fp = {
|
|
|
14260
14267
|
className: f,
|
|
14261
14268
|
"data-testid": m = "outcome-view"
|
|
14262
14269
|
}) => {
|
|
14263
|
-
const g = { ...fp, ...d }, h = t ?
|
|
14270
|
+
const g = { ...fp, ...d }, h = t ? Se(t.value, void 0, t.currency) : null;
|
|
14264
14271
|
return e === "processing" ? /* @__PURE__ */ n(
|
|
14265
14272
|
"div",
|
|
14266
14273
|
{
|
|
@@ -14309,7 +14316,7 @@ const fp = {
|
|
|
14309
14316
|
children: [
|
|
14310
14317
|
/* @__PURE__ */ n("span", { className: "font-semibold", children: b.label }),
|
|
14311
14318
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-2.5", children: [
|
|
14312
|
-
/* @__PURE__ */ n("span", { className: "tabular-nums text-default-600", children:
|
|
14319
|
+
/* @__PURE__ */ n("span", { className: "tabular-nums text-default-600", children: Se(b.amount.value, void 0, b.amount.currency) }),
|
|
14313
14320
|
/* @__PURE__ */ n("span", { className: p(pp, hp[b.status]), children: b.status === "succeeded" ? g.succeeded : g.pending })
|
|
14314
14321
|
] })
|
|
14315
14322
|
]
|
|
@@ -14355,14 +14362,15 @@ const fp = {
|
|
|
14355
14362
|
);
|
|
14356
14363
|
};
|
|
14357
14364
|
xp.displayName = "OutcomeView";
|
|
14358
|
-
const
|
|
14359
|
-
base: "relative inline-grid min-w-[
|
|
14360
|
-
baseActive: "
|
|
14365
|
+
const Be = {
|
|
14366
|
+
base: "relative inline-grid min-w-[var(--filter-select-min)] max-w-max shrink grow basis-[var(--filter-select-min)] grid-cols-[minmax(0,1fr)] [--filter-select-min:6rem]",
|
|
14367
|
+
baseActive: "[--filter-select-min:8rem]",
|
|
14361
14368
|
cell: "[grid-area:1/1]",
|
|
14362
|
-
sizer: "invisible h-0 overflow-hidden whitespace-nowrap border-x-2 border-transparent pl-2 pr-[
|
|
14363
|
-
|
|
14369
|
+
sizer: "invisible h-0 max-w-[20rem] overflow-hidden whitespace-nowrap border-x-2 border-transparent pl-2 pr-[2.0625rem] text-[0.875rem]",
|
|
14370
|
+
sizerActive: "pr-[3.4375rem] font-semibold",
|
|
14371
|
+
select: "w-full [contain:inline-size]",
|
|
14364
14372
|
trigger: "h-[2.375rem] min-h-[2.375rem] rounded-[0.625rem] border-medium border-pos-field bg-white px-2 shadow-none data-[hover=true]:border-default-300 data-[focus=true]:border-primary data-[open=true]:border-primary data-[focus-visible=true]:ring-2 data-[focus-visible=true]:ring-primary data-[focus-visible=true]:ring-offset-1",
|
|
14365
|
-
triggerActive: "!border-acct-rust-border !bg-acct-rust-fill pr-[
|
|
14373
|
+
triggerActive: "!border-acct-rust-border !bg-acct-rust-fill pr-[1.875rem]",
|
|
14366
14374
|
value: "text-[0.875rem] !text-default-900",
|
|
14367
14375
|
valueActive: "font-semibold !text-primary-600",
|
|
14368
14376
|
iconActive: "!text-primary-600",
|
|
@@ -14377,7 +14385,7 @@ const Ue = {
|
|
|
14377
14385
|
minWidth: s,
|
|
14378
14386
|
"data-testid": l = "filter-select"
|
|
14379
14387
|
}) => {
|
|
14380
|
-
const o = t !== null, c = o ? a.find((f) => f.value === t)?.label : void 0, d =
|
|
14388
|
+
const o = t !== null, c = o ? a.find((f) => f.value === t)?.label : void 0, d = Oe(null);
|
|
14381
14389
|
return /* @__PURE__ */ u(
|
|
14382
14390
|
"div",
|
|
14383
14391
|
{
|
|
@@ -14386,8 +14394,8 @@ const Ue = {
|
|
|
14386
14394
|
"data-slot": "filter-select",
|
|
14387
14395
|
"data-active": o ? "true" : void 0,
|
|
14388
14396
|
title: c,
|
|
14389
|
-
className: p(
|
|
14390
|
-
style: s === void 0 ? void 0 : {
|
|
14397
|
+
className: p(Be.base, o && Be.baseActive),
|
|
14398
|
+
style: s === void 0 ? void 0 : { "--filter-select-min": ct(s) },
|
|
14391
14399
|
children: [
|
|
14392
14400
|
/* @__PURE__ */ n(
|
|
14393
14401
|
nt,
|
|
@@ -14405,21 +14413,21 @@ const Ue = {
|
|
|
14405
14413
|
},
|
|
14406
14414
|
"data-testid": `${l}-trigger`,
|
|
14407
14415
|
classNames: {
|
|
14408
|
-
base: p(
|
|
14409
|
-
trigger: p(
|
|
14410
|
-
value: p(
|
|
14411
|
-
selectorIcon: p(o &&
|
|
14416
|
+
base: p(Be.select, Be.cell),
|
|
14417
|
+
trigger: p(Be.trigger, o && Be.triggerActive),
|
|
14418
|
+
value: p(Be.value, o && Be.valueActive),
|
|
14419
|
+
selectorIcon: p(o && Be.iconActive)
|
|
14412
14420
|
},
|
|
14413
14421
|
children: a.map((f) => /* @__PURE__ */ n(ut, { children: f.label }, f.value))
|
|
14414
14422
|
}
|
|
14415
14423
|
),
|
|
14416
|
-
|
|
14424
|
+
/* @__PURE__ */ n(
|
|
14417
14425
|
"span",
|
|
14418
14426
|
{
|
|
14419
14427
|
"aria-hidden": "true",
|
|
14420
14428
|
"data-testid": `${l}-sizer`,
|
|
14421
|
-
className: p(
|
|
14422
|
-
children: c
|
|
14429
|
+
className: p(Be.sizer, o && Be.sizerActive, Be.cell),
|
|
14430
|
+
children: c ?? e
|
|
14423
14431
|
}
|
|
14424
14432
|
),
|
|
14425
14433
|
o && /* @__PURE__ */ n(
|
|
@@ -14431,8 +14439,8 @@ const Ue = {
|
|
|
14431
14439
|
r(null), d.current?.querySelector('[data-slot="trigger"]')?.focus();
|
|
14432
14440
|
},
|
|
14433
14441
|
"data-testid": `${l}-clear`,
|
|
14434
|
-
className:
|
|
14435
|
-
children: /* @__PURE__ */ n(T, { icon: "lucide:x", className:
|
|
14442
|
+
className: Be.clear,
|
|
14443
|
+
children: /* @__PURE__ */ n(T, { icon: "lucide:x", className: Be.clearIcon, "aria-hidden": "true" })
|
|
14436
14444
|
}
|
|
14437
14445
|
)
|
|
14438
14446
|
]
|
|
@@ -14455,10 +14463,10 @@ const pt = {
|
|
|
14455
14463
|
endLabel: s,
|
|
14456
14464
|
"data-testid": l = "load-more-footer"
|
|
14457
14465
|
}) => {
|
|
14458
|
-
const o =
|
|
14459
|
-
return
|
|
14466
|
+
const o = Oe(null), c = Oe(t), d = Oe(!1);
|
|
14467
|
+
return Fe(() => {
|
|
14460
14468
|
c.current = t;
|
|
14461
|
-
}, [t]),
|
|
14469
|
+
}, [t]), Fe(() => {
|
|
14462
14470
|
if (e !== "idle") {
|
|
14463
14471
|
d.current = !1;
|
|
14464
14472
|
return;
|
|
@@ -14518,31 +14526,38 @@ const pt = {
|
|
|
14518
14526
|
);
|
|
14519
14527
|
};
|
|
14520
14528
|
vp.displayName = "LoadMoreFooter";
|
|
14521
|
-
const
|
|
14529
|
+
const Ne = {
|
|
14522
14530
|
base: "w-full",
|
|
14523
14531
|
list: "m-0 list-none p-0",
|
|
14524
|
-
item: "border-b border-pos-hair last:border-b-0",
|
|
14532
|
+
item: "relative border-b border-pos-hair last:border-b-0",
|
|
14525
14533
|
card: "block w-full px-4 py-[0.875rem] text-left",
|
|
14526
14534
|
cardInteractive: `cursor-pointer outline-none transition-colors hover:bg-default-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-primary ${ea}`,
|
|
14527
14535
|
headline: "flex items-baseline gap-2.5",
|
|
14536
|
+
headlineWithActions: "pr-[3.25rem]",
|
|
14528
14537
|
title: "min-w-0 text-[0.90625rem] font-semibold text-primary [overflow-wrap:anywhere]",
|
|
14529
14538
|
amount: "ml-auto shrink-0 whitespace-nowrap text-[0.9375rem] font-bold tabular-nums text-default-900",
|
|
14539
|
+
actions: "absolute right-4 top-[0.1875rem] z-[1]",
|
|
14530
14540
|
chips: "mt-[0.5625rem] flex flex-wrap gap-1.5",
|
|
14541
|
+
chipsLine: "mt-[0.5625rem] flex items-center gap-2.5",
|
|
14542
|
+
chipsInline: "flex min-w-0 flex-wrap gap-1.5",
|
|
14531
14543
|
rows: "mt-[0.5625rem] block",
|
|
14532
14544
|
row: "flex items-baseline gap-3 py-[0.1875rem] text-[0.8125rem]",
|
|
14533
14545
|
rowLabel: "shrink-0 text-default-500",
|
|
14534
14546
|
rowValue: "ml-auto min-w-0 text-right text-default-700 [overflow-wrap:anywhere]",
|
|
14535
14547
|
skeletonRow: "border-b border-pos-hair p-4 last:border-b-0"
|
|
14536
|
-
}, hi = ({ item: e }) => /* @__PURE__ */ u(be, { children: [
|
|
14537
|
-
/* @__PURE__ */ u("span", { className:
|
|
14538
|
-
/* @__PURE__ */ n("span", { className:
|
|
14539
|
-
|
|
14548
|
+
}, hi = ({ item: e, withActions: t }) => /* @__PURE__ */ u(be, { children: [
|
|
14549
|
+
/* @__PURE__ */ u("span", { className: p(Ne.headline, t && Ne.headlineWithActions), children: [
|
|
14550
|
+
/* @__PURE__ */ n("span", { className: Ne.title, children: e.title }),
|
|
14551
|
+
le(e.amount) && !t && /* @__PURE__ */ n("span", { className: Ne.amount, children: e.amount })
|
|
14540
14552
|
] }),
|
|
14541
|
-
|
|
14542
|
-
|
|
14543
|
-
/* @__PURE__ */ n("span", { className:
|
|
14544
|
-
|
|
14545
|
-
|
|
14553
|
+
t ? (le(e.chips) || le(e.amount)) && /* @__PURE__ */ u("span", { className: Ne.chipsLine, children: [
|
|
14554
|
+
le(e.chips) && /* @__PURE__ */ n("span", { className: Ne.chipsInline, children: e.chips }),
|
|
14555
|
+
le(e.amount) && /* @__PURE__ */ n("span", { className: Ne.amount, children: e.amount })
|
|
14556
|
+
] }) : le(e.chips) && /* @__PURE__ */ n("span", { className: Ne.chips, children: e.chips }),
|
|
14557
|
+
e.rows && e.rows.length > 0 && /* @__PURE__ */ n("span", { className: Ne.rows, children: e.rows.map((a, r) => /* @__PURE__ */ u("span", { className: Ne.row, children: [
|
|
14558
|
+
/* @__PURE__ */ n("span", { className: Ne.rowLabel, children: a.label }),
|
|
14559
|
+
/* @__PURE__ */ n("span", { className: Ne.rowValue, children: a.value })
|
|
14560
|
+
] }, r)) })
|
|
14546
14561
|
] }), wp = ({
|
|
14547
14562
|
items: e,
|
|
14548
14563
|
ariaLabel: t,
|
|
@@ -14550,19 +14565,32 @@ const ze = {
|
|
|
14550
14565
|
loading: r = !1,
|
|
14551
14566
|
skeletonCount: i = 6,
|
|
14552
14567
|
"data-testid": s = "card-list"
|
|
14553
|
-
}) => /* @__PURE__ */ n("div", { "data-testid": s, className:
|
|
14568
|
+
}) => /* @__PURE__ */ n("div", { "data-testid": s, className: Ne.base, children: r ? /* @__PURE__ */ n("div", { role: "status", "aria-busy": "true", "aria-label": t, "data-testid": `${s}-skeleton`, children: /* @__PURE__ */ n("div", { "aria-hidden": "true", children: Array.from({ length: i }, (l, o) => /* @__PURE__ */ u("div", { "data-testid": `${s}-skeleton-row`, className: Ne.skeletonRow, children: [
|
|
14554
14569
|
/* @__PURE__ */ n("div", { className: ma, style: { height: ct(13), width: ct(130) } }),
|
|
14555
14570
|
/* @__PURE__ */ n("div", { className: ma, style: { height: ct(11), width: "70%", marginTop: ct(10) } }),
|
|
14556
14571
|
/* @__PURE__ */ n("div", { className: ma, style: { height: ct(11), width: "45%", marginTop: ct(8) } })
|
|
14557
|
-
] }, o)) }) }) : /* @__PURE__ */ n("ul", { "aria-label": t, className:
|
|
14558
|
-
|
|
14559
|
-
{
|
|
14560
|
-
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14572
|
+
] }, o)) }) }) : /* @__PURE__ */ n("ul", { "aria-label": t, className: Ne.list, children: e.map((l) => {
|
|
14573
|
+
const o = le(l.actions);
|
|
14574
|
+
return /* @__PURE__ */ u("li", { "data-testid": `${s}-item-${l.id}`, className: Ne.item, children: [
|
|
14575
|
+
a ? /* @__PURE__ */ n(
|
|
14576
|
+
"button",
|
|
14577
|
+
{
|
|
14578
|
+
type: "button",
|
|
14579
|
+
onClick: () => a(l.id),
|
|
14580
|
+
className: p(Ne.card, Ne.cardInteractive),
|
|
14581
|
+
children: /* @__PURE__ */ n(hi, { item: l, withActions: o })
|
|
14582
|
+
}
|
|
14583
|
+
) : /* @__PURE__ */ n("div", { className: Ne.card, children: /* @__PURE__ */ n(hi, { item: l, withActions: o }) }),
|
|
14584
|
+
o && /* @__PURE__ */ n(
|
|
14585
|
+
"div",
|
|
14586
|
+
{
|
|
14587
|
+
"data-testid": `${s}-item-${l.id}-actions`,
|
|
14588
|
+
className: Ne.actions,
|
|
14589
|
+
children: l.actions
|
|
14590
|
+
}
|
|
14591
|
+
)
|
|
14592
|
+
] }, l.id);
|
|
14593
|
+
}) }) });
|
|
14566
14594
|
wp.displayName = "CardList";
|
|
14567
14595
|
const Np = 48, ae = {
|
|
14568
14596
|
base: `mb-4 overflow-hidden rounded-2xl border border-pos-line bg-white ${Ba}`,
|
|
@@ -14623,7 +14651,7 @@ const kp = ({
|
|
|
14623
14651
|
banner: g,
|
|
14624
14652
|
"data-testid": h = "record-header"
|
|
14625
14653
|
}) => {
|
|
14626
|
-
const { ref: b, width: w } = Ot(), x = !Xt(w, Np), N = e.length > 0 || !!t, k = !!(f && f.length > 0), E = !!s ||
|
|
14654
|
+
const { ref: b, width: w } = Ot(), x = !Xt(w, Np), N = e.length > 0 || !!t, k = !!(f && f.length > 0), E = !!s || le(l) || le(o) || le(c) || le(d) || k;
|
|
14627
14655
|
return /* @__PURE__ */ u("div", { ref: b, "data-testid": h, "data-size": x ? "narrow" : "wide", className: ae.base, children: [
|
|
14628
14656
|
N && /* @__PURE__ */ u("div", { "data-testid": `${h}-band`, className: ae.band, children: [
|
|
14629
14657
|
t && /* @__PURE__ */ n(
|
|
@@ -14684,7 +14712,7 @@ const kp = ({
|
|
|
14684
14712
|
className: p(ae.money, x ? ae.moneyNarrow : ae.moneyWide),
|
|
14685
14713
|
children: [
|
|
14686
14714
|
s && /* @__PURE__ */ n("div", { className: ae.amountLabel, children: s }),
|
|
14687
|
-
|
|
14715
|
+
le(l) && /* @__PURE__ */ n(
|
|
14688
14716
|
"div",
|
|
14689
14717
|
{
|
|
14690
14718
|
"data-testid": `${h}-amount`,
|
|
@@ -14692,9 +14720,9 @@ const kp = ({
|
|
|
14692
14720
|
children: l
|
|
14693
14721
|
}
|
|
14694
14722
|
),
|
|
14695
|
-
|
|
14696
|
-
|
|
14697
|
-
|
|
14723
|
+
le(o) && /* @__PURE__ */ n("div", { className: ae.amountCaption, children: o }),
|
|
14724
|
+
le(c) && /* @__PURE__ */ n("div", { "data-testid": `${h}-record-id`, className: ae.recordId, children: c }),
|
|
14725
|
+
le(d) && /* @__PURE__ */ n(
|
|
14698
14726
|
"div",
|
|
14699
14727
|
{
|
|
14700
14728
|
"data-testid": `${h}-chips`,
|
|
@@ -14729,8 +14757,8 @@ const kp = ({
|
|
|
14729
14757
|
}
|
|
14730
14758
|
)
|
|
14731
14759
|
] }),
|
|
14732
|
-
|
|
14733
|
-
|
|
14760
|
+
le(m) && /* @__PURE__ */ n("div", { "data-testid": `${h}-stats`, className: x ? ae.statsNarrow : ae.statsWide, children: m }),
|
|
14761
|
+
le(g) && /* @__PURE__ */ n("div", { "data-testid": `${h}-banner`, children: g })
|
|
14734
14762
|
] });
|
|
14735
14763
|
};
|
|
14736
14764
|
kp.displayName = "RecordHeader";
|
|
@@ -14745,7 +14773,7 @@ const Cp = 50, Vt = {
|
|
|
14745
14773
|
aside: t,
|
|
14746
14774
|
"data-testid": a = "record-layout"
|
|
14747
14775
|
}) => {
|
|
14748
|
-
const { ref: r, width: i } = Ot(), s =
|
|
14776
|
+
const { ref: r, width: i } = Ot(), s = le(t), l = s && i > 0 && Xt(i, Cp), o = /* @__PURE__ */ n("div", { "data-testid": `${a}-main`, className: Vt.column, children: e }, "main"), c = s ? /* @__PURE__ */ n("div", { "data-testid": `${a}-aside`, className: Vt.aside, children: t }, "aside") : null;
|
|
14749
14777
|
return /* @__PURE__ */ n(
|
|
14750
14778
|
"div",
|
|
14751
14779
|
{
|
|
@@ -14785,7 +14813,7 @@ const Sp = 560, Ut = {
|
|
|
14785
14813
|
}
|
|
14786
14814
|
),
|
|
14787
14815
|
/* @__PURE__ */ n("div", { "data-testid": `${t}-item-${l}-label`, className: Ut.label, children: s.label }),
|
|
14788
|
-
|
|
14816
|
+
le(s.caption) && /* @__PURE__ */ n("div", { "data-testid": `${t}-item-${l}-caption`, className: Ut.caption, children: s.caption })
|
|
14789
14817
|
] }, l))
|
|
14790
14818
|
}
|
|
14791
14819
|
);
|
|
@@ -14957,13 +14985,13 @@ const je = {
|
|
|
14957
14985
|
/* @__PURE__ */ n("span", { className: je.title, children: r.title }),
|
|
14958
14986
|
/* @__PURE__ */ n("span", { className: je.timestamp, children: r.timestamp })
|
|
14959
14987
|
] }),
|
|
14960
|
-
|
|
14961
|
-
|
|
14988
|
+
le(r.detail) && /* @__PURE__ */ n("div", { className: je.detail, children: r.detail }),
|
|
14989
|
+
le(r.actor) && /* @__PURE__ */ n("div", { "data-testid": `${l}-actor`, className: je.actor, children: r.actor })
|
|
14962
14990
|
] })
|
|
14963
14991
|
] }, r.id);
|
|
14964
14992
|
}) });
|
|
14965
14993
|
Fp.displayName = "ActivityTimeline";
|
|
14966
|
-
const
|
|
14994
|
+
const Ee = {
|
|
14967
14995
|
base: `overflow-hidden rounded-2xl border border-pos-line bg-white ${Ba}`,
|
|
14968
14996
|
header: "flex flex-wrap items-center gap-2 px-5 pt-4",
|
|
14969
14997
|
title: "m-0 min-w-0 text-[0.90625rem] font-semibold text-default-900 [overflow-wrap:anywhere]",
|
|
@@ -14982,14 +15010,14 @@ const De = {
|
|
|
14982
15010
|
empty: "min-w-0 px-5 pb-5 pt-[0.875rem] text-[0.875rem] text-default-500 [overflow-wrap:anywhere]",
|
|
14983
15011
|
emptyHeadless: "pt-5"
|
|
14984
15012
|
}, gi = ({ row: e, testId: t }) => /* @__PURE__ */ u(be, { children: [
|
|
14985
|
-
/* @__PURE__ */ u("span", { className:
|
|
14986
|
-
/* @__PURE__ */ u("span", { className:
|
|
14987
|
-
/* @__PURE__ */ n("span", { className: e.onSelect ?
|
|
15013
|
+
/* @__PURE__ */ u("span", { className: Ee.rowBody, children: [
|
|
15014
|
+
/* @__PURE__ */ u("span", { className: Ee.rowHead, children: [
|
|
15015
|
+
/* @__PURE__ */ n("span", { className: e.onSelect ? Ee.primaryLinked : Ee.primaryPlain, children: e.primary }),
|
|
14988
15016
|
e.chip
|
|
14989
15017
|
] }),
|
|
14990
|
-
!!e.secondary && /* @__PURE__ */ n("span", { className:
|
|
15018
|
+
!!e.secondary && /* @__PURE__ */ n("span", { className: Ee.secondary, children: e.secondary })
|
|
14991
15019
|
] }),
|
|
14992
|
-
!!e.amount && /* @__PURE__ */ n("span", { "data-testid": `${t}-amount`, className:
|
|
15020
|
+
!!e.amount && /* @__PURE__ */ n("span", { "data-testid": `${t}-amount`, className: Ee.amount, style: Jt(e.amountTone), children: e.amount })
|
|
14993
15021
|
] }), Lp = ({
|
|
14994
15022
|
title: e,
|
|
14995
15023
|
count: t,
|
|
@@ -15004,38 +15032,38 @@ const De = {
|
|
|
15004
15032
|
"data-testid": i,
|
|
15005
15033
|
role: l ? "group" : void 0,
|
|
15006
15034
|
"aria-labelledby": l ? s : void 0,
|
|
15007
|
-
className:
|
|
15035
|
+
className: Ee.base,
|
|
15008
15036
|
children: [
|
|
15009
|
-
l && /* @__PURE__ */ u("div", { className:
|
|
15010
|
-
/* @__PURE__ */ n("h3", { id: s, className:
|
|
15011
|
-
t !== void 0 && /* @__PURE__ */ n("span", { "data-testid": `${i}-count`, className:
|
|
15037
|
+
l && /* @__PURE__ */ u("div", { className: Ee.header, children: [
|
|
15038
|
+
/* @__PURE__ */ n("h3", { id: s, className: Ee.title, children: e }),
|
|
15039
|
+
t !== void 0 && /* @__PURE__ */ n("span", { "data-testid": `${i}-count`, className: Ee.count, children: t })
|
|
15012
15040
|
] }),
|
|
15013
15041
|
a.length === 0 ? !!r && /* @__PURE__ */ n(
|
|
15014
15042
|
"div",
|
|
15015
15043
|
{
|
|
15016
15044
|
"data-testid": `${i}-empty`,
|
|
15017
|
-
className: p(
|
|
15045
|
+
className: p(Ee.empty, !l && Ee.emptyHeadless),
|
|
15018
15046
|
children: r
|
|
15019
15047
|
}
|
|
15020
|
-
) : /* @__PURE__ */ n("ul", { className:
|
|
15048
|
+
) : /* @__PURE__ */ n("ul", { className: Ee.list, children: a.map((o, c) => {
|
|
15021
15049
|
const d = `${i}-row-${o.id}`;
|
|
15022
15050
|
return /* @__PURE__ */ n(
|
|
15023
15051
|
"li",
|
|
15024
15052
|
{
|
|
15025
15053
|
"data-testid": d,
|
|
15026
15054
|
className: p(
|
|
15027
|
-
|
|
15028
|
-
c === 0 && !l &&
|
|
15055
|
+
Ee.item,
|
|
15056
|
+
c === 0 && !l && Ee.itemFirstHeadless
|
|
15029
15057
|
),
|
|
15030
15058
|
children: o.onSelect ? /* @__PURE__ */ n(
|
|
15031
15059
|
"button",
|
|
15032
15060
|
{
|
|
15033
15061
|
type: "button",
|
|
15034
15062
|
onClick: o.onSelect,
|
|
15035
|
-
className: p(
|
|
15063
|
+
className: p(Ee.row, Ee.rowInteractive),
|
|
15036
15064
|
children: /* @__PURE__ */ n(gi, { row: o, testId: d })
|
|
15037
15065
|
}
|
|
15038
|
-
) : /* @__PURE__ */ n("div", { className:
|
|
15066
|
+
) : /* @__PURE__ */ n("div", { className: Ee.row, children: /* @__PURE__ */ n(gi, { row: o, testId: d }) })
|
|
15039
15067
|
},
|
|
15040
15068
|
o.id
|
|
15041
15069
|
);
|
|
@@ -15059,7 +15087,7 @@ const _p = ({
|
|
|
15059
15087
|
children: f,
|
|
15060
15088
|
"data-testid": m = "record-card"
|
|
15061
15089
|
}) => {
|
|
15062
|
-
const g = _a(), h =
|
|
15090
|
+
const g = _a(), h = le(e);
|
|
15063
15091
|
return /* @__PURE__ */ u(
|
|
15064
15092
|
"section",
|
|
15065
15093
|
{
|
|
@@ -15070,22 +15098,22 @@ const _p = ({
|
|
|
15070
15098
|
className: ot.base,
|
|
15071
15099
|
children: [
|
|
15072
15100
|
h && /* @__PURE__ */ u("div", { "data-testid": `${m}-header`, className: qf[c], children: [
|
|
15073
|
-
|
|
15101
|
+
le(a) && /* @__PURE__ */ n("span", { "aria-hidden": "true", className: ot.icon, children: a }),
|
|
15074
15102
|
/* @__PURE__ */ n(t, { id: g, className: ot.title, children: e }),
|
|
15075
|
-
|
|
15103
|
+
le(r) && /* @__PURE__ */ n("span", { "data-testid": `${m}-count`, className: ot.count, children: r }),
|
|
15076
15104
|
i,
|
|
15077
|
-
|
|
15105
|
+
le(s) && /* @__PURE__ */ n("span", { "data-testid": `${m}-action`, className: ot.action, children: s })
|
|
15078
15106
|
] }),
|
|
15079
15107
|
/* @__PURE__ */ u("div", { "data-testid": `${m}-body`, className: Yf[c][d], children: [
|
|
15080
|
-
|
|
15108
|
+
le(l) && /* @__PURE__ */ n("p", { "data-testid": `${m}-description`, className: ot.description, children: l }),
|
|
15081
15109
|
f,
|
|
15082
|
-
|
|
15110
|
+
le(o) && /* @__PURE__ */ n(
|
|
15083
15111
|
"div",
|
|
15084
15112
|
{
|
|
15085
15113
|
"data-testid": `${m}-footer`,
|
|
15086
15114
|
className: p(
|
|
15087
15115
|
ot.footer,
|
|
15088
|
-
|
|
15116
|
+
le(f) ? ot.footerAfterContent : ot.footerAfterDescription
|
|
15089
15117
|
),
|
|
15090
15118
|
children: o
|
|
15091
15119
|
}
|
|
@@ -15150,7 +15178,7 @@ const Qe = {
|
|
|
15150
15178
|
originalAmountLabel: a,
|
|
15151
15179
|
"data-testid": r = "line-item-rows"
|
|
15152
15180
|
}) => /* @__PURE__ */ n("ul", { "aria-label": t, "data-testid": r, className: Qe.list, children: e.map((i) => {
|
|
15153
|
-
const s = `${r}-item-${i.id}`, l =
|
|
15181
|
+
const s = `${r}-item-${i.id}`, l = le(i.originalAmount);
|
|
15154
15182
|
return /* @__PURE__ */ u(
|
|
15155
15183
|
"li",
|
|
15156
15184
|
{
|
|
@@ -15192,7 +15220,7 @@ const Qe = {
|
|
|
15192
15220
|
);
|
|
15193
15221
|
}) });
|
|
15194
15222
|
zp.displayName = "LineItemRows";
|
|
15195
|
-
const Tp = 37.5,
|
|
15223
|
+
const Tp = 37.5, _e = {
|
|
15196
15224
|
base: "mx-5 border-t border-pos-hair pb-[1.125rem] pt-2.5",
|
|
15197
15225
|
rowWide: "flex items-baseline gap-4",
|
|
15198
15226
|
rowNarrow: "flex flex-wrap items-baseline gap-x-3",
|
|
@@ -15215,36 +15243,36 @@ const Tp = 37.5, Le = {
|
|
|
15215
15243
|
memo: a,
|
|
15216
15244
|
"data-testid": r = "record-totals"
|
|
15217
15245
|
}) => {
|
|
15218
|
-
const { ref: i, width: s } = Ot(), l = s > 0 && !Xt(s, Tp), o = l ?
|
|
15246
|
+
const { ref: i, width: s } = Ot(), l = s > 0 && !Xt(s, Tp), o = l ? _e.rowNarrow : _e.rowWide, c = l ? _e.labelNarrow : _e.labelWide, d = l ? _e.noteNarrow : _e.noteWide;
|
|
15219
15247
|
return /* @__PURE__ */ u(
|
|
15220
15248
|
"div",
|
|
15221
15249
|
{
|
|
15222
15250
|
ref: i,
|
|
15223
15251
|
"data-testid": r,
|
|
15224
15252
|
"data-size": l ? "narrow" : "wide",
|
|
15225
|
-
className:
|
|
15253
|
+
className: _e.base,
|
|
15226
15254
|
children: [
|
|
15227
15255
|
e.map((f) => {
|
|
15228
15256
|
const m = `${r}-row-${f.id}`;
|
|
15229
|
-
return /* @__PURE__ */ u("div", { "data-testid": m, className: p(o,
|
|
15230
|
-
/* @__PURE__ */ n("span", { "data-testid": `${m}-label`, className: p(c,
|
|
15231
|
-
/* @__PURE__ */ n("span", { "data-testid": `${m}-note`, className: p(d,
|
|
15257
|
+
return /* @__PURE__ */ u("div", { "data-testid": m, className: p(o, _e.row), children: [
|
|
15258
|
+
/* @__PURE__ */ n("span", { "data-testid": `${m}-label`, className: p(c, _e.label), children: f.label }),
|
|
15259
|
+
/* @__PURE__ */ n("span", { "data-testid": `${m}-note`, className: p(d, _e.note), children: f.note }),
|
|
15232
15260
|
/* @__PURE__ */ n(
|
|
15233
15261
|
"span",
|
|
15234
15262
|
{
|
|
15235
15263
|
"data-testid": `${m}-value`,
|
|
15236
|
-
className:
|
|
15264
|
+
className: _e.value,
|
|
15237
15265
|
style: Jt(f.tone),
|
|
15238
15266
|
children: f.value
|
|
15239
15267
|
}
|
|
15240
15268
|
)
|
|
15241
15269
|
] }, f.id);
|
|
15242
15270
|
}),
|
|
15243
|
-
/* @__PURE__ */ n("div", { className:
|
|
15244
|
-
/* @__PURE__ */ n("span", { className: p(c,
|
|
15245
|
-
/* @__PURE__ */ n("span", { "data-testid": `${r}-total-value`, className:
|
|
15271
|
+
/* @__PURE__ */ n("div", { className: _e.totalRule, children: /* @__PURE__ */ u("div", { "data-testid": `${r}-total`, className: p(o, _e.totalRow), children: [
|
|
15272
|
+
/* @__PURE__ */ n("span", { className: p(c, _e.totalLabel), children: t.label }),
|
|
15273
|
+
/* @__PURE__ */ n("span", { "data-testid": `${r}-total-value`, className: _e.totalValue, children: t.value })
|
|
15246
15274
|
] }) }),
|
|
15247
|
-
|
|
15275
|
+
le(a) && /* @__PURE__ */ n("div", { "data-testid": `${r}-memo`, className: _e.memo, children: a })
|
|
15248
15276
|
]
|
|
15249
15277
|
}
|
|
15250
15278
|
);
|
|
@@ -15272,7 +15300,7 @@ const Fn = {
|
|
|
15272
15300
|
style: Jt(t),
|
|
15273
15301
|
children: [
|
|
15274
15302
|
r,
|
|
15275
|
-
|
|
15303
|
+
le(a) && /* @__PURE__ */ u("span", { "data-testid": `${i}-secondary`, className: Fn.secondary, children: [
|
|
15276
15304
|
/* @__PURE__ */ n("span", { "aria-hidden": "true", children: " · " }),
|
|
15277
15305
|
a
|
|
15278
15306
|
] })
|
|
@@ -15405,7 +15433,7 @@ export {
|
|
|
15405
15433
|
P0 as calculateAllocationDifference,
|
|
15406
15434
|
Mr as computeChange,
|
|
15407
15435
|
za as currencyFractionDigits,
|
|
15408
|
-
|
|
15436
|
+
Se as formatMoney,
|
|
15409
15437
|
Tr as formatOfferCurrency,
|
|
15410
15438
|
_0 as formatRevenueAmount,
|
|
15411
15439
|
M0 as formatRevenueCurrency,
|
|
@@ -15420,7 +15448,7 @@ export {
|
|
|
15420
15448
|
il as pillTabId,
|
|
15421
15449
|
sl as pillTabPanelId,
|
|
15422
15450
|
Y0 as pillTabPanelProps,
|
|
15423
|
-
|
|
15451
|
+
Me as posSurfaceTokens,
|
|
15424
15452
|
cd as roundToCurrency
|
|
15425
15453
|
};
|
|
15426
15454
|
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('.ProseMirror{flex:1;width:100%;min-height:100%;height:100%;cursor:text;background-color:#fff;padding:1rem;overflow-y:auto;box-sizing:border-box}.ProseMirror p{min-height:1.5em}.dark .ProseMirror{background-color:rgb(var(--nextui-background))}.ProseMirror ul{list-style-type:disc!important;list-style-position:outside!important;padding-left:2rem!important;margin:1rem 0!important;display:block!important}.ProseMirror ol{list-style-type:decimal!important;list-style-position:outside!important;padding-left:2rem!important;margin:1rem 0!important;display:block!important}.ProseMirror ul li,.ProseMirror ol li{display:list-item!important;list-style:inherit!important;margin:.25rem 0!important}.ProseMirror ul li p,.ProseMirror ol li p{margin:0!important;display:inline!important}.ProseMirror ul[data-type=taskList]{list-style:none!important;padding-left:0!important;margin:1rem 0!important}.ProseMirror ul[data-type=taskList] li{display:flex!important;align-items:flex-start!important;margin:.5rem 0!important}.ProseMirror ul[data-type=taskList] li label{margin-right:.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ProseMirror ul[data-type=taskList] li input[type=checkbox]{cursor:pointer;margin-top:.25rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{line-height:1.2!important;margin:1rem 0 .5rem!important;font-weight:600!important}.ProseMirror h1{font-size:2rem!important}.ProseMirror h2{font-size:1.5rem!important}.ProseMirror h3{font-size:1.25rem!important}.ProseMirror h4{font-size:1.1rem!important}.ProseMirror h5{font-size:1rem!important;font-weight:600!important}.ProseMirror h6{font-size:.9rem!important;font-weight:600!important}.ProseMirror code{background-color:rgb(var(--nextui-default-100));border-radius:.4rem;color:rgb(var(--nextui-default-800));font-size:.85rem;padding:.25em .3em}.ProseMirror pre{background:rgb(var(--nextui-default-900));border-radius:.5rem;color:rgb(var(--nextui-default-50));font-family:JetBrainsMono,monospace;margin:1.5rem 0;padding:.75rem 1rem;overflow-x:auto}.ProseMirror pre code{background:none;color:inherit;font-size:.8rem;padding:0}.ProseMirror mark{background-color:#faf594;border-radius:.4rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:.1rem .3rem}.ProseMirror blockquote{border-left:3px solid rgb(var(--nextui-default-300));margin:1.5rem 0;padding-left:1rem;color:rgb(var(--nextui-default-600))}.ProseMirror hr{border:none;border-top:1px solid rgb(var(--nextui-divider));margin:2rem 0}.ProseMirror a{color:rgb(var(--nextui-primary));text-decoration:underline;cursor:pointer}.ProseMirror a:hover{text-decoration:underline}.ProseMirror strong{font-weight:700!important}.ProseMirror em{font-style:italic!important}.ProseMirror s{text-decoration:line-through!important}.ProseMirror u{text-decoration:underline!important}.ProseMirror .has-text-align-left,.ProseMirror [style*="text-align: left"]{text-align:left!important}.ProseMirror .has-text-align-center,.ProseMirror [style*="text-align: center"]{text-align:center!important}.ProseMirror .has-text-align-right,.ProseMirror [style*="text-align: right"]{text-align:right!important}.ProseMirror .has-text-align-justify,.ProseMirror [style*="text-align: justify"]{text-align:justify!important}.ProseMirror ul li[style*="text-align: left"],.ProseMirror ol li[style*="text-align: left"]{text-align:left!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: center"],.ProseMirror ol li[style*="text-align: center"]{text-align:center!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: right"],.ProseMirror ol li[style*="text-align: right"]{text-align:right!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: justify"],.ProseMirror ol li[style*="text-align: justify"]{text-align:justify!important;list-style-position:inside!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: left"]{justify-content:flex-start!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: center"]{justify-content:center!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: right"]{justify-content:flex-end!important}.ProseMirror p.is-editor-empty:first-child:before{color:rgb(var(--nextui-default-400));content:attr(data-placeholder);float:left;height:0;pointer-events:none}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|