@veevarts/design-system 2.14.1 → 2.14.2
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.cjs +1 -1
- package/dist/index.js +630 -630
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as u, Fragment as fe } from "react/jsx-runtime";
|
|
2
|
-
import { HeroUIProvider as Rl, Button as wn, Card as Ne, CardBody as Ae, DatePicker as vr, Popover as Oa, PopoverTrigger as za, PopoverContent as Ia, ScrollShadow as Pl, TimeInput as Ol, Select as zl, Input as Le, cn as
|
|
2
|
+
import { HeroUIProvider as Rl, Button as wn, Card as Ne, CardBody as Ae, DatePicker as vr, Popover as Oa, PopoverTrigger as za, PopoverContent as Ia, ScrollShadow as Pl, TimeInput as Ol, Select as zl, Input as Le, cn as h, SelectItem as ht, Alert as lt, Tooltip as it, Divider as wt, Dropdown as aa, DropdownTrigger as na, DropdownMenu as ra, DropdownItem as It, ButtonGroup as Il, useInput as Tl, NumberInput as Ri, Image as ka, CardHeader as Pi, CardFooter as Bl, Chip as tt, Skeleton as ie, Autocomplete as Vl, AutocompleteItem as Ul, Checkbox as Ta, Modal as Bn, ModalContent as Vn, ModalHeader as Un, ModalBody as jn, ModalFooter as Oi, Accordion as Hn, AccordionItem as Wn, Tabs as qn, Tab as Ca, DropdownSection as wr, Spinner as zi, Switch as jl, CheckboxGroup as Hl, RadioGroup as Wl, Radio as ql, Table as Gl, TableHeader as Yl, TableColumn as Kl, TableBody as Ql, Avatar as Zl, Link as Xl, Textarea as Jl, Breadcrumbs as eo, BreadcrumbItem as to, useProviderContext as ao } from "@heroui/react";
|
|
3
3
|
export * from "@heroui/react";
|
|
4
4
|
import q, { createContext as ia, useContext as pt, forwardRef as Ft, useState as W, useEffect as we, createElement as Nn, useMemo as oe, useRef as pe, useId as Je, useReducer as no, useCallback as X, isValidElement as ro, useLayoutEffect as Ba, Fragment as io } from "react";
|
|
5
5
|
import { Clock3 as so, Globe as Nr, User as kr, Heading as Ii, Check as Ti, ListTodo as Bi, ListOrdered as Vi, List as Gn, AlignJustify as lo, AlignRight as oo, AlignCenter as co, AlignLeft as Ui, CornerDownLeft as uo, Redo2 as mo, Undo2 as fo, Eraser as Cr, Minus as ho, Quote as po, CodeSquare as go, FileText as bo, Link2 as xo, Highlighter as ji, Palette as Hi, Code as yo, Underline as vo, Strikethrough as wo, Italic as No, Bold as ko, X as Co, ZoomOut as So, ZoomIn as $o, Link as Ao, Clock as Sr, CheckCircle as Do, AlertCircle as Eo, Plus as Yn, CircleDollarSign as Wi } from "lucide-react";
|
|
@@ -459,10 +459,10 @@ function xc(e, t) {
|
|
|
459
459
|
const l = r.width, o = r.height, c = i.width, d = i.height;
|
|
460
460
|
let f, m;
|
|
461
461
|
l === null ? (m = o === null ? "1em" : o === "auto" ? d : o, f = Lr(m, c / d)) : (f = l === "auto" ? c : l, m = o === null ? Lr(f, d / c) : o === "auto" ? d : o);
|
|
462
|
-
const g = {},
|
|
462
|
+
const g = {}, p = (y, b) => {
|
|
463
463
|
bc(b) || (g[y] = b.toString());
|
|
464
464
|
};
|
|
465
|
-
|
|
465
|
+
p("width", f), p("height", m);
|
|
466
466
|
const x = [
|
|
467
467
|
i.left,
|
|
468
468
|
i.top,
|
|
@@ -720,8 +720,8 @@ function Ic(e, t, a, r) {
|
|
|
720
720
|
l = l.concat(M);
|
|
721
721
|
} else l = e.resources.slice(s).concat(e.resources.slice(0, s));
|
|
722
722
|
const o = Date.now();
|
|
723
|
-
let c = "pending", d = 0, f, m = null, g = [],
|
|
724
|
-
typeof r == "function" &&
|
|
723
|
+
let c = "pending", d = 0, f, m = null, g = [], p = [];
|
|
724
|
+
typeof r == "function" && p.push(r);
|
|
725
725
|
function x() {
|
|
726
726
|
m && (clearTimeout(m), m = null);
|
|
727
727
|
}
|
|
@@ -731,7 +731,7 @@ function Ic(e, t, a, r) {
|
|
|
731
731
|
}), g = [];
|
|
732
732
|
}
|
|
733
733
|
function b(M, C) {
|
|
734
|
-
C && (
|
|
734
|
+
C && (p = []), typeof M == "function" && p.push(M);
|
|
735
735
|
}
|
|
736
736
|
function N() {
|
|
737
737
|
return {
|
|
@@ -745,7 +745,7 @@ function Ic(e, t, a, r) {
|
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
747
|
function k() {
|
|
748
|
-
c = "failed",
|
|
748
|
+
c = "failed", p.forEach((M) => {
|
|
749
749
|
M(void 0, f);
|
|
750
750
|
});
|
|
751
751
|
}
|
|
@@ -777,7 +777,7 @@ function Ic(e, t, a, r) {
|
|
|
777
777
|
const R = e.resources.indexOf(M.resource);
|
|
778
778
|
R !== -1 && R !== e.index && (e.index = R);
|
|
779
779
|
}
|
|
780
|
-
c = "completed",
|
|
780
|
+
c = "completed", p.forEach((R) => {
|
|
781
781
|
R(D);
|
|
782
782
|
});
|
|
783
783
|
}
|
|
@@ -924,11 +924,11 @@ function jc(e, t) {
|
|
|
924
924
|
i.forEach((f) => {
|
|
925
925
|
const m = s(f, r, a);
|
|
926
926
|
Pr(m, (g) => {
|
|
927
|
-
const
|
|
927
|
+
const p = g ? {
|
|
928
928
|
prefix: r,
|
|
929
929
|
icons: { [f]: g }
|
|
930
930
|
} : null;
|
|
931
|
-
jt(e, [f],
|
|
931
|
+
jt(e, [f], p);
|
|
932
932
|
});
|
|
933
933
|
});
|
|
934
934
|
return;
|
|
@@ -966,8 +966,8 @@ const Hc = (e, t) => {
|
|
|
966
966
|
const m = i[d] || (i[d] = /* @__PURE__ */ Object.create(null));
|
|
967
967
|
m[f] || (m[f] = []);
|
|
968
968
|
}), r.pending.forEach((c) => {
|
|
969
|
-
const { provider: d, prefix: f, name: m } = c, g = Tt(d, f),
|
|
970
|
-
|
|
969
|
+
const { provider: d, prefix: f, name: m } = c, g = Tt(d, f), p = g.pendingIcons || (g.pendingIcons = /* @__PURE__ */ new Set());
|
|
970
|
+
p.has(m) || (p.add(m), i[d][f].push(m));
|
|
971
971
|
}), s.forEach((c) => {
|
|
972
972
|
const d = i[c.provider][c.prefix];
|
|
973
973
|
d.length && jc(c, d);
|
|
@@ -1155,10 +1155,10 @@ const rd = (e, t, a) => {
|
|
|
1155
1155
|
__html: ed(Nc(d.body, N ? () => N + "ID" + b++ : "iconifyReact"))
|
|
1156
1156
|
}, Nn("svg", c);
|
|
1157
1157
|
}
|
|
1158
|
-
const { body: m, width: g, height:
|
|
1158
|
+
const { body: m, width: g, height: p } = e, x = s === "mask" || (s === "bg" ? !1 : m.indexOf("currentColor") !== -1), y = Kc(m, {
|
|
1159
1159
|
...f,
|
|
1160
1160
|
width: g + "",
|
|
1161
|
-
height:
|
|
1161
|
+
height: p + ""
|
|
1162
1162
|
});
|
|
1163
1163
|
return c.style = {
|
|
1164
1164
|
...l,
|
|
@@ -1205,8 +1205,8 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
function cs(e) {
|
|
1207
1207
|
const [t, a] = W(!!e.ssr), [r, i] = W({});
|
|
1208
|
-
function s(
|
|
1209
|
-
if (
|
|
1208
|
+
function s(p) {
|
|
1209
|
+
if (p) {
|
|
1210
1210
|
const x = e.icon;
|
|
1211
1211
|
if (typeof x == "object")
|
|
1212
1212
|
return {
|
|
@@ -1226,15 +1226,15 @@ function cs(e) {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
const [l, o] = W(s(!!e.ssr));
|
|
1228
1228
|
function c() {
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1229
|
+
const p = r.callback;
|
|
1230
|
+
p && (p(), i({}));
|
|
1231
1231
|
}
|
|
1232
|
-
function d(
|
|
1233
|
-
if (JSON.stringify(l) !== JSON.stringify(
|
|
1234
|
-
return c(), o(
|
|
1232
|
+
function d(p) {
|
|
1233
|
+
if (JSON.stringify(l) !== JSON.stringify(p))
|
|
1234
|
+
return c(), o(p), !0;
|
|
1235
1235
|
}
|
|
1236
1236
|
function f() {
|
|
1237
|
-
var
|
|
1237
|
+
var p;
|
|
1238
1238
|
const x = e.icon;
|
|
1239
1239
|
if (typeof x == "object") {
|
|
1240
1240
|
d({
|
|
@@ -1253,7 +1253,7 @@ function cs(e) {
|
|
|
1253
1253
|
i({
|
|
1254
1254
|
callback: b
|
|
1255
1255
|
});
|
|
1256
|
-
} else y && ((
|
|
1256
|
+
} else y && ((p = e.onLoad) === null || p === void 0 || p.call(e, x));
|
|
1257
1257
|
}
|
|
1258
1258
|
we(() => (a(!0), c), []), we(() => {
|
|
1259
1259
|
t && f();
|
|
@@ -1359,10 +1359,10 @@ const ld = {
|
|
|
1359
1359
|
};
|
|
1360
1360
|
class Ua {
|
|
1361
1361
|
fromJulianDay(t) {
|
|
1362
|
-
let a = t, r = a - ds, i = Math.floor(r / 146097), s = en(r, 146097), l = Math.floor(s / 36524), o = en(s, 36524), c = Math.floor(o / 1461), d = en(o, 1461), f = Math.floor(d / 365), m = i * 400 + l * 100 + c * 4 + f + (l !== 4 && f !== 4 ? 1 : 0), [g,
|
|
1363
|
-
a < ma(g,
|
|
1364
|
-
let b = Math.floor(((x + y) * 12 + 373) / 367), N = a - ma(g,
|
|
1365
|
-
return new ea(g,
|
|
1362
|
+
let a = t, r = a - ds, i = Math.floor(r / 146097), s = en(r, 146097), l = Math.floor(s / 36524), o = en(s, 36524), c = Math.floor(o / 1461), d = en(o, 1461), f = Math.floor(d / 365), m = i * 400 + l * 100 + c * 4 + f + (l !== 4 && f !== 4 ? 1 : 0), [g, p] = sd(m), x = a - ma(g, p, 1, 1), y = 2;
|
|
1363
|
+
a < ma(g, p, 3, 1) ? y = 0 : va(p) && (y = 1);
|
|
1364
|
+
let b = Math.floor(((x + y) * 12 + 373) / 367), N = a - ma(g, p, b, 1) + 1;
|
|
1365
|
+
return new ea(g, p, b, N);
|
|
1366
1366
|
}
|
|
1367
1367
|
toJulianDay(t) {
|
|
1368
1368
|
return ma(t.era, t.year, t.month, t.day);
|
|
@@ -1875,8 +1875,8 @@ function Ad(e) {
|
|
|
1875
1875
|
defaultValue: c,
|
|
1876
1876
|
hourCycle: d = 12,
|
|
1877
1877
|
...f
|
|
1878
|
-
} = e, m = o !== void 0, [g,
|
|
1879
|
-
m ||
|
|
1878
|
+
} = e, m = o !== void 0, [g, p] = W(() => nn(c)), x = m ? nn(o) : g, y = oe(() => $d(t), [t]), b = (k) => {
|
|
1879
|
+
m || p(k), l?.(k);
|
|
1880
1880
|
}, N = /* @__PURE__ */ u(Oa, { placement: "bottom-end", children: [
|
|
1881
1881
|
/* @__PURE__ */ n(za, { children: /* @__PURE__ */ n(
|
|
1882
1882
|
wn,
|
|
@@ -1979,8 +1979,8 @@ function Cg({
|
|
|
1979
1979
|
removeAriaLabel: c = "Remove gift card",
|
|
1980
1980
|
testId: d = "veevart-redeem-code-input"
|
|
1981
1981
|
}) {
|
|
1982
|
-
const [f, m] = W(""), g = Je(), [
|
|
1983
|
-
e !==
|
|
1982
|
+
const [f, m] = W(""), g = Je(), [p, x] = W(e);
|
|
1983
|
+
e !== p && (x(e), e === "applied" && m(""));
|
|
1984
1984
|
const y = () => {
|
|
1985
1985
|
const k = f.trim();
|
|
1986
1986
|
k && t(k);
|
|
@@ -2163,7 +2163,7 @@ function Sg({
|
|
|
2163
2163
|
"nav",
|
|
2164
2164
|
{
|
|
2165
2165
|
"data-testid": "navbar",
|
|
2166
|
-
className:
|
|
2166
|
+
className: h(
|
|
2167
2167
|
"w-full px-4 md:px-8 py-3 bg-white border-b border-zinc-100 flex items-center justify-between",
|
|
2168
2168
|
f
|
|
2169
2169
|
),
|
|
@@ -2220,8 +2220,8 @@ function Ha(e, t, a) {
|
|
|
2220
2220
|
s.current = c;
|
|
2221
2221
|
});
|
|
2222
2222
|
let [, d] = no(() => ({}), {}), f = X((m, ...g) => {
|
|
2223
|
-
let
|
|
2224
|
-
Object.is(s.current,
|
|
2223
|
+
let p = typeof m == "function" ? m(s.current) : m;
|
|
2224
|
+
Object.is(s.current, p) || (s.current = p, i(p), d(), a?.(p, ...g));
|
|
2225
2225
|
}, [
|
|
2226
2226
|
a
|
|
2227
2227
|
]);
|
|
@@ -2263,14 +2263,14 @@ const Md = q.forwardRef(
|
|
|
2263
2263
|
layout: f = "compact",
|
|
2264
2264
|
stepCounterFormat: m,
|
|
2265
2265
|
onStepChange: g,
|
|
2266
|
-
currentStep:
|
|
2266
|
+
currentStep: p,
|
|
2267
2267
|
hideProgressBars: x = !1,
|
|
2268
2268
|
stepClassName: y,
|
|
2269
2269
|
className: b,
|
|
2270
2270
|
isDisabled: N = !1,
|
|
2271
2271
|
...k
|
|
2272
2272
|
}, A) => {
|
|
2273
|
-
const [w, $] = Ha(
|
|
2273
|
+
const [w, $] = Ha(p, r, g), M = q.useMemo(() => {
|
|
2274
2274
|
let C, D;
|
|
2275
2275
|
const S = [
|
|
2276
2276
|
"[--active-fg-color:hsl(var(--step-fg-color))]",
|
|
@@ -2311,7 +2311,7 @@ const Md = q.forwardRef(
|
|
|
2311
2311
|
{
|
|
2312
2312
|
ref: A,
|
|
2313
2313
|
"aria-label": "Progress",
|
|
2314
|
-
className:
|
|
2314
|
+
className: h(
|
|
2315
2315
|
"flex items-center overflow-x-auto",
|
|
2316
2316
|
f === "spread" ? "w-full justify-between gap-6" : "max-w-fit gap-3",
|
|
2317
2317
|
b
|
|
@@ -2328,7 +2328,7 @@ const Md = q.forwardRef(
|
|
|
2328
2328
|
children: i
|
|
2329
2329
|
}
|
|
2330
2330
|
),
|
|
2331
|
-
/* @__PURE__ */ n("ol", { className:
|
|
2331
|
+
/* @__PURE__ */ n("ol", { className: h("flex flex-row flex-nowrap gap-x-3", M, b), "data-testid": "stepper-list", children: Array.from({ length: a })?.map((C, D) => {
|
|
2332
2332
|
const S = w === D ? "active" : w < D ? "inactive" : "complete", R = t === "activeLabel" && S === "active" && !!s?.[D], L = l && S !== "active" && !!s?.[D];
|
|
2333
2333
|
return /* @__PURE__ */ u(
|
|
2334
2334
|
"li",
|
|
@@ -2351,7 +2351,7 @@ const Md = q.forwardRef(
|
|
|
2351
2351
|
"button",
|
|
2352
2352
|
{
|
|
2353
2353
|
"aria-current": S === "active" ? "step" : void 0,
|
|
2354
|
-
className:
|
|
2354
|
+
className: h(
|
|
2355
2355
|
"group rounded-large flex w-full cursor-pointer flex-row items-center justify-center gap-x-3 py-2.5",
|
|
2356
2356
|
{
|
|
2357
2357
|
"rounded-full border border-(--active-border-color)/20 bg-(--active-border-color)/10 pl-2 pr-4 py-1.5": R
|
|
@@ -2367,7 +2367,7 @@ const Md = q.forwardRef(
|
|
|
2367
2367
|
Sa.div,
|
|
2368
2368
|
{
|
|
2369
2369
|
animate: S,
|
|
2370
|
-
className:
|
|
2370
|
+
className: h(
|
|
2371
2371
|
"border-medium text-large text-default-foreground relative z-10 flex h-[26px] w-[26px] shrink-0 items-center justify-center rounded-full font-semibold bg-white",
|
|
2372
2372
|
{
|
|
2373
2373
|
"border-(--complete-border-color) bg-(--complete-background-color) text-(--active-fg-color)": R,
|
|
@@ -2430,7 +2430,7 @@ const Md = q.forwardRef(
|
|
|
2430
2430
|
children: /* @__PURE__ */ n(
|
|
2431
2431
|
"div",
|
|
2432
2432
|
{
|
|
2433
|
-
className:
|
|
2433
|
+
className: h(
|
|
2434
2434
|
"bg-default-200 relative h-0.5 w-full transition-colors duration-300",
|
|
2435
2435
|
"after:absolute after:block after:h-full after:w-0 after:bg-(--active-border-color) after:transition-[width] after:duration-300 after:content-['']",
|
|
2436
2436
|
{
|
|
@@ -2531,7 +2531,7 @@ const qr = {
|
|
|
2531
2531
|
inactiveLabelColor: f = Od,
|
|
2532
2532
|
activeStepVariant: m = "bordered",
|
|
2533
2533
|
stepClassName: g,
|
|
2534
|
-
circleClassName:
|
|
2534
|
+
circleClassName: p,
|
|
2535
2535
|
progressBarClassName: x,
|
|
2536
2536
|
labelsClassName: y,
|
|
2537
2537
|
labelSlotClassName: b,
|
|
@@ -2559,7 +2559,7 @@ const qr = {
|
|
|
2559
2559
|
"aria-label": w,
|
|
2560
2560
|
...M ? { "data-testid": M } : {},
|
|
2561
2561
|
children: [
|
|
2562
|
-
/* @__PURE__ */ n("div", { className:
|
|
2562
|
+
/* @__PURE__ */ n("div", { className: h("flex items-center", A), children: a?.map((G, z) => {
|
|
2563
2563
|
const te = z === R ? "active" : z < R ? "complete" : "inactive", Y = C ? C(z) : !0;
|
|
2564
2564
|
return /* @__PURE__ */ u(q.Fragment, { children: [
|
|
2565
2565
|
/* @__PURE__ */ n(
|
|
@@ -2576,7 +2576,7 @@ const qr = {
|
|
|
2576
2576
|
"aria-label": U(G, z),
|
|
2577
2577
|
"data-invalid": G.invalid ? "true" : void 0,
|
|
2578
2578
|
isDisabled: !Y,
|
|
2579
|
-
className:
|
|
2579
|
+
className: h(
|
|
2580
2580
|
// The circle inside owns the whole visual, so the
|
|
2581
2581
|
// Button contributes only the hit target and the
|
|
2582
2582
|
// system's focus ring. Its own box, fill and hover
|
|
@@ -2599,9 +2599,9 @@ const qr = {
|
|
|
2599
2599
|
Sa.div,
|
|
2600
2600
|
{
|
|
2601
2601
|
animate: te,
|
|
2602
|
-
className:
|
|
2602
|
+
className: h(
|
|
2603
2603
|
"relative flex size-8 items-center justify-center rounded-full text-[13px] font-medium",
|
|
2604
|
-
|
|
2604
|
+
p
|
|
2605
2605
|
),
|
|
2606
2606
|
initial: !1,
|
|
2607
2607
|
transition: { duration: 0.2 },
|
|
@@ -2640,7 +2640,7 @@ const qr = {
|
|
|
2640
2640
|
"div",
|
|
2641
2641
|
{
|
|
2642
2642
|
"aria-hidden": !0,
|
|
2643
|
-
className:
|
|
2643
|
+
className: h(
|
|
2644
2644
|
"mx-1 h-px w-6 shrink-0 transition-colors duration-300 sm:mx-1.5 sm:w-14 md:w-20",
|
|
2645
2645
|
x
|
|
2646
2646
|
),
|
|
@@ -2651,20 +2651,20 @@ const qr = {
|
|
|
2651
2651
|
)
|
|
2652
2652
|
] }, z);
|
|
2653
2653
|
}) }),
|
|
2654
|
-
/* @__PURE__ */ n("div", { className:
|
|
2654
|
+
/* @__PURE__ */ n("div", { className: h("mt-2.5 hidden md:flex", y), children: a?.map((G, z) => {
|
|
2655
2655
|
const te = z <= R;
|
|
2656
2656
|
return /* @__PURE__ */ u(q.Fragment, { children: [
|
|
2657
2657
|
/* @__PURE__ */ n(
|
|
2658
2658
|
"div",
|
|
2659
2659
|
{
|
|
2660
|
-
className:
|
|
2660
|
+
className: h(
|
|
2661
2661
|
"relative flex w-8 shrink-0 justify-center overflow-visible",
|
|
2662
2662
|
b
|
|
2663
2663
|
),
|
|
2664
2664
|
children: /* @__PURE__ */ n(
|
|
2665
2665
|
"span",
|
|
2666
2666
|
{
|
|
2667
|
-
className:
|
|
2667
|
+
className: h(
|
|
2668
2668
|
"absolute left-1/2 top-0 -translate-x-1/2 whitespace-nowrap text-center text-[12px] font-medium transition-colors duration-200",
|
|
2669
2669
|
te ? N : k
|
|
2670
2670
|
),
|
|
@@ -2679,7 +2679,7 @@ const qr = {
|
|
|
2679
2679
|
z < a.length - 1 && !l && /* @__PURE__ */ n(
|
|
2680
2680
|
"div",
|
|
2681
2681
|
{
|
|
2682
|
-
className:
|
|
2682
|
+
className: h(
|
|
2683
2683
|
"mx-1 w-6 shrink-0 sm:mx-1.5 sm:w-14 md:w-20",
|
|
2684
2684
|
x
|
|
2685
2685
|
)
|
|
@@ -2723,9 +2723,9 @@ const Eg = (e) => {
|
|
|
2723
2723
|
null
|
|
2724
2724
|
), [m, g] = W(
|
|
2725
2725
|
null
|
|
2726
|
-
),
|
|
2727
|
-
() => e.filter((L) => !
|
|
2728
|
-
[e,
|
|
2726
|
+
), p = oe(() => new Set(t), [t]), x = oe(() => new Set(e), [e]), y = oe(
|
|
2727
|
+
() => e.filter((L) => !p.has(L)),
|
|
2728
|
+
[e, p]
|
|
2729
2729
|
), b = (L) => {
|
|
2730
2730
|
if (L.length === 0) return;
|
|
2731
2731
|
const F = Array.from(/* @__PURE__ */ new Set([...t, ...L]));
|
|
@@ -3437,15 +3437,15 @@ function Yr({ editor: e, type: t, allowCustomColor: a = !0, label: r, isDisabled
|
|
|
3437
3437
|
editor: e,
|
|
3438
3438
|
config: { type: t, color: "" }
|
|
3439
3439
|
}), l(!1);
|
|
3440
|
-
},
|
|
3440
|
+
}, p = t === "textColor" ? e.isActive("textStyle") : e.isActive("highlight");
|
|
3441
3441
|
return /* @__PURE__ */ u(Oa, { isOpen: s, onOpenChange: l, placement: "top", offset: 10, showArrow: !0, children: [
|
|
3442
3442
|
/* @__PURE__ */ n(za, { children: /* @__PURE__ */ n(
|
|
3443
3443
|
V,
|
|
3444
3444
|
{
|
|
3445
3445
|
size: "sm",
|
|
3446
3446
|
radius: "sm",
|
|
3447
|
-
variant:
|
|
3448
|
-
color:
|
|
3447
|
+
variant: p ? "solid" : "bordered",
|
|
3448
|
+
color: p ? "primary" : "default",
|
|
3449
3449
|
isIconOnly: !0,
|
|
3450
3450
|
isDisabled: i,
|
|
3451
3451
|
"aria-label": r,
|
|
@@ -3550,8 +3550,8 @@ function Yd({
|
|
|
3550
3550
|
] });
|
|
3551
3551
|
}
|
|
3552
3552
|
function Kd({ editor: e, isDisabled: t = !1 }) {
|
|
3553
|
-
const [a, r] = W(!1), [i, s] = W(""), [l, o] = W(""), [c, d] = W(!1), f = e.isActive("link"), m = (
|
|
3554
|
-
if (
|
|
3553
|
+
const [a, r] = W(!1), [i, s] = W(""), [l, o] = W(""), [c, d] = W(!1), f = e.isActive("link"), m = (p) => {
|
|
3554
|
+
if (p) {
|
|
3555
3555
|
const { from: x, to: y } = e.state.selection, b = e.isActive("link");
|
|
3556
3556
|
let N = "";
|
|
3557
3557
|
if (b) {
|
|
@@ -3562,10 +3562,10 @@ function Kd({ editor: e, isDisabled: t = !1 }) {
|
|
|
3562
3562
|
const k = e.getAttributes("link").href || "";
|
|
3563
3563
|
s(N), o(k), d(b);
|
|
3564
3564
|
}
|
|
3565
|
-
r(
|
|
3565
|
+
r(p);
|
|
3566
3566
|
}, g = () => {
|
|
3567
3567
|
if (l.trim()) {
|
|
3568
|
-
const { from:
|
|
3568
|
+
const { from: p, to: x } = e.state.selection, y = e.schema.marks.link, b = e.state.doc.resolve(p), N = $r(b, y), k = N?.from ?? p, A = N?.to ?? x, w = e.state.doc.textBetween(k, A, "");
|
|
3569
3569
|
i.trim() && i !== w ? e.chain().focus().setTextSelection({ from: k, to: A }).deleteSelection().insertContent(`<a href="${l.trim()}">${i.trim()}</a>`).run() : e.chain().focus().extendMarkRange("link").updateAttributes("link", { href: l.trim() }).run();
|
|
3570
3570
|
}
|
|
3571
3571
|
r(!1);
|
|
@@ -3594,7 +3594,7 @@ function Kd({ editor: e, isDisabled: t = !1 }) {
|
|
|
3594
3594
|
labelPlacement: "outside",
|
|
3595
3595
|
placeholder: "Link text",
|
|
3596
3596
|
value: i,
|
|
3597
|
-
onChange: (
|
|
3597
|
+
onChange: (p) => s(p.target.value),
|
|
3598
3598
|
classNames: {
|
|
3599
3599
|
inputWrapper: "focus-within:border-default-400"
|
|
3600
3600
|
}
|
|
@@ -3609,8 +3609,8 @@ function Kd({ editor: e, isDisabled: t = !1 }) {
|
|
|
3609
3609
|
labelPlacement: "outside",
|
|
3610
3610
|
placeholder: "https://example.com",
|
|
3611
3611
|
value: l,
|
|
3612
|
-
onChange: (
|
|
3613
|
-
onKeyDown: (
|
|
3612
|
+
onChange: (p) => o(p.target.value),
|
|
3613
|
+
onKeyDown: (p) => p.key === "Enter" && g(),
|
|
3614
3614
|
classNames: {
|
|
3615
3615
|
inputWrapper: "focus-within:border-default-400"
|
|
3616
3616
|
}
|
|
@@ -3791,7 +3791,7 @@ function eu({
|
|
|
3791
3791
|
}) {
|
|
3792
3792
|
const o = Ms(e, t), { toggleModifier: c, executeCommand: d } = Rs(e, l);
|
|
3793
3793
|
if (!e) return null;
|
|
3794
|
-
const f = t.map((C) => ta(C)), m = f.some((C) => ["bold", "italic", "strike", "underline", "code"].includes(C)), g = f.some((C) => ["textColor", "highlight"].includes(C)),
|
|
3794
|
+
const f = t.map((C) => ta(C)), m = f.some((C) => ["bold", "italic", "strike", "underline", "code"].includes(C)), g = f.some((C) => ["textColor", "highlight"].includes(C)), p = f.includes("heading"), x = f.includes("textAlign"), y = f.some((C) => ["bulletList", "orderedList", "taskList"].includes(C)), b = f.includes("blockquote"), N = f.includes("codeBlock"), k = f.includes("link"), A = f.includes("horizontalRule"), w = f.some((C) => ["undo", "redo"].includes(C)), $ = a !== void 0 && r !== void 0;
|
|
3795
3795
|
return /* @__PURE__ */ n("div", { className: `w-full p-2 bg-background border-b border-divider ${i ? "sticky top-0 z-10" : ""} ${s || ""}`, children: /* @__PURE__ */ u("div", { className: "flex flex-row flex-wrap gap-2 w-full items-center", children: [
|
|
3796
3796
|
m && /* @__PURE__ */ u(fe, { children: [
|
|
3797
3797
|
/* @__PURE__ */ n(
|
|
@@ -3802,7 +3802,7 @@ function eu({
|
|
|
3802
3802
|
onToolbarAction: l
|
|
3803
3803
|
}
|
|
3804
3804
|
),
|
|
3805
|
-
(g ||
|
|
3805
|
+
(g || p || x || y || b || N || k || A || w || $) && /* @__PURE__ */ n(Ct, {})
|
|
3806
3806
|
] }),
|
|
3807
3807
|
g && /* @__PURE__ */ u(fe, { children: [
|
|
3808
3808
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-1", children: [
|
|
@@ -3825,9 +3825,9 @@ function eu({
|
|
|
3825
3825
|
}
|
|
3826
3826
|
)
|
|
3827
3827
|
] }),
|
|
3828
|
-
(
|
|
3828
|
+
(p || x || y || b || N || k || A || w || $) && /* @__PURE__ */ n(Ct, {})
|
|
3829
3829
|
] }),
|
|
3830
|
-
|
|
3830
|
+
p && /* @__PURE__ */ u(fe, { children: [
|
|
3831
3831
|
/* @__PURE__ */ n(Bd, { editor: e }),
|
|
3832
3832
|
(x || y || b || N || k || A || w || $) && /* @__PURE__ */ n(Ct, {})
|
|
3833
3833
|
] }),
|
|
@@ -4157,7 +4157,7 @@ function au(e) {
|
|
|
4157
4157
|
const f = c.defaultOptions ? c.extension.configure(c.defaultOptions) : c.extension;
|
|
4158
4158
|
t.push(f), a.add(o), r.add(d);
|
|
4159
4159
|
}), t.sort((o, c) => {
|
|
4160
|
-
const d = Object.values(Ht).find((
|
|
4160
|
+
const d = Object.values(Ht).find((p) => p?.extension?.name === o.name), f = Object.values(Ht).find((p) => p?.extension?.name === c.name), m = d?.priority ?? 100;
|
|
4161
4161
|
return (f?.priority ?? 100) - m;
|
|
4162
4162
|
});
|
|
4163
4163
|
}
|
|
@@ -4362,7 +4362,7 @@ const lu = ({
|
|
|
4362
4362
|
initialContent: f,
|
|
4363
4363
|
content: m,
|
|
4364
4364
|
onContentChange: g,
|
|
4365
|
-
onUpdate:
|
|
4365
|
+
onUpdate: p,
|
|
4366
4366
|
onToolbarAction: x,
|
|
4367
4367
|
isReadOnly: y = !1,
|
|
4368
4368
|
isDisabled: b = !1,
|
|
@@ -4383,7 +4383,7 @@ const lu = ({
|
|
|
4383
4383
|
characters: ee,
|
|
4384
4384
|
words: J
|
|
4385
4385
|
};
|
|
4386
|
-
if (g?.(K),
|
|
4386
|
+
if (g?.(K), p?.(K), "onChange" in k && typeof k.onChange == "function") {
|
|
4387
4387
|
const ce = {
|
|
4388
4388
|
target: { value: Y },
|
|
4389
4389
|
currentTarget: { value: Y }
|
|
@@ -4391,7 +4391,7 @@ const lu = ({
|
|
|
4391
4391
|
k.onChange(ce);
|
|
4392
4392
|
}
|
|
4393
4393
|
},
|
|
4394
|
-
[g,
|
|
4394
|
+
[g, p, k, N]
|
|
4395
4395
|
);
|
|
4396
4396
|
return /* @__PURE__ */ u(S, { ...F(), children: [
|
|
4397
4397
|
L ? U : null,
|
|
@@ -4399,7 +4399,7 @@ const lu = ({
|
|
|
4399
4399
|
"div",
|
|
4400
4400
|
{
|
|
4401
4401
|
...T(),
|
|
4402
|
-
className:
|
|
4402
|
+
className: h(T().className, "flex flex-col w-full p-0 gap-0 rich-text-editor"),
|
|
4403
4403
|
style: {
|
|
4404
4404
|
maxHeight: C ? `${C + Gr.toolbarHeight}px` : void 0,
|
|
4405
4405
|
overflow: C ? "auto" : void 0
|
|
@@ -4484,7 +4484,7 @@ const Kr = [
|
|
|
4484
4484
|
labels: f,
|
|
4485
4485
|
mobileColumns: m = 2,
|
|
4486
4486
|
desktopColumns: g = 3,
|
|
4487
|
-
isDisabled:
|
|
4487
|
+
isDisabled: p = !1,
|
|
4488
4488
|
buttonVariant: x = "bordered",
|
|
4489
4489
|
buttonColor: y = "default",
|
|
4490
4490
|
inputVariant: b = "bordered",
|
|
@@ -4506,7 +4506,7 @@ const Kr = [
|
|
|
4506
4506
|
r
|
|
4507
4507
|
), [L, F] = W(""), [P, T] = W(!1), [U, G] = W(0), z = X(
|
|
4508
4508
|
(ee) => {
|
|
4509
|
-
if (
|
|
4509
|
+
if (p) return;
|
|
4510
4510
|
const J = {
|
|
4511
4511
|
amount: ee.amount,
|
|
4512
4512
|
isCustom: !1,
|
|
@@ -4514,10 +4514,10 @@ const Kr = [
|
|
|
4514
4514
|
};
|
|
4515
4515
|
R(J), F(""), T(!1), G((K) => K + 1), i?.(J);
|
|
4516
4516
|
},
|
|
4517
|
-
[
|
|
4517
|
+
[p, R, i]
|
|
4518
4518
|
), te = X(
|
|
4519
4519
|
(ee) => {
|
|
4520
|
-
if (
|
|
4520
|
+
if (p) return;
|
|
4521
4521
|
if (F(ee !== void 0 ? String(ee) : ""), i) {
|
|
4522
4522
|
R(null);
|
|
4523
4523
|
return;
|
|
@@ -4531,12 +4531,12 @@ const Kr = [
|
|
|
4531
4531
|
isCustom: !0
|
|
4532
4532
|
});
|
|
4533
4533
|
},
|
|
4534
|
-
[
|
|
4534
|
+
[p, R, i]
|
|
4535
4535
|
), Y = X(() => {
|
|
4536
|
-
if (
|
|
4536
|
+
if (p) return;
|
|
4537
4537
|
const ee = L !== "" ? parseFloat(L) : void 0;
|
|
4538
4538
|
ee === void 0 || isNaN(ee) || i?.({ amount: ee, isCustom: !0 });
|
|
4539
|
-
}, [
|
|
4539
|
+
}, [p, L, i]), re = q.useMemo(
|
|
4540
4540
|
() => ({
|
|
4541
4541
|
style: "currency",
|
|
4542
4542
|
currency: s,
|
|
@@ -4547,7 +4547,7 @@ const Kr = [
|
|
|
4547
4547
|
[s]
|
|
4548
4548
|
), Q = /* @__PURE__ */ u("div", { className: "space-y-4", "data-testid": "donation-amounts-root", children: [
|
|
4549
4549
|
w.title && /* @__PURE__ */ n("h2", { className: "text-base font-semibold", "data-testid": "donation-amounts-title", children: w.title }),
|
|
4550
|
-
$.length > 0 && /* @__PURE__ */ n("div", { className:
|
|
4550
|
+
$.length > 0 && /* @__PURE__ */ n("div", { className: h("grid gap-3", D), "data-testid": "donation-amounts-presets", children: $.map((ee) => {
|
|
4551
4551
|
const J = S !== null && !S.isCustom && S.presetId === ee.id;
|
|
4552
4552
|
return /* @__PURE__ */ n(
|
|
4553
4553
|
V,
|
|
@@ -4556,7 +4556,7 @@ const Kr = [
|
|
|
4556
4556
|
variant: J ? "solid" : x,
|
|
4557
4557
|
className: "w-full",
|
|
4558
4558
|
onPress: () => z(ee),
|
|
4559
|
-
isDisabled:
|
|
4559
|
+
isDisabled: p,
|
|
4560
4560
|
"data-testid": `donation-amounts-preset-${ee.id}`,
|
|
4561
4561
|
children: ee.label || du(ee.amount, l, s)
|
|
4562
4562
|
},
|
|
@@ -4581,7 +4581,7 @@ const Kr = [
|
|
|
4581
4581
|
formatOptions: re,
|
|
4582
4582
|
value: L !== "" ? parseFloat(L) : void 0,
|
|
4583
4583
|
onValueChange: te,
|
|
4584
|
-
isDisabled:
|
|
4584
|
+
isDisabled: p,
|
|
4585
4585
|
className: "flex-1 [&_[data-slot=input-wrapper]]:!h-10 [&_[data-slot=input-wrapper]]:!min-h-10",
|
|
4586
4586
|
"data-testid": "donation-amounts-custom-input",
|
|
4587
4587
|
hideStepper: !0
|
|
@@ -4597,14 +4597,14 @@ const Kr = [
|
|
|
4597
4597
|
size: N,
|
|
4598
4598
|
className: "shrink-0",
|
|
4599
4599
|
onPress: Y,
|
|
4600
|
-
isDisabled:
|
|
4600
|
+
isDisabled: p || !P,
|
|
4601
4601
|
"data-testid": "donation-amounts-add-button",
|
|
4602
4602
|
children: w.addDonationButton
|
|
4603
4603
|
}
|
|
4604
4604
|
)
|
|
4605
4605
|
] })
|
|
4606
4606
|
] });
|
|
4607
|
-
return A ? /* @__PURE__ */ n(Ne, { className:
|
|
4607
|
+
return A ? /* @__PURE__ */ n(Ne, { className: h("w-full", k), "data-testid": "donation-amounts-card", children: /* @__PURE__ */ n(Ae, { children: Q }) }) : /* @__PURE__ */ n("div", { className: h("w-full", k), "data-testid": "donation-amounts-plain", children: Q });
|
|
4608
4608
|
};
|
|
4609
4609
|
mu.displayName = "DonationAmounts";
|
|
4610
4610
|
const fu = (e) => {
|
|
@@ -4654,7 +4654,7 @@ const fu = (e) => {
|
|
|
4654
4654
|
autoStart: f = !0,
|
|
4655
4655
|
formatTime: m = fu,
|
|
4656
4656
|
className: g,
|
|
4657
|
-
...
|
|
4657
|
+
...p
|
|
4658
4658
|
}, x) => {
|
|
4659
4659
|
const [y, b] = Ha(
|
|
4660
4660
|
e !== void 0 ? Math.max(0, e) : void 0,
|
|
@@ -4689,8 +4689,8 @@ const fu = (e) => {
|
|
|
4689
4689
|
"aria-live": "polite",
|
|
4690
4690
|
"aria-label": `${l} ${m(y)}`,
|
|
4691
4691
|
"data-testid": "expire-cart-timer",
|
|
4692
|
-
className:
|
|
4693
|
-
...
|
|
4692
|
+
className: h("w-full text-white z-50", w, $[d], g),
|
|
4693
|
+
...p,
|
|
4694
4694
|
children: /* @__PURE__ */ n("div", { className: "container mx-auto px-4 py-3 sm:py-2.5", "data-testid": "expire-cart-timer-container", children: /* @__PURE__ */ u("div", { className: "flex items-center justify-between gap-3 sm:gap-4", children: [
|
|
4695
4695
|
/* @__PURE__ */ u(
|
|
4696
4696
|
"div",
|
|
@@ -4762,7 +4762,7 @@ const _t = ({
|
|
|
4762
4762
|
showMoreButtonClassName: m,
|
|
4763
4763
|
labels: g
|
|
4764
4764
|
}) => {
|
|
4765
|
-
const [
|
|
4765
|
+
const [p, x] = W(!1), [y, b] = W(!1), N = pe(null);
|
|
4766
4766
|
return we(() => {
|
|
4767
4767
|
const k = () => {
|
|
4768
4768
|
if (N.current) {
|
|
@@ -4771,7 +4771,7 @@ const _t = ({
|
|
|
4771
4771
|
}
|
|
4772
4772
|
};
|
|
4773
4773
|
return k(), window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
|
|
4774
|
-
}, [l]), d === "horizontal" ? /* @__PURE__ */ n(Ne, { className:
|
|
4774
|
+
}, [l]), d === "horizontal" ? /* @__PURE__ */ n(Ne, { className: h("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: [
|
|
4775
4775
|
o && a && /* @__PURE__ */ n(
|
|
4776
4776
|
"div",
|
|
4777
4777
|
{
|
|
@@ -4804,27 +4804,27 @@ const _t = ({
|
|
|
4804
4804
|
"div",
|
|
4805
4805
|
{
|
|
4806
4806
|
ref: N,
|
|
4807
|
-
className:
|
|
4807
|
+
className: h("text-sm text-gray-700 leading-relaxed transition-all", !p && "line-clamp-3"),
|
|
4808
4808
|
"data-testid": "event-details-description",
|
|
4809
4809
|
dangerouslySetInnerHTML: { __html: l }
|
|
4810
4810
|
}
|
|
4811
4811
|
),
|
|
4812
|
-
!
|
|
4812
|
+
!p && y && /* @__PURE__ */ n("div", { className: "absolute inset-x-0 -bottom-1 h-8 bg-gradient-to-t from-white via-white/70 to-transparent pointer-events-none", "data-testid": "event-details-description-fade" })
|
|
4813
4813
|
] }),
|
|
4814
|
-
(y ||
|
|
4814
|
+
(y || p) && /* @__PURE__ */ n("div", { className: "flex justify-end mt-1", children: /* @__PURE__ */ n(V, { onPress: () => x(!p), variant: "light", className: h("text-primary", m), size: "md", startContent: /* @__PURE__ */ n(I, { icon: p ? "solar:eye-closed-linear" : "solar:eye-linear", width: 20 }), "data-testid": "event-details-toggle-description", children: p ? g.showLess || "Hide" : g.showMore || "Show" }) })
|
|
4815
4815
|
] })
|
|
4816
4816
|
] })
|
|
4817
|
-
] }) }) }) : /* @__PURE__ */ u(Ne, { className:
|
|
4817
|
+
] }) }) }) : /* @__PURE__ */ u(Ne, { className: h("border-0 shadow-none", e), "data-testid": "event-details-root", children: [
|
|
4818
4818
|
/* @__PURE__ */ u(
|
|
4819
4819
|
Pi,
|
|
4820
4820
|
{
|
|
4821
|
-
className:
|
|
4821
|
+
className: h("pt-2 pb-0 flex-col items-start", c ? "space-y-1" : "space-y-2"),
|
|
4822
4822
|
"data-testid": "event-details-header",
|
|
4823
4823
|
children: [
|
|
4824
4824
|
o && a && /* @__PURE__ */ n(
|
|
4825
4825
|
"div",
|
|
4826
4826
|
{
|
|
4827
|
-
className:
|
|
4827
|
+
className: h("w-full overflow-hidden rounded-xl", "aspect-[3/1]"),
|
|
4828
4828
|
"data-testid": "event-details-image-wrapper",
|
|
4829
4829
|
children: /* @__PURE__ */ n(
|
|
4830
4830
|
ka,
|
|
@@ -4842,7 +4842,7 @@ const _t = ({
|
|
|
4842
4842
|
/* @__PURE__ */ n(
|
|
4843
4843
|
"h2",
|
|
4844
4844
|
{
|
|
4845
|
-
className:
|
|
4845
|
+
className: h("font-semibold text-gray-800", c ? "text-base" : "text-xl"),
|
|
4846
4846
|
"data-testid": "event-details-title",
|
|
4847
4847
|
children: t
|
|
4848
4848
|
}
|
|
@@ -4850,8 +4850,8 @@ const _t = ({
|
|
|
4850
4850
|
]
|
|
4851
4851
|
}
|
|
4852
4852
|
),
|
|
4853
|
-
/* @__PURE__ */ u(Ae, { className:
|
|
4854
|
-
/* @__PURE__ */ n("h3", { className:
|
|
4853
|
+
/* @__PURE__ */ u(Ae, { className: h("space-y-3", c ? "py-1 space-y-2" : "py-3"), "data-testid": "event-details-body", children: [
|
|
4854
|
+
/* @__PURE__ */ n("h3", { className: h("font-semibold text-base text-gray-700", c ? "text-sm" : ""), "data-testid": "event-details-info-label", children: g.eventInformation }),
|
|
4855
4855
|
/* @__PURE__ */ u("div", { className: "flex flex-wrap gap-4", "data-testid": "event-details-info", children: [
|
|
4856
4856
|
r && /* @__PURE__ */ n(_t, { icon: "solar:calendar-minimalistic-linear", testId: "event-details-date", children: r }),
|
|
4857
4857
|
i && /* @__PURE__ */ n(_t, { icon: "solar:clock-circle-linear", testId: "event-details-time", children: i }),
|
|
@@ -4863,16 +4863,16 @@ const _t = ({
|
|
|
4863
4863
|
"div",
|
|
4864
4864
|
{
|
|
4865
4865
|
ref: N,
|
|
4866
|
-
className:
|
|
4866
|
+
className: h(
|
|
4867
4867
|
"text-sm text-gray-700 leading-relaxed transition-all",
|
|
4868
4868
|
c ? "text-xs" : "",
|
|
4869
|
-
!
|
|
4869
|
+
!p && "line-clamp-3"
|
|
4870
4870
|
),
|
|
4871
4871
|
"data-testid": "event-details-description",
|
|
4872
4872
|
dangerouslySetInnerHTML: { __html: l }
|
|
4873
4873
|
}
|
|
4874
4874
|
),
|
|
4875
|
-
!
|
|
4875
|
+
!p && y && /* @__PURE__ */ n(
|
|
4876
4876
|
"div",
|
|
4877
4877
|
{
|
|
4878
4878
|
className: "absolute inset-x-0 -bottom-1 h-8 bg-gradient-to-t from-white via-white/70 to-transparent pointer-events-none",
|
|
@@ -4880,22 +4880,22 @@ const _t = ({
|
|
|
4880
4880
|
}
|
|
4881
4881
|
)
|
|
4882
4882
|
] }),
|
|
4883
|
-
(y ||
|
|
4883
|
+
(y || p) && /* @__PURE__ */ n("div", { className: "flex justify-end mt-1", children: /* @__PURE__ */ n(
|
|
4884
4884
|
V,
|
|
4885
4885
|
{
|
|
4886
|
-
onPress: () => x(!
|
|
4886
|
+
onPress: () => x(!p),
|
|
4887
4887
|
variant: "light",
|
|
4888
|
-
className:
|
|
4888
|
+
className: h("text-primary", m),
|
|
4889
4889
|
size: c ? "sm" : "md",
|
|
4890
4890
|
startContent: /* @__PURE__ */ n(
|
|
4891
4891
|
I,
|
|
4892
4892
|
{
|
|
4893
|
-
icon:
|
|
4893
|
+
icon: p ? "solar:eye-closed-linear" : "solar:eye-linear",
|
|
4894
4894
|
width: c ? 16 : 20
|
|
4895
4895
|
}
|
|
4896
4896
|
),
|
|
4897
4897
|
"data-testid": "event-details-toggle-description",
|
|
4898
|
-
children:
|
|
4898
|
+
children: p ? g.showLess || "Hide" : g.showMore || "Show"
|
|
4899
4899
|
}
|
|
4900
4900
|
) })
|
|
4901
4901
|
] })
|
|
@@ -4943,7 +4943,7 @@ const bu = {
|
|
|
4943
4943
|
buttonColor: f = "default",
|
|
4944
4944
|
showCard: m = !0,
|
|
4945
4945
|
showDescription: g = !0,
|
|
4946
|
-
showPeopleCount:
|
|
4946
|
+
showPeopleCount: p = !0,
|
|
4947
4947
|
showPrice: x = !0,
|
|
4948
4948
|
priceDisplay: y,
|
|
4949
4949
|
classNames: b = {},
|
|
@@ -4987,7 +4987,7 @@ const bu = {
|
|
|
4987
4987
|
"h2",
|
|
4988
4988
|
{
|
|
4989
4989
|
"data-testid": "offer-card-name",
|
|
4990
|
-
className:
|
|
4990
|
+
className: h("text-base font-medium", z && "text-sm", b.name),
|
|
4991
4991
|
children: e.name
|
|
4992
4992
|
}
|
|
4993
4993
|
), Ue = () => {
|
|
@@ -5002,7 +5002,7 @@ const bu = {
|
|
|
5002
5002
|
"div",
|
|
5003
5003
|
{
|
|
5004
5004
|
"data-testid": "offer-card-price",
|
|
5005
|
-
className:
|
|
5005
|
+
className: h(
|
|
5006
5006
|
"flex items-center gap-2 mt-1",
|
|
5007
5007
|
z && "mt-0.5",
|
|
5008
5008
|
b.price
|
|
@@ -5019,7 +5019,7 @@ const bu = {
|
|
|
5019
5019
|
{
|
|
5020
5020
|
"aria-hidden": "true",
|
|
5021
5021
|
"data-testid": "offer-card-original-price",
|
|
5022
|
-
className:
|
|
5022
|
+
className: h(
|
|
5023
5023
|
"text-gray-400 line-through text-sm",
|
|
5024
5024
|
z && "text-xs",
|
|
5025
5025
|
b.originalPrice
|
|
@@ -5032,7 +5032,7 @@ const bu = {
|
|
|
5032
5032
|
{
|
|
5033
5033
|
"aria-hidden": "true",
|
|
5034
5034
|
"data-testid": "offer-card-discounted-price",
|
|
5035
|
-
className:
|
|
5035
|
+
className: h(
|
|
5036
5036
|
"text-primary text-base font-semibold",
|
|
5037
5037
|
z && "text-sm",
|
|
5038
5038
|
b.discountedPrice
|
|
@@ -5048,7 +5048,7 @@ const bu = {
|
|
|
5048
5048
|
"p",
|
|
5049
5049
|
{
|
|
5050
5050
|
"data-testid": "offer-card-price",
|
|
5051
|
-
className:
|
|
5051
|
+
className: h("text-primary text-base mt-1", z && "text-sm mt-0.5", b.price),
|
|
5052
5052
|
children: nt
|
|
5053
5053
|
}
|
|
5054
5054
|
);
|
|
@@ -5056,7 +5056,7 @@ const bu = {
|
|
|
5056
5056
|
"p",
|
|
5057
5057
|
{
|
|
5058
5058
|
"data-testid": "offer-card-description",
|
|
5059
|
-
className:
|
|
5059
|
+
className: h(
|
|
5060
5060
|
"mb-4 text-sm text-gray-700 leading-relaxed",
|
|
5061
5061
|
z && "mb-2 text-xs text-gray-600",
|
|
5062
5062
|
b.description
|
|
@@ -5064,14 +5064,14 @@ const bu = {
|
|
|
5064
5064
|
children: e.description
|
|
5065
5065
|
}
|
|
5066
5066
|
), ot = () => {
|
|
5067
|
-
if (!
|
|
5067
|
+
if (!p || !Mt(e.numberOfPeople) || e.numberOfPeople <= 0)
|
|
5068
5068
|
return null;
|
|
5069
5069
|
const me = e.numberOfPeople === 1 ? F.person : F.people;
|
|
5070
5070
|
return o?.renderPeopleCount ? o.renderPeopleCount(e.numberOfPeople, me, e) : /* @__PURE__ */ u(
|
|
5071
5071
|
"p",
|
|
5072
5072
|
{
|
|
5073
5073
|
"data-testid": "offer-card-people-count",
|
|
5074
|
-
className:
|
|
5074
|
+
className: h("text-sm text-gray-600 flex items-center mt-2", z && "mt-1 text-xs", b.peopleCount),
|
|
5075
5075
|
children: [
|
|
5076
5076
|
/* @__PURE__ */ n(
|
|
5077
5077
|
I,
|
|
@@ -5096,7 +5096,7 @@ const bu = {
|
|
|
5096
5096
|
isDecrementDisabled: me,
|
|
5097
5097
|
isIncrementDisabled: Ee,
|
|
5098
5098
|
isDisabled: J
|
|
5099
|
-
}) : /* @__PURE__ */ u("div", { className:
|
|
5099
|
+
}) : /* @__PURE__ */ u("div", { className: h("flex items-center gap-2", b.quantitySelector), children: [
|
|
5100
5100
|
/* @__PURE__ */ n(
|
|
5101
5101
|
V,
|
|
5102
5102
|
{
|
|
@@ -5112,7 +5112,7 @@ const bu = {
|
|
|
5112
5112
|
children: /* @__PURE__ */ n(I, { icon: "gravity-ui:minus", width: 16 })
|
|
5113
5113
|
}
|
|
5114
5114
|
),
|
|
5115
|
-
/* @__PURE__ */ n("span", { "data-testid": "offer-card-quantity", className:
|
|
5115
|
+
/* @__PURE__ */ n("span", { "data-testid": "offer-card-quantity", className: h("min-w-[2rem] text-center font-medium", z && "text-sm"), children: U }),
|
|
5116
5116
|
/* @__PURE__ */ n(
|
|
5117
5117
|
V,
|
|
5118
5118
|
{
|
|
@@ -5135,7 +5135,7 @@ const bu = {
|
|
|
5135
5135
|
"data-testid": Ge[me],
|
|
5136
5136
|
color: le[me],
|
|
5137
5137
|
variant: me === "maxReached" ? "flat" : "solid",
|
|
5138
|
-
className:
|
|
5138
|
+
className: h(
|
|
5139
5139
|
"gap-2 px-4",
|
|
5140
5140
|
me === "maxReached" ? "h-8" : "h-10",
|
|
5141
5141
|
me === "soldOut" && b.soldOut,
|
|
@@ -5148,7 +5148,7 @@ const bu = {
|
|
|
5148
5148
|
), gt = /* @__PURE__ */ u(
|
|
5149
5149
|
"div",
|
|
5150
5150
|
{
|
|
5151
|
-
className:
|
|
5151
|
+
className: h(
|
|
5152
5152
|
"grid grid-cols-1 md:grid-cols-1 xl:grid-cols-3 lg:grid-cols-3 items-start",
|
|
5153
5153
|
z ? "gap-1" : "gap-2"
|
|
5154
5154
|
),
|
|
@@ -5156,7 +5156,7 @@ const bu = {
|
|
|
5156
5156
|
/* @__PURE__ */ u(
|
|
5157
5157
|
"div",
|
|
5158
5158
|
{
|
|
5159
|
-
className:
|
|
5159
|
+
className: h(
|
|
5160
5160
|
"h-full col-span-2",
|
|
5161
5161
|
J || re ? "opacity-50 pointer-events-none select-none" : ""
|
|
5162
5162
|
),
|
|
@@ -5166,7 +5166,7 @@ const bu = {
|
|
|
5166
5166
|
/* @__PURE__ */ u(
|
|
5167
5167
|
"div",
|
|
5168
5168
|
{
|
|
5169
|
-
className:
|
|
5169
|
+
className: h(
|
|
5170
5170
|
"md:col-span-1 xl:col-span-2 lg:col-span-1",
|
|
5171
5171
|
z ? "mb-1" : "mb-2"
|
|
5172
5172
|
),
|
|
@@ -5182,7 +5182,7 @@ const bu = {
|
|
|
5182
5182
|
!te && /* @__PURE__ */ n(
|
|
5183
5183
|
"div",
|
|
5184
5184
|
{
|
|
5185
|
-
className:
|
|
5185
|
+
className: h(
|
|
5186
5186
|
"space-x-2 pt-0 pb-2 md:p-2 h-full flex items-center justify-start md:justify-start lg:justify-end",
|
|
5187
5187
|
z && "space-x-1 pb-1 md:p-1",
|
|
5188
5188
|
b.compactFooter
|
|
@@ -5195,7 +5195,7 @@ const bu = {
|
|
|
5195
5195
|
), Ye = re && !Y && !Q && !G ? /* @__PURE__ */ n(
|
|
5196
5196
|
$a.div,
|
|
5197
5197
|
{
|
|
5198
|
-
className:
|
|
5198
|
+
className: h("w-full sm:max-w-[60%] md:max-w-[60%] lg:max-w-[60%]", b.compactFooter),
|
|
5199
5199
|
initial: { opacity: 0, y: 10 },
|
|
5200
5200
|
animate: { opacity: 1, y: 0 },
|
|
5201
5201
|
exit: { opacity: 0, y: 10 },
|
|
@@ -5206,23 +5206,23 @@ const bu = {
|
|
|
5206
5206
|
return m ? /* @__PURE__ */ u(
|
|
5207
5207
|
Ne,
|
|
5208
5208
|
{
|
|
5209
|
-
className:
|
|
5209
|
+
className: h("w-full", te && !J && !re && "cursor-pointer", z && b.compact, b.base),
|
|
5210
5210
|
"data-testid": N || `offer-card-${e.id}`,
|
|
5211
5211
|
isPressable: te && !J && !re,
|
|
5212
5212
|
onPress: te && !J && !re ? () => K(1) : void 0,
|
|
5213
5213
|
children: [
|
|
5214
|
-
/* @__PURE__ */ n(Ae, { className:
|
|
5215
|
-
/* @__PURE__ */ n(kn, { children: Ye && /* @__PURE__ */ n(Bl, { className:
|
|
5214
|
+
/* @__PURE__ */ n(Ae, { className: h("pt-1 pb-0", z ? "pb-0.5" : "", b.body), children: gt }),
|
|
5215
|
+
/* @__PURE__ */ n(kn, { children: Ye && /* @__PURE__ */ n(Bl, { className: h("w-full mt-0 pt-0", z ? "pt-1" : "", b.footer), children: Ye }) })
|
|
5216
5216
|
]
|
|
5217
5217
|
}
|
|
5218
5218
|
) : /* @__PURE__ */ u(
|
|
5219
5219
|
"div",
|
|
5220
5220
|
{
|
|
5221
|
-
className:
|
|
5221
|
+
className: h("w-full", z && b.compact, b.base),
|
|
5222
5222
|
"data-testid": N || `offer-card-${e.id}`,
|
|
5223
5223
|
children: [
|
|
5224
|
-
/* @__PURE__ */ n("div", { className:
|
|
5225
|
-
/* @__PURE__ */ n(kn, { children: Ye && /* @__PURE__ */ n("div", { className:
|
|
5224
|
+
/* @__PURE__ */ n("div", { className: h("pt-1 pb-0", z ? "pb-0.5" : "", b.body), children: gt }),
|
|
5225
|
+
/* @__PURE__ */ n(kn, { children: Ye && /* @__PURE__ */ n("div", { className: h("w-full mt-0 pt-0", z ? "pt-1" : "", b.footer), children: Ye }) })
|
|
5226
5226
|
]
|
|
5227
5227
|
}
|
|
5228
5228
|
);
|
|
@@ -5238,13 +5238,13 @@ const xu = ({
|
|
|
5238
5238
|
}) => {
|
|
5239
5239
|
if (s) {
|
|
5240
5240
|
const o = s();
|
|
5241
|
-
return r ? /* @__PURE__ */ n(Ne, { "data-testid": "offer-card-empty", className:
|
|
5241
|
+
return r ? /* @__PURE__ */ n(Ne, { "data-testid": "offer-card-empty", className: h("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: h("w-full", i.base), children: o });
|
|
5242
5242
|
}
|
|
5243
5243
|
const l = /* @__PURE__ */ u(
|
|
5244
5244
|
"div",
|
|
5245
5245
|
{
|
|
5246
5246
|
"data-testid": "offer-card-empty-content",
|
|
5247
|
-
className:
|
|
5247
|
+
className: h(
|
|
5248
5248
|
"flex flex-col items-center justify-center p-8 text-center text-gray-500",
|
|
5249
5249
|
i.content
|
|
5250
5250
|
),
|
|
@@ -5255,14 +5255,14 @@ const xu = ({
|
|
|
5255
5255
|
"data-testid": "offer-card-empty-icon",
|
|
5256
5256
|
icon: t,
|
|
5257
5257
|
width: a,
|
|
5258
|
-
className:
|
|
5258
|
+
className: h("mb-4", i.icon)
|
|
5259
5259
|
}
|
|
5260
5260
|
),
|
|
5261
|
-
/* @__PURE__ */ n("h3", { "data-testid": "offer-card-empty-message", className:
|
|
5261
|
+
/* @__PURE__ */ n("h3", { "data-testid": "offer-card-empty-message", className: h("text-lg", i.message), children: e })
|
|
5262
5262
|
]
|
|
5263
5263
|
}
|
|
5264
5264
|
);
|
|
5265
|
-
return r ? /* @__PURE__ */ n(Ne, { "data-testid": "offer-card-empty", className:
|
|
5265
|
+
return r ? /* @__PURE__ */ n(Ne, { "data-testid": "offer-card-empty", className: h("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: h("w-full", i.base), children: l });
|
|
5266
5266
|
};
|
|
5267
5267
|
xu.displayName = "OfferCardEmpty";
|
|
5268
5268
|
const yu = {
|
|
@@ -5285,7 +5285,7 @@ const yu = {
|
|
|
5285
5285
|
className: i.alert
|
|
5286
5286
|
}
|
|
5287
5287
|
);
|
|
5288
|
-
return a ? /* @__PURE__ */ n(Ne, { "data-testid": "offer-card-error", className:
|
|
5288
|
+
return a ? /* @__PURE__ */ n(Ne, { "data-testid": "offer-card-error", className: h("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: h("w-full", i.base), children: l });
|
|
5289
5289
|
};
|
|
5290
5290
|
vu.displayName = "OfferCardError";
|
|
5291
5291
|
const wu = {
|
|
@@ -5297,11 +5297,11 @@ const wu = {
|
|
|
5297
5297
|
6: "space-y-6"
|
|
5298
5298
|
}, Nu = ({ quantity: e = 2, gap: t = 4, classNames: a = {} }) => {
|
|
5299
5299
|
const r = wu[t];
|
|
5300
|
-
return /* @__PURE__ */ n("div", { "data-testid": "offer-card-skeleton-container", className:
|
|
5300
|
+
return /* @__PURE__ */ n("div", { "data-testid": "offer-card-skeleton-container", className: h(r, a.base), children: Array.from({ length: e }).map((i, s) => /* @__PURE__ */ u(
|
|
5301
5301
|
Ne,
|
|
5302
5302
|
{
|
|
5303
5303
|
"data-testid": `offer-card-skeleton-${s}`,
|
|
5304
|
-
className:
|
|
5304
|
+
className: h("w-full", a.card),
|
|
5305
5305
|
children: [
|
|
5306
5306
|
/* @__PURE__ */ n(
|
|
5307
5307
|
Pi,
|
|
@@ -5434,7 +5434,7 @@ const ku = {
|
|
|
5434
5434
|
isDisabled: f = !1,
|
|
5435
5435
|
buttonVariant: m = "bordered",
|
|
5436
5436
|
buttonColor: g = "default",
|
|
5437
|
-
showCard:
|
|
5437
|
+
showCard: p = !0,
|
|
5438
5438
|
animated: x = !0,
|
|
5439
5439
|
gap: y = 2,
|
|
5440
5440
|
compact: b = !1,
|
|
@@ -5462,10 +5462,10 @@ const ku = {
|
|
|
5462
5462
|
isDisabled: f,
|
|
5463
5463
|
buttonVariant: m,
|
|
5464
5464
|
buttonColor: g,
|
|
5465
|
-
showCard:
|
|
5465
|
+
showCard: p,
|
|
5466
5466
|
compact: b
|
|
5467
5467
|
};
|
|
5468
|
-
}, D = Su[y], S =
|
|
5468
|
+
}, D = Su[y], S = h("grid mx-auto pt-2", D, N.base), R = (L) => {
|
|
5469
5469
|
const F = C(L);
|
|
5470
5470
|
return /* @__PURE__ */ n(
|
|
5471
5471
|
Ln,
|
|
@@ -5518,7 +5518,7 @@ const ku = {
|
|
|
5518
5518
|
isDisabled: f,
|
|
5519
5519
|
buttonVariant: m,
|
|
5520
5520
|
buttonColor: g,
|
|
5521
|
-
showCard:
|
|
5521
|
+
showCard: p,
|
|
5522
5522
|
compact: b || F.offer.compact,
|
|
5523
5523
|
classNames: N.card
|
|
5524
5524
|
}
|
|
@@ -5658,7 +5658,7 @@ function Xe(e, t, a = /* @__PURE__ */ new WeakSet()) {
|
|
|
5658
5658
|
function Fu(e) {
|
|
5659
5659
|
const t = lr(), { control: a = t, name: r, defaultValue: i, disabled: s, exact: l, compute: o } = e || {}, c = q.useRef(i), d = q.useRef(o), f = q.useRef(void 0), m = q.useRef(a), g = q.useRef(r);
|
|
5660
5660
|
d.current = o;
|
|
5661
|
-
const [
|
|
5661
|
+
const [p, x] = q.useState(() => {
|
|
5662
5662
|
const w = a._getWatch(r, c.current);
|
|
5663
5663
|
return d.current ? d.current(w) : w;
|
|
5664
5664
|
}), y = q.useCallback((w) => {
|
|
@@ -5690,7 +5690,7 @@ function Fu(e) {
|
|
|
5690
5690
|
const w = !N && !Xe(k, r);
|
|
5691
5691
|
return N || w ? y() : null;
|
|
5692
5692
|
}, [s, N, r, k, y]);
|
|
5693
|
-
return A !== null ? A :
|
|
5693
|
+
return A !== null ? A : p;
|
|
5694
5694
|
}
|
|
5695
5695
|
function Lu(e) {
|
|
5696
5696
|
const t = lr(), { name: a, disabled: r, control: i = t, shouldUnregister: s, defaultValue: l, exact: o = !0 } = e, c = zs(i._names.array, a), d = q.useMemo(() => H(i._formValues, a, H(i._defaultValues, a, l)), [i, a, l]), f = Fu({
|
|
@@ -5702,7 +5702,7 @@ function Lu(e) {
|
|
|
5702
5702
|
control: i,
|
|
5703
5703
|
name: a,
|
|
5704
5704
|
exact: o
|
|
5705
|
-
}), g = q.useRef(e),
|
|
5705
|
+
}), g = q.useRef(e), p = q.useRef(void 0), x = q.useRef(i.register(a, {
|
|
5706
5706
|
...e.rules,
|
|
5707
5707
|
value: f,
|
|
5708
5708
|
...We(e.disabled) ? { disabled: e.disabled } : {}
|
|
@@ -5758,7 +5758,7 @@ function Lu(e) {
|
|
|
5758
5758
|
ref: k
|
|
5759
5759
|
}), [a, r, m.disabled, b, N, k, f]);
|
|
5760
5760
|
return q.useEffect(() => {
|
|
5761
|
-
const w = i._options.shouldUnregister || s, $ =
|
|
5761
|
+
const w = i._options.shouldUnregister || s, $ = p.current;
|
|
5762
5762
|
$ && $ !== a && !c && i.unregister($), i.register(a, {
|
|
5763
5763
|
...g.current.rules,
|
|
5764
5764
|
...We(g.current.disabled) ? { disabled: g.current.disabled } : {}
|
|
@@ -5771,7 +5771,7 @@ function Lu(e) {
|
|
|
5771
5771
|
const C = ke(H(i._options.defaultValues, a, g.current.defaultValue));
|
|
5772
5772
|
he(i._defaultValues, a, C), xe(H(i._formValues, a)) && he(i._formValues, a, C);
|
|
5773
5773
|
}
|
|
5774
|
-
return !c && i.register(a),
|
|
5774
|
+
return !c && i.register(a), p.current = a, () => {
|
|
5775
5775
|
(c ? w && !i._state.action : w) ? i.unregister(a) : M(a, !1);
|
|
5776
5776
|
};
|
|
5777
5777
|
}, [a, i, c, s]), q.useEffect(() => {
|
|
@@ -5992,7 +5992,7 @@ var Rt = (e) => $e(e) && !La(e) ? e : {
|
|
|
5992
5992
|
value: e,
|
|
5993
5993
|
message: ""
|
|
5994
5994
|
}, li = async (e, t, a, r, i, s) => {
|
|
5995
|
-
const { ref: l, refs: o, required: c, maxLength: d, minLength: f, min: m, max: g, pattern:
|
|
5995
|
+
const { ref: l, refs: o, required: c, maxLength: d, minLength: f, min: m, max: g, pattern: p, validate: x, name: y, valueAsNumber: b, mount: N } = e._f, k = H(a, y);
|
|
5996
5996
|
if (!N || t.has(y))
|
|
5997
5997
|
return {};
|
|
5998
5998
|
const A = o ? o[0] : l, w = (F) => {
|
|
@@ -6034,8 +6034,8 @@ var Rt = (e) => $e(e) && !La(e) ? e : {
|
|
|
6034
6034
|
if ((T || U) && (L(T, F.message, P.message), !r))
|
|
6035
6035
|
return w($[y].message), $;
|
|
6036
6036
|
}
|
|
6037
|
-
if (
|
|
6038
|
-
const { value: F, message: P } = Rt(
|
|
6037
|
+
if (p && !S && qe(k)) {
|
|
6038
|
+
const { value: F, message: P } = Rt(p);
|
|
6039
6039
|
if (La(F) && !k.match(F) && ($[y] = {
|
|
6040
6040
|
type: ct.pattern,
|
|
6041
6041
|
message: P,
|
|
@@ -6122,7 +6122,7 @@ function Gu(e = {}) {
|
|
|
6122
6122
|
let g = {
|
|
6123
6123
|
...m
|
|
6124
6124
|
};
|
|
6125
|
-
const
|
|
6125
|
+
const p = {
|
|
6126
6126
|
array: Zr(),
|
|
6127
6127
|
state: Zr()
|
|
6128
6128
|
}, x = t.criteriaMode === Ze.all, y = (v) => (E) => {
|
|
@@ -6130,14 +6130,14 @@ function Gu(e = {}) {
|
|
|
6130
6130
|
}, b = async (v) => {
|
|
6131
6131
|
if (!l.keepIsValid && !t.disabled && (m.isValid || g.isValid || v)) {
|
|
6132
6132
|
let E;
|
|
6133
|
-
t.resolver ? (E = ze((await D()).errors), N()) : E = await R(r, !0), E !== a.isValid &&
|
|
6133
|
+
t.resolver ? (E = ze((await D()).errors), N()) : E = await R(r, !0), E !== a.isValid && p.state.next({
|
|
6134
6134
|
isValid: E
|
|
6135
6135
|
});
|
|
6136
6136
|
}
|
|
6137
6137
|
}, N = (v, E) => {
|
|
6138
6138
|
!t.disabled && (m.isValidating || m.validatingFields || g.isValidating || g.validatingFields) && ((v || Array.from(o.mount)).forEach((_) => {
|
|
6139
6139
|
_ && (E ? he(a.validatingFields, _, E) : Ce(a.validatingFields, _));
|
|
6140
|
-
}),
|
|
6140
|
+
}), p.state.next({
|
|
6141
6141
|
validatingFields: a.validatingFields,
|
|
6142
6142
|
isValidating: !ze(a.validatingFields)
|
|
6143
6143
|
}));
|
|
@@ -6155,7 +6155,7 @@ function Gu(e = {}) {
|
|
|
6155
6155
|
const Z = _(H(a.touchedFields, v), j.argA, j.argB);
|
|
6156
6156
|
B && he(a.touchedFields, v, Z);
|
|
6157
6157
|
}
|
|
6158
|
-
(m.dirtyFields || g.dirtyFields) && (a.dirtyFields = zt(i, s)),
|
|
6158
|
+
(m.dirtyFields || g.dirtyFields) && (a.dirtyFields = zt(i, s)), p.state.next({
|
|
6159
6159
|
name: v,
|
|
6160
6160
|
isDirty: F(v, E),
|
|
6161
6161
|
dirtyFields: a.dirtyFields,
|
|
@@ -6165,11 +6165,11 @@ function Gu(e = {}) {
|
|
|
6165
6165
|
} else
|
|
6166
6166
|
he(s, v, E);
|
|
6167
6167
|
}, A = (v, E) => {
|
|
6168
|
-
he(a.errors, v, E),
|
|
6168
|
+
he(a.errors, v, E), p.state.next({
|
|
6169
6169
|
errors: a.errors
|
|
6170
6170
|
});
|
|
6171
6171
|
}, w = (v) => {
|
|
6172
|
-
a.errors = v,
|
|
6172
|
+
a.errors = v, p.state.next({
|
|
6173
6173
|
errors: a.errors,
|
|
6174
6174
|
isValid: !1
|
|
6175
6175
|
});
|
|
@@ -6194,7 +6194,7 @@ function Gu(e = {}) {
|
|
|
6194
6194
|
const ue = H(a.touchedFields, v);
|
|
6195
6195
|
ue || (he(a.touchedFields, v, _), de.touchedFields = a.touchedFields, O = O || (m.touchedFields || g.touchedFields) && ue !== _);
|
|
6196
6196
|
}
|
|
6197
|
-
O && B &&
|
|
6197
|
+
O && B && p.state.next(de);
|
|
6198
6198
|
}
|
|
6199
6199
|
return O ? de : {};
|
|
6200
6200
|
}, C = (v, E, _, j) => {
|
|
@@ -6209,7 +6209,7 @@ function Gu(e = {}) {
|
|
|
6209
6209
|
a = {
|
|
6210
6210
|
...a,
|
|
6211
6211
|
...Z
|
|
6212
|
-
},
|
|
6212
|
+
}, p.state.next(Z);
|
|
6213
6213
|
}
|
|
6214
6214
|
}, D = async (v) => (N(v, !0), await t.resolver(s, t.context, Iu(v || o.mount, r, t.criteriaMode, t.shouldUseNativeValidation))), S = async (v) => {
|
|
6215
6215
|
const { errors: E } = await D(v);
|
|
@@ -6255,7 +6255,7 @@ function Gu(e = {}) {
|
|
|
6255
6255
|
const O = j._f;
|
|
6256
6256
|
O && (!O.disabled && he(s, v, Hs(E, O)), B = Fa(O.ref) && Ve(E) ? "" : E, Vs(O.ref) ? [...O.ref.options].forEach((Z) => Z.selected = B.includes(Z.value)) : O.refs ? sa(O.ref) ? O.refs.forEach((Z) => {
|
|
6257
6257
|
(!Z.defaultChecked || !Z.disabled) && (Array.isArray(B) ? Z.checked = !!B.find((de) => de === Z.value) : Z.checked = B === Z.value || !!B);
|
|
6258
|
-
}) : O.refs.forEach((Z) => Z.checked = Z.value === B) : cr(O.ref) ? O.ref.value = "" : (O.ref.value = B, O.ref.type ||
|
|
6258
|
+
}) : O.refs.forEach((Z) => Z.checked = Z.value === B) : cr(O.ref) ? O.ref.value = "" : (O.ref.value = B, O.ref.type || p.state.next({
|
|
6259
6259
|
name: v,
|
|
6260
6260
|
values: ke(s)
|
|
6261
6261
|
})));
|
|
@@ -6270,18 +6270,18 @@ function Gu(e = {}) {
|
|
|
6270
6270
|
}
|
|
6271
6271
|
}, z = (v, E, _ = {}) => {
|
|
6272
6272
|
const j = H(r, v), B = o.array.has(v), O = ke(E);
|
|
6273
|
-
he(s, v, O), B ? (
|
|
6273
|
+
he(s, v, O), B ? (p.array.next({
|
|
6274
6274
|
name: v,
|
|
6275
6275
|
values: ke(s)
|
|
6276
|
-
}), (m.isDirty || m.dirtyFields || g.isDirty || g.dirtyFields) && _.shouldDirty &&
|
|
6276
|
+
}), (m.isDirty || m.dirtyFields || g.isDirty || g.dirtyFields) && _.shouldDirty && p.state.next({
|
|
6277
6277
|
name: v,
|
|
6278
6278
|
dirtyFields: zt(i, s),
|
|
6279
6279
|
isDirty: F(v, O)
|
|
6280
|
-
})) : j && !j._f && !Ve(O) ? G(v, O, _) : U(v, O, _), ri(v, o) ?
|
|
6280
|
+
})) : j && !j._f && !Ve(O) ? G(v, O, _) : U(v, O, _), ri(v, o) ? p.state.next({
|
|
6281
6281
|
...a,
|
|
6282
6282
|
name: v,
|
|
6283
6283
|
values: ke(s)
|
|
6284
|
-
}) :
|
|
6284
|
+
}) : p.state.next({
|
|
6285
6285
|
name: l.mount ? v : void 0,
|
|
6286
6286
|
values: ke(s)
|
|
6287
6287
|
});
|
|
@@ -6297,13 +6297,13 @@ function Gu(e = {}) {
|
|
|
6297
6297
|
const kt = E.type ? ti(B._f) : Os(v), bt = v.type === Ea.BLUR || v.type === Ea.FOCUS_OUT, Ll = !Bu(B._f) && !t.resolver && !H(a.errors, _) && !B._f.deps || ju(bt, H(a.touchedFields, _), a.isSubmitted, de, Z), Qa = ri(_, o, bt);
|
|
6298
6298
|
he(s, _, kt), bt ? (!E || !E.readOnly) && (B._f.onBlur && B._f.onBlur(v), c && c(0)) : B._f.onChange && B._f.onChange(v);
|
|
6299
6299
|
const Za = M(_, kt, bt), _l = !ze(Za) || Qa;
|
|
6300
|
-
if (!bt &&
|
|
6300
|
+
if (!bt && p.state.next({
|
|
6301
6301
|
name: _,
|
|
6302
6302
|
type: v.type,
|
|
6303
6303
|
values: ke(s)
|
|
6304
6304
|
}), Ll)
|
|
6305
|
-
return (m.isValid || g.isValid) && (t.mode === "onBlur" ? bt && b() : bt || b()), _l &&
|
|
6306
|
-
if (!bt && Qa &&
|
|
6305
|
+
return (m.isValid || g.isValid) && (t.mode === "onBlur" ? bt && b() : bt || b()), _l && p.state.next({ name: _, ...Qa ? {} : Za });
|
|
6306
|
+
if (!bt && Qa && p.state.next({ ...a }), t.resolver) {
|
|
6307
6307
|
const { errors: xr } = await D([_]);
|
|
6308
6308
|
if (N([_]), O(kt), j) {
|
|
6309
6309
|
const Ml = ii(a.errors, r, _), yr = ii(xr, r, Ml.name || _);
|
|
@@ -6326,7 +6326,7 @@ function Gu(e = {}) {
|
|
|
6326
6326
|
const Z = H(r, O);
|
|
6327
6327
|
return await R(Z && Z._f ? { [O]: Z } : Z);
|
|
6328
6328
|
}))).every(Boolean), !(!j && !a.isValid) && b()) : j = _ = await R(r);
|
|
6329
|
-
return
|
|
6329
|
+
return p.state.next({
|
|
6330
6330
|
...!qe(v) || (m.isValid || g.isValid) && _ !== a.isValid ? {} : { name: v },
|
|
6331
6331
|
...t.resolver || !v ? { isValid: _ } : {},
|
|
6332
6332
|
errors: a.errors
|
|
@@ -6343,7 +6343,7 @@ function Gu(e = {}) {
|
|
|
6343
6343
|
isValidating: !!H(a.validatingFields, v),
|
|
6344
6344
|
isTouched: !!H((E || a).touchedFields, v)
|
|
6345
6345
|
}), J = (v) => {
|
|
6346
|
-
v && Zt(v).forEach((E) => Ce(a.errors, E)),
|
|
6346
|
+
v && Zt(v).forEach((E) => Ce(a.errors, E)), p.state.next({
|
|
6347
6347
|
errors: v ? a.errors : {}
|
|
6348
6348
|
});
|
|
6349
6349
|
}, K = (v, E, _) => {
|
|
@@ -6352,14 +6352,14 @@ function Gu(e = {}) {
|
|
|
6352
6352
|
...ue,
|
|
6353
6353
|
...E,
|
|
6354
6354
|
ref: j
|
|
6355
|
-
}),
|
|
6355
|
+
}), p.state.next({
|
|
6356
6356
|
name: v,
|
|
6357
6357
|
errors: a.errors,
|
|
6358
6358
|
isValid: !1
|
|
6359
6359
|
}), _ && _.shouldFocus && j && j.focus && j.focus();
|
|
6360
|
-
}, ce = (v, E) => Ie(v) ?
|
|
6360
|
+
}, ce = (v, E) => Ie(v) ? p.state.subscribe({
|
|
6361
6361
|
next: (_) => "values" in _ && v(P(void 0, E), _)
|
|
6362
|
-
}) : P(v, E, !0), ae = (v) =>
|
|
6362
|
+
}) : P(v, E, !0), ae = (v) => p.state.subscribe({
|
|
6363
6363
|
next: (E) => {
|
|
6364
6364
|
Uu(v.name, E.name, v.exact) && Vu(E, v.formState || m, me, v.reRenderRoot) && v.callback({
|
|
6365
6365
|
values: { ...s },
|
|
@@ -6380,9 +6380,9 @@ function Gu(e = {}) {
|
|
|
6380
6380
|
})), le = (v, E = {}) => {
|
|
6381
6381
|
for (const _ of v ? Zt(v) : o.mount)
|
|
6382
6382
|
o.mount.delete(_), o.array.delete(_), E.keepValue || (Ce(r, _), Ce(s, _)), !E.keepError && Ce(a.errors, _), !E.keepDirty && Ce(a.dirtyFields, _), !E.keepTouched && Ce(a.touchedFields, _), !E.keepIsValidating && Ce(a.validatingFields, _), !t.shouldUnregister && !E.keepDefaultValue && Ce(i, _);
|
|
6383
|
-
|
|
6383
|
+
p.state.next({
|
|
6384
6384
|
values: ke(s)
|
|
6385
|
-
}),
|
|
6385
|
+
}), p.state.next({
|
|
6386
6386
|
...a,
|
|
6387
6387
|
...E.keepDirty ? { isDirty: F() } : {}
|
|
6388
6388
|
}), !E.keepIsValid && b();
|
|
@@ -6442,7 +6442,7 @@ function Gu(e = {}) {
|
|
|
6442
6442
|
}
|
|
6443
6443
|
};
|
|
6444
6444
|
}, Ue = () => t.shouldFocusError && Xt(r, Y, o.mount), Lt = (v) => {
|
|
6445
|
-
We(v) && (
|
|
6445
|
+
We(v) && (p.state.next({ disabled: v }), Xt(r, (E, _) => {
|
|
6446
6446
|
const j = H(r, _);
|
|
6447
6447
|
j && (E.disabled = j._f.disabled || v, Array.isArray(j._f.refs) && j._f.refs.forEach((B) => {
|
|
6448
6448
|
B.disabled = j._f.disabled || v;
|
|
@@ -6452,7 +6452,7 @@ function Gu(e = {}) {
|
|
|
6452
6452
|
let j;
|
|
6453
6453
|
_ && (_.preventDefault && _.preventDefault(), _.persist && _.persist());
|
|
6454
6454
|
let B = ke(s);
|
|
6455
|
-
if (
|
|
6455
|
+
if (p.state.next({
|
|
6456
6456
|
isSubmitting: !0
|
|
6457
6457
|
}), t.resolver) {
|
|
6458
6458
|
const { errors: O, values: Z } = await D();
|
|
@@ -6463,7 +6463,7 @@ function Gu(e = {}) {
|
|
|
6463
6463
|
for (const O of o.disabled)
|
|
6464
6464
|
Ce(B, O);
|
|
6465
6465
|
if (Ce(a.errors, "root"), ze(a.errors)) {
|
|
6466
|
-
|
|
6466
|
+
p.state.next({
|
|
6467
6467
|
errors: {}
|
|
6468
6468
|
});
|
|
6469
6469
|
try {
|
|
@@ -6473,7 +6473,7 @@ function Gu(e = {}) {
|
|
|
6473
6473
|
}
|
|
6474
6474
|
} else
|
|
6475
6475
|
E && await E({ ...a.errors }, _), Ue(), setTimeout(Ue);
|
|
6476
|
-
if (
|
|
6476
|
+
if (p.state.next({
|
|
6477
6477
|
isSubmitted: !0,
|
|
6478
6478
|
isSubmitting: !1,
|
|
6479
6479
|
isSubmitSuccessful: ze(a.errors) && !j,
|
|
@@ -6482,7 +6482,7 @@ function Gu(e = {}) {
|
|
|
6482
6482
|
}), j)
|
|
6483
6483
|
throw j;
|
|
6484
6484
|
}, at = (v, E = {}) => {
|
|
6485
|
-
H(r, v) && (xe(E.defaultValue) ? z(v, ke(H(i, v))) : (z(v, E.defaultValue), he(i, v, ke(E.defaultValue))), E.keepTouched || Ce(a.touchedFields, v), E.keepDirty || (Ce(a.dirtyFields, v), a.isDirty = E.defaultValue ? F(v, ke(H(i, v))) : F()), E.keepError || (Ce(a.errors, v), m.isValid && b()),
|
|
6485
|
+
H(r, v) && (xe(E.defaultValue) ? z(v, ke(H(i, v))) : (z(v, E.defaultValue), he(i, v, ke(E.defaultValue))), E.keepTouched || Ce(a.touchedFields, v), E.keepDirty || (Ce(a.dirtyFields, v), a.isDirty = E.defaultValue ? F(v, ke(H(i, v))) : F()), E.keepError || (Ce(a.errors, v), m.isValid && b()), p.state.next({ ...a }));
|
|
6486
6486
|
}, Nt = (v, E = {}) => {
|
|
6487
6487
|
const _ = v ? ke(v) : i, j = ke(_), B = ze(v), O = B ? i : j;
|
|
6488
6488
|
if (E.keepDefaultValues || (i = _), !E.keepValues) {
|
|
@@ -6516,9 +6516,9 @@ function Gu(e = {}) {
|
|
|
6516
6516
|
else
|
|
6517
6517
|
r = {};
|
|
6518
6518
|
}
|
|
6519
|
-
s = t.shouldUnregister ? E.keepDefaultValues ? ke(i) : {} : ke(O),
|
|
6519
|
+
s = t.shouldUnregister ? E.keepDefaultValues ? ke(i) : {} : ke(O), p.array.next({
|
|
6520
6520
|
values: { ...O }
|
|
6521
|
-
}),
|
|
6521
|
+
}), p.state.next({
|
|
6522
6522
|
values: { ...O }
|
|
6523
6523
|
});
|
|
6524
6524
|
}
|
|
@@ -6530,7 +6530,7 @@ function Gu(e = {}) {
|
|
|
6530
6530
|
watch: /* @__PURE__ */ new Set(),
|
|
6531
6531
|
watchAll: !1,
|
|
6532
6532
|
focus: ""
|
|
6533
|
-
}, l.mount = !m.isValid || !!E.keepIsValid || !!E.keepDirtyValues || !t.shouldUnregister && !ze(O), l.watch = !!t.shouldUnregister, l.keepIsValid = !!E.keepIsValid, l.action = !1, E.keepErrors || (a.errors = {}),
|
|
6533
|
+
}, l.mount = !m.isValid || !!E.keepIsValid || !!E.keepDirtyValues || !t.shouldUnregister && !ze(O), l.watch = !!t.shouldUnregister, l.keepIsValid = !!E.keepIsValid, l.action = !1, E.keepErrors || (a.errors = {}), p.state.next({
|
|
6534
6534
|
submitCount: E.keepSubmitCount ? a.submitCount : 0,
|
|
6535
6535
|
isDirty: B ? !1 : E.keepDirty ? a.isDirty : !!(E.keepDefaultValues && !Xe(v, i)),
|
|
6536
6536
|
isSubmitted: E.keepIsSubmitted ? a.isSubmitted : !1,
|
|
@@ -6574,13 +6574,13 @@ function Gu(e = {}) {
|
|
|
6574
6574
|
_getFieldArray: T,
|
|
6575
6575
|
_reset: Nt,
|
|
6576
6576
|
_resetDefaultValues: () => Ie(t.defaultValues) && t.defaultValues().then((v) => {
|
|
6577
|
-
gt(v, t.resetOptions),
|
|
6577
|
+
gt(v, t.resetOptions), p.state.next({
|
|
6578
6578
|
isLoading: !1
|
|
6579
6579
|
});
|
|
6580
6580
|
}),
|
|
6581
6581
|
_removeUnmounted: L,
|
|
6582
6582
|
_disableForm: Lt,
|
|
6583
|
-
_subjects:
|
|
6583
|
+
_subjects: p,
|
|
6584
6584
|
_proxyFormState: m,
|
|
6585
6585
|
get _fields() {
|
|
6586
6586
|
return r;
|
|
@@ -6780,7 +6780,7 @@ const Ku = {
|
|
|
6780
6780
|
canDelete: f = !0,
|
|
6781
6781
|
canEditTaxDeductible: m = !0,
|
|
6782
6782
|
isDisabled: g = !1,
|
|
6783
|
-
labels:
|
|
6783
|
+
labels: p,
|
|
6784
6784
|
classNames: x = {},
|
|
6785
6785
|
"data-testid": y,
|
|
6786
6786
|
// React Hook Form props
|
|
@@ -6788,7 +6788,7 @@ const Ku = {
|
|
|
6788
6788
|
name: N,
|
|
6789
6789
|
rules: k
|
|
6790
6790
|
}) => {
|
|
6791
|
-
const A = { ...Ku, ...
|
|
6791
|
+
const A = { ...Ku, ...p }, w = b !== void 0 && N !== void 0, $ = Yu({
|
|
6792
6792
|
defaultValues: { _internal: t || cn() }
|
|
6793
6793
|
}), M = Lu({
|
|
6794
6794
|
control: w ? b : $.control,
|
|
@@ -6839,9 +6839,9 @@ const Ku = {
|
|
|
6839
6839
|
radius: "md",
|
|
6840
6840
|
shadow: "sm",
|
|
6841
6841
|
"data-testid": y || "revenue-distribution-card",
|
|
6842
|
-
className:
|
|
6843
|
-
children: /* @__PURE__ */ u(Ae, { className:
|
|
6844
|
-
/* @__PURE__ */ n("div", { className:
|
|
6842
|
+
className: h(x.base),
|
|
6843
|
+
children: /* @__PURE__ */ u(Ae, { className: h("flex flex-row flex-nowrap items-start gap-4", x.body), children: [
|
|
6844
|
+
/* @__PURE__ */ n("div", { className: h("shrink-0", x.amountContainer), children: /* @__PURE__ */ n(
|
|
6845
6845
|
Ri,
|
|
6846
6846
|
{
|
|
6847
6847
|
"data-testid": `${y || "revenue-distribution-card"}-amount-input`,
|
|
@@ -6872,7 +6872,7 @@ const Ku = {
|
|
|
6872
6872
|
startContent: /* @__PURE__ */ n("div", { className: "pointer-events-none flex items-center", children: /* @__PURE__ */ n("span", { className: "text-default-400 text-small", children: A.currencySymbol }) })
|
|
6873
6873
|
}
|
|
6874
6874
|
) }),
|
|
6875
|
-
/* @__PURE__ */ n("div", { className:
|
|
6875
|
+
/* @__PURE__ */ n("div", { className: h("grow", x.glAccountContainer), children: /* @__PURE__ */ n(
|
|
6876
6876
|
Vl,
|
|
6877
6877
|
{
|
|
6878
6878
|
"data-testid": `${y || "revenue-distribution-card"}-gl-account-input`,
|
|
@@ -6912,7 +6912,7 @@ const Ku = {
|
|
|
6912
6912
|
] }) }, K.id)
|
|
6913
6913
|
}
|
|
6914
6914
|
) }),
|
|
6915
|
-
/* @__PURE__ */ n("div", { className:
|
|
6915
|
+
/* @__PURE__ */ n("div", { className: h("shrink-0 pt-6 flex items-center", x.taxDeductibleContainer), children: /* @__PURE__ */ n(
|
|
6916
6916
|
Ta,
|
|
6917
6917
|
{
|
|
6918
6918
|
radius: "full",
|
|
@@ -6924,7 +6924,7 @@ const Ku = {
|
|
|
6924
6924
|
children: A.taxDeductible
|
|
6925
6925
|
}
|
|
6926
6926
|
) }),
|
|
6927
|
-
/* @__PURE__ */ n("div", { className:
|
|
6927
|
+
/* @__PURE__ */ n("div", { className: h("shrink-0 pt-6", x.deleteContainer), children: /* @__PURE__ */ n(
|
|
6928
6928
|
V,
|
|
6929
6929
|
{
|
|
6930
6930
|
"data-testid": `${y || "revenue-distribution-card"}-delete-button`,
|
|
@@ -6934,7 +6934,7 @@ const Ku = {
|
|
|
6934
6934
|
isDisabled: g || !f,
|
|
6935
6935
|
onPress: J,
|
|
6936
6936
|
startContent: /* @__PURE__ */ n(I, { icon: "solar:trash-bin-trash-linear", width: 16 }),
|
|
6937
|
-
className:
|
|
6937
|
+
className: h("text-danger", x.deleteButton),
|
|
6938
6938
|
children: A.deleteButton
|
|
6939
6939
|
}
|
|
6940
6940
|
) })
|
|
@@ -6953,9 +6953,9 @@ const Zu = ({
|
|
|
6953
6953
|
}) => {
|
|
6954
6954
|
if (s)
|
|
6955
6955
|
return /* @__PURE__ */ n(fe, { children: s() });
|
|
6956
|
-
const l = /* @__PURE__ */ u("div", { className:
|
|
6957
|
-
/* @__PURE__ */ n(I, { icon: t, width: a, className:
|
|
6958
|
-
/* @__PURE__ */ n("p", { className:
|
|
6956
|
+
const l = /* @__PURE__ */ u("div", { className: h("flex flex-col items-center justify-center py-8", i.content), children: [
|
|
6957
|
+
/* @__PURE__ */ n(I, { icon: t, width: a, className: h("text-default-300 mb-4", i.icon) }),
|
|
6958
|
+
/* @__PURE__ */ n("p", { className: h("text-default-500 text-sm text-center", i.message), children: e })
|
|
6959
6959
|
] });
|
|
6960
6960
|
return r ? /* @__PURE__ */ n(
|
|
6961
6961
|
Ne,
|
|
@@ -6963,10 +6963,10 @@ const Zu = ({
|
|
|
6963
6963
|
radius: "sm",
|
|
6964
6964
|
shadow: "sm",
|
|
6965
6965
|
"data-testid": "revenue-distribution-empty",
|
|
6966
|
-
className:
|
|
6966
|
+
className: h("w-full", i.base),
|
|
6967
6967
|
children: /* @__PURE__ */ n(Ae, { children: l })
|
|
6968
6968
|
}
|
|
6969
|
-
) : /* @__PURE__ */ n("div", { "data-testid": "revenue-distribution-empty", className:
|
|
6969
|
+
) : /* @__PURE__ */ n("div", { "data-testid": "revenue-distribution-empty", className: h("w-full", i.base), children: l });
|
|
6970
6970
|
};
|
|
6971
6971
|
Zu.displayName = "RevenueDistributionEmpty";
|
|
6972
6972
|
const Xu = {
|
|
@@ -6995,10 +6995,10 @@ const Xu = {
|
|
|
6995
6995
|
radius: "sm",
|
|
6996
6996
|
shadow: "sm",
|
|
6997
6997
|
"data-testid": "revenue-distribution-error",
|
|
6998
|
-
className:
|
|
6998
|
+
className: h("w-full", i.base),
|
|
6999
6999
|
children: /* @__PURE__ */ n(Ae, { children: l })
|
|
7000
7000
|
}
|
|
7001
|
-
) : /* @__PURE__ */ n("div", { "data-testid": "revenue-distribution-error", className:
|
|
7001
|
+
) : /* @__PURE__ */ n("div", { "data-testid": "revenue-distribution-error", className: h("w-full", i.base), children: l });
|
|
7002
7002
|
};
|
|
7003
7003
|
Ju.displayName = "RevenueDistributionError";
|
|
7004
7004
|
const em = ({
|
|
@@ -7006,7 +7006,7 @@ const em = ({
|
|
|
7006
7006
|
showCard: t = !0,
|
|
7007
7007
|
classNames: a = {}
|
|
7008
7008
|
}) => {
|
|
7009
|
-
const r = Array.from({ length: e }, (s, l) => l), i = (s) => /* @__PURE__ */ u("div", { className:
|
|
7009
|
+
const r = Array.from({ length: e }, (s, l) => l), i = (s) => /* @__PURE__ */ u("div", { className: h("flex flex-row flex-nowrap items-end gap-4", a.row), children: [
|
|
7010
7010
|
/* @__PURE__ */ u("div", { className: "shrink-0 flex flex-col gap-1", children: [
|
|
7011
7011
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-1", children: [
|
|
7012
7012
|
/* @__PURE__ */ n(ie, { className: "h-4 w-14 rounded-md" }),
|
|
@@ -7027,7 +7027,7 @@ const em = ({
|
|
|
7027
7027
|
] }),
|
|
7028
7028
|
/* @__PURE__ */ n("div", { className: "shrink-0 pb-2", children: /* @__PURE__ */ n(ie, { className: "h-8 w-20 rounded-lg" }) })
|
|
7029
7029
|
] }, s);
|
|
7030
|
-
return t ? /* @__PURE__ */ n("div", { className:
|
|
7030
|
+
return t ? /* @__PURE__ */ n("div", { className: h("flex flex-col gap-3", a.base), children: r.map((s) => /* @__PURE__ */ n(Ne, { 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: h("flex flex-col gap-3", a.base), children: r.map((s) => i(s)) });
|
|
7031
7031
|
};
|
|
7032
7032
|
em.displayName = "RevenueDistributionSkeleton";
|
|
7033
7033
|
function Gs({
|
|
@@ -7053,8 +7053,8 @@ function Gs({
|
|
|
7053
7053
|
shouldBlockScroll: o,
|
|
7054
7054
|
classNames: {
|
|
7055
7055
|
...c,
|
|
7056
|
-
base:
|
|
7057
|
-
closeButton:
|
|
7056
|
+
base: h("max-w-[440px] rounded-3xl", c?.base),
|
|
7057
|
+
closeButton: h("right-5 top-5 text-zinc-500", c?.closeButton)
|
|
7058
7058
|
},
|
|
7059
7059
|
onOpenChange: (m) => !m && d(),
|
|
7060
7060
|
children: /* @__PURE__ */ u(Vn, { children: [
|
|
@@ -7062,7 +7062,7 @@ function Gs({
|
|
|
7062
7062
|
a && /* @__PURE__ */ n(
|
|
7063
7063
|
"span",
|
|
7064
7064
|
{
|
|
7065
|
-
className:
|
|
7065
|
+
className: h(
|
|
7066
7066
|
"flex h-12 w-12 shrink-0 items-center justify-center rounded-full",
|
|
7067
7067
|
s === "warning" ? "bg-brand/15 text-brand" : "bg-danger-100 text-danger-600"
|
|
7068
7068
|
),
|
|
@@ -7092,7 +7092,7 @@ function Gs({
|
|
|
7092
7092
|
size: "md",
|
|
7093
7093
|
color: i,
|
|
7094
7094
|
radius: "full",
|
|
7095
|
-
className:
|
|
7095
|
+
className: h(
|
|
7096
7096
|
"h-10 text-sm font-normal text-white",
|
|
7097
7097
|
i === "danger" ? "bg-danger-600" : "bg-brand"
|
|
7098
7098
|
),
|
|
@@ -7246,7 +7246,7 @@ function zg({
|
|
|
7246
7246
|
modalPortalContainer: f,
|
|
7247
7247
|
footer: m,
|
|
7248
7248
|
onAssignmentsChange: g,
|
|
7249
|
-
onOpenFundPicker:
|
|
7249
|
+
onOpenFundPicker: p,
|
|
7250
7250
|
onCloseFundPicker: x,
|
|
7251
7251
|
onCollapseChange: y,
|
|
7252
7252
|
onSave: b
|
|
@@ -7296,7 +7296,7 @@ function zg({
|
|
|
7296
7296
|
"div",
|
|
7297
7297
|
{
|
|
7298
7298
|
ref: k,
|
|
7299
|
-
className:
|
|
7299
|
+
className: h(
|
|
7300
7300
|
"vvt-pa relative min-w-0 w-full font-sans text-zinc-900 [container-type:inline-size]",
|
|
7301
7301
|
c && !f && "min-h-[560px]",
|
|
7302
7302
|
r?.root
|
|
@@ -7308,16 +7308,16 @@ function zg({
|
|
|
7308
7308
|
variant: "splitted",
|
|
7309
7309
|
defaultSelectedKeys: o === void 0 ? ["installment-fund-assignment"] : void 0,
|
|
7310
7310
|
selectedKeys: o === void 0 ? void 0 : new Set(o ? [] : ["installment-fund-assignment"]),
|
|
7311
|
-
className:
|
|
7311
|
+
className: h("w-full gap-0 px-0", r?.panel),
|
|
7312
7312
|
itemClasses: {
|
|
7313
7313
|
base: "w-full rounded-2xl border border-zinc-200 bg-white p-0 shadow-sm",
|
|
7314
|
-
trigger:
|
|
7314
|
+
trigger: h("px-4 py-4", r?.header),
|
|
7315
7315
|
title: "w-full",
|
|
7316
7316
|
content: "w-full px-4 pb-4 pt-0",
|
|
7317
7317
|
indicator: "text-zinc-500 [&>svg]:size-4"
|
|
7318
7318
|
},
|
|
7319
7319
|
onSelectionChange: (ae) => y?.(!(ae === "all" || Array.from(ae).length > 0)),
|
|
7320
|
-
children: /* @__PURE__ */ n(Wn, { "aria-label": w.title, title: Y, children: /* @__PURE__ */ u("div", { className:
|
|
7320
|
+
children: /* @__PURE__ */ n(Wn, { "aria-label": w.title, title: Y, children: /* @__PURE__ */ u("div", { className: h("flex w-full flex-col gap-4", r?.content), children: [
|
|
7321
7321
|
/* @__PURE__ */ u("div", { className: "flex w-full flex-col gap-4", children: [
|
|
7322
7322
|
!C && /* @__PURE__ */ n(
|
|
7323
7323
|
lt,
|
|
@@ -7339,7 +7339,7 @@ function zg({
|
|
|
7339
7339
|
total: D,
|
|
7340
7340
|
hasTotalError: z && !P || L,
|
|
7341
7341
|
validationMessage: F,
|
|
7342
|
-
onSelectFund: (ae) =>
|
|
7342
|
+
onSelectFund: (ae) => p(ae),
|
|
7343
7343
|
onRemoveFund: ee,
|
|
7344
7344
|
onPercentageChange: (ae, ge) => re(ae, { percentage: lm(ge) })
|
|
7345
7345
|
}
|
|
@@ -7355,7 +7355,7 @@ function zg({
|
|
|
7355
7355
|
className: "h-11 bg-zinc-950 px-4 text-lg font-normal text-white disabled:opacity-50 [@container(max-width:479px)]:w-full",
|
|
7356
7356
|
startContent: /* @__PURE__ */ n(Yn, { className: "size-5", strokeWidth: 2 }),
|
|
7357
7357
|
isDisabled: T,
|
|
7358
|
-
onPress: () => C ? Q() :
|
|
7358
|
+
onPress: () => C ? Q() : p(),
|
|
7359
7359
|
children: w.assignSpecificFund
|
|
7360
7360
|
}
|
|
7361
7361
|
),
|
|
@@ -7439,7 +7439,7 @@ function cm({
|
|
|
7439
7439
|
/* @__PURE__ */ n(
|
|
7440
7440
|
"div",
|
|
7441
7441
|
{
|
|
7442
|
-
className:
|
|
7442
|
+
className: h(
|
|
7443
7443
|
"flex min-h-11 min-w-0 basis-full items-center gap-2",
|
|
7444
7444
|
"[@container(min-width:560px)]:basis-0 [@container(min-width:560px)]:flex-1 [@container(min-width:560px)]:gap-4"
|
|
7445
7445
|
),
|
|
@@ -7497,7 +7497,7 @@ function cm({
|
|
|
7497
7497
|
isIconOnly: !0,
|
|
7498
7498
|
variant: "flat",
|
|
7499
7499
|
radius: "full",
|
|
7500
|
-
className:
|
|
7500
|
+
className: h(
|
|
7501
7501
|
"h-10 w-10 flex-none p-0",
|
|
7502
7502
|
d === 0 ? "bg-danger-100 text-danger-500 opacity-60" : "bg-danger-600 text-white"
|
|
7503
7503
|
),
|
|
@@ -7528,19 +7528,19 @@ function cm({
|
|
|
7528
7528
|
variant: "flat",
|
|
7529
7529
|
classNames: {
|
|
7530
7530
|
...qt,
|
|
7531
|
-
base:
|
|
7531
|
+
base: h(
|
|
7532
7532
|
qt.base,
|
|
7533
7533
|
r ? "bg-warning-50 text-warning-700" : "bg-success-50 text-success-700"
|
|
7534
7534
|
),
|
|
7535
|
-
iconWrapper:
|
|
7535
|
+
iconWrapper: h(
|
|
7536
7536
|
qt.iconWrapper,
|
|
7537
7537
|
r ? "text-warning-700" : "text-success-700"
|
|
7538
7538
|
),
|
|
7539
|
-
alertIcon:
|
|
7539
|
+
alertIcon: h(
|
|
7540
7540
|
qt.alertIcon,
|
|
7541
7541
|
r ? "text-warning-700" : "text-success-700"
|
|
7542
7542
|
),
|
|
7543
|
-
title:
|
|
7543
|
+
title: h(
|
|
7544
7544
|
qt.title,
|
|
7545
7545
|
r ? "text-warning-700" : "text-success-700"
|
|
7546
7546
|
)
|
|
@@ -7676,7 +7676,7 @@ function Tg({
|
|
|
7676
7676
|
return /* @__PURE__ */ n(
|
|
7677
7677
|
"div",
|
|
7678
7678
|
{
|
|
7679
|
-
className:
|
|
7679
|
+
className: h(
|
|
7680
7680
|
"w-full rounded-2xl border border-zinc-200 bg-white px-4 py-2.5 font-sans text-base leading-6",
|
|
7681
7681
|
l
|
|
7682
7682
|
),
|
|
@@ -7834,7 +7834,7 @@ function Bg({
|
|
|
7834
7834
|
showTabs: f = !0,
|
|
7835
7835
|
inputs: m = $m,
|
|
7836
7836
|
startDate: g,
|
|
7837
|
-
firstInstallmentDateOverride:
|
|
7837
|
+
firstInstallmentDateOverride: p,
|
|
7838
7838
|
labels: x,
|
|
7839
7839
|
classNames: y,
|
|
7840
7840
|
isSaving: b = !1,
|
|
@@ -7857,7 +7857,7 @@ function Bg({
|
|
|
7857
7857
|
// When `firstInstallmentDate` is an editable input the user owns
|
|
7858
7858
|
// that date, and overriding it would show a schedule that
|
|
7859
7859
|
// contradicts the field right above it.
|
|
7860
|
-
m.includes("firstInstallmentDate") ? void 0 :
|
|
7860
|
+
m.includes("firstInstallmentDate") ? void 0 : p
|
|
7861
7861
|
) : i, U = oe(
|
|
7862
7862
|
() => _a(T.reduce((le, Ge) => le + Number(Ge.amount || 0), 0)),
|
|
7863
7863
|
[T]
|
|
@@ -7881,7 +7881,7 @@ function Bg({
|
|
|
7881
7881
|
Dt(Ge?.status) || $(i.filter((Te) => Te.id !== le));
|
|
7882
7882
|
}, ae = () => {
|
|
7883
7883
|
b || re || M?.();
|
|
7884
|
-
}, ge = /* @__PURE__ */ u("div", { className:
|
|
7884
|
+
}, ge = /* @__PURE__ */ u("div", { className: h("flex w-full flex-col gap-4", y?.content), children: [
|
|
7885
7885
|
f || d || C ? /* @__PURE__ */ u("div", { className: "flex w-full items-center justify-between gap-6", children: [
|
|
7886
7886
|
f ? /* @__PURE__ */ n(
|
|
7887
7887
|
Lm,
|
|
@@ -7926,7 +7926,7 @@ function Bg({
|
|
|
7926
7926
|
) : null
|
|
7927
7927
|
] })
|
|
7928
7928
|
] }) : null,
|
|
7929
|
-
/* @__PURE__ */ u("div", { className:
|
|
7929
|
+
/* @__PURE__ */ u("div", { className: h("flex w-full flex-col gap-4", y?.preview), children: [
|
|
7930
7930
|
L === "automatic" && /* @__PURE__ */ n(
|
|
7931
7931
|
_m,
|
|
7932
7932
|
{
|
|
@@ -7989,15 +7989,15 @@ function Bg({
|
|
|
7989
7989
|
)
|
|
7990
7990
|
] })
|
|
7991
7991
|
] });
|
|
7992
|
-
return /* @__PURE__ */ n("div", { className:
|
|
7992
|
+
return /* @__PURE__ */ n("div", { className: h("vvt-ps relative font-sans text-zinc-900", y?.root), children: c ? /* @__PURE__ */ n(
|
|
7993
7993
|
Hn,
|
|
7994
7994
|
{
|
|
7995
7995
|
variant: "splitted",
|
|
7996
7996
|
defaultSelectedKeys: ["installment-schedule"],
|
|
7997
|
-
className:
|
|
7997
|
+
className: h("w-full gap-0 px-0", y?.panel),
|
|
7998
7998
|
itemClasses: {
|
|
7999
7999
|
base: "w-full rounded-2xl border border-zinc-200 bg-white p-0 shadow-sm",
|
|
8000
|
-
trigger:
|
|
8000
|
+
trigger: h("px-4 py-4", y?.header),
|
|
8001
8001
|
title: "w-full",
|
|
8002
8002
|
content: "w-full px-4 pb-4 pt-0",
|
|
8003
8003
|
indicator: "text-zinc-500 [&>svg]:size-4"
|
|
@@ -8016,7 +8016,7 @@ function Lm({ mode: e, labels: t, className: a, isDisabled: r = !1, onModeChange
|
|
|
8016
8016
|
color: "primary",
|
|
8017
8017
|
size: "lg",
|
|
8018
8018
|
radius: "full",
|
|
8019
|
-
className:
|
|
8019
|
+
className: h("w-fit", a),
|
|
8020
8020
|
onSelectionChange: (s) => i(s),
|
|
8021
8021
|
children: [
|
|
8022
8022
|
/* @__PURE__ */ n(Ca, { title: t.automaticMode }, "automatic"),
|
|
@@ -8104,7 +8104,7 @@ function _m({ settings: e, inputs: t, labels: a, className: r, onSettingsChange:
|
|
|
8104
8104
|
return t.length === 0 ? null : /* @__PURE__ */ n(
|
|
8105
8105
|
"div",
|
|
8106
8106
|
{
|
|
8107
|
-
className:
|
|
8107
|
+
className: h("grid gap-4", r),
|
|
8108
8108
|
style: {
|
|
8109
8109
|
gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 14rem), 1fr))"
|
|
8110
8110
|
},
|
|
@@ -8125,14 +8125,14 @@ function Mm({
|
|
|
8125
8125
|
return e === "automatic" ? /* @__PURE__ */ n("div", { className: "rounded-2xl border border-zinc-200 bg-zinc-50 p-4", children: /* @__PURE__ */ n(
|
|
8126
8126
|
"div",
|
|
8127
8127
|
{
|
|
8128
|
-
className:
|
|
8128
|
+
className: h(
|
|
8129
8129
|
"flex flex-col gap-3",
|
|
8130
8130
|
t.length > 5 && "max-h-[264px] overflow-y-auto pr-2"
|
|
8131
8131
|
),
|
|
8132
8132
|
children: t.map((c, d) => /* @__PURE__ */ u(
|
|
8133
8133
|
"div",
|
|
8134
8134
|
{
|
|
8135
|
-
className:
|
|
8135
|
+
className: h(
|
|
8136
8136
|
"flex min-h-10 items-center justify-between rounded-xl px-4 py-2 text-base",
|
|
8137
8137
|
d === 0 && "border border-primary/25 bg-primary/5 text-primary"
|
|
8138
8138
|
),
|
|
@@ -8165,8 +8165,8 @@ function Mm({
|
|
|
8165
8165
|
isInvalid: f || m,
|
|
8166
8166
|
errorMessage: f ? r.dueDateRequiredError : m ? r.dateOrderError : void 0,
|
|
8167
8167
|
value: Ga(c.dueDate),
|
|
8168
|
-
onChange: (
|
|
8169
|
-
dueDate:
|
|
8168
|
+
onChange: (p) => l(c.id, {
|
|
8169
|
+
dueDate: p ? p.toString() : ""
|
|
8170
8170
|
})
|
|
8171
8171
|
}
|
|
8172
8172
|
) }),
|
|
@@ -8178,7 +8178,7 @@ function Mm({
|
|
|
8178
8178
|
isDisabled: Dt(c.status),
|
|
8179
8179
|
isInvalid: g,
|
|
8180
8180
|
errorMessage: r.amountGreaterThanZeroError,
|
|
8181
|
-
onAmountChange: (
|
|
8181
|
+
onAmountChange: (p) => l(c.id, { amount: p })
|
|
8182
8182
|
}
|
|
8183
8183
|
) }),
|
|
8184
8184
|
/* @__PURE__ */ n(
|
|
@@ -8260,7 +8260,7 @@ function zm({
|
|
|
8260
8260
|
labels: l,
|
|
8261
8261
|
className: o
|
|
8262
8262
|
}) {
|
|
8263
|
-
const c = i.length, d = i[0]?.amount ?? 0, f = i[1]?.amount ?? d, m = c > 1 && Math.round(d * 100) !== Math.round(f * 100), g = _a(t - e),
|
|
8263
|
+
const c = i.length, d = i[0]?.amount ?? 0, f = i[1]?.amount ?? d, m = c > 1 && Math.round(d * 100) !== Math.round(f * 100), g = _a(t - e), p = Math.max(g, 0), x = Math.max(-g, 0), y = a ? /* @__PURE__ */ u("span", { children: [
|
|
8264
8264
|
l.totalError,
|
|
8265
8265
|
". Total scheduled: ",
|
|
8266
8266
|
/* @__PURE__ */ n("strong", { children: s.format(e) }),
|
|
@@ -8292,7 +8292,7 @@ function zm({
|
|
|
8292
8292
|
" ",
|
|
8293
8293
|
/* @__PURE__ */ n("strong", { children: s.format(t) }),
|
|
8294
8294
|
"."
|
|
8295
|
-
] }), b = r === "automatic" ? `Total: ${s.format(e)}` : x > 0 ? `Exceeds by: ${s.format(x)}` : `${l.remaining}: ${s.format(
|
|
8295
|
+
] }), b = r === "automatic" ? `Total: ${s.format(e)}` : x > 0 ? `Exceeds by: ${s.format(x)}` : `${l.remaining}: ${s.format(p)}`;
|
|
8296
8296
|
return /* @__PURE__ */ n(
|
|
8297
8297
|
lt,
|
|
8298
8298
|
{
|
|
@@ -8422,7 +8422,7 @@ function Ug({
|
|
|
8422
8422
|
isSaving: f = !1,
|
|
8423
8423
|
onEditInstallments: m,
|
|
8424
8424
|
onPayInstallment: g,
|
|
8425
|
-
onDeleteInstallment:
|
|
8425
|
+
onDeleteInstallment: p
|
|
8426
8426
|
}) {
|
|
8427
8427
|
const [x, y] = W(null), b = { ...Im, ...d }, [N, k] = W(""), A = new Intl.NumberFormat(a, { style: "currency", currency: t }), w = e.some((S) => Zs(S) !== null), $ = e.some((S) => S.status === "partially_refunded"), M = r ? /* @__PURE__ */ u("span", { className: "flex items-center gap-2", children: [
|
|
8428
8428
|
/* @__PURE__ */ n(Wi, { className: "size-4 text-zinc-500", strokeWidth: 1.75 }),
|
|
@@ -8488,7 +8488,7 @@ function Ug({
|
|
|
8488
8488
|
/* @__PURE__ */ n(
|
|
8489
8489
|
"div",
|
|
8490
8490
|
{
|
|
8491
|
-
className:
|
|
8491
|
+
className: h(
|
|
8492
8492
|
"hidden [@container(max-width:767px)]:block",
|
|
8493
8493
|
C.length > 3 && "max-h-[560px] overflow-y-auto pr-1"
|
|
8494
8494
|
),
|
|
@@ -8528,7 +8528,7 @@ function Ug({
|
|
|
8528
8528
|
showDelete: l,
|
|
8529
8529
|
payNowHiddenStatuses: o,
|
|
8530
8530
|
onPayInstallment: g,
|
|
8531
|
-
onDeleteInstallment:
|
|
8531
|
+
onDeleteInstallment: p
|
|
8532
8532
|
}
|
|
8533
8533
|
)
|
|
8534
8534
|
] }) }, S.id);
|
|
@@ -8540,7 +8540,7 @@ function Ug({
|
|
|
8540
8540
|
/* @__PURE__ */ n(
|
|
8541
8541
|
"div",
|
|
8542
8542
|
{
|
|
8543
|
-
className:
|
|
8543
|
+
className: h(
|
|
8544
8544
|
"w-full overflow-x-hidden [@container(max-width:767px)]:hidden",
|
|
8545
8545
|
C.length > 5 && "max-h-[344px] overflow-y-auto pr-1"
|
|
8546
8546
|
),
|
|
@@ -8590,7 +8590,7 @@ function Ug({
|
|
|
8590
8590
|
showDelete: l,
|
|
8591
8591
|
payNowHiddenStatuses: o,
|
|
8592
8592
|
onPayInstallment: g,
|
|
8593
|
-
onDeleteInstallment:
|
|
8593
|
+
onDeleteInstallment: p
|
|
8594
8594
|
}
|
|
8595
8595
|
) })
|
|
8596
8596
|
] }, S.id);
|
|
@@ -8648,7 +8648,7 @@ function mi({ status: e, label: t }) {
|
|
|
8648
8648
|
{
|
|
8649
8649
|
size: "md",
|
|
8650
8650
|
radius: "lg",
|
|
8651
|
-
className:
|
|
8651
|
+
className: h(
|
|
8652
8652
|
"justify-center px-4",
|
|
8653
8653
|
ui[e] ?? ui.scheduled
|
|
8654
8654
|
),
|
|
@@ -8813,12 +8813,12 @@ const Hm = {
|
|
|
8813
8813
|
onCardSelect: f,
|
|
8814
8814
|
className: m = ""
|
|
8815
8815
|
}) => {
|
|
8816
|
-
const g = Array.isArray(e) ? e : [], [
|
|
8816
|
+
const g = Array.isArray(e) ? e : [], [p, x] = W(o), [y, b] = W(l), N = { ...Hm, ...i };
|
|
8817
8817
|
we(() => {
|
|
8818
8818
|
x(o);
|
|
8819
8819
|
}, [o]);
|
|
8820
8820
|
const k = (w) => {
|
|
8821
|
-
if (w ===
|
|
8821
|
+
if (w === p) {
|
|
8822
8822
|
c && f?.(w);
|
|
8823
8823
|
return;
|
|
8824
8824
|
}
|
|
@@ -8829,10 +8829,10 @@ const Hm = {
|
|
|
8829
8829
|
return /* @__PURE__ */ u(
|
|
8830
8830
|
"div",
|
|
8831
8831
|
{
|
|
8832
|
-
className:
|
|
8832
|
+
className: h("w-full flex flex-col gap-4 items-start p-4 h-svh", m),
|
|
8833
8833
|
"data-testid": "membership-select-cards",
|
|
8834
8834
|
children: [
|
|
8835
|
-
/* @__PURE__ */ n("span", { className: "hidden", "data-testid": "membership-select-cards-selected-id", children:
|
|
8835
|
+
/* @__PURE__ */ n("span", { className: "hidden", "data-testid": "membership-select-cards-selected-id", children: p ?? "" }),
|
|
8836
8836
|
/* @__PURE__ */ n("p", { className: "text-2xl font-semibold text-left", "data-testid": "membership-select-cards-title", children: N.title }),
|
|
8837
8837
|
s && /* @__PURE__ */ n(
|
|
8838
8838
|
cf,
|
|
@@ -8846,9 +8846,9 @@ const Hm = {
|
|
|
8846
8846
|
/* @__PURE__ */ n(
|
|
8847
8847
|
"div",
|
|
8848
8848
|
{
|
|
8849
|
-
className:
|
|
8849
|
+
className: h(
|
|
8850
8850
|
"w-full min-h-0 flex flex-col gap-4 overflow-y-auto",
|
|
8851
|
-
r === "" ? "flex-1" :
|
|
8851
|
+
r === "" ? "flex-1" : h("shrink-0", r)
|
|
8852
8852
|
),
|
|
8853
8853
|
"data-testid": "membership-select-cards-list",
|
|
8854
8854
|
children: g.map((w) => /* @__PURE__ */ n(
|
|
@@ -8860,7 +8860,7 @@ const Hm = {
|
|
|
8860
8860
|
price: w.price,
|
|
8861
8861
|
locale: t,
|
|
8862
8862
|
currency: a,
|
|
8863
|
-
isSelected:
|
|
8863
|
+
isSelected: p === w.id,
|
|
8864
8864
|
onSelect: k
|
|
8865
8865
|
},
|
|
8866
8866
|
w.id
|
|
@@ -8884,7 +8884,7 @@ const Hm = {
|
|
|
8884
8884
|
isDisabled: f = !1,
|
|
8885
8885
|
disabledReason: m,
|
|
8886
8886
|
statusLabel: g,
|
|
8887
|
-
statusTone:
|
|
8887
|
+
statusTone: p = "default",
|
|
8888
8888
|
className: x = ""
|
|
8889
8889
|
}) => {
|
|
8890
8890
|
const y = new Intl.NumberFormat(i, {
|
|
@@ -8901,7 +8901,7 @@ const Hm = {
|
|
|
8901
8901
|
onPress: () => {
|
|
8902
8902
|
b && c?.(e);
|
|
8903
8903
|
},
|
|
8904
|
-
className:
|
|
8904
|
+
className: h(
|
|
8905
8905
|
"w-full min-h-fit border rounded-3xl",
|
|
8906
8906
|
o ? "border-primary bg-primary/5" : "border-default",
|
|
8907
8907
|
f ? "opacity-60" : "",
|
|
@@ -8911,12 +8911,12 @@ const Hm = {
|
|
|
8911
8911
|
"data-testid": "item-card",
|
|
8912
8912
|
"data-selected": o,
|
|
8913
8913
|
isDisabled: f,
|
|
8914
|
-
children: /* @__PURE__ */ u("div", { className:
|
|
8914
|
+
children: /* @__PURE__ */ u("div", { className: h("px-4 py-8 flex gap-6 items-center justify-between", d && "px-3 py-3 gap-4"), children: [
|
|
8915
8915
|
/* @__PURE__ */ u("div", { className: "w-max flex flex-col gap-1 items-start", children: [
|
|
8916
8916
|
/* @__PURE__ */ n(
|
|
8917
8917
|
"p",
|
|
8918
8918
|
{
|
|
8919
|
-
className:
|
|
8919
|
+
className: h("font-semibold text-left", d ? "text-sm" : "text-xl"),
|
|
8920
8920
|
"data-testid": "item-card-name",
|
|
8921
8921
|
children: t
|
|
8922
8922
|
}
|
|
@@ -8929,9 +8929,9 @@ const Hm = {
|
|
|
8929
8929
|
children: /* @__PURE__ */ n("p", { className: "text-center", children: a })
|
|
8930
8930
|
}
|
|
8931
8931
|
),
|
|
8932
|
-
N && /* @__PURE__ */ n(tt, { "data-testid": "item-card-status", color:
|
|
8932
|
+
N && /* @__PURE__ */ n(tt, { "data-testid": "item-card-status", color: p, size: "sm", variant: "flat", className: "px-2", children: N })
|
|
8933
8933
|
] }),
|
|
8934
|
-
l && /* @__PURE__ */ n("p", { className:
|
|
8934
|
+
l && /* @__PURE__ */ n("p", { className: h("font-semibold text-right", d ? "text-lg" : "text-2xl"), "data-testid": "item-card-price", children: y })
|
|
8935
8935
|
] })
|
|
8936
8936
|
}
|
|
8937
8937
|
);
|
|
@@ -8952,7 +8952,7 @@ const Hm = {
|
|
|
8952
8952
|
footer: f,
|
|
8953
8953
|
onPress: m,
|
|
8954
8954
|
isPressable: g = !1,
|
|
8955
|
-
isDisabled:
|
|
8955
|
+
isDisabled: p = !1,
|
|
8956
8956
|
compact: x = !1,
|
|
8957
8957
|
className: y = "",
|
|
8958
8958
|
bodyClassName: b = "",
|
|
@@ -8963,9 +8963,9 @@ const Hm = {
|
|
|
8963
8963
|
variant: d?.variant ?? pi.variant,
|
|
8964
8964
|
color: d?.color ?? pi.color,
|
|
8965
8965
|
size: d?.size ?? "sm",
|
|
8966
|
-
isDisabled:
|
|
8966
|
+
isDisabled: p || d?.isDisabled,
|
|
8967
8967
|
startContent: d?.icon ? /* @__PURE__ */ n(I, { icon: d.icon, width: 16 }) : void 0
|
|
8968
|
-
} : null, D = a ?? (r ? /* @__PURE__ */ n("div", { className:
|
|
8968
|
+
} : null, D = a ?? (r ? /* @__PURE__ */ n("div", { className: h("relative overflow-hidden rounded-xl", l, hi, s), children: /* @__PURE__ */ n(
|
|
8969
8969
|
ka,
|
|
8970
8970
|
{
|
|
8971
8971
|
removeWrapper: !0,
|
|
@@ -8979,7 +8979,7 @@ const Hm = {
|
|
|
8979
8979
|
) }) : /* @__PURE__ */ n(
|
|
8980
8980
|
"div",
|
|
8981
8981
|
{
|
|
8982
|
-
className:
|
|
8982
|
+
className: h(
|
|
8983
8983
|
"relative overflow-hidden rounded-xl",
|
|
8984
8984
|
l,
|
|
8985
8985
|
hi,
|
|
@@ -8994,20 +8994,20 @@ const Hm = {
|
|
|
8994
8994
|
Ne,
|
|
8995
8995
|
{
|
|
8996
8996
|
"data-testid": k || `catalog-item-card-${e ?? "item"}`,
|
|
8997
|
-
className:
|
|
8997
|
+
className: h("w-full overflow-hidden", y),
|
|
8998
8998
|
isPressable: $,
|
|
8999
8999
|
onPress: m,
|
|
9000
|
-
isDisabled:
|
|
9000
|
+
isDisabled: p,
|
|
9001
9001
|
shadow: "sm",
|
|
9002
9002
|
radius: "lg",
|
|
9003
9003
|
children: [
|
|
9004
9004
|
/* @__PURE__ */ n("div", { children: D }),
|
|
9005
|
-
/* @__PURE__ */ u(Ae, { className:
|
|
9005
|
+
/* @__PURE__ */ u(Ae, { className: h("gap-3", x ? "p-3" : "p-4", b), children: [
|
|
9006
9006
|
/* @__PURE__ */ n(
|
|
9007
9007
|
"h3",
|
|
9008
9008
|
{
|
|
9009
9009
|
"data-testid": `catalog-item-card-title-${e ?? ""}`,
|
|
9010
|
-
className:
|
|
9010
|
+
className: h("line-clamp-2 text-base font-semibold text-gray-900", x ? "text-sm" : ""),
|
|
9011
9011
|
children: t
|
|
9012
9012
|
}
|
|
9013
9013
|
),
|
|
@@ -9018,7 +9018,7 @@ const Hm = {
|
|
|
9018
9018
|
(A || w) && /* @__PURE__ */ u(
|
|
9019
9019
|
"div",
|
|
9020
9020
|
{
|
|
9021
|
-
className:
|
|
9021
|
+
className: h(
|
|
9022
9022
|
"flex items-center justify-end gap-2 pt-1 text-sm",
|
|
9023
9023
|
x ? "pt-0.5" : "",
|
|
9024
9024
|
N
|
|
@@ -9027,7 +9027,7 @@ const Hm = {
|
|
|
9027
9027
|
A ? /* @__PURE__ */ u(
|
|
9028
9028
|
"span",
|
|
9029
9029
|
{
|
|
9030
|
-
className:
|
|
9030
|
+
className: h("mr-auto text-gray-500", x ? "text-xs" : ""),
|
|
9031
9031
|
"data-testid": `catalog-item-card-price-${e ?? ""}`,
|
|
9032
9032
|
children: [
|
|
9033
9033
|
c?.label && /* @__PURE__ */ u("span", { children: [
|
|
@@ -9041,7 +9041,7 @@ const Hm = {
|
|
|
9041
9041
|
w && M ? /* @__PURE__ */ n(
|
|
9042
9042
|
V,
|
|
9043
9043
|
{
|
|
9044
|
-
className:
|
|
9044
|
+
className: h("rounded-full", d?.className),
|
|
9045
9045
|
onPress: d?.onPress,
|
|
9046
9046
|
variant: C?.variant,
|
|
9047
9047
|
color: C?.color,
|
|
@@ -9068,7 +9068,7 @@ const Gm = {
|
|
|
9068
9068
|
"sold-out": "Sold out"
|
|
9069
9069
|
};
|
|
9070
9070
|
function Ym({ title: e, subtitle: t, price: a, imageUrl: r, status: i, isDisabled: s = !1, onPress: l, className: o }) {
|
|
9071
|
-
return /* @__PURE__ */ n(Ne, { isPressable: !!l, isDisabled: s, onPress: l, shadow: "none", radius: "lg", className:
|
|
9071
|
+
return /* @__PURE__ */ n(Ne, { isPressable: !!l, isDisabled: s, onPress: l, shadow: "none", radius: "lg", className: h("w-full border border-pos-hair", o), children: /* @__PURE__ */ u(Ae, { className: "flex-row items-center gap-5 p-4", children: [
|
|
9072
9072
|
/* @__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(ka, { removeWrapper: !0, src: r, alt: "", className: "size-full object-cover" }) : /* @__PURE__ */ n(I, { icon: "solar:ticket-outline", width: 28 }) }),
|
|
9073
9073
|
/* @__PURE__ */ u("div", { className: "min-w-0 flex-1", children: [
|
|
9074
9074
|
/* @__PURE__ */ n("h3", { className: "truncate text-lg font-semibold text-foreground", children: e }),
|
|
@@ -9155,7 +9155,7 @@ function la({
|
|
|
9155
9155
|
classNames: m = {},
|
|
9156
9156
|
"data-testid": g = "feedback-state"
|
|
9157
9157
|
}) {
|
|
9158
|
-
const
|
|
9158
|
+
const p = lf(e, s, d, m);
|
|
9159
9159
|
return /* @__PURE__ */ u(
|
|
9160
9160
|
"div",
|
|
9161
9161
|
{
|
|
@@ -9164,7 +9164,7 @@ function la({
|
|
|
9164
9164
|
"data-variant": e,
|
|
9165
9165
|
"data-testid": g,
|
|
9166
9166
|
"data-surface": t,
|
|
9167
|
-
className:
|
|
9167
|
+
className: h(
|
|
9168
9168
|
"flex flex-col items-center justify-center text-center",
|
|
9169
9169
|
Km[t],
|
|
9170
9170
|
// The panel draws no outline of its own, so the per-variant
|
|
@@ -9174,27 +9174,27 @@ function la({
|
|
|
9174
9174
|
m.base
|
|
9175
9175
|
),
|
|
9176
9176
|
children: [
|
|
9177
|
-
|
|
9177
|
+
p ? /* @__PURE__ */ n(
|
|
9178
9178
|
"span",
|
|
9179
9179
|
{
|
|
9180
9180
|
"aria-hidden": "true",
|
|
9181
9181
|
"data-testid": `${g}-icon`,
|
|
9182
|
-
className:
|
|
9182
|
+
className: h(
|
|
9183
9183
|
"inline-flex items-center justify-center",
|
|
9184
9184
|
Qm[t],
|
|
9185
9185
|
e === "success" && t === "card" && "rounded-full",
|
|
9186
9186
|
t === "panel" ? ef : nf[e],
|
|
9187
9187
|
m.iconWrapper
|
|
9188
9188
|
),
|
|
9189
|
-
children:
|
|
9189
|
+
children: p
|
|
9190
9190
|
}
|
|
9191
9191
|
) : null,
|
|
9192
|
-
/* @__PURE__ */ u("div", { className:
|
|
9192
|
+
/* @__PURE__ */ u("div", { className: h("flex flex-col items-center", t === "card" && "gap-1"), children: [
|
|
9193
9193
|
/* @__PURE__ */ n(
|
|
9194
9194
|
r,
|
|
9195
9195
|
{
|
|
9196
9196
|
"data-testid": `${g}-title`,
|
|
9197
|
-
className:
|
|
9197
|
+
className: h(Zm[t], m.title),
|
|
9198
9198
|
children: a
|
|
9199
9199
|
}
|
|
9200
9200
|
),
|
|
@@ -9202,12 +9202,12 @@ function la({
|
|
|
9202
9202
|
"p",
|
|
9203
9203
|
{
|
|
9204
9204
|
"data-testid": `${g}-description`,
|
|
9205
|
-
className:
|
|
9205
|
+
className: h(Xm[t], m.description),
|
|
9206
9206
|
children: i
|
|
9207
9207
|
}
|
|
9208
9208
|
) : null
|
|
9209
9209
|
] }),
|
|
9210
|
-
l ? /* @__PURE__ */ n("div", { "data-testid": `${g}-actions`, className:
|
|
9210
|
+
l ? /* @__PURE__ */ n("div", { "data-testid": `${g}-actions`, className: h(
|
|
9211
9211
|
"flex flex-wrap items-center justify-center gap-2",
|
|
9212
9212
|
Jm[t],
|
|
9213
9213
|
m.actions
|
|
@@ -9238,7 +9238,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9238
9238
|
return /* @__PURE__ */ u(
|
|
9239
9239
|
"div",
|
|
9240
9240
|
{
|
|
9241
|
-
className:
|
|
9241
|
+
className: h(
|
|
9242
9242
|
"w-full flex flex-row items-center",
|
|
9243
9243
|
e || a ? "justify-between gap-6" : "justify-start",
|
|
9244
9244
|
i
|
|
@@ -9312,7 +9312,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9312
9312
|
i || s >= a || r?.(s + 1);
|
|
9313
9313
|
}, g = () => {
|
|
9314
9314
|
i || s <= t || r?.(s - 1);
|
|
9315
|
-
},
|
|
9315
|
+
}, p = (w) => {
|
|
9316
9316
|
if (i) return;
|
|
9317
9317
|
o(w.target.value);
|
|
9318
9318
|
const $ = parseInt(w.target.value, 10);
|
|
@@ -9333,7 +9333,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9333
9333
|
type: "button",
|
|
9334
9334
|
onClick: g,
|
|
9335
9335
|
disabled: i || y,
|
|
9336
|
-
className:
|
|
9336
|
+
className: h(N, i || y ? A : k),
|
|
9337
9337
|
"aria-label": "Decrement quantity",
|
|
9338
9338
|
"data-testid": "quantity-decrement",
|
|
9339
9339
|
children: "-"
|
|
@@ -9344,7 +9344,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9344
9344
|
{
|
|
9345
9345
|
type: "number",
|
|
9346
9346
|
value: f,
|
|
9347
|
-
onChange:
|
|
9347
|
+
onChange: p,
|
|
9348
9348
|
onFocus: () => d(!0),
|
|
9349
9349
|
onBlur: x,
|
|
9350
9350
|
disabled: i,
|
|
@@ -9362,7 +9362,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9362
9362
|
type: "button",
|
|
9363
9363
|
onClick: m,
|
|
9364
9364
|
disabled: i || b,
|
|
9365
|
-
className:
|
|
9365
|
+
className: h(N, i || b ? A : k),
|
|
9366
9366
|
"aria-label": "Increment quantity",
|
|
9367
9367
|
"data-testid": "quantity-increment",
|
|
9368
9368
|
children: "+"
|
|
@@ -9381,7 +9381,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9381
9381
|
"aria-checked": t,
|
|
9382
9382
|
"data-testid": "checkbox-button",
|
|
9383
9383
|
"data-checked": t,
|
|
9384
|
-
className:
|
|
9384
|
+
className: h(
|
|
9385
9385
|
"flex items-center gap-1.5 px-4 py-3 border-0 rounded-full cursor-pointer text-sm min-h-[30px]",
|
|
9386
9386
|
"outline-none select-none transition-colors bg-zinc-100 hover:bg-zinc-200 text-primary",
|
|
9387
9387
|
r && "cursor-not-allowed opacity-60"
|
|
@@ -9404,7 +9404,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9404
9404
|
/* @__PURE__ */ n(
|
|
9405
9405
|
"span",
|
|
9406
9406
|
{
|
|
9407
|
-
className:
|
|
9407
|
+
className: h(
|
|
9408
9408
|
"block w-3.5 h-3.5 rounded-sm relative",
|
|
9409
9409
|
t ? "bg-primary" : "bg-white ring-1 ring-zinc-300"
|
|
9410
9410
|
),
|
|
@@ -9526,7 +9526,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9526
9526
|
}) => /* @__PURE__ */ u(
|
|
9527
9527
|
"div",
|
|
9528
9528
|
{
|
|
9529
|
-
className:
|
|
9529
|
+
className: h("flex flex-col gap-2 pb-3", !a && "border-b border-zinc-200"),
|
|
9530
9530
|
"data-testid": "upgrade-ticket-date-group",
|
|
9531
9531
|
children: [
|
|
9532
9532
|
/* @__PURE__ */ n("p", { className: "m-0 text-sm text-left text-zinc-500", "data-testid": "upgrade-ticket-date", children: t.date }),
|
|
@@ -9559,12 +9559,12 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9559
9559
|
initialExpanded: c = !1
|
|
9560
9560
|
}) => {
|
|
9561
9561
|
const [d, f] = W(c), m = t.dates.reduce(
|
|
9562
|
-
(
|
|
9562
|
+
(p, x) => p + x.tickets.reduce(
|
|
9563
9563
|
(y, b) => y + r(t.id, x.id, b.id),
|
|
9564
9564
|
0
|
|
9565
9565
|
),
|
|
9566
9566
|
0
|
|
9567
|
-
), g = t.dates.some((
|
|
9567
|
+
), g = t.dates.some((p) => p.tickets.length > 0);
|
|
9568
9568
|
return /* @__PURE__ */ u("div", { className: "w-full overflow-hidden border-b border-zinc-200", "data-testid": "upgrade-ticket-header", children: [
|
|
9569
9569
|
/* @__PURE__ */ n(
|
|
9570
9570
|
"button",
|
|
@@ -9593,7 +9593,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9593
9593
|
/* @__PURE__ */ n(
|
|
9594
9594
|
"span",
|
|
9595
9595
|
{
|
|
9596
|
-
className:
|
|
9596
|
+
className: h(
|
|
9597
9597
|
"inline-flex items-center justify-center text-zinc-500 text-xl transition-transform duration-200",
|
|
9598
9598
|
d && "rotate-180"
|
|
9599
9599
|
),
|
|
@@ -9609,16 +9609,16 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9609
9609
|
"div",
|
|
9610
9610
|
{
|
|
9611
9611
|
id: `upgrade-items-${t.id}`,
|
|
9612
|
-
className:
|
|
9612
|
+
className: h(
|
|
9613
9613
|
"transition-all duration-300 overflow-hidden",
|
|
9614
9614
|
d ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"
|
|
9615
9615
|
),
|
|
9616
9616
|
"aria-hidden": !d,
|
|
9617
|
-
children: d && /* @__PURE__ */ n("div", { className: "px-5 flex flex-col gap-6", "data-testid": "upgrade-ticket-items", children: g ? t.dates.map((
|
|
9617
|
+
children: d && /* @__PURE__ */ n("div", { className: "px-5 flex flex-col gap-6", "data-testid": "upgrade-ticket-items", children: g ? t.dates.map((p, x) => /* @__PURE__ */ n(
|
|
9618
9618
|
bf,
|
|
9619
9619
|
{
|
|
9620
9620
|
exhibitionId: t.id,
|
|
9621
|
-
dateGroup:
|
|
9621
|
+
dateGroup: p,
|
|
9622
9622
|
isLast: x === t.dates.length - 1,
|
|
9623
9623
|
onQuantityChange: a,
|
|
9624
9624
|
getTicketQuantity: r,
|
|
@@ -9627,7 +9627,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9627
9627
|
settings: l,
|
|
9628
9628
|
labels: o
|
|
9629
9629
|
},
|
|
9630
|
-
|
|
9630
|
+
p.id
|
|
9631
9631
|
)) : /* @__PURE__ */ n("div", { className: "px-5 py-10 text-center", children: /* @__PURE__ */ n("p", { className: "m-0 text-zinc-500 italic", children: o.noUpgradeTicketsAvailable }) }) })
|
|
9632
9632
|
}
|
|
9633
9633
|
)
|
|
@@ -9648,7 +9648,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9648
9648
|
({ exhibition: A, dateGroup: w, ticket: $ }) => [bi(A.id, w.id, $.id), $]
|
|
9649
9649
|
);
|
|
9650
9650
|
return new Map(k);
|
|
9651
|
-
}, [o]),
|
|
9651
|
+
}, [o]), p = ff(o, d, t), x = (k, A, w) => d[k]?.[A]?.[w]?.selectedQuantity ?? 0, y = () => tl(d), b = (k, A, w, $) => {
|
|
9652
9652
|
const M = x(k, A, w), C = y() - M;
|
|
9653
9653
|
if (t !== void 0 && C + $ > t) return;
|
|
9654
9654
|
const D = g.get(bi(k, A, w));
|
|
@@ -9674,15 +9674,15 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9674
9674
|
f(A), l?.(A);
|
|
9675
9675
|
};
|
|
9676
9676
|
return we(() => {
|
|
9677
|
-
!m.current &&
|
|
9678
|
-
}, [
|
|
9677
|
+
!m.current && p && (l?.(d), m.current = !0);
|
|
9678
|
+
}, [p, d, l]), /* @__PURE__ */ u("div", { className: h("flex flex-col w-full font-sans", s), "data-testid": "ticket-selection", children: [
|
|
9679
9679
|
/* @__PURE__ */ u("div", { className: "flex items-center justify-between py-2 gap-4", "data-testid": "ticket-selection-header", children: [
|
|
9680
9680
|
/* @__PURE__ */ n("h3", { className: "text-xl font-semibold m-0", "data-testid": "ticket-selection-title", children: c.ticketSelectionTitle }),
|
|
9681
9681
|
/* @__PURE__ */ n(
|
|
9682
9682
|
pf,
|
|
9683
9683
|
{
|
|
9684
9684
|
label: c.selectAllButtonLabel,
|
|
9685
|
-
checked:
|
|
9685
|
+
checked: p,
|
|
9686
9686
|
onChange: N
|
|
9687
9687
|
}
|
|
9688
9688
|
)
|
|
@@ -9737,7 +9737,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9737
9737
|
onConfirm: f,
|
|
9738
9738
|
onClear: m,
|
|
9739
9739
|
appliedCount: g,
|
|
9740
|
-
countAriaLabel:
|
|
9740
|
+
countAriaLabel: p,
|
|
9741
9741
|
countDisplay: x = "badge",
|
|
9742
9742
|
confirmLabel: y = pn.confirm,
|
|
9743
9743
|
clearLabel: b = pn.clear,
|
|
@@ -9789,9 +9789,9 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9789
9789
|
Q.id
|
|
9790
9790
|
);
|
|
9791
9791
|
}, Y = oe(
|
|
9792
|
-
() => F > 0 ?
|
|
9793
|
-
[
|
|
9794
|
-
), re = oe(() => F === 0 ? e || pn.noLabel :
|
|
9792
|
+
() => F > 0 ? p?.(F) || `${F} filters applied` : void 0,
|
|
9793
|
+
[p, F]
|
|
9794
|
+
), re = oe(() => F === 0 ? e || pn.noLabel : p ? p(F) : `${e} (${F})`, [F, e, p]);
|
|
9795
9795
|
return /* @__PURE__ */ n("div", { className: c, children: /* @__PURE__ */ u(Oa, { isOpen: L, onOpenChange: P, placement: "bottom-end", children: [
|
|
9796
9796
|
/* @__PURE__ */ n(za, { children: /* @__PURE__ */ u(
|
|
9797
9797
|
V,
|
|
@@ -9845,7 +9845,7 @@ const Nf = "No sessions available for this date", kf = (e) => e === "sold-out" |
|
|
|
9845
9845
|
statusTone: f,
|
|
9846
9846
|
sessionAriaLabel: m,
|
|
9847
9847
|
dayButtonClassName: g,
|
|
9848
|
-
calendarSlot:
|
|
9848
|
+
calendarSlot: p,
|
|
9849
9849
|
dayGroupAriaLabel: x,
|
|
9850
9850
|
sessionGridAriaLabel: y,
|
|
9851
9851
|
className: b,
|
|
@@ -9861,10 +9861,10 @@ const Nf = "No sessions available for this date", kf = (e) => e === "sold-out" |
|
|
|
9861
9861
|
o(S.id);
|
|
9862
9862
|
}
|
|
9863
9863
|
};
|
|
9864
|
-
return /* @__PURE__ */ u("section", { className:
|
|
9864
|
+
return /* @__PURE__ */ u("section", { className: h("flex flex-col gap-4 rounded-xl bg-white p-3 sm:p-4", b), "data-testid": "session-timeline-root", children: [
|
|
9865
9865
|
/* @__PURE__ */ u("header", { className: "flex flex-col gap-1", children: [
|
|
9866
|
-
/* @__PURE__ */ n("h2", { className:
|
|
9867
|
-
t ? /* @__PURE__ */ n("p", { className:
|
|
9866
|
+
/* @__PURE__ */ n("h2", { className: h("text-base font-semibold text-gray-900", N), children: e }),
|
|
9867
|
+
t ? /* @__PURE__ */ n("p", { className: h("text-sm text-gray-700", k), children: t }) : null
|
|
9868
9868
|
] }),
|
|
9869
9869
|
/* @__PURE__ */ u(
|
|
9870
9870
|
"div",
|
|
@@ -9879,7 +9879,7 @@ const Nf = "No sessions available for this date", kf = (e) => e === "sold-out" |
|
|
|
9879
9879
|
size: "sm",
|
|
9880
9880
|
variant: C(S.date),
|
|
9881
9881
|
color: "default",
|
|
9882
|
-
className:
|
|
9882
|
+
className: h("rounded-full", g),
|
|
9883
9883
|
isDisabled: S.isDisabled,
|
|
9884
9884
|
onPress: () => {
|
|
9885
9885
|
i(S.date);
|
|
@@ -9888,7 +9888,7 @@ const Nf = "No sessions available for this date", kf = (e) => e === "sold-out" |
|
|
|
9888
9888
|
},
|
|
9889
9889
|
S.date
|
|
9890
9890
|
)),
|
|
9891
|
-
|
|
9891
|
+
p ? /* @__PURE__ */ n("div", { children: p }) : null
|
|
9892
9892
|
]
|
|
9893
9893
|
}
|
|
9894
9894
|
),
|
|
@@ -9912,7 +9912,7 @@ const Nf = "No sessions available for this date", kf = (e) => e === "sold-out" |
|
|
|
9912
9912
|
},
|
|
9913
9913
|
"aria-disabled": R,
|
|
9914
9914
|
"aria-pressed": R ? void 0 : L,
|
|
9915
|
-
className:
|
|
9915
|
+
className: h(
|
|
9916
9916
|
"w-full",
|
|
9917
9917
|
R ? "bg-gray-100 opacity-70" : "",
|
|
9918
9918
|
L ? "w-full ring-2 ring-gray-900" : ""
|
|
@@ -9993,7 +9993,7 @@ const Ef = 48, Ke = {
|
|
|
9993
9993
|
narrow: m,
|
|
9994
9994
|
headerRef: g
|
|
9995
9995
|
}) => {
|
|
9996
|
-
const
|
|
9996
|
+
const p = Ff(r, i);
|
|
9997
9997
|
return /* @__PURE__ */ u(
|
|
9998
9998
|
"header",
|
|
9999
9999
|
{
|
|
@@ -10001,23 +10001,23 @@ const Ef = 48, Ke = {
|
|
|
10001
10001
|
"data-testid": d,
|
|
10002
10002
|
"data-variant": f ? "list" : void 0,
|
|
10003
10003
|
"data-size": f ? m ? "narrow" : "wide" : void 0,
|
|
10004
|
-
className:
|
|
10005
|
-
f ?
|
|
10004
|
+
className: h(
|
|
10005
|
+
f ? h(Ke.base, m ? Ke.baseNarrow : Ke.baseWide) : "flex flex-wrap items-start justify-between gap-4",
|
|
10006
10006
|
o,
|
|
10007
10007
|
c.base
|
|
10008
10008
|
),
|
|
10009
10009
|
children: [
|
|
10010
10010
|
/* @__PURE__ */ u("div", { className: f ? Ke.identity : "flex items-center gap-4", children: [
|
|
10011
|
-
|
|
10011
|
+
p ? /* @__PURE__ */ n(
|
|
10012
10012
|
"div",
|
|
10013
10013
|
{
|
|
10014
10014
|
"aria-hidden": "true",
|
|
10015
10015
|
"data-testid": `${d}-icon`,
|
|
10016
|
-
className:
|
|
10016
|
+
className: h(
|
|
10017
10017
|
"flex size-12 shrink-0 items-center justify-center rounded-xl bg-gray-900 text-sm font-semibold text-white",
|
|
10018
10018
|
c.iconWrapper
|
|
10019
10019
|
),
|
|
10020
|
-
children:
|
|
10020
|
+
children: p
|
|
10021
10021
|
}
|
|
10022
10022
|
) : null,
|
|
10023
10023
|
/* @__PURE__ */ u("div", { className: f ? Ke.text : void 0, children: [
|
|
@@ -10025,7 +10025,7 @@ const Ef = 48, Ke = {
|
|
|
10025
10025
|
"p",
|
|
10026
10026
|
{
|
|
10027
10027
|
"data-testid": `${d}-eyebrow`,
|
|
10028
|
-
className:
|
|
10028
|
+
className: h(
|
|
10029
10029
|
"text-brand text-sm font-medium uppercase tracking-wide",
|
|
10030
10030
|
c.eyebrow
|
|
10031
10031
|
),
|
|
@@ -10036,7 +10036,7 @@ const Ef = 48, Ke = {
|
|
|
10036
10036
|
l,
|
|
10037
10037
|
{
|
|
10038
10038
|
"data-testid": `${d}-title`,
|
|
10039
|
-
className:
|
|
10039
|
+
className: h(
|
|
10040
10040
|
f ? m ? Ke.titleNarrow : Ke.titleWide : "text-3xl font-semibold text-gray-950",
|
|
10041
10041
|
c.title
|
|
10042
10042
|
),
|
|
@@ -10047,7 +10047,7 @@ const Ef = 48, Ke = {
|
|
|
10047
10047
|
"p",
|
|
10048
10048
|
{
|
|
10049
10049
|
"data-testid": `${d}-subtitle`,
|
|
10050
|
-
className:
|
|
10050
|
+
className: h(
|
|
10051
10051
|
f ? m ? Ke.subtitleNarrow : Ke.subtitleWide : "mt-1 text-sm text-gray-600",
|
|
10052
10052
|
c.subtitle
|
|
10053
10053
|
),
|
|
@@ -10060,7 +10060,7 @@ const Ef = 48, Ke = {
|
|
|
10060
10060
|
"div",
|
|
10061
10061
|
{
|
|
10062
10062
|
"data-testid": `${d}-actions`,
|
|
10063
|
-
className:
|
|
10063
|
+
className: h(
|
|
10064
10064
|
f ? m ? Ke.actionsNarrow : Ke.actionsWide : "flex flex-wrap items-center gap-2",
|
|
10065
10065
|
c.actions
|
|
10066
10066
|
),
|
|
@@ -10148,7 +10148,7 @@ const Mf = {
|
|
|
10148
10148
|
"data-testid": o,
|
|
10149
10149
|
"data-status": e,
|
|
10150
10150
|
"data-variant": "plain",
|
|
10151
|
-
className:
|
|
10151
|
+
className: h(
|
|
10152
10152
|
"inline-flex items-center gap-1.5 whitespace-nowrap rounded-full font-normal",
|
|
10153
10153
|
Pf[r],
|
|
10154
10154
|
"leading-[1.35]",
|
|
@@ -10169,7 +10169,7 @@ const Mf = {
|
|
|
10169
10169
|
{
|
|
10170
10170
|
"data-testid": o,
|
|
10171
10171
|
"data-status": e,
|
|
10172
|
-
className:
|
|
10172
|
+
className: h(
|
|
10173
10173
|
"inline-flex items-center gap-1.5 whitespace-nowrap rounded-full px-2.5 py-[3px] text-[12px] font-semibold leading-[1.4]",
|
|
10174
10174
|
l
|
|
10175
10175
|
),
|
|
@@ -10198,7 +10198,7 @@ const Mf = {
|
|
|
10198
10198
|
startContent: s,
|
|
10199
10199
|
"data-testid": o,
|
|
10200
10200
|
"data-status": e,
|
|
10201
|
-
className:
|
|
10201
|
+
className: h("font-medium", l),
|
|
10202
10202
|
style: c ? { color: c.fg, backgroundColor: c.bg } : void 0,
|
|
10203
10203
|
children: t
|
|
10204
10204
|
}
|
|
@@ -10226,7 +10226,7 @@ const If = {
|
|
|
10226
10226
|
{
|
|
10227
10227
|
"data-testid": s,
|
|
10228
10228
|
"data-variant": "record",
|
|
10229
|
-
className:
|
|
10229
|
+
className: h(ha.base, ha[a], i),
|
|
10230
10230
|
children: [
|
|
10231
10231
|
/* @__PURE__ */ n("span", { className: ha.label, children: e }),
|
|
10232
10232
|
/* @__PURE__ */ n("span", { className: ha.value, children: t })
|
|
@@ -10236,7 +10236,7 @@ const If = {
|
|
|
10236
10236
|
"span",
|
|
10237
10237
|
{
|
|
10238
10238
|
"data-testid": s,
|
|
10239
|
-
className:
|
|
10239
|
+
className: h(
|
|
10240
10240
|
"inline-flex items-baseline whitespace-nowrap border border-default-200 bg-default-100",
|
|
10241
10241
|
If[a],
|
|
10242
10242
|
i
|
|
@@ -10282,7 +10282,7 @@ const jf = ({
|
|
|
10282
10282
|
role: "status",
|
|
10283
10283
|
"aria-busy": "true",
|
|
10284
10284
|
"data-testid": c,
|
|
10285
|
-
className:
|
|
10285
|
+
className: h("w-full", l, o.base),
|
|
10286
10286
|
children: [
|
|
10287
10287
|
/* @__PURE__ */ n("span", { className: "sr-only", children: a }),
|
|
10288
10288
|
/* @__PURE__ */ n("div", { "aria-hidden": "true", children: Array.from({ length: t }).map(
|
|
@@ -10290,17 +10290,17 @@ const jf = ({
|
|
|
10290
10290
|
"div",
|
|
10291
10291
|
{
|
|
10292
10292
|
"data-testid": `${c}-row`,
|
|
10293
|
-
className:
|
|
10293
|
+
className: h("flex items-center border-b border-pos-hair", o.row),
|
|
10294
10294
|
children: e.map((m, g) => {
|
|
10295
|
-
const
|
|
10295
|
+
const p = g === e.length - 1;
|
|
10296
10296
|
return /* @__PURE__ */ n(
|
|
10297
10297
|
"div",
|
|
10298
10298
|
{
|
|
10299
|
-
className:
|
|
10299
|
+
className: h("min-w-0 flex-1 px-4 py-5", i && p && "flex justify-end"),
|
|
10300
10300
|
children: /* @__PURE__ */ n(
|
|
10301
10301
|
"div",
|
|
10302
10302
|
{
|
|
10303
|
-
className:
|
|
10303
|
+
className: h(Na, o.bar),
|
|
10304
10304
|
style: {
|
|
10305
10305
|
height: mt(r),
|
|
10306
10306
|
width: m === "fill" ? "60%" : mt(m),
|
|
@@ -10318,21 +10318,21 @@ const jf = ({
|
|
|
10318
10318
|
"div",
|
|
10319
10319
|
{
|
|
10320
10320
|
"data-testid": `${c}-row`,
|
|
10321
|
-
className:
|
|
10321
|
+
className: h("flex items-center gap-3 border-t border-default-100 px-5 py-4", o.row),
|
|
10322
10322
|
children: e.map((m, g) => {
|
|
10323
|
-
const
|
|
10323
|
+
const p = g === e.length - 1;
|
|
10324
10324
|
return /* @__PURE__ */ n(
|
|
10325
10325
|
"div",
|
|
10326
10326
|
{
|
|
10327
|
-
className:
|
|
10327
|
+
className: h(
|
|
10328
10328
|
m === "fill" ? "flex-1" : "shrink-0",
|
|
10329
|
-
i &&
|
|
10329
|
+
i && p && "flex justify-end"
|
|
10330
10330
|
),
|
|
10331
10331
|
style: m === "fill" ? void 0 : { width: m },
|
|
10332
10332
|
children: /* @__PURE__ */ n(
|
|
10333
10333
|
"div",
|
|
10334
10334
|
{
|
|
10335
|
-
className:
|
|
10335
|
+
className: h("animate-pulse rounded bg-default-200", o.bar),
|
|
10336
10336
|
style: {
|
|
10337
10337
|
height: r,
|
|
10338
10338
|
// A `fill` column still needs a bar narrower than
|
|
@@ -10373,7 +10373,7 @@ const Hf = "text-left text-[11px] font-semibold uppercase tracking-[.04em] text-
|
|
|
10373
10373
|
return /* @__PURE__ */ u(
|
|
10374
10374
|
"div",
|
|
10375
10375
|
{
|
|
10376
|
-
className:
|
|
10376
|
+
className: h(d && pa.base, l, o.base),
|
|
10377
10377
|
"data-testid": c,
|
|
10378
10378
|
"data-variant": d ? "framed" : void 0,
|
|
10379
10379
|
children: [
|
|
@@ -10383,10 +10383,10 @@ const Hf = "text-left text-[11px] font-semibold uppercase tracking-[.04em] text-
|
|
|
10383
10383
|
"aria-label": i,
|
|
10384
10384
|
removeWrapper: !0,
|
|
10385
10385
|
classNames: {
|
|
10386
|
-
table:
|
|
10387
|
-
th:
|
|
10388
|
-
tr:
|
|
10389
|
-
td:
|
|
10386
|
+
table: h(Gf, o.table),
|
|
10387
|
+
th: h(d ? pa.th : Hf, o.th),
|
|
10388
|
+
tr: h(d ? pa.tr : qf, o.tr),
|
|
10389
|
+
td: h(d ? pa.td : Wf, o.td)
|
|
10390
10390
|
},
|
|
10391
10391
|
children: [
|
|
10392
10392
|
/* @__PURE__ */ n(Yl, { columns: e, children: (f) => /* @__PURE__ */ n(
|
|
@@ -10406,7 +10406,7 @@ const Hf = "text-left text-[11px] font-semibold uppercase tracking-[.04em] text-
|
|
|
10406
10406
|
"div",
|
|
10407
10407
|
{
|
|
10408
10408
|
"data-testid": `${c}-footer`,
|
|
10409
|
-
className:
|
|
10409
|
+
className: h(!d && Yf, o.footer),
|
|
10410
10410
|
children: r
|
|
10411
10411
|
}
|
|
10412
10412
|
) : null
|
|
@@ -10486,7 +10486,7 @@ const Gt = {
|
|
|
10486
10486
|
onPress: () => {
|
|
10487
10487
|
t(""), f.current?.focus();
|
|
10488
10488
|
},
|
|
10489
|
-
className:
|
|
10489
|
+
className: h(vi.button, wi[l].button),
|
|
10490
10490
|
testId: `${o}-search-clear`,
|
|
10491
10491
|
children: /* @__PURE__ */ n(I, { icon: "lucide:x", "aria-hidden": "true", className: wi[l].icon })
|
|
10492
10492
|
}
|
|
@@ -10507,9 +10507,9 @@ const Gt = {
|
|
|
10507
10507
|
radius: "none",
|
|
10508
10508
|
classNames: {
|
|
10509
10509
|
base: d.base,
|
|
10510
|
-
inputWrapper:
|
|
10510
|
+
inputWrapper: h(d.inputWrapper, m && Ma.inputWrapper),
|
|
10511
10511
|
innerWrapper: d.innerWrapper,
|
|
10512
|
-
input:
|
|
10512
|
+
input: h(d.input, m && Ma.input, i && vi.input)
|
|
10513
10513
|
}
|
|
10514
10514
|
}
|
|
10515
10515
|
);
|
|
@@ -10528,16 +10528,16 @@ const Gt = {
|
|
|
10528
10528
|
className: m,
|
|
10529
10529
|
"data-testid": g = "admin-toolbar"
|
|
10530
10530
|
}) => {
|
|
10531
|
-
const { ref:
|
|
10531
|
+
const { ref: p, width: x } = Vt(), y = x > 0 && !oa(x, Zf), b = d === "fill";
|
|
10532
10532
|
return /* @__PURE__ */ u(
|
|
10533
10533
|
"div",
|
|
10534
10534
|
{
|
|
10535
|
-
ref:
|
|
10535
|
+
ref: p,
|
|
10536
10536
|
role: "search",
|
|
10537
10537
|
"data-testid": g,
|
|
10538
10538
|
"data-variant": "framed",
|
|
10539
10539
|
"data-size": y ? "narrow" : "wide",
|
|
10540
|
-
className:
|
|
10540
|
+
className: h(rt.base, y && rt.narrow, m),
|
|
10541
10541
|
children: [
|
|
10542
10542
|
o,
|
|
10543
10543
|
/* @__PURE__ */ n(
|
|
@@ -10561,7 +10561,7 @@ const Gt = {
|
|
|
10561
10561
|
{
|
|
10562
10562
|
"aria-hidden": "true",
|
|
10563
10563
|
"data-testid": `${g}-search-icon`,
|
|
10564
|
-
className:
|
|
10564
|
+
className: h(rt.icon, f === "lg" && Ma.icon),
|
|
10565
10565
|
children: i ?? /* @__PURE__ */ n(I, { icon: "lucide:search" })
|
|
10566
10566
|
}
|
|
10567
10567
|
),
|
|
@@ -10593,7 +10593,7 @@ const Gt = {
|
|
|
10593
10593
|
size: f = "md",
|
|
10594
10594
|
variant: m = "default",
|
|
10595
10595
|
className: g,
|
|
10596
|
-
"data-testid":
|
|
10596
|
+
"data-testid": p = "admin-toolbar"
|
|
10597
10597
|
}) => m === "framed" ? /* @__PURE__ */ n(
|
|
10598
10598
|
Xf,
|
|
10599
10599
|
{
|
|
@@ -10608,10 +10608,10 @@ const Gt = {
|
|
|
10608
10608
|
searchWidth: d,
|
|
10609
10609
|
size: f,
|
|
10610
10610
|
className: g,
|
|
10611
|
-
"data-testid":
|
|
10611
|
+
"data-testid": p,
|
|
10612
10612
|
children: o
|
|
10613
10613
|
}
|
|
10614
|
-
) : /* @__PURE__ */ u("div", { role: "search", "data-testid":
|
|
10614
|
+
) : /* @__PURE__ */ u("div", { role: "search", "data-testid": p, className: h(Gt.base, g), children: [
|
|
10615
10615
|
/* @__PURE__ */ n(
|
|
10616
10616
|
il,
|
|
10617
10617
|
{
|
|
@@ -10622,8 +10622,8 @@ const Gt = {
|
|
|
10622
10622
|
searchClearable: s,
|
|
10623
10623
|
clearLabel: l,
|
|
10624
10624
|
size: f,
|
|
10625
|
-
dataTestId:
|
|
10626
|
-
startContent: i ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className:
|
|
10625
|
+
dataTestId: p,
|
|
10626
|
+
startContent: i ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: h(Gt.icon, f === "lg" && Ma.icon), children: i }) : void 0,
|
|
10627
10627
|
classNames: {
|
|
10628
10628
|
base: Qf[d],
|
|
10629
10629
|
inputWrapper: Gt.inputWrapper,
|
|
@@ -10647,7 +10647,7 @@ const eh = "ml-0.5 inline-flex min-w-[18px] items-center justify-center rounded-
|
|
|
10647
10647
|
variant: "bordered",
|
|
10648
10648
|
radius: "md",
|
|
10649
10649
|
size: "md",
|
|
10650
|
-
className:
|
|
10650
|
+
className: h("rounded-[0.75rem] font-normal", s),
|
|
10651
10651
|
...o,
|
|
10652
10652
|
children: [
|
|
10653
10653
|
/* @__PURE__ */ n(I, { icon: t, className: "size-4", "aria-hidden": !0 }),
|
|
@@ -10662,7 +10662,7 @@ const eh = "ml-0.5 inline-flex min-w-[18px] items-center justify-center rounded-
|
|
|
10662
10662
|
"data-testid": l,
|
|
10663
10663
|
variant: "light",
|
|
10664
10664
|
size: "sm",
|
|
10665
|
-
className:
|
|
10665
|
+
className: h(ah, s),
|
|
10666
10666
|
...o,
|
|
10667
10667
|
children: [
|
|
10668
10668
|
/* @__PURE__ */ n(I, { icon: t, className: "size-4 text-gray-500", "aria-hidden": !0 }),
|
|
@@ -10694,7 +10694,7 @@ function rh({
|
|
|
10694
10694
|
// `w-full` has to be on BOTH: HeroUI's outer wrapper is width-fit
|
|
10695
10695
|
// by default, so widening only the list leaves the hairline
|
|
10696
10696
|
// stopping at the last tab instead of crossing the panel.
|
|
10697
|
-
base:
|
|
10697
|
+
base: h("w-full mb-6", i),
|
|
10698
10698
|
tabList: "gap-7 w-full relative rounded-none p-0 border-b border-acct-border",
|
|
10699
10699
|
// HeroUI draws the active underline as a separate `cursor`
|
|
10700
10700
|
// element, so the colour goes there rather than on a border.
|
|
@@ -10715,7 +10715,7 @@ const sl = "text-[11px] font-semibold uppercase tracking-[.04em] text-acct-muted
|
|
|
10715
10715
|
"h-[38px] min-h-[38px] !h-[38px] rounded-[11px] border border-acct-border bg-acct-surface px-3",
|
|
10716
10716
|
"data-[hover=true]:border-acct-rust-border",
|
|
10717
10717
|
"group-data-[focus=true]:border-acct-rust"
|
|
10718
|
-
].join(" "), sh = "text-[13.5px] text-acct-ink", lh = "bg-acct-page text-acct-muted cursor-default", oh = "mt-[5px] text-xs text-acct-sub", ch = "mt-[5px] text-xs text-acct-danger", dh = ({ children: e, suffix: t, className: a, "data-testid": r = "admin-field-label" }) => /* @__PURE__ */ u("div", { "data-testid": r, className:
|
|
10718
|
+
].join(" "), sh = "text-[13.5px] text-acct-ink", lh = "bg-acct-page text-acct-muted cursor-default", oh = "mt-[5px] text-xs text-acct-sub", ch = "mt-[5px] text-xs text-acct-danger", dh = ({ children: e, suffix: t, className: a, "data-testid": r = "admin-field-label" }) => /* @__PURE__ */ u("div", { "data-testid": r, className: h(sl, a), children: [
|
|
10719
10719
|
e,
|
|
10720
10720
|
t ? /* @__PURE__ */ u("span", { className: ll, children: [
|
|
10721
10721
|
" ",
|
|
@@ -10761,10 +10761,10 @@ const uh = ({
|
|
|
10761
10761
|
variant: "bordered",
|
|
10762
10762
|
radius: "none",
|
|
10763
10763
|
classNames: {
|
|
10764
|
-
base:
|
|
10764
|
+
base: h("w-full", m),
|
|
10765
10765
|
label: sl,
|
|
10766
10766
|
inputWrapper: ih,
|
|
10767
|
-
input:
|
|
10767
|
+
input: h(
|
|
10768
10768
|
sh,
|
|
10769
10769
|
(o || l) && "font-mono",
|
|
10770
10770
|
l && lh
|
|
@@ -10791,7 +10791,7 @@ const mh = {
|
|
|
10791
10791
|
{
|
|
10792
10792
|
role: "presentation",
|
|
10793
10793
|
"data-testid": r,
|
|
10794
|
-
className:
|
|
10794
|
+
className: h("inline-flex gap-0.5", a),
|
|
10795
10795
|
onClick: (i) => i.stopPropagation(),
|
|
10796
10796
|
children: e.map((i) => /* @__PURE__ */ n(
|
|
10797
10797
|
V,
|
|
@@ -10805,7 +10805,7 @@ const mh = {
|
|
|
10805
10805
|
"aria-label": i.label,
|
|
10806
10806
|
title: i.label,
|
|
10807
10807
|
"data-testid": `${r}-${i.key}`,
|
|
10808
|
-
className:
|
|
10808
|
+
className: h("text-acct-sub data-[hover=true]:bg-acct-hair", mh[t]),
|
|
10809
10809
|
children: i.icon
|
|
10810
10810
|
},
|
|
10811
10811
|
i.key
|
|
@@ -10832,7 +10832,7 @@ const hh = ({
|
|
|
10832
10832
|
"div",
|
|
10833
10833
|
{
|
|
10834
10834
|
"data-testid": f,
|
|
10835
|
-
className:
|
|
10835
|
+
className: h(
|
|
10836
10836
|
"flex w-full min-h-10 items-center rounded-[10px] border border-acct-border bg-acct-surface px-[11px] transition-colors duration-150",
|
|
10837
10837
|
c ? "opacity-60" : "hover:border-acct-rust-border",
|
|
10838
10838
|
d
|
|
@@ -10998,7 +10998,7 @@ const Nh = ({
|
|
|
10998
10998
|
chevronIcon: f,
|
|
10999
10999
|
actions: m,
|
|
11000
11000
|
actionsLabel: g,
|
|
11001
|
-
actionsIcon:
|
|
11001
|
+
actionsIcon: p,
|
|
11002
11002
|
size: x,
|
|
11003
11003
|
variant: y = "plain",
|
|
11004
11004
|
isDisabled: b = !1,
|
|
@@ -11024,7 +11024,7 @@ const Nh = ({
|
|
|
11024
11024
|
te,
|
|
11025
11025
|
/* @__PURE__ */ u("span", { className: je.text, children: [
|
|
11026
11026
|
/* @__PURE__ */ u("span", { className: je.titleLine, children: [
|
|
11027
|
-
/* @__PURE__ */ n("span", { id: R, className:
|
|
11027
|
+
/* @__PURE__ */ n("span", { id: R, className: h(je.title, C.title), title: z, children: e }),
|
|
11028
11028
|
T && /* @__PURE__ */ n("span", { id: L, className: je.tags, children: r.map((K) => /* @__PURE__ */ n(
|
|
11029
11029
|
tt,
|
|
11030
11030
|
{
|
|
@@ -11038,13 +11038,13 @@ const Nh = ({
|
|
|
11038
11038
|
K.key
|
|
11039
11039
|
)) })
|
|
11040
11040
|
] }),
|
|
11041
|
-
U && /* @__PURE__ */ n("span", { id: F, className:
|
|
11041
|
+
U && /* @__PURE__ */ n("span", { id: F, className: h(je.subtitle, C.subtitle), children: t })
|
|
11042
11042
|
] })
|
|
11043
11043
|
] }), re = [T ? L : null, U ? F : null].filter(Boolean).join(" "), Q = {
|
|
11044
11044
|
"aria-labelledby": R,
|
|
11045
11045
|
"aria-describedby": re === "" ? void 0 : re,
|
|
11046
11046
|
isDisabled: b,
|
|
11047
|
-
className:
|
|
11047
|
+
className: h(je.pressTarget, D.overlay, C.content)
|
|
11048
11048
|
}, ee = `${A}-trigger`;
|
|
11049
11049
|
let J;
|
|
11050
11050
|
return s !== void 0 ? J = /* @__PURE__ */ n(
|
|
@@ -11073,13 +11073,13 @@ const Nh = ({
|
|
|
11073
11073
|
onPress: i,
|
|
11074
11074
|
children: Y
|
|
11075
11075
|
}
|
|
11076
|
-
) : J = /* @__PURE__ */ n("div", { className:
|
|
11076
|
+
) : J = /* @__PURE__ */ n("div", { className: h(je.content, C.content), children: Y }), /* @__PURE__ */ u(
|
|
11077
11077
|
S,
|
|
11078
11078
|
{
|
|
11079
11079
|
"data-testid": A,
|
|
11080
11080
|
"data-size": M,
|
|
11081
11081
|
"data-disabled": b || void 0,
|
|
11082
|
-
className:
|
|
11082
|
+
className: h(
|
|
11083
11083
|
je.base,
|
|
11084
11084
|
D.row,
|
|
11085
11085
|
C.row,
|
|
@@ -11103,7 +11103,7 @@ const Nh = ({
|
|
|
11103
11103
|
"aria-label": g,
|
|
11104
11104
|
testId: `${A}-menu-trigger`,
|
|
11105
11105
|
className: je.menuTrigger,
|
|
11106
|
-
children:
|
|
11106
|
+
children: p ?? /* @__PURE__ */ n(vh, {})
|
|
11107
11107
|
}
|
|
11108
11108
|
) }),
|
|
11109
11109
|
/* @__PURE__ */ n(
|
|
@@ -11121,7 +11121,7 @@ const Nh = ({
|
|
|
11121
11121
|
{
|
|
11122
11122
|
textValue: K.label,
|
|
11123
11123
|
color: K.tone === "danger" ? "danger" : "default",
|
|
11124
|
-
className:
|
|
11124
|
+
className: h(
|
|
11125
11125
|
K.tone === "danger" && je.dangerItem,
|
|
11126
11126
|
bh[M]
|
|
11127
11127
|
),
|
|
@@ -11154,7 +11154,7 @@ const kh = ({
|
|
|
11154
11154
|
"aria-label": t,
|
|
11155
11155
|
"aria-labelledby": a,
|
|
11156
11156
|
"data-testid": s,
|
|
11157
|
-
className:
|
|
11157
|
+
className: h(cl, xh[r], i),
|
|
11158
11158
|
children: /* @__PURE__ */ n(dl.Provider, { value: !0, children: e })
|
|
11159
11159
|
}
|
|
11160
11160
|
);
|
|
@@ -11173,14 +11173,14 @@ const Ch = ({
|
|
|
11173
11173
|
"li",
|
|
11174
11174
|
{
|
|
11175
11175
|
"data-testid": `${i}-row`,
|
|
11176
|
-
className:
|
|
11176
|
+
className: h(Pt.row, ol[l].row),
|
|
11177
11177
|
children: [
|
|
11178
11178
|
/* @__PURE__ */ n(ie, { className: Pt.avatar[l] }),
|
|
11179
11179
|
/* @__PURE__ */ u("span", { className: Pt.lines, children: [
|
|
11180
11180
|
/* @__PURE__ */ n(
|
|
11181
11181
|
ie,
|
|
11182
11182
|
{
|
|
11183
|
-
className:
|
|
11183
|
+
className: h(Pt.title, o[d % o.length])
|
|
11184
11184
|
}
|
|
11185
11185
|
),
|
|
11186
11186
|
/* @__PURE__ */ n(ie, { className: Pt.subtitle })
|
|
@@ -11208,13 +11208,13 @@ const $h = ({
|
|
|
11208
11208
|
classNames: o = {},
|
|
11209
11209
|
"data-testid": c = "pagination-summary"
|
|
11210
11210
|
}) => {
|
|
11211
|
-
const { from: d, to: f } = Sh(e, t, a), m =
|
|
11211
|
+
const { from: d, to: f } = Sh(e, t, a), m = h("font-semibold text-default-700", o.emphasis);
|
|
11212
11212
|
return /* @__PURE__ */ n(
|
|
11213
11213
|
"p",
|
|
11214
11214
|
{
|
|
11215
11215
|
"data-testid": c,
|
|
11216
11216
|
"aria-live": i ? "polite" : void 0,
|
|
11217
|
-
className:
|
|
11217
|
+
className: h("text-sm text-default-500", l, o.base),
|
|
11218
11218
|
children: s ? s({ from: d, to: f, total: a }) : /* @__PURE__ */ u(fe, { children: [
|
|
11219
11219
|
"Showing",
|
|
11220
11220
|
" ",
|
|
@@ -11275,7 +11275,7 @@ const Ya = "shadow-[0_1px_4px_rgba(0,0,0,.06),0_4px_12px_rgba(0,0,0,.06)]", dt =
|
|
|
11275
11275
|
errorContent: f,
|
|
11276
11276
|
emptyTitle: m = "Nothing here yet",
|
|
11277
11277
|
emptyDescription: g,
|
|
11278
|
-
emptyIcon:
|
|
11278
|
+
emptyIcon: p,
|
|
11279
11279
|
emptyActions: x,
|
|
11280
11280
|
emptyContent: y,
|
|
11281
11281
|
children: b,
|
|
@@ -11285,8 +11285,8 @@ const Ya = "shadow-[0_1px_4px_rgba(0,0,0,.06),0_4px_12px_rgba(0,0,0,.06)]", dt =
|
|
|
11285
11285
|
classNames: w = {},
|
|
11286
11286
|
"data-testid": $ = "list-panel"
|
|
11287
11287
|
}) => {
|
|
11288
|
-
const M = k === "framed", C = { base:
|
|
11289
|
-
base:
|
|
11288
|
+
const M = k === "framed", C = { base: h("border-0 bg-transparent py-12", w.state) }, D = M ? {
|
|
11289
|
+
base: h("px-6 py-[3.625rem]", w.state),
|
|
11290
11290
|
iconWrapper: "mb-[1.125rem] size-[4.75rem] rounded-[1.25rem] border-0 bg-default-100 text-default-400",
|
|
11291
11291
|
icon: "size-[2.875rem]",
|
|
11292
11292
|
title: "text-[1.0625rem] font-semibold text-default-900",
|
|
@@ -11316,7 +11316,7 @@ const Ya = "shadow-[0_1px_4px_rgba(0,0,0,.06),0_4px_12px_rgba(0,0,0,.06)]", dt =
|
|
|
11316
11316
|
surface: M ? "panel" : void 0,
|
|
11317
11317
|
title: m,
|
|
11318
11318
|
description: g,
|
|
11319
|
-
icon:
|
|
11319
|
+
icon: p,
|
|
11320
11320
|
actions: x,
|
|
11321
11321
|
classNames: D,
|
|
11322
11322
|
"data-testid": `${$}-empty`
|
|
@@ -11326,7 +11326,7 @@ const Ya = "shadow-[0_1px_4px_rgba(0,0,0,.06),0_4px_12px_rgba(0,0,0,.06)]", dt =
|
|
|
11326
11326
|
{
|
|
11327
11327
|
"data-testid": $,
|
|
11328
11328
|
"data-variant": M ? "framed" : void 0,
|
|
11329
|
-
className:
|
|
11329
|
+
className: h(
|
|
11330
11330
|
M ? `overflow-hidden rounded-2xl border border-pos-line bg-white ${Ya}` : "rounded-xl bg-white p-2 shadow-sm",
|
|
11331
11331
|
A,
|
|
11332
11332
|
w.base
|
|
@@ -11369,7 +11369,7 @@ const ul = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11369
11369
|
className: d,
|
|
11370
11370
|
"data-testid": f = "cash-tender-form"
|
|
11371
11371
|
}) => {
|
|
11372
|
-
const m = { ..._h, ...s }, g = Wa(e.currency, i),
|
|
11372
|
+
const m = { ..._h, ...s }, g = Wa(e.currency, i), p = t !== void 0, [x, y] = W(a ?? null), b = p ? t : x, {
|
|
11373
11373
|
draft: N,
|
|
11374
11374
|
setDraft: k,
|
|
11375
11375
|
normalize: A
|
|
@@ -11393,7 +11393,7 @@ const ul = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11393
11393
|
const z = Ra(G);
|
|
11394
11394
|
if (z !== null && o !== void 0 && z > o)
|
|
11395
11395
|
return;
|
|
11396
|
-
k(G),
|
|
11396
|
+
k(G), p || y(z);
|
|
11397
11397
|
const te = typeof z == "number" && Number.isFinite(z) ? z : 0, Y = Wr(te, e.value, e.currency, i);
|
|
11398
11398
|
r?.({
|
|
11399
11399
|
received: te,
|
|
@@ -11402,7 +11402,7 @@ const ul = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11402
11402
|
});
|
|
11403
11403
|
},
|
|
11404
11404
|
[
|
|
11405
|
-
|
|
11405
|
+
p,
|
|
11406
11406
|
l,
|
|
11407
11407
|
e.value,
|
|
11408
11408
|
e.currency,
|
|
@@ -11421,7 +11421,7 @@ const ul = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11421
11421
|
};
|
|
11422
11422
|
}, [C, S, m.changeMessageTemplate]);
|
|
11423
11423
|
const T = `${f}-received`;
|
|
11424
|
-
return /* @__PURE__ */ u("div", { className:
|
|
11424
|
+
return /* @__PURE__ */ u("div", { className: h("flex flex-col gap-3", d), "data-testid": f, children: [
|
|
11425
11425
|
/* @__PURE__ */ n(
|
|
11426
11426
|
Le,
|
|
11427
11427
|
{
|
|
@@ -11512,7 +11512,7 @@ const ul = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11512
11512
|
className: m,
|
|
11513
11513
|
"data-testid": g = "check-tender-form"
|
|
11514
11514
|
}) => {
|
|
11515
|
-
const
|
|
11515
|
+
const p = { ...Mh, ...i }, x = t !== void 0, [y, b] = W({
|
|
11516
11516
|
checkNumber: a?.checkNumber ?? "",
|
|
11517
11517
|
bankName: a?.bankName ?? "",
|
|
11518
11518
|
date: a?.date ?? Ni()
|
|
@@ -11546,22 +11546,22 @@ const ul = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11546
11546
|
), M = X(() => {
|
|
11547
11547
|
o || k(!0);
|
|
11548
11548
|
}, [o]), C = N && A.checkNumber.trim() === "", D = `${g}-check-number`, S = `${g}-bank-name`, R = `${g}-date`;
|
|
11549
|
-
return /* @__PURE__ */ u("div", { className:
|
|
11549
|
+
return /* @__PURE__ */ u("div", { className: h("grid grid-cols-1 sm:grid-cols-2 gap-4", m), "data-testid": g, children: [
|
|
11550
11550
|
/* @__PURE__ */ n(
|
|
11551
11551
|
Le,
|
|
11552
11552
|
{
|
|
11553
11553
|
id: D,
|
|
11554
|
-
label:
|
|
11554
|
+
label: p.checkNumberLabel,
|
|
11555
11555
|
labelPlacement: "outside",
|
|
11556
11556
|
type: "text",
|
|
11557
11557
|
value: A.checkNumber,
|
|
11558
11558
|
onChange: (L) => $("checkNumber")(L.target.value),
|
|
11559
11559
|
onBlur: M,
|
|
11560
|
-
placeholder:
|
|
11560
|
+
placeholder: p.checkNumberPlaceholder,
|
|
11561
11561
|
maxLength: c,
|
|
11562
11562
|
isRequired: !0,
|
|
11563
11563
|
isInvalid: C,
|
|
11564
|
-
errorMessage: C ?
|
|
11564
|
+
errorMessage: C ? p.checkNumberRequiredMessage : void 0,
|
|
11565
11565
|
isDisabled: o,
|
|
11566
11566
|
variant: "bordered",
|
|
11567
11567
|
radius: "lg",
|
|
@@ -11573,12 +11573,12 @@ const ul = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11573
11573
|
Le,
|
|
11574
11574
|
{
|
|
11575
11575
|
id: S,
|
|
11576
|
-
label:
|
|
11576
|
+
label: p.bankNameLabel,
|
|
11577
11577
|
labelPlacement: "outside",
|
|
11578
11578
|
type: "text",
|
|
11579
11579
|
value: A.bankName,
|
|
11580
11580
|
onChange: (L) => $("bankName")(L.target.value),
|
|
11581
|
-
placeholder:
|
|
11581
|
+
placeholder: p.bankNamePlaceholder,
|
|
11582
11582
|
maxLength: d,
|
|
11583
11583
|
isDisabled: o,
|
|
11584
11584
|
variant: "bordered",
|
|
@@ -11590,7 +11590,7 @@ const ul = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11590
11590
|
Le,
|
|
11591
11591
|
{
|
|
11592
11592
|
id: R,
|
|
11593
|
-
label:
|
|
11593
|
+
label: p.dateLabel,
|
|
11594
11594
|
labelPlacement: "outside",
|
|
11595
11595
|
type: "date",
|
|
11596
11596
|
value: A.date,
|
|
@@ -11635,7 +11635,7 @@ const Ph = {
|
|
|
11635
11635
|
className: c,
|
|
11636
11636
|
"data-testid": d = "other-tender-form"
|
|
11637
11637
|
}) => {
|
|
11638
|
-
const f = { ...Ph, ...s }, m = a !== void 0, [g,
|
|
11638
|
+
const f = { ...Ph, ...s }, m = a !== void 0, [g, p] = W({
|
|
11639
11639
|
method: r?.method ?? "",
|
|
11640
11640
|
reference: r?.reference ?? ""
|
|
11641
11641
|
}), x = oe(
|
|
@@ -11649,7 +11649,7 @@ const Ph = {
|
|
|
11649
11649
|
[t]
|
|
11650
11650
|
), b = X(
|
|
11651
11651
|
($) => {
|
|
11652
|
-
m ||
|
|
11652
|
+
m || p($);
|
|
11653
11653
|
const M = y($.method), C = {
|
|
11654
11654
|
amount: e.value,
|
|
11655
11655
|
method: $.method,
|
|
@@ -11678,7 +11678,7 @@ const Ph = {
|
|
|
11678
11678
|
},
|
|
11679
11679
|
[x, b, o]
|
|
11680
11680
|
), A = `${d}-method`, w = `${d}-reference`;
|
|
11681
|
-
return /* @__PURE__ */ u("div", { className:
|
|
11681
|
+
return /* @__PURE__ */ u("div", { className: h("flex flex-col gap-3", c), "data-testid": d, children: [
|
|
11682
11682
|
/* @__PURE__ */ n(
|
|
11683
11683
|
st,
|
|
11684
11684
|
{
|
|
@@ -11774,8 +11774,8 @@ const Ih = {
|
|
|
11774
11774
|
remaining: y,
|
|
11775
11775
|
isComplete: x >= e.value && e.value > 0
|
|
11776
11776
|
};
|
|
11777
|
-
}, [t, e.value]),
|
|
11778
|
-
return /* @__PURE__ */ u("div", { className:
|
|
11777
|
+
}, [t, e.value]), p = (x) => x === "pending" ? d.statusPending : x === "recorded" ? d.statusRecorded : d.statusFailed;
|
|
11778
|
+
return /* @__PURE__ */ u("div", { className: h("flex flex-col gap-4", o), "data-testid": c, children: [
|
|
11779
11779
|
l === "compact" ? /* @__PURE__ */ u(
|
|
11780
11780
|
"div",
|
|
11781
11781
|
{
|
|
@@ -11822,7 +11822,7 @@ const Ih = {
|
|
|
11822
11822
|
currency: e.currency,
|
|
11823
11823
|
removable: !!a && x.status !== "recorded",
|
|
11824
11824
|
onRemove: a ? () => a(x.id) : void 0,
|
|
11825
|
-
statusLabel:
|
|
11825
|
+
statusLabel: p(x.status),
|
|
11826
11826
|
removeAriaLabel: d.removeAriaLabel,
|
|
11827
11827
|
recordedTooltip: d.removeTooltipForRecorded,
|
|
11828
11828
|
dataTestId: `${c}-row-${y}`
|
|
@@ -11856,7 +11856,7 @@ const Hh = ({
|
|
|
11856
11856
|
isDisabled: !i,
|
|
11857
11857
|
"aria-label": o,
|
|
11858
11858
|
"data-testid": `${d}-remove`,
|
|
11859
|
-
className:
|
|
11859
|
+
className: h(i ? "text-default-700 hover:bg-default-200" : "text-default-300"),
|
|
11860
11860
|
children: /* @__PURE__ */ n(I, { icon: "lucide:x", width: 18, height: 18, "aria-hidden": "true" })
|
|
11861
11861
|
}
|
|
11862
11862
|
) : null;
|
|
@@ -11929,7 +11929,7 @@ const Hh = ({
|
|
|
11929
11929
|
ref: s,
|
|
11930
11930
|
"data-testid": i,
|
|
11931
11931
|
style: r,
|
|
11932
|
-
className:
|
|
11932
|
+
className: h(
|
|
11933
11933
|
// Responsive chrome:
|
|
11934
11934
|
// Mobile (<md): `gap-4 p-4` — tighter spacing so the
|
|
11935
11935
|
// cashier sees more content above the fold on a
|
|
@@ -11972,11 +11972,11 @@ const Gh = ({
|
|
|
11972
11972
|
actions: l,
|
|
11973
11973
|
className: o,
|
|
11974
11974
|
"data-testid": c = "modal-shell-header"
|
|
11975
|
-
}) => /* @__PURE__ */ u("header", { className:
|
|
11975
|
+
}) => /* @__PURE__ */ u("header", { className: h("flex items-center justify-between gap-3", o), "data-testid": c, children: [
|
|
11976
11976
|
/* @__PURE__ */ u("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
11977
11977
|
a,
|
|
11978
11978
|
/* @__PURE__ */ u("div", { className: "min-w-0", children: [
|
|
11979
|
-
/* @__PURE__ */ n("h2", { className:
|
|
11979
|
+
/* @__PURE__ */ n("h2", { className: h("text-xl font-semibold", r), "data-testid": `${c}-title`, children: e }),
|
|
11980
11980
|
t && /* @__PURE__ */ n("div", { className: "text-xs font-semibold text-default-500", "data-testid": `${c}-subtitle`, children: t })
|
|
11981
11981
|
] })
|
|
11982
11982
|
] }),
|
|
@@ -12006,7 +12006,7 @@ const Yh = ({
|
|
|
12006
12006
|
}) => /* @__PURE__ */ n(
|
|
12007
12007
|
"footer",
|
|
12008
12008
|
{
|
|
12009
|
-
className:
|
|
12009
|
+
className: h(
|
|
12010
12010
|
"mt-2 gap-3",
|
|
12011
12011
|
// Mobile (< md): stack the buttons full-width in NATURAL DOM
|
|
12012
12012
|
// order — the orchestrator renders the primary CTA (Collect)
|
|
@@ -12056,7 +12056,7 @@ const Kh = {
|
|
|
12056
12056
|
className: f,
|
|
12057
12057
|
"data-testid": m = "tile-select"
|
|
12058
12058
|
}) => {
|
|
12059
|
-
const g = e.find((
|
|
12059
|
+
const g = e.find((p) => p.key === t);
|
|
12060
12060
|
return s === "compact" ? /* @__PURE__ */ n(
|
|
12061
12061
|
ep,
|
|
12062
12062
|
{
|
|
@@ -12070,7 +12070,7 @@ const Kh = {
|
|
|
12070
12070
|
...l !== void 0 ? { maxVisible: l } : {},
|
|
12071
12071
|
...f !== void 0 ? { className: f } : {}
|
|
12072
12072
|
}
|
|
12073
|
-
) : /* @__PURE__ */ u("div", { className:
|
|
12073
|
+
) : /* @__PURE__ */ u("div", { className: h("flex flex-col gap-3", f), "data-testid": m, children: [
|
|
12074
12074
|
r && /* @__PURE__ */ n("h3", { className: "text-sm font-medium text-default-700", id: `${m}-heading`, children: r }),
|
|
12075
12075
|
/* @__PURE__ */ n("div", { className: "md:hidden", children: /* @__PURE__ */ n(
|
|
12076
12076
|
st,
|
|
@@ -12078,8 +12078,8 @@ const Kh = {
|
|
|
12078
12078
|
"aria-label": r ? void 0 : i,
|
|
12079
12079
|
"aria-labelledby": r ? `${m}-heading` : void 0,
|
|
12080
12080
|
selectedKeys: t ? [t] : [],
|
|
12081
|
-
onSelectionChange: (
|
|
12082
|
-
const y = Array.from(
|
|
12081
|
+
onSelectionChange: (p) => {
|
|
12082
|
+
const y = Array.from(p)[0];
|
|
12083
12083
|
typeof y == "string" && a(y);
|
|
12084
12084
|
},
|
|
12085
12085
|
placeholder: i,
|
|
@@ -12110,15 +12110,15 @@ const Kh = {
|
|
|
12110
12110
|
]
|
|
12111
12111
|
}
|
|
12112
12112
|
},
|
|
12113
|
-
children: e.map((
|
|
12113
|
+
children: e.map((p) => /* @__PURE__ */ n(
|
|
12114
12114
|
ht,
|
|
12115
12115
|
{
|
|
12116
|
-
isDisabled:
|
|
12117
|
-
startContent: /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "shrink-0", children: xn(
|
|
12118
|
-
"data-testid":
|
|
12119
|
-
children:
|
|
12116
|
+
isDisabled: p.isDisabled,
|
|
12117
|
+
startContent: /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "shrink-0", children: xn(p.icon) }),
|
|
12118
|
+
"data-testid": p["data-testid"] ?? `${m}-${p.key}-mobile`,
|
|
12119
|
+
children: p.label
|
|
12120
12120
|
},
|
|
12121
|
-
|
|
12121
|
+
p.key
|
|
12122
12122
|
))
|
|
12123
12123
|
}
|
|
12124
12124
|
) }),
|
|
@@ -12128,24 +12128,24 @@ const Kh = {
|
|
|
12128
12128
|
role: "group",
|
|
12129
12129
|
"aria-labelledby": r ? `${m}-heading` : void 0,
|
|
12130
12130
|
"aria-label": r ? void 0 : i,
|
|
12131
|
-
className:
|
|
12131
|
+
className: h(
|
|
12132
12132
|
"hidden md:grid gap-3",
|
|
12133
12133
|
Qh[d],
|
|
12134
12134
|
Kh[c]
|
|
12135
12135
|
),
|
|
12136
|
-
children: e.map((
|
|
12137
|
-
const x = t ===
|
|
12136
|
+
children: e.map((p) => {
|
|
12137
|
+
const x = t === p.key;
|
|
12138
12138
|
return /* @__PURE__ */ u(
|
|
12139
12139
|
V,
|
|
12140
12140
|
{
|
|
12141
12141
|
variant: "bordered",
|
|
12142
12142
|
radius: "lg",
|
|
12143
12143
|
"aria-pressed": x,
|
|
12144
|
-
"aria-label":
|
|
12145
|
-
isDisabled:
|
|
12146
|
-
onPress: () => a(
|
|
12147
|
-
"data-testid":
|
|
12148
|
-
className:
|
|
12144
|
+
"aria-label": p.label,
|
|
12145
|
+
isDisabled: p.isDisabled,
|
|
12146
|
+
onPress: () => a(p.key),
|
|
12147
|
+
"data-testid": p["data-testid"] ?? `${m}-${p.key}`,
|
|
12148
|
+
className: h(
|
|
12149
12149
|
// Sized to the Figma spec for the payments-
|
|
12150
12150
|
// drop-in method picker (PP-1154):
|
|
12151
12151
|
// 48px inner content (icon 20 + gap 8 +
|
|
@@ -12166,11 +12166,11 @@ const Kh = {
|
|
|
12166
12166
|
x ? "border-primary bg-primary-50 text-primary" : "border-default-200 text-default-800 hover:bg-default-50"
|
|
12167
12167
|
),
|
|
12168
12168
|
children: [
|
|
12169
|
-
/* @__PURE__ */ n("span", { "aria-hidden": "true", children: xn(
|
|
12170
|
-
/* @__PURE__ */ n("span", { className: "text-sm font-medium", children:
|
|
12169
|
+
/* @__PURE__ */ n("span", { "aria-hidden": "true", children: xn(p.icon) }),
|
|
12170
|
+
/* @__PURE__ */ n("span", { className: "text-sm font-medium", children: p.label })
|
|
12171
12171
|
]
|
|
12172
12172
|
},
|
|
12173
|
-
|
|
12173
|
+
p.key
|
|
12174
12174
|
);
|
|
12175
12175
|
})
|
|
12176
12176
|
}
|
|
@@ -12192,7 +12192,7 @@ function ep({
|
|
|
12192
12192
|
const d = q.useRef(null), f = q.useRef(null), m = q.useMemo(
|
|
12193
12193
|
() => e.map((D, S) => ({ option: D, index: S })).filter(({ option: D }) => D.alwaysInMenu !== !0).map(({ index: D }) => D),
|
|
12194
12194
|
[e]
|
|
12195
|
-
), g = m.length < e.length,
|
|
12195
|
+
), g = m.length < e.length, p = q.useCallback(
|
|
12196
12196
|
(D) => {
|
|
12197
12197
|
const S = m.map((L) => ({ index: L, priority: e[L]?.priority ?? 0 })).sort((L, F) => L.priority - F.priority || F.index - L.index), R = new Set(S.slice(0, m.length - D).map((L) => L.index));
|
|
12198
12198
|
return m.filter((L) => !R.has(L));
|
|
@@ -12210,7 +12210,7 @@ function ep({
|
|
|
12210
12210
|
}
|
|
12211
12211
|
const te = (Y) => {
|
|
12212
12212
|
const re = g || Y < m.length, Q = Y + (re ? 1 : 0);
|
|
12213
|
-
return
|
|
12213
|
+
return p(Y).reduce((J, K) => J + (P[K] ?? 0), 0) + (re ? T : 0) + G * (Q - 1) <= z;
|
|
12214
12214
|
};
|
|
12215
12215
|
for (let Y = m.length; Y >= 1; Y -= 1)
|
|
12216
12216
|
if (te(Y)) {
|
|
@@ -12222,9 +12222,9 @@ function ep({
|
|
|
12222
12222
|
R();
|
|
12223
12223
|
const L = new ResizeObserver(R);
|
|
12224
12224
|
return L.observe(D), () => L.disconnect();
|
|
12225
|
-
}, [e, l,
|
|
12226
|
-
const b = Math.max(1, Math.min(x, s ?? m.length, m.length)), k = !g && b === m.length - 1 && x === m.length ? m.length : b, A = g || k < m.length, w = new Set(
|
|
12227
|
-
return /* @__PURE__ */ u("div", { className:
|
|
12225
|
+
}, [e, l, p, m, g]);
|
|
12226
|
+
const b = Math.max(1, Math.min(x, s ?? m.length, m.length)), k = !g && b === m.length - 1 && x === m.length ? m.length : b, A = g || k < m.length, w = new Set(p(k)), $ = e.filter((D, S) => w.has(S)), M = A ? e.filter((D, S) => !w.has(S)) : [], C = M.find((D) => D.key === t);
|
|
12227
|
+
return /* @__PURE__ */ u("div", { className: h("relative flex flex-col gap-3", o), "data-testid": c, children: [
|
|
12228
12228
|
r && /* @__PURE__ */ n("h3", { className: "text-sm font-medium text-default-700", id: `${c}-heading`, children: r }),
|
|
12229
12229
|
/* @__PURE__ */ u(
|
|
12230
12230
|
"div",
|
|
@@ -12244,7 +12244,7 @@ function ep({
|
|
|
12244
12244
|
isDisabled: D.isDisabled,
|
|
12245
12245
|
onPress: () => a(D.key),
|
|
12246
12246
|
"data-testid": D["data-testid"] ?? `${c}-${D.key}`,
|
|
12247
|
-
className:
|
|
12247
|
+
className: h(ga, Ci(t === D.key)),
|
|
12248
12248
|
children: D.label
|
|
12249
12249
|
},
|
|
12250
12250
|
D.key
|
|
@@ -12257,7 +12257,7 @@ function ep({
|
|
|
12257
12257
|
radius: "full",
|
|
12258
12258
|
"aria-pressed": C !== void 0,
|
|
12259
12259
|
"data-testid": `${c}-more`,
|
|
12260
|
-
className:
|
|
12260
|
+
className: h(
|
|
12261
12261
|
ga,
|
|
12262
12262
|
"gap-1",
|
|
12263
12263
|
// Showing `moreLabel`, the trigger holds
|
|
@@ -12309,7 +12309,7 @@ function ep({
|
|
|
12309
12309
|
variant: "light",
|
|
12310
12310
|
radius: "full",
|
|
12311
12311
|
tabIndex: -1,
|
|
12312
|
-
className:
|
|
12312
|
+
className: h(ga, ki),
|
|
12313
12313
|
children: D.label
|
|
12314
12314
|
},
|
|
12315
12315
|
D.key
|
|
@@ -12320,7 +12320,7 @@ function ep({
|
|
|
12320
12320
|
variant: "light",
|
|
12321
12321
|
radius: "full",
|
|
12322
12322
|
tabIndex: -1,
|
|
12323
|
-
className:
|
|
12323
|
+
className: h(ga, ki, "gap-1"),
|
|
12324
12324
|
children: [
|
|
12325
12325
|
l,
|
|
12326
12326
|
/* @__PURE__ */ n(I, { icon: "lucide:chevron-down", width: 14, height: 14 })
|
|
@@ -12352,13 +12352,13 @@ const tp = {
|
|
|
12352
12352
|
"div",
|
|
12353
12353
|
{
|
|
12354
12354
|
"data-testid": s,
|
|
12355
|
-
className:
|
|
12355
|
+
className: h("rounded-2xl px-6 py-5 text-center", l.wrapper, i),
|
|
12356
12356
|
children: [
|
|
12357
12357
|
/* @__PURE__ */ n("div", { className: "text-sm text-default-600", children: t }),
|
|
12358
12358
|
/* @__PURE__ */ n(
|
|
12359
12359
|
"div",
|
|
12360
12360
|
{
|
|
12361
|
-
className:
|
|
12361
|
+
className: h("mt-1 text-4xl font-bold tracking-tight", l.amount),
|
|
12362
12362
|
"data-testid": `${s}-amount`,
|
|
12363
12363
|
children: De(e.value, a, e.currency)
|
|
12364
12364
|
}
|
|
@@ -12391,7 +12391,7 @@ const np = {
|
|
|
12391
12391
|
"aria-hidden": r || void 0,
|
|
12392
12392
|
"data-testid": s,
|
|
12393
12393
|
"data-state": r ? "exiting" : "visible",
|
|
12394
|
-
className:
|
|
12394
|
+
className: h(
|
|
12395
12395
|
"absolute inset-0 z-10 flex flex-col items-center justify-center gap-4 rounded-3xl",
|
|
12396
12396
|
np[a],
|
|
12397
12397
|
// Two animation modes:
|
|
@@ -12439,7 +12439,7 @@ const fl = ({
|
|
|
12439
12439
|
role: "status",
|
|
12440
12440
|
"aria-live": "polite",
|
|
12441
12441
|
"data-testid": c,
|
|
12442
|
-
className:
|
|
12442
|
+
className: h(
|
|
12443
12443
|
"flex w-full items-center gap-3 rounded-2xl border border-info-200 bg-info-50 px-5 py-4",
|
|
12444
12444
|
d ? "justify-center text-center" : "text-left",
|
|
12445
12445
|
// Slide down + fade in when the banner appears (mid-split
|
|
@@ -12461,7 +12461,7 @@ const fl = ({
|
|
|
12461
12461
|
/* @__PURE__ */ u(
|
|
12462
12462
|
"div",
|
|
12463
12463
|
{
|
|
12464
|
-
className:
|
|
12464
|
+
className: h(
|
|
12465
12465
|
"flex flex-col",
|
|
12466
12466
|
d ? "items-center" : "flex-1"
|
|
12467
12467
|
),
|
|
@@ -12516,7 +12516,7 @@ const ip = ({
|
|
|
12516
12516
|
"div",
|
|
12517
12517
|
{
|
|
12518
12518
|
"data-testid": f,
|
|
12519
|
-
className:
|
|
12519
|
+
className: h(
|
|
12520
12520
|
"flex flex-col items-center gap-6 py-8 px-4 text-center",
|
|
12521
12521
|
// Cross-fade into the success view when the orchestrator
|
|
12522
12522
|
// swaps from collecting → complete state. Keyframes from
|
|
@@ -12594,7 +12594,7 @@ const hl = ({
|
|
|
12594
12594
|
autoFocus: f,
|
|
12595
12595
|
maxAmount: m,
|
|
12596
12596
|
hideHeading: g = !1,
|
|
12597
|
-
className:
|
|
12597
|
+
className: p,
|
|
12598
12598
|
"data-testid": x = "payment-sub-amount-input"
|
|
12599
12599
|
}) => {
|
|
12600
12600
|
const y = `${x}-input`, b = X(
|
|
@@ -12612,8 +12612,8 @@ const hl = ({
|
|
|
12612
12612
|
A.isConnected && A.select();
|
|
12613
12613
|
});
|
|
12614
12614
|
}, []);
|
|
12615
|
-
return /* @__PURE__ */ u("div", { className:
|
|
12616
|
-
/* @__PURE__ */ n("h3", { className:
|
|
12615
|
+
return /* @__PURE__ */ u("div", { className: h("flex flex-col gap-3 border-t border-default-100 pt-5", p), "data-testid": x, children: [
|
|
12616
|
+
/* @__PURE__ */ n("h3", { className: h("text-lg font-semibold", g && "sr-only"), "data-testid": `${x}-heading`, children: e }),
|
|
12617
12617
|
/* @__PURE__ */ n(
|
|
12618
12618
|
Le,
|
|
12619
12619
|
{
|
|
@@ -12668,10 +12668,10 @@ const sp = {
|
|
|
12668
12668
|
isDismissable: f,
|
|
12669
12669
|
isKeyboardDismissDisabled: m = !1,
|
|
12670
12670
|
hideIcon: g = !1,
|
|
12671
|
-
icon:
|
|
12671
|
+
icon: p,
|
|
12672
12672
|
"data-testid": x = "confirm-dialog"
|
|
12673
12673
|
}) => {
|
|
12674
|
-
const y = s ?? l ?? null, b = sp[c], N = g ? null : lp(
|
|
12674
|
+
const y = s ?? l ?? null, b = sp[c], N = g ? null : lp(p ?? b.icon);
|
|
12675
12675
|
return /* @__PURE__ */ n(
|
|
12676
12676
|
Bn,
|
|
12677
12677
|
{
|
|
@@ -12692,7 +12692,7 @@ const sp = {
|
|
|
12692
12692
|
{
|
|
12693
12693
|
"aria-hidden": "true",
|
|
12694
12694
|
"data-testid": `${x}-icon`,
|
|
12695
|
-
className:
|
|
12695
|
+
className: h(
|
|
12696
12696
|
"flex size-10 items-center justify-center rounded-full",
|
|
12697
12697
|
b.tile
|
|
12698
12698
|
),
|
|
@@ -12772,7 +12772,7 @@ const St = {
|
|
|
12772
12772
|
size: f = "sm",
|
|
12773
12773
|
as: m = "div",
|
|
12774
12774
|
className: g,
|
|
12775
|
-
"data-testid":
|
|
12775
|
+
"data-testid": p = "inline-confirm"
|
|
12776
12776
|
}) => {
|
|
12777
12777
|
const x = Je(), y = Je(), b = pe(null), N = pe(null), k = pe(null), A = t != null, w = pe({ isPending: o, containEscape: d, onCancel: s });
|
|
12778
12778
|
w.current = { isPending: o, containEscape: d, onCancel: s }, we(() => {
|
|
@@ -12816,8 +12816,8 @@ const St = {
|
|
|
12816
12816
|
const D = C.relatedTarget;
|
|
12817
12817
|
$.current = D instanceof Node && C.currentTarget.contains(D);
|
|
12818
12818
|
},
|
|
12819
|
-
className:
|
|
12820
|
-
"data-testid":
|
|
12819
|
+
className: h(St.box, op[l], m === "div" && g),
|
|
12820
|
+
"data-testid": p,
|
|
12821
12821
|
children: /* @__PURE__ */ u(Ae, { className: St.body, children: [
|
|
12822
12822
|
/* @__PURE__ */ u("div", { className: St.text, children: [
|
|
12823
12823
|
/* @__PURE__ */ n("p", { id: x, className: St.message, children: e }),
|
|
@@ -12833,7 +12833,7 @@ const St = {
|
|
|
12833
12833
|
variant: "solid",
|
|
12834
12834
|
onPress: i,
|
|
12835
12835
|
isLoading: o,
|
|
12836
|
-
"data-testid": `${
|
|
12836
|
+
"data-testid": `${p}-confirm`,
|
|
12837
12837
|
children: a
|
|
12838
12838
|
}
|
|
12839
12839
|
),
|
|
@@ -12846,7 +12846,7 @@ const St = {
|
|
|
12846
12846
|
variant: "light",
|
|
12847
12847
|
onPress: s,
|
|
12848
12848
|
isDisabled: o,
|
|
12849
|
-
"data-testid": `${
|
|
12849
|
+
"data-testid": `${p}-cancel`,
|
|
12850
12850
|
children: r
|
|
12851
12851
|
}
|
|
12852
12852
|
)
|
|
@@ -12854,7 +12854,7 @@ const St = {
|
|
|
12854
12854
|
] })
|
|
12855
12855
|
}
|
|
12856
12856
|
);
|
|
12857
|
-
return m === "li" ? /* @__PURE__ */ n("li", { className:
|
|
12857
|
+
return m === "li" ? /* @__PURE__ */ n("li", { className: h(St.item, g), children: M }) : M;
|
|
12858
12858
|
};
|
|
12859
12859
|
cp.displayName = "InlineConfirm";
|
|
12860
12860
|
const dp = {
|
|
@@ -12888,9 +12888,9 @@ const up = ({ scope: e, children: t }) => /* @__PURE__ */ n(mr.Provider, { value
|
|
|
12888
12888
|
keepEditingLabel: s = "Keep editing",
|
|
12889
12889
|
"data-testid": l = "discard-guard"
|
|
12890
12890
|
}) => {
|
|
12891
|
-
const { pending: o, confirmKey: c, confirm: d, keepEditing: f, report: m, unreport: g, guardScope:
|
|
12892
|
-
() => ({ guardScope:
|
|
12893
|
-
[
|
|
12891
|
+
const { pending: o, confirmKey: c, confirm: d, keepEditing: f, report: m, unreport: g, guardScope: p } = e.internals, x = oe(
|
|
12892
|
+
() => ({ guardScope: p, bypass: e.bypass, report: m, unreport: g }),
|
|
12893
|
+
[p, e.bypass, m, g]
|
|
12894
12894
|
);
|
|
12895
12895
|
return /* @__PURE__ */ u(Ka.Provider, { value: x, children: [
|
|
12896
12896
|
t,
|
|
@@ -13048,7 +13048,7 @@ const Np = ({ entryKey: e, isActive: t, canGoBack: a, back: r, memory: i, childr
|
|
|
13048
13048
|
"data-testid": o = "modal-panel-header"
|
|
13049
13049
|
}) => {
|
|
13050
13050
|
const c = pt(fr), d = gl(), f = Je(), m = t ?? (c?.canGoBack ? c.back : void 0);
|
|
13051
|
-
return /* @__PURE__ */ u("header", { className:
|
|
13051
|
+
return /* @__PURE__ */ u("header", { className: h(xp, l), "data-testid": o, children: [
|
|
13052
13052
|
m ? /* @__PURE__ */ n(
|
|
13053
13053
|
V,
|
|
13054
13054
|
{
|
|
@@ -13124,7 +13124,7 @@ function Zg() {
|
|
|
13124
13124
|
o(), i(null), b();
|
|
13125
13125
|
},
|
|
13126
13126
|
[o]
|
|
13127
|
-
),
|
|
13127
|
+
), p = X(
|
|
13128
13128
|
(b) => (N) => {
|
|
13129
13129
|
N ? b(!0) : m(() => b(!1));
|
|
13130
13130
|
},
|
|
@@ -13138,14 +13138,14 @@ function Zg() {
|
|
|
13138
13138
|
isDirty: t > 0,
|
|
13139
13139
|
guard: m,
|
|
13140
13140
|
bypass: g,
|
|
13141
|
-
guardOpenChange:
|
|
13141
|
+
guardOpenChange: p,
|
|
13142
13142
|
internals: { pending: r, confirmKey: s, confirm: x, keepEditing: y, report: c, unreport: d, guardScope: f }
|
|
13143
13143
|
}),
|
|
13144
13144
|
[
|
|
13145
13145
|
t,
|
|
13146
13146
|
m,
|
|
13147
13147
|
g,
|
|
13148
|
-
|
|
13148
|
+
p,
|
|
13149
13149
|
r,
|
|
13150
13150
|
s,
|
|
13151
13151
|
x,
|
|
@@ -13177,7 +13177,7 @@ const Cp = 60, Sp = (e, t, a = Cp) => t ? e > a : e < -a, bl = (e, t) => Math.ma
|
|
|
13177
13177
|
"div",
|
|
13178
13178
|
{
|
|
13179
13179
|
"data-testid": `summary-item-${e.id}`,
|
|
13180
|
-
className:
|
|
13180
|
+
className: h(
|
|
13181
13181
|
s ? "flex flex-col gap-1 py-3 first:pt-0" : "flex flex-col gap-2",
|
|
13182
13182
|
e.tone && "-mx-2 rounded-lg px-2 py-1.5"
|
|
13183
13183
|
),
|
|
@@ -13198,7 +13198,7 @@ const Cp = 60, Sp = (e, t, a = Cp) => t ? e > a : e < -a, bl = (e, t) => Math.ma
|
|
|
13198
13198
|
"span",
|
|
13199
13199
|
{
|
|
13200
13200
|
"data-testid": `summary-item-name-${e.id}`,
|
|
13201
|
-
className: s ? "line-clamp-2 text-sm font-semibold" :
|
|
13201
|
+
className: s ? "line-clamp-2 text-sm font-semibold" : h("truncate", e.emphasis && "font-medium"),
|
|
13202
13202
|
children: e.name
|
|
13203
13203
|
}
|
|
13204
13204
|
)
|
|
@@ -13227,7 +13227,7 @@ const Cp = 60, Sp = (e, t, a = Cp) => t ? e > a : e < -a, bl = (e, t) => Math.ma
|
|
|
13227
13227
|
size: "sm",
|
|
13228
13228
|
variant: "light",
|
|
13229
13229
|
radius: "full",
|
|
13230
|
-
className:
|
|
13230
|
+
className: h("ml-1 size-8 min-w-8 p-2 text-danger", s && "-my-1.5"),
|
|
13231
13231
|
"aria-label": r,
|
|
13232
13232
|
"data-testid": `summary-remove-${e.id}`,
|
|
13233
13233
|
onPress: () => a(e.id),
|
|
@@ -13243,7 +13243,7 @@ const Cp = 60, Sp = (e, t, a = Cp) => t ? e > a : e < -a, bl = (e, t) => Math.ma
|
|
|
13243
13243
|
"div",
|
|
13244
13244
|
{
|
|
13245
13245
|
"data-testid": `summary-item-date-${e.id}`,
|
|
13246
|
-
className:
|
|
13246
|
+
className: h("flex items-center gap-2 text-sm", c),
|
|
13247
13247
|
children: [
|
|
13248
13248
|
/* @__PURE__ */ n(I, { icon: "lucide:calendar", width: 16, height: 16, className: "shrink-0" }),
|
|
13249
13249
|
/* @__PURE__ */ n("span", { className: "truncate", children: e.dateLabel })
|
|
@@ -13254,7 +13254,7 @@ const Cp = 60, Sp = (e, t, a = Cp) => t ? e > a : e < -a, bl = (e, t) => Math.ma
|
|
|
13254
13254
|
"div",
|
|
13255
13255
|
{
|
|
13256
13256
|
"data-testid": `summary-item-daterange-${e.id}`,
|
|
13257
|
-
className:
|
|
13257
|
+
className: h("flex items-center gap-2 text-sm", c),
|
|
13258
13258
|
children: [
|
|
13259
13259
|
/* @__PURE__ */ n(I, { icon: "lucide:calendar", width: 16, height: 16, className: "shrink-0" }),
|
|
13260
13260
|
/* @__PURE__ */ n("span", { children: e.dateRange.from }),
|
|
@@ -13267,7 +13267,7 @@ const Cp = 60, Sp = (e, t, a = Cp) => t ? e > a : e < -a, bl = (e, t) => Math.ma
|
|
|
13267
13267
|
"div",
|
|
13268
13268
|
{
|
|
13269
13269
|
"data-testid": `summary-item-detail-${e.id}-${d.key ?? f}`,
|
|
13270
|
-
className:
|
|
13270
|
+
className: h(
|
|
13271
13271
|
"flex items-center justify-between gap-2",
|
|
13272
13272
|
s ? "text-xs" : "text-sm",
|
|
13273
13273
|
c
|
|
@@ -13281,9 +13281,9 @@ const Cp = 60, Sp = (e, t, a = Cp) => t ? e > a : e < -a, bl = (e, t) => Math.ma
|
|
|
13281
13281
|
d.value != null && /* @__PURE__ */ n(
|
|
13282
13282
|
"span",
|
|
13283
13283
|
{
|
|
13284
|
-
className:
|
|
13284
|
+
className: h(
|
|
13285
13285
|
"whitespace-nowrap",
|
|
13286
|
-
d.valueTone === "primary" &&
|
|
13286
|
+
d.valueTone === "primary" && h("font-medium", e.tone ? "text-primary-600" : "text-primary")
|
|
13287
13287
|
),
|
|
13288
13288
|
children: d.value
|
|
13289
13289
|
}
|
|
@@ -13299,7 +13299,7 @@ const Cp = 60, Sp = (e, t, a = Cp) => t ? e > a : e < -a, bl = (e, t) => Math.ma
|
|
|
13299
13299
|
icon: "lucide:info",
|
|
13300
13300
|
width: 16,
|
|
13301
13301
|
height: 16,
|
|
13302
|
-
className:
|
|
13302
|
+
className: h(
|
|
13303
13303
|
d.valueTone === "primary" ? "text-primary" : "text-default-400"
|
|
13304
13304
|
)
|
|
13305
13305
|
}
|
|
@@ -13328,7 +13328,7 @@ const Cp = 60, Sp = (e, t, a = Cp) => t ? e > a : e < -a, bl = (e, t) => Math.ma
|
|
|
13328
13328
|
);
|
|
13329
13329
|
};
|
|
13330
13330
|
hr.displayName = "SummaryItemRow";
|
|
13331
|
-
const xl = ({ fee: e, locale: t, className: a }) => /* @__PURE__ */ u("div", { "data-testid": "summary-service-fee", className:
|
|
13331
|
+
const xl = ({ fee: e, locale: t, className: a }) => /* @__PURE__ */ u("div", { "data-testid": "summary-service-fee", className: h("flex items-center justify-between gap-2", a), children: [
|
|
13332
13332
|
/* @__PURE__ */ u(
|
|
13333
13333
|
"button",
|
|
13334
13334
|
{
|
|
@@ -13344,7 +13344,7 @@ const xl = ({ fee: e, locale: t, className: a }) => /* @__PURE__ */ u("div", { "
|
|
|
13344
13344
|
"span",
|
|
13345
13345
|
{
|
|
13346
13346
|
"aria-hidden": "true",
|
|
13347
|
-
className:
|
|
13347
|
+
className: h(
|
|
13348
13348
|
"flex size-4 shrink-0 items-center justify-center rounded-full border",
|
|
13349
13349
|
e.isSelected ? "border-primary" : "border-default-200"
|
|
13350
13350
|
),
|
|
@@ -13385,7 +13385,7 @@ const pr = ({
|
|
|
13385
13385
|
"span",
|
|
13386
13386
|
{
|
|
13387
13387
|
"data-testid": `summary-row-label-${e.key}`,
|
|
13388
|
-
className: l ? void 0 :
|
|
13388
|
+
className: l ? void 0 : h(a ? "text-xl font-semibold leading-7" : "text-base"),
|
|
13389
13389
|
children: e.label
|
|
13390
13390
|
}
|
|
13391
13391
|
),
|
|
@@ -13398,7 +13398,7 @@ const pr = ({
|
|
|
13398
13398
|
size: "sm",
|
|
13399
13399
|
variant: "light",
|
|
13400
13400
|
radius: "full",
|
|
13401
|
-
className:
|
|
13401
|
+
className: h("ml-1 size-8 min-w-8 p-2 text-danger", l && "-my-1.5"),
|
|
13402
13402
|
"aria-label": i,
|
|
13403
13403
|
"data-testid": `summary-remove-row-${e.id}`,
|
|
13404
13404
|
onPress: () => r(e.id),
|
|
@@ -13425,7 +13425,7 @@ const yl = ({
|
|
|
13425
13425
|
showRemoveButton: f,
|
|
13426
13426
|
emptyState: m,
|
|
13427
13427
|
compact: g = !1,
|
|
13428
|
-
classNames:
|
|
13428
|
+
classNames: p
|
|
13429
13429
|
}) => {
|
|
13430
13430
|
const x = (a?.length ?? 0) > 0;
|
|
13431
13431
|
return /* @__PURE__ */ u(fe, { children: [
|
|
@@ -13433,7 +13433,7 @@ const yl = ({
|
|
|
13433
13433
|
"div",
|
|
13434
13434
|
{
|
|
13435
13435
|
"data-testid": "summary-prices",
|
|
13436
|
-
className:
|
|
13436
|
+
className: h("flex items-center justify-between text-xs text-default-500", p.prices),
|
|
13437
13437
|
children: [
|
|
13438
13438
|
/* @__PURE__ */ n("span", { children: e }),
|
|
13439
13439
|
t != null && /* @__PURE__ */ n("span", { children: t })
|
|
@@ -13443,9 +13443,9 @@ const yl = ({
|
|
|
13443
13443
|
x ? /* @__PURE__ */ n(
|
|
13444
13444
|
"div",
|
|
13445
13445
|
{
|
|
13446
|
-
className:
|
|
13446
|
+
className: h(
|
|
13447
13447
|
g ? "flex flex-col divide-y divide-default-100" : "flex flex-col gap-4",
|
|
13448
|
-
|
|
13448
|
+
p.items
|
|
13449
13449
|
),
|
|
13450
13450
|
children: a.map((y) => /* @__PURE__ */ n(
|
|
13451
13451
|
hr,
|
|
@@ -13462,15 +13462,15 @@ const yl = ({
|
|
|
13462
13462
|
}
|
|
13463
13463
|
) : /* @__PURE__ */ n("div", { "data-testid": "summary-empty", children: m }),
|
|
13464
13464
|
r && /* @__PURE__ */ u(fe, { children: [
|
|
13465
|
-
/* @__PURE__ */ n(wt, { className: "bg-default-
|
|
13466
|
-
/* @__PURE__ */ n(xl, { fee: r, locale: s, className:
|
|
13465
|
+
/* @__PURE__ */ n(wt, { className: "bg-default-100" }),
|
|
13466
|
+
/* @__PURE__ */ n(xl, { fee: r, locale: s, className: p.serviceFee })
|
|
13467
13467
|
] }),
|
|
13468
13468
|
i && i.length > 0 && /* @__PURE__ */ n(
|
|
13469
13469
|
"div",
|
|
13470
13470
|
{
|
|
13471
|
-
className:
|
|
13472
|
-
g ? "flex flex-col gap-1 border-t border-default-100
|
|
13473
|
-
|
|
13471
|
+
className: h(
|
|
13472
|
+
g ? h("flex flex-col gap-1 pt-3", !r && "border-t border-default-100") : "flex flex-col gap-4",
|
|
13473
|
+
p.totalsRows
|
|
13474
13474
|
),
|
|
13475
13475
|
children: i.map((y, b) => /* @__PURE__ */ n(
|
|
13476
13476
|
pr,
|
|
@@ -13496,7 +13496,7 @@ const vl = ({ total: e, locale: t, compact: a = !1, className: r }) => {
|
|
|
13496
13496
|
"div",
|
|
13497
13497
|
{
|
|
13498
13498
|
"data-testid": "summary-total",
|
|
13499
|
-
className:
|
|
13499
|
+
className: h(
|
|
13500
13500
|
`flex items-center justify-between ${i} font-semibold leading-7 text-foreground`,
|
|
13501
13501
|
r
|
|
13502
13502
|
),
|
|
@@ -13512,7 +13512,7 @@ const wl = ({ secondaryTotal: e, locale: t, className: a }) => /* @__PURE__ */ u
|
|
|
13512
13512
|
"div",
|
|
13513
13513
|
{
|
|
13514
13514
|
"data-testid": "summary-secondary-total",
|
|
13515
|
-
className:
|
|
13515
|
+
className: h("flex items-center justify-between text-lg font-semibold leading-7 text-primary", a),
|
|
13516
13516
|
children: [
|
|
13517
13517
|
/* @__PURE__ */ n("span", { children: e.label }),
|
|
13518
13518
|
/* @__PURE__ */ n("span", { "data-testid": "summary-secondary-total-amount", className: "whitespace-nowrap text-lg font-semibold leading-7", children: Et(e.amount, t) })
|
|
@@ -13530,7 +13530,7 @@ const Pa = ({
|
|
|
13530
13530
|
{
|
|
13531
13531
|
color: "primary",
|
|
13532
13532
|
radius: "full",
|
|
13533
|
-
className:
|
|
13533
|
+
className: h("px-[18px] py-[14px] font-medium", a),
|
|
13534
13534
|
"data-testid": r,
|
|
13535
13535
|
isLoading: e.isLoading,
|
|
13536
13536
|
isDisabled: e.isDisabled || t,
|
|
@@ -13559,14 +13559,14 @@ const Nl = ({
|
|
|
13559
13559
|
"aria-expanded": i,
|
|
13560
13560
|
"aria-label": o,
|
|
13561
13561
|
onClick: c,
|
|
13562
|
-
className:
|
|
13562
|
+
className: h("-mx-4 -mt-4 grid w-[calc(100%_+_32px)] grid-cols-1 px-4 pb-4 pt-4 text-left", d.header),
|
|
13563
13563
|
children: [
|
|
13564
13564
|
/* @__PURE__ */ u(
|
|
13565
13565
|
"span",
|
|
13566
13566
|
{
|
|
13567
13567
|
"aria-hidden": !i,
|
|
13568
13568
|
style: { opacity: s },
|
|
13569
|
-
className:
|
|
13569
|
+
className: h(
|
|
13570
13570
|
"col-start-1 row-start-1 flex items-center justify-between",
|
|
13571
13571
|
!l && "transition-opacity duration-300"
|
|
13572
13572
|
),
|
|
@@ -13575,7 +13575,7 @@ const Nl = ({
|
|
|
13575
13575
|
"span",
|
|
13576
13576
|
{
|
|
13577
13577
|
"data-testid": "summary-title",
|
|
13578
|
-
className:
|
|
13578
|
+
className: h("text-xl font-semibold leading-7 text-foreground", d.title),
|
|
13579
13579
|
children: e
|
|
13580
13580
|
}
|
|
13581
13581
|
),
|
|
@@ -13584,7 +13584,7 @@ const Nl = ({
|
|
|
13584
13584
|
{
|
|
13585
13585
|
"data-testid": "summary-close",
|
|
13586
13586
|
"aria-hidden": "true",
|
|
13587
|
-
className:
|
|
13587
|
+
className: h("shrink-0 text-foreground", d.closeButton),
|
|
13588
13588
|
children: /* @__PURE__ */ n(I, { icon: "lucide:x", width: 20, height: 20 })
|
|
13589
13589
|
}
|
|
13590
13590
|
)
|
|
@@ -13596,7 +13596,7 @@ const Nl = ({
|
|
|
13596
13596
|
{
|
|
13597
13597
|
"aria-hidden": i,
|
|
13598
13598
|
style: { opacity: 1 - s },
|
|
13599
|
-
className:
|
|
13599
|
+
className: h(
|
|
13600
13600
|
"col-start-1 row-start-1 flex flex-col gap-2",
|
|
13601
13601
|
!l && "transition-opacity duration-300"
|
|
13602
13602
|
),
|
|
@@ -13623,7 +13623,7 @@ const kl = ({ cart: e, ariaLabel: t, onPress: a, className: r }) => /* @__PURE__
|
|
|
13623
13623
|
"data-testid": "summary-cart",
|
|
13624
13624
|
"aria-label": t,
|
|
13625
13625
|
onClick: a,
|
|
13626
|
-
className:
|
|
13626
|
+
className: h(
|
|
13627
13627
|
"relative flex size-[52px] shrink-0 items-center justify-center rounded-full border border-default-200 bg-content1",
|
|
13628
13628
|
r
|
|
13629
13629
|
),
|
|
@@ -13653,7 +13653,7 @@ const Cl = ({
|
|
|
13653
13653
|
ctaError: c,
|
|
13654
13654
|
onToggleOpen: d,
|
|
13655
13655
|
classNames: f
|
|
13656
|
-
}) => /* @__PURE__ */ u("div", { "data-testid": "summary-mobile-bar", className:
|
|
13656
|
+
}) => /* @__PURE__ */ u("div", { "data-testid": "summary-mobile-bar", className: h("flex flex-col gap-4", f.mobileBar), children: [
|
|
13657
13657
|
/* @__PURE__ */ n(wt, { className: "bg-default-200" }),
|
|
13658
13658
|
c && /* @__PURE__ */ n("div", { children: c }),
|
|
13659
13659
|
/* @__PURE__ */ u("div", { className: "grid", children: [
|
|
@@ -13662,7 +13662,7 @@ const Cl = ({
|
|
|
13662
13662
|
{
|
|
13663
13663
|
"aria-hidden": e,
|
|
13664
13664
|
style: { opacity: 1 - t },
|
|
13665
|
-
className:
|
|
13665
|
+
className: h(
|
|
13666
13666
|
"col-start-1 row-start-1 flex items-stretch gap-2.5",
|
|
13667
13667
|
e && "pointer-events-none",
|
|
13668
13668
|
!a && "transition-opacity duration-300"
|
|
@@ -13684,7 +13684,7 @@ const Cl = ({
|
|
|
13684
13684
|
{
|
|
13685
13685
|
action: r,
|
|
13686
13686
|
disabledByLoading: i,
|
|
13687
|
-
className:
|
|
13687
|
+
className: h("h-[52px] flex-1", f.cta),
|
|
13688
13688
|
testId: "summary-cta-compact"
|
|
13689
13689
|
}
|
|
13690
13690
|
)
|
|
@@ -13696,7 +13696,7 @@ const Cl = ({
|
|
|
13696
13696
|
{
|
|
13697
13697
|
"aria-hidden": !e,
|
|
13698
13698
|
style: { opacity: t },
|
|
13699
|
-
className:
|
|
13699
|
+
className: h(
|
|
13700
13700
|
"col-start-1 row-start-1 flex",
|
|
13701
13701
|
!e && "pointer-events-none",
|
|
13702
13702
|
!a && "transition-opacity duration-300"
|
|
@@ -13706,7 +13706,7 @@ const Cl = ({
|
|
|
13706
13706
|
{
|
|
13707
13707
|
action: r,
|
|
13708
13708
|
disabledByLoading: i,
|
|
13709
|
-
className:
|
|
13709
|
+
className: h("h-[52px] w-full", f.cta)
|
|
13710
13710
|
}
|
|
13711
13711
|
)
|
|
13712
13712
|
}
|
|
@@ -13736,7 +13736,7 @@ const _p = "(max-width: 767px)", Mp = (e) => typeof window < "u" && typeof windo
|
|
|
13736
13736
|
onRemovePostTotalRow: f,
|
|
13737
13737
|
secondaryTotal: m,
|
|
13738
13738
|
collapsible: g,
|
|
13739
|
-
isOpen:
|
|
13739
|
+
isOpen: p,
|
|
13740
13740
|
onToggleOpen: x,
|
|
13741
13741
|
defaultOpen: y = !1,
|
|
13742
13742
|
primaryAction: b,
|
|
@@ -13754,7 +13754,7 @@ const _p = "(max-width: 767px)", Mp = (e) => typeof window < "u" && typeof windo
|
|
|
13754
13754
|
"data-testid": F = "summary",
|
|
13755
13755
|
className: P
|
|
13756
13756
|
}) => {
|
|
13757
|
-
const T = S?.removeAriaLabel ?? "Remove item", U = S?.removeTotalRowAriaLabel ?? "Remove discount", G = S?.removePostTotalRowAriaLabel ?? "Remove applied code", z = S?.toggleAriaLabel ?? "Toggle summary", te = S?.cartAriaLabel ?? "View cart", Y = L === "compact", re = Rp(), ee = g ?? (M ?? (re ? "mobile" : "main")) === "mobile", [J, K] = W(y), ce =
|
|
13757
|
+
const T = S?.removeAriaLabel ?? "Remove item", U = S?.removeTotalRowAriaLabel ?? "Remove discount", G = S?.removePostTotalRowAriaLabel ?? "Remove applied code", z = S?.toggleAriaLabel ?? "Toggle summary", te = S?.cartAriaLabel ?? "View cart", Y = L === "compact", re = Rp(), ee = g ?? (M ?? (re ? "mobile" : "main")) === "mobile", [J, K] = W(y), ce = p !== void 0, ae = !ee || (ce ? p : J), ge = X(() => {
|
|
13758
13758
|
ce || K((O) => !O), x?.();
|
|
13759
13759
|
}, [ce, x]), [le, Ge] = W(0), [Te, Ue] = W(null), Lt = pe(null), ot = pe(null), at = X(() => {
|
|
13760
13760
|
const O = Lt.current;
|
|
@@ -13782,7 +13782,7 @@ const _p = "(max-width: 767px)", Mp = (e) => typeof window < "u" && typeof windo
|
|
|
13782
13782
|
"p",
|
|
13783
13783
|
{
|
|
13784
13784
|
"data-testid": "summary-cta-caption",
|
|
13785
|
-
className:
|
|
13785
|
+
className: h("text-center text-sm text-default-500", R.ctaCaption),
|
|
13786
13786
|
children: w
|
|
13787
13787
|
}
|
|
13788
13788
|
), j = $ != null && /* @__PURE__ */ n(
|
|
@@ -13790,7 +13790,7 @@ const _p = "(max-width: 767px)", Mp = (e) => typeof window < "u" && typeof windo
|
|
|
13790
13790
|
{
|
|
13791
13791
|
role: "alert",
|
|
13792
13792
|
"data-testid": "summary-cta-error",
|
|
13793
|
-
className:
|
|
13793
|
+
className: h("text-center text-sm text-danger", R.ctaError),
|
|
13794
13794
|
children: $
|
|
13795
13795
|
}
|
|
13796
13796
|
), B = /* @__PURE__ */ n(
|
|
@@ -13822,7 +13822,7 @@ const _p = "(max-width: 767px)", Mp = (e) => typeof window < "u" && typeof windo
|
|
|
13822
13822
|
dragSnapToOrigin: !0,
|
|
13823
13823
|
onDrag: gt.onDrag,
|
|
13824
13824
|
onDragEnd: gt.onDragEnd,
|
|
13825
|
-
className:
|
|
13825
|
+
className: h(
|
|
13826
13826
|
// max-h-full + the reveal's min-h-0 keep the header and the
|
|
13827
13827
|
// action bar on screen no matter how tall the content: a fixed
|
|
13828
13828
|
// element's percentage resolves against its containing block —
|
|
@@ -13856,7 +13856,7 @@ const _p = "(max-width: 767px)", Mp = (e) => typeof window < "u" && typeof windo
|
|
|
13856
13856
|
"data-testid": "summary-reveal",
|
|
13857
13857
|
"aria-hidden": !ae,
|
|
13858
13858
|
style: { height: me },
|
|
13859
|
-
className:
|
|
13859
|
+
className: h(
|
|
13860
13860
|
// min-h-0 lets the panel give way inside the max-h-dvh
|
|
13861
13861
|
// sheet (the header/action bar keep their min-content
|
|
13862
13862
|
// height, so they stay visible). At rest while open,
|
|
@@ -13899,17 +13899,17 @@ const _p = "(max-width: 767px)", Mp = (e) => typeof window < "u" && typeof windo
|
|
|
13899
13899
|
"section",
|
|
13900
13900
|
{
|
|
13901
13901
|
"data-testid": F,
|
|
13902
|
-
className:
|
|
13902
|
+
className: h(
|
|
13903
13903
|
Y ? "flex w-full flex-col gap-3 rounded-2xl border border-default-200 bg-content1 p-4" : "flex w-full flex-col gap-4 rounded-2xl border border-default-200 bg-content1 p-4",
|
|
13904
13904
|
P,
|
|
13905
13905
|
R.base
|
|
13906
13906
|
),
|
|
13907
13907
|
children: [
|
|
13908
|
-
!Y && /* @__PURE__ */ n("div", { className:
|
|
13908
|
+
!Y && /* @__PURE__ */ n("div", { className: h("flex items-center justify-between", R.header), children: /* @__PURE__ */ n(
|
|
13909
13909
|
"h2",
|
|
13910
13910
|
{
|
|
13911
13911
|
"data-testid": "summary-title",
|
|
13912
|
-
className:
|
|
13912
|
+
className: h("text-xl font-semibold leading-7 text-foreground", R.title),
|
|
13913
13913
|
children: e
|
|
13914
13914
|
}
|
|
13915
13915
|
) }),
|
|
@@ -13919,7 +13919,7 @@ const _p = "(max-width: 767px)", Mp = (e) => typeof window < "u" && typeof windo
|
|
|
13919
13919
|
v,
|
|
13920
13920
|
E,
|
|
13921
13921
|
m && b && /* @__PURE__ */ n(wt, { className: "bg-default-200" }),
|
|
13922
|
-
b && /* @__PURE__ */ n(Pa, { action: b, disabledByLoading: N, className:
|
|
13922
|
+
b && /* @__PURE__ */ n(Pa, { action: b, disabledByLoading: N, className: h("w-full", R.cta) }),
|
|
13923
13923
|
j,
|
|
13924
13924
|
_
|
|
13925
13925
|
]
|
|
@@ -13947,7 +13947,7 @@ const Op = {
|
|
|
13947
13947
|
labels: f,
|
|
13948
13948
|
className: m,
|
|
13949
13949
|
"data-testid": g = "wizard-shell",
|
|
13950
|
-
children:
|
|
13950
|
+
children: p
|
|
13951
13951
|
}) => {
|
|
13952
13952
|
const x = { ...Op, ...f }, y = t.filter((w) => w.state !== "skipped"), b = t.find((w) => w.id === a), N = Math.max(
|
|
13953
13953
|
0,
|
|
@@ -13956,7 +13956,7 @@ const Op = {
|
|
|
13956
13956
|
return /* @__PURE__ */ u(
|
|
13957
13957
|
"div",
|
|
13958
13958
|
{
|
|
13959
|
-
className:
|
|
13959
|
+
className: h("flex h-full min-h-0 w-full flex-col bg-white text-default-900", m),
|
|
13960
13960
|
"data-testid": g,
|
|
13961
13961
|
children: [
|
|
13962
13962
|
!c && /* @__PURE__ */ u(
|
|
@@ -13994,7 +13994,7 @@ const Op = {
|
|
|
13994
13994
|
type: "button",
|
|
13995
13995
|
"aria-label": x.close,
|
|
13996
13996
|
onClick: e,
|
|
13997
|
-
className:
|
|
13997
|
+
className: h(yn, "left-0"),
|
|
13998
13998
|
"data-testid": `${g}-header-close`
|
|
13999
13999
|
}
|
|
14000
14000
|
),
|
|
@@ -14004,7 +14004,7 @@ const Op = {
|
|
|
14004
14004
|
type: "button",
|
|
14005
14005
|
"aria-label": x.back,
|
|
14006
14006
|
onClick: i,
|
|
14007
|
-
className:
|
|
14007
|
+
className: h(yn, "left-6"),
|
|
14008
14008
|
"data-testid": `${g}-back`
|
|
14009
14009
|
}
|
|
14010
14010
|
),
|
|
@@ -14015,7 +14015,7 @@ const Op = {
|
|
|
14015
14015
|
"aria-label": o.label,
|
|
14016
14016
|
disabled: o.disabled,
|
|
14017
14017
|
onClick: o.onClick,
|
|
14018
|
-
className:
|
|
14018
|
+
className: h(yn, "left-12"),
|
|
14019
14019
|
"data-testid": `${g}-secondary`
|
|
14020
14020
|
}
|
|
14021
14021
|
)
|
|
@@ -14032,7 +14032,7 @@ const Op = {
|
|
|
14032
14032
|
l.badge === "partial" && /* @__PURE__ */ n(
|
|
14033
14033
|
"span",
|
|
14034
14034
|
{
|
|
14035
|
-
className:
|
|
14035
|
+
className: h(Ai, "bg-pos-warn-fill text-pos-warn"),
|
|
14036
14036
|
"data-testid": `${g}-total-partial`,
|
|
14037
14037
|
children: x.partialBadge
|
|
14038
14038
|
}
|
|
@@ -14040,7 +14040,7 @@ const Op = {
|
|
|
14040
14040
|
l.badge === "owes" && /* @__PURE__ */ n(
|
|
14041
14041
|
"span",
|
|
14042
14042
|
{
|
|
14043
|
-
className:
|
|
14043
|
+
className: h(
|
|
14044
14044
|
Ai,
|
|
14045
14045
|
"border border-pos-line bg-default-100 text-default-600"
|
|
14046
14046
|
),
|
|
@@ -14055,7 +14055,7 @@ const Op = {
|
|
|
14055
14055
|
V,
|
|
14056
14056
|
{
|
|
14057
14057
|
color: "primary",
|
|
14058
|
-
className:
|
|
14058
|
+
className: h(
|
|
14059
14059
|
"h-12 min-w-0 rounded-[14px] px-5 text-[15px] font-semibold",
|
|
14060
14060
|
s.tone === "destructive" && "bg-pos-destructive text-white"
|
|
14061
14061
|
),
|
|
@@ -14074,7 +14074,7 @@ const Op = {
|
|
|
14074
14074
|
/* @__PURE__ */ n("div", { className: "flex shrink-0 gap-1.5 px-6 py-2.5", "data-testid": `${g}-stepper`, children: y.map((w, $) => /* @__PURE__ */ n(
|
|
14075
14075
|
"span",
|
|
14076
14076
|
{
|
|
14077
|
-
className:
|
|
14077
|
+
className: h(
|
|
14078
14078
|
"h-1 flex-1 rounded-full",
|
|
14079
14079
|
$ < N && "bg-pos-ok",
|
|
14080
14080
|
$ === N && "bg-primary",
|
|
@@ -14083,7 +14083,7 @@ const Op = {
|
|
|
14083
14083
|
},
|
|
14084
14084
|
w.id
|
|
14085
14085
|
)) }),
|
|
14086
|
-
/* @__PURE__ */ n("div", { className: "min-h-0 flex-1 overflow-auto px-6 py-[22px]", "data-testid": `${g}-body`, children:
|
|
14086
|
+
/* @__PURE__ */ n("div", { className: "min-h-0 flex-1 overflow-auto px-6 py-[22px]", "data-testid": `${g}-body`, children: p }),
|
|
14087
14087
|
d
|
|
14088
14088
|
]
|
|
14089
14089
|
}
|
|
@@ -14116,7 +14116,7 @@ const Vp = (e) => Number.isFinite(e) ? e.toFixed(2) : "", In = ({
|
|
|
14116
14116
|
return /* @__PURE__ */ u(
|
|
14117
14117
|
"span",
|
|
14118
14118
|
{
|
|
14119
|
-
className:
|
|
14119
|
+
className: h(
|
|
14120
14120
|
"inline-flex h-11 items-center gap-px rounded-[10px] border px-2.5",
|
|
14121
14121
|
"focus-within:border-primary focus-within:ring-[3px] focus-within:ring-primary/10",
|
|
14122
14122
|
g ? "border-primary bg-primary-50" : "border-pos-line bg-white",
|
|
@@ -14135,11 +14135,11 @@ const Vp = (e) => Number.isFinite(e) ? e.toFixed(2) : "", In = ({
|
|
|
14135
14135
|
disabled: s,
|
|
14136
14136
|
className: "w-full border-none bg-transparent p-0 text-right text-sm font-semibold tabular-nums text-default-900 outline-none",
|
|
14137
14137
|
value: d ?? Vp(e),
|
|
14138
|
-
onChange: (
|
|
14139
|
-
const x =
|
|
14138
|
+
onChange: (p) => {
|
|
14139
|
+
const x = p.target.value, y = Number.parseFloat(x.replace(",", "."));
|
|
14140
14140
|
a !== void 0 && Number.isFinite(y) && y > a + 4e-3 || (f(x), Number.isFinite(y) && y >= 0 ? r(y) : x.trim() === "" && r(0));
|
|
14141
14141
|
},
|
|
14142
|
-
onFocus: (
|
|
14142
|
+
onFocus: (p) => p.currentTarget.select(),
|
|
14143
14143
|
onBlur: () => f(null),
|
|
14144
14144
|
"data-testid": c
|
|
14145
14145
|
}
|
|
@@ -14191,9 +14191,9 @@ const Up = {
|
|
|
14191
14191
|
{ key: "norestock", label: d.dispositionNoRestock },
|
|
14192
14192
|
{ key: "damaged", label: d.dispositionDamaged }
|
|
14193
14193
|
];
|
|
14194
|
-
return /* @__PURE__ */ u("div", { className:
|
|
14194
|
+
return /* @__PURE__ */ u("div", { className: h("flex flex-col text-default-900", o), "data-testid": c, children: [
|
|
14195
14195
|
e.map((m) => {
|
|
14196
|
-
const g = t[m.id],
|
|
14196
|
+
const g = t[m.id], p = m.state === "already_refunded" || m.state === "non_refundable", x = `${c}-row-${m.id}`, y = Math.max(1, Math.trunc(m.quantity)), b = g?.quantity, N = g?.selected ? Math.min(b ?? y, y) : b ?? 0, k = zn(m.paidAmount, y, N).value, A = g?.amount ?? (g?.selected ? k : 0), w = N === 0 && A > 4e-3, $ = (C) => a(m.id, {
|
|
14197
14197
|
selected: C.quantity > 0 || C.amount > 4e-3,
|
|
14198
14198
|
mode: "full",
|
|
14199
14199
|
...C
|
|
@@ -14204,9 +14204,9 @@ const Up = {
|
|
|
14204
14204
|
return /* @__PURE__ */ u(
|
|
14205
14205
|
"div",
|
|
14206
14206
|
{
|
|
14207
|
-
className:
|
|
14207
|
+
className: h(
|
|
14208
14208
|
"relative flex items-start gap-3 border-b border-pos-line-2 py-3 last:border-b-0",
|
|
14209
|
-
|
|
14209
|
+
p && "opacity-60"
|
|
14210
14210
|
),
|
|
14211
14211
|
"data-testid": x,
|
|
14212
14212
|
children: [
|
|
@@ -14238,7 +14238,7 @@ const Up = {
|
|
|
14238
14238
|
className: "flex w-full flex-wrap items-center gap-2.5 sm:w-auto sm:flex-nowrap",
|
|
14239
14239
|
"data-testid": `${x}-partial`,
|
|
14240
14240
|
children: [
|
|
14241
|
-
|
|
14241
|
+
p ? /* @__PURE__ */ n("span", { className: "text-sm font-semibold tabular-nums", children: De(m.paidAmount.value, void 0, m.paidAmount.currency) }) : /* @__PURE__ */ n(
|
|
14242
14242
|
In,
|
|
14243
14243
|
{
|
|
14244
14244
|
value: A,
|
|
@@ -14251,7 +14251,7 @@ const Up = {
|
|
|
14251
14251
|
inputTestId: `${x}-partial-input-field`
|
|
14252
14252
|
}
|
|
14253
14253
|
),
|
|
14254
|
-
|
|
14254
|
+
p ? /* @__PURE__ */ n("span", { className: jp, "data-testid": `${x}-blocked`, children: m.state === "already_refunded" ? d.refunded : d.ineligible }) : /* @__PURE__ */ u(
|
|
14255
14255
|
"div",
|
|
14256
14256
|
{
|
|
14257
14257
|
role: "group",
|
|
@@ -14342,11 +14342,11 @@ const Up = {
|
|
|
14342
14342
|
)
|
|
14343
14343
|
] })
|
|
14344
14344
|
] }),
|
|
14345
|
-
!
|
|
14345
|
+
!p && /* @__PURE__ */ u(fe, { children: [
|
|
14346
14346
|
/* @__PURE__ */ n(
|
|
14347
14347
|
Ta,
|
|
14348
14348
|
{
|
|
14349
|
-
className:
|
|
14349
|
+
className: h(vn, "right-0 top-0 m-0 p-0"),
|
|
14350
14350
|
isSelected: !!g?.selected,
|
|
14351
14351
|
onValueChange: (C) => a(m.id, { selected: C, mode: "full" }),
|
|
14352
14352
|
"aria-label": m.name,
|
|
@@ -14361,7 +14361,7 @@ const Up = {
|
|
|
14361
14361
|
onClick: () => document.querySelector(
|
|
14362
14362
|
`[data-testid="${x}-partial-input-field"]`
|
|
14363
14363
|
)?.focus(),
|
|
14364
|
-
className:
|
|
14364
|
+
className: h(vn, "left-0 top-0"),
|
|
14365
14365
|
"data-testid": `${x}-partial-link`
|
|
14366
14366
|
}
|
|
14367
14367
|
),
|
|
@@ -14371,7 +14371,7 @@ const Up = {
|
|
|
14371
14371
|
type: "button",
|
|
14372
14372
|
"aria-label": d.partialCancel,
|
|
14373
14373
|
onClick: () => $({ quantity: N, amount: k }),
|
|
14374
|
-
className:
|
|
14374
|
+
className: h(vn, "left-5 top-0"),
|
|
14375
14375
|
"data-testid": `${x}-partial-cancel`
|
|
14376
14376
|
}
|
|
14377
14377
|
)
|
|
@@ -14444,7 +14444,7 @@ const Sl = ({
|
|
|
14444
14444
|
children: e,
|
|
14445
14445
|
className: t,
|
|
14446
14446
|
"data-testid": a = "meta-card"
|
|
14447
|
-
}) => /* @__PURE__ */ n("div", { className:
|
|
14447
|
+
}) => /* @__PURE__ */ n("div", { className: h("mx-auto mt-[18px] flex max-w-[1040px] flex-col gap-3", t), "data-testid": a, children: /* @__PURE__ */ n("div", { className: "rounded-[14px] border border-pos-line bg-white px-4 py-3.5 text-default-900", children: e }) });
|
|
14448
14448
|
Sl.displayName = "MetaCard";
|
|
14449
14449
|
const $l = ({
|
|
14450
14450
|
label: e,
|
|
@@ -14452,7 +14452,7 @@ const $l = ({
|
|
|
14452
14452
|
children: a,
|
|
14453
14453
|
className: r,
|
|
14454
14454
|
"data-testid": i = "meta-card-row"
|
|
14455
|
-
}) => /* @__PURE__ */ u("div", { className:
|
|
14455
|
+
}) => /* @__PURE__ */ u("div", { className: h("flex flex-wrap items-center justify-between gap-4", r), "data-testid": i, children: [
|
|
14456
14456
|
/* @__PURE__ */ n("label", { htmlFor: t, className: "text-[13px] font-medium text-default-600", children: e }),
|
|
14457
14457
|
/* @__PURE__ */ n("div", { className: "w-full sm:w-[290px] sm:shrink-0", children: a })
|
|
14458
14458
|
] });
|
|
@@ -14465,7 +14465,7 @@ const Al = ({
|
|
|
14465
14465
|
}) => /* @__PURE__ */ u(
|
|
14466
14466
|
"div",
|
|
14467
14467
|
{
|
|
14468
|
-
className:
|
|
14468
|
+
className: h("mt-3.5 flex flex-col gap-2.5 border-t border-pos-line pt-3", a),
|
|
14469
14469
|
"data-testid": r,
|
|
14470
14470
|
children: [
|
|
14471
14471
|
e && /* @__PURE__ */ n("p", { className: "text-[13px] font-medium text-default-600", children: e }),
|
|
@@ -14484,7 +14484,7 @@ const Xg = Object.assign(Sl, { Row: $l, Section: Al }), qp = ({
|
|
|
14484
14484
|
}) => /* @__PURE__ */ u(
|
|
14485
14485
|
"section",
|
|
14486
14486
|
{
|
|
14487
|
-
className:
|
|
14487
|
+
className: h("mx-auto max-w-[1040px] rounded-2xl border border-pos-line bg-white px-[18px] py-4", i),
|
|
14488
14488
|
"data-testid": s,
|
|
14489
14489
|
children: [
|
|
14490
14490
|
/* @__PURE__ */ u("div", { className: "mb-3 flex items-center gap-2 text-[13px] font-semibold text-default-600", children: [
|
|
@@ -14497,7 +14497,7 @@ const Xg = Object.assign(Sl, { Row: $l, Section: Al }), qp = ({
|
|
|
14497
14497
|
type: "button",
|
|
14498
14498
|
disabled: a.disabled,
|
|
14499
14499
|
onClick: a.onClick,
|
|
14500
|
-
className:
|
|
14500
|
+
className: h(
|
|
14501
14501
|
"inline-flex min-h-8 shrink-0 items-center gap-1.5 rounded-full border border-primary",
|
|
14502
14502
|
"bg-primary/5 px-3 py-[7px] text-[12.5px] font-semibold text-primary outline-none",
|
|
14503
14503
|
"transition-colors hover:bg-primary/10 disabled:cursor-not-allowed disabled:opacity-60",
|
|
@@ -14526,7 +14526,7 @@ const Gp = ({
|
|
|
14526
14526
|
}) => /* @__PURE__ */ u(
|
|
14527
14527
|
"div",
|
|
14528
14528
|
{
|
|
14529
|
-
className:
|
|
14529
|
+
className: h("mb-3.5 flex items-center gap-3 rounded-xl bg-default-100 px-3.5 py-3", i),
|
|
14530
14530
|
"data-testid": s,
|
|
14531
14531
|
children: [
|
|
14532
14532
|
/* @__PURE__ */ n("div", { className: "flex h-[38px] w-[38px] shrink-0 items-center justify-center rounded-[10px] bg-default-100 text-default-600", children: /* @__PURE__ */ n(I, { icon: a, width: 18, height: 18, "aria-hidden": "true" }) }),
|
|
@@ -14561,7 +14561,7 @@ const Yp = {
|
|
|
14561
14561
|
selectedKeys: t ? [t] : [],
|
|
14562
14562
|
isInvalid: !!r,
|
|
14563
14563
|
errorMessage: r,
|
|
14564
|
-
className:
|
|
14564
|
+
className: h(s),
|
|
14565
14565
|
"data-testid": l,
|
|
14566
14566
|
onSelectionChange: (c) => {
|
|
14567
14567
|
if (c === "all") return;
|
|
@@ -14589,7 +14589,7 @@ const Qp = {
|
|
|
14589
14589
|
"data-testid": o = "notes-field"
|
|
14590
14590
|
}) => {
|
|
14591
14591
|
const c = { ...Qp, ...s }, [d, f] = W(e !== "");
|
|
14592
|
-
return r ? /* @__PURE__ */ u("div", { className:
|
|
14592
|
+
return r ? /* @__PURE__ */ u("div", { className: h("flex flex-col gap-2", l), "data-testid": o, children: [
|
|
14593
14593
|
!i && /* @__PURE__ */ n("label", { htmlFor: `${o}-textarea`, className: "text-[13px] font-medium text-default-600", children: c.heading }),
|
|
14594
14594
|
/* @__PURE__ */ n(
|
|
14595
14595
|
"textarea",
|
|
@@ -14600,7 +14600,7 @@ const Qp = {
|
|
|
14600
14600
|
onChange: (m) => t(m.target.value),
|
|
14601
14601
|
maxLength: a,
|
|
14602
14602
|
placeholder: c.placeholder,
|
|
14603
|
-
className:
|
|
14603
|
+
className: h(
|
|
14604
14604
|
"min-h-[52px] w-full resize-y rounded-[10px] border border-pos-line bg-white px-3 py-2.5",
|
|
14605
14605
|
"text-[13.5px] leading-[1.45] text-default-900 outline-none",
|
|
14606
14606
|
"placeholder:text-default-500",
|
|
@@ -14609,7 +14609,7 @@ const Qp = {
|
|
|
14609
14609
|
"data-testid": `${o}-textarea`
|
|
14610
14610
|
}
|
|
14611
14611
|
)
|
|
14612
|
-
] }) : /* @__PURE__ */ n("div", { className:
|
|
14612
|
+
] }) : /* @__PURE__ */ n("div", { className: h(l), "data-testid": o, children: d ? /* @__PURE__ */ n(
|
|
14613
14613
|
Jl,
|
|
14614
14614
|
{
|
|
14615
14615
|
value: e,
|
|
@@ -14660,19 +14660,19 @@ const Xp = {
|
|
|
14660
14660
|
"div",
|
|
14661
14661
|
{
|
|
14662
14662
|
role: "alert",
|
|
14663
|
-
className:
|
|
14663
|
+
className: h("flex items-start gap-3.5 rounded-[14px] p-4 px-[18px]", m.surface, o),
|
|
14664
14664
|
"data-testid": c,
|
|
14665
14665
|
children: [
|
|
14666
14666
|
/* @__PURE__ */ n(
|
|
14667
14667
|
"div",
|
|
14668
14668
|
{
|
|
14669
|
-
className:
|
|
14669
|
+
className: h("flex h-10 w-10 shrink-0 items-center justify-center rounded-full", m.disc),
|
|
14670
14670
|
"aria-hidden": "true",
|
|
14671
14671
|
children: /* @__PURE__ */ n(I, { icon: Jp[e], width: 22, height: 22 })
|
|
14672
14672
|
}
|
|
14673
14673
|
),
|
|
14674
14674
|
/* @__PURE__ */ u("div", { className: "min-w-0 flex-1", children: [
|
|
14675
|
-
t && /* @__PURE__ */ n("p", { className:
|
|
14675
|
+
t && /* @__PURE__ */ n("p", { className: h("font-semibold", m.title), children: t }),
|
|
14676
14676
|
/* @__PURE__ */ n("p", { className: "mt-0.5 text-[13px] text-default-600", children: a }),
|
|
14677
14677
|
/* @__PURE__ */ u("div", { className: "mt-3 flex gap-2.5", children: [
|
|
14678
14678
|
r && /* @__PURE__ */ n(V, { color: "primary", className: Ei, onPress: r, "data-testid": d, children: i }),
|
|
@@ -14680,7 +14680,7 @@ const Xp = {
|
|
|
14680
14680
|
V,
|
|
14681
14681
|
{
|
|
14682
14682
|
variant: "bordered",
|
|
14683
|
-
className:
|
|
14683
|
+
className: h(Ei, "border-1 border-pos-line bg-white text-default-900"),
|
|
14684
14684
|
onPress: s,
|
|
14685
14685
|
"data-testid": f,
|
|
14686
14686
|
children: l
|
|
@@ -14718,7 +14718,7 @@ const e0 = {
|
|
|
14718
14718
|
"data-testid": o = "tender-methods"
|
|
14719
14719
|
}) => {
|
|
14720
14720
|
const c = { ...e0, ...s }, d = i?.kind === "processor_declined";
|
|
14721
|
-
return /* @__PURE__ */ u("div", { className:
|
|
14721
|
+
return /* @__PURE__ */ u("div", { className: h("flex flex-col text-default-900", l), "data-testid": o, children: [
|
|
14722
14722
|
i && /* @__PURE__ */ n(
|
|
14723
14723
|
gr,
|
|
14724
14724
|
{
|
|
@@ -14753,7 +14753,7 @@ const e0 = {
|
|
|
14753
14753
|
role: "radio",
|
|
14754
14754
|
"aria-checked": m,
|
|
14755
14755
|
onClick: () => a(f.tenderId),
|
|
14756
|
-
className:
|
|
14756
|
+
className: h(
|
|
14757
14757
|
"flex items-center gap-[11px] rounded-[14px] border-[1.5px] bg-white px-[15px] py-[11px] text-left",
|
|
14758
14758
|
"outline-none transition-colors",
|
|
14759
14759
|
"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
|
|
@@ -14764,7 +14764,7 @@ const e0 = {
|
|
|
14764
14764
|
/* @__PURE__ */ n(
|
|
14765
14765
|
"span",
|
|
14766
14766
|
{
|
|
14767
|
-
className:
|
|
14767
|
+
className: h(
|
|
14768
14768
|
"flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-[10px]",
|
|
14769
14769
|
m ? "bg-primary text-white" : "bg-default-100 text-default-600"
|
|
14770
14770
|
),
|
|
@@ -14785,7 +14785,7 @@ const e0 = {
|
|
|
14785
14785
|
{
|
|
14786
14786
|
type: "button",
|
|
14787
14787
|
onClick: r,
|
|
14788
|
-
className:
|
|
14788
|
+
className: h(
|
|
14789
14789
|
"flex items-center gap-[11px] rounded-[14px] border-[1.5px] border-pos-line bg-white px-[15px] py-[11px] text-left",
|
|
14790
14790
|
"outline-none transition-colors hover:border-primary",
|
|
14791
14791
|
"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"
|
|
@@ -14834,7 +14834,7 @@ const n0 = (e) => e.refunded !== null, r0 = {
|
|
|
14834
14834
|
className: m,
|
|
14835
14835
|
"data-testid": g = "split-tender-panel"
|
|
14836
14836
|
}) => {
|
|
14837
|
-
const
|
|
14837
|
+
const p = { ...r0, ...f }, x = e.filter(n0), y = e.find((C) => C.tenderId === r.tenderId)?.label, b = !!(i?.length && r.onTenderChange), N = Wa(a.currency), {
|
|
14838
14838
|
draft: k,
|
|
14839
14839
|
setDraft: A,
|
|
14840
14840
|
normalize: w
|
|
@@ -14844,18 +14844,18 @@ const n0 = (e) => e.refunded !== null, r0 = {
|
|
|
14844
14844
|
},
|
|
14845
14845
|
[r, A, N]
|
|
14846
14846
|
), M = l?.kind === "processor_declined";
|
|
14847
|
-
return /* @__PURE__ */ u("div", { className:
|
|
14848
|
-
/* @__PURE__ */ n("h3", { className: "sr-only", "data-testid": `${g}-title`, children:
|
|
14847
|
+
return /* @__PURE__ */ u("div", { className: h("flex flex-col text-default-900", m), "data-testid": g, children: [
|
|
14848
|
+
/* @__PURE__ */ n("h3", { className: "sr-only", "data-testid": `${g}-title`, children: p.title }),
|
|
14849
14849
|
l && /* @__PURE__ */ n(
|
|
14850
14850
|
gr,
|
|
14851
14851
|
{
|
|
14852
14852
|
tone: M ? "danger" : "warning",
|
|
14853
|
-
title: M ?
|
|
14854
|
-
body: M ?
|
|
14853
|
+
title: M ? p.declinedTitle : p.networkTitle,
|
|
14854
|
+
body: M ? p.partDeclinedBody : p.partNetworkBody,
|
|
14855
14855
|
onRetry: l.onRetry,
|
|
14856
|
-
retryLabel:
|
|
14856
|
+
retryLabel: p.retry,
|
|
14857
14857
|
onChooseDifferent: l.onChooseDifferent,
|
|
14858
|
-
chooseDifferentLabel:
|
|
14858
|
+
chooseDifferentLabel: p.chooseDifferent,
|
|
14859
14859
|
className: "mb-[18px]",
|
|
14860
14860
|
"data-testid": `${g}-part-error`,
|
|
14861
14861
|
retryTestId: `${g}-retry`,
|
|
@@ -14864,16 +14864,16 @@ const n0 = (e) => e.refunded !== null, r0 = {
|
|
|
14864
14864
|
),
|
|
14865
14865
|
/* @__PURE__ */ u("div", { "data-testid": `${g}-totals`, children: [
|
|
14866
14866
|
/* @__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: [
|
|
14867
|
-
/* @__PURE__ */ n("span", { className: "text-[13px] font-semibold text-default-500", children:
|
|
14867
|
+
/* @__PURE__ */ n("span", { className: "text-[13px] font-semibold text-default-500", children: p.remaining }),
|
|
14868
14868
|
/* @__PURE__ */ n("span", { className: "text-[22px] font-semibold tabular-nums", children: De(a.value, void 0, a.currency) }),
|
|
14869
14869
|
/* @__PURE__ */ u("span", { className: "sr-only", children: [
|
|
14870
|
-
|
|
14870
|
+
p.refundedSoFar,
|
|
14871
14871
|
": ",
|
|
14872
14872
|
De(t.value, void 0, t.currency)
|
|
14873
14873
|
] })
|
|
14874
14874
|
] }),
|
|
14875
14875
|
x.length > 0 && /* @__PURE__ */ u("div", { children: [
|
|
14876
|
-
/* @__PURE__ */ n("p", { className: i0, children:
|
|
14876
|
+
/* @__PURE__ */ n("p", { className: i0, children: p.refundedSoFar }),
|
|
14877
14877
|
x.map((C, D) => /* @__PURE__ */ u(
|
|
14878
14878
|
"div",
|
|
14879
14879
|
{
|
|
@@ -14901,11 +14901,11 @@ const n0 = (e) => e.refunded !== null, r0 = {
|
|
|
14901
14901
|
/* @__PURE__ */ n(
|
|
14902
14902
|
"span",
|
|
14903
14903
|
{
|
|
14904
|
-
className:
|
|
14904
|
+
className: h(
|
|
14905
14905
|
s0,
|
|
14906
14906
|
C.status === "pending" ? "bg-pos-warn-fill text-pos-warn" : "bg-pos-ok-fill text-pos-ok"
|
|
14907
14907
|
),
|
|
14908
|
-
children: C.status === "pending" ?
|
|
14908
|
+
children: C.status === "pending" ? p.pending : p.succeeded
|
|
14909
14909
|
}
|
|
14910
14910
|
)
|
|
14911
14911
|
]
|
|
@@ -14916,7 +14916,7 @@ const n0 = (e) => e.refunded !== null, r0 = {
|
|
|
14916
14916
|
] }),
|
|
14917
14917
|
/* @__PURE__ */ u("div", { className: "mt-3.5", "data-testid": `${g}-current`, children: [
|
|
14918
14918
|
/* @__PURE__ */ u("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
14919
|
-
/* @__PURE__ */ n("span", { className: "text-sm font-semibold", children:
|
|
14919
|
+
/* @__PURE__ */ n("span", { className: "text-sm font-semibold", children: p.partHeading.replace("{n}", String(x.length + 1)) }),
|
|
14920
14920
|
y && /* @__PURE__ */ n("span", { className: "text-xs text-default-500", children: y })
|
|
14921
14921
|
] }),
|
|
14922
14922
|
/* @__PURE__ */ n(
|
|
@@ -14925,14 +14925,14 @@ const n0 = (e) => e.refunded !== null, r0 = {
|
|
|
14925
14925
|
"aria-hidden": "true",
|
|
14926
14926
|
className: "mb-1.5 text-[13px] font-semibold",
|
|
14927
14927
|
"data-testid": `${g}-amount-label`,
|
|
14928
|
-
children:
|
|
14928
|
+
children: p.amountForPart
|
|
14929
14929
|
}
|
|
14930
14930
|
),
|
|
14931
14931
|
/* @__PURE__ */ n(
|
|
14932
14932
|
hl,
|
|
14933
14933
|
{
|
|
14934
|
-
heading:
|
|
14935
|
-
amountLabel:
|
|
14934
|
+
heading: p.amountForPart,
|
|
14935
|
+
amountLabel: p.amountForPart,
|
|
14936
14936
|
hideHeading: !0,
|
|
14937
14937
|
placeholder: "$0.00",
|
|
14938
14938
|
value: k,
|
|
@@ -14953,7 +14953,7 @@ const n0 = (e) => e.refunded !== null, r0 = {
|
|
|
14953
14953
|
"aria-pressed": D,
|
|
14954
14954
|
disabled: C.disabled || c,
|
|
14955
14955
|
onClick: () => r.onTenderChange?.(C.tenderId),
|
|
14956
|
-
className:
|
|
14956
|
+
className: h(
|
|
14957
14957
|
"flex h-11 flex-1 items-center justify-center gap-2 rounded-xl border-[1.5px] bg-white",
|
|
14958
14958
|
"text-[13px] font-semibold outline-none transition-colors",
|
|
14959
14959
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -14978,7 +14978,7 @@ const n0 = (e) => e.refunded !== null, r0 = {
|
|
|
14978
14978
|
className: "h-12 min-w-0 flex-1 rounded-[14px] border-1 border-pos-line bg-white px-5 text-[15px] font-semibold text-default-900",
|
|
14979
14979
|
onPress: o,
|
|
14980
14980
|
"data-testid": `${g}-back`,
|
|
14981
|
-
children:
|
|
14981
|
+
children: p.back
|
|
14982
14982
|
}
|
|
14983
14983
|
),
|
|
14984
14984
|
/* @__PURE__ */ n(
|
|
@@ -14990,7 +14990,7 @@ const n0 = (e) => e.refunded !== null, r0 = {
|
|
|
14990
14990
|
isLoading: c,
|
|
14991
14991
|
onPress: s,
|
|
14992
14992
|
"data-testid": `${g}-submit`,
|
|
14993
|
-
children:
|
|
14993
|
+
children: p.submit
|
|
14994
14994
|
}
|
|
14995
14995
|
)
|
|
14996
14996
|
] })
|
|
@@ -15013,7 +15013,7 @@ const o0 = {
|
|
|
15013
15013
|
return /* @__PURE__ */ u(
|
|
15014
15014
|
"div",
|
|
15015
15015
|
{
|
|
15016
|
-
className:
|
|
15016
|
+
className: h(
|
|
15017
15017
|
"mx-auto max-w-[460px] rounded-[20px] border border-pos-line bg-white px-7 py-[26px]",
|
|
15018
15018
|
"text-center text-default-900 shadow-[0_1px_2px_rgba(0,0,0,0.05)]",
|
|
15019
15019
|
s
|
|
@@ -15078,11 +15078,11 @@ const d0 = {
|
|
|
15078
15078
|
className: f,
|
|
15079
15079
|
"data-testid": m = "outcome-view"
|
|
15080
15080
|
}) => {
|
|
15081
|
-
const g = { ...d0, ...d },
|
|
15081
|
+
const g = { ...d0, ...d }, p = t ? De(t.value, void 0, t.currency) : null;
|
|
15082
15082
|
return e === "processing" ? /* @__PURE__ */ n(
|
|
15083
15083
|
"div",
|
|
15084
15084
|
{
|
|
15085
|
-
className:
|
|
15085
|
+
className: h("flex flex-col items-center justify-center text-center text-default-900", f),
|
|
15086
15086
|
"aria-live": "polite",
|
|
15087
15087
|
"data-testid": m,
|
|
15088
15088
|
children: /* @__PURE__ */ u("div", { className: "flex flex-col items-center px-5 py-[60px]", "data-testid": `${m}-processing`, children: [
|
|
@@ -15094,12 +15094,12 @@ const d0 = {
|
|
|
15094
15094
|
}
|
|
15095
15095
|
),
|
|
15096
15096
|
/* @__PURE__ */ n("p", { className: "text-[17px] font-semibold", children: g.processing }),
|
|
15097
|
-
|
|
15097
|
+
p && /* @__PURE__ */ n(
|
|
15098
15098
|
"p",
|
|
15099
15099
|
{
|
|
15100
15100
|
className: "mt-2 text-[15px] font-semibold tabular-nums",
|
|
15101
15101
|
"data-testid": `${m}-processing-total`,
|
|
15102
|
-
children:
|
|
15102
|
+
children: p
|
|
15103
15103
|
}
|
|
15104
15104
|
)
|
|
15105
15105
|
] })
|
|
@@ -15107,14 +15107,14 @@ const d0 = {
|
|
|
15107
15107
|
) : /* @__PURE__ */ u(
|
|
15108
15108
|
"div",
|
|
15109
15109
|
{
|
|
15110
|
-
className:
|
|
15110
|
+
className: h("flex flex-col text-default-900", !c && f0, f),
|
|
15111
15111
|
"aria-live": "polite",
|
|
15112
15112
|
"data-testid": m,
|
|
15113
15113
|
children: [
|
|
15114
15114
|
/* @__PURE__ */ u("div", { className: "pb-0.5 pt-1 text-center", children: [
|
|
15115
15115
|
/* @__PURE__ */ n("div", { className: "mx-auto mb-3.5 flex h-[78px] w-[78px] items-center justify-center rounded-full bg-pos-ok-fill text-pos-ok", children: /* @__PURE__ */ n(I, { icon: "solar:check-circle-bold", width: 46, height: 46, "aria-hidden": "true" }) }),
|
|
15116
15116
|
/* @__PURE__ */ n("p", { className: "text-[22px] font-semibold", "data-testid": `${m}-title`, children: g.title }),
|
|
15117
|
-
|
|
15117
|
+
p && /* @__PURE__ */ n("p", { className: "my-1 text-[30px] font-semibold tabular-nums", "data-testid": `${m}-total`, children: p }),
|
|
15118
15118
|
r && /* @__PURE__ */ n("p", { className: "text-[13px] text-default-500", "data-testid": `${m}-reason`, children: g.reason.replace("{reason}", r) })
|
|
15119
15119
|
] }),
|
|
15120
15120
|
/* @__PURE__ */ u("div", { className: "mt-5 text-left", children: [
|
|
@@ -15128,7 +15128,7 @@ const d0 = {
|
|
|
15128
15128
|
/* @__PURE__ */ n("span", { className: "font-semibold", children: x.label }),
|
|
15129
15129
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-2.5", children: [
|
|
15130
15130
|
/* @__PURE__ */ n("span", { className: "tabular-nums text-default-600", children: De(x.amount.value, void 0, x.amount.currency) }),
|
|
15131
|
-
/* @__PURE__ */ n("span", { className:
|
|
15131
|
+
/* @__PURE__ */ n("span", { className: h(m0, u0[x.status]), children: x.status === "succeeded" ? g.succeeded : g.pending })
|
|
15132
15132
|
] })
|
|
15133
15133
|
]
|
|
15134
15134
|
},
|
|
@@ -15205,7 +15205,7 @@ const Be = {
|
|
|
15205
15205
|
"data-slot": "filter-select",
|
|
15206
15206
|
"data-active": o ? "true" : void 0,
|
|
15207
15207
|
title: c,
|
|
15208
|
-
className:
|
|
15208
|
+
className: h(Be.base, o && Be.baseActive),
|
|
15209
15209
|
style: s === void 0 ? void 0 : { "--filter-select-min": mt(s) },
|
|
15210
15210
|
children: [
|
|
15211
15211
|
/* @__PURE__ */ n(
|
|
@@ -15224,10 +15224,10 @@ const Be = {
|
|
|
15224
15224
|
},
|
|
15225
15225
|
"data-testid": `${l}-trigger`,
|
|
15226
15226
|
classNames: {
|
|
15227
|
-
base:
|
|
15228
|
-
trigger:
|
|
15229
|
-
value:
|
|
15230
|
-
selectorIcon:
|
|
15227
|
+
base: h(Be.select, Be.cell),
|
|
15228
|
+
trigger: h(Be.trigger, o && Be.triggerActive),
|
|
15229
|
+
value: h(Be.value, o && Be.valueActive),
|
|
15230
|
+
selectorIcon: h(o && Be.iconActive)
|
|
15231
15231
|
},
|
|
15232
15232
|
children: a.map((f) => /* @__PURE__ */ n(ht, { children: f.label }, f.value))
|
|
15233
15233
|
}
|
|
@@ -15237,7 +15237,7 @@ const Be = {
|
|
|
15237
15237
|
{
|
|
15238
15238
|
"aria-hidden": "true",
|
|
15239
15239
|
"data-testid": `${l}-sizer`,
|
|
15240
|
-
className:
|
|
15240
|
+
className: h(Be.sizer, o && Be.sizerActive, Be.cell),
|
|
15241
15241
|
children: c ?? e
|
|
15242
15242
|
}
|
|
15243
15243
|
),
|
|
@@ -15286,7 +15286,7 @@ const yt = {
|
|
|
15286
15286
|
if (!f || typeof IntersectionObserver > "u") return;
|
|
15287
15287
|
const m = new IntersectionObserver(
|
|
15288
15288
|
(g) => {
|
|
15289
|
-
d.current || !g.some((
|
|
15289
|
+
d.current || !g.some((p) => p.isIntersecting) || (d.current = !0, c.current());
|
|
15290
15290
|
},
|
|
15291
15291
|
{ rootMargin: "0px 0px 200px 0px" }
|
|
15292
15292
|
);
|
|
@@ -15357,7 +15357,7 @@ const Se = {
|
|
|
15357
15357
|
rowValue: "ml-auto min-w-0 text-right text-default-700 [overflow-wrap:anywhere]",
|
|
15358
15358
|
skeletonRow: "border-b border-pos-hair p-4 last:border-b-0"
|
|
15359
15359
|
}, Li = ({ item: e, withActions: t }) => /* @__PURE__ */ u(fe, { children: [
|
|
15360
|
-
/* @__PURE__ */ u("span", { className:
|
|
15360
|
+
/* @__PURE__ */ u("span", { className: h(Se.headline, t && Se.headlineWithActions), children: [
|
|
15361
15361
|
/* @__PURE__ */ n("span", { className: Se.title, children: e.title }),
|
|
15362
15362
|
se(e.amount) && !t && /* @__PURE__ */ n("span", { className: Se.amount, children: e.amount })
|
|
15363
15363
|
] }),
|
|
@@ -15388,7 +15388,7 @@ const Se = {
|
|
|
15388
15388
|
{
|
|
15389
15389
|
type: "button",
|
|
15390
15390
|
onClick: () => a(l.id),
|
|
15391
|
-
className:
|
|
15391
|
+
className: h(Se.card, Se.cardInteractive),
|
|
15392
15392
|
children: /* @__PURE__ */ n(Li, { item: l, withActions: o })
|
|
15393
15393
|
}
|
|
15394
15394
|
) : /* @__PURE__ */ n("div", { className: Se.card, children: /* @__PURE__ */ n(Li, { item: l, withActions: o }) }),
|
|
@@ -15460,18 +15460,18 @@ const v0 = ({
|
|
|
15460
15460
|
statItems: f,
|
|
15461
15461
|
stats: m,
|
|
15462
15462
|
banner: g,
|
|
15463
|
-
"data-testid":
|
|
15463
|
+
"data-testid": p = "record-header"
|
|
15464
15464
|
}) => {
|
|
15465
15465
|
const { ref: x, width: y } = Vt(), b = !oa(y, y0), N = e.length > 0 || !!t, k = !!(f && f.length > 0), A = !!s || se(l) || se(o) || se(c) || se(d) || k;
|
|
15466
|
-
return /* @__PURE__ */ u("div", { ref: x, "data-testid":
|
|
15467
|
-
N && /* @__PURE__ */ u("div", { "data-testid": `${
|
|
15466
|
+
return /* @__PURE__ */ u("div", { ref: x, "data-testid": p, "data-size": b ? "narrow" : "wide", className: ne.base, children: [
|
|
15467
|
+
N && /* @__PURE__ */ u("div", { "data-testid": `${p}-band`, className: ne.band, children: [
|
|
15468
15468
|
t && /* @__PURE__ */ n(
|
|
15469
15469
|
"button",
|
|
15470
15470
|
{
|
|
15471
15471
|
type: "button",
|
|
15472
15472
|
onClick: t,
|
|
15473
15473
|
"aria-label": a,
|
|
15474
|
-
"data-testid": `${
|
|
15474
|
+
"data-testid": `${p}-back`,
|
|
15475
15475
|
className: ne.back,
|
|
15476
15476
|
children: /* @__PURE__ */ n(I, { icon: "lucide:chevron-left", className: ne.backIcon, "aria-hidden": "true" })
|
|
15477
15477
|
}
|
|
@@ -15480,7 +15480,7 @@ const v0 = ({
|
|
|
15480
15480
|
eo,
|
|
15481
15481
|
{
|
|
15482
15482
|
separator: "/",
|
|
15483
|
-
"data-testid": `${
|
|
15483
|
+
"data-testid": `${p}-breadcrumb`,
|
|
15484
15484
|
classNames: { base: ne.breadcrumb, list: ne.breadcrumbList },
|
|
15485
15485
|
itemClasses: {
|
|
15486
15486
|
base: ne.crumbBase,
|
|
@@ -15491,7 +15491,7 @@ const v0 = ({
|
|
|
15491
15491
|
to,
|
|
15492
15492
|
{
|
|
15493
15493
|
as: Dl,
|
|
15494
|
-
"data-testid": `${
|
|
15494
|
+
"data-testid": `${p}-crumb-${$}`,
|
|
15495
15495
|
isDisabled: !w.onClick && $ < e.length - 1,
|
|
15496
15496
|
onPress: w.onClick ? () => w.onClick?.() : void 0,
|
|
15497
15497
|
children: w.label
|
|
@@ -15501,17 +15501,17 @@ const v0 = ({
|
|
|
15501
15501
|
}
|
|
15502
15502
|
)
|
|
15503
15503
|
] }),
|
|
15504
|
-
/* @__PURE__ */ u("div", { className:
|
|
15504
|
+
/* @__PURE__ */ u("div", { className: h(ne.body, b ? ne.bodyNarrow : ne.bodyWide), children: [
|
|
15505
15505
|
/* @__PURE__ */ u("div", { className: ne.identity, children: [
|
|
15506
15506
|
/* @__PURE__ */ n(
|
|
15507
15507
|
"h1",
|
|
15508
15508
|
{
|
|
15509
|
-
"data-testid": `${
|
|
15510
|
-
className:
|
|
15509
|
+
"data-testid": `${p}-title`,
|
|
15510
|
+
className: h(ne.title, b ? ne.titleNarrow : ne.titleWide),
|
|
15511
15511
|
children: r
|
|
15512
15512
|
}
|
|
15513
15513
|
),
|
|
15514
|
-
i && i.length > 0 && /* @__PURE__ */ n("ul", { "data-testid": `${
|
|
15514
|
+
i && i.length > 0 && /* @__PURE__ */ n("ul", { "data-testid": `${p}-meta`, className: ne.meta, children: i.map((w, $) => /* @__PURE__ */ u("li", { className: ne.metaLine, children: [
|
|
15515
15515
|
w.icon != null && /* @__PURE__ */ n("span", { "aria-hidden": "true", className: ne.metaIcon, children: w.icon }),
|
|
15516
15516
|
/* @__PURE__ */ n("span", { className: ne.metaText, children: w.text })
|
|
15517
15517
|
] }, $)) })
|
|
@@ -15519,42 +15519,42 @@ const v0 = ({
|
|
|
15519
15519
|
A && /* @__PURE__ */ u(
|
|
15520
15520
|
"div",
|
|
15521
15521
|
{
|
|
15522
|
-
"data-testid": `${
|
|
15523
|
-
className:
|
|
15522
|
+
"data-testid": `${p}-money`,
|
|
15523
|
+
className: h(ne.money, b ? ne.moneyNarrow : ne.moneyWide),
|
|
15524
15524
|
children: [
|
|
15525
15525
|
s && /* @__PURE__ */ n("div", { className: ne.amountLabel, children: s }),
|
|
15526
15526
|
se(l) && /* @__PURE__ */ n(
|
|
15527
15527
|
"div",
|
|
15528
15528
|
{
|
|
15529
|
-
"data-testid": `${
|
|
15530
|
-
className:
|
|
15529
|
+
"data-testid": `${p}-amount`,
|
|
15530
|
+
className: h(ne.amount, b ? ne.amountNarrow : ne.amountWide),
|
|
15531
15531
|
children: l
|
|
15532
15532
|
}
|
|
15533
15533
|
),
|
|
15534
15534
|
se(o) && /* @__PURE__ */ n("div", { className: ne.amountCaption, children: o }),
|
|
15535
|
-
se(c) && /* @__PURE__ */ n("div", { "data-testid": `${
|
|
15535
|
+
se(c) && /* @__PURE__ */ n("div", { "data-testid": `${p}-record-id`, className: ne.recordId, children: c }),
|
|
15536
15536
|
se(d) && /* @__PURE__ */ n(
|
|
15537
15537
|
"div",
|
|
15538
15538
|
{
|
|
15539
|
-
"data-testid": `${
|
|
15540
|
-
className:
|
|
15539
|
+
"data-testid": `${p}-chips`,
|
|
15540
|
+
className: h(ne.chips, b ? ne.chipsNarrow : ne.chipsWide),
|
|
15541
15541
|
children: d
|
|
15542
15542
|
}
|
|
15543
15543
|
),
|
|
15544
|
-
k && /* @__PURE__ */ n("dl", { "data-testid": `${
|
|
15544
|
+
k && /* @__PURE__ */ n("dl", { "data-testid": `${p}-stat-items`, className: ne.statItems, children: f?.map((w, $) => /* @__PURE__ */ u(
|
|
15545
15545
|
"div",
|
|
15546
15546
|
{
|
|
15547
|
-
"data-testid": `${
|
|
15548
|
-
className:
|
|
15547
|
+
"data-testid": `${p}-stat-${$}`,
|
|
15548
|
+
className: h(
|
|
15549
15549
|
ne.stat,
|
|
15550
15550
|
b ? ne.statNarrow : ne.statWide
|
|
15551
15551
|
),
|
|
15552
15552
|
children: [
|
|
15553
|
-
/* @__PURE__ */ n("dt", { "data-testid": `${
|
|
15553
|
+
/* @__PURE__ */ n("dt", { "data-testid": `${p}-stat-${$}-label`, className: ne.statLabel, children: w.label }),
|
|
15554
15554
|
/* @__PURE__ */ n(
|
|
15555
15555
|
"dd",
|
|
15556
15556
|
{
|
|
15557
|
-
"data-testid": `${
|
|
15557
|
+
"data-testid": `${p}-stat-${$}-value`,
|
|
15558
15558
|
className: ne.statValue,
|
|
15559
15559
|
style: w.tone ? { color: et[w.tone].fg } : void 0,
|
|
15560
15560
|
children: w.value
|
|
@@ -15568,8 +15568,8 @@ const v0 = ({
|
|
|
15568
15568
|
}
|
|
15569
15569
|
)
|
|
15570
15570
|
] }),
|
|
15571
|
-
se(m) && /* @__PURE__ */ n("div", { "data-testid": `${
|
|
15572
|
-
se(g) && /* @__PURE__ */ n("div", { "data-testid": `${
|
|
15571
|
+
se(m) && /* @__PURE__ */ n("div", { "data-testid": `${p}-stats`, className: b ? ne.statsNarrow : ne.statsWide, children: m }),
|
|
15572
|
+
se(g) && /* @__PURE__ */ n("div", { "data-testid": `${p}-banner`, children: g })
|
|
15573
15573
|
] });
|
|
15574
15574
|
};
|
|
15575
15575
|
v0.displayName = "RecordHeader";
|
|
@@ -15591,7 +15591,7 @@ const w0 = 50, Yt = {
|
|
|
15591
15591
|
ref: r,
|
|
15592
15592
|
"data-testid": a,
|
|
15593
15593
|
"data-layout": l ? "split" : "stacked",
|
|
15594
|
-
className:
|
|
15594
|
+
className: h(Yt.base, l ? Yt.split : Yt.stacked),
|
|
15595
15595
|
children: l ? [o, c] : [c, o]
|
|
15596
15596
|
}
|
|
15597
15597
|
);
|
|
@@ -15687,9 +15687,9 @@ const ut = {
|
|
|
15687
15687
|
base: ut.base,
|
|
15688
15688
|
tabList: ut.tabList,
|
|
15689
15689
|
cursor: ut.cursor,
|
|
15690
|
-
tab:
|
|
15690
|
+
tab: h(ut.tab, f.tab, (o || c) && ut.tabStill),
|
|
15691
15691
|
// Size first: tailwind-merge drops a `leading-*` that precedes a font size.
|
|
15692
|
-
tabContent:
|
|
15692
|
+
tabContent: h(f.tabContent, ut.tabContent)
|
|
15693
15693
|
},
|
|
15694
15694
|
children: e.map((m) => {
|
|
15695
15695
|
const g = m["data-testid"] ?? `${l}-${m.key}`;
|
|
@@ -15699,13 +15699,13 @@ const ut = {
|
|
|
15699
15699
|
id: El(m.key, d),
|
|
15700
15700
|
"aria-controls": Fl(m.key, d),
|
|
15701
15701
|
"data-testid": g,
|
|
15702
|
-
title: /* @__PURE__ */ u("span", { className:
|
|
15702
|
+
title: /* @__PURE__ */ u("span", { className: h(ut.title, f.title), children: [
|
|
15703
15703
|
se(m.icon) && /* @__PURE__ */ n(
|
|
15704
15704
|
"span",
|
|
15705
15705
|
{
|
|
15706
15706
|
"aria-hidden": "true",
|
|
15707
15707
|
"data-testid": `${g}-icon`,
|
|
15708
|
-
className:
|
|
15708
|
+
className: h(ut.icon, f.icon),
|
|
15709
15709
|
children: m.icon
|
|
15710
15710
|
}
|
|
15711
15711
|
),
|
|
@@ -15714,7 +15714,7 @@ const ut = {
|
|
|
15714
15714
|
"span",
|
|
15715
15715
|
{
|
|
15716
15716
|
"data-testid": `${g}-count`,
|
|
15717
|
-
className:
|
|
15717
|
+
className: h(f.count, ut.count),
|
|
15718
15718
|
children: m.count
|
|
15719
15719
|
}
|
|
15720
15720
|
)
|
|
@@ -15783,7 +15783,7 @@ const ve = {
|
|
|
15783
15783
|
{
|
|
15784
15784
|
type: "button",
|
|
15785
15785
|
onClick: () => r(s.id),
|
|
15786
|
-
className:
|
|
15786
|
+
className: h(ve.row, ve.rowInteractive),
|
|
15787
15787
|
children: /* @__PURE__ */ n(_i, { row: s, testId: l })
|
|
15788
15788
|
}
|
|
15789
15789
|
) : /* @__PURE__ */ n("div", { className: ve.row, children: /* @__PURE__ */ n(_i, { row: s, testId: l }) }) }, s.id);
|
|
@@ -15825,7 +15825,7 @@ const He = {
|
|
|
15825
15825
|
"data-testid": a = "activity-timeline"
|
|
15826
15826
|
}) => e.length === 0 ? /* @__PURE__ */ n("div", { "data-testid": a, children: t != null && /* @__PURE__ */ n("div", { "data-testid": `${a}-empty`, className: He.empty, children: t }) }) : /* @__PURE__ */ n("ol", { "data-testid": a, className: He.list, children: e.map((r, i) => {
|
|
15827
15827
|
const s = i === e.length - 1, l = `${a}-event-${r.id}`;
|
|
15828
|
-
return /* @__PURE__ */ u("li", { "data-testid": l, className:
|
|
15828
|
+
return /* @__PURE__ */ u("li", { "data-testid": l, className: h(He.event, !s && He.eventSpaced), children: [
|
|
15829
15829
|
/* @__PURE__ */ u("span", { "aria-hidden": "true", className: He.rail, children: [
|
|
15830
15830
|
/* @__PURE__ */ n("span", { className: He.dot, style: { backgroundColor: et[r.tone].fg } }),
|
|
15831
15831
|
!s && /* @__PURE__ */ n("span", { "data-testid": `${l}-connector`, className: He.connector })
|
|
@@ -15892,7 +15892,7 @@ const Fe = {
|
|
|
15892
15892
|
"div",
|
|
15893
15893
|
{
|
|
15894
15894
|
"data-testid": `${i}-empty`,
|
|
15895
|
-
className:
|
|
15895
|
+
className: h(Fe.empty, !l && Fe.emptyHeadless),
|
|
15896
15896
|
children: r
|
|
15897
15897
|
}
|
|
15898
15898
|
) : /* @__PURE__ */ n("ul", { className: Fe.list, children: a.map((o, c) => {
|
|
@@ -15901,7 +15901,7 @@ const Fe = {
|
|
|
15901
15901
|
"li",
|
|
15902
15902
|
{
|
|
15903
15903
|
"data-testid": d,
|
|
15904
|
-
className:
|
|
15904
|
+
className: h(
|
|
15905
15905
|
Fe.item,
|
|
15906
15906
|
c === 0 && !l && Fe.itemFirstHeadless
|
|
15907
15907
|
),
|
|
@@ -15910,7 +15910,7 @@ const Fe = {
|
|
|
15910
15910
|
{
|
|
15911
15911
|
type: "button",
|
|
15912
15912
|
onClick: o.onSelect,
|
|
15913
|
-
className:
|
|
15913
|
+
className: h(Fe.row, Fe.rowInteractive),
|
|
15914
15914
|
children: /* @__PURE__ */ n(Mi, { row: o, testId: d })
|
|
15915
15915
|
}
|
|
15916
15916
|
) : /* @__PURE__ */ n("div", { className: Fe.row, children: /* @__PURE__ */ n(Mi, { row: o, testId: d }) })
|
|
@@ -15937,34 +15937,34 @@ const F0 = ({
|
|
|
15937
15937
|
surface: f = "card",
|
|
15938
15938
|
className: m,
|
|
15939
15939
|
children: g,
|
|
15940
|
-
"data-testid":
|
|
15940
|
+
"data-testid": p = "record-card"
|
|
15941
15941
|
}) => {
|
|
15942
15942
|
const x = Je(), y = se(e);
|
|
15943
15943
|
return /* @__PURE__ */ u(
|
|
15944
15944
|
"section",
|
|
15945
15945
|
{
|
|
15946
|
-
"data-testid":
|
|
15946
|
+
"data-testid": p,
|
|
15947
15947
|
"data-variant": c,
|
|
15948
15948
|
"data-surface": f,
|
|
15949
15949
|
role: y ? "group" : void 0,
|
|
15950
15950
|
"aria-labelledby": y ? x : void 0,
|
|
15951
|
-
className:
|
|
15951
|
+
className: h(dt.base, Ah[f], m),
|
|
15952
15952
|
children: [
|
|
15953
|
-
y && /* @__PURE__ */ u("div", { "data-testid": `${
|
|
15953
|
+
y && /* @__PURE__ */ u("div", { "data-testid": `${p}-header`, className: Dh[c], children: [
|
|
15954
15954
|
se(a) && /* @__PURE__ */ n("span", { "aria-hidden": "true", className: dt.icon, children: a }),
|
|
15955
15955
|
/* @__PURE__ */ n(t, { id: x, className: dt.title, children: e }),
|
|
15956
|
-
se(r) && /* @__PURE__ */ n("span", { "data-testid": `${
|
|
15956
|
+
se(r) && /* @__PURE__ */ n("span", { "data-testid": `${p}-count`, className: dt.count, children: r }),
|
|
15957
15957
|
i,
|
|
15958
|
-
se(s) && /* @__PURE__ */ n("span", { "data-testid": `${
|
|
15958
|
+
se(s) && /* @__PURE__ */ n("span", { "data-testid": `${p}-action`, className: dt.action, children: s })
|
|
15959
15959
|
] }),
|
|
15960
|
-
/* @__PURE__ */ u("div", { "data-testid": `${
|
|
15961
|
-
se(l) && /* @__PURE__ */ n("p", { "data-testid": `${
|
|
15960
|
+
/* @__PURE__ */ u("div", { "data-testid": `${p}-body`, className: Eh[c][d], children: [
|
|
15961
|
+
se(l) && /* @__PURE__ */ n("p", { "data-testid": `${p}-description`, className: dt.description, children: l }),
|
|
15962
15962
|
g,
|
|
15963
15963
|
se(o) && /* @__PURE__ */ n(
|
|
15964
15964
|
"div",
|
|
15965
15965
|
{
|
|
15966
|
-
"data-testid": `${
|
|
15967
|
-
className:
|
|
15966
|
+
"data-testid": `${p}-footer`,
|
|
15967
|
+
className: h(
|
|
15968
15968
|
dt.footer,
|
|
15969
15969
|
se(g) ? dt.footerAfterContent : dt.footerAfterDescription
|
|
15970
15970
|
),
|
|
@@ -15986,7 +15986,7 @@ const L0 = {
|
|
|
15986
15986
|
children: a,
|
|
15987
15987
|
"data-testid": r = "card-stack",
|
|
15988
15988
|
...i
|
|
15989
|
-
}) => /* @__PURE__ */ n("div", { ...i, "data-testid": r, "data-layout": e, className:
|
|
15989
|
+
}) => /* @__PURE__ */ n("div", { ...i, "data-testid": r, "data-layout": e, className: h(L0[e], t), children: a });
|
|
15990
15990
|
_0.displayName = "CardStack";
|
|
15991
15991
|
const ba = {
|
|
15992
15992
|
list: "m-0 divide-y divide-pos-hair",
|
|
@@ -16004,7 +16004,7 @@ const ba = {
|
|
|
16004
16004
|
"div",
|
|
16005
16005
|
{
|
|
16006
16006
|
"data-testid": `${a}-row-${r.id ?? i}`,
|
|
16007
|
-
className:
|
|
16007
|
+
className: h(ba.row, M0[t]),
|
|
16008
16008
|
children: [
|
|
16009
16009
|
/* @__PURE__ */ n("dt", { className: ba.label, children: r.label }),
|
|
16010
16010
|
/* @__PURE__ */ n("dd", { className: ba.value, children: r.value })
|
|
@@ -16107,9 +16107,9 @@ const O0 = 37.5, Me = {
|
|
|
16107
16107
|
children: [
|
|
16108
16108
|
e.map((f) => {
|
|
16109
16109
|
const m = `${r}-row-${f.id}`;
|
|
16110
|
-
return /* @__PURE__ */ u("div", { "data-testid": m, className:
|
|
16111
|
-
/* @__PURE__ */ n("span", { "data-testid": `${m}-label`, className:
|
|
16112
|
-
/* @__PURE__ */ n("span", { "data-testid": `${m}-note`, className:
|
|
16110
|
+
return /* @__PURE__ */ u("div", { "data-testid": m, className: h(o, Me.row), children: [
|
|
16111
|
+
/* @__PURE__ */ n("span", { "data-testid": `${m}-label`, className: h(c, Me.label), children: f.label }),
|
|
16112
|
+
/* @__PURE__ */ n("span", { "data-testid": `${m}-note`, className: h(d, Me.note), children: f.note }),
|
|
16113
16113
|
/* @__PURE__ */ n(
|
|
16114
16114
|
"span",
|
|
16115
16115
|
{
|
|
@@ -16121,8 +16121,8 @@ const O0 = 37.5, Me = {
|
|
|
16121
16121
|
)
|
|
16122
16122
|
] }, f.id);
|
|
16123
16123
|
}),
|
|
16124
|
-
/* @__PURE__ */ n("div", { className: Me.totalRule, children: /* @__PURE__ */ u("div", { "data-testid": `${r}-total`, className:
|
|
16125
|
-
/* @__PURE__ */ n("span", { className:
|
|
16124
|
+
/* @__PURE__ */ n("div", { className: Me.totalRule, children: /* @__PURE__ */ u("div", { "data-testid": `${r}-total`, className: h(o, Me.totalRow), children: [
|
|
16125
|
+
/* @__PURE__ */ n("span", { className: h(c, Me.totalLabel), children: t.label }),
|
|
16126
16126
|
/* @__PURE__ */ n("span", { "data-testid": `${r}-total-value`, className: Me.totalValue, children: t.value })
|
|
16127
16127
|
] }) }),
|
|
16128
16128
|
se(a) && /* @__PURE__ */ n("div", { "data-testid": `${r}-memo`, className: Me.memo, children: a })
|
|
@@ -16149,7 +16149,7 @@ const Tn = {
|
|
|
16149
16149
|
"span",
|
|
16150
16150
|
{
|
|
16151
16151
|
"data-testid": i,
|
|
16152
|
-
className:
|
|
16152
|
+
className: h(Tn.base, I0[e]),
|
|
16153
16153
|
style: ca(t),
|
|
16154
16154
|
children: [
|
|
16155
16155
|
r,
|