@tesouro/embedded-components-react 0.5.19 → 0.5.20
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.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +4 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +78 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +3 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +47 -136
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +136 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +33 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +188 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +22 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +223 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +202 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +126 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +47 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +49 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +202 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +240 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +19 -434
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +436 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +35 -231
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +235 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +10 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +112 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +124 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +239 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +110 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +213 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index10.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index11.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index12.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index14.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index15.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index17.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index18.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index19.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index20.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index21.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index22.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index23.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index7.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index8.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index12.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index14.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index15.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index16.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index17.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index10.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index12.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index14.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index16.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index17.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index8.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- 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/team-widget/data-access/dist/index11.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index13.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index2.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index4.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index6.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +0 -9
- /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index.js +0 -0
|
@@ -1,235 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
-
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
-
import { useAllLedgerAccountsQuery as ee } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
8
|
-
import { useAllOrganizationUsersQuery as te } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
|
|
9
|
-
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import { useWidgetConfig as ne } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
-
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { usePayableApprovalRequestsQuery as re } from "../../data-access/dist/index8.js";
|
|
13
|
-
import { usePayableHistoryQuery as ie } from "../../data-access/dist/index9.js";
|
|
14
|
-
import { useAllPayableLineItemsQuery as ae } from "../../data-access/dist/index10.js";
|
|
15
|
-
import { usePayableQuery as n } from "../../data-access/dist/index17.js";
|
|
16
|
-
import "../../data-access/dist/index.js";
|
|
17
|
-
import { BillDecisionDialog as r } from "../../ui/dist/index56.js";
|
|
18
|
-
import { BillDetailsSheet as i } from "../../ui/dist/index65.js";
|
|
19
|
-
import { BillDuplicateNotice as a } from "../../ui/dist/index69.js";
|
|
20
|
-
import { MarkAsPaidDialog as o } from "../../ui/dist/index99.js";
|
|
1
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/index64.js";
|
|
21
2
|
import "../../ui/dist/index.js";
|
|
22
|
-
import {
|
|
23
|
-
import "./index14.js";
|
|
24
|
-
import { canOverrideApprovalPolicy as c, canReadCounterpartBankAccounts as l } from "./index20.js";
|
|
25
|
-
import { resolveAmountDueMinorUnits as u } from "./index21.js";
|
|
26
|
-
import { usePayableAchInstructions as d } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
27
|
-
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
28
|
-
import { PayBillFlow as f } from "./index27.js";
|
|
29
|
-
import "./index28.js";
|
|
30
|
-
import { mapPayableToBillDetails as p } from "./index41.js";
|
|
31
|
-
import { mergeMarkAsPaidFlowLabels as m } from "./index15.js";
|
|
32
|
-
import { useMarkAsPaidFlow as oe } from "./index17.js";
|
|
3
|
+
import { MARK_AS_PAID_FLOW_LABELS_EN as t } from "./index15.js";
|
|
33
4
|
import "./index18.js";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { currentApprovalRound as ue } from "./index4.js";
|
|
37
|
-
import { usePayableApprovalRoundStart as de } from "./index32.js";
|
|
38
|
-
import { useApprovalPolicyCardView as fe } from "./index33.js";
|
|
39
|
-
import { resolveBillRejectionNotice as pe } from "./index34.js";
|
|
40
|
-
import { useCurrentApprovalRequestId as me } from "./index35.js";
|
|
41
|
-
import { usePayableDetailActions as he } from "./index36.js";
|
|
42
|
-
import { useScheduledPayment as ge } from "./index37.js";
|
|
43
|
-
import { BILL_DETAILS_LABELS_EN as h } from "./index62.js";
|
|
44
|
-
import { useMemo as g, useRef as _e } from "react";
|
|
45
|
-
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
5
|
+
import { APPROVAL_POLICY_RULE_COPY_EN as n } from "./index29.js";
|
|
6
|
+
import { BILL_DETAIL_ACTIONS_LABELS_EN as r, PAYMENT_HISTORY_LABELS_EN as i, SCHEDULED_SUMMARY_LABEL_EN as a } from "./index46.js";
|
|
46
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
paymentHistoryMethodLabels: ce(D?.paymentHistoryMethodLabels)
|
|
78
|
-
}), [D]), A = n(S), j = ae(S), M = ee(), { initResponse: N } = ne(), P = A.data, F = _e(null), I = me({
|
|
79
|
-
payableId: S,
|
|
80
|
-
status: P?.status
|
|
81
|
-
}), L = P?.status === "rejected", ve = e(N?.scopes, [t.ApprovalRequestReadOrg]), R = L && ve, z = de({
|
|
82
|
-
payableId: S,
|
|
83
|
-
enabled: R
|
|
84
|
-
}), B = re(S, { enabled: R }), ye = e(N?.scopes, [t.UserReadOrg]), V = te({ enabled: L && ye }), H = g(() => ue(B.data?.data, z.roundStartedAt), [B.data, z.roundStartedAt]), U = g(() => pe({
|
|
85
|
-
payableStatus: P?.status,
|
|
86
|
-
approvalRequests: H,
|
|
87
|
-
users: V.data?.data ?? [],
|
|
88
|
-
payableUpdatedAt: P?.updated_at,
|
|
89
|
-
labels: k
|
|
90
|
-
}), [
|
|
91
|
-
P?.status,
|
|
92
|
-
P?.updated_at,
|
|
93
|
-
H,
|
|
94
|
-
V.data,
|
|
95
|
-
k
|
|
96
|
-
]), W = fe({
|
|
97
|
-
payableId: S,
|
|
98
|
-
approvalPolicyId: P?.approval_policy_id,
|
|
99
|
-
copy: k.approvalPolicyCopy
|
|
100
|
-
}), be = c({
|
|
101
|
-
status: P?.status,
|
|
102
|
-
scopes: N?.scopes,
|
|
103
|
-
arePendingApproversUnknown: W.isLoading,
|
|
104
|
-
hasApprovalPolicy: !!P?.approval_policy_id,
|
|
105
|
-
hasWaitingRequest: I.hasWaitingRequest
|
|
106
|
-
}), G = ge({
|
|
107
|
-
payableId: S,
|
|
108
|
-
scheduledPaymentDate: P?.scheduled_payment_date
|
|
109
|
-
}), K = l(N?.scopes), q = d({
|
|
110
|
-
counterpartId: P?.counterpart_id,
|
|
111
|
-
currency: P?.currency,
|
|
112
|
-
currentBankAccountId: P?.counterpart_bank_account_id,
|
|
113
|
-
enabled: K
|
|
114
|
-
}), J = oe({
|
|
115
|
-
payableId: S,
|
|
116
|
-
amountDueMinorUnits: u(P) ?? 0,
|
|
117
|
-
amountToPayMinorUnits: P?.amount_to_pay ?? void 0,
|
|
118
|
-
currencyCode: P?.currency ?? void 0,
|
|
119
|
-
dueDate: P?.due_date,
|
|
120
|
-
hasScheduledPayment: G.hasScheduledPayment,
|
|
121
|
-
testId: E,
|
|
122
|
-
labels: k.markAsPaid
|
|
123
|
-
}), { actions: xe, decisionDialog: Se } = he({
|
|
124
|
-
payableId: P ? S : void 0,
|
|
125
|
-
status: P?.status,
|
|
126
|
-
currentApprovalRequestId: I.id,
|
|
127
|
-
hasScheduledPayment: G.hasScheduledPayment,
|
|
128
|
-
scheduledPaymentIntentId: G.scheduledPaymentIntentId,
|
|
129
|
-
isScheduledPaymentUnknown: G.isResolving,
|
|
130
|
-
isPayabilityUnknown: q.isLoading,
|
|
131
|
-
hasApprovalPolicy: !!P?.approval_policy_id,
|
|
132
|
-
hasWaitingRequest: I.hasWaitingRequest,
|
|
133
|
-
pendingApprovers: W.pendingApprovers,
|
|
134
|
-
arePendingApproversUnknown: W.isLoading,
|
|
135
|
-
labels: {
|
|
136
|
-
edit: k.sheet.editButton,
|
|
137
|
-
payBill: k.sheet.payButton,
|
|
138
|
-
markAsPaid: k.sheet.markAsPaidButton,
|
|
139
|
-
reject: k.sheet.rejectButton,
|
|
140
|
-
approve: k.sheet.approveButton,
|
|
141
|
-
cancel: k.sheet.cancelButton,
|
|
142
|
-
cancelScheduledPayment: k.sheet.cancelScheduledPaymentButton,
|
|
143
|
-
reopen: k.sheet.reopenButton,
|
|
144
|
-
forceApprove: k.sheet.forceApproveButton,
|
|
145
|
-
forceReject: k.sheet.forceRejectButton,
|
|
146
|
-
policyOverridesHeading: k.sheet.policyOverridesGroup,
|
|
147
|
-
decisionDialog: k.decisionDialog,
|
|
148
|
-
actionError: k.actionError,
|
|
149
|
-
actionSuccess: k.actionSuccess
|
|
150
|
-
},
|
|
151
|
-
isMarkAsPaidPending: J.isPending,
|
|
152
|
-
onMarkAsPaidSelect: J.open,
|
|
153
|
-
onPayBillSelect: () => F.current?.open(),
|
|
154
|
-
onEditSelect: T,
|
|
155
|
-
onActionSucceeded: (e) => {
|
|
156
|
-
e === "reopen" && T?.();
|
|
157
|
-
}
|
|
158
|
-
}), Y = G.hasScheduledPayment && G.scheduledDateLabel ? /* @__PURE__ */ v("p", {
|
|
159
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
160
|
-
children: k.scheduledSummary(G.scheduledDateLabel)
|
|
161
|
-
}) : void 0, X = s({
|
|
162
|
-
payable: P,
|
|
163
|
-
canManage: e(N?.scopes, [t.PayableWriteOrg])
|
|
164
|
-
}), Z = X.isPossibleDuplicate ? /* @__PURE__ */ v(a, {
|
|
165
|
-
onNotADuplicate: X.onNotADuplicate,
|
|
166
|
-
isActionDisabled: X.isBusy
|
|
167
|
-
}) : void 0, Ce = Z || Y ? /* @__PURE__ */ y(_, { children: [Z, Y] }) : void 0, Q = ie(S), $ = g(() => le({
|
|
168
|
-
records: G.paymentRecords,
|
|
169
|
-
events: Q.data?.data ?? [],
|
|
170
|
-
currencyCode: P?.currency,
|
|
171
|
-
labels: k
|
|
172
|
-
}), [
|
|
173
|
-
G.paymentRecords,
|
|
174
|
-
Q.data,
|
|
175
|
-
P?.currency,
|
|
176
|
-
k
|
|
177
|
-
]), we = g(() => P ? p({
|
|
178
|
-
payable: P,
|
|
179
|
-
lineItems: j.lineItems,
|
|
180
|
-
ledgerAccounts: M.data?.data ?? [],
|
|
181
|
-
labels: k,
|
|
182
|
-
hasScheduledPayment: G.hasScheduledPayment,
|
|
183
|
-
rejection: U,
|
|
184
|
-
achInstructions: q.achInstructions,
|
|
185
|
-
achInstructionsReadable: K && !q.isLoading && !q.isError
|
|
186
|
-
}) : void 0, [
|
|
187
|
-
P,
|
|
188
|
-
j.lineItems,
|
|
189
|
-
M.data,
|
|
190
|
-
k,
|
|
191
|
-
G.hasScheduledPayment,
|
|
192
|
-
U,
|
|
193
|
-
q.achInstructions,
|
|
194
|
-
q.isError,
|
|
195
|
-
q.isLoading,
|
|
196
|
-
K
|
|
197
|
-
]), Te = A.isLoading || j.isResolving || M.isResolving || q.isLoading, Ee = A.isError || j.isError || M.isError;
|
|
198
|
-
return /* @__PURE__ */ y(_, { children: [
|
|
199
|
-
/* @__PURE__ */ v(i, {
|
|
200
|
-
open: b,
|
|
201
|
-
onOpenChange: x,
|
|
202
|
-
details: we,
|
|
203
|
-
actions: xe,
|
|
204
|
-
approvalPolicy: W.view,
|
|
205
|
-
showApprovalOverrideNotice: be && !!P?.approval_policy_id,
|
|
206
|
-
paymentHistory: $,
|
|
207
|
-
paymentHistoryError: G.isError || Q.isError,
|
|
208
|
-
paymentHistoryLoading: G.isResolving || Q.isLoading,
|
|
209
|
-
isLoading: Te,
|
|
210
|
-
isError: Ee,
|
|
211
|
-
notice: Ce,
|
|
212
|
-
onClose: C,
|
|
213
|
-
onExpand: w,
|
|
214
|
-
testId: E,
|
|
215
|
-
labels: k.sheet
|
|
216
|
-
}),
|
|
217
|
-
/* @__PURE__ */ v(r, {
|
|
218
|
-
...Se,
|
|
219
|
-
labels: { cancelButton: k.decisionDialog.cancelButton },
|
|
220
|
-
testId: E ? `${E}-decision-dialog` : void 0,
|
|
221
|
-
confirmTestId: E ? `${E}-decision-confirm` : void 0,
|
|
222
|
-
reasonTestId: E ? `${E}-decision-reason` : void 0,
|
|
223
|
-
reasonFieldId: E ? `${E}-decision-reason-field` : void 0
|
|
224
|
-
}),
|
|
225
|
-
/* @__PURE__ */ v(o, { ...J.dialogProps }),
|
|
226
|
-
P ? /* @__PURE__ */ v(f, {
|
|
227
|
-
ref: F,
|
|
228
|
-
payable: P,
|
|
229
|
-
onMissingAchInstructions: w,
|
|
230
|
-
poweredByBankName: O
|
|
231
|
-
}) : null
|
|
232
|
-
] });
|
|
233
|
-
}
|
|
8
|
+
var o = {
|
|
9
|
+
subtitle: "Accounts payable",
|
|
10
|
+
vendorRow: "Vendor",
|
|
11
|
+
bankAccountRow: "ACH bank account",
|
|
12
|
+
bankAccountValue: (e) => `Account ending in ${e}`,
|
|
13
|
+
...i,
|
|
14
|
+
invoiceNumberRow: "Number",
|
|
15
|
+
issueDateRow: "Issue date",
|
|
16
|
+
dueDateRow: "Due date",
|
|
17
|
+
poNumberRow: "PO number",
|
|
18
|
+
notProvided: "Not provided",
|
|
19
|
+
glCodeMissing: "GL code not specified",
|
|
20
|
+
quantityValue: (e, t) => `${e} x ${t}`,
|
|
21
|
+
quantityOnlyValue: (e) => e,
|
|
22
|
+
subtotalRow: "Subtotal",
|
|
23
|
+
discountsRow: "Discounts",
|
|
24
|
+
taxRow: "Tax",
|
|
25
|
+
totalRow: "Total",
|
|
26
|
+
actionError: r.actionError,
|
|
27
|
+
actionSuccess: r.actionSuccess,
|
|
28
|
+
scheduledSummary: a,
|
|
29
|
+
paidOnLabel: (e) => `Paid on ${e}`,
|
|
30
|
+
rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
|
|
31
|
+
rejectedOn: (e) => `Rejected on ${e}`,
|
|
32
|
+
rejectionMessage: (e) => `"${e}"`,
|
|
33
|
+
sheet: e,
|
|
34
|
+
decisionDialog: r.decisionDialog,
|
|
35
|
+
approvalPolicyCopy: n,
|
|
36
|
+
markAsPaid: t
|
|
37
|
+
};
|
|
234
38
|
//#endregion
|
|
235
|
-
export {
|
|
39
|
+
export { o as BILL_DETAILS_LABELS_EN };
|
|
@@ -1,3 +1,235 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
+
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
+
import { useAllLedgerAccountsQuery as ee } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
8
|
+
import { useAllOrganizationUsersQuery as te } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
|
|
9
|
+
import "../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { useWidgetConfig as ne } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
+
import "../../../shared/feature/dist/index.js";
|
|
12
|
+
import { usePayableApprovalRequestsQuery as re } from "../../data-access/dist/index8.js";
|
|
13
|
+
import { usePayableHistoryQuery as ie } from "../../data-access/dist/index9.js";
|
|
14
|
+
import { useAllPayableLineItemsQuery as ae } from "../../data-access/dist/index10.js";
|
|
15
|
+
import { usePayableQuery as n } from "../../data-access/dist/index17.js";
|
|
16
|
+
import "../../data-access/dist/index.js";
|
|
17
|
+
import { BillDecisionDialog as r } from "../../ui/dist/index56.js";
|
|
18
|
+
import { BillDetailsSheet as i } from "../../ui/dist/index65.js";
|
|
19
|
+
import { BillDuplicateNotice as a } from "../../ui/dist/index69.js";
|
|
20
|
+
import { MarkAsPaidDialog as o } from "../../ui/dist/index99.js";
|
|
21
|
+
import "../../ui/dist/index.js";
|
|
22
|
+
import { usePayableDuplicateReview as s } from "./index13.js";
|
|
23
|
+
import "./index14.js";
|
|
24
|
+
import { canOverrideApprovalPolicy as c, canReadCounterpartBankAccounts as l } from "./index20.js";
|
|
25
|
+
import { resolveAmountDueMinorUnits as u } from "./index21.js";
|
|
26
|
+
import { usePayableAchInstructions as d } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
27
|
+
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
28
|
+
import { PayBillFlow as f } from "./index27.js";
|
|
29
|
+
import "./index28.js";
|
|
30
|
+
import { mapPayableToBillDetails as p } from "./index42.js";
|
|
31
|
+
import { mergeMarkAsPaidFlowLabels as m } from "./index15.js";
|
|
32
|
+
import { useMarkAsPaidFlow as oe } from "./index17.js";
|
|
33
|
+
import "./index18.js";
|
|
34
|
+
import { mergeDecisionDialogCopy as se, mergePaymentHistoryMethodLabels as ce } from "./index46.js";
|
|
35
|
+
import { buildPaymentHistory as le } from "./index3.js";
|
|
36
|
+
import { currentApprovalRound as ue } from "./index4.js";
|
|
37
|
+
import { usePayableApprovalRoundStart as de } from "./index32.js";
|
|
38
|
+
import { useApprovalPolicyCardView as fe } from "./index33.js";
|
|
39
|
+
import { resolveBillRejectionNotice as pe } from "./index34.js";
|
|
40
|
+
import { useCurrentApprovalRequestId as me } from "./index35.js";
|
|
41
|
+
import { usePayableDetailActions as he } from "./index36.js";
|
|
42
|
+
import { useScheduledPayment as ge } from "./index37.js";
|
|
43
|
+
import { BILL_DETAILS_LABELS_EN as h } from "./index63.js";
|
|
44
|
+
import { useMemo as g, useRef as _e } from "react";
|
|
45
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
46
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js
|
|
47
|
+
function b({ open: b, onOpenChange: x, payableId: S, onClose: C, onExpand: w, onEdit: T, testId: E, labels: D, poweredByBankName: O }) {
|
|
48
|
+
let k = g(() => ({
|
|
49
|
+
...h,
|
|
50
|
+
...D,
|
|
51
|
+
sheet: {
|
|
52
|
+
...h.sheet,
|
|
53
|
+
...D?.sheet,
|
|
54
|
+
statusBadge: {
|
|
55
|
+
...h.sheet.statusBadge,
|
|
56
|
+
...D?.sheet?.statusBadge
|
|
57
|
+
},
|
|
58
|
+
approvalPolicy: {
|
|
59
|
+
...h.sheet.approvalPolicy,
|
|
60
|
+
...D?.sheet?.approvalPolicy
|
|
61
|
+
},
|
|
62
|
+
dueDate: {
|
|
63
|
+
...h.sheet.dueDate,
|
|
64
|
+
...D?.sheet?.dueDate
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
decisionDialog: se(h.decisionDialog, D?.decisionDialog),
|
|
68
|
+
approvalPolicyCopy: {
|
|
69
|
+
...h.approvalPolicyCopy,
|
|
70
|
+
...D?.approvalPolicyCopy
|
|
71
|
+
},
|
|
72
|
+
markAsPaid: m(D?.markAsPaid),
|
|
73
|
+
actionSuccess: {
|
|
74
|
+
...h.actionSuccess,
|
|
75
|
+
...D?.actionSuccess
|
|
76
|
+
},
|
|
77
|
+
paymentHistoryMethodLabels: ce(D?.paymentHistoryMethodLabels)
|
|
78
|
+
}), [D]), A = n(S), j = ae(S), M = ee(), { initResponse: N } = ne(), P = A.data, F = _e(null), I = me({
|
|
79
|
+
payableId: S,
|
|
80
|
+
status: P?.status
|
|
81
|
+
}), L = P?.status === "rejected", ve = e(N?.scopes, [t.ApprovalRequestReadOrg]), R = L && ve, z = de({
|
|
82
|
+
payableId: S,
|
|
83
|
+
enabled: R
|
|
84
|
+
}), B = re(S, { enabled: R }), ye = e(N?.scopes, [t.UserReadOrg]), V = te({ enabled: L && ye }), H = g(() => ue(B.data?.data, z.roundStartedAt), [B.data, z.roundStartedAt]), U = g(() => pe({
|
|
85
|
+
payableStatus: P?.status,
|
|
86
|
+
approvalRequests: H,
|
|
87
|
+
users: V.data?.data ?? [],
|
|
88
|
+
payableUpdatedAt: P?.updated_at,
|
|
89
|
+
labels: k
|
|
90
|
+
}), [
|
|
91
|
+
P?.status,
|
|
92
|
+
P?.updated_at,
|
|
93
|
+
H,
|
|
94
|
+
V.data,
|
|
95
|
+
k
|
|
96
|
+
]), W = fe({
|
|
97
|
+
payableId: S,
|
|
98
|
+
approvalPolicyId: P?.approval_policy_id,
|
|
99
|
+
copy: k.approvalPolicyCopy
|
|
100
|
+
}), be = c({
|
|
101
|
+
status: P?.status,
|
|
102
|
+
scopes: N?.scopes,
|
|
103
|
+
arePendingApproversUnknown: W.isLoading,
|
|
104
|
+
hasApprovalPolicy: !!P?.approval_policy_id,
|
|
105
|
+
hasWaitingRequest: I.hasWaitingRequest
|
|
106
|
+
}), G = ge({
|
|
107
|
+
payableId: S,
|
|
108
|
+
scheduledPaymentDate: P?.scheduled_payment_date
|
|
109
|
+
}), K = l(N?.scopes), q = d({
|
|
110
|
+
counterpartId: P?.counterpart_id,
|
|
111
|
+
currency: P?.currency,
|
|
112
|
+
currentBankAccountId: P?.counterpart_bank_account_id,
|
|
113
|
+
enabled: K
|
|
114
|
+
}), J = oe({
|
|
115
|
+
payableId: S,
|
|
116
|
+
amountDueMinorUnits: u(P) ?? 0,
|
|
117
|
+
amountToPayMinorUnits: P?.amount_to_pay ?? void 0,
|
|
118
|
+
currencyCode: P?.currency ?? void 0,
|
|
119
|
+
dueDate: P?.due_date,
|
|
120
|
+
hasScheduledPayment: G.hasScheduledPayment,
|
|
121
|
+
testId: E,
|
|
122
|
+
labels: k.markAsPaid
|
|
123
|
+
}), { actions: xe, decisionDialog: Se } = he({
|
|
124
|
+
payableId: P ? S : void 0,
|
|
125
|
+
status: P?.status,
|
|
126
|
+
currentApprovalRequestId: I.id,
|
|
127
|
+
hasScheduledPayment: G.hasScheduledPayment,
|
|
128
|
+
scheduledPaymentIntentId: G.scheduledPaymentIntentId,
|
|
129
|
+
isScheduledPaymentUnknown: G.isResolving,
|
|
130
|
+
isPayabilityUnknown: q.isLoading,
|
|
131
|
+
hasApprovalPolicy: !!P?.approval_policy_id,
|
|
132
|
+
hasWaitingRequest: I.hasWaitingRequest,
|
|
133
|
+
pendingApprovers: W.pendingApprovers,
|
|
134
|
+
arePendingApproversUnknown: W.isLoading,
|
|
135
|
+
labels: {
|
|
136
|
+
edit: k.sheet.editButton,
|
|
137
|
+
payBill: k.sheet.payButton,
|
|
138
|
+
markAsPaid: k.sheet.markAsPaidButton,
|
|
139
|
+
reject: k.sheet.rejectButton,
|
|
140
|
+
approve: k.sheet.approveButton,
|
|
141
|
+
cancel: k.sheet.cancelButton,
|
|
142
|
+
cancelScheduledPayment: k.sheet.cancelScheduledPaymentButton,
|
|
143
|
+
reopen: k.sheet.reopenButton,
|
|
144
|
+
forceApprove: k.sheet.forceApproveButton,
|
|
145
|
+
forceReject: k.sheet.forceRejectButton,
|
|
146
|
+
policyOverridesHeading: k.sheet.policyOverridesGroup,
|
|
147
|
+
decisionDialog: k.decisionDialog,
|
|
148
|
+
actionError: k.actionError,
|
|
149
|
+
actionSuccess: k.actionSuccess
|
|
150
|
+
},
|
|
151
|
+
isMarkAsPaidPending: J.isPending,
|
|
152
|
+
onMarkAsPaidSelect: J.open,
|
|
153
|
+
onPayBillSelect: () => F.current?.open(),
|
|
154
|
+
onEditSelect: T,
|
|
155
|
+
onActionSucceeded: (e) => {
|
|
156
|
+
e === "reopen" && T?.();
|
|
157
|
+
}
|
|
158
|
+
}), Y = G.hasScheduledPayment && G.scheduledDateLabel ? /* @__PURE__ */ v("p", {
|
|
159
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
160
|
+
children: k.scheduledSummary(G.scheduledDateLabel)
|
|
161
|
+
}) : void 0, X = s({
|
|
162
|
+
payable: P,
|
|
163
|
+
canManage: e(N?.scopes, [t.PayableWriteOrg])
|
|
164
|
+
}), Z = X.isPossibleDuplicate ? /* @__PURE__ */ v(a, {
|
|
165
|
+
onNotADuplicate: X.onNotADuplicate,
|
|
166
|
+
isActionDisabled: X.isBusy
|
|
167
|
+
}) : void 0, Ce = Z || Y ? /* @__PURE__ */ y(_, { children: [Z, Y] }) : void 0, Q = ie(S), $ = g(() => le({
|
|
168
|
+
records: G.paymentRecords,
|
|
169
|
+
events: Q.data?.data ?? [],
|
|
170
|
+
currencyCode: P?.currency,
|
|
171
|
+
labels: k
|
|
172
|
+
}), [
|
|
173
|
+
G.paymentRecords,
|
|
174
|
+
Q.data,
|
|
175
|
+
P?.currency,
|
|
176
|
+
k
|
|
177
|
+
]), we = g(() => P ? p({
|
|
178
|
+
payable: P,
|
|
179
|
+
lineItems: j.lineItems,
|
|
180
|
+
ledgerAccounts: M.data?.data ?? [],
|
|
181
|
+
labels: k,
|
|
182
|
+
hasScheduledPayment: G.hasScheduledPayment,
|
|
183
|
+
rejection: U,
|
|
184
|
+
achInstructions: q.achInstructions,
|
|
185
|
+
achInstructionsReadable: K && !q.isLoading && !q.isError
|
|
186
|
+
}) : void 0, [
|
|
187
|
+
P,
|
|
188
|
+
j.lineItems,
|
|
189
|
+
M.data,
|
|
190
|
+
k,
|
|
191
|
+
G.hasScheduledPayment,
|
|
192
|
+
U,
|
|
193
|
+
q.achInstructions,
|
|
194
|
+
q.isError,
|
|
195
|
+
q.isLoading,
|
|
196
|
+
K
|
|
197
|
+
]), Te = A.isLoading || j.isResolving || M.isResolving || q.isLoading, Ee = A.isError || j.isError || M.isError;
|
|
198
|
+
return /* @__PURE__ */ y(_, { children: [
|
|
199
|
+
/* @__PURE__ */ v(i, {
|
|
200
|
+
open: b,
|
|
201
|
+
onOpenChange: x,
|
|
202
|
+
details: we,
|
|
203
|
+
actions: xe,
|
|
204
|
+
approvalPolicy: W.view,
|
|
205
|
+
showApprovalOverrideNotice: be && !!P?.approval_policy_id,
|
|
206
|
+
paymentHistory: $,
|
|
207
|
+
paymentHistoryError: G.isError || Q.isError,
|
|
208
|
+
paymentHistoryLoading: G.isResolving || Q.isLoading,
|
|
209
|
+
isLoading: Te,
|
|
210
|
+
isError: Ee,
|
|
211
|
+
notice: Ce,
|
|
212
|
+
onClose: C,
|
|
213
|
+
onExpand: w,
|
|
214
|
+
testId: E,
|
|
215
|
+
labels: k.sheet
|
|
216
|
+
}),
|
|
217
|
+
/* @__PURE__ */ v(r, {
|
|
218
|
+
...Se,
|
|
219
|
+
labels: { cancelButton: k.decisionDialog.cancelButton },
|
|
220
|
+
testId: E ? `${E}-decision-dialog` : void 0,
|
|
221
|
+
confirmTestId: E ? `${E}-decision-confirm` : void 0,
|
|
222
|
+
reasonTestId: E ? `${E}-decision-reason` : void 0,
|
|
223
|
+
reasonFieldId: E ? `${E}-decision-reason-field` : void 0
|
|
224
|
+
}),
|
|
225
|
+
/* @__PURE__ */ v(o, { ...J.dialogProps }),
|
|
226
|
+
P ? /* @__PURE__ */ v(f, {
|
|
227
|
+
ref: F,
|
|
228
|
+
payable: P,
|
|
229
|
+
onMissingAchInstructions: w,
|
|
230
|
+
poweredByBankName: O
|
|
231
|
+
}) : null
|
|
232
|
+
] });
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
235
|
+
export { b as BillDetailsContainer, b as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { e as BillPayWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
1
|
+
import "./index42.js";
|
|
2
|
+
import "./index63.js";
|
|
3
|
+
import "./index64.js";
|
|
@@ -1,46 +1,4 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
|
-
import "../../../shared/feature/dist/index.js";
|
|
7
|
-
import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "./index65.js";
|
|
8
|
-
import { Payables as r } from "../../../monite-sdk/dist/index441.js";
|
|
9
|
-
import "../../../monite-sdk/dist/index.js";
|
|
10
|
-
import { MoniteRegionProvider as i } from "../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
|
|
11
|
-
import "../../../shared/monite-wrapper/feature/dist/index.js";
|
|
12
|
-
import { useEffect as a } from "react";
|
|
13
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
14
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js
|
|
15
|
-
var
|
|
16
|
-
function c(n) {
|
|
17
|
-
let i = e();
|
|
18
|
-
return a(() => {
|
|
19
|
-
i(t.Mounted);
|
|
20
|
-
}, [i]), /* @__PURE__ */ o(r, { ...n });
|
|
21
|
-
}
|
|
22
|
-
function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, providerLabels: v, pageTitleComponent: y = s, ...b }) {
|
|
23
|
-
return /* @__PURE__ */ o(i, {
|
|
24
|
-
widgetName: n,
|
|
25
|
-
baseUrl: e,
|
|
26
|
-
widgetToken: t,
|
|
27
|
-
organizationId: r,
|
|
28
|
-
configClient: a,
|
|
29
|
-
gatewayRouting: l,
|
|
30
|
-
linkComponent: u,
|
|
31
|
-
implementation: d,
|
|
32
|
-
uiFramework: f,
|
|
33
|
-
errorFallback: p,
|
|
34
|
-
onError: m,
|
|
35
|
-
finopsThemeColors: h,
|
|
36
|
-
analytics: g,
|
|
37
|
-
disclosuresAcceptance: _,
|
|
38
|
-
providerLabels: v,
|
|
39
|
-
children: /* @__PURE__ */ o(c, {
|
|
40
|
-
...b,
|
|
41
|
-
pageTitleComponent: y
|
|
42
|
-
})
|
|
43
|
-
});
|
|
44
|
-
}
|
|
2
|
+
var e = { Mounted: "bill_pay_widget.mounted" }, t = "bill_pay_widget";
|
|
45
3
|
//#endregion
|
|
46
|
-
export {
|
|
4
|
+
export { e as BillPayWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
|
+
import "../../../shared/feature/dist/index.js";
|
|
7
|
+
import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "./index66.js";
|
|
8
|
+
import { Payables as r } from "../../../monite-sdk/dist/index441.js";
|
|
9
|
+
import "../../../monite-sdk/dist/index.js";
|
|
10
|
+
import { MoniteRegionProvider as i } from "../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
|
|
11
|
+
import "../../../shared/monite-wrapper/feature/dist/index.js";
|
|
12
|
+
import { useEffect as a } from "react";
|
|
13
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
14
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js
|
|
15
|
+
var s = (e) => e;
|
|
16
|
+
function c(n) {
|
|
17
|
+
let i = e();
|
|
18
|
+
return a(() => {
|
|
19
|
+
i(t.Mounted);
|
|
20
|
+
}, [i]), /* @__PURE__ */ o(r, { ...n });
|
|
21
|
+
}
|
|
22
|
+
function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, providerLabels: v, pageTitleComponent: y = s, ...b }) {
|
|
23
|
+
return /* @__PURE__ */ o(i, {
|
|
24
|
+
widgetName: n,
|
|
25
|
+
baseUrl: e,
|
|
26
|
+
widgetToken: t,
|
|
27
|
+
organizationId: r,
|
|
28
|
+
configClient: a,
|
|
29
|
+
gatewayRouting: l,
|
|
30
|
+
linkComponent: u,
|
|
31
|
+
implementation: d,
|
|
32
|
+
uiFramework: f,
|
|
33
|
+
errorFallback: p,
|
|
34
|
+
onError: m,
|
|
35
|
+
finopsThemeColors: h,
|
|
36
|
+
analytics: g,
|
|
37
|
+
disclosuresAcceptance: _,
|
|
38
|
+
providerLabels: v,
|
|
39
|
+
children: /* @__PURE__ */ o(c, {
|
|
40
|
+
...b,
|
|
41
|
+
pageTitleComponent: y
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { l as BillPayWidgetMonite, l as default };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js
|
|
2
|
-
var e =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
failedCaption: (e) => `${e} failed to upload`,
|
|
8
|
-
tooManyFilesError: (e) => `You can only upload up to ${e} files at a time`,
|
|
9
|
-
remainingCapacityError: (e) => e === 0 ? "Wait for the current uploads to finish before adding more files" : `You can upload ${e} more ${e === 1 ? "file" : "files"} right now`
|
|
10
|
-
};
|
|
2
|
+
var e = (e) => [
|
|
3
|
+
"bill-pay",
|
|
4
|
+
"upload-queue",
|
|
5
|
+
e ?? ""
|
|
6
|
+
];
|
|
11
7
|
//#endregion
|
|
12
|
-
export { e as
|
|
8
|
+
export { e as billPayUploadQueueKey };
|