@tesouro/embedded-components-react 0.5.278 → 0.5.280
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.d.ts +21 -6
- package/dist/lib/ReceivablesWidget.d.ts +21 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +24 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +173 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +42 -94
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +91 -76
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +67 -173
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +42 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +28 -132
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +137 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +16 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +66 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +304 -287
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/customer.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/permissions.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +62 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +41 -35
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +124 -124
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableCustomerPicker.js +109 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +520 -476
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePreview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +92 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +79 -75
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +9 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +26 -228
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +227 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +50 -212
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +193 -138
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +157 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +2 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +118 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +3 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +209 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +36 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +53 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +17 -35
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +73 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +39 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +26 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +34 -84
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +14 -492
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +79 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +490 -68
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -487
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +41 -217
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +70 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +440 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +224 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +21 -263
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +261 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +2 -237
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +100 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +21 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +226 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +3 -60
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +233 -178
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +85 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +4 -80
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetDomEvents.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +0 -100
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { RECURRENCE_CHIP_CLASS as r, RECURRENCE_DOT_CLASS as i } from "./index34.js";
|
|
4
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
3
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className:
|
|
11
|
-
children: [l ? /* @__PURE__ */ a(l, {
|
|
12
|
-
className: "ttw:size-3",
|
|
13
|
-
"aria-hidden": !0
|
|
14
|
-
}) : null, i]
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
function c({ label: n, tone: s }) {
|
|
18
|
-
return /* @__PURE__ */ o(e, {
|
|
19
|
-
variant: "outline",
|
|
20
|
-
className: t("ttw:inline-flex ttw:items-center ttw:gap-1 ttw:border-transparent", r[s]),
|
|
21
|
-
children: [/* @__PURE__ */ a("span", {
|
|
22
|
-
"aria-hidden": !0,
|
|
23
|
-
className: t("ttw:inline-block ttw:size-2 ttw:rounded-full", i[s])
|
|
24
|
-
}), n]
|
|
4
|
+
function n({ className: n, label: r }) {
|
|
5
|
+
return /* @__PURE__ */ t("div", {
|
|
6
|
+
role: r ? "status" : void 0,
|
|
7
|
+
"aria-label": r,
|
|
8
|
+
className: e("ttw:size-8 ttw:animate-spin ttw:rounded-full ttw:border-3 ttw:border-primary ttw:border-t-transparent", n)
|
|
25
9
|
});
|
|
26
10
|
}
|
|
27
11
|
//#endregion
|
|
28
|
-
export {
|
|
12
|
+
export { n as LoadingSpinner };
|
|
@@ -1,88 +1,38 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ChevronRight as s } from "lucide-react";
|
|
1
|
+
import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuTrigger as i, Tooltip as a, TooltipContent as o, TooltipTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ACTION_ICON as c, headerTooltipArrowClass as l, headerTooltipClass as u, preventTooltipFocusOpen as d } from "./index26.js";
|
|
3
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
4
|
+
import { MoreVerticalIcon as m } from "lucide-react";
|
|
6
5
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
children: d.scheduleIssueDateColumn
|
|
20
|
-
}),
|
|
21
|
-
/* @__PURE__ */ a("th", {
|
|
22
|
-
scope: "col",
|
|
23
|
-
className: c,
|
|
24
|
-
children: d.scheduleAmountColumn
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ a("th", {
|
|
27
|
-
scope: "col",
|
|
28
|
-
className: c,
|
|
29
|
-
children: d.scheduleStatusColumn
|
|
30
|
-
}),
|
|
31
|
-
/* @__PURE__ */ a("th", {
|
|
32
|
-
scope: "col",
|
|
33
|
-
className: c,
|
|
34
|
-
children: d.scheduleNumberColumn
|
|
35
|
-
}),
|
|
36
|
-
/* @__PURE__ */ a("th", {
|
|
37
|
-
className: "ttw:h-10 ttw:w-6 ttw:pl-2",
|
|
38
|
-
"aria-hidden": "true"
|
|
6
|
+
function h({ actions: h, triggerLabel: g, getActionLabel: _, onSelect: v, disabledActions: y, className: b }) {
|
|
7
|
+
return /* @__PURE__ */ p(t, { children: [/* @__PURE__ */ p(a, { children: [/* @__PURE__ */ f(s, {
|
|
8
|
+
asChild: !0,
|
|
9
|
+
onFocus: d,
|
|
10
|
+
children: /* @__PURE__ */ f(i, {
|
|
11
|
+
asChild: !0,
|
|
12
|
+
children: /* @__PURE__ */ f(e, {
|
|
13
|
+
variant: "ghost",
|
|
14
|
+
size: "icon",
|
|
15
|
+
className: b,
|
|
16
|
+
"aria-label": g,
|
|
17
|
+
children: /* @__PURE__ */ f(m, { className: "ttw:size-4" })
|
|
39
18
|
})
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
status: t.chip.status,
|
|
58
|
-
variant: "filled"
|
|
59
|
-
}) : /* @__PURE__ */ a(i, {
|
|
60
|
-
label: t.chip.label,
|
|
61
|
-
tone: t.chip.tone
|
|
62
|
-
})
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ a("td", {
|
|
65
|
-
className: l,
|
|
66
|
-
children: t.numberLabel
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ a("td", {
|
|
69
|
-
className: "ttw:h-9 ttw:w-6 ttw:py-2 ttw:pl-2 ttw:text-right ttw:text-muted-foreground",
|
|
70
|
-
children: c ? /* @__PURE__ */ a(e, {
|
|
71
|
-
variant: "ghost",
|
|
72
|
-
size: "icon",
|
|
73
|
-
className: "ttw:size-6",
|
|
74
|
-
"aria-label": t.openLabel,
|
|
75
|
-
onClick: c,
|
|
76
|
-
children: /* @__PURE__ */ a(s, {
|
|
77
|
-
className: "ttw:size-4",
|
|
78
|
-
"aria-hidden": "true"
|
|
79
|
-
})
|
|
80
|
-
}) : null
|
|
81
|
-
})
|
|
82
|
-
]
|
|
83
|
-
}, t.id);
|
|
84
|
-
}) })]
|
|
85
|
-
});
|
|
19
|
+
})
|
|
20
|
+
}), /* @__PURE__ */ f(o, {
|
|
21
|
+
className: u,
|
|
22
|
+
arrowClassName: l,
|
|
23
|
+
children: g
|
|
24
|
+
})] }), /* @__PURE__ */ f(n, {
|
|
25
|
+
align: "end",
|
|
26
|
+
children: h.map((e) => {
|
|
27
|
+
let t = c[e];
|
|
28
|
+
return /* @__PURE__ */ p(r, {
|
|
29
|
+
variant: e === "delete" ? "destructive" : "default",
|
|
30
|
+
disabled: y?.includes(e),
|
|
31
|
+
onClick: () => v(e),
|
|
32
|
+
children: [/* @__PURE__ */ f(t, { className: "ttw:size-4" }), _(e)]
|
|
33
|
+
}, e);
|
|
34
|
+
})
|
|
35
|
+
})] });
|
|
86
36
|
}
|
|
87
37
|
//#endregion
|
|
88
|
-
export {
|
|
38
|
+
export { h as OverflowMenu };
|
|
@@ -1,494 +1,16 @@
|
|
|
1
|
-
import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r, Badge as i, Button as a, Sheet as o, SheetContent as ee, SheetDescription as s, SheetHeader as te, SheetTitle as c, Tooltip as l, TooltipContent as u, TooltipProvider as d, TooltipTrigger as f, Typography as p, cn as m } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { RECEIVABLE_DETAILS_PANEL_LABELS_EN as ne } from "./index13.js";
|
|
3
|
-
import { ReceivableStatusBadge as re } from "./index22.js";
|
|
4
|
-
import { RECEIVABLE_DETAILS_SECTION as h } from "./index25.js";
|
|
5
|
-
import { ACTION_ICON as ie, ACTION_LABEL_KEY as g, STATUS_ICON as _, amountValueToneClass as ae, headerIconButtonClass as v, headerTooltipArrowClass as y, headerTooltipClass as b, preventTooltipFocusOpen as x, sectionChevronClass as S, sectionCountBadgeClass as C, sectionItemClass as w, sectionTriggerClass as T } from "./index23.js";
|
|
6
|
-
import { AmountCell as E } from "./index24.js";
|
|
7
|
-
import { AttachmentsItem as D } from "./index26.js";
|
|
8
|
-
import { AuditHistoryItem as O } from "./index27.js";
|
|
9
|
-
import { CloseButton as k } from "./index28.js";
|
|
10
|
-
import { CustomerNameRow as oe } from "./index29.js";
|
|
11
|
-
import { DetailsMessage as se } from "./index30.js";
|
|
12
|
-
import { InfoRow as A } from "./index31.js";
|
|
13
|
-
import { LoadingSpinner as j } from "./index32.js";
|
|
14
|
-
import { OverflowMenu as ce } from "./index33.js";
|
|
15
|
-
import { SeriesStatusChip as le } from "./index35.js";
|
|
16
|
-
import { ScheduledInvoicesTable as ue } from "./index36.js";
|
|
17
|
-
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
18
|
-
import { ChevronLeft as F, CircleAlert as I, EyeIcon as L, Repeat as R } from "lucide-react";
|
|
19
1
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
children: [/* @__PURE__ */ N(n, { className: "ttw:size-4" }), X(e)]
|
|
34
|
-
}, e);
|
|
35
|
-
})
|
|
36
|
-
}) : null;
|
|
37
|
-
return /* @__PURE__ */ N(o, {
|
|
38
|
-
open: z,
|
|
39
|
-
modal: !1,
|
|
40
|
-
onOpenChange: B,
|
|
41
|
-
children: /* @__PURE__ */ P(ee, {
|
|
42
|
-
showCloseButton: !1,
|
|
43
|
-
onFocusOutside: (e) => e.preventDefault(),
|
|
44
|
-
className: "ttw:overflow-y-auto ttw:border-l-0 ttw:p-0 ttw:sm:max-w-150",
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ N(s, {
|
|
47
|
-
className: "ttw:sr-only",
|
|
48
|
-
children: q.hiddenDescription
|
|
49
|
-
}),
|
|
50
|
-
Y ? null : /* @__PURE__ */ N(k, {
|
|
51
|
-
label: q.closeButton,
|
|
52
|
-
onClose: G,
|
|
53
|
-
className: m(v, "ttw:absolute ttw:right-4 ttw:top-4 ttw:z-10")
|
|
54
|
-
}),
|
|
55
|
-
H && !U ? /* @__PURE__ */ N(se, { ...H }) : !Y || !V || !J ? /* @__PURE__ */ P("div", {
|
|
56
|
-
className: "ttw:flex ttw:h-full ttw:w-full ttw:items-center ttw:justify-center",
|
|
57
|
-
children: [/* @__PURE__ */ N(c, {
|
|
58
|
-
className: "ttw:sr-only",
|
|
59
|
-
children: q.loadingTitle
|
|
60
|
-
}), /* @__PURE__ */ N(j, {})]
|
|
61
|
-
}) : /* @__PURE__ */ P(M, { children: [
|
|
62
|
-
J.seriesLink ? /* @__PURE__ */ N("div", {
|
|
63
|
-
className: "ttw:border-b ttw:border-border ttw:px-6 ttw:py-3",
|
|
64
|
-
children: /* @__PURE__ */ P("button", {
|
|
65
|
-
type: "button",
|
|
66
|
-
onClick: J.seriesLink.onOpen,
|
|
67
|
-
className: "ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-primary ttw:hover:underline",
|
|
68
|
-
children: [/* @__PURE__ */ N(F, {
|
|
69
|
-
className: "ttw:size-4",
|
|
70
|
-
"aria-hidden": "true"
|
|
71
|
-
}), J.seriesLink.backLabel]
|
|
72
|
-
})
|
|
73
|
-
}) : null,
|
|
74
|
-
/* @__PURE__ */ P(te, {
|
|
75
|
-
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-2 ttw:space-y-0 ttw:px-6 ttw:py-4",
|
|
76
|
-
children: [/* @__PURE__ */ P("div", {
|
|
77
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
78
|
-
children: [/* @__PURE__ */ N(c, {
|
|
79
|
-
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
80
|
-
children: V.title
|
|
81
|
-
}), J.subtitle ? /* @__PURE__ */ N(p, {
|
|
82
|
-
variant: "body2",
|
|
83
|
-
color: "muted",
|
|
84
|
-
children: J.subtitle
|
|
85
|
-
}) : null]
|
|
86
|
-
}), /* @__PURE__ */ N(d, {
|
|
87
|
-
delayDuration: 500,
|
|
88
|
-
children: /* @__PURE__ */ P("div", {
|
|
89
|
-
className: "ttw:flex ttw:items-center ttw:gap-1.5",
|
|
90
|
-
children: [
|
|
91
|
-
V.pdfUrl ? /* @__PURE__ */ P(l, { children: [/* @__PURE__ */ N(f, {
|
|
92
|
-
asChild: !0,
|
|
93
|
-
onFocus: x,
|
|
94
|
-
children: /* @__PURE__ */ N(a, {
|
|
95
|
-
asChild: !0,
|
|
96
|
-
variant: "ghost",
|
|
97
|
-
size: "icon",
|
|
98
|
-
className: v,
|
|
99
|
-
children: /* @__PURE__ */ N("a", {
|
|
100
|
-
href: V.pdfUrl,
|
|
101
|
-
target: "_blank",
|
|
102
|
-
rel: "noreferrer",
|
|
103
|
-
"aria-label": q.viewPdfButton,
|
|
104
|
-
children: /* @__PURE__ */ N(L, { className: "ttw:size-4" })
|
|
105
|
-
})
|
|
106
|
-
})
|
|
107
|
-
}), /* @__PURE__ */ N(u, {
|
|
108
|
-
className: b,
|
|
109
|
-
arrowClassName: y,
|
|
110
|
-
children: q.viewPdfButton
|
|
111
|
-
})] }) : null,
|
|
112
|
-
J.overflowActions.length > 0 ? /* @__PURE__ */ N(ce, {
|
|
113
|
-
actions: J.overflowActions,
|
|
114
|
-
triggerLabel: q.moreActionsLabel,
|
|
115
|
-
getActionLabel: X,
|
|
116
|
-
onSelect: (e) => W(e, V),
|
|
117
|
-
disabledActions: K,
|
|
118
|
-
className: v
|
|
119
|
-
}) : null,
|
|
120
|
-
/* @__PURE__ */ P(l, { children: [/* @__PURE__ */ N(f, {
|
|
121
|
-
asChild: !0,
|
|
122
|
-
onFocus: x,
|
|
123
|
-
children: /* @__PURE__ */ N(k, {
|
|
124
|
-
label: q.closeButton,
|
|
125
|
-
onClose: G,
|
|
126
|
-
className: v
|
|
127
|
-
})
|
|
128
|
-
}), /* @__PURE__ */ N(u, {
|
|
129
|
-
className: b,
|
|
130
|
-
arrowClassName: y,
|
|
131
|
-
children: q.closeButton
|
|
132
|
-
})] })
|
|
133
|
-
]
|
|
134
|
-
})
|
|
135
|
-
})]
|
|
136
|
-
}),
|
|
137
|
-
/* @__PURE__ */ P("div", {
|
|
138
|
-
className: "ttw:flex ttw:flex-col",
|
|
139
|
-
children: [/* @__PURE__ */ N("div", {
|
|
140
|
-
className: "ttw:px-6",
|
|
141
|
-
children: Q ? /* @__PURE__ */ P("div", {
|
|
142
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-violet-50 ttw:p-4",
|
|
143
|
-
children: [
|
|
144
|
-
/* @__PURE__ */ P("div", {
|
|
145
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
146
|
-
children: [/* @__PURE__ */ N(p, {
|
|
147
|
-
variant: "caption",
|
|
148
|
-
color: "muted",
|
|
149
|
-
children: q.recurringAmountCaption
|
|
150
|
-
}), /* @__PURE__ */ P("div", {
|
|
151
|
-
className: "ttw:flex ttw:items-baseline ttw:gap-1.5",
|
|
152
|
-
children: [/* @__PURE__ */ N(p, {
|
|
153
|
-
component: "span",
|
|
154
|
-
variant: "h3",
|
|
155
|
-
className: ae[J.amountTone],
|
|
156
|
-
children: Q.amountLabel
|
|
157
|
-
}), /* @__PURE__ */ N(p, {
|
|
158
|
-
component: "span",
|
|
159
|
-
variant: "body2",
|
|
160
|
-
color: "muted",
|
|
161
|
-
children: Q.amountPeriodLabel
|
|
162
|
-
})]
|
|
163
|
-
})]
|
|
164
|
-
}),
|
|
165
|
-
/* @__PURE__ */ P("div", {
|
|
166
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
167
|
-
children: [/* @__PURE__ */ P(i, {
|
|
168
|
-
variant: "outline",
|
|
169
|
-
className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700",
|
|
170
|
-
children: [/* @__PURE__ */ N(R, { className: "ttw:size-3" }), q.recurringBadge]
|
|
171
|
-
}), /* @__PURE__ */ N(le, {
|
|
172
|
-
label: Q.statusLabel,
|
|
173
|
-
tone: Q.statusTone,
|
|
174
|
-
icon: Q.statusIcon
|
|
175
|
-
})]
|
|
176
|
-
}),
|
|
177
|
-
/* @__PURE__ */ P("div", {
|
|
178
|
-
className: "ttw:flex ttw:gap-12",
|
|
179
|
-
children: [/* @__PURE__ */ P("div", {
|
|
180
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
181
|
-
children: [/* @__PURE__ */ N(p, {
|
|
182
|
-
variant: "caption",
|
|
183
|
-
color: "muted",
|
|
184
|
-
children: q.startsOnCaption
|
|
185
|
-
}), /* @__PURE__ */ N(p, {
|
|
186
|
-
component: "span",
|
|
187
|
-
variant: "body2",
|
|
188
|
-
children: Q.startsOnLabel
|
|
189
|
-
})]
|
|
190
|
-
}), /* @__PURE__ */ P("div", {
|
|
191
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
192
|
-
children: [/* @__PURE__ */ N(p, {
|
|
193
|
-
variant: "caption",
|
|
194
|
-
color: "muted",
|
|
195
|
-
children: q.endsOnCaption
|
|
196
|
-
}), /* @__PURE__ */ N(p, {
|
|
197
|
-
component: "span",
|
|
198
|
-
variant: "body2",
|
|
199
|
-
children: Q.endsOnLabel
|
|
200
|
-
})]
|
|
201
|
-
})]
|
|
202
|
-
}),
|
|
203
|
-
$
|
|
204
|
-
]
|
|
205
|
-
}) : /* @__PURE__ */ P("div", {
|
|
206
|
-
className: m("ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4", me && "ttw:border ttw:border-red-200"),
|
|
207
|
-
children: [
|
|
208
|
-
/* @__PURE__ */ N("div", {
|
|
209
|
-
className: "ttw:flex ttw:flex-row ttw:flex-wrap ttw:gap-x-12 ttw:gap-y-2",
|
|
210
|
-
children: J.amountRows.map((e) => /* @__PURE__ */ N(E, {
|
|
211
|
-
row: e,
|
|
212
|
-
defaultTone: J.amountTone
|
|
213
|
-
}, e.label))
|
|
214
|
-
}),
|
|
215
|
-
/* @__PURE__ */ P("div", {
|
|
216
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
217
|
-
children: [J.overdueLabel ? /* @__PURE__ */ P("span", {
|
|
218
|
-
className: "ttw:inline-flex ttw:items-center ttw:gap-1 ttw:rounded-full ttw:bg-red-100 ttw:px-2.5 ttw:py-0.5 ttw:text-xs ttw:font-medium ttw:text-red-700",
|
|
219
|
-
children: [/* @__PURE__ */ N(I, { className: "ttw:size-3" }), J.overdueLabel]
|
|
220
|
-
}) : /* @__PURE__ */ N(re, {
|
|
221
|
-
label: J.statusLabel,
|
|
222
|
-
tone: V.statusTone,
|
|
223
|
-
icon: Z ? /* @__PURE__ */ N(Z, { className: "ttw:size-3" }) : void 0
|
|
224
|
-
}), J.recurring ? /* @__PURE__ */ P(i, {
|
|
225
|
-
variant: "outline",
|
|
226
|
-
className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700",
|
|
227
|
-
children: [/* @__PURE__ */ N(R, { className: "ttw:size-3" }), q.recurringBadge]
|
|
228
|
-
}) : null]
|
|
229
|
-
}),
|
|
230
|
-
/* @__PURE__ */ P("div", {
|
|
231
|
-
className: "ttw:flex ttw:gap-12",
|
|
232
|
-
children: [/* @__PURE__ */ P("div", {
|
|
233
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
234
|
-
children: [/* @__PURE__ */ N(p, {
|
|
235
|
-
variant: "caption",
|
|
236
|
-
color: "muted",
|
|
237
|
-
children: q.invoiceDateCaption
|
|
238
|
-
}), /* @__PURE__ */ N(p, {
|
|
239
|
-
component: "span",
|
|
240
|
-
variant: "body2",
|
|
241
|
-
children: J.issueDateLabel
|
|
242
|
-
})]
|
|
243
|
-
}), /* @__PURE__ */ P("div", {
|
|
244
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
245
|
-
children: [/* @__PURE__ */ N(p, {
|
|
246
|
-
variant: "caption",
|
|
247
|
-
color: "muted",
|
|
248
|
-
children: J.dueDateCaption
|
|
249
|
-
}), /* @__PURE__ */ N(p, {
|
|
250
|
-
component: "span",
|
|
251
|
-
variant: "body2",
|
|
252
|
-
children: J.dueDateLabel
|
|
253
|
-
})]
|
|
254
|
-
})]
|
|
255
|
-
}),
|
|
256
|
-
$
|
|
257
|
-
]
|
|
258
|
-
})
|
|
259
|
-
}), /* @__PURE__ */ P("div", {
|
|
260
|
-
className: "ttw:px-6",
|
|
261
|
-
children: [
|
|
262
|
-
J.paymentHistory ? /* @__PURE__ */ P("section", {
|
|
263
|
-
"aria-label": q.paymentHistoryHeading,
|
|
264
|
-
className: "ttw:border-b ttw:border-border ttw:py-4",
|
|
265
|
-
children: [/* @__PURE__ */ N(p, {
|
|
266
|
-
component: "h3",
|
|
267
|
-
variant: "body2",
|
|
268
|
-
className: "ttw:mb-3 ttw:font-medium",
|
|
269
|
-
children: q.paymentHistoryHeading
|
|
270
|
-
}), J.paymentHistory.isLoading ? /* @__PURE__ */ N("div", {
|
|
271
|
-
className: "ttw:flex ttw:py-2",
|
|
272
|
-
children: /* @__PURE__ */ N(j, {
|
|
273
|
-
className: "ttw:size-5 ttw:border-2",
|
|
274
|
-
label: q.paymentHistoryLoading
|
|
275
|
-
})
|
|
276
|
-
}) : J.paymentHistory.rows.length === 0 ? /* @__PURE__ */ N(p, {
|
|
277
|
-
variant: "body2",
|
|
278
|
-
className: J.paymentHistory.emptyTone === "danger" ? "ttw:text-red-600" : "ttw:text-muted-foreground",
|
|
279
|
-
children: q.paymentHistoryEmpty
|
|
280
|
-
}) : /* @__PURE__ */ P("div", {
|
|
281
|
-
className: "ttw:flex ttw:flex-col",
|
|
282
|
-
children: [J.paymentHistory.rows.map((e) => /* @__PURE__ */ P("div", {
|
|
283
|
-
className: "ttw:flex ttw:justify-between ttw:border-b ttw:border-border ttw:py-2",
|
|
284
|
-
children: [/* @__PURE__ */ N(p, {
|
|
285
|
-
component: "span",
|
|
286
|
-
variant: "body2",
|
|
287
|
-
children: e.dateLabel
|
|
288
|
-
}), /* @__PURE__ */ N(p, {
|
|
289
|
-
component: "span",
|
|
290
|
-
variant: "body2",
|
|
291
|
-
children: e.amountLabel
|
|
292
|
-
})]
|
|
293
|
-
}, e.id)), /* @__PURE__ */ P("div", {
|
|
294
|
-
className: "ttw:flex ttw:justify-between ttw:py-2 ttw:font-medium",
|
|
295
|
-
children: [/* @__PURE__ */ N(p, {
|
|
296
|
-
component: "span",
|
|
297
|
-
variant: "body2",
|
|
298
|
-
children: q.paymentHistoryTotalLabel
|
|
299
|
-
}), /* @__PURE__ */ N(p, {
|
|
300
|
-
component: "span",
|
|
301
|
-
variant: "body2",
|
|
302
|
-
children: J.paymentHistory.totalLabel
|
|
303
|
-
})]
|
|
304
|
-
})]
|
|
305
|
-
})]
|
|
306
|
-
}) : null,
|
|
307
|
-
J.customerName || J.customerContact.length > 0 ? /* @__PURE__ */ P("section", {
|
|
308
|
-
"aria-label": q.customerDetailsHeading,
|
|
309
|
-
className: "ttw:border-b ttw:border-border ttw:py-4",
|
|
310
|
-
children: [/* @__PURE__ */ N(p, {
|
|
311
|
-
component: "h3",
|
|
312
|
-
variant: "body2",
|
|
313
|
-
className: "ttw:mb-3 ttw:font-medium",
|
|
314
|
-
children: q.customerDetailsHeading
|
|
315
|
-
}), /* @__PURE__ */ P("div", {
|
|
316
|
-
className: "ttw:flex ttw:flex-col",
|
|
317
|
-
children: [J.customerName ? /* @__PURE__ */ N(oe, { ...J.customerName }) : null, J.customerContact.map((e) => /* @__PURE__ */ N(A, { ...e }, e.label))]
|
|
318
|
-
})]
|
|
319
|
-
}) : null,
|
|
320
|
-
/* @__PURE__ */ P(e, {
|
|
321
|
-
type: "multiple",
|
|
322
|
-
value: de,
|
|
323
|
-
onValueChange: fe,
|
|
324
|
-
className: "ttw:w-full",
|
|
325
|
-
children: [
|
|
326
|
-
/* @__PURE__ */ P(n, {
|
|
327
|
-
value: h.billing,
|
|
328
|
-
className: w,
|
|
329
|
-
children: [/* @__PURE__ */ N(r, {
|
|
330
|
-
className: T,
|
|
331
|
-
iconClassName: S,
|
|
332
|
-
children: /* @__PURE__ */ N("span", {
|
|
333
|
-
className: "ttw:group-hover:underline",
|
|
334
|
-
children: q.billingHeading
|
|
335
|
-
})
|
|
336
|
-
}), /* @__PURE__ */ N(t, { children: /* @__PURE__ */ P("div", {
|
|
337
|
-
className: "ttw:flex ttw:flex-col",
|
|
338
|
-
children: [J.billingItems.map((e) => /* @__PURE__ */ N(A, { ...e }, e.label)), J.seriesLink ? /* @__PURE__ */ P("div", {
|
|
339
|
-
className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
|
|
340
|
-
children: [/* @__PURE__ */ N(p, {
|
|
341
|
-
component: "span",
|
|
342
|
-
variant: "body2",
|
|
343
|
-
color: "muted",
|
|
344
|
-
className: "ttw:w-40 ttw:shrink-0",
|
|
345
|
-
children: q.recurringSeriesRowLabel
|
|
346
|
-
}), /* @__PURE__ */ N("button", {
|
|
347
|
-
type: "button",
|
|
348
|
-
onClick: J.seriesLink.onOpen,
|
|
349
|
-
className: "ttw:text-left ttw:text-primary ttw:hover:underline",
|
|
350
|
-
children: J.seriesLink.title
|
|
351
|
-
})]
|
|
352
|
-
}) : null]
|
|
353
|
-
}) })]
|
|
354
|
-
}),
|
|
355
|
-
J.lineItemsSection ? /* @__PURE__ */ P(n, {
|
|
356
|
-
value: h.lineItems,
|
|
357
|
-
className: w,
|
|
358
|
-
children: [/* @__PURE__ */ N(r, {
|
|
359
|
-
className: T,
|
|
360
|
-
iconClassName: S,
|
|
361
|
-
children: /* @__PURE__ */ P("span", {
|
|
362
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
363
|
-
children: [/* @__PURE__ */ N("span", {
|
|
364
|
-
className: "ttw:group-hover:underline",
|
|
365
|
-
children: q.lineItemsHeading
|
|
366
|
-
}), /* @__PURE__ */ N(i, {
|
|
367
|
-
variant: "secondary",
|
|
368
|
-
className: C,
|
|
369
|
-
children: J.lineItemsSection.countLabel
|
|
370
|
-
})]
|
|
371
|
-
})
|
|
372
|
-
}), /* @__PURE__ */ N(t, { children: /* @__PURE__ */ P("div", {
|
|
373
|
-
className: "ttw:flex ttw:flex-col",
|
|
374
|
-
children: [V.lineItems.length === 0 ? /* @__PURE__ */ N(p, {
|
|
375
|
-
variant: "body2",
|
|
376
|
-
color: "muted",
|
|
377
|
-
className: "ttw:py-3",
|
|
378
|
-
children: q.noLineItems
|
|
379
|
-
}) : V.lineItems.map((e) => /* @__PURE__ */ P("div", {
|
|
380
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:py-3",
|
|
381
|
-
children: [/* @__PURE__ */ P("div", {
|
|
382
|
-
className: "ttw:flex ttw:flex-col",
|
|
383
|
-
children: [/* @__PURE__ */ N(p, {
|
|
384
|
-
component: "span",
|
|
385
|
-
variant: "body2",
|
|
386
|
-
className: "ttw:font-medium",
|
|
387
|
-
children: e.name
|
|
388
|
-
}), /* @__PURE__ */ P(p, {
|
|
389
|
-
component: "span",
|
|
390
|
-
variant: "body2",
|
|
391
|
-
color: "muted",
|
|
392
|
-
children: [
|
|
393
|
-
e.quantityLabel,
|
|
394
|
-
" ",
|
|
395
|
-
q.lineItemMultiplier,
|
|
396
|
-
" ",
|
|
397
|
-
e.unitPriceLabel,
|
|
398
|
-
" ",
|
|
399
|
-
q.lineItemEaLabel
|
|
400
|
-
]
|
|
401
|
-
})]
|
|
402
|
-
}), /* @__PURE__ */ N(p, {
|
|
403
|
-
component: "span",
|
|
404
|
-
variant: "body2",
|
|
405
|
-
children: e.totalLabel
|
|
406
|
-
})]
|
|
407
|
-
}, e.id)), J.lineItemsSection.totals.length > 0 ? /* @__PURE__ */ N("div", {
|
|
408
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:py-3",
|
|
409
|
-
children: J.lineItemsSection.totals.map((e) => /* @__PURE__ */ P("div", {
|
|
410
|
-
className: m("ttw:flex ttw:justify-between", e.emphasis && "ttw:font-medium"),
|
|
411
|
-
children: [/* @__PURE__ */ N(p, {
|
|
412
|
-
component: "span",
|
|
413
|
-
variant: "body2",
|
|
414
|
-
children: e.label
|
|
415
|
-
}), /* @__PURE__ */ N(p, {
|
|
416
|
-
component: "span",
|
|
417
|
-
variant: "body2",
|
|
418
|
-
children: e.value
|
|
419
|
-
})]
|
|
420
|
-
}, e.label))
|
|
421
|
-
}) : null]
|
|
422
|
-
}) })]
|
|
423
|
-
}) : null,
|
|
424
|
-
J.notes ? /* @__PURE__ */ P(n, {
|
|
425
|
-
value: h.notes,
|
|
426
|
-
className: w,
|
|
427
|
-
children: [/* @__PURE__ */ N(r, {
|
|
428
|
-
className: T,
|
|
429
|
-
iconClassName: S,
|
|
430
|
-
children: /* @__PURE__ */ P("span", {
|
|
431
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
432
|
-
children: [/* @__PURE__ */ N("span", {
|
|
433
|
-
className: "ttw:group-hover:underline",
|
|
434
|
-
children: q.notesHeading
|
|
435
|
-
}), /* @__PURE__ */ N(i, {
|
|
436
|
-
variant: "secondary",
|
|
437
|
-
className: C,
|
|
438
|
-
children: J.notes.countLabel
|
|
439
|
-
})]
|
|
440
|
-
})
|
|
441
|
-
}), /* @__PURE__ */ N(t, { children: /* @__PURE__ */ P("div", {
|
|
442
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
443
|
-
children: [J.notes.opening ? /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(p, {
|
|
444
|
-
variant: "body2",
|
|
445
|
-
className: "ttw:mb-1 ttw:font-medium",
|
|
446
|
-
children: q.notesOpeningLabel
|
|
447
|
-
}), /* @__PURE__ */ N(p, {
|
|
448
|
-
variant: "body2",
|
|
449
|
-
color: "muted",
|
|
450
|
-
children: J.notes.opening
|
|
451
|
-
})] }) : null, J.notes.closing ? /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(p, {
|
|
452
|
-
variant: "body2",
|
|
453
|
-
className: "ttw:mb-1 ttw:font-medium",
|
|
454
|
-
children: q.notesClosingLabel
|
|
455
|
-
}), /* @__PURE__ */ N(p, {
|
|
456
|
-
variant: "body2",
|
|
457
|
-
color: "muted",
|
|
458
|
-
children: J.notes.closing
|
|
459
|
-
})] }) : null]
|
|
460
|
-
}) })]
|
|
461
|
-
}) : null,
|
|
462
|
-
/* @__PURE__ */ N(D, {
|
|
463
|
-
attachments: J.attachments,
|
|
464
|
-
labels: q
|
|
465
|
-
}),
|
|
466
|
-
/* @__PURE__ */ N(O, {
|
|
467
|
-
auditHistory: J.auditHistory,
|
|
468
|
-
labels: q
|
|
469
|
-
})
|
|
470
|
-
]
|
|
471
|
-
}),
|
|
472
|
-
Q ? /* @__PURE__ */ P("section", {
|
|
473
|
-
"aria-label": Q.scheduleTitle,
|
|
474
|
-
className: "ttw:border-t ttw:border-border ttw:py-4",
|
|
475
|
-
children: [/* @__PURE__ */ N(p, {
|
|
476
|
-
component: "h3",
|
|
477
|
-
variant: "body2",
|
|
478
|
-
className: "ttw:mb-3 ttw:font-medium",
|
|
479
|
-
children: Q.scheduleTitle
|
|
480
|
-
}), /* @__PURE__ */ N(ue, {
|
|
481
|
-
rows: Q.schedule,
|
|
482
|
-
labels: q
|
|
483
|
-
})]
|
|
484
|
-
}) : null
|
|
485
|
-
]
|
|
486
|
-
})]
|
|
487
|
-
})
|
|
488
|
-
] })
|
|
489
|
-
]
|
|
490
|
-
})
|
|
491
|
-
});
|
|
492
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
neutral: "ttw:bg-muted ttw:text-muted-foreground",
|
|
4
|
+
info: "ttw:bg-indigo-100 ttw:text-indigo-700",
|
|
5
|
+
warning: "ttw:bg-yellow-100 ttw:text-yellow-700",
|
|
6
|
+
danger: "ttw:bg-destructive/10 ttw:text-destructive",
|
|
7
|
+
success: "ttw:bg-green-100 ttw:text-green-700"
|
|
8
|
+
}, t = {
|
|
9
|
+
neutral: "ttw:bg-muted-foreground",
|
|
10
|
+
info: "ttw:bg-indigo-700",
|
|
11
|
+
warning: "ttw:bg-yellow-700",
|
|
12
|
+
danger: "ttw:bg-destructive",
|
|
13
|
+
success: "ttw:bg-green-700"
|
|
14
|
+
};
|
|
493
15
|
//#endregion
|
|
494
|
-
export {
|
|
16
|
+
export { e as RECURRENCE_CHIP_CLASS, t as RECURRENCE_DOT_CLASS };
|