@tesouro/embedded-components-react 0.4.19 → 0.4.21
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.css +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +49 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +73 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +265 -259
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +71 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +142 -137
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +52 -47
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -1,247 +1,252 @@
|
|
|
1
|
-
import { Badge as e, Button as t, Skeleton as n,
|
|
2
|
-
import { ErrorState as
|
|
1
|
+
import { Badge as e, Button as t, Skeleton as n, Typography as r, cn as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ErrorState as a } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
3
|
import "../../../shared/ui/dist/index.js";
|
|
4
|
-
import { ApprovalPolicyCard as
|
|
4
|
+
import { ApprovalPolicyCard as o } from "./index13.js";
|
|
5
5
|
import "./index14.js";
|
|
6
|
-
import { BillStatusBadge as
|
|
6
|
+
import { BillStatusBadge as s } from "./index18.js";
|
|
7
7
|
import "./index19.js";
|
|
8
|
-
import { DueDateValue as
|
|
8
|
+
import { DueDateValue as c } from "./index21.js";
|
|
9
9
|
import "./index22.js";
|
|
10
|
-
import { PaymentHistoryList as
|
|
10
|
+
import { PaymentHistoryList as l } from "./index23.js";
|
|
11
11
|
import "./index24.js";
|
|
12
|
-
import { VendorSummaryCard as
|
|
12
|
+
import { VendorSummaryCard as u } from "./index27.js";
|
|
13
13
|
import "./index28.js";
|
|
14
|
-
import { mergeBillDetailBodyLabels as
|
|
15
|
-
import { BillActionButtons as
|
|
16
|
-
import { useMemo as
|
|
17
|
-
import { jsx as
|
|
18
|
-
import { AlertTriangle as
|
|
14
|
+
import { mergeBillDetailBodyLabels as d } from "./index29.js";
|
|
15
|
+
import { BillActionButtons as f, NO_BILL_ACTIONS as p } from "./index15.js";
|
|
16
|
+
import { useMemo as m } from "react";
|
|
17
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
18
|
+
import { AlertTriangle as _ } from "lucide-react";
|
|
19
19
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
let
|
|
23
|
-
...
|
|
24
|
-
payToHeading:
|
|
25
|
-
}), [
|
|
26
|
-
if (
|
|
27
|
-
title:
|
|
28
|
-
description:
|
|
20
|
+
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";
|
|
21
|
+
function x({ view: x, actions: S = p, scheduledSummary: C, showApprovalOverrideNotice: w, paymentInstructionsForm: T, hideMissingPaymentInstructions: E, onEditPaymentInstructions: D, paymentHistoryError: O, paymentHistoryLoading: k, isLoading: A, isError: j, labels: M }) {
|
|
22
|
+
let N = m(() => d(M), [M]), P = m(() => ({
|
|
23
|
+
...N.payToCard,
|
|
24
|
+
payToHeading: x?.paidOnLabel ? N.payToHeadingPaid : N.payToHeading
|
|
25
|
+
}), [N, x?.paidOnLabel]);
|
|
26
|
+
if (j) return /* @__PURE__ */ h(a, {
|
|
27
|
+
title: N.errorTitle,
|
|
28
|
+
description: N.errorDescription
|
|
29
29
|
});
|
|
30
|
-
if (
|
|
30
|
+
if (A || !x) return /* @__PURE__ */ g("div", {
|
|
31
31
|
"aria-hidden": !0,
|
|
32
32
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
33
33
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ h(n, { className: "ttw:h-40 ttw:w-full" }),
|
|
35
|
+
/* @__PURE__ */ h(n, { className: "ttw:h-32 ttw:w-full" }),
|
|
36
|
+
/* @__PURE__ */ h(n, { className: "ttw:h-24 ttw:w-full" })
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
|
-
let
|
|
40
|
-
return /* @__PURE__ */
|
|
39
|
+
let F = E || x.payTo.fields.length > 0 ? void 0 : T;
|
|
40
|
+
return /* @__PURE__ */ g("div", {
|
|
41
41
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
42
42
|
children: [
|
|
43
|
-
|
|
43
|
+
F ? /* @__PURE__ */ g("div", {
|
|
44
44
|
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",
|
|
45
45
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ h(_, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
|
|
47
|
+
/* @__PURE__ */ h("p", {
|
|
48
48
|
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
49
|
-
children:
|
|
49
|
+
children: N.missingPaymentInstructionsBanner
|
|
50
50
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ h(t, {
|
|
52
52
|
type: "button",
|
|
53
53
|
variant: "outline",
|
|
54
54
|
size: "sm",
|
|
55
|
-
onClick:
|
|
56
|
-
children:
|
|
55
|
+
onClick: F.onOpen,
|
|
56
|
+
children: N.addPaymentInstructions
|
|
57
57
|
})
|
|
58
58
|
]
|
|
59
59
|
}) : null,
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ g("section", {
|
|
61
61
|
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
|
|
62
62
|
children: [
|
|
63
|
-
|
|
63
|
+
x.paidOnLabel ? /* @__PURE__ */ g("div", {
|
|
64
64
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ g("div", {
|
|
66
66
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ h("span", {
|
|
68
68
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
69
|
-
children:
|
|
70
|
-
}), /* @__PURE__ */
|
|
69
|
+
children: N.amountDueHeading
|
|
70
|
+
}), /* @__PURE__ */ h("span", {
|
|
71
71
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
72
|
-
children:
|
|
72
|
+
children: x.amountDue
|
|
73
73
|
})]
|
|
74
|
-
}), /* @__PURE__ */
|
|
74
|
+
}), /* @__PURE__ */ g("div", {
|
|
75
75
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
76
|
-
children: [/* @__PURE__ */
|
|
76
|
+
children: [/* @__PURE__ */ h("span", {
|
|
77
77
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
78
|
-
children:
|
|
79
|
-
}), /* @__PURE__ */
|
|
78
|
+
children: N.amountPaidHeading
|
|
79
|
+
}), /* @__PURE__ */ h("span", {
|
|
80
80
|
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
81
|
-
children:
|
|
81
|
+
children: x.amountPaid
|
|
82
82
|
})]
|
|
83
83
|
})]
|
|
84
|
-
}) : /* @__PURE__ */
|
|
84
|
+
}) : /* @__PURE__ */ g("div", {
|
|
85
85
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
86
|
-
children: [/* @__PURE__ */
|
|
86
|
+
children: [/* @__PURE__ */ h("span", {
|
|
87
87
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
88
|
-
children:
|
|
89
|
-
}), /* @__PURE__ */
|
|
88
|
+
children: N.amountDueHeading
|
|
89
|
+
}), /* @__PURE__ */ h("span", {
|
|
90
90
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
91
|
-
children:
|
|
91
|
+
children: x.amountDue
|
|
92
92
|
})]
|
|
93
93
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ h("div", { children: x.paidOnLabel ? /* @__PURE__ */ h(e, {
|
|
95
95
|
variant: "outline",
|
|
96
96
|
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
97
|
-
children:
|
|
98
|
-
}) : /* @__PURE__ */
|
|
99
|
-
status:
|
|
100
|
-
tone:
|
|
101
|
-
labels:
|
|
97
|
+
children: x.paidOnLabel
|
|
98
|
+
}) : /* @__PURE__ */ h(s, {
|
|
99
|
+
status: x.status,
|
|
100
|
+
tone: x.statusTone,
|
|
101
|
+
labels: N.statusBadge
|
|
102
102
|
}) }),
|
|
103
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ g("div", {
|
|
104
104
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
105
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ g("div", {
|
|
106
106
|
className: "ttw:flex ttw:flex-col",
|
|
107
|
-
children: [/* @__PURE__ */
|
|
107
|
+
children: [/* @__PURE__ */ h("span", {
|
|
108
108
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
109
|
-
children:
|
|
110
|
-
}), /* @__PURE__ */
|
|
109
|
+
children: N.invoiceDateLabel
|
|
110
|
+
}), /* @__PURE__ */ h("span", {
|
|
111
111
|
className: "ttw:text-sm ttw:font-medium",
|
|
112
|
-
children:
|
|
112
|
+
children: x.invoiceDateLabel
|
|
113
113
|
})]
|
|
114
|
-
}), /* @__PURE__ */
|
|
114
|
+
}), /* @__PURE__ */ g("div", {
|
|
115
115
|
className: "ttw:flex ttw:flex-col",
|
|
116
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ h("span", {
|
|
117
117
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
118
|
-
children:
|
|
119
|
-
}), /* @__PURE__ */
|
|
118
|
+
children: N.dueDateLabel
|
|
119
|
+
}), /* @__PURE__ */ h(c, {
|
|
120
120
|
className: "ttw:text-sm ttw:font-medium",
|
|
121
|
-
value:
|
|
122
|
-
tone:
|
|
123
|
-
labels:
|
|
121
|
+
value: x.dueDateLabel,
|
|
122
|
+
tone: x.dueDateTone,
|
|
123
|
+
labels: N.dueDate
|
|
124
124
|
})]
|
|
125
125
|
})]
|
|
126
126
|
}),
|
|
127
|
-
|
|
127
|
+
w ? /* @__PURE__ */ h(r, {
|
|
128
|
+
variant: "caption",
|
|
129
|
+
color: "muted",
|
|
130
|
+
children: N.approvalOverrideNotice
|
|
131
|
+
}) : null,
|
|
132
|
+
C ? /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(e, {
|
|
128
133
|
variant: "outline",
|
|
129
134
|
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
130
|
-
children:
|
|
131
|
-
}) }) :
|
|
135
|
+
children: C
|
|
136
|
+
}) }) : S.row.length ? /* @__PURE__ */ h("div", {
|
|
132
137
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
133
|
-
children: /* @__PURE__ */
|
|
138
|
+
children: /* @__PURE__ */ h(f, { actions: S.row })
|
|
134
139
|
}) : null
|
|
135
140
|
]
|
|
136
141
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
summary:
|
|
139
|
-
onEdit:
|
|
142
|
+
/* @__PURE__ */ h(u, {
|
|
143
|
+
summary: x.payTo,
|
|
144
|
+
onEdit: E ? void 0 : D,
|
|
140
145
|
instructionsCollapsed: !0,
|
|
141
|
-
paymentInstructions:
|
|
142
|
-
isOpen:
|
|
143
|
-
values:
|
|
144
|
-
errors:
|
|
145
|
-
isSaving:
|
|
146
|
-
onOpen:
|
|
147
|
-
onChange:
|
|
148
|
-
onSave:
|
|
149
|
-
onCancel:
|
|
146
|
+
paymentInstructions: T && !E ? {
|
|
147
|
+
isOpen: T.isOpen,
|
|
148
|
+
values: T.values,
|
|
149
|
+
errors: T.errors,
|
|
150
|
+
isSaving: T.isSaving,
|
|
151
|
+
onOpen: T.onOpen,
|
|
152
|
+
onChange: T.onChange,
|
|
153
|
+
onSave: T.onSave,
|
|
154
|
+
onCancel: T.onCancel
|
|
150
155
|
} : void 0,
|
|
151
|
-
labels:
|
|
156
|
+
labels: P
|
|
152
157
|
}),
|
|
153
|
-
|
|
158
|
+
x.paymentHistory.length || O || k ? /* @__PURE__ */ g("section", {
|
|
154
159
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
155
|
-
children: [/* @__PURE__ */
|
|
156
|
-
className:
|
|
157
|
-
children:
|
|
158
|
-
}),
|
|
160
|
+
children: [/* @__PURE__ */ h("h3", {
|
|
161
|
+
className: v,
|
|
162
|
+
children: N.paymentHistoryHeading
|
|
163
|
+
}), O ? /* @__PURE__ */ h("p", {
|
|
159
164
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
160
|
-
children:
|
|
161
|
-
}) :
|
|
165
|
+
children: N.paymentHistoryErrorDescription
|
|
166
|
+
}) : k ? /* @__PURE__ */ h(n, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ h(l, { records: x.paymentHistory })]
|
|
162
167
|
}) : null,
|
|
163
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ h("dl", {
|
|
164
169
|
className: "ttw:flex ttw:flex-col",
|
|
165
|
-
children:
|
|
166
|
-
className:
|
|
167
|
-
children: [/* @__PURE__ */
|
|
170
|
+
children: x.invoiceFields.map((e) => /* @__PURE__ */ g("div", {
|
|
171
|
+
className: b,
|
|
172
|
+
children: [/* @__PURE__ */ h("dt", {
|
|
168
173
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
169
174
|
children: e.label
|
|
170
|
-
}), /* @__PURE__ */
|
|
175
|
+
}), /* @__PURE__ */ h("dd", {
|
|
171
176
|
className: "ttw:text-right ttw:text-sm ttw:font-medium",
|
|
172
177
|
children: e.value
|
|
173
178
|
})]
|
|
174
179
|
}, e.label))
|
|
175
180
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ h("section", { children: /* @__PURE__ */ g("table", {
|
|
177
182
|
className: "ttw:w-full ttw:text-sm",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ h("thead", { children: /* @__PURE__ */ g("tr", {
|
|
179
184
|
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
180
185
|
children: [
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
className:
|
|
183
|
-
children:
|
|
186
|
+
/* @__PURE__ */ h("th", {
|
|
187
|
+
className: i(y, "ttw:text-left ttw:font-normal"),
|
|
188
|
+
children: N.descriptionAndGlCodeColumn
|
|
184
189
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
className:
|
|
187
|
-
children:
|
|
190
|
+
/* @__PURE__ */ h("th", {
|
|
191
|
+
className: i(y, "ttw:text-right ttw:font-normal"),
|
|
192
|
+
children: N.qtyPriceColumn
|
|
188
193
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
className:
|
|
191
|
-
children:
|
|
194
|
+
/* @__PURE__ */ h("th", {
|
|
195
|
+
className: i(y, "ttw:text-right ttw:font-normal"),
|
|
196
|
+
children: N.amountColumn
|
|
192
197
|
})
|
|
193
198
|
]
|
|
194
|
-
}) }), /* @__PURE__ */
|
|
199
|
+
}) }), /* @__PURE__ */ g("tbody", { children: [x.lineItems.map((e) => /* @__PURE__ */ g("tr", {
|
|
195
200
|
className: "ttw:border-b ttw:border-border",
|
|
196
201
|
children: [
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
className:
|
|
199
|
-
children: /* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ h("td", {
|
|
203
|
+
className: y,
|
|
204
|
+
children: /* @__PURE__ */ g("div", {
|
|
200
205
|
className: "ttw:flex ttw:flex-col",
|
|
201
|
-
children: [/* @__PURE__ */
|
|
206
|
+
children: [/* @__PURE__ */ h("span", { children: e.description }), /* @__PURE__ */ h("span", {
|
|
202
207
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
203
208
|
children: e.glCodeLabel
|
|
204
209
|
})]
|
|
205
210
|
})
|
|
206
211
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
className:
|
|
212
|
+
/* @__PURE__ */ h("td", {
|
|
213
|
+
className: i(y, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
|
|
209
214
|
children: e.qtyPriceLabel
|
|
210
215
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
className:
|
|
216
|
+
/* @__PURE__ */ h("td", {
|
|
217
|
+
className: i(y, "ttw:text-right ttw:whitespace-nowrap"),
|
|
213
218
|
children: e.amount
|
|
214
219
|
})
|
|
215
220
|
]
|
|
216
|
-
}, e.id)),
|
|
217
|
-
className:
|
|
218
|
-
children: [/* @__PURE__ */
|
|
221
|
+
}, e.id)), x.amountRows.map((e) => /* @__PURE__ */ g("tr", {
|
|
222
|
+
className: i(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
|
|
223
|
+
children: [/* @__PURE__ */ h("td", {
|
|
219
224
|
colSpan: 2,
|
|
220
|
-
className:
|
|
225
|
+
className: y,
|
|
221
226
|
children: e.label
|
|
222
|
-
}), /* @__PURE__ */
|
|
223
|
-
className:
|
|
227
|
+
}), /* @__PURE__ */ h("td", {
|
|
228
|
+
className: i(y, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
|
|
224
229
|
children: e.value
|
|
225
230
|
})]
|
|
226
231
|
}, e.label))] })]
|
|
227
232
|
}) }),
|
|
228
|
-
|
|
229
|
-
view:
|
|
230
|
-
labels:
|
|
233
|
+
x.approvalPolicy ? /* @__PURE__ */ h(o, {
|
|
234
|
+
view: x.approvalPolicy,
|
|
235
|
+
labels: N.approvalPolicy
|
|
231
236
|
}) : null,
|
|
232
|
-
|
|
237
|
+
x.history.length ? /* @__PURE__ */ g("section", {
|
|
233
238
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
234
|
-
children: [/* @__PURE__ */
|
|
235
|
-
className:
|
|
236
|
-
children:
|
|
237
|
-
}), /* @__PURE__ */
|
|
239
|
+
children: [/* @__PURE__ */ h("h3", {
|
|
240
|
+
className: v,
|
|
241
|
+
children: N.historyHeading
|
|
242
|
+
}), /* @__PURE__ */ h("ul", {
|
|
238
243
|
className: "ttw:flex ttw:flex-col",
|
|
239
|
-
children:
|
|
244
|
+
children: x.history.map((e) => /* @__PURE__ */ g("li", {
|
|
240
245
|
className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
|
|
241
|
-
children: [/* @__PURE__ */
|
|
246
|
+
children: [/* @__PURE__ */ h("span", {
|
|
242
247
|
className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
|
|
243
248
|
children: e.dateLabel
|
|
244
|
-
}), /* @__PURE__ */
|
|
249
|
+
}), /* @__PURE__ */ h("span", { children: e.description })]
|
|
245
250
|
}, e.id))
|
|
246
251
|
})]
|
|
247
252
|
}) : null
|
|
@@ -249,4 +254,4 @@ function b({ view: b, actions: x = f, scheduledSummary: S, paymentInstructionsFo
|
|
|
249
254
|
});
|
|
250
255
|
}
|
|
251
256
|
//#endregion
|
|
252
|
-
export {
|
|
257
|
+
export { x as BillDetailBody, x as default };
|
|
@@ -64,7 +64,7 @@ function x({ query: x, onQueryChange: S, results: C, isLoading: w, onAddVendor:
|
|
|
64
64
|
width: "30%"
|
|
65
65
|
})]
|
|
66
66
|
}, t))]
|
|
67
|
-
}) :
|
|
67
|
+
}) : C.length === 0 ? /* @__PURE__ */ h("div", {
|
|
68
68
|
className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm", b),
|
|
69
69
|
children: O.emptyResults
|
|
70
70
|
}) : /* @__PURE__ */ h(t, { children: C.map((e, t) => /* @__PURE__ */ g(r, {
|
|
@@ -77,10 +77,7 @@ function x({ query: x, onQueryChange: S, results: C, isLoading: w, onAddVendor:
|
|
|
77
77
|
className: "ttw:ml-auto ttw:text-muted-foreground",
|
|
78
78
|
children: e.email
|
|
79
79
|
})]
|
|
80
|
-
}, `${e.name}:${e.email}:${t}`)) })
|
|
81
|
-
className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm ttw:text-muted-foreground", b),
|
|
82
|
-
children: O.searchHint
|
|
83
|
-
}),
|
|
80
|
+
}, `${e.name}:${e.email}:${t}`)) }),
|
|
84
81
|
/* @__PURE__ */ h(a, {}),
|
|
85
82
|
/* @__PURE__ */ g(r, {
|
|
86
83
|
value: "__add_vendor__",
|
|
@@ -13,7 +13,7 @@ var a = {
|
|
|
13
13
|
menuTrigger: "More actions",
|
|
14
14
|
cancelButton: "Cancel",
|
|
15
15
|
saveDraftButton: "Save and close",
|
|
16
|
-
|
|
16
|
+
submitButton: "Submit",
|
|
17
17
|
hiddenDescription: "Enter the details of the bill you want to pay.",
|
|
18
18
|
vendorSection: i,
|
|
19
19
|
detailsFields: n,
|
|
@@ -17,7 +17,7 @@ import { Fragment as y, useId as b } from "react";
|
|
|
17
17
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
18
18
|
import { Minimize2 as w, MoreVertical as ne, X as T } from "lucide-react";
|
|
19
19
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js
|
|
20
|
-
function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor: j, values: M, errors: N, onChange: P, lineItems: F, documentPanel: I, menuItems: L, readOnly: R, detail: z, isLineItemsLoading: B, isSaving: V, isSavingDraft: H,
|
|
20
|
+
function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor: j, values: M, errors: N, onChange: P, lineItems: F, documentPanel: I, menuItems: L, readOnly: R, detail: z, isLineItemsLoading: B, isSaving: V, isSavingDraft: H, isSubmitting: U, showSubmit: W = !0, onCancel: G, onCollapse: K, onSaveDraft: q, onFinalize: J, scrollToErrorToken: Y, testId: X, labels: Z }) {
|
|
21
21
|
let re = b(), Q = _(Z), $ = !!(R && z), ie = L ? m(L) : [], ae = v(Y);
|
|
22
22
|
return /* @__PURE__ */ S(t, {
|
|
23
23
|
open: E,
|
|
@@ -171,7 +171,7 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
|
|
|
171
171
|
onClick: J,
|
|
172
172
|
loading: U,
|
|
173
173
|
disabled: V || H || B || j.mode === "creating",
|
|
174
|
-
children: Q.
|
|
174
|
+
children: Q.submitButton
|
|
175
175
|
}) : null] })]
|
|
176
176
|
})
|
|
177
177
|
]
|
|
@@ -19,6 +19,7 @@ var o = {
|
|
|
19
19
|
amountPaidHeading: "Amount paid",
|
|
20
20
|
invoiceDateLabel: "Invoice date",
|
|
21
21
|
dueDateLabel: "Due date",
|
|
22
|
+
approvalOverrideNotice: "If approvers are unavailable, you can override the approval policy from the overflow menu.",
|
|
22
23
|
payToHeading: "Pay to",
|
|
23
24
|
payToHeadingPaid: "Paid to",
|
|
24
25
|
paymentHistoryHeading: "Payment history",
|