@tesouro/embedded-components-react 0.5.28 → 0.5.31
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/README.md +14 -13
- package/dist/index.css +15 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -0
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +155 -151
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +52 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +57 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +68 -207
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +278 -175
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +53 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +204 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +532 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -436
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +42 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +230 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -233
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +46 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +122 -241
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +206 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -213
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +158 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +100 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +103 -146
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +93 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +43 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +55 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +33 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +187 -350
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +356 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +87 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +90 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +92 -87
- 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/ui/dist/lib/OnboardingShell/OnboardingShell.js +126 -105
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +0 -28
|
@@ -19,17 +19,22 @@ import { useMemo as g } from "react";
|
|
|
19
19
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
20
20
|
import { AlertTriangle as y } from "lucide-react";
|
|
21
21
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js
|
|
22
|
-
var b = "ttw:text-base ttw:font-semibold", x = "ttw:px-3 ttw:py-2", S = "ttw:
|
|
23
|
-
function
|
|
24
|
-
let
|
|
25
|
-
...
|
|
26
|
-
payToHeading:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
var b = "ttw:text-base ttw:font-semibold", x = "ttw:px-3 ttw:py-2", S = "ttw:py-2 ttw:pr-3", C = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", w = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground";
|
|
23
|
+
function T({ view: T, actions: E = h, scheduledSummary: D, scheduledStatusLabel: O, showApprovalOverrideNotice: k, awaitingApprovalNotice: A, payTo: j, hideMissingPaymentInstructions: M, paymentHistoryError: N, paymentHistoryLoading: P, isLoading: F, isError: I, labels: L }) {
|
|
24
|
+
let R = g(() => p(L), [L]), z = g(() => ({
|
|
25
|
+
...R.payToCard,
|
|
26
|
+
payToHeading: T?.paidOnLabel ? R.payToHeadingPaid : R.payToHeading,
|
|
27
|
+
vendorLabel: R.vendorRow,
|
|
28
|
+
achBankAccountLabel: R.paymentInstructionsRow
|
|
29
|
+
}), [R, T?.paidOnLabel]), B = g(() => ({
|
|
30
|
+
...R.statusBadge,
|
|
31
|
+
...O ? { scheduled: O } : void 0
|
|
32
|
+
}), [R.statusBadge, O]);
|
|
33
|
+
if (I) return /* @__PURE__ */ _(a, {
|
|
34
|
+
title: R.errorTitle,
|
|
35
|
+
description: R.errorDescription
|
|
31
36
|
});
|
|
32
|
-
if (
|
|
37
|
+
if (F || !T) return /* @__PURE__ */ v("div", {
|
|
33
38
|
"aria-hidden": !0,
|
|
34
39
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
35
40
|
children: [
|
|
@@ -38,73 +43,73 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
|
|
|
38
43
|
/* @__PURE__ */ _(n, { className: "ttw:h-24 ttw:w-full" })
|
|
39
44
|
]
|
|
40
45
|
});
|
|
41
|
-
let
|
|
46
|
+
let V = M ? void 0 : j?.paymentInstructions, H = T.payTo.hasPaymentInstructions ? void 0 : V;
|
|
42
47
|
return /* @__PURE__ */ v("div", {
|
|
43
48
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
44
49
|
children: [
|
|
45
|
-
|
|
50
|
+
H ? /* @__PURE__ */ v("div", {
|
|
46
51
|
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",
|
|
47
52
|
children: [
|
|
48
53
|
/* @__PURE__ */ _(y, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
|
|
49
54
|
/* @__PURE__ */ _("p", {
|
|
50
55
|
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
51
|
-
children:
|
|
56
|
+
children: R.missingPaymentInstructionsBanner
|
|
52
57
|
}),
|
|
53
58
|
/* @__PURE__ */ _(t, {
|
|
54
59
|
type: "button",
|
|
55
60
|
variant: "outline",
|
|
56
61
|
size: "sm",
|
|
57
|
-
onClick:
|
|
58
|
-
children:
|
|
62
|
+
onClick: H.onOpen,
|
|
63
|
+
children: R.addPaymentInstructions
|
|
59
64
|
})
|
|
60
65
|
]
|
|
61
66
|
}) : null,
|
|
62
67
|
/* @__PURE__ */ v("section", {
|
|
63
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted
|
|
68
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4",
|
|
64
69
|
children: [
|
|
65
|
-
|
|
70
|
+
T.paidOnLabel ? /* @__PURE__ */ v("div", {
|
|
66
71
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
67
72
|
children: [/* @__PURE__ */ v("div", {
|
|
68
73
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
69
74
|
children: [/* @__PURE__ */ _("span", {
|
|
70
75
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
71
|
-
children:
|
|
76
|
+
children: R.amountDueHeading
|
|
72
77
|
}), /* @__PURE__ */ _("span", {
|
|
73
78
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
74
|
-
children:
|
|
79
|
+
children: T.amountDue
|
|
75
80
|
})]
|
|
76
81
|
}), /* @__PURE__ */ v("div", {
|
|
77
82
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
78
83
|
children: [/* @__PURE__ */ _("span", {
|
|
79
84
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
80
|
-
children:
|
|
85
|
+
children: R.amountPaidHeading
|
|
81
86
|
}), /* @__PURE__ */ _("span", {
|
|
82
87
|
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
83
|
-
children:
|
|
88
|
+
children: T.amountPaid
|
|
84
89
|
})]
|
|
85
90
|
})]
|
|
86
91
|
}) : /* @__PURE__ */ v("div", {
|
|
87
92
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
88
93
|
children: [/* @__PURE__ */ _("span", {
|
|
89
94
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
90
|
-
children:
|
|
95
|
+
children: R.amountDueHeading
|
|
91
96
|
}), /* @__PURE__ */ _("span", {
|
|
92
97
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
93
|
-
children:
|
|
98
|
+
children: T.amountDue
|
|
94
99
|
})]
|
|
95
100
|
}),
|
|
96
|
-
/* @__PURE__ */ _("div", { children:
|
|
101
|
+
/* @__PURE__ */ _("div", { children: T.paidOnLabel ? /* @__PURE__ */ _(e, {
|
|
97
102
|
variant: "outline",
|
|
98
103
|
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
99
|
-
children:
|
|
100
|
-
}) :
|
|
104
|
+
children: T.paidOnLabel
|
|
105
|
+
}) : D ? /* @__PURE__ */ _(e, {
|
|
101
106
|
variant: "outline",
|
|
102
107
|
className: c.committed,
|
|
103
|
-
children:
|
|
108
|
+
children: D
|
|
104
109
|
}) : /* @__PURE__ */ _(l, {
|
|
105
|
-
status:
|
|
106
|
-
tone:
|
|
107
|
-
labels:
|
|
110
|
+
status: T.status,
|
|
111
|
+
tone: T.statusTone,
|
|
112
|
+
labels: B
|
|
108
113
|
}) }),
|
|
109
114
|
/* @__PURE__ */ v("div", {
|
|
110
115
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
@@ -112,74 +117,74 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
|
|
|
112
117
|
className: "ttw:flex ttw:flex-col",
|
|
113
118
|
children: [/* @__PURE__ */ _("span", {
|
|
114
119
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
115
|
-
children:
|
|
120
|
+
children: R.invoiceDateLabel
|
|
116
121
|
}), /* @__PURE__ */ _("span", {
|
|
117
122
|
className: "ttw:text-sm ttw:font-medium",
|
|
118
|
-
children:
|
|
123
|
+
children: T.invoiceDateLabel
|
|
119
124
|
})]
|
|
120
125
|
}), /* @__PURE__ */ v("div", {
|
|
121
126
|
className: "ttw:flex ttw:flex-col",
|
|
122
127
|
children: [/* @__PURE__ */ _("span", {
|
|
123
128
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
124
|
-
children:
|
|
129
|
+
children: R.dueDateLabel
|
|
125
130
|
}), /* @__PURE__ */ _(u, {
|
|
126
131
|
className: "ttw:text-sm ttw:font-medium",
|
|
127
|
-
value:
|
|
128
|
-
tone:
|
|
129
|
-
labels:
|
|
132
|
+
value: T.dueDateLabel,
|
|
133
|
+
tone: T.dueDateTone,
|
|
134
|
+
labels: R.dueDate
|
|
130
135
|
})]
|
|
131
136
|
})]
|
|
132
137
|
}),
|
|
133
|
-
|
|
134
|
-
|
|
138
|
+
T.rejection ? /* @__PURE__ */ _(s, { ...T.rejection }) : null,
|
|
139
|
+
k ? /* @__PURE__ */ _(r, {
|
|
135
140
|
variant: "caption",
|
|
136
141
|
color: "muted",
|
|
137
|
-
children:
|
|
142
|
+
children: R.approvalOverrideNotice
|
|
143
|
+
}) : A ? /* @__PURE__ */ _(r, {
|
|
144
|
+
variant: "caption",
|
|
145
|
+
color: "muted",
|
|
146
|
+
children: A
|
|
138
147
|
}) : null,
|
|
139
|
-
!
|
|
148
|
+
!D && E.row.length ? /* @__PURE__ */ _("div", {
|
|
140
149
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
141
|
-
children: /* @__PURE__ */ _(m, { actions:
|
|
150
|
+
children: /* @__PURE__ */ _(m, { actions: E.row })
|
|
142
151
|
}) : null
|
|
143
152
|
]
|
|
144
153
|
}),
|
|
145
|
-
/* @__PURE__ */ _(f, {
|
|
146
|
-
summary:
|
|
147
|
-
onEdit:
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
isOpen: D.isOpen,
|
|
151
|
-
values: D.values,
|
|
152
|
-
errors: D.errors,
|
|
153
|
-
isSaving: D.isSaving,
|
|
154
|
-
onOpen: D.onOpen,
|
|
155
|
-
onChange: D.onChange,
|
|
156
|
-
onSave: D.onSave,
|
|
157
|
-
onCancel: D.onCancel
|
|
158
|
-
} : void 0,
|
|
159
|
-
labels: I
|
|
154
|
+
j?.editForm ?? /* @__PURE__ */ _(f, {
|
|
155
|
+
summary: T.payTo,
|
|
156
|
+
onEdit: j?.onEdit,
|
|
157
|
+
paymentInstructions: V,
|
|
158
|
+
labels: z
|
|
160
159
|
}),
|
|
161
|
-
|
|
160
|
+
T.paymentHistory.length || N || P ? /* @__PURE__ */ v("section", {
|
|
162
161
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
163
162
|
children: [/* @__PURE__ */ _("h3", {
|
|
164
163
|
className: b,
|
|
165
|
-
children:
|
|
166
|
-
}),
|
|
164
|
+
children: R.paymentHistoryHeading
|
|
165
|
+
}), N ? /* @__PURE__ */ _("p", {
|
|
167
166
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
168
|
-
children:
|
|
169
|
-
}) :
|
|
167
|
+
children: R.paymentHistoryErrorDescription
|
|
168
|
+
}) : P ? /* @__PURE__ */ _(n, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ _(d, { records: T.paymentHistory })]
|
|
170
169
|
}) : null,
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
className: "ttw:flex ttw:flex-col",
|
|
173
|
-
children:
|
|
174
|
-
className:
|
|
175
|
-
children:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
className:
|
|
180
|
-
children:
|
|
181
|
-
|
|
182
|
-
|
|
170
|
+
/* @__PURE__ */ v("section", {
|
|
171
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
172
|
+
children: [/* @__PURE__ */ _("h3", {
|
|
173
|
+
className: b,
|
|
174
|
+
children: R.invoiceDetailsHeading
|
|
175
|
+
}), /* @__PURE__ */ _("dl", {
|
|
176
|
+
className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
177
|
+
children: T.invoiceFields.map((e) => /* @__PURE__ */ v("div", {
|
|
178
|
+
className: C,
|
|
179
|
+
children: [/* @__PURE__ */ _("dt", {
|
|
180
|
+
className: w,
|
|
181
|
+
children: e.label
|
|
182
|
+
}), /* @__PURE__ */ _("dd", {
|
|
183
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
184
|
+
children: e.value
|
|
185
|
+
})]
|
|
186
|
+
}, e.label))
|
|
187
|
+
})]
|
|
183
188
|
}),
|
|
184
189
|
/* @__PURE__ */ _("section", { children: /* @__PURE__ */ v("table", {
|
|
185
190
|
className: "ttw:w-full ttw:text-sm",
|
|
@@ -187,23 +192,23 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
|
|
|
187
192
|
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
188
193
|
children: [
|
|
189
194
|
/* @__PURE__ */ _("th", {
|
|
190
|
-
className: i(
|
|
191
|
-
children:
|
|
195
|
+
className: i(S, "ttw:text-left ttw:font-normal"),
|
|
196
|
+
children: R.descriptionAndGlCodeColumn
|
|
192
197
|
}),
|
|
193
198
|
/* @__PURE__ */ _("th", {
|
|
194
199
|
className: i(x, "ttw:text-right ttw:font-normal"),
|
|
195
|
-
children:
|
|
200
|
+
children: R.qtyPriceColumn
|
|
196
201
|
}),
|
|
197
202
|
/* @__PURE__ */ _("th", {
|
|
198
203
|
className: i(x, "ttw:text-right ttw:font-normal"),
|
|
199
|
-
children:
|
|
204
|
+
children: R.amountColumn
|
|
200
205
|
})
|
|
201
206
|
]
|
|
202
|
-
}) }), /* @__PURE__ */ v("tbody", { children: [
|
|
207
|
+
}) }), /* @__PURE__ */ v("tbody", { children: [T.lineItems.map((e) => /* @__PURE__ */ v("tr", {
|
|
203
208
|
className: "ttw:border-b ttw:border-border",
|
|
204
209
|
children: [
|
|
205
210
|
/* @__PURE__ */ _("td", {
|
|
206
|
-
className:
|
|
211
|
+
className: S,
|
|
207
212
|
children: /* @__PURE__ */ v("div", {
|
|
208
213
|
className: "ttw:flex ttw:flex-col",
|
|
209
214
|
children: [/* @__PURE__ */ _("span", { children: e.description }), /* @__PURE__ */ _("span", {
|
|
@@ -221,11 +226,11 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
|
|
|
221
226
|
children: e.amount
|
|
222
227
|
})
|
|
223
228
|
]
|
|
224
|
-
}, e.id)),
|
|
229
|
+
}, e.id)), T.amountRows.map((e) => /* @__PURE__ */ v("tr", {
|
|
225
230
|
className: i(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
|
|
226
231
|
children: [/* @__PURE__ */ _("td", {
|
|
227
232
|
colSpan: 2,
|
|
228
|
-
className:
|
|
233
|
+
className: S,
|
|
229
234
|
children: e.label
|
|
230
235
|
}), /* @__PURE__ */ _("td", {
|
|
231
236
|
className: i(x, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
|
|
@@ -233,18 +238,18 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
|
|
|
233
238
|
})]
|
|
234
239
|
}, e.label))] })]
|
|
235
240
|
}) }),
|
|
236
|
-
|
|
237
|
-
view:
|
|
238
|
-
labels:
|
|
241
|
+
T.approvalPolicy ? /* @__PURE__ */ _(o, {
|
|
242
|
+
view: T.approvalPolicy,
|
|
243
|
+
labels: R.approvalPolicy
|
|
239
244
|
}) : null,
|
|
240
|
-
|
|
245
|
+
T.history.length ? /* @__PURE__ */ v("section", {
|
|
241
246
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
242
247
|
children: [/* @__PURE__ */ _("h3", {
|
|
243
248
|
className: b,
|
|
244
|
-
children:
|
|
249
|
+
children: R.historyHeading
|
|
245
250
|
}), /* @__PURE__ */ _("ul", {
|
|
246
251
|
className: "ttw:flex ttw:flex-col",
|
|
247
|
-
children:
|
|
252
|
+
children: T.history.map((e) => /* @__PURE__ */ v("li", {
|
|
248
253
|
className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
|
|
249
254
|
children: [/* @__PURE__ */ _("span", {
|
|
250
255
|
className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
|
|
@@ -257,4 +262,4 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
|
|
|
257
262
|
});
|
|
258
263
|
}
|
|
259
264
|
//#endregion
|
|
260
|
-
export {
|
|
265
|
+
export { T as BillDetailBody, T as default };
|
|
@@ -7,50 +7,49 @@ import { VENDOR_SECTION_LABELS_EN as r } from "./index45.js";
|
|
|
7
7
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
8
8
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js
|
|
9
9
|
function o(o) {
|
|
10
|
-
let { onEdit: s,
|
|
10
|
+
let { onEdit: s, error: c, testId: l, labels: u, disabled: d } = o, f = {
|
|
11
11
|
...r,
|
|
12
|
-
...
|
|
12
|
+
...u,
|
|
13
13
|
summaryCard: {
|
|
14
14
|
...r.summaryCard,
|
|
15
|
-
...
|
|
15
|
+
...u?.summaryCard,
|
|
16
16
|
ach: {
|
|
17
17
|
...r.summaryCard.ach,
|
|
18
|
-
...
|
|
18
|
+
...u?.summaryCard?.ach
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
search: {
|
|
22
22
|
...r.search,
|
|
23
|
-
...
|
|
23
|
+
...u?.search
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
return /* @__PURE__ */ a("section", {
|
|
27
27
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
28
|
-
"data-invalid":
|
|
29
|
-
"data-testid":
|
|
28
|
+
"data-invalid": c ? !0 : void 0,
|
|
29
|
+
"data-testid": l,
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ i(e, {
|
|
32
32
|
component: "h2",
|
|
33
33
|
variant: "h6",
|
|
34
34
|
className: "ttw:font-semibold",
|
|
35
|
-
children:
|
|
35
|
+
children: f.heading
|
|
36
36
|
}),
|
|
37
37
|
o.mode === "resolved" ? /* @__PURE__ */ i(t, {
|
|
38
38
|
summary: o.summary,
|
|
39
39
|
onEdit: s,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}) : f ? /* @__PURE__ */ i(e, {
|
|
40
|
+
paymentInstructions: d ? void 0 : o.paymentInstructions,
|
|
41
|
+
labels: f.summaryCard
|
|
42
|
+
}) : d ? /* @__PURE__ */ i(e, {
|
|
44
43
|
variant: "body2",
|
|
45
44
|
className: "ttw:text-muted-foreground",
|
|
46
|
-
children:
|
|
45
|
+
children: f.noVendorPlaceholder
|
|
47
46
|
}) : o.mode === "selecting" ? /* @__PURE__ */ i(n, {
|
|
48
47
|
...o.search,
|
|
49
|
-
labels:
|
|
48
|
+
labels: f.search
|
|
50
49
|
}) : o.newVendorForm,
|
|
51
|
-
|
|
50
|
+
c ? /* @__PURE__ */ i("p", {
|
|
52
51
|
className: "ttw:text-sm ttw:text-destructive",
|
|
53
|
-
children:
|
|
52
|
+
children: c
|
|
54
53
|
}) : null
|
|
55
54
|
]
|
|
56
55
|
});
|
|
@@ -15,17 +15,17 @@ import { mergeBillCreateScreenLabels as _ } from "./index48.js";
|
|
|
15
15
|
import { useFocusFirstInvalidField as v } from "./index49.js";
|
|
16
16
|
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
|
-
import { Minimize2 as w, MoreVertical as
|
|
18
|
+
import { Minimize2 as w, MoreVertical as T, X as ne } from "lucide-react";
|
|
19
19
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.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,
|
|
21
|
-
let
|
|
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, detailEdit: B, isLineItemsLoading: V, isSaving: H, isSavingDraft: U, isSubmitting: W, showSubmit: G = !0, onCancel: K, onCollapse: q, onSaveDraft: J, onFinalize: Y, scrollToErrorToken: X, testId: Z, labels: re }) {
|
|
21
|
+
let ie = b(), Q = _(re), $ = !!(R && z), ae = L ? m(L) : [], oe = v(X);
|
|
22
22
|
return /* @__PURE__ */ S(t, {
|
|
23
23
|
open: E,
|
|
24
24
|
onOpenChange: D,
|
|
25
25
|
children: /* @__PURE__ */ C(n, {
|
|
26
26
|
showCloseButton: !1,
|
|
27
27
|
className: "ttw:flex ttw:h-[calc(100vh-3rem)] ttw:w-[calc(100vw-3rem)] ttw:max-w-[calc(100vw-3rem)] ttw:flex-col ttw:gap-0 ttw:p-0",
|
|
28
|
-
"data-testid":
|
|
28
|
+
"data-testid": Z,
|
|
29
29
|
children: [
|
|
30
30
|
/* @__PURE__ */ C(i, {
|
|
31
31
|
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
|
|
@@ -48,14 +48,14 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
|
|
|
48
48
|
}), /* @__PURE__ */ C("div", {
|
|
49
49
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
50
50
|
children: [
|
|
51
|
-
|
|
51
|
+
q ? /* @__PURE__ */ S(e, {
|
|
52
52
|
type: "button",
|
|
53
53
|
variant: "ghost",
|
|
54
54
|
size: "icon",
|
|
55
55
|
"aria-label": Q.collapseButton,
|
|
56
|
-
disabled:
|
|
57
|
-
onClick:
|
|
58
|
-
children: /* @__PURE__ */ S(w, { className: "ttw:size-4" })
|
|
56
|
+
disabled: H,
|
|
57
|
+
onClick: q,
|
|
58
|
+
children: /* @__PURE__ */ S(w, { className: "ttw:size-4 ttw:rotate-90" })
|
|
59
59
|
}) : null,
|
|
60
60
|
L && L.length > 0 ? /* @__PURE__ */ C(o, { children: [/* @__PURE__ */ S(d, {
|
|
61
61
|
asChild: !0,
|
|
@@ -64,12 +64,12 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
|
|
|
64
64
|
variant: "ghost",
|
|
65
65
|
size: "icon",
|
|
66
66
|
"aria-label": Q.menuTrigger,
|
|
67
|
-
disabled:
|
|
68
|
-
children: /* @__PURE__ */ S(
|
|
67
|
+
disabled: H,
|
|
68
|
+
children: /* @__PURE__ */ S(T, { className: "ttw:size-4" })
|
|
69
69
|
})
|
|
70
70
|
}), /* @__PURE__ */ S(s, {
|
|
71
71
|
align: "end",
|
|
72
|
-
children:
|
|
72
|
+
children: ae.map((e, t) => {
|
|
73
73
|
let n = e.items.map((e) => {
|
|
74
74
|
let t = e.icon;
|
|
75
75
|
return /* @__PURE__ */ C(l, {
|
|
@@ -80,7 +80,7 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
|
|
|
80
80
|
}, e.id);
|
|
81
81
|
});
|
|
82
82
|
if (!e.heading) return /* @__PURE__ */ S(y, { children: n }, e.items[0]?.id);
|
|
83
|
-
let r = `${
|
|
83
|
+
let r = `${ie}-${t}`;
|
|
84
84
|
return /* @__PURE__ */ C(y, { children: [
|
|
85
85
|
t > 0 ? /* @__PURE__ */ S(ee, {}) : null,
|
|
86
86
|
/* @__PURE__ */ S(u, {
|
|
@@ -100,9 +100,9 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
|
|
|
100
100
|
variant: "ghost",
|
|
101
101
|
size: "icon",
|
|
102
102
|
"aria-label": Q.closeButton,
|
|
103
|
-
disabled:
|
|
104
|
-
onClick:
|
|
105
|
-
children: /* @__PURE__ */ S(
|
|
103
|
+
disabled: H,
|
|
104
|
+
onClick: K,
|
|
105
|
+
children: /* @__PURE__ */ S(ne, { className: "ttw:size-4" })
|
|
106
106
|
})
|
|
107
107
|
]
|
|
108
108
|
})]
|
|
@@ -110,7 +110,7 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
|
|
|
110
110
|
/* @__PURE__ */ C("div", {
|
|
111
111
|
className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
|
|
112
112
|
children: [/* @__PURE__ */ C("div", {
|
|
113
|
-
ref:
|
|
113
|
+
ref: oe,
|
|
114
114
|
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
|
|
115
115
|
children: [
|
|
116
116
|
N?.form ? /* @__PURE__ */ S("div", {
|
|
@@ -128,7 +128,6 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
|
|
|
128
128
|
/* @__PURE__ */ S(g, {
|
|
129
129
|
...j,
|
|
130
130
|
onEdit: R ? void 0 : j.onEdit,
|
|
131
|
-
onClear: R ? void 0 : j.onClear,
|
|
132
131
|
disabled: R,
|
|
133
132
|
labels: Q.vendorSection
|
|
134
133
|
}),
|
|
@@ -141,7 +140,7 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
|
|
|
141
140
|
}),
|
|
142
141
|
/* @__PURE__ */ S(h, {
|
|
143
142
|
...F,
|
|
144
|
-
disabled: F.disabled ||
|
|
143
|
+
disabled: F.disabled || V || R,
|
|
145
144
|
labels: Q.lineItems
|
|
146
145
|
})
|
|
147
146
|
] })
|
|
@@ -151,26 +150,41 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
|
|
|
151
150
|
children: I
|
|
152
151
|
})]
|
|
153
152
|
}),
|
|
154
|
-
$ ?
|
|
153
|
+
$ ? B ? /* @__PURE__ */ C("div", {
|
|
154
|
+
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
155
|
+
children: [/* @__PURE__ */ S(e, {
|
|
156
|
+
type: "button",
|
|
157
|
+
variant: "ghost",
|
|
158
|
+
disabled: B.isSaving,
|
|
159
|
+
onClick: B.onCancel,
|
|
160
|
+
children: Q.cancelButton
|
|
161
|
+
}), /* @__PURE__ */ S(e, {
|
|
162
|
+
type: "button",
|
|
163
|
+
onClick: B.onSave,
|
|
164
|
+
loading: B.isSaving,
|
|
165
|
+
disabled: B.isSaving,
|
|
166
|
+
children: Q.saveButton
|
|
167
|
+
})]
|
|
168
|
+
}) : null : /* @__PURE__ */ C("div", {
|
|
155
169
|
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
156
170
|
children: [/* @__PURE__ */ S(e, {
|
|
157
171
|
type: "button",
|
|
158
172
|
variant: "ghost",
|
|
159
|
-
disabled:
|
|
160
|
-
onClick:
|
|
173
|
+
disabled: H,
|
|
174
|
+
onClick: K,
|
|
161
175
|
children: R ? Q.closeButton : Q.cancelButton
|
|
162
176
|
}), R ? null : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(e, {
|
|
163
177
|
type: "button",
|
|
164
|
-
variant:
|
|
165
|
-
onClick: q,
|
|
166
|
-
loading: H,
|
|
167
|
-
disabled: V || U || B || j.mode === "creating",
|
|
168
|
-
children: Q.saveDraftButton
|
|
169
|
-
}), W ? /* @__PURE__ */ S(e, {
|
|
170
|
-
type: "button",
|
|
178
|
+
variant: G ? "secondary" : "default",
|
|
171
179
|
onClick: J,
|
|
172
180
|
loading: U,
|
|
173
|
-
disabled:
|
|
181
|
+
disabled: H || W || V,
|
|
182
|
+
children: Q.saveDraftButton
|
|
183
|
+
}), G ? /* @__PURE__ */ S(e, {
|
|
184
|
+
type: "button",
|
|
185
|
+
onClick: Y,
|
|
186
|
+
loading: W,
|
|
187
|
+
disabled: H || U || V,
|
|
174
188
|
children: Q.submitButton
|
|
175
189
|
}) : null] })]
|
|
176
190
|
})
|