@tesouro/embedded-components-react 0.3.23 → 0.3.25
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/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +47 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +108 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +23 -266
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +46 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +273 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +5 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +45 -282
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +273 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +113 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +95 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +9 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +53 -137
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +138 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +37 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +11 -253
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +82 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +264 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +9 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +3 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +188 -301
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +317 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +91 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +14 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +109 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +163 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +108 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +0 -113
|
@@ -1,49 +1,277 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { Badge as e, Button as t, Skeleton as n, cn as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ErrorState as i } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
|
+
import "../../../shared/ui/dist/index.js";
|
|
4
|
+
import { ApprovalPolicyCard as a } from "./index13.js";
|
|
5
|
+
import "./index14.js";
|
|
6
|
+
import { BillOverflowMenu as o } from "./index16.js";
|
|
7
|
+
import "./index17.js";
|
|
8
|
+
import { BillStatusBadge as s } from "./index20.js";
|
|
9
|
+
import "./index21.js";
|
|
10
|
+
import { DueDateValue as c } from "./index23.js";
|
|
11
|
+
import "./index24.js";
|
|
12
|
+
import { mergeBillDetailBodyLabels as l } from "./index25.js";
|
|
13
|
+
import { BillActionButtons as u, NO_BILL_ACTIONS as d, hasBillActions as f } from "./index15.js";
|
|
14
|
+
import { AchFieldGroup as p } from "../../../shared/counterpart-management/ui/dist/index5.js";
|
|
15
|
+
import "../../../shared/counterpart-management/ui/dist/index.js";
|
|
16
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
17
|
+
import { AlertTriangle as g, ChevronRight as _ } from "lucide-react";
|
|
5
18
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
19
|
+
var v = "ttw:text-base ttw:font-semibold", y = "ttw:px-3 ttw:py-2", b = "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
|
|
20
|
+
function x({ view: x, actions: S = d, scheduledSummary: C, paymentInstructionsForm: w, isLoading: T, isError: E, labels: D }) {
|
|
21
|
+
let O = l(D);
|
|
22
|
+
if (E) return /* @__PURE__ */ m(i, {
|
|
23
|
+
title: O.errorTitle,
|
|
24
|
+
description: O.errorDescription
|
|
25
|
+
});
|
|
26
|
+
if (T || !x) return /* @__PURE__ */ h("div", {
|
|
27
|
+
"aria-hidden": !0,
|
|
28
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ m(n, { className: "ttw:h-40 ttw:w-full" }),
|
|
31
|
+
/* @__PURE__ */ m(n, { className: "ttw:h-32 ttw:w-full" }),
|
|
32
|
+
/* @__PURE__ */ m(n, { className: "ttw:h-24 ttw:w-full" })
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
let k = !x.payTo.paymentInstructionsLabel && w;
|
|
36
|
+
return /* @__PURE__ */ h("div", {
|
|
37
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
38
|
+
children: [
|
|
39
|
+
k ? /* @__PURE__ */ h("div", {
|
|
40
|
+
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-md ttw:border ttw:border-amber-200 ttw:bg-amber-50 ttw:px-3 ttw:py-2.5",
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ m(g, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
|
|
43
|
+
/* @__PURE__ */ m("p", {
|
|
44
|
+
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
45
|
+
children: O.missingPaymentInstructionsBanner
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ m(t, {
|
|
48
|
+
type: "button",
|
|
49
|
+
variant: "outline",
|
|
50
|
+
size: "sm",
|
|
51
|
+
onClick: w.onOpen,
|
|
52
|
+
children: O.addPaymentInstructions
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
}) : null,
|
|
56
|
+
/* @__PURE__ */ h("section", {
|
|
57
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ h("div", {
|
|
60
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
61
|
+
children: [/* @__PURE__ */ m("span", {
|
|
62
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
63
|
+
children: O.amountDueHeading
|
|
64
|
+
}), /* @__PURE__ */ m("span", {
|
|
65
|
+
className: "ttw:text-3xl ttw:font-semibold",
|
|
66
|
+
children: x.amountDue
|
|
67
|
+
})]
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(s, {
|
|
70
|
+
status: x.status,
|
|
71
|
+
tone: x.statusTone,
|
|
72
|
+
labels: O.statusBadge
|
|
73
|
+
}) }),
|
|
74
|
+
/* @__PURE__ */ h("div", {
|
|
75
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
76
|
+
children: [/* @__PURE__ */ h("div", {
|
|
77
|
+
className: "ttw:flex ttw:flex-col",
|
|
78
|
+
children: [/* @__PURE__ */ m("span", {
|
|
79
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
80
|
+
children: O.invoiceDateLabel
|
|
81
|
+
}), /* @__PURE__ */ m("span", {
|
|
82
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
83
|
+
children: x.invoiceDateLabel
|
|
84
|
+
})]
|
|
85
|
+
}), /* @__PURE__ */ h("div", {
|
|
86
|
+
className: "ttw:flex ttw:flex-col",
|
|
87
|
+
children: [/* @__PURE__ */ m("span", {
|
|
88
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
89
|
+
children: O.dueDateLabel
|
|
90
|
+
}), /* @__PURE__ */ m(c, {
|
|
91
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
92
|
+
value: x.dueDateLabel,
|
|
93
|
+
tone: x.dueDateTone,
|
|
94
|
+
labels: O.dueDate
|
|
95
|
+
})]
|
|
96
|
+
})]
|
|
97
|
+
}),
|
|
98
|
+
C ? /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(e, {
|
|
99
|
+
variant: "outline",
|
|
100
|
+
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
101
|
+
children: C
|
|
102
|
+
}) }) : f(S) ? /* @__PURE__ */ h("div", {
|
|
103
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
104
|
+
children: [/* @__PURE__ */ m(u, { actions: S.row }), /* @__PURE__ */ m(o, {
|
|
105
|
+
actions: S.menu,
|
|
106
|
+
triggerLabel: O.overflowMenuTriggerLabel
|
|
107
|
+
})]
|
|
108
|
+
}) : null
|
|
109
|
+
]
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ h("section", {
|
|
112
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ m("h3", {
|
|
115
|
+
className: v,
|
|
116
|
+
children: O.payToHeading
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ h("div", {
|
|
119
|
+
className: b,
|
|
120
|
+
children: [/* @__PURE__ */ m("span", {
|
|
121
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
122
|
+
children: O.vendorRow
|
|
123
|
+
}), /* @__PURE__ */ h("div", {
|
|
124
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-right",
|
|
125
|
+
children: [/* @__PURE__ */ h("div", {
|
|
126
|
+
className: "ttw:flex ttw:flex-col",
|
|
127
|
+
children: [/* @__PURE__ */ m("span", {
|
|
128
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-primary",
|
|
129
|
+
children: x.payTo.name
|
|
130
|
+
}), x.payTo.email ? /* @__PURE__ */ m("span", {
|
|
131
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
132
|
+
children: x.payTo.email
|
|
133
|
+
}) : null]
|
|
134
|
+
}), /* @__PURE__ */ m(_, {
|
|
135
|
+
"aria-hidden": !0,
|
|
136
|
+
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
137
|
+
})]
|
|
138
|
+
})]
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ h("div", {
|
|
141
|
+
className: b,
|
|
142
|
+
children: [/* @__PURE__ */ m("span", {
|
|
143
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
144
|
+
children: O.paymentInstructionsRow
|
|
145
|
+
}), /* @__PURE__ */ h("div", {
|
|
146
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
147
|
+
children: [x.payTo.paymentInstructionsLabel ? /* @__PURE__ */ m("span", {
|
|
148
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
149
|
+
children: x.payTo.paymentInstructionsLabel
|
|
150
|
+
}) : w ? /* @__PURE__ */ m("button", {
|
|
151
|
+
type: "button",
|
|
152
|
+
onClick: w.onOpen,
|
|
153
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
|
|
154
|
+
children: O.addPaymentInstructions
|
|
155
|
+
}) : /* @__PURE__ */ m("span", {
|
|
156
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
|
|
157
|
+
children: O.addPaymentInstructions
|
|
158
|
+
}), /* @__PURE__ */ m(_, {
|
|
159
|
+
"aria-hidden": !0,
|
|
160
|
+
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
161
|
+
})]
|
|
162
|
+
})]
|
|
163
|
+
}),
|
|
164
|
+
w?.isOpen ? /* @__PURE__ */ h("div", {
|
|
165
|
+
className: "ttw:mt-2 ttw:rounded-lg ttw:border ttw:border-border ttw:p-4",
|
|
166
|
+
children: [/* @__PURE__ */ m(p, {
|
|
167
|
+
idPrefix: "bill-detail-payment-instructions",
|
|
168
|
+
values: w.values,
|
|
169
|
+
errors: w.errors,
|
|
170
|
+
onChange: w.onChange
|
|
171
|
+
}), /* @__PURE__ */ h("div", {
|
|
172
|
+
className: "ttw:mt-4 ttw:flex ttw:justify-end ttw:gap-2",
|
|
173
|
+
children: [/* @__PURE__ */ m(t, {
|
|
174
|
+
type: "button",
|
|
175
|
+
variant: "ghost",
|
|
176
|
+
onClick: w.onCancel,
|
|
177
|
+
children: O.paymentInstructionsCancel
|
|
178
|
+
}), /* @__PURE__ */ m(t, {
|
|
179
|
+
type: "button",
|
|
180
|
+
loading: w.isSaving,
|
|
181
|
+
onClick: w.onSave,
|
|
182
|
+
children: O.paymentInstructionsSave
|
|
183
|
+
})]
|
|
184
|
+
})]
|
|
185
|
+
}) : null
|
|
186
|
+
]
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ m("dl", {
|
|
189
|
+
className: "ttw:flex ttw:flex-col",
|
|
190
|
+
children: x.invoiceFields.map((e) => /* @__PURE__ */ h("div", {
|
|
191
|
+
className: b,
|
|
192
|
+
children: [/* @__PURE__ */ m("dt", {
|
|
193
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
194
|
+
children: e.label
|
|
195
|
+
}), /* @__PURE__ */ m("dd", {
|
|
196
|
+
className: "ttw:text-right ttw:text-sm ttw:font-medium",
|
|
197
|
+
children: e.value
|
|
198
|
+
})]
|
|
199
|
+
}, e.label))
|
|
200
|
+
}),
|
|
201
|
+
/* @__PURE__ */ m("section", { children: /* @__PURE__ */ h("table", {
|
|
202
|
+
className: "ttw:w-full ttw:text-sm",
|
|
203
|
+
children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", {
|
|
204
|
+
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ m("th", {
|
|
207
|
+
className: r(y, "ttw:text-left ttw:font-normal"),
|
|
208
|
+
children: O.descriptionAndGlCodeColumn
|
|
209
|
+
}),
|
|
210
|
+
/* @__PURE__ */ m("th", {
|
|
211
|
+
className: r(y, "ttw:text-right ttw:font-normal"),
|
|
212
|
+
children: O.qtyPriceColumn
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ m("th", {
|
|
215
|
+
className: r(y, "ttw:text-right ttw:font-normal"),
|
|
216
|
+
children: O.amountColumn
|
|
217
|
+
})
|
|
218
|
+
]
|
|
219
|
+
}) }), /* @__PURE__ */ h("tbody", { children: [x.lineItems.map((e) => /* @__PURE__ */ h("tr", {
|
|
220
|
+
className: "ttw:border-b ttw:border-border",
|
|
221
|
+
children: [
|
|
222
|
+
/* @__PURE__ */ m("td", {
|
|
223
|
+
className: y,
|
|
224
|
+
children: /* @__PURE__ */ h("div", {
|
|
225
|
+
className: "ttw:flex ttw:flex-col",
|
|
226
|
+
children: [/* @__PURE__ */ m("span", { children: e.description }), /* @__PURE__ */ m("span", {
|
|
227
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
228
|
+
children: e.glCodeLabel
|
|
229
|
+
})]
|
|
230
|
+
})
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ m("td", {
|
|
233
|
+
className: r(y, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
|
|
234
|
+
children: e.qtyPriceLabel
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ m("td", {
|
|
237
|
+
className: r(y, "ttw:text-right ttw:whitespace-nowrap"),
|
|
238
|
+
children: e.amount
|
|
239
|
+
})
|
|
240
|
+
]
|
|
241
|
+
}, e.id)), x.amountRows.map((e) => /* @__PURE__ */ h("tr", {
|
|
242
|
+
className: r(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
|
|
243
|
+
children: [/* @__PURE__ */ m("td", {
|
|
244
|
+
colSpan: 2,
|
|
245
|
+
className: y,
|
|
246
|
+
children: e.label
|
|
247
|
+
}), /* @__PURE__ */ m("td", {
|
|
248
|
+
className: r(y, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
|
|
249
|
+
children: e.value
|
|
250
|
+
})]
|
|
251
|
+
}, e.label))] })]
|
|
252
|
+
}) }),
|
|
253
|
+
x.approvalPolicy ? /* @__PURE__ */ m(a, {
|
|
254
|
+
view: x.approvalPolicy,
|
|
255
|
+
labels: O.approvalPolicy
|
|
256
|
+
}) : null,
|
|
257
|
+
x.history.length ? /* @__PURE__ */ h("section", {
|
|
258
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
259
|
+
children: [/* @__PURE__ */ m("h3", {
|
|
260
|
+
className: v,
|
|
261
|
+
children: O.historyHeading
|
|
262
|
+
}), /* @__PURE__ */ m("ul", {
|
|
263
|
+
className: "ttw:flex ttw:flex-col",
|
|
264
|
+
children: x.history.map((e) => /* @__PURE__ */ h("li", {
|
|
265
|
+
className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
|
|
266
|
+
children: [/* @__PURE__ */ m("span", {
|
|
267
|
+
className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
|
|
268
|
+
children: e.dateLabel
|
|
269
|
+
}), /* @__PURE__ */ m("span", { children: e.description })]
|
|
270
|
+
}, e.id))
|
|
271
|
+
})]
|
|
272
|
+
}) : null
|
|
273
|
+
]
|
|
46
274
|
});
|
|
47
275
|
}
|
|
48
276
|
//#endregion
|
|
49
|
-
export {
|
|
277
|
+
export { x as BillDetailBody, x as default };
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js
|
|
2
2
|
var e = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
glCode: "GL code (optional)",
|
|
8
|
-
glCodePlaceholder: "Select",
|
|
9
|
-
quantity: "Quantity",
|
|
10
|
-
price: "Price",
|
|
11
|
-
amount: "Amount",
|
|
12
|
-
currencySymbol: "$",
|
|
13
|
-
discount: "Discounts",
|
|
14
|
-
tax: "Tax",
|
|
15
|
-
totalAmount: "Total amount",
|
|
16
|
-
addLineItem: "+ Add line item",
|
|
17
|
-
increaseQuantity: (e) => `Increase quantity — line item ${e}`,
|
|
18
|
-
decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
|
|
19
|
-
removeLineItem: (e) => `Remove line item ${e}`
|
|
3
|
+
invoiceNumber: "Invoice number",
|
|
4
|
+
invoiceDate: "Invoice date",
|
|
5
|
+
dueDate: "Due date",
|
|
6
|
+
poNumber: "PO number (optional)"
|
|
20
7
|
};
|
|
21
8
|
//#endregion
|
|
22
|
-
export { e as
|
|
9
|
+
export { e as BILL_FORM_FIELDS_LABELS_EN };
|