@veevarts/design-system 1.17.0-alpha.5 → 1.17.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as r, jsxs as f, Fragment as
|
|
2
|
-
import { HeroUIProvider as ts, Button as yn, Card as ve, CardBody as Ce, DatePicker as gr, Popover as jt, PopoverTrigger as Ht, PopoverContent as qt, ScrollShadow as ns, TimeInput as rs, Select as as, Input as
|
|
1
|
+
import { jsx as r, jsxs as f, Fragment as xe } from "react/jsx-runtime";
|
|
2
|
+
import { HeroUIProvider as ts, Button as yn, Card as ve, CardBody as Ce, DatePicker as gr, Popover as jt, PopoverTrigger as Ht, PopoverContent as qt, ScrollShadow as ns, TimeInput as rs, Select as as, Input as ye, cn as p, SelectItem as st, Alert as Oe, Tooltip as Ve, Divider as Xe, Dropdown as Pn, DropdownTrigger as On, DropdownMenu as zn, DropdownItem as Tt, ButtonGroup as is, useInput as ss, NumberInput as pa, CardHeader as ga, Image as ba, CardFooter as ls, Chip as Pe, Skeleton as te, Autocomplete as os, AutocompleteItem as cs, Checkbox as Rn, Modal as Bn, ModalContent as Vn, ModalHeader as Un, ModalBody as jn, ModalFooter as xa, Accordion as Hn, AccordionItem as qn, Tabs as ya, Tab as vn, DropdownSection as br, Spinner as va, Switch as wa, CheckboxGroup as ds, RadioGroup as us, Radio as fs, Table as ms, TableHeader as hs, TableColumn as ps, TableBody as gs, Textarea as bs } from "@heroui/react";
|
|
3
3
|
export * from "@heroui/react";
|
|
4
4
|
import Y, { forwardRef as ht, useState as H, useEffect as Le, createElement as wn, useMemo as ce, useRef as Ue, useId as Na, useReducer as xs, useCallback as J, isValidElement as ys } from "react";
|
|
5
5
|
import { Clock3 as vs, Globe as xr, User as yr, Heading as Ca, Check as ka, ListTodo as Sa, ListOrdered as $a, List as Wn, AlignJustify as ws, AlignRight as Ns, AlignCenter as Cs, AlignLeft as Aa, CornerDownLeft as ks, Redo2 as Ss, Undo2 as $s, Eraser as vr, Minus as As, Quote as Ds, CodeSquare as Es, FileText as Fs, Link2 as Ls, Highlighter as Da, Palette as Ea, Code as Ms, Underline as Is, Strikethrough as _s, Italic as Ts, Bold as Ps, X as Os, ZoomOut as zs, ZoomIn as Rs, Link as Bs, Clock as wr, CheckCircle as Vs, AlertCircle as Us, Plus as Yn, CircleDollarSign as Fa } from "lucide-react";
|
|
@@ -140,7 +140,7 @@ const Se = {
|
|
|
140
140
|
Object.fromEntries(
|
|
141
141
|
Object.entries(Ma).map(([e, t]) => [e.replace(/^--/, ""), t])
|
|
142
142
|
);
|
|
143
|
-
function
|
|
143
|
+
function Qm({
|
|
144
144
|
scope: e = ".acct",
|
|
145
145
|
fontFamily: t = "'NeueMontreal', system-ui, sans-serif"
|
|
146
146
|
} = {}) {
|
|
@@ -153,7 +153,7 @@ ${n}${a}
|
|
|
153
153
|
}
|
|
154
154
|
`;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Zm({ children: e }) {
|
|
157
157
|
return /* @__PURE__ */ r(ts, { children: e });
|
|
158
158
|
}
|
|
159
159
|
function yl(e, t) {
|
|
@@ -1935,7 +1935,7 @@ const Je = ht(
|
|
|
1935
1935
|
}
|
|
1936
1936
|
);
|
|
1937
1937
|
Je.displayName = "Select";
|
|
1938
|
-
function
|
|
1938
|
+
function Xm({
|
|
1939
1939
|
state: e,
|
|
1940
1940
|
onSubmit: t,
|
|
1941
1941
|
onRemove: n,
|
|
@@ -1970,7 +1970,7 @@ function Zm({
|
|
|
1970
1970
|
return /* @__PURE__ */ f("div", { "data-testid": d, className: "flex flex-col gap-1", children: [
|
|
1971
1971
|
/* @__PURE__ */ f("div", { className: "flex items-end gap-2", children: [
|
|
1972
1972
|
/* @__PURE__ */ r(
|
|
1973
|
-
|
|
1973
|
+
ye,
|
|
1974
1974
|
{
|
|
1975
1975
|
"data-testid": `${d}-input`,
|
|
1976
1976
|
label: s,
|
|
@@ -2113,7 +2113,7 @@ function Yo({
|
|
|
2113
2113
|
}
|
|
2114
2114
|
);
|
|
2115
2115
|
}
|
|
2116
|
-
function
|
|
2116
|
+
function Jm({
|
|
2117
2117
|
logo: e,
|
|
2118
2118
|
languages: t = [],
|
|
2119
2119
|
selectedLanguage: n,
|
|
@@ -2161,7 +2161,7 @@ function Xm({
|
|
|
2161
2161
|
}
|
|
2162
2162
|
);
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2164
|
+
function eh(e) {
|
|
2165
2165
|
return /* @__PURE__ */ r("div", { className: "min-h-screen flex flex-col", children: /* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center p-12", children: /* @__PURE__ */ r(
|
|
2166
2166
|
Oe,
|
|
2167
2167
|
{
|
|
@@ -2421,7 +2421,7 @@ const hi = Y.forwardRef(
|
|
|
2421
2421
|
}
|
|
2422
2422
|
);
|
|
2423
2423
|
hi.displayName = "Stepper";
|
|
2424
|
-
function
|
|
2424
|
+
function th(e) {
|
|
2425
2425
|
return /* @__PURE__ */ r("div", { className: "min-h-screen flex flex-col", children: /* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center p-12", children: /* @__PURE__ */ r(
|
|
2426
2426
|
Oe,
|
|
2427
2427
|
{
|
|
@@ -2460,7 +2460,7 @@ function Qo(e, t, n = "en-US") {
|
|
|
2460
2460
|
function Vr(e, t, n, a) {
|
|
2461
2461
|
return Qo(e - t, n, a);
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2463
|
+
function nh() {
|
|
2464
2464
|
return /* @__PURE__ */ f(
|
|
2465
2465
|
"footer",
|
|
2466
2466
|
{
|
|
@@ -2473,7 +2473,7 @@ function th() {
|
|
|
2473
2473
|
}
|
|
2474
2474
|
);
|
|
2475
2475
|
}
|
|
2476
|
-
const
|
|
2476
|
+
const rh = (e) => {
|
|
2477
2477
|
const t = ce(
|
|
2478
2478
|
() => JSON.stringify({ allItems: e.allItems, selected: e.selected }),
|
|
2479
2479
|
[e.allItems, e.selected]
|
|
@@ -3149,7 +3149,7 @@ function sc({ value: e, onChange: t, onApply: n, placeholder: a = "#000000" }) {
|
|
|
3149
3149
|
return /* @__PURE__ */ f("div", { className: "space-y-2", children: [
|
|
3150
3150
|
/* @__PURE__ */ f("div", { className: "flex gap-2", children: [
|
|
3151
3151
|
/* @__PURE__ */ r(
|
|
3152
|
-
|
|
3152
|
+
ye,
|
|
3153
3153
|
{
|
|
3154
3154
|
type: "text",
|
|
3155
3155
|
value: e,
|
|
@@ -3235,7 +3235,7 @@ function jr({ editor: e, type: t, allowCustomColor: n = !0, label: a, isDisabled
|
|
|
3235
3235
|
)
|
|
3236
3236
|
] }),
|
|
3237
3237
|
/* @__PURE__ */ r(tc, { colors: d, onColorSelect: u }),
|
|
3238
|
-
n && /* @__PURE__ */ f(
|
|
3238
|
+
n && /* @__PURE__ */ f(xe, { children: [
|
|
3239
3239
|
/* @__PURE__ */ r(Xe, {}),
|
|
3240
3240
|
/* @__PURE__ */ f("div", { children: [
|
|
3241
3241
|
/* @__PURE__ */ r("p", { className: "text-xs font-semibold mb-2 text-default-700", children: "Custom Color" }),
|
|
@@ -3353,7 +3353,7 @@ function oc({ editor: e, isDisabled: t = !1 }) {
|
|
|
3353
3353
|
) }),
|
|
3354
3354
|
/* @__PURE__ */ r(qt, { children: /* @__PURE__ */ f("div", { className: "flex flex-col gap-3 p-3 w-72", children: [
|
|
3355
3355
|
/* @__PURE__ */ r(
|
|
3356
|
-
|
|
3356
|
+
ye,
|
|
3357
3357
|
{
|
|
3358
3358
|
size: "sm",
|
|
3359
3359
|
variant: "bordered",
|
|
@@ -3368,7 +3368,7 @@ function oc({ editor: e, isDisabled: t = !1 }) {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
),
|
|
3370
3370
|
/* @__PURE__ */ r(
|
|
3371
|
-
|
|
3371
|
+
ye,
|
|
3372
3372
|
{
|
|
3373
3373
|
size: "sm",
|
|
3374
3374
|
variant: "bordered",
|
|
@@ -3560,7 +3560,7 @@ function mc({
|
|
|
3560
3560
|
if (!e) return null;
|
|
3561
3561
|
const u = t.map((M) => St(M)), h = u.some((M) => ["bold", "italic", "strike", "underline", "code"].includes(M)), b = u.some((M) => ["textColor", "highlight"].includes(M)), m = u.includes("heading"), w = u.includes("textAlign"), v = u.some((M) => ["bulletList", "orderedList", "taskList"].includes(M)), x = u.includes("blockquote"), N = u.includes("codeBlock"), y = u.includes("link"), $ = u.includes("horizontalRule"), C = u.some((M) => ["undo", "redo"].includes(M)), S = n !== void 0 && a !== void 0;
|
|
3562
3562
|
return /* @__PURE__ */ r("div", { className: `w-full p-2 bg-background border-b border-divider ${i ? "sticky top-0 z-10" : ""} ${s || ""}`, children: /* @__PURE__ */ f("div", { className: "flex flex-row flex-wrap gap-2 w-full items-center", children: [
|
|
3563
|
-
h && /* @__PURE__ */ f(
|
|
3563
|
+
h && /* @__PURE__ */ f(xe, { children: [
|
|
3564
3564
|
/* @__PURE__ */ r(
|
|
3565
3565
|
fc,
|
|
3566
3566
|
{
|
|
@@ -3571,7 +3571,7 @@ function mc({
|
|
|
3571
3571
|
),
|
|
3572
3572
|
(b || m || w || v || x || N || y || $ || C || S) && /* @__PURE__ */ r(rt, {})
|
|
3573
3573
|
] }),
|
|
3574
|
-
b && /* @__PURE__ */ f(
|
|
3574
|
+
b && /* @__PURE__ */ f(xe, { children: [
|
|
3575
3575
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-1", children: [
|
|
3576
3576
|
u.includes("textColor") && /* @__PURE__ */ r(
|
|
3577
3577
|
jr,
|
|
@@ -3594,11 +3594,11 @@ function mc({
|
|
|
3594
3594
|
] }),
|
|
3595
3595
|
(m || w || v || x || N || y || $ || C || S) && /* @__PURE__ */ r(rt, {})
|
|
3596
3596
|
] }),
|
|
3597
|
-
m && /* @__PURE__ */ f(
|
|
3597
|
+
m && /* @__PURE__ */ f(xe, { children: [
|
|
3598
3598
|
/* @__PURE__ */ r(Jo, { editor: e }),
|
|
3599
3599
|
(w || v || x || N || y || $ || C || S) && /* @__PURE__ */ r(rt, {})
|
|
3600
3600
|
] }),
|
|
3601
|
-
w && /* @__PURE__ */ f(
|
|
3601
|
+
w && /* @__PURE__ */ f(xe, { children: [
|
|
3602
3602
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-1", children: ["left", "center", "right", "justify"].map((M) => {
|
|
3603
3603
|
const I = ic[M], D = e.isActive({ textAlign: M });
|
|
3604
3604
|
return /* @__PURE__ */ r(
|
|
@@ -3618,7 +3618,7 @@ function mc({
|
|
|
3618
3618
|
}) }),
|
|
3619
3619
|
(v || x || N || y || $ || C || S) && /* @__PURE__ */ r(rt, {})
|
|
3620
3620
|
] }),
|
|
3621
|
-
v && /* @__PURE__ */ f(
|
|
3621
|
+
v && /* @__PURE__ */ f(xe, { children: [
|
|
3622
3622
|
/* @__PURE__ */ r(
|
|
3623
3623
|
ec,
|
|
3624
3624
|
{
|
|
@@ -3630,7 +3630,7 @@ function mc({
|
|
|
3630
3630
|
),
|
|
3631
3631
|
(x || N || y || $ || C || S) && /* @__PURE__ */ r(rt, {})
|
|
3632
3632
|
] }),
|
|
3633
|
-
(x || N || y || $) && /* @__PURE__ */ f(
|
|
3633
|
+
(x || N || y || $) && /* @__PURE__ */ f(xe, { children: [
|
|
3634
3634
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-1", children: [
|
|
3635
3635
|
x && /* @__PURE__ */ r(
|
|
3636
3636
|
at,
|
|
@@ -3670,7 +3670,7 @@ function mc({
|
|
|
3670
3670
|
] }),
|
|
3671
3671
|
(C || S) && /* @__PURE__ */ r(rt, {})
|
|
3672
3672
|
] }),
|
|
3673
|
-
C && /* @__PURE__ */ f(
|
|
3673
|
+
C && /* @__PURE__ */ f(xe, { children: [
|
|
3674
3674
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-1", children: [
|
|
3675
3675
|
u.includes("undo") && /* @__PURE__ */ r(
|
|
3676
3676
|
at,
|
|
@@ -4514,7 +4514,7 @@ const dn = ({
|
|
|
4514
4514
|
}) => /* @__PURE__ */ f("div", { className: "flex items-center gap-2 text-sm text-gray-600", "data-testid": n, children: [
|
|
4515
4515
|
/* @__PURE__ */ r(U, { icon: e, width: 20, className: "text-default-500" }),
|
|
4516
4516
|
/* @__PURE__ */ r("span", { children: t })
|
|
4517
|
-
] }),
|
|
4517
|
+
] }), ah = ({
|
|
4518
4518
|
classes: e = "",
|
|
4519
4519
|
name: t,
|
|
4520
4520
|
imageUrl: n,
|
|
@@ -4637,7 +4637,7 @@ function qr(e, t = "en-US", n = "USD") {
|
|
|
4637
4637
|
return console.warn(`Invalid currency formatting: ${a}`), `${n} ${e.toFixed(2)}`;
|
|
4638
4638
|
}
|
|
4639
4639
|
}
|
|
4640
|
-
function
|
|
4640
|
+
function ih(e) {
|
|
4641
4641
|
const t = e.replace(/[^\d.,-]/g, ""), n = t.match(/,\d{1,2}$/);
|
|
4642
4642
|
let a;
|
|
4643
4643
|
n ? a = t.replace(/\./g, "").replace(",", ".") : a = t.replace(/,/g, "");
|
|
@@ -6423,10 +6423,10 @@ function ld(e = {}) {
|
|
|
6423
6423
|
s._state.mount || (s._setValid(), s._state.mount = !0), s._state.watch && (s._state.watch = !1, s._subjects.state.next({ ...s._formState })), s._removeUnmounted();
|
|
6424
6424
|
}), t.current.formState = Y.useMemo(() => Ni(a, s), [s, a]), t.current;
|
|
6425
6425
|
}
|
|
6426
|
-
function
|
|
6426
|
+
function sh(e, t = 3) {
|
|
6427
6427
|
return e % 1 === 0 ? e.toString() : e.toFixed(t).replace(/\.?0+$/, "");
|
|
6428
6428
|
}
|
|
6429
|
-
function
|
|
6429
|
+
function lh(e, t = "en-US", n = "USD") {
|
|
6430
6430
|
try {
|
|
6431
6431
|
return new Intl.NumberFormat(t, {
|
|
6432
6432
|
style: "currency",
|
|
@@ -6438,7 +6438,7 @@ function sh(e, t = "en-US", n = "USD") {
|
|
|
6438
6438
|
return console.warn(`Invalid currency formatting: ${a}`), `${n} ${e.toFixed(2)}`;
|
|
6439
6439
|
}
|
|
6440
6440
|
}
|
|
6441
|
-
function
|
|
6441
|
+
function oh(e = "USD", t = "en-US") {
|
|
6442
6442
|
try {
|
|
6443
6443
|
return new Intl.NumberFormat(t, {
|
|
6444
6444
|
style: "currency",
|
|
@@ -6448,14 +6448,14 @@ function lh(e = "USD", t = "en-US") {
|
|
|
6448
6448
|
return "$";
|
|
6449
6449
|
}
|
|
6450
6450
|
}
|
|
6451
|
-
function
|
|
6451
|
+
function ch(e) {
|
|
6452
6452
|
const t = e.replace(/[^\d.,-]/g, ""), n = t.match(/,\d{1,2}$/);
|
|
6453
6453
|
let a;
|
|
6454
6454
|
n ? a = t.replace(/\./g, "").replace(",", ".") : a = t.replace(/,/g, "");
|
|
6455
6455
|
const i = parseFloat(a);
|
|
6456
6456
|
return isNaN(i) ? null : i;
|
|
6457
6457
|
}
|
|
6458
|
-
function
|
|
6458
|
+
function dh(e, t, n = 1e-3) {
|
|
6459
6459
|
const a = e - t, i = Math.abs(a) <= n;
|
|
6460
6460
|
return {
|
|
6461
6461
|
difference: a,
|
|
@@ -6672,7 +6672,7 @@ const dd = ({
|
|
|
6672
6672
|
renderEmpty: s
|
|
6673
6673
|
}) => {
|
|
6674
6674
|
if (s)
|
|
6675
|
-
return /* @__PURE__ */ r(
|
|
6675
|
+
return /* @__PURE__ */ r(xe, { children: s() });
|
|
6676
6676
|
const o = /* @__PURE__ */ f("div", { className: p("flex flex-col items-center justify-center py-8", i.content), children: [
|
|
6677
6677
|
/* @__PURE__ */ r(U, { icon: t, width: n, className: p("text-default-300 mb-4", i.icon) }),
|
|
6678
6678
|
/* @__PURE__ */ r("p", { className: p("text-default-500 text-sm text-center", i.message), children: e })
|
|
@@ -6951,7 +6951,7 @@ function yd() {
|
|
|
6951
6951
|
);
|
|
6952
6952
|
}
|
|
6953
6953
|
const vd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, Math.round(e * 100) / 100)) : 0, wd = (e) => e.fund !== null;
|
|
6954
|
-
function
|
|
6954
|
+
function uh({
|
|
6955
6955
|
assignments: e,
|
|
6956
6956
|
funds: t,
|
|
6957
6957
|
labels: n,
|
|
@@ -7111,7 +7111,7 @@ function dh({
|
|
|
7111
7111
|
isOpen: _,
|
|
7112
7112
|
labels: {
|
|
7113
7113
|
title: y.modifyAssignedFundsTitle,
|
|
7114
|
-
description: /* @__PURE__ */ f(
|
|
7114
|
+
description: /* @__PURE__ */ f(xe, { children: [
|
|
7115
7115
|
/* @__PURE__ */ r("p", { children: y.modifyAssignedFundsDescription }),
|
|
7116
7116
|
/* @__PURE__ */ r("p", { className: "mt-3", children: y.modifyAssignedFundsWarning })
|
|
7117
7117
|
] }),
|
|
@@ -7155,7 +7155,7 @@ function Nd({
|
|
|
7155
7155
|
"flex min-h-11 min-w-0 flex-1 items-center",
|
|
7156
7156
|
"gap-4"
|
|
7157
7157
|
),
|
|
7158
|
-
children: c.fund ? /* @__PURE__ */ f(
|
|
7158
|
+
children: c.fund ? /* @__PURE__ */ f(xe, { children: [
|
|
7159
7159
|
/* @__PURE__ */ f("span", { className: "rounded-full bg-zinc-100 px-4 py-1.5 text-sm text-zinc-950", children: [
|
|
7160
7160
|
c.fund.glCode,
|
|
7161
7161
|
" - ",
|
|
@@ -7188,7 +7188,7 @@ function Nd({
|
|
|
7188
7188
|
}
|
|
7189
7189
|
),
|
|
7190
7190
|
/* @__PURE__ */ r("label", { className: "flex w-48 flex-none items-center", children: /* @__PURE__ */ r(
|
|
7191
|
-
|
|
7191
|
+
ye,
|
|
7192
7192
|
{
|
|
7193
7193
|
variant: "bordered",
|
|
7194
7194
|
type: "number",
|
|
@@ -7294,7 +7294,7 @@ function Cd({
|
|
|
7294
7294
|
/* @__PURE__ */ r(Un, { className: "px-6 pt-6 text-xl font-semibold leading-7 text-zinc-950", children: t.modalTitle }),
|
|
7295
7295
|
/* @__PURE__ */ f(jn, { className: "flex min-h-0 flex-1 flex-col px-6 pb-6", children: [
|
|
7296
7296
|
/* @__PURE__ */ r(
|
|
7297
|
-
|
|
7297
|
+
ye,
|
|
7298
7298
|
{
|
|
7299
7299
|
variant: "bordered",
|
|
7300
7300
|
"aria-label": t.searchPlaceholder,
|
|
@@ -7344,7 +7344,7 @@ function Cd({
|
|
|
7344
7344
|
}
|
|
7345
7345
|
);
|
|
7346
7346
|
}
|
|
7347
|
-
function
|
|
7347
|
+
function fh() {
|
|
7348
7348
|
return /* @__PURE__ */ f(
|
|
7349
7349
|
"section",
|
|
7350
7350
|
{
|
|
@@ -7373,7 +7373,7 @@ const kd = {
|
|
|
7373
7373
|
remainingBalance: "Remaining Balance",
|
|
7374
7374
|
amountReceived: "Amount Received:"
|
|
7375
7375
|
};
|
|
7376
|
-
function
|
|
7376
|
+
function mh({
|
|
7377
7377
|
totalAmount: e,
|
|
7378
7378
|
remainingBalance: t,
|
|
7379
7379
|
amountReceived: n,
|
|
@@ -7512,7 +7512,7 @@ const Md = {
|
|
|
7512
7512
|
const t = e % 100 >= 11 && e % 100 <= 13 ? "th" : e % 10 === 1 ? "st" : e % 10 === 2 ? "nd" : e % 10 === 3 ? "rd" : "th";
|
|
7513
7513
|
return `${e}${t}`;
|
|
7514
7514
|
};
|
|
7515
|
-
function
|
|
7515
|
+
function hh({
|
|
7516
7516
|
mode: e,
|
|
7517
7517
|
donationAmount: t,
|
|
7518
7518
|
currency: n = "USD",
|
|
@@ -7742,7 +7742,7 @@ function Ud({
|
|
|
7742
7742
|
const s = (o) => {
|
|
7743
7743
|
if (o === "numberOfInstallments")
|
|
7744
7744
|
return /* @__PURE__ */ r("div", { className: "min-w-0", children: /* @__PURE__ */ r(
|
|
7745
|
-
|
|
7745
|
+
ye,
|
|
7746
7746
|
{
|
|
7747
7747
|
variant: "bordered",
|
|
7748
7748
|
label: n.numberOfInstallments,
|
|
@@ -7891,7 +7891,7 @@ function jd({
|
|
|
7891
7891
|
}
|
|
7892
7892
|
) }),
|
|
7893
7893
|
/* @__PURE__ */ r("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ r(
|
|
7894
|
-
|
|
7894
|
+
ye,
|
|
7895
7895
|
{
|
|
7896
7896
|
variant: "bordered",
|
|
7897
7897
|
type: "number",
|
|
@@ -7992,7 +7992,7 @@ function qd({
|
|
|
7992
7992
|
}
|
|
7993
7993
|
);
|
|
7994
7994
|
}
|
|
7995
|
-
function
|
|
7995
|
+
function ph() {
|
|
7996
7996
|
return /* @__PURE__ */ f(
|
|
7997
7997
|
"section",
|
|
7998
7998
|
{
|
|
@@ -8064,7 +8064,7 @@ const ia = {
|
|
|
8064
8064
|
deleteInstallment: "Delete Payment",
|
|
8065
8065
|
deleteInstallmentDescription: "Remove Payment from Opportunity",
|
|
8066
8066
|
deleteInstallmentConfirmationTitle: "Delete Payment",
|
|
8067
|
-
deleteInstallmentConfirmationDescription: /* @__PURE__ */ f(
|
|
8067
|
+
deleteInstallmentConfirmationDescription: /* @__PURE__ */ f(xe, { children: [
|
|
8068
8068
|
"Are you sure you want to delete this payment? ",
|
|
8069
8069
|
/* @__PURE__ */ r("strong", { children: "This action cannot be undone." })
|
|
8070
8070
|
] }),
|
|
@@ -8075,7 +8075,7 @@ const ia = {
|
|
|
8075
8075
|
wrapper: "!absolute !inset-0 !z-50 !items-center !justify-center !p-4",
|
|
8076
8076
|
backdrop: "!absolute !inset-0 !z-40 rounded-2xl"
|
|
8077
8077
|
}, Kd = [];
|
|
8078
|
-
function
|
|
8078
|
+
function gh({
|
|
8079
8079
|
installments: e,
|
|
8080
8080
|
currency: t,
|
|
8081
8081
|
locale: n = "en-US",
|
|
@@ -8111,7 +8111,7 @@ function ph({
|
|
|
8111
8111
|
/* @__PURE__ */ f("div", { className: "min-w-0 w-full max-w-[280px]", children: [
|
|
8112
8112
|
/* @__PURE__ */ r("label", { className: "mb-1 block text-sm font-normal text-zinc-950", children: v.searchLabel }),
|
|
8113
8113
|
/* @__PURE__ */ r(
|
|
8114
|
-
|
|
8114
|
+
ye,
|
|
8115
8115
|
{
|
|
8116
8116
|
variant: "bordered",
|
|
8117
8117
|
size: "md",
|
|
@@ -8346,7 +8346,7 @@ function Gd({
|
|
|
8346
8346
|
onDelete: i
|
|
8347
8347
|
}) {
|
|
8348
8348
|
const [s, o] = H(!1);
|
|
8349
|
-
return /* @__PURE__ */ f(
|
|
8349
|
+
return /* @__PURE__ */ f(xe, { children: [
|
|
8350
8350
|
/* @__PURE__ */ f(Pn, { placement: "bottom-end", radius: "lg", children: [
|
|
8351
8351
|
/* @__PURE__ */ r(On, { children: /* @__PURE__ */ r(
|
|
8352
8352
|
B,
|
|
@@ -8434,7 +8434,7 @@ const Zd = {
|
|
|
8434
8434
|
title: "Select Membership",
|
|
8435
8435
|
renewalTitle: "Automatic Renewal",
|
|
8436
8436
|
renewalDescription: "Membership will automatically renew at the end of each period"
|
|
8437
|
-
},
|
|
8437
|
+
}, bh = ({
|
|
8438
8438
|
cards: e,
|
|
8439
8439
|
locale: t,
|
|
8440
8440
|
currency: n,
|
|
@@ -8742,7 +8742,7 @@ function uu(e, t, n, a) {
|
|
|
8742
8742
|
if (e === "loading" && t === void 0)
|
|
8743
8743
|
return /* @__PURE__ */ r(va, { size: "lg", color: "primary", className: a.spinner });
|
|
8744
8744
|
if (ys(t))
|
|
8745
|
-
return /* @__PURE__ */ r(
|
|
8745
|
+
return /* @__PURE__ */ r(xe, { children: t });
|
|
8746
8746
|
const i = typeof t == "string" ? t : su[e];
|
|
8747
8747
|
return i ? /* @__PURE__ */ r(
|
|
8748
8748
|
U,
|
|
@@ -9247,7 +9247,7 @@ const mu = ({ title: e, value: t, description: n, onValueChange: a, className: i
|
|
|
9247
9247
|
}
|
|
9248
9248
|
)
|
|
9249
9249
|
] });
|
|
9250
|
-
},
|
|
9250
|
+
}, xh = ({
|
|
9251
9251
|
initialExpanded: e = !1,
|
|
9252
9252
|
userMaxLimit: t,
|
|
9253
9253
|
labels: n,
|
|
@@ -9862,7 +9862,7 @@ const qu = {
|
|
|
9862
9862
|
className: p("flex flex-wrap items-center gap-3 mb-4", c),
|
|
9863
9863
|
children: [
|
|
9864
9864
|
/* @__PURE__ */ r(
|
|
9865
|
-
|
|
9865
|
+
ye,
|
|
9866
9866
|
{
|
|
9867
9867
|
type: "search",
|
|
9868
9868
|
"aria-label": n,
|
|
@@ -9923,59 +9923,66 @@ function Yu({
|
|
|
9923
9923
|
);
|
|
9924
9924
|
}
|
|
9925
9925
|
Yu.displayName = "UnderlineTabs";
|
|
9926
|
-
const Ku = "text-[11px] font-semibold uppercase tracking-[.04em] text-acct-muted mb-1.5", Gu = [
|
|
9926
|
+
const Ku = "text-[11px] font-semibold uppercase tracking-[.04em] text-acct-muted mb-1.5", Gu = "font-normal normal-case tracking-normal", Qu = [
|
|
9927
9927
|
"h-[38px] min-h-[38px] !h-[38px] rounded-[11px] border border-acct-border bg-acct-surface px-3",
|
|
9928
9928
|
"data-[hover=true]:border-acct-rust-border",
|
|
9929
9929
|
"group-data-[focus=true]:border-acct-rust"
|
|
9930
|
-
].join(" "),
|
|
9930
|
+
].join(" "), Zu = "text-[13.5px] text-acct-ink", Xu = "bg-acct-page text-acct-muted cursor-default", Ju = "mt-[5px] text-xs text-acct-sub", ef = "mt-[5px] text-xs text-acct-danger", tf = ({
|
|
9931
9931
|
label: e,
|
|
9932
|
-
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9932
|
+
labelSuffix: t,
|
|
9933
|
+
value: n,
|
|
9934
|
+
onChange: a,
|
|
9935
|
+
placeholder: i,
|
|
9936
|
+
disabled: s = !1,
|
|
9937
|
+
readOnly: o = !1,
|
|
9938
|
+
mono: l = !1,
|
|
9939
|
+
autoFocus: c = !1,
|
|
9940
|
+
hint: d,
|
|
9941
|
+
invalid: u = !1,
|
|
9942
|
+
className: h,
|
|
9943
|
+
"data-testid": b = "admin-text-field"
|
|
9943
9944
|
}) => /* @__PURE__ */ r(
|
|
9944
|
-
|
|
9945
|
+
ye,
|
|
9945
9946
|
{
|
|
9946
9947
|
labelPlacement: e ? "outside" : void 0,
|
|
9947
|
-
label: e,
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9948
|
+
label: e && t ? /* @__PURE__ */ f(xe, { children: [
|
|
9949
|
+
e,
|
|
9950
|
+
/* @__PURE__ */ f("span", { className: Gu, children: [
|
|
9951
|
+
" ",
|
|
9952
|
+
t
|
|
9953
|
+
] })
|
|
9954
|
+
] }) : e,
|
|
9955
|
+
value: n,
|
|
9956
|
+
placeholder: i,
|
|
9957
|
+
isDisabled: s,
|
|
9958
|
+
isReadOnly: o,
|
|
9959
|
+
autoFocus: c,
|
|
9960
|
+
isInvalid: u,
|
|
9961
|
+
description: !u && d ? d : void 0,
|
|
9962
|
+
errorMessage: u ? d : void 0,
|
|
9963
|
+
onValueChange: a,
|
|
9964
|
+
"data-testid": b,
|
|
9958
9965
|
variant: "bordered",
|
|
9959
9966
|
radius: "none",
|
|
9960
9967
|
classNames: {
|
|
9961
|
-
base: p("w-full",
|
|
9968
|
+
base: p("w-full", h),
|
|
9962
9969
|
label: Ku,
|
|
9963
|
-
inputWrapper:
|
|
9970
|
+
inputWrapper: Qu,
|
|
9964
9971
|
input: p(
|
|
9965
|
-
|
|
9966
|
-
(
|
|
9967
|
-
|
|
9972
|
+
Zu,
|
|
9973
|
+
(l || o) && "font-mono",
|
|
9974
|
+
o && Xu
|
|
9968
9975
|
),
|
|
9969
|
-
description:
|
|
9970
|
-
errorMessage:
|
|
9976
|
+
description: Ju,
|
|
9977
|
+
errorMessage: ef
|
|
9971
9978
|
}
|
|
9972
9979
|
}
|
|
9973
9980
|
);
|
|
9974
|
-
|
|
9975
|
-
const
|
|
9981
|
+
tf.displayName = "AdminTextField";
|
|
9982
|
+
const nf = {
|
|
9976
9983
|
sm: "size-6 min-w-6",
|
|
9977
9984
|
md: "size-[30px] min-w-[30px]"
|
|
9978
|
-
},
|
|
9985
|
+
}, rf = ({
|
|
9979
9986
|
actions: e,
|
|
9980
9987
|
size: t = "md",
|
|
9981
9988
|
className: n,
|
|
@@ -10002,7 +10009,7 @@ const tf = {
|
|
|
10002
10009
|
"aria-label": i.label,
|
|
10003
10010
|
title: i.label,
|
|
10004
10011
|
"data-testid": `${a}-${i.key}`,
|
|
10005
|
-
className: p("text-acct-sub data-[hover=true]:bg-acct-hair",
|
|
10012
|
+
className: p("text-acct-sub data-[hover=true]:bg-acct-hair", nf[t]),
|
|
10006
10013
|
children: i.icon
|
|
10007
10014
|
},
|
|
10008
10015
|
i.key
|
|
@@ -10010,8 +10017,8 @@ const tf = {
|
|
|
10010
10017
|
}
|
|
10011
10018
|
)
|
|
10012
10019
|
);
|
|
10013
|
-
|
|
10014
|
-
const
|
|
10020
|
+
rf.displayName = "RowActions";
|
|
10021
|
+
const af = ({
|
|
10015
10022
|
children: e,
|
|
10016
10023
|
placeholder: t = "Select…",
|
|
10017
10024
|
onOpen: n,
|
|
@@ -10074,13 +10081,13 @@ const rf = ({
|
|
|
10074
10081
|
}
|
|
10075
10082
|
);
|
|
10076
10083
|
};
|
|
10077
|
-
|
|
10078
|
-
function
|
|
10084
|
+
af.displayName = "PickerRow";
|
|
10085
|
+
function sf(e, t, n) {
|
|
10079
10086
|
if (n <= 0 || t <= 0 || e <= 0) return { from: 0, to: 0 };
|
|
10080
10087
|
const a = (e - 1) * t + 1;
|
|
10081
10088
|
return a > n ? { from: 0, to: 0 } : { from: a, to: Math.min(n, e * t) };
|
|
10082
10089
|
}
|
|
10083
|
-
const
|
|
10090
|
+
const lf = ({
|
|
10084
10091
|
page: e,
|
|
10085
10092
|
pageSize: t,
|
|
10086
10093
|
total: n,
|
|
@@ -10090,7 +10097,7 @@ const sf = ({
|
|
|
10090
10097
|
classNames: o = {},
|
|
10091
10098
|
"data-testid": l = "pagination-summary"
|
|
10092
10099
|
}) => {
|
|
10093
|
-
const { from: c, to: d } =
|
|
10100
|
+
const { from: c, to: d } = sf(e, t, n), u = p("font-semibold text-default-700", o.emphasis);
|
|
10094
10101
|
return /* @__PURE__ */ f(
|
|
10095
10102
|
"p",
|
|
10096
10103
|
{
|
|
@@ -10105,7 +10112,7 @@ const sf = ({
|
|
|
10105
10112
|
"of",
|
|
10106
10113
|
" ",
|
|
10107
10114
|
/* @__PURE__ */ r("span", { "data-testid": `${l}-total`, className: u, children: n }),
|
|
10108
|
-
a ? /* @__PURE__ */ f(
|
|
10115
|
+
a ? /* @__PURE__ */ f(xe, { children: [
|
|
10109
10116
|
" ",
|
|
10110
10117
|
a
|
|
10111
10118
|
] }) : null
|
|
@@ -10113,8 +10120,8 @@ const sf = ({
|
|
|
10113
10120
|
}
|
|
10114
10121
|
);
|
|
10115
10122
|
};
|
|
10116
|
-
|
|
10117
|
-
const
|
|
10123
|
+
lf.displayName = "PaginationSummary";
|
|
10124
|
+
const of = ({
|
|
10118
10125
|
isLoading: e = !1,
|
|
10119
10126
|
isError: t = !1,
|
|
10120
10127
|
isEmpty: n = !1,
|
|
@@ -10173,14 +10180,14 @@ const lf = ({
|
|
|
10173
10180
|
}
|
|
10174
10181
|
);
|
|
10175
10182
|
};
|
|
10176
|
-
|
|
10177
|
-
const
|
|
10183
|
+
of.displayName = "ListPanel";
|
|
10184
|
+
const cf = 350, df = {
|
|
10178
10185
|
receivedLabel: "Cash Received",
|
|
10179
10186
|
receivedPlaceholder: "$0.00",
|
|
10180
10187
|
changeLabel: "Change",
|
|
10181
10188
|
changeMessageTemplate: "You have to give back the client {change} in change",
|
|
10182
10189
|
insufficientMessageTemplate: "Amount received must be at least {due}"
|
|
10183
|
-
}, bn = (e, t) => Object.entries(t).reduce((n, [a, i]) => n.replace(`{${a}}`, i), e),
|
|
10190
|
+
}, bn = (e, t) => Object.entries(t).reduce((n, [a, i]) => n.replace(`{${a}}`, i), e), yh = ({
|
|
10184
10191
|
dueAmount: e,
|
|
10185
10192
|
received: t,
|
|
10186
10193
|
defaultReceived: n = null,
|
|
@@ -10193,7 +10200,7 @@ const of = 350, cf = {
|
|
|
10193
10200
|
className: d,
|
|
10194
10201
|
"data-testid": u = "cash-tender-form"
|
|
10195
10202
|
}) => {
|
|
10196
|
-
const h = { ...
|
|
10203
|
+
const h = { ...df, ...s }, b = pi(e.currency, i), m = t !== void 0, [w, v] = H(n ?? null), x = m ? t : w, N = ce(() => {
|
|
10197
10204
|
const _ = typeof x == "number" && Number.isFinite(x) ? x : 0, P = Vr(_, e.value, e.currency, i);
|
|
10198
10205
|
return {
|
|
10199
10206
|
received: _,
|
|
@@ -10223,7 +10230,7 @@ const of = 350, cf = {
|
|
|
10223
10230
|
), C = x == null ? "" : String(x), S = N.isValid && N.change > 0, L = !N.isValid && N.received > 0, M = Me(N.change, i, e.currency), I = Me(e.value, i, e.currency), [D, z] = H(""), F = Ue(null);
|
|
10224
10231
|
Le(() => {
|
|
10225
10232
|
F.current && clearTimeout(F.current);
|
|
10226
|
-
const _ = S ? bn(h.changeMessageTemplate, { change: M }) : "", P = S ?
|
|
10233
|
+
const _ = S ? bn(h.changeMessageTemplate, { change: M }) : "", P = S ? cf : 0;
|
|
10227
10234
|
return F.current = setTimeout(() => z(_), P), () => {
|
|
10228
10235
|
F.current && clearTimeout(F.current);
|
|
10229
10236
|
};
|
|
@@ -10231,7 +10238,7 @@ const of = 350, cf = {
|
|
|
10231
10238
|
const A = `${u}-received`;
|
|
10232
10239
|
return /* @__PURE__ */ f("div", { className: p("flex flex-col gap-3", d), "data-testid": u, children: [
|
|
10233
10240
|
/* @__PURE__ */ r(
|
|
10234
|
-
|
|
10241
|
+
ye,
|
|
10235
10242
|
{
|
|
10236
10243
|
id: A,
|
|
10237
10244
|
label: h.receivedLabel,
|
|
@@ -10291,7 +10298,7 @@ const of = 350, cf = {
|
|
|
10291
10298
|
),
|
|
10292
10299
|
/* @__PURE__ */ r("span", { role: "status", "aria-live": "polite", className: "sr-only", children: D })
|
|
10293
10300
|
] });
|
|
10294
|
-
},
|
|
10301
|
+
}, uf = {
|
|
10295
10302
|
checkNumberLabel: "Check Number",
|
|
10296
10303
|
checkNumberPlaceholder: "e.g. 11234",
|
|
10297
10304
|
bankNameLabel: "Bank Name",
|
|
@@ -10301,7 +10308,7 @@ const of = 350, cf = {
|
|
|
10301
10308
|
}, ma = () => {
|
|
10302
10309
|
const e = /* @__PURE__ */ new Date(), t = (n) => String(n).padStart(2, "0");
|
|
10303
10310
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`;
|
|
10304
|
-
},
|
|
10311
|
+
}, ff = ({
|
|
10305
10312
|
dueAmount: e,
|
|
10306
10313
|
value: t,
|
|
10307
10314
|
defaultValue: n,
|
|
@@ -10319,7 +10326,7 @@ const of = 350, cf = {
|
|
|
10319
10326
|
className: h,
|
|
10320
10327
|
"data-testid": b = "check-tender-form"
|
|
10321
10328
|
}) => {
|
|
10322
|
-
const m = { ...
|
|
10329
|
+
const m = { ...uf, ...i }, w = t !== void 0, [v, x] = H({
|
|
10323
10330
|
checkNumber: n?.checkNumber ?? "",
|
|
10324
10331
|
bankName: n?.bankName ?? "",
|
|
10325
10332
|
date: n?.date ?? ma()
|
|
@@ -10355,7 +10362,7 @@ const of = 350, cf = {
|
|
|
10355
10362
|
}, [l]), M = N && $.checkNumber.trim() === "", I = `${b}-check-number`, D = `${b}-bank-name`, z = `${b}-date`;
|
|
10356
10363
|
return /* @__PURE__ */ f("div", { className: p("grid grid-cols-1 sm:grid-cols-2 gap-4", h), "data-testid": b, children: [
|
|
10357
10364
|
/* @__PURE__ */ r(
|
|
10358
|
-
|
|
10365
|
+
ye,
|
|
10359
10366
|
{
|
|
10360
10367
|
id: I,
|
|
10361
10368
|
label: m.checkNumberLabel,
|
|
@@ -10377,7 +10384,7 @@ const of = 350, cf = {
|
|
|
10377
10384
|
}
|
|
10378
10385
|
),
|
|
10379
10386
|
!o && /* @__PURE__ */ r(
|
|
10380
|
-
|
|
10387
|
+
ye,
|
|
10381
10388
|
{
|
|
10382
10389
|
id: D,
|
|
10383
10390
|
label: m.bankNameLabel,
|
|
@@ -10394,7 +10401,7 @@ const of = 350, cf = {
|
|
|
10394
10401
|
}
|
|
10395
10402
|
),
|
|
10396
10403
|
!s && /* @__PURE__ */ r(
|
|
10397
|
-
|
|
10404
|
+
ye,
|
|
10398
10405
|
{
|
|
10399
10406
|
id: z,
|
|
10400
10407
|
label: m.dateLabel,
|
|
@@ -10411,8 +10418,8 @@ const of = 350, cf = {
|
|
|
10411
10418
|
)
|
|
10412
10419
|
] });
|
|
10413
10420
|
};
|
|
10414
|
-
|
|
10415
|
-
const
|
|
10421
|
+
ff.displayName = "CheckTenderForm";
|
|
10422
|
+
const mf = {
|
|
10416
10423
|
// "Method" (not "Payment Method") because the orchestrator chrome
|
|
10417
10424
|
// typically renders a "Payment Method" heading right above this
|
|
10418
10425
|
// form's section — using the shorter label avoids the duplicate.
|
|
@@ -10421,15 +10428,15 @@ const ff = {
|
|
|
10421
10428
|
referenceLabel: "Reference",
|
|
10422
10429
|
referencePlaceholder: "e.g. Voucher #1234",
|
|
10423
10430
|
methodRequiredMessage: "Method is required"
|
|
10424
|
-
},
|
|
10431
|
+
}, hf = [
|
|
10425
10432
|
{ value: "ach", label: "ACH" },
|
|
10426
10433
|
{ value: "wire", label: "Wire" },
|
|
10427
10434
|
{ value: "gift_card", label: "Gift Card" },
|
|
10428
10435
|
{ value: "voucher", label: "Voucher" },
|
|
10429
10436
|
{ value: "other", label: "Other" }
|
|
10430
|
-
],
|
|
10437
|
+
], pf = ({
|
|
10431
10438
|
dueAmount: e,
|
|
10432
|
-
methodOptions: t =
|
|
10439
|
+
methodOptions: t = hf,
|
|
10433
10440
|
value: n,
|
|
10434
10441
|
defaultValue: a,
|
|
10435
10442
|
onChange: i,
|
|
@@ -10442,7 +10449,7 @@ const ff = {
|
|
|
10442
10449
|
className: c,
|
|
10443
10450
|
"data-testid": d = "other-tender-form"
|
|
10444
10451
|
}) => {
|
|
10445
|
-
const u = { ...
|
|
10452
|
+
const u = { ...mf, ...s }, h = n !== void 0, [b, m] = H({
|
|
10446
10453
|
method: a?.method ?? "",
|
|
10447
10454
|
reference: a?.reference ?? ""
|
|
10448
10455
|
}), w = ce(
|
|
@@ -10527,7 +10534,7 @@ const ff = {
|
|
|
10527
10534
|
}
|
|
10528
10535
|
),
|
|
10529
10536
|
o && /* @__PURE__ */ r(
|
|
10530
|
-
|
|
10537
|
+
ye,
|
|
10531
10538
|
{
|
|
10532
10539
|
id: C,
|
|
10533
10540
|
label: u.referenceLabel,
|
|
@@ -10544,8 +10551,8 @@ const ff = {
|
|
|
10544
10551
|
)
|
|
10545
10552
|
] });
|
|
10546
10553
|
};
|
|
10547
|
-
|
|
10548
|
-
const
|
|
10554
|
+
pf.displayName = "OtherTenderForm";
|
|
10555
|
+
const gf = {
|
|
10549
10556
|
collectedHeading: "Collected",
|
|
10550
10557
|
remainingLabel: "Remaining:",
|
|
10551
10558
|
completeLabel: "Complete",
|
|
@@ -10554,16 +10561,16 @@ const pf = {
|
|
|
10554
10561
|
statusPending: "Pending",
|
|
10555
10562
|
statusRecorded: "Approved",
|
|
10556
10563
|
statusFailed: "Failed"
|
|
10557
|
-
},
|
|
10564
|
+
}, bf = {
|
|
10558
10565
|
card: "lucide:credit-card",
|
|
10559
10566
|
cash: "lucide:dollar-sign",
|
|
10560
10567
|
check: "lucide:edit-3",
|
|
10561
10568
|
other: "lucide:more-horizontal"
|
|
10562
|
-
},
|
|
10569
|
+
}, xf = {
|
|
10563
10570
|
pending: "warning",
|
|
10564
10571
|
recorded: "success",
|
|
10565
10572
|
failed: "danger"
|
|
10566
|
-
},
|
|
10573
|
+
}, yf = (e) => e === "pending" || e === "recorded", vf = (e) => `#${e + 1}`, wf = ({
|
|
10567
10574
|
total: e,
|
|
10568
10575
|
tenders: t,
|
|
10569
10576
|
onRemove: n,
|
|
@@ -10573,8 +10580,8 @@ const pf = {
|
|
|
10573
10580
|
className: o,
|
|
10574
10581
|
"data-testid": l = "split-payment-summary"
|
|
10575
10582
|
}) => {
|
|
10576
|
-
const c = { ...
|
|
10577
|
-
const m = t.reduce((v, x) =>
|
|
10583
|
+
const c = { ...gf, ...i }, { collected: d, remaining: u, isComplete: h } = ce(() => {
|
|
10584
|
+
const m = t.reduce((v, x) => yf(x.status) ? v + x.amount : v, 0), w = Math.max(e.value - m, 0);
|
|
10578
10585
|
return {
|
|
10579
10586
|
collected: m,
|
|
10580
10587
|
remaining: w,
|
|
@@ -10603,7 +10610,7 @@ const pf = {
|
|
|
10603
10610
|
!s && t.length > 0 && /* @__PURE__ */ f("div", { className: "flex flex-col gap-2", "data-testid": `${l}-collected-list`, children: [
|
|
10604
10611
|
/* @__PURE__ */ r("h3", { className: "text-base font-semibold", children: c.collectedHeading }),
|
|
10605
10612
|
t.map((m, w) => /* @__PURE__ */ r(
|
|
10606
|
-
|
|
10613
|
+
Nf,
|
|
10607
10614
|
{
|
|
10608
10615
|
index: w,
|
|
10609
10616
|
tender: m,
|
|
@@ -10621,8 +10628,8 @@ const pf = {
|
|
|
10621
10628
|
] })
|
|
10622
10629
|
] });
|
|
10623
10630
|
};
|
|
10624
|
-
|
|
10625
|
-
const
|
|
10631
|
+
wf.displayName = "SplitPaymentSummary";
|
|
10632
|
+
const Nf = ({
|
|
10626
10633
|
index: e,
|
|
10627
10634
|
tender: t,
|
|
10628
10635
|
locale: n,
|
|
@@ -10657,11 +10664,11 @@ const wf = ({
|
|
|
10657
10664
|
className: "flex items-center gap-3 rounded-xl bg-default-50 px-4 py-3 motion-safe:animate-[pp-row-in_200ms_ease-out]",
|
|
10658
10665
|
"data-testid": d,
|
|
10659
10666
|
children: [
|
|
10660
|
-
/* @__PURE__ */ r("span", { className: "text-sm font-medium text-default-500 w-6 shrink-0", children:
|
|
10667
|
+
/* @__PURE__ */ r("span", { className: "text-sm font-medium text-default-500 w-6 shrink-0", children: vf(e) }),
|
|
10661
10668
|
/* @__PURE__ */ r(
|
|
10662
10669
|
U,
|
|
10663
10670
|
{
|
|
10664
|
-
icon:
|
|
10671
|
+
icon: bf[t.type],
|
|
10665
10672
|
width: 20,
|
|
10666
10673
|
height: 20,
|
|
10667
10674
|
className: "text-default-700 shrink-0",
|
|
@@ -10676,7 +10683,7 @@ const wf = ({
|
|
|
10676
10683
|
size: "sm",
|
|
10677
10684
|
radius: "full",
|
|
10678
10685
|
variant: "flat",
|
|
10679
|
-
color:
|
|
10686
|
+
color: xf[t.status],
|
|
10680
10687
|
startContent: t.status === "recorded" ? /* @__PURE__ */ r(U, { icon: "lucide:check-circle", width: 14, height: 14, "aria-hidden": "true" }) : t.status === "failed" ? /* @__PURE__ */ r(U, { icon: "lucide:alert-circle", width: 14, height: 14, "aria-hidden": "true" }) : void 0,
|
|
10681
10688
|
"data-testid": `${d}-status`,
|
|
10682
10689
|
children: o
|
|
@@ -10686,7 +10693,7 @@ const wf = ({
|
|
|
10686
10693
|
]
|
|
10687
10694
|
}
|
|
10688
10695
|
);
|
|
10689
|
-
},
|
|
10696
|
+
}, Cf = `
|
|
10690
10697
|
@keyframes pp-modal-in {
|
|
10691
10698
|
from { opacity: 0; transform: scale(0.96); }
|
|
10692
10699
|
to { opacity: 1; transform: scale(1); }
|
|
@@ -10712,8 +10719,8 @@ const wf = ({
|
|
|
10712
10719
|
to { opacity: 1; transform: translateY(0); }
|
|
10713
10720
|
}
|
|
10714
10721
|
`, zi = Y.forwardRef(
|
|
10715
|
-
({ children: e, relativeOverlayRoot: t = !0, className: n, style: a, "data-testid": i = "modal-shell" }, s) => /* @__PURE__ */ f(
|
|
10716
|
-
/* @__PURE__ */ r("style", { children:
|
|
10722
|
+
({ children: e, relativeOverlayRoot: t = !0, className: n, style: a, "data-testid": i = "modal-shell" }, s) => /* @__PURE__ */ f(xe, { children: [
|
|
10723
|
+
/* @__PURE__ */ r("style", { children: Cf }),
|
|
10717
10724
|
/* @__PURE__ */ r(
|
|
10718
10725
|
"div",
|
|
10719
10726
|
{
|
|
@@ -10815,11 +10822,11 @@ const Bi = ({
|
|
|
10815
10822
|
}
|
|
10816
10823
|
);
|
|
10817
10824
|
Bi.displayName = "ModalShellFooter";
|
|
10818
|
-
const
|
|
10825
|
+
const kf = {
|
|
10819
10826
|
2: "sm:grid-cols-2",
|
|
10820
10827
|
3: "sm:grid-cols-3",
|
|
10821
10828
|
4: "sm:grid-cols-4"
|
|
10822
|
-
},
|
|
10829
|
+
}, Sf = {
|
|
10823
10830
|
1: "grid-cols-1",
|
|
10824
10831
|
2: "grid-cols-2"
|
|
10825
10832
|
}, xn = (e) => typeof e == "string" ? /* @__PURE__ */ r(U, { icon: e, width: 20, height: 20, "aria-hidden": "true" }) : e, Vi = ({
|
|
@@ -10894,8 +10901,8 @@ const Cf = {
|
|
|
10894
10901
|
"aria-label": a ? void 0 : i,
|
|
10895
10902
|
className: p(
|
|
10896
10903
|
"hidden md:grid gap-3",
|
|
10897
|
-
|
|
10898
|
-
|
|
10904
|
+
Sf[o],
|
|
10905
|
+
kf[s]
|
|
10899
10906
|
),
|
|
10900
10907
|
children: e.map((u) => {
|
|
10901
10908
|
const h = t === u.key;
|
|
@@ -10942,7 +10949,7 @@ const Cf = {
|
|
|
10942
10949
|
] });
|
|
10943
10950
|
};
|
|
10944
10951
|
Vi.displayName = "TileSelect";
|
|
10945
|
-
const
|
|
10952
|
+
const $f = {
|
|
10946
10953
|
subtle: {
|
|
10947
10954
|
wrapper: "bg-default-100",
|
|
10948
10955
|
amount: "text-default-900"
|
|
@@ -10959,7 +10966,7 @@ const Sf = {
|
|
|
10959
10966
|
className: i,
|
|
10960
10967
|
"data-testid": s = "payment-total-banner"
|
|
10961
10968
|
}) => {
|
|
10962
|
-
const o =
|
|
10969
|
+
const o = $f[a];
|
|
10963
10970
|
return /* @__PURE__ */ f(
|
|
10964
10971
|
"div",
|
|
10965
10972
|
{
|
|
@@ -10980,7 +10987,7 @@ const Sf = {
|
|
|
10980
10987
|
);
|
|
10981
10988
|
};
|
|
10982
10989
|
Ui.displayName = "PaymentTotalBanner";
|
|
10983
|
-
const
|
|
10990
|
+
const Af = {
|
|
10984
10991
|
// ~70% white + slight blur — matches Type=Processing.png design:
|
|
10985
10992
|
// the form behind (tabs, fields, totals) stays VISIBLY dimmed
|
|
10986
10993
|
// instead of being almost-fully-occluded. Gives the cashier a
|
|
@@ -10988,7 +10995,7 @@ const $f = {
|
|
|
10988
10995
|
// clear the modal is busy.
|
|
10989
10996
|
white: "bg-white/70 backdrop-blur-sm",
|
|
10990
10997
|
transparent: "bg-transparent"
|
|
10991
|
-
},
|
|
10998
|
+
}, Df = ({
|
|
10992
10999
|
title: e,
|
|
10993
11000
|
subtitle: t,
|
|
10994
11001
|
backdrop: n = "white",
|
|
@@ -11005,7 +11012,7 @@ const $f = {
|
|
|
11005
11012
|
"data-state": a ? "exiting" : "visible",
|
|
11006
11013
|
className: p(
|
|
11007
11014
|
"absolute inset-0 z-10 flex flex-col items-center justify-center gap-4 rounded-3xl",
|
|
11008
|
-
|
|
11015
|
+
Af[n],
|
|
11009
11016
|
// Two animation modes:
|
|
11010
11017
|
// visible → fade-in entrance (150ms).
|
|
11011
11018
|
// exiting → fade-out + non-interactive; `forwards` fill
|
|
@@ -11031,7 +11038,7 @@ const $f = {
|
|
|
11031
11038
|
]
|
|
11032
11039
|
}
|
|
11033
11040
|
);
|
|
11034
|
-
|
|
11041
|
+
Df.displayName = "LoadingOverlay";
|
|
11035
11042
|
const ji = ({
|
|
11036
11043
|
cashChange: e,
|
|
11037
11044
|
label: t = "Cash to return",
|
|
@@ -11110,7 +11117,7 @@ const ji = ({
|
|
|
11110
11117
|
);
|
|
11111
11118
|
};
|
|
11112
11119
|
ji.displayName = "PaymentCashChangeBanner";
|
|
11113
|
-
const
|
|
11120
|
+
const Ef = ({
|
|
11114
11121
|
title: e,
|
|
11115
11122
|
subtitle: t,
|
|
11116
11123
|
emailLine: n,
|
|
@@ -11191,7 +11198,7 @@ const Df = ({
|
|
|
11191
11198
|
}
|
|
11192
11199
|
);
|
|
11193
11200
|
};
|
|
11194
|
-
|
|
11201
|
+
Ef.displayName = "PaymentSuccessView";
|
|
11195
11202
|
const Zt = ({
|
|
11196
11203
|
heading: e,
|
|
11197
11204
|
amountLabel: t,
|
|
@@ -11226,7 +11233,7 @@ const Zt = ({
|
|
|
11226
11233
|
return /* @__PURE__ */ f("div", { className: p("flex flex-col gap-3 border-t border-default-100 pt-5", b), "data-testid": m, children: [
|
|
11227
11234
|
/* @__PURE__ */ r("h3", { className: p("text-lg font-semibold", h && "sr-only"), "data-testid": `${m}-heading`, children: e }),
|
|
11228
11235
|
/* @__PURE__ */ r(
|
|
11229
|
-
|
|
11236
|
+
ye,
|
|
11230
11237
|
{
|
|
11231
11238
|
id: w,
|
|
11232
11239
|
label: t,
|
|
@@ -11253,7 +11260,7 @@ const Zt = ({
|
|
|
11253
11260
|
] });
|
|
11254
11261
|
};
|
|
11255
11262
|
Zt.displayName = "PaymentSubAmountInput";
|
|
11256
|
-
const
|
|
11263
|
+
const Ff = {
|
|
11257
11264
|
danger: {
|
|
11258
11265
|
tile: "bg-danger-50 text-danger-600",
|
|
11259
11266
|
icon: "solar:danger-circle-outline",
|
|
@@ -11264,7 +11271,7 @@ const Ef = {
|
|
|
11264
11271
|
icon: "solar:danger-triangle-outline",
|
|
11265
11272
|
confirmColor: "warning"
|
|
11266
11273
|
}
|
|
11267
|
-
},
|
|
11274
|
+
}, Lf = (e) => typeof e == "string" ? /* @__PURE__ */ r(U, { icon: e, className: "size-5", "aria-hidden": "true" }) : e, Mf = ({
|
|
11268
11275
|
isOpen: e,
|
|
11269
11276
|
title: t,
|
|
11270
11277
|
confirmLabel: n,
|
|
@@ -11281,7 +11288,7 @@ const Ef = {
|
|
|
11281
11288
|
icon: m,
|
|
11282
11289
|
"data-testid": w = "confirm-dialog"
|
|
11283
11290
|
}) => {
|
|
11284
|
-
const v = s ?? o ?? null, x =
|
|
11291
|
+
const v = s ?? o ?? null, x = Ff[c], N = b ? null : Lf(m ?? x.icon);
|
|
11285
11292
|
return /* @__PURE__ */ r(
|
|
11286
11293
|
Bn,
|
|
11287
11294
|
{
|
|
@@ -11351,14 +11358,14 @@ const Ef = {
|
|
|
11351
11358
|
}
|
|
11352
11359
|
);
|
|
11353
11360
|
};
|
|
11354
|
-
|
|
11355
|
-
const
|
|
11361
|
+
Mf.displayName = "ConfirmDialog";
|
|
11362
|
+
const If = 60, _f = (e, t, n = If) => t ? e > n : e < -n, Hi = (e, t) => Math.max(0, Math.min(e, t)), Tf = 160, Pf = (e, t, n = Tf) => Math.min(e, Math.max(0, t - n)), Of = (e, t, n) => Hi(e - t, n), zf = (e, t, n) => e !== null ? Hi(e, n) : t ? n : 0, Rf = (e) => e ? "" : "transition-[height] duration-300 ease-out", Bf = (e) => ({
|
|
11356
11363
|
onDrag: (t, n) => {
|
|
11357
11364
|
const a = e.open ? e.fullHeight : 0;
|
|
11358
|
-
e.setDragHeight(
|
|
11365
|
+
e.setDragHeight(Of(a, n?.offset?.y ?? 0, e.fullHeight));
|
|
11359
11366
|
},
|
|
11360
11367
|
onDragEnd: (t, n) => {
|
|
11361
|
-
|
|
11368
|
+
_f(n?.offset?.y ?? 0, e.open) && e.onToggleOpen?.(), e.setDragHeight(null);
|
|
11362
11369
|
}
|
|
11363
11370
|
}), lt = (e, t) => Me(e.value, t, e.currency), fr = ({
|
|
11364
11371
|
item: e,
|
|
@@ -11572,7 +11579,7 @@ const Wi = ({
|
|
|
11572
11579
|
classNames: u
|
|
11573
11580
|
}) => {
|
|
11574
11581
|
const h = (n?.length ?? 0) > 0;
|
|
11575
|
-
return /* @__PURE__ */ f(
|
|
11582
|
+
return /* @__PURE__ */ f(xe, { children: [
|
|
11576
11583
|
/* @__PURE__ */ f(
|
|
11577
11584
|
"div",
|
|
11578
11585
|
{
|
|
@@ -11595,7 +11602,7 @@ const Wi = ({
|
|
|
11595
11602
|
},
|
|
11596
11603
|
b.id
|
|
11597
11604
|
)) }) : /* @__PURE__ */ r("div", { "data-testid": "summary-empty", children: d }),
|
|
11598
|
-
a && /* @__PURE__ */ f(
|
|
11605
|
+
a && /* @__PURE__ */ f(xe, { children: [
|
|
11599
11606
|
/* @__PURE__ */ r(Xe, { className: "bg-default-200" }),
|
|
11600
11607
|
/* @__PURE__ */ r(qi, { fee: a, locale: s, className: u.serviceFee })
|
|
11601
11608
|
] }),
|
|
@@ -11820,14 +11827,14 @@ const Zi = ({
|
|
|
11820
11827
|
l && /* @__PURE__ */ r("div", { children: l })
|
|
11821
11828
|
] });
|
|
11822
11829
|
Zi.displayName = "SummaryActionBar";
|
|
11823
|
-
const
|
|
11824
|
-
const [t, n] = H(() =>
|
|
11830
|
+
const Vf = "(max-width: 767px)", Uf = (e) => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(e).matches : !1, jf = (e = Vf) => {
|
|
11831
|
+
const [t, n] = H(() => Uf(e));
|
|
11825
11832
|
return Le(() => {
|
|
11826
11833
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
11827
11834
|
const a = window.matchMedia(e), i = () => n(a.matches);
|
|
11828
11835
|
return i(), a.addEventListener("change", i), () => a.removeEventListener("change", i);
|
|
11829
11836
|
}, [e]), t;
|
|
11830
|
-
},
|
|
11837
|
+
}, Hf = ({
|
|
11831
11838
|
title: e = "Summary",
|
|
11832
11839
|
pricesInLabel: t = "Prices are in",
|
|
11833
11840
|
currency: n,
|
|
@@ -11856,11 +11863,11 @@ const Bf = "(max-width: 767px)", Vf = (e) => typeof window < "u" && typeof windo
|
|
|
11856
11863
|
"data-testid": D = "summary",
|
|
11857
11864
|
className: z
|
|
11858
11865
|
}) => {
|
|
11859
|
-
const F = M?.removeAriaLabel ?? "Remove item", A = M?.removePostTotalRowAriaLabel ?? "Remove applied code", _ = M?.toggleAriaLabel ?? "Toggle summary", P = M?.cartAriaLabel ?? "View cart", Q =
|
|
11866
|
+
const F = M?.removeAriaLabel ?? "Remove item", A = M?.removePostTotalRowAriaLabel ?? "Remove applied code", _ = M?.toggleAriaLabel ?? "Toggle summary", P = M?.cartAriaLabel ?? "View cart", Q = jf(), K = h ?? (C ?? (Q ? "mobile" : "main")) === "mobile", [re, le] = H(w), oe = b !== void 0, j = !K || (oe ? b : re), X = J(() => {
|
|
11860
11867
|
oe || le((Ne) => !Ne), m?.();
|
|
11861
11868
|
}, [oe, m]), [Z, q] = H(0), [ee, ne] = H(null), Ie = Ue(null), $e = Ue(null), we = J(() => {
|
|
11862
11869
|
const Ne = Ie.current;
|
|
11863
|
-
Ne && q(
|
|
11870
|
+
Ne && q(Pf(Ne.scrollHeight, window.innerHeight));
|
|
11864
11871
|
}, []), et = J(
|
|
11865
11872
|
(Ne) => {
|
|
11866
11873
|
$e.current?.disconnect(), $e.current = null, Ie.current = Ne, Ne && (we(), typeof ResizeObserver < "u" && ($e.current = new ResizeObserver(we), $e.current.observe(Ne)));
|
|
@@ -11868,7 +11875,7 @@ const Bf = "(max-width: 767px)", Vf = (e) => typeof window < "u" && typeof windo
|
|
|
11868
11875
|
[we]
|
|
11869
11876
|
);
|
|
11870
11877
|
Le(() => (window.addEventListener("resize", we), () => window.removeEventListener("resize", we)), [we]);
|
|
11871
|
-
const We =
|
|
11878
|
+
const We = Bf({ open: j, fullHeight: Z, setDragHeight: ne, onToggleOpen: X }), Ye = ee !== null, Ke = zf(ee, j, Z), tt = Z > 0 ? Math.min(1, Math.max(0, Ke / Z)) : j ? 1 : 0, Be = /* @__PURE__ */ r(Yi, { total: l, locale: a, className: I.total }), ae = c && c.length > 0 && /* @__PURE__ */ r("div", { "data-testid": "summary-post-total-rows", className: "flex flex-col gap-4", children: c.map((Ne) => /* @__PURE__ */ r(
|
|
11872
11879
|
mr,
|
|
11873
11880
|
{
|
|
11874
11881
|
row: Ne,
|
|
@@ -11956,7 +11963,7 @@ const Bf = "(max-width: 767px)", Vf = (e) => typeof window < "u" && typeof windo
|
|
|
11956
11963
|
"min-h-0",
|
|
11957
11964
|
j && !Ye ? "overflow-y-auto overscroll-contain [scrollbar-width:none] [&::-webkit-scrollbar]:hidden" : "overflow-hidden",
|
|
11958
11965
|
!j && "pointer-events-none",
|
|
11959
|
-
|
|
11966
|
+
Rf(Ye)
|
|
11960
11967
|
),
|
|
11961
11968
|
children: /* @__PURE__ */ f("div", { ref: et, className: "flex flex-col gap-4 pb-4", children: [
|
|
11962
11969
|
Dt,
|
|
@@ -12014,11 +12021,11 @@ const Bf = "(max-width: 767px)", Vf = (e) => typeof window < "u" && typeof windo
|
|
|
12014
12021
|
}
|
|
12015
12022
|
);
|
|
12016
12023
|
};
|
|
12017
|
-
|
|
12018
|
-
const
|
|
12024
|
+
Hf.displayName = "Summary";
|
|
12025
|
+
const qf = {
|
|
12019
12026
|
back: "Back",
|
|
12020
12027
|
close: "Close"
|
|
12021
|
-
},
|
|
12028
|
+
}, Wf = ({
|
|
12022
12029
|
onClose: e,
|
|
12023
12030
|
steps: t,
|
|
12024
12031
|
activeStepId: n,
|
|
@@ -12030,7 +12037,7 @@ const Hf = {
|
|
|
12030
12037
|
"data-testid": c = "wizard-shell",
|
|
12031
12038
|
children: d
|
|
12032
12039
|
}) => {
|
|
12033
|
-
const u = { ...
|
|
12040
|
+
const u = { ...qf, ...o }, h = t.filter((w) => w.state !== "skipped"), b = t.find((w) => w.id === n), m = Math.max(
|
|
12034
12041
|
0,
|
|
12035
12042
|
h.findIndex((w) => w.id === n)
|
|
12036
12043
|
);
|
|
@@ -12072,8 +12079,8 @@ const Hf = {
|
|
|
12072
12079
|
] })
|
|
12073
12080
|
] });
|
|
12074
12081
|
};
|
|
12075
|
-
|
|
12076
|
-
const
|
|
12082
|
+
Wf.displayName = "WizardShell";
|
|
12083
|
+
const Yf = {
|
|
12077
12084
|
refunded: "Refunded",
|
|
12078
12085
|
ineligible: "Ineligible",
|
|
12079
12086
|
partialLink: "Refund partial $ of this line",
|
|
@@ -12081,7 +12088,7 @@ const Wf = {
|
|
|
12081
12088
|
partialCancel: "Cancel",
|
|
12082
12089
|
restockTitle: "Restock this item",
|
|
12083
12090
|
restockHint: "Returns to current location."
|
|
12084
|
-
},
|
|
12091
|
+
}, Kf = ({
|
|
12085
12092
|
items: e,
|
|
12086
12093
|
selections: t,
|
|
12087
12094
|
onSelectionChange: n,
|
|
@@ -12090,7 +12097,7 @@ const Wf = {
|
|
|
12090
12097
|
className: s,
|
|
12091
12098
|
"data-testid": o = "refund-item-list"
|
|
12092
12099
|
}) => {
|
|
12093
|
-
const l = { ...
|
|
12100
|
+
const l = { ...Yf, ...i };
|
|
12094
12101
|
return /* @__PURE__ */ r("div", { className: p("flex flex-col", s), "data-testid": o, children: e.map((c) => {
|
|
12095
12102
|
const d = t[c.id], u = !!d?.selected, h = d?.mode ?? "full", b = c.state === "already_refunded" || c.state === "non_refundable", m = `${o}-row-${c.id}`, w = Me(c.paidAmount.value, void 0, c.paidAmount.currency);
|
|
12096
12103
|
return /* @__PURE__ */ r(
|
|
@@ -12230,12 +12237,12 @@ const Wf = {
|
|
|
12230
12237
|
);
|
|
12231
12238
|
}) });
|
|
12232
12239
|
};
|
|
12233
|
-
|
|
12234
|
-
const
|
|
12240
|
+
Kf.displayName = "RefundItemList";
|
|
12241
|
+
const Gf = {
|
|
12235
12242
|
amountLabel: "Refund amount",
|
|
12236
12243
|
descriptionLabel: "Add a note",
|
|
12237
12244
|
maxHint: "of {amount}"
|
|
12238
|
-
},
|
|
12245
|
+
}, Qf = ({
|
|
12239
12246
|
amount: e,
|
|
12240
12247
|
description: t,
|
|
12241
12248
|
max: n,
|
|
@@ -12245,7 +12252,7 @@ const Kf = {
|
|
|
12245
12252
|
className: o,
|
|
12246
12253
|
"data-testid": l = "custom-amount-field"
|
|
12247
12254
|
}) => {
|
|
12248
|
-
const c = { ...
|
|
12255
|
+
const c = { ...Gf, ...s }, d = c.maxHint.replace("{amount}", Me(n.value, void 0, n.currency)), u = J(
|
|
12249
12256
|
(b) => {
|
|
12250
12257
|
const m = Number.parseFloat(b.replace(",", "."));
|
|
12251
12258
|
i({ amount: Number.isFinite(m) ? m : null, description: t });
|
|
@@ -12278,7 +12285,7 @@ const Kf = {
|
|
|
12278
12285
|
/* @__PURE__ */ r("span", { className: "text-xs text-default-500", children: d })
|
|
12279
12286
|
] }),
|
|
12280
12287
|
/* @__PURE__ */ r(
|
|
12281
|
-
|
|
12288
|
+
ye,
|
|
12282
12289
|
{
|
|
12283
12290
|
label: c.descriptionLabel,
|
|
12284
12291
|
labelPlacement: "outside",
|
|
@@ -12291,18 +12298,18 @@ const Kf = {
|
|
|
12291
12298
|
)
|
|
12292
12299
|
] });
|
|
12293
12300
|
};
|
|
12294
|
-
|
|
12295
|
-
const
|
|
12301
|
+
Qf.displayName = "CustomAmountField";
|
|
12302
|
+
const Zf = {
|
|
12296
12303
|
title: "Refund total",
|
|
12297
12304
|
partialBadge: "Partial refund"
|
|
12298
|
-
},
|
|
12305
|
+
}, Xf = ({
|
|
12299
12306
|
total: e,
|
|
12300
12307
|
isPartial: t,
|
|
12301
12308
|
labels: n,
|
|
12302
12309
|
className: a,
|
|
12303
12310
|
"data-testid": i = "refund-total-bar"
|
|
12304
12311
|
}) => {
|
|
12305
|
-
const s = { ...
|
|
12312
|
+
const s = { ...Zf, ...n };
|
|
12306
12313
|
return /* @__PURE__ */ f("div", { className: p("flex flex-col items-center gap-2", a), "data-testid": i, children: [
|
|
12307
12314
|
/* @__PURE__ */ r(
|
|
12308
12315
|
Ui,
|
|
@@ -12317,11 +12324,11 @@ const Qf = {
|
|
|
12317
12324
|
t && /* @__PURE__ */ r(Pe, { color: "warning", size: "sm", radius: "full", variant: "flat", "data-testid": `${i}-partial`, children: s.partialBadge })
|
|
12318
12325
|
] });
|
|
12319
12326
|
};
|
|
12320
|
-
|
|
12321
|
-
const
|
|
12327
|
+
Xf.displayName = "RefundTotalBar";
|
|
12328
|
+
const Jf = {
|
|
12322
12329
|
label: "Reason",
|
|
12323
12330
|
placeholder: "Select a reason"
|
|
12324
|
-
},
|
|
12331
|
+
}, em = ({
|
|
12325
12332
|
options: e,
|
|
12326
12333
|
value: t,
|
|
12327
12334
|
onChange: n,
|
|
@@ -12330,7 +12337,7 @@ const Xf = {
|
|
|
12330
12337
|
className: s,
|
|
12331
12338
|
"data-testid": o = "reason-select"
|
|
12332
12339
|
}) => {
|
|
12333
|
-
const l = { ...
|
|
12340
|
+
const l = { ...Jf, ...i };
|
|
12334
12341
|
return /* @__PURE__ */ r(
|
|
12335
12342
|
Je,
|
|
12336
12343
|
{
|
|
@@ -12351,11 +12358,11 @@ const Xf = {
|
|
|
12351
12358
|
}
|
|
12352
12359
|
);
|
|
12353
12360
|
};
|
|
12354
|
-
|
|
12355
|
-
const
|
|
12361
|
+
em.displayName = "ReasonSelect";
|
|
12362
|
+
const tm = {
|
|
12356
12363
|
toggle: "Add a note",
|
|
12357
12364
|
optionalTag: "(optional)"
|
|
12358
|
-
},
|
|
12365
|
+
}, nm = ({
|
|
12359
12366
|
value: e,
|
|
12360
12367
|
onChange: t,
|
|
12361
12368
|
maxLength: n,
|
|
@@ -12363,7 +12370,7 @@ const em = {
|
|
|
12363
12370
|
className: i,
|
|
12364
12371
|
"data-testid": s = "notes-field"
|
|
12365
12372
|
}) => {
|
|
12366
|
-
const o = { ...
|
|
12373
|
+
const o = { ...tm, ...a }, [l, c] = H(e !== "");
|
|
12367
12374
|
return /* @__PURE__ */ r("div", { className: p(i), "data-testid": s, children: l ? /* @__PURE__ */ r(
|
|
12368
12375
|
bs,
|
|
12369
12376
|
{
|
|
@@ -12390,19 +12397,19 @@ const em = {
|
|
|
12390
12397
|
}
|
|
12391
12398
|
) });
|
|
12392
12399
|
};
|
|
12393
|
-
|
|
12394
|
-
const
|
|
12400
|
+
nm.displayName = "NotesField";
|
|
12401
|
+
const rm = {
|
|
12395
12402
|
legend: "Acting as",
|
|
12396
12403
|
manager: "Manager",
|
|
12397
12404
|
cashier: "Cashier"
|
|
12398
|
-
},
|
|
12405
|
+
}, am = ["manager", "cashier"], im = ({
|
|
12399
12406
|
role: e,
|
|
12400
12407
|
onChange: t,
|
|
12401
12408
|
labels: n,
|
|
12402
12409
|
className: a,
|
|
12403
12410
|
"data-testid": i = "acting-as-toggle"
|
|
12404
12411
|
}) => {
|
|
12405
|
-
const s = { ...
|
|
12412
|
+
const s = { ...rm, ...n }, o = `${i}-legend`;
|
|
12406
12413
|
return /* @__PURE__ */ f("div", { className: p("flex items-center gap-2", a), "data-testid": i, children: [
|
|
12407
12414
|
/* @__PURE__ */ r("span", { id: o, className: "text-xs font-semibold text-default-500", children: s.legend }),
|
|
12408
12415
|
/* @__PURE__ */ r(
|
|
@@ -12411,7 +12418,7 @@ const nm = {
|
|
|
12411
12418
|
role: "group",
|
|
12412
12419
|
"aria-labelledby": o,
|
|
12413
12420
|
className: "inline-flex rounded-lg border border-default-200 p-0.5",
|
|
12414
|
-
children:
|
|
12421
|
+
children: am.map((l) => {
|
|
12415
12422
|
const c = e === l;
|
|
12416
12423
|
return /* @__PURE__ */ r(
|
|
12417
12424
|
B,
|
|
@@ -12436,8 +12443,8 @@ const nm = {
|
|
|
12436
12443
|
)
|
|
12437
12444
|
] });
|
|
12438
12445
|
};
|
|
12439
|
-
|
|
12440
|
-
const
|
|
12446
|
+
im.displayName = "ActingAsToggle";
|
|
12447
|
+
const sm = {
|
|
12441
12448
|
split: "Split across multiple methods",
|
|
12442
12449
|
declinedTitle: "Refund declined",
|
|
12443
12450
|
declinedBody: "The processor declined this refund. Nothing was sent.",
|
|
@@ -12445,12 +12452,12 @@ const im = {
|
|
|
12445
12452
|
networkBody: "Couldn't reach the processor. Nothing was sent.",
|
|
12446
12453
|
retry: "Try again",
|
|
12447
12454
|
chooseDifferent: "Choose different method"
|
|
12448
|
-
},
|
|
12455
|
+
}, lm = {
|
|
12449
12456
|
card: "lucide:credit-card",
|
|
12450
12457
|
cash: "lucide:dollar-sign",
|
|
12451
12458
|
check: "lucide:edit-3",
|
|
12452
12459
|
other: "lucide:more-horizontal"
|
|
12453
|
-
}, ha = "__split__",
|
|
12460
|
+
}, ha = "__split__", om = ({
|
|
12454
12461
|
tenders: e,
|
|
12455
12462
|
selectedTenderId: t,
|
|
12456
12463
|
onSelect: n,
|
|
@@ -12460,7 +12467,7 @@ const im = {
|
|
|
12460
12467
|
className: o,
|
|
12461
12468
|
"data-testid": l = "money-back-methods"
|
|
12462
12469
|
}) => {
|
|
12463
|
-
const c = { ...
|
|
12470
|
+
const c = { ...sm, ...s }, d = ce(
|
|
12464
12471
|
() => [
|
|
12465
12472
|
...e.map((m) => ({
|
|
12466
12473
|
key: m.tenderId,
|
|
@@ -12472,7 +12479,7 @@ const im = {
|
|
|
12472
12479
|
"en-US",
|
|
12473
12480
|
m.maxRefundable.currency
|
|
12474
12481
|
)}`,
|
|
12475
|
-
icon:
|
|
12482
|
+
icon: lm[m.kind],
|
|
12476
12483
|
"data-testid": `${l}-tile-${m.tenderId}`
|
|
12477
12484
|
})),
|
|
12478
12485
|
{
|
|
@@ -12516,8 +12523,8 @@ const im = {
|
|
|
12516
12523
|
)
|
|
12517
12524
|
] });
|
|
12518
12525
|
};
|
|
12519
|
-
|
|
12520
|
-
const
|
|
12526
|
+
om.displayName = "MoneyBackMethods";
|
|
12527
|
+
const cm = (e) => e.refunded !== null, dm = {
|
|
12521
12528
|
title: "Split refund",
|
|
12522
12529
|
refundedSoFar: "Refunded so far",
|
|
12523
12530
|
remaining: "Remaining",
|
|
@@ -12528,7 +12535,7 @@ const om = (e) => e.refunded !== null, cm = {
|
|
|
12528
12535
|
partNetworkBody: "Couldn't reach the processor. Completed parts are preserved.",
|
|
12529
12536
|
retry: "Try again",
|
|
12530
12537
|
chooseDifferent: "Choose different method"
|
|
12531
|
-
},
|
|
12538
|
+
}, um = ({
|
|
12532
12539
|
parts: e,
|
|
12533
12540
|
refundedSoFar: t,
|
|
12534
12541
|
remaining: n,
|
|
@@ -12541,7 +12548,7 @@ const om = (e) => e.refunded !== null, cm = {
|
|
|
12541
12548
|
className: d,
|
|
12542
12549
|
"data-testid": u = "split-refund-panel"
|
|
12543
12550
|
}) => {
|
|
12544
|
-
const h = { ...
|
|
12551
|
+
const h = { ...dm, ...c }, b = e.filter(cm), m = e.find((x) => x.tenderId === a.tenderId)?.label, w = J(
|
|
12545
12552
|
(x) => {
|
|
12546
12553
|
const N = Number.parseFloat(x.replace(",", "."));
|
|
12547
12554
|
a.onAmountChange(Number.isFinite(N) ? N : 0);
|
|
@@ -12648,11 +12655,11 @@ const om = (e) => e.refunded !== null, cm = {
|
|
|
12648
12655
|
] })
|
|
12649
12656
|
] });
|
|
12650
12657
|
};
|
|
12651
|
-
|
|
12652
|
-
const
|
|
12658
|
+
um.displayName = "SplitRefundPanel";
|
|
12659
|
+
const fm = {
|
|
12653
12660
|
label: "Enter supervisor PIN",
|
|
12654
12661
|
placeholder: "••••"
|
|
12655
|
-
},
|
|
12662
|
+
}, mm = ({
|
|
12656
12663
|
pin: e,
|
|
12657
12664
|
onChange: t,
|
|
12658
12665
|
error: n,
|
|
@@ -12660,9 +12667,9 @@ const um = {
|
|
|
12660
12667
|
className: i,
|
|
12661
12668
|
"data-testid": s = "supervisor-pin-field"
|
|
12662
12669
|
}) => {
|
|
12663
|
-
const o = { ...
|
|
12670
|
+
const o = { ...fm, ...a };
|
|
12664
12671
|
return /* @__PURE__ */ r(
|
|
12665
|
-
|
|
12672
|
+
ye,
|
|
12666
12673
|
{
|
|
12667
12674
|
type: "password",
|
|
12668
12675
|
inputMode: "numeric",
|
|
@@ -12680,8 +12687,8 @@ const um = {
|
|
|
12680
12687
|
}
|
|
12681
12688
|
);
|
|
12682
12689
|
};
|
|
12683
|
-
|
|
12684
|
-
const
|
|
12690
|
+
mm.displayName = "SupervisorPinField";
|
|
12691
|
+
const hm = {
|
|
12685
12692
|
processing: "Processing refund…",
|
|
12686
12693
|
title: "Refund complete",
|
|
12687
12694
|
destinationsTitle: "Refund destinations",
|
|
@@ -12691,10 +12698,10 @@ const mm = {
|
|
|
12691
12698
|
done: "Done",
|
|
12692
12699
|
pending: "Pending",
|
|
12693
12700
|
succeeded: "Refunded"
|
|
12694
|
-
},
|
|
12701
|
+
}, pm = {
|
|
12695
12702
|
succeeded: "success",
|
|
12696
12703
|
pending: "warning"
|
|
12697
|
-
},
|
|
12704
|
+
}, gm = ({
|
|
12698
12705
|
state: e,
|
|
12699
12706
|
destinations: t,
|
|
12700
12707
|
onSendReceipt: n,
|
|
@@ -12703,7 +12710,7 @@ const mm = {
|
|
|
12703
12710
|
className: s,
|
|
12704
12711
|
"data-testid": o = "refund-complete-view"
|
|
12705
12712
|
}) => {
|
|
12706
|
-
const l = { ...
|
|
12713
|
+
const l = { ...hm, ...i };
|
|
12707
12714
|
return e === "processing" ? /* @__PURE__ */ r(
|
|
12708
12715
|
"div",
|
|
12709
12716
|
{
|
|
@@ -12735,7 +12742,7 @@ const mm = {
|
|
|
12735
12742
|
/* @__PURE__ */ r("span", { className: "text-sm font-semibold", children: c.label }),
|
|
12736
12743
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
|
|
12737
12744
|
/* @__PURE__ */ r("span", { className: "text-sm text-default-500", children: Me(c.amount.value, void 0, c.amount.currency) }),
|
|
12738
|
-
/* @__PURE__ */ r(Pe, { color:
|
|
12745
|
+
/* @__PURE__ */ r(Pe, { color: pm[c.status], size: "sm", radius: "full", variant: "flat", children: c.status === "succeeded" ? l.succeeded : l.pending })
|
|
12739
12746
|
] })
|
|
12740
12747
|
]
|
|
12741
12748
|
},
|
|
@@ -12772,120 +12779,120 @@ const mm = {
|
|
|
12772
12779
|
}
|
|
12773
12780
|
);
|
|
12774
12781
|
};
|
|
12775
|
-
|
|
12782
|
+
gm.displayName = "RefundCompleteView";
|
|
12776
12783
|
export {
|
|
12777
|
-
|
|
12784
|
+
im as ActingAsToggle,
|
|
12778
12785
|
Hu as AdminTable,
|
|
12779
|
-
|
|
12786
|
+
tf as AdminTextField,
|
|
12780
12787
|
Wu as AdminToolbar,
|
|
12781
12788
|
wo as AppliedCodeCard,
|
|
12782
12789
|
B as Button,
|
|
12783
|
-
|
|
12790
|
+
yh as CashTenderForm,
|
|
12784
12791
|
Jd as CatalogItemCard,
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12792
|
+
ff as CheckTenderForm,
|
|
12793
|
+
mh as CommitmentDetails,
|
|
12794
|
+
Mf as ConfirmDialog,
|
|
12788
12795
|
dr as ConfirmationModal,
|
|
12789
|
-
|
|
12790
|
-
|
|
12796
|
+
eh as ConfirmationPageTemplate,
|
|
12797
|
+
Qf as CustomAmountField,
|
|
12791
12798
|
mi as DatePicker,
|
|
12792
12799
|
Ou as DimensionChip,
|
|
12793
12800
|
Sc as DonationAmounts,
|
|
12794
12801
|
_i as EmptyState,
|
|
12795
12802
|
Ti as ErrorState,
|
|
12796
|
-
|
|
12797
|
-
|
|
12803
|
+
ah as EventDetails,
|
|
12804
|
+
th as EventDetailsTemplate,
|
|
12798
12805
|
Ec as ExpireCartTimer,
|
|
12799
12806
|
At as FeedbackState,
|
|
12800
12807
|
Su as FilterPopover,
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
+
nh as Footer,
|
|
12809
|
+
Zm as HeroUIProvider,
|
|
12810
|
+
uh as InstallmentFundAssignment,
|
|
12811
|
+
fh as InstallmentFundAssignmentSkeleton,
|
|
12812
|
+
hh as InstallmentSchedule,
|
|
12813
|
+
ph as InstallmentScheduleSkeleton,
|
|
12814
|
+
gh as InstallmentTable,
|
|
12808
12815
|
Xd as ItemCard,
|
|
12809
12816
|
Ou as KeyValueChip,
|
|
12810
|
-
|
|
12811
|
-
|
|
12817
|
+
of as ListPanel,
|
|
12818
|
+
Df as LoadingOverlay,
|
|
12812
12819
|
Pi as LoadingState,
|
|
12813
|
-
|
|
12820
|
+
bh as MembershipSelectCards,
|
|
12814
12821
|
zi as ModalShell,
|
|
12815
12822
|
Bi as ModalShellFooter,
|
|
12816
12823
|
Ri as ModalShellHeader,
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12824
|
+
om as MoneyBackMethods,
|
|
12825
|
+
rh as Multiselect,
|
|
12826
|
+
Jm as Navbar,
|
|
12827
|
+
nm as NotesField,
|
|
12821
12828
|
Ln as OfferCard,
|
|
12822
12829
|
Lc as OfferCardEmpty,
|
|
12823
12830
|
Ic as OfferCardError,
|
|
12824
12831
|
Rc as OfferCardList,
|
|
12825
12832
|
Tc as OfferCardSkeleton,
|
|
12826
|
-
|
|
12833
|
+
pf as OtherTenderForm,
|
|
12827
12834
|
Mu as PageHeader,
|
|
12828
|
-
|
|
12835
|
+
lf as PaginationSummary,
|
|
12829
12836
|
ji as PaymentCashChangeBanner,
|
|
12830
12837
|
Zt as PaymentSubAmountInput,
|
|
12831
|
-
|
|
12838
|
+
Ef as PaymentSuccessView,
|
|
12832
12839
|
Ui as PaymentTotalBanner,
|
|
12833
|
-
|
|
12840
|
+
af as PickerRow,
|
|
12834
12841
|
gc as RICH_TEXT_PRESETS,
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12842
|
+
em as ReasonSelect,
|
|
12843
|
+
Xm as RedeemCodeInput,
|
|
12844
|
+
gm as RefundCompleteView,
|
|
12845
|
+
Kf as RefundItemList,
|
|
12846
|
+
Xf as RefundTotalBar,
|
|
12840
12847
|
cd as RevenueDistributionCard,
|
|
12841
12848
|
dd as RevenueDistributionEmpty,
|
|
12842
12849
|
fd as RevenueDistributionError,
|
|
12843
12850
|
md as RevenueDistributionSkeleton,
|
|
12844
12851
|
Nc as RichTextArea,
|
|
12845
|
-
|
|
12852
|
+
rf as RowActions,
|
|
12846
12853
|
Je as Select,
|
|
12847
12854
|
Fu as SessionTimeline,
|
|
12848
|
-
|
|
12849
|
-
|
|
12855
|
+
wf as SplitPaymentSummary,
|
|
12856
|
+
um as SplitRefundPanel,
|
|
12850
12857
|
Tu as StatusChip,
|
|
12851
12858
|
hi as Stepper,
|
|
12852
12859
|
fu as SuccessState,
|
|
12853
|
-
|
|
12854
|
-
|
|
12860
|
+
Hf as Summary,
|
|
12861
|
+
mm as SupervisorPinField,
|
|
12855
12862
|
zu as TableSkeleton,
|
|
12856
|
-
|
|
12863
|
+
xh as TicketSelection,
|
|
12857
12864
|
Vi as TileSelect,
|
|
12858
12865
|
mu as Toggle,
|
|
12859
12866
|
Yu as UnderlineTabs,
|
|
12860
|
-
|
|
12861
|
-
|
|
12862
|
-
|
|
12867
|
+
Wf as WizardShell,
|
|
12868
|
+
ef as adminFieldErrorClass,
|
|
12869
|
+
Ju as adminFieldHintClass,
|
|
12863
12870
|
Ku as adminFieldLabelClass,
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
|
|
12871
|
+
Zu as adminInputClass,
|
|
12872
|
+
Xu as adminInputReadOnlyClass,
|
|
12873
|
+
Qu as adminInputWrapperClass,
|
|
12867
12874
|
Vu as adminRowClass,
|
|
12868
|
-
|
|
12875
|
+
Qm as adminSurfaceCss,
|
|
12869
12876
|
Ma as adminSurfaceTokens,
|
|
12870
12877
|
Uu as adminTableClass,
|
|
12871
12878
|
ju as adminTableFooterClass,
|
|
12872
12879
|
Bu as adminTdClass,
|
|
12873
12880
|
Ru as adminThClass,
|
|
12874
|
-
|
|
12881
|
+
dh as calculateAllocationDifference,
|
|
12875
12882
|
Vr as computeChange,
|
|
12876
12883
|
pi as currencyFractionDigits,
|
|
12877
12884
|
Me as formatMoney,
|
|
12878
12885
|
qr as formatOfferCurrency,
|
|
12879
|
-
|
|
12880
|
-
|
|
12886
|
+
sh as formatRevenueAmount,
|
|
12887
|
+
lh as formatRevenueCurrency,
|
|
12881
12888
|
Fd as generateAutomaticInstallments,
|
|
12882
12889
|
Ei as generateDistributionId,
|
|
12883
|
-
|
|
12890
|
+
oh as getCurrencySymbol,
|
|
12884
12891
|
Oc as offerCardVariants,
|
|
12885
12892
|
Pc as offerListVariants,
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12893
|
+
sf as pageRange,
|
|
12894
|
+
ih as parseOfferCurrency,
|
|
12895
|
+
ch as parseRevenueCurrency,
|
|
12889
12896
|
Qo as roundToCurrency
|
|
12890
12897
|
};
|
|
12891
12898
|
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('.ProseMirror{flex:1;width:100%;min-height:100%;height:100%;cursor:text;background-color:#fff;padding:1rem;overflow-y:auto;box-sizing:border-box}.ProseMirror p{min-height:1.5em}.dark .ProseMirror{background-color:rgb(var(--nextui-background))}.ProseMirror ul{list-style-type:disc!important;list-style-position:outside!important;padding-left:2rem!important;margin:1rem 0!important;display:block!important}.ProseMirror ol{list-style-type:decimal!important;list-style-position:outside!important;padding-left:2rem!important;margin:1rem 0!important;display:block!important}.ProseMirror ul li,.ProseMirror ol li{display:list-item!important;list-style:inherit!important;margin:.25rem 0!important}.ProseMirror ul li p,.ProseMirror ol li p{margin:0!important;display:inline!important}.ProseMirror ul[data-type=taskList]{list-style:none!important;padding-left:0!important;margin:1rem 0!important}.ProseMirror ul[data-type=taskList] li{display:flex!important;align-items:flex-start!important;margin:.5rem 0!important}.ProseMirror ul[data-type=taskList] li label{margin-right:.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ProseMirror ul[data-type=taskList] li input[type=checkbox]{cursor:pointer;margin-top:.25rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{line-height:1.2!important;margin:1rem 0 .5rem!important;font-weight:600!important}.ProseMirror h1{font-size:2rem!important}.ProseMirror h2{font-size:1.5rem!important}.ProseMirror h3{font-size:1.25rem!important}.ProseMirror h4{font-size:1.1rem!important}.ProseMirror h5{font-size:1rem!important;font-weight:600!important}.ProseMirror h6{font-size:.9rem!important;font-weight:600!important}.ProseMirror code{background-color:rgb(var(--nextui-default-100));border-radius:.4rem;color:rgb(var(--nextui-default-800));font-size:.85rem;padding:.25em .3em}.ProseMirror pre{background:rgb(var(--nextui-default-900));border-radius:.5rem;color:rgb(var(--nextui-default-50));font-family:JetBrainsMono,monospace;margin:1.5rem 0;padding:.75rem 1rem;overflow-x:auto}.ProseMirror pre code{background:none;color:inherit;font-size:.8rem;padding:0}.ProseMirror mark{background-color:#faf594;border-radius:.4rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:.1rem .3rem}.ProseMirror blockquote{border-left:3px solid rgb(var(--nextui-default-300));margin:1.5rem 0;padding-left:1rem;color:rgb(var(--nextui-default-600))}.ProseMirror hr{border:none;border-top:1px solid rgb(var(--nextui-divider));margin:2rem 0}.ProseMirror a{color:rgb(var(--nextui-primary));text-decoration:underline;cursor:pointer}.ProseMirror a:hover{text-decoration:underline}.ProseMirror strong{font-weight:700!important}.ProseMirror em{font-style:italic!important}.ProseMirror s{text-decoration:line-through!important}.ProseMirror u{text-decoration:underline!important}.ProseMirror .has-text-align-left,.ProseMirror [style*="text-align: left"]{text-align:left!important}.ProseMirror .has-text-align-center,.ProseMirror [style*="text-align: center"]{text-align:center!important}.ProseMirror .has-text-align-right,.ProseMirror [style*="text-align: right"]{text-align:right!important}.ProseMirror .has-text-align-justify,.ProseMirror [style*="text-align: justify"]{text-align:justify!important}.ProseMirror ul li[style*="text-align: left"],.ProseMirror ol li[style*="text-align: left"]{text-align:left!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: center"],.ProseMirror ol li[style*="text-align: center"]{text-align:center!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: right"],.ProseMirror ol li[style*="text-align: right"]{text-align:right!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: justify"],.ProseMirror ol li[style*="text-align: justify"]{text-align:justify!important;list-style-position:inside!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: left"]{justify-content:flex-start!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: center"]{justify-content:center!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: right"]{justify-content:flex-end!important}.ProseMirror p.is-editor-empty:first-child:before{color:rgb(var(--nextui-default-400));content:attr(data-placeholder);float:left;height:0;pointer-events:none}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|