@tesouro/embedded-components-react 0.5.20 → 0.5.23
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/feature/dist/index45.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +191 -193
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +16 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +140 -139
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +139 -134
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { derivePayableStatus as e } from "./index7.js";
|
|
2
|
-
import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../ui/dist/
|
|
2
|
+
import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../ui/dist/index18.js";
|
|
3
3
|
import "../../ui/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js
|
|
5
5
|
var n = /* @__PURE__ */ new Set([
|
|
@@ -7,229 +7,227 @@ import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
|
7
7
|
import { useAllLedgerAccountsQuery as ee } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
8
8
|
import { useAllOrganizationUsersQuery as te } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import { useWidgetConfig as
|
|
10
|
+
import { useWidgetConfig as n } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
11
|
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { usePayableApprovalRequestsQuery as
|
|
13
|
-
import { usePayableHistoryQuery as
|
|
14
|
-
import { useAllPayableLineItemsQuery as
|
|
15
|
-
import { usePayableQuery as
|
|
12
|
+
import { usePayableApprovalRequestsQuery as r } from "../../data-access/dist/index8.js";
|
|
13
|
+
import { usePayableHistoryQuery as i } from "../../data-access/dist/index9.js";
|
|
14
|
+
import { useAllPayableLineItemsQuery as a } from "../../data-access/dist/index10.js";
|
|
15
|
+
import { usePayableQuery as o } from "../../data-access/dist/index17.js";
|
|
16
16
|
import "../../data-access/dist/index.js";
|
|
17
|
-
import { BillDecisionDialog as
|
|
18
|
-
import { BillDetailsSheet as
|
|
19
|
-
import { BillDuplicateNotice as
|
|
20
|
-
import { MarkAsPaidDialog as
|
|
17
|
+
import { BillDecisionDialog as s } from "../../ui/dist/index56.js";
|
|
18
|
+
import { BillDetailsSheet as c } from "../../ui/dist/index65.js";
|
|
19
|
+
import { BillDuplicateNotice as l } from "../../ui/dist/index69.js";
|
|
20
|
+
import { MarkAsPaidDialog as u } from "../../ui/dist/index99.js";
|
|
21
21
|
import "../../ui/dist/index.js";
|
|
22
|
-
import { usePayableDuplicateReview as
|
|
22
|
+
import { usePayableDuplicateReview as d } from "./index13.js";
|
|
23
23
|
import "./index14.js";
|
|
24
|
-
import { canOverrideApprovalPolicy as
|
|
25
|
-
import { resolveAmountDueMinorUnits as
|
|
26
|
-
import { usePayableAchInstructions as
|
|
24
|
+
import { canOverrideApprovalPolicy as f, canReadCounterpartBankAccounts as p } from "./index20.js";
|
|
25
|
+
import { resolveAmountDueMinorUnits as m } from "./index21.js";
|
|
26
|
+
import { usePayableAchInstructions as h } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
27
27
|
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
28
|
-
import { PayBillFlow as
|
|
28
|
+
import { PayBillFlow as ne } from "./index27.js";
|
|
29
29
|
import "./index28.js";
|
|
30
|
-
import { mapPayableToBillDetails as
|
|
31
|
-
import { mergeMarkAsPaidFlowLabels as
|
|
32
|
-
import { useMarkAsPaidFlow as
|
|
30
|
+
import { mapPayableToBillDetails as re } from "./index42.js";
|
|
31
|
+
import { mergeMarkAsPaidFlowLabels as ie } from "./index15.js";
|
|
32
|
+
import { useMarkAsPaidFlow as ae } from "./index17.js";
|
|
33
33
|
import "./index18.js";
|
|
34
|
-
import { mergeDecisionDialogCopy as
|
|
35
|
-
import { buildPaymentHistory as
|
|
36
|
-
import { currentApprovalRound as
|
|
37
|
-
import { usePayableApprovalRoundStart as
|
|
38
|
-
import { useApprovalPolicyCardView as
|
|
39
|
-
import { resolveBillRejectionNotice as
|
|
40
|
-
import { useCurrentApprovalRequestId as
|
|
41
|
-
import { usePayableDetailActions as
|
|
42
|
-
import { useScheduledPayment as
|
|
43
|
-
import { BILL_DETAILS_LABELS_EN as
|
|
44
|
-
import { useMemo as
|
|
45
|
-
import { Fragment as
|
|
34
|
+
import { mergeDecisionDialogCopy as oe, mergePaymentHistoryMethodLabels as se } from "./index46.js";
|
|
35
|
+
import { buildPaymentHistory as ce } from "./index3.js";
|
|
36
|
+
import { currentApprovalRound as le } from "./index4.js";
|
|
37
|
+
import { usePayableApprovalRoundStart as ue } from "./index32.js";
|
|
38
|
+
import { useApprovalPolicyCardView as de } from "./index33.js";
|
|
39
|
+
import { resolveBillRejectionNotice as fe } from "./index34.js";
|
|
40
|
+
import { useCurrentApprovalRequestId as pe } from "./index35.js";
|
|
41
|
+
import { usePayableDetailActions as me } from "./index36.js";
|
|
42
|
+
import { useScheduledPayment as he } from "./index37.js";
|
|
43
|
+
import { BILL_DETAILS_LABELS_EN as g } from "./index63.js";
|
|
44
|
+
import { useMemo as _, useRef as v } from "react";
|
|
45
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
46
46
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js
|
|
47
|
-
function
|
|
48
|
-
let
|
|
49
|
-
...
|
|
50
|
-
...
|
|
47
|
+
function S({ open: S, onOpenChange: C, payableId: w, onClose: T, onExpand: E, onEdit: D, testId: O, labels: k, poweredByBankName: A }) {
|
|
48
|
+
let j = _(() => ({
|
|
49
|
+
...g,
|
|
50
|
+
...k,
|
|
51
51
|
sheet: {
|
|
52
|
-
...
|
|
53
|
-
...
|
|
52
|
+
...g.sheet,
|
|
53
|
+
...k?.sheet,
|
|
54
54
|
statusBadge: {
|
|
55
|
-
...
|
|
56
|
-
...
|
|
55
|
+
...g.sheet.statusBadge,
|
|
56
|
+
...k?.sheet?.statusBadge
|
|
57
57
|
},
|
|
58
58
|
approvalPolicy: {
|
|
59
|
-
...
|
|
60
|
-
...
|
|
59
|
+
...g.sheet.approvalPolicy,
|
|
60
|
+
...k?.sheet?.approvalPolicy
|
|
61
61
|
},
|
|
62
62
|
dueDate: {
|
|
63
|
-
...
|
|
64
|
-
...
|
|
63
|
+
...g.sheet.dueDate,
|
|
64
|
+
...k?.sheet?.dueDate
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
decisionDialog:
|
|
67
|
+
decisionDialog: oe(g.decisionDialog, k?.decisionDialog),
|
|
68
68
|
approvalPolicyCopy: {
|
|
69
|
-
...
|
|
70
|
-
...
|
|
69
|
+
...g.approvalPolicyCopy,
|
|
70
|
+
...k?.approvalPolicyCopy
|
|
71
71
|
},
|
|
72
|
-
markAsPaid:
|
|
72
|
+
markAsPaid: ie(k?.markAsPaid),
|
|
73
73
|
actionSuccess: {
|
|
74
|
-
...
|
|
75
|
-
...
|
|
74
|
+
...g.actionSuccess,
|
|
75
|
+
...k?.actionSuccess
|
|
76
76
|
},
|
|
77
|
-
paymentHistoryMethodLabels:
|
|
78
|
-
}), [
|
|
79
|
-
payableId:
|
|
80
|
-
status:
|
|
81
|
-
}),
|
|
82
|
-
payableId:
|
|
83
|
-
enabled:
|
|
84
|
-
}),
|
|
85
|
-
payableStatus:
|
|
86
|
-
approvalRequests:
|
|
87
|
-
users:
|
|
88
|
-
payableUpdatedAt:
|
|
89
|
-
labels:
|
|
77
|
+
paymentHistoryMethodLabels: se(k?.paymentHistoryMethodLabels)
|
|
78
|
+
}), [k]), M = o(w), N = a(w), P = ee(), { initResponse: F } = n(), I = M.data, L = v(null), R = pe({
|
|
79
|
+
payableId: w,
|
|
80
|
+
status: I?.status
|
|
81
|
+
}), z = I?.status === "rejected", ge = e(F?.scopes, [t.ApprovalRequestReadOrg]), B = z && ge, V = ue({
|
|
82
|
+
payableId: w,
|
|
83
|
+
enabled: B
|
|
84
|
+
}), H = r(w, { enabled: B }), _e = e(F?.scopes, [t.UserReadOrg]), U = te({ enabled: z && _e }), W = _(() => le(H.data?.data, V.roundStartedAt), [H.data, V.roundStartedAt]), G = _(() => fe({
|
|
85
|
+
payableStatus: I?.status,
|
|
86
|
+
approvalRequests: W,
|
|
87
|
+
users: U.data?.data ?? [],
|
|
88
|
+
payableUpdatedAt: I?.updated_at,
|
|
89
|
+
labels: j
|
|
90
90
|
}), [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
]),
|
|
97
|
-
payableId:
|
|
98
|
-
approvalPolicyId:
|
|
99
|
-
copy:
|
|
100
|
-
}),
|
|
101
|
-
status:
|
|
102
|
-
scopes:
|
|
103
|
-
arePendingApproversUnknown:
|
|
104
|
-
hasApprovalPolicy: !!
|
|
105
|
-
hasWaitingRequest:
|
|
106
|
-
}),
|
|
107
|
-
payableId:
|
|
108
|
-
scheduledPaymentDate:
|
|
109
|
-
}),
|
|
110
|
-
counterpartId:
|
|
111
|
-
currency:
|
|
112
|
-
currentBankAccountId:
|
|
113
|
-
enabled:
|
|
114
|
-
}),
|
|
115
|
-
payableId:
|
|
116
|
-
amountDueMinorUnits:
|
|
117
|
-
amountToPayMinorUnits:
|
|
118
|
-
currencyCode:
|
|
119
|
-
dueDate:
|
|
120
|
-
hasScheduledPayment:
|
|
121
|
-
testId:
|
|
122
|
-
labels:
|
|
123
|
-
}), { actions:
|
|
124
|
-
payableId:
|
|
125
|
-
status:
|
|
126
|
-
currentApprovalRequestId:
|
|
127
|
-
hasScheduledPayment:
|
|
128
|
-
scheduledPaymentIntentId:
|
|
129
|
-
isScheduledPaymentUnknown:
|
|
130
|
-
isPayabilityUnknown:
|
|
131
|
-
hasApprovalPolicy: !!
|
|
132
|
-
hasWaitingRequest:
|
|
133
|
-
pendingApprovers:
|
|
134
|
-
arePendingApproversUnknown:
|
|
91
|
+
I?.status,
|
|
92
|
+
I?.updated_at,
|
|
93
|
+
W,
|
|
94
|
+
U.data,
|
|
95
|
+
j
|
|
96
|
+
]), K = de({
|
|
97
|
+
payableId: w,
|
|
98
|
+
approvalPolicyId: I?.approval_policy_id,
|
|
99
|
+
copy: j.approvalPolicyCopy
|
|
100
|
+
}), ve = f({
|
|
101
|
+
status: I?.status,
|
|
102
|
+
scopes: F?.scopes,
|
|
103
|
+
arePendingApproversUnknown: K.isLoading,
|
|
104
|
+
hasApprovalPolicy: !!I?.approval_policy_id,
|
|
105
|
+
hasWaitingRequest: R.hasWaitingRequest
|
|
106
|
+
}), q = he({
|
|
107
|
+
payableId: w,
|
|
108
|
+
scheduledPaymentDate: I?.scheduled_payment_date
|
|
109
|
+
}), J = p(F?.scopes), Y = h({
|
|
110
|
+
counterpartId: I?.counterpart_id,
|
|
111
|
+
currency: I?.currency,
|
|
112
|
+
currentBankAccountId: I?.counterpart_bank_account_id,
|
|
113
|
+
enabled: J
|
|
114
|
+
}), X = ae({
|
|
115
|
+
payableId: w,
|
|
116
|
+
amountDueMinorUnits: m(I) ?? 0,
|
|
117
|
+
amountToPayMinorUnits: I?.amount_to_pay ?? void 0,
|
|
118
|
+
currencyCode: I?.currency ?? void 0,
|
|
119
|
+
dueDate: I?.due_date,
|
|
120
|
+
hasScheduledPayment: q.hasScheduledPayment,
|
|
121
|
+
testId: O,
|
|
122
|
+
labels: j.markAsPaid
|
|
123
|
+
}), { actions: ye, decisionDialog: be } = me({
|
|
124
|
+
payableId: I ? w : void 0,
|
|
125
|
+
status: I?.status,
|
|
126
|
+
currentApprovalRequestId: R.id,
|
|
127
|
+
hasScheduledPayment: q.hasScheduledPayment,
|
|
128
|
+
scheduledPaymentIntentId: q.scheduledPaymentIntentId,
|
|
129
|
+
isScheduledPaymentUnknown: q.isResolving,
|
|
130
|
+
isPayabilityUnknown: Y.isLoading,
|
|
131
|
+
hasApprovalPolicy: !!I?.approval_policy_id,
|
|
132
|
+
hasWaitingRequest: R.hasWaitingRequest,
|
|
133
|
+
pendingApprovers: K.pendingApprovers,
|
|
134
|
+
arePendingApproversUnknown: K.isLoading,
|
|
135
135
|
labels: {
|
|
136
|
-
edit:
|
|
137
|
-
payBill:
|
|
138
|
-
markAsPaid:
|
|
139
|
-
reject:
|
|
140
|
-
approve:
|
|
141
|
-
cancel:
|
|
142
|
-
cancelScheduledPayment:
|
|
143
|
-
reopen:
|
|
144
|
-
forceApprove:
|
|
145
|
-
forceReject:
|
|
146
|
-
policyOverridesHeading:
|
|
147
|
-
decisionDialog:
|
|
148
|
-
actionError:
|
|
149
|
-
actionSuccess:
|
|
136
|
+
edit: j.sheet.editButton,
|
|
137
|
+
payBill: j.sheet.payButton,
|
|
138
|
+
markAsPaid: j.sheet.markAsPaidButton,
|
|
139
|
+
reject: j.sheet.rejectButton,
|
|
140
|
+
approve: j.sheet.approveButton,
|
|
141
|
+
cancel: j.sheet.cancelButton,
|
|
142
|
+
cancelScheduledPayment: j.sheet.cancelScheduledPaymentButton,
|
|
143
|
+
reopen: j.sheet.reopenButton,
|
|
144
|
+
forceApprove: j.sheet.forceApproveButton,
|
|
145
|
+
forceReject: j.sheet.forceRejectButton,
|
|
146
|
+
policyOverridesHeading: j.sheet.policyOverridesGroup,
|
|
147
|
+
decisionDialog: j.decisionDialog,
|
|
148
|
+
actionError: j.actionError,
|
|
149
|
+
actionSuccess: j.actionSuccess
|
|
150
150
|
},
|
|
151
|
-
isMarkAsPaidPending:
|
|
152
|
-
onMarkAsPaidSelect:
|
|
153
|
-
onPayBillSelect: () =>
|
|
154
|
-
onEditSelect:
|
|
151
|
+
isMarkAsPaidPending: X.isPending,
|
|
152
|
+
onMarkAsPaidSelect: X.open,
|
|
153
|
+
onPayBillSelect: () => L.current?.open(),
|
|
154
|
+
onEditSelect: D,
|
|
155
155
|
onActionSucceeded: (e) => {
|
|
156
|
-
e === "reopen" &&
|
|
156
|
+
e === "reopen" && D?.();
|
|
157
157
|
}
|
|
158
|
-
}),
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
})
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
events: Q.data?.data ?? [],
|
|
170
|
-
currencyCode: P?.currency,
|
|
171
|
-
labels: k
|
|
158
|
+
}), xe = q.hasScheduledPayment && q.scheduledDateLabel ? j.scheduledSummary(q.scheduledDateLabel) : void 0, Z = d({
|
|
159
|
+
payable: I,
|
|
160
|
+
canManage: e(F?.scopes, [t.PayableWriteOrg])
|
|
161
|
+
}), Q = Z.isPossibleDuplicate ? /* @__PURE__ */ b(l, {
|
|
162
|
+
onNotADuplicate: Z.onNotADuplicate,
|
|
163
|
+
isActionDisabled: Z.isBusy
|
|
164
|
+
}) : void 0, $ = i(w), Se = _(() => ce({
|
|
165
|
+
records: q.paymentRecords,
|
|
166
|
+
events: $.data?.data ?? [],
|
|
167
|
+
currencyCode: I?.currency,
|
|
168
|
+
labels: j
|
|
172
169
|
}), [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
]),
|
|
178
|
-
payable:
|
|
179
|
-
lineItems:
|
|
180
|
-
ledgerAccounts:
|
|
181
|
-
labels:
|
|
182
|
-
hasScheduledPayment:
|
|
183
|
-
rejection:
|
|
184
|
-
achInstructions:
|
|
185
|
-
achInstructionsReadable:
|
|
170
|
+
q.paymentRecords,
|
|
171
|
+
$.data,
|
|
172
|
+
I?.currency,
|
|
173
|
+
j
|
|
174
|
+
]), Ce = _(() => I ? re({
|
|
175
|
+
payable: I,
|
|
176
|
+
lineItems: N.lineItems,
|
|
177
|
+
ledgerAccounts: P.data?.data ?? [],
|
|
178
|
+
labels: j,
|
|
179
|
+
hasScheduledPayment: q.hasScheduledPayment,
|
|
180
|
+
rejection: G,
|
|
181
|
+
achInstructions: Y.achInstructions,
|
|
182
|
+
achInstructionsReadable: J && !Y.isLoading && !Y.isError
|
|
186
183
|
}) : void 0, [
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
]),
|
|
198
|
-
return /* @__PURE__ */ y
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
open:
|
|
201
|
-
onOpenChange:
|
|
202
|
-
details:
|
|
203
|
-
actions:
|
|
204
|
-
approvalPolicy:
|
|
205
|
-
showApprovalOverrideNotice:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
184
|
+
I,
|
|
185
|
+
N.lineItems,
|
|
186
|
+
P.data,
|
|
187
|
+
j,
|
|
188
|
+
q.hasScheduledPayment,
|
|
189
|
+
G,
|
|
190
|
+
Y.achInstructions,
|
|
191
|
+
Y.isError,
|
|
192
|
+
Y.isLoading,
|
|
193
|
+
J
|
|
194
|
+
]), we = M.isLoading || N.isResolving || P.isResolving || Y.isLoading, Te = M.isError || N.isError || P.isError;
|
|
195
|
+
return /* @__PURE__ */ x(y, { children: [
|
|
196
|
+
/* @__PURE__ */ b(c, {
|
|
197
|
+
open: S,
|
|
198
|
+
onOpenChange: C,
|
|
199
|
+
details: Ce,
|
|
200
|
+
actions: ye,
|
|
201
|
+
approvalPolicy: K.view,
|
|
202
|
+
showApprovalOverrideNotice: ve && !!I?.approval_policy_id,
|
|
203
|
+
scheduledSummary: xe,
|
|
204
|
+
paymentHistory: Se,
|
|
205
|
+
paymentHistoryError: q.isError || $.isError,
|
|
206
|
+
paymentHistoryLoading: q.isResolving || $.isLoading,
|
|
207
|
+
isLoading: we,
|
|
208
|
+
isError: Te,
|
|
209
|
+
notice: Q,
|
|
210
|
+
onClose: T,
|
|
211
|
+
onExpand: E,
|
|
212
|
+
testId: O,
|
|
213
|
+
labels: j.sheet
|
|
216
214
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
-
...
|
|
219
|
-
labels: { cancelButton:
|
|
220
|
-
testId:
|
|
221
|
-
confirmTestId:
|
|
222
|
-
reasonTestId:
|
|
223
|
-
reasonFieldId:
|
|
215
|
+
/* @__PURE__ */ b(s, {
|
|
216
|
+
...be,
|
|
217
|
+
labels: { cancelButton: j.decisionDialog.cancelButton },
|
|
218
|
+
testId: O ? `${O}-decision-dialog` : void 0,
|
|
219
|
+
confirmTestId: O ? `${O}-decision-confirm` : void 0,
|
|
220
|
+
reasonTestId: O ? `${O}-decision-reason` : void 0,
|
|
221
|
+
reasonFieldId: O ? `${O}-decision-reason-field` : void 0
|
|
224
222
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
|
|
227
|
-
ref:
|
|
228
|
-
payable:
|
|
229
|
-
onMissingAchInstructions:
|
|
230
|
-
poweredByBankName:
|
|
223
|
+
/* @__PURE__ */ b(u, { ...X.dialogProps }),
|
|
224
|
+
I ? /* @__PURE__ */ b(ne, {
|
|
225
|
+
ref: L,
|
|
226
|
+
payable: I,
|
|
227
|
+
onMissingAchInstructions: E,
|
|
228
|
+
poweredByBankName: A
|
|
231
229
|
}) : null
|
|
232
230
|
] });
|
|
233
231
|
}
|
|
234
232
|
//#endregion
|
|
235
|
-
export {
|
|
233
|
+
export { S as BillDetailsContainer, S as default };
|
|
@@ -10,8 +10,8 @@ import "./index11.js";
|
|
|
10
10
|
import "./index12.js";
|
|
11
11
|
import "./index13.js";
|
|
12
12
|
import "./index14.js";
|
|
13
|
-
import "./
|
|
14
|
-
import { BILL_STATUS_BADGE_LABELS_EN as t } from "./
|
|
13
|
+
import "./index17.js";
|
|
14
|
+
import { BILL_STATUS_BADGE_LABELS_EN as t } from "./index18.js";
|
|
15
15
|
import "./index19.js";
|
|
16
16
|
import "./index20.js";
|
|
17
17
|
import "./index21.js";
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { Fragment as t, jsx as n } from "react/jsx-runtime";
|
|
3
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var e = {
|
|
3
|
+
accent: "ttw:border-violet-100 ttw:bg-violet-100 ttw:text-violet-700 ttw:hover:bg-violet-100",
|
|
4
|
+
committed: "ttw:border-cyan-200 ttw:bg-cyan-50 ttw:text-cyan-700 ttw:hover:bg-cyan-50",
|
|
5
|
+
danger: "ttw:border-destructive/20 ttw:bg-destructive/20 ttw:text-destructive ttw:hover:bg-destructive/20",
|
|
6
|
+
info: "ttw:border-blue-100 ttw:bg-blue-100 ttw:text-blue-700 ttw:hover:bg-blue-100",
|
|
7
|
+
neutral: "ttw:border-border ttw:bg-muted ttw:text-foreground ttw:hover:bg-muted",
|
|
8
|
+
settled: "ttw:border-border ttw:bg-background ttw:text-green-900 ttw:hover:bg-background",
|
|
9
|
+
success: "ttw:border-green-100 ttw:bg-green-100 ttw:text-green-700 ttw:hover:bg-green-100",
|
|
10
|
+
warning: "ttw:border-amber-100 ttw:bg-amber-100 ttw:text-amber-700 ttw:hover:bg-amber-100"
|
|
7
11
|
};
|
|
8
|
-
function i({ actions: r }) {
|
|
9
|
-
return /* @__PURE__ */ n(t, { children: r.map((t) => /* @__PURE__ */ n(e, {
|
|
10
|
-
type: "button",
|
|
11
|
-
variant: t.variant,
|
|
12
|
-
disabled: t.disabled,
|
|
13
|
-
loading: t.loading,
|
|
14
|
-
onClick: t.onSelect,
|
|
15
|
-
children: t.label
|
|
16
|
-
}, t.id)) });
|
|
17
|
-
}
|
|
18
12
|
//#endregion
|
|
19
|
-
export {
|
|
13
|
+
export { e as BADGE_TONE_CLASS_NAME };
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { Fragment as t, jsx as n } from "react/jsx-runtime";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: i
|
|
18
|
-
}) : null]
|
|
19
|
-
})]
|
|
20
|
-
});
|
|
4
|
+
var r = {
|
|
5
|
+
row: [],
|
|
6
|
+
menu: []
|
|
7
|
+
};
|
|
8
|
+
function i({ actions: r }) {
|
|
9
|
+
return /* @__PURE__ */ n(t, { children: r.map((t) => /* @__PURE__ */ n(e, {
|
|
10
|
+
type: "button",
|
|
11
|
+
variant: t.variant,
|
|
12
|
+
disabled: t.disabled,
|
|
13
|
+
loading: t.loading,
|
|
14
|
+
onClick: t.onSelect,
|
|
15
|
+
children: t.label
|
|
16
|
+
}, t.id)) });
|
|
21
17
|
}
|
|
22
18
|
//#endregion
|
|
23
|
-
export {
|
|
19
|
+
export { i as BillActionButtons, i as default, r as NO_BILL_ACTIONS };
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { AlertTriangleIcon as n } from "lucide-react";
|
|
1
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
function r({ actorLabel: r, message: i }) {
|
|
5
|
+
return /* @__PURE__ */ t("div", {
|
|
6
|
+
className: "ttw:flex ttw:gap-2 ttw:rounded-md ttw:border ttw:border-destructive/20 ttw:bg-destructive/5 ttw:p-3",
|
|
7
|
+
children: [/* @__PURE__ */ e(n, {
|
|
8
|
+
"aria-hidden": !0,
|
|
9
|
+
className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-destructive"
|
|
10
|
+
}), /* @__PURE__ */ t("div", {
|
|
11
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
12
|
+
children: [/* @__PURE__ */ e("p", {
|
|
13
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
|
|
14
|
+
children: r
|
|
15
|
+
}), i ? /* @__PURE__ */ e("p", {
|
|
16
|
+
className: "ttw:text-sm ttw:text-foreground",
|
|
17
|
+
children: i
|
|
18
|
+
}) : null]
|
|
19
|
+
})]
|
|
20
|
+
});
|
|
21
|
+
}
|
|
13
22
|
//#endregion
|
|
14
|
-
export {
|
|
23
|
+
export { r as BillRejectionNotice, r as default };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js
|
|
2
2
|
var e = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
draft: "Draft",
|
|
4
|
+
ready_to_submit: "Ready to submit",
|
|
5
|
+
pending_approval: "Pending review",
|
|
6
|
+
ready_to_pay: "Ready to pay",
|
|
7
|
+
scheduled: "Scheduled",
|
|
8
|
+
paid: "Paid",
|
|
9
|
+
canceled: "Cancelled",
|
|
10
|
+
rejected: "Rejected",
|
|
11
|
+
unknown: "Unknown"
|
|
11
12
|
};
|
|
12
13
|
//#endregion
|
|
13
|
-
export { e as
|
|
14
|
+
export { e as BILL_STATUS_BADGE_LABELS_EN };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { BILL_STATUS_BADGE_LABELS_EN as n } from "./
|
|
3
|
-
import { BADGE_TONE_CLASS_NAME as r } from "./
|
|
2
|
+
import { BILL_STATUS_BADGE_LABELS_EN as n } from "./index18.js";
|
|
3
|
+
import { BADGE_TONE_CLASS_NAME as r } from "./index15.js";
|
|
4
4
|
import { jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js
|
|
6
6
|
function a({ status: a, tone: o, labels: s, icon: c }) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./index18.js";
|
|
2
2
|
import "./index19.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APPROVAL_POLICY_CARD_LABELS_EN as e } from "./index12.js";
|
|
2
2
|
import "./index14.js";
|
|
3
|
-
import { BILL_STATUS_BADGE_LABELS_EN as t } from "./
|
|
3
|
+
import { BILL_STATUS_BADGE_LABELS_EN as t } from "./index18.js";
|
|
4
4
|
import "./index20.js";
|
|
5
5
|
import { DUE_DATE_VALUE_LABELS_EN as n } from "./index21.js";
|
|
6
6
|
import "./index23.js";
|