@tesouro/embedded-components-react 0.9.22 → 0.9.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +82 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index11.js +59 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index12.js +10 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +155 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +13 -157
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +99 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +69 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +3 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +57 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +114 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +190 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +75 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +35 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +461 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +102 -452
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +12 -116
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +231 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +38 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +245 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +169 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +21 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +534 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +4 -542
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +236 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +3 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +1 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +82 -225
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +45 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +8 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +138 -155
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +48 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +219 -207
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +278 -322
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +78 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +52 -2
- 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/util/dist/lib/theme/themeTokens.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +4696 -4681
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +0 -29
|
@@ -1,43 +1,240 @@
|
|
|
1
|
-
|
|
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 "../../../../shared/data-access/dist/index.js";
|
|
9
|
+
import { useWidgetConfig as te } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
|
+
import { useOrganizationUserNames as n } from "../../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
|
|
11
|
+
import "../../../../shared/feature/dist/index.js";
|
|
12
|
+
import { mergeDecisionDialogCopy as r, mergePaymentHistoryMethodLabels as i } from "../../../util/dist/lib/billDetailLabels.js";
|
|
13
|
+
import { hasSuspectedPayableDuplicate as a } from "../../../util/dist/lib/payableDuplicates.js";
|
|
2
14
|
import "../../../util/dist/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
15
|
+
import { mapPayableToBillDetails as o } from "./index23.js";
|
|
16
|
+
import { BillDecisionDialog as s } from "../../../ui/dist/index4.js";
|
|
17
|
+
import "../../../ui/dist/index.js";
|
|
18
|
+
import { BillDetailsSheet as c } from "../../ui/dist/index34.js";
|
|
19
|
+
import { BillDuplicateNotice as l } from "../../ui/dist/index37.js";
|
|
6
20
|
import "../../ui/dist/index.js";
|
|
21
|
+
import { useAllPayableLineItemsQuery as u } from "../../data-access/dist/index4.js";
|
|
22
|
+
import { usePayableQuery as d } from "../../data-access/dist/index21.js";
|
|
23
|
+
import "../../data-access/dist/index.js";
|
|
24
|
+
import { buildPaymentHistory as f } from "./index2.js";
|
|
25
|
+
import { canOverrideApprovalPolicy as p, canReadCounterpartBankAccounts as m } from "./index5.js";
|
|
26
|
+
import { useApprovalPolicyCardView as h } from "./index11.js";
|
|
27
|
+
import { resolveApprovalNotices as g } from "./index13.js";
|
|
28
|
+
import { useBillRejectionNotice as ne } from "./index16.js";
|
|
29
|
+
import { useCurrentApprovalRequestId as re } from "./index17.js";
|
|
30
|
+
import { usePayableAuditHistory as ie } from "./index18.js";
|
|
31
|
+
import { usePayableDetailActions as ae } from "./index19.js";
|
|
32
|
+
import { useScheduledDateLabel as oe } from "./index20.js";
|
|
33
|
+
import { useScheduledPayment as se } from "./index21.js";
|
|
34
|
+
import { usePayableAchInstructions as ce } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
35
|
+
import "../../../../shared/counterpart-management/feature/dist/index.js";
|
|
36
|
+
import { BILL_DETAILS_LABELS_EN as _ } from "./index43.js";
|
|
37
|
+
import { useMemo as v, useRef as le, useState as ue } from "react";
|
|
38
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
7
39
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
function S({ open: S, onOpenChange: C, payableId: w, onClose: T, onExpand: E, onEdit: D, testId: O, labels: k, renderPaymentFlows: A }) {
|
|
41
|
+
let j = v(() => ({
|
|
42
|
+
..._,
|
|
43
|
+
...k,
|
|
44
|
+
sheet: {
|
|
45
|
+
..._.sheet,
|
|
46
|
+
...k?.sheet,
|
|
47
|
+
statusBadge: {
|
|
48
|
+
..._.sheet.statusBadge,
|
|
49
|
+
...k?.sheet?.statusBadge
|
|
50
|
+
},
|
|
51
|
+
approvalPolicy: {
|
|
52
|
+
..._.sheet.approvalPolicy,
|
|
53
|
+
...k?.sheet?.approvalPolicy
|
|
54
|
+
},
|
|
55
|
+
dueDate: {
|
|
56
|
+
..._.sheet.dueDate,
|
|
57
|
+
...k?.sheet?.dueDate
|
|
58
|
+
},
|
|
59
|
+
auditHistory: {
|
|
60
|
+
..._.sheet.auditHistory,
|
|
61
|
+
...k?.sheet?.auditHistory
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
decisionDialog: r(_.decisionDialog, k?.decisionDialog),
|
|
65
|
+
approvalPolicyCopy: {
|
|
66
|
+
..._.approvalPolicyCopy,
|
|
67
|
+
...k?.approvalPolicyCopy
|
|
68
|
+
},
|
|
69
|
+
history: {
|
|
70
|
+
..._.history,
|
|
71
|
+
...k?.history
|
|
72
|
+
},
|
|
73
|
+
scheduledRelativeDay: {
|
|
74
|
+
..._.scheduledRelativeDay,
|
|
75
|
+
...k?.scheduledRelativeDay
|
|
76
|
+
},
|
|
77
|
+
actionSuccess: {
|
|
78
|
+
..._.actionSuccess,
|
|
79
|
+
...k?.actionSuccess
|
|
80
|
+
},
|
|
81
|
+
paymentHistoryMethodLabels: i(k?.paymentHistoryMethodLabels)
|
|
82
|
+
}), [k]), M = d(w), N = u(w), P = ee(), { initResponse: F } = te(), I = M.data, L = le(null), [R, z] = ue(!1), B = re({
|
|
83
|
+
payableId: w,
|
|
84
|
+
status: I?.status
|
|
85
|
+
}), V = I?.status === "rejected", H = e(F?.scopes, [t.ApprovalRequestReadOrg]), de = V && H, U = e(F?.scopes, [t.UserReadOrg]), { userNames: W, isError: fe, isResolving: pe } = n({ enabled: U }), G = ne({
|
|
86
|
+
payableId: w,
|
|
87
|
+
payableStatus: I?.status,
|
|
88
|
+
payableUpdatedAt: I?.updated_at,
|
|
89
|
+
enabled: de,
|
|
90
|
+
userNames: W,
|
|
91
|
+
labels: j
|
|
92
|
+
}), K = h({
|
|
93
|
+
payableId: w,
|
|
94
|
+
approvalPolicyId: I?.approval_policy_id,
|
|
95
|
+
copy: j.approvalPolicyCopy
|
|
96
|
+
}), me = p({
|
|
97
|
+
status: I?.status,
|
|
98
|
+
scopes: F?.scopes,
|
|
99
|
+
arePendingApproversUnknown: K.isLoading,
|
|
100
|
+
hasApprovalPolicy: !!I?.approval_policy_id,
|
|
101
|
+
hasWaitingRequest: B.hasWaitingRequest
|
|
102
|
+
}), q = g({
|
|
103
|
+
isCapabilityUnknown: B.isLoading || K.isLoading,
|
|
104
|
+
canApproveNow: !!B.id,
|
|
105
|
+
canOverridePolicy: me,
|
|
106
|
+
status: I?.status,
|
|
107
|
+
hasApprovalPolicy: !!I?.approval_policy_id,
|
|
108
|
+
pendingApproverNames: K.pendingApprovers.flatMap((e) => e.names),
|
|
109
|
+
labels: j
|
|
110
|
+
}), J = se({
|
|
111
|
+
payableId: w,
|
|
112
|
+
scheduledPaymentDate: I?.scheduled_payment_date
|
|
113
|
+
}), Y = m(F?.scopes), X = ce({
|
|
114
|
+
counterpartId: I?.counterpart_id,
|
|
115
|
+
currency: I?.currency,
|
|
116
|
+
currentBankAccountId: I?.counterpart_bank_account_id,
|
|
117
|
+
enabled: Y
|
|
118
|
+
}), { actions: he, decisionDialog: ge } = ae({
|
|
119
|
+
payableId: I ? w : void 0,
|
|
120
|
+
status: I?.status,
|
|
121
|
+
currentApprovalRequestId: B.id,
|
|
122
|
+
hasScheduledPayment: J.hasScheduledPayment,
|
|
123
|
+
scheduledPaymentIntentId: J.scheduledPaymentIntentId,
|
|
124
|
+
isScheduledPaymentUnknown: J.isResolving,
|
|
125
|
+
isPayabilityUnknown: X.isLoading,
|
|
126
|
+
hasApprovalPolicy: !!I?.approval_policy_id,
|
|
127
|
+
hasWaitingRequest: B.hasWaitingRequest,
|
|
128
|
+
pendingApprovers: K.pendingApprovers,
|
|
129
|
+
arePendingApproversUnknown: K.isLoading,
|
|
130
|
+
labels: {
|
|
131
|
+
edit: j.sheet.editButton,
|
|
132
|
+
payBill: j.sheet.payButton,
|
|
133
|
+
markAsPaid: j.sheet.markAsPaidButton,
|
|
134
|
+
reject: j.sheet.rejectButton,
|
|
135
|
+
approve: j.sheet.approveButton,
|
|
136
|
+
cancel: j.sheet.cancelButton,
|
|
137
|
+
cancelScheduledPayment: j.sheet.cancelScheduledPaymentButton,
|
|
138
|
+
reopen: j.sheet.reopenButton,
|
|
139
|
+
forceApprove: j.sheet.forceApproveButton,
|
|
140
|
+
forceReject: j.sheet.forceRejectButton,
|
|
141
|
+
policyOverridesHeading: j.sheet.policyOverridesGroup,
|
|
142
|
+
decisionDialog: j.decisionDialog,
|
|
143
|
+
actionError: j.actionError,
|
|
144
|
+
actionSuccess: j.actionSuccess
|
|
145
|
+
},
|
|
146
|
+
isMarkAsPaidPending: R,
|
|
147
|
+
onMarkAsPaidSelect: () => L.current?.openMarkAsPaid(),
|
|
148
|
+
onPayBillSelect: () => L.current?.openPayBill(),
|
|
149
|
+
onEditSelect: D,
|
|
150
|
+
onActionSucceeded: (e) => {
|
|
151
|
+
e === "reopen" && D?.();
|
|
152
|
+
}
|
|
153
|
+
}), Z = oe({
|
|
154
|
+
hasScheduledPayment: J.hasScheduledPayment,
|
|
155
|
+
scheduledDate: J.scheduledDate,
|
|
156
|
+
labels: j.scheduledRelativeDay
|
|
157
|
+
}), _e = Z ? j.scheduledSummary(Z.label) : void 0, Q = a(I) ? /* @__PURE__ */ b(l, { onOpenFullScreen: E }) : void 0, { historyQuery: $, rows: ve, namesError: ye } = ie({
|
|
158
|
+
payableId: w,
|
|
159
|
+
userNames: W,
|
|
160
|
+
isRosterError: U && fe,
|
|
161
|
+
labels: j.history
|
|
162
|
+
}), be = v(() => f({
|
|
163
|
+
records: J.paymentRecords,
|
|
164
|
+
events: $.data?.data ?? [],
|
|
165
|
+
currencyCode: I?.currency,
|
|
166
|
+
labels: j
|
|
167
|
+
}), [
|
|
168
|
+
J.paymentRecords,
|
|
169
|
+
$.data,
|
|
170
|
+
I?.currency,
|
|
171
|
+
j
|
|
172
|
+
]), xe = v(() => I ? o({
|
|
173
|
+
payable: I,
|
|
174
|
+
lineItems: N.lineItems,
|
|
175
|
+
ledgerAccounts: P.data?.data ?? [],
|
|
176
|
+
labels: j,
|
|
177
|
+
hasScheduledPayment: J.hasScheduledPayment,
|
|
178
|
+
rejection: G,
|
|
179
|
+
achInstructions: X.achInstructions,
|
|
180
|
+
achInstructionsReadable: Y && !X.isLoading && !X.isError
|
|
181
|
+
}) : void 0, [
|
|
182
|
+
I,
|
|
183
|
+
N.lineItems,
|
|
184
|
+
P.data,
|
|
185
|
+
j,
|
|
186
|
+
J.hasScheduledPayment,
|
|
187
|
+
G,
|
|
188
|
+
X.achInstructions,
|
|
189
|
+
X.isError,
|
|
190
|
+
X.isLoading,
|
|
191
|
+
Y
|
|
192
|
+
]), Se = M.isLoading || N.isResolving || P.isResolving || X.isLoading, Ce = M.isError || N.isError || P.isError;
|
|
193
|
+
return /* @__PURE__ */ x(y, { children: [
|
|
194
|
+
/* @__PURE__ */ b(c, {
|
|
195
|
+
open: S,
|
|
196
|
+
onOpenChange: C,
|
|
197
|
+
details: xe,
|
|
198
|
+
actions: he,
|
|
199
|
+
approvalPolicy: K.view,
|
|
200
|
+
showApprovalOverrideNotice: q.showApprovalOverrideNotice,
|
|
201
|
+
awaitingApprovalNotice: q.awaitingApprovalNotice,
|
|
202
|
+
scheduledSummary: _e,
|
|
203
|
+
scheduledSummaryDate: Z?.absoluteLabel,
|
|
204
|
+
auditHistory: ve,
|
|
205
|
+
auditHistoryError: $.isError,
|
|
206
|
+
auditHistoryLoading: $.isLoading || pe,
|
|
207
|
+
auditHistoryNamesError: ye,
|
|
208
|
+
paymentHistory: be,
|
|
209
|
+
paymentHistoryError: J.isError || $.isError,
|
|
210
|
+
paymentHistoryLoading: J.isResolving || $.isLoading,
|
|
211
|
+
isLoading: Se,
|
|
212
|
+
isError: Ce,
|
|
213
|
+
notice: Q,
|
|
214
|
+
onClose: T,
|
|
215
|
+
onExpand: E,
|
|
216
|
+
testId: O,
|
|
217
|
+
labels: j.sheet
|
|
218
|
+
}),
|
|
219
|
+
/* @__PURE__ */ b(s, {
|
|
220
|
+
...ge,
|
|
221
|
+
labels: { cancelButton: j.decisionDialog.cancelButton },
|
|
222
|
+
testId: O ? `${O}-decision-dialog` : void 0,
|
|
223
|
+
confirmTestId: O ? `${O}-decision-confirm` : void 0,
|
|
224
|
+
reasonTestId: O ? `${O}-decision-reason` : void 0,
|
|
225
|
+
reasonFieldId: O ? `${O}-decision-reason-field` : void 0
|
|
226
|
+
}),
|
|
227
|
+
A?.({
|
|
228
|
+
ref: L,
|
|
229
|
+
payable: I,
|
|
230
|
+
payableId: w,
|
|
231
|
+
isPayBillEnabled: !0,
|
|
232
|
+
hasScheduledPayment: J.hasScheduledPayment,
|
|
233
|
+
onMissingAchInstructions: E,
|
|
234
|
+
onMarkAsPaidPendingChange: z,
|
|
235
|
+
testId: O
|
|
236
|
+
})
|
|
237
|
+
] });
|
|
238
|
+
}
|
|
42
239
|
//#endregion
|
|
43
|
-
export {
|
|
240
|
+
export { S as BillDetailsContainer, S as default };
|
|
@@ -1,240 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 "../../../../shared/data-access/dist/index.js";
|
|
9
|
-
import { useWidgetConfig as te } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
|
-
import { useOrganizationUserNames as n } from "../../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
|
|
11
|
-
import "../../../../shared/feature/dist/index.js";
|
|
12
|
-
import { mergeDecisionDialogCopy as r, mergePaymentHistoryMethodLabels as i } from "../../../util/dist/lib/billDetailLabels.js";
|
|
13
|
-
import { hasSuspectedPayableDuplicate as a } from "../../../util/dist/lib/payableDuplicates.js";
|
|
14
|
-
import "../../../util/dist/index.js";
|
|
15
|
-
import { mapPayableToBillDetails as o } from "./index24.js";
|
|
16
|
-
import { BillDecisionDialog as s } from "../../../ui/dist/index4.js";
|
|
17
|
-
import "../../../ui/dist/index.js";
|
|
18
|
-
import { BillDetailsSheet as c } from "../../ui/dist/index34.js";
|
|
19
|
-
import { BillDuplicateNotice as l } from "../../ui/dist/index37.js";
|
|
20
|
-
import "../../ui/dist/index.js";
|
|
21
|
-
import { useAllPayableLineItemsQuery as u } from "../../data-access/dist/index4.js";
|
|
22
|
-
import { usePayableQuery as d } from "../../data-access/dist/index21.js";
|
|
23
|
-
import "../../data-access/dist/index.js";
|
|
24
|
-
import { buildPaymentHistory as f } from "./index2.js";
|
|
25
|
-
import { canOverrideApprovalPolicy as p, canReadCounterpartBankAccounts as m } from "./index6.js";
|
|
26
|
-
import { useApprovalPolicyCardView as h } from "./index12.js";
|
|
27
|
-
import { resolveApprovalNotices as g } from "./index14.js";
|
|
28
|
-
import { useBillRejectionNotice as ne } from "./index17.js";
|
|
29
|
-
import { useCurrentApprovalRequestId as re } from "./index18.js";
|
|
30
|
-
import { usePayableAuditHistory as ie } from "./index19.js";
|
|
31
|
-
import { usePayableDetailActions as ae } from "./index20.js";
|
|
32
|
-
import { useScheduledDateLabel as oe } from "./index21.js";
|
|
33
|
-
import { useScheduledPayment as se } from "./index22.js";
|
|
34
|
-
import { usePayableAchInstructions as ce } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
35
|
-
import "../../../../shared/counterpart-management/feature/dist/index.js";
|
|
36
|
-
import { BILL_DETAILS_LABELS_EN as _ } from "./index44.js";
|
|
37
|
-
import { useMemo as v, useRef as le, useState as ue } from "react";
|
|
38
|
-
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
39
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js
|
|
40
|
-
function S({ open: S, onOpenChange: C, payableId: w, onClose: T, onExpand: E, onEdit: D, testId: O, labels: k, renderPaymentFlows: A }) {
|
|
41
|
-
let j = v(() => ({
|
|
42
|
-
..._,
|
|
43
|
-
...k,
|
|
44
|
-
sheet: {
|
|
45
|
-
..._.sheet,
|
|
46
|
-
...k?.sheet,
|
|
47
|
-
statusBadge: {
|
|
48
|
-
..._.sheet.statusBadge,
|
|
49
|
-
...k?.sheet?.statusBadge
|
|
50
|
-
},
|
|
51
|
-
approvalPolicy: {
|
|
52
|
-
..._.sheet.approvalPolicy,
|
|
53
|
-
...k?.sheet?.approvalPolicy
|
|
54
|
-
},
|
|
55
|
-
dueDate: {
|
|
56
|
-
..._.sheet.dueDate,
|
|
57
|
-
...k?.sheet?.dueDate
|
|
58
|
-
},
|
|
59
|
-
auditHistory: {
|
|
60
|
-
..._.sheet.auditHistory,
|
|
61
|
-
...k?.sheet?.auditHistory
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
decisionDialog: r(_.decisionDialog, k?.decisionDialog),
|
|
65
|
-
approvalPolicyCopy: {
|
|
66
|
-
..._.approvalPolicyCopy,
|
|
67
|
-
...k?.approvalPolicyCopy
|
|
68
|
-
},
|
|
69
|
-
history: {
|
|
70
|
-
..._.history,
|
|
71
|
-
...k?.history
|
|
72
|
-
},
|
|
73
|
-
scheduledRelativeDay: {
|
|
74
|
-
..._.scheduledRelativeDay,
|
|
75
|
-
...k?.scheduledRelativeDay
|
|
76
|
-
},
|
|
77
|
-
actionSuccess: {
|
|
78
|
-
..._.actionSuccess,
|
|
79
|
-
...k?.actionSuccess
|
|
80
|
-
},
|
|
81
|
-
paymentHistoryMethodLabels: i(k?.paymentHistoryMethodLabels)
|
|
82
|
-
}), [k]), M = d(w), N = u(w), P = ee(), { initResponse: F } = te(), I = M.data, L = le(null), [R, z] = ue(!1), B = re({
|
|
83
|
-
payableId: w,
|
|
84
|
-
status: I?.status
|
|
85
|
-
}), V = I?.status === "rejected", H = e(F?.scopes, [t.ApprovalRequestReadOrg]), de = V && H, U = e(F?.scopes, [t.UserReadOrg]), { userNames: W, isError: fe, isResolving: pe } = n({ enabled: U }), G = ne({
|
|
86
|
-
payableId: w,
|
|
87
|
-
payableStatus: I?.status,
|
|
88
|
-
payableUpdatedAt: I?.updated_at,
|
|
89
|
-
enabled: de,
|
|
90
|
-
userNames: W,
|
|
91
|
-
labels: j
|
|
92
|
-
}), K = h({
|
|
93
|
-
payableId: w,
|
|
94
|
-
approvalPolicyId: I?.approval_policy_id,
|
|
95
|
-
copy: j.approvalPolicyCopy
|
|
96
|
-
}), me = p({
|
|
97
|
-
status: I?.status,
|
|
98
|
-
scopes: F?.scopes,
|
|
99
|
-
arePendingApproversUnknown: K.isLoading,
|
|
100
|
-
hasApprovalPolicy: !!I?.approval_policy_id,
|
|
101
|
-
hasWaitingRequest: B.hasWaitingRequest
|
|
102
|
-
}), q = g({
|
|
103
|
-
isCapabilityUnknown: B.isLoading || K.isLoading,
|
|
104
|
-
canApproveNow: !!B.id,
|
|
105
|
-
canOverridePolicy: me,
|
|
106
|
-
status: I?.status,
|
|
107
|
-
hasApprovalPolicy: !!I?.approval_policy_id,
|
|
108
|
-
pendingApproverNames: K.pendingApprovers.flatMap((e) => e.names),
|
|
109
|
-
labels: j
|
|
110
|
-
}), J = se({
|
|
111
|
-
payableId: w,
|
|
112
|
-
scheduledPaymentDate: I?.scheduled_payment_date
|
|
113
|
-
}), Y = m(F?.scopes), X = ce({
|
|
114
|
-
counterpartId: I?.counterpart_id,
|
|
115
|
-
currency: I?.currency,
|
|
116
|
-
currentBankAccountId: I?.counterpart_bank_account_id,
|
|
117
|
-
enabled: Y
|
|
118
|
-
}), { actions: he, decisionDialog: ge } = ae({
|
|
119
|
-
payableId: I ? w : void 0,
|
|
120
|
-
status: I?.status,
|
|
121
|
-
currentApprovalRequestId: B.id,
|
|
122
|
-
hasScheduledPayment: J.hasScheduledPayment,
|
|
123
|
-
scheduledPaymentIntentId: J.scheduledPaymentIntentId,
|
|
124
|
-
isScheduledPaymentUnknown: J.isResolving,
|
|
125
|
-
isPayabilityUnknown: X.isLoading,
|
|
126
|
-
hasApprovalPolicy: !!I?.approval_policy_id,
|
|
127
|
-
hasWaitingRequest: B.hasWaitingRequest,
|
|
128
|
-
pendingApprovers: K.pendingApprovers,
|
|
129
|
-
arePendingApproversUnknown: K.isLoading,
|
|
130
|
-
labels: {
|
|
131
|
-
edit: j.sheet.editButton,
|
|
132
|
-
payBill: j.sheet.payButton,
|
|
133
|
-
markAsPaid: j.sheet.markAsPaidButton,
|
|
134
|
-
reject: j.sheet.rejectButton,
|
|
135
|
-
approve: j.sheet.approveButton,
|
|
136
|
-
cancel: j.sheet.cancelButton,
|
|
137
|
-
cancelScheduledPayment: j.sheet.cancelScheduledPaymentButton,
|
|
138
|
-
reopen: j.sheet.reopenButton,
|
|
139
|
-
forceApprove: j.sheet.forceApproveButton,
|
|
140
|
-
forceReject: j.sheet.forceRejectButton,
|
|
141
|
-
policyOverridesHeading: j.sheet.policyOverridesGroup,
|
|
142
|
-
decisionDialog: j.decisionDialog,
|
|
143
|
-
actionError: j.actionError,
|
|
144
|
-
actionSuccess: j.actionSuccess
|
|
145
|
-
},
|
|
146
|
-
isMarkAsPaidPending: R,
|
|
147
|
-
onMarkAsPaidSelect: () => L.current?.openMarkAsPaid(),
|
|
148
|
-
onPayBillSelect: () => L.current?.openPayBill(),
|
|
149
|
-
onEditSelect: D,
|
|
150
|
-
onActionSucceeded: (e) => {
|
|
151
|
-
e === "reopen" && D?.();
|
|
152
|
-
}
|
|
153
|
-
}), Z = oe({
|
|
154
|
-
hasScheduledPayment: J.hasScheduledPayment,
|
|
155
|
-
scheduledDate: J.scheduledDate,
|
|
156
|
-
labels: j.scheduledRelativeDay
|
|
157
|
-
}), _e = Z ? j.scheduledSummary(Z.label) : void 0, Q = a(I) ? /* @__PURE__ */ b(l, { onOpenFullScreen: E }) : void 0, { historyQuery: $, rows: ve, namesError: ye } = ie({
|
|
158
|
-
payableId: w,
|
|
159
|
-
userNames: W,
|
|
160
|
-
isRosterError: U && fe,
|
|
161
|
-
labels: j.history
|
|
162
|
-
}), be = v(() => f({
|
|
163
|
-
records: J.paymentRecords,
|
|
164
|
-
events: $.data?.data ?? [],
|
|
165
|
-
currencyCode: I?.currency,
|
|
166
|
-
labels: j
|
|
167
|
-
}), [
|
|
168
|
-
J.paymentRecords,
|
|
169
|
-
$.data,
|
|
170
|
-
I?.currency,
|
|
171
|
-
j
|
|
172
|
-
]), xe = v(() => I ? o({
|
|
173
|
-
payable: I,
|
|
174
|
-
lineItems: N.lineItems,
|
|
175
|
-
ledgerAccounts: P.data?.data ?? [],
|
|
176
|
-
labels: j,
|
|
177
|
-
hasScheduledPayment: J.hasScheduledPayment,
|
|
178
|
-
rejection: G,
|
|
179
|
-
achInstructions: X.achInstructions,
|
|
180
|
-
achInstructionsReadable: Y && !X.isLoading && !X.isError
|
|
181
|
-
}) : void 0, [
|
|
182
|
-
I,
|
|
183
|
-
N.lineItems,
|
|
184
|
-
P.data,
|
|
185
|
-
j,
|
|
186
|
-
J.hasScheduledPayment,
|
|
187
|
-
G,
|
|
188
|
-
X.achInstructions,
|
|
189
|
-
X.isError,
|
|
190
|
-
X.isLoading,
|
|
191
|
-
Y
|
|
192
|
-
]), Se = M.isLoading || N.isResolving || P.isResolving || X.isLoading, Ce = M.isError || N.isError || P.isError;
|
|
193
|
-
return /* @__PURE__ */ x(y, { children: [
|
|
194
|
-
/* @__PURE__ */ b(c, {
|
|
195
|
-
open: S,
|
|
196
|
-
onOpenChange: C,
|
|
197
|
-
details: xe,
|
|
198
|
-
actions: he,
|
|
199
|
-
approvalPolicy: K.view,
|
|
200
|
-
showApprovalOverrideNotice: q.showApprovalOverrideNotice,
|
|
201
|
-
awaitingApprovalNotice: q.awaitingApprovalNotice,
|
|
202
|
-
scheduledSummary: _e,
|
|
203
|
-
scheduledSummaryDate: Z?.absoluteLabel,
|
|
204
|
-
auditHistory: ve,
|
|
205
|
-
auditHistoryError: $.isError,
|
|
206
|
-
auditHistoryLoading: $.isLoading || pe,
|
|
207
|
-
auditHistoryNamesError: ye,
|
|
208
|
-
paymentHistory: be,
|
|
209
|
-
paymentHistoryError: J.isError || $.isError,
|
|
210
|
-
paymentHistoryLoading: J.isResolving || $.isLoading,
|
|
211
|
-
isLoading: Se,
|
|
212
|
-
isError: Ce,
|
|
213
|
-
notice: Q,
|
|
214
|
-
onClose: T,
|
|
215
|
-
onExpand: E,
|
|
216
|
-
testId: O,
|
|
217
|
-
labels: j.sheet
|
|
218
|
-
}),
|
|
219
|
-
/* @__PURE__ */ b(s, {
|
|
220
|
-
...ge,
|
|
221
|
-
labels: { cancelButton: j.decisionDialog.cancelButton },
|
|
222
|
-
testId: O ? `${O}-decision-dialog` : void 0,
|
|
223
|
-
confirmTestId: O ? `${O}-decision-confirm` : void 0,
|
|
224
|
-
reasonTestId: O ? `${O}-decision-reason` : void 0,
|
|
225
|
-
reasonFieldId: O ? `${O}-decision-reason-field` : void 0
|
|
226
|
-
}),
|
|
227
|
-
A?.({
|
|
228
|
-
ref: L,
|
|
229
|
-
payable: I,
|
|
230
|
-
payableId: w,
|
|
231
|
-
isPayBillEnabled: !0,
|
|
232
|
-
hasScheduledPayment: J.hasScheduledPayment,
|
|
233
|
-
onMissingAchInstructions: E,
|
|
234
|
-
onMarkAsPaidPendingChange: z,
|
|
235
|
-
testId: O
|
|
236
|
-
})
|
|
237
|
-
] });
|
|
238
|
-
}
|
|
239
|
-
//#endregion
|
|
240
|
-
export { S as BillDetailsContainer, S as default };
|
|
1
|
+
import "./index23.js";
|
|
2
|
+
import "./index43.js";
|
|
3
|
+
import "./index44.js";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
|
|
1
|
+
import { BILL_PAY_WIDGET_NAME as e } from "../../../util/dist/lib/widgetName.js";
|
|
2
|
+
import "../../../util/dist/index.js";
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js
|
|
4
|
+
var t = `${e}.bill_detail`, n = { Mounted: `${t}.mounted` };
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as BillDetailWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1,6 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
7
|
+
import "../../../../shared/feature/dist/index.js";
|
|
8
|
+
import { BillDialog as n } from "./index41.js";
|
|
9
|
+
import "./index42.js";
|
|
10
|
+
import { BillDetailsContainer as r } from "./index44.js";
|
|
11
|
+
import "./index45.js";
|
|
12
|
+
import { BillDetailWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index46.js";
|
|
13
|
+
import { useEffect as o } from "react";
|
|
14
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js
|
|
4
|
-
|
|
16
|
+
function c() {
|
|
17
|
+
let t = e();
|
|
18
|
+
o(() => {
|
|
19
|
+
t(i.Mounted);
|
|
20
|
+
}, [t]);
|
|
21
|
+
}
|
|
22
|
+
function l(e) {
|
|
23
|
+
return c(), /* @__PURE__ */ s(n, { ...e });
|
|
24
|
+
}
|
|
25
|
+
function u(e) {
|
|
26
|
+
return c(), /* @__PURE__ */ s(r, { ...e });
|
|
27
|
+
}
|
|
28
|
+
function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c, uiFramework: u, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
29
|
+
return /* @__PURE__ */ s(t, {
|
|
30
|
+
widgetName: a,
|
|
31
|
+
baseUrl: e,
|
|
32
|
+
widgetToken: n,
|
|
33
|
+
organizationId: r,
|
|
34
|
+
configClient: i,
|
|
35
|
+
gatewayRouting: o,
|
|
36
|
+
linkComponent: c,
|
|
37
|
+
uiFramework: u,
|
|
38
|
+
errorFallback: d,
|
|
39
|
+
onError: f,
|
|
40
|
+
analytics: p,
|
|
41
|
+
disclosuresAcceptance: m,
|
|
42
|
+
providerLabels: h,
|
|
43
|
+
children: /* @__PURE__ */ s(l, { ...g })
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function f({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c, uiFramework: l, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
47
|
+
return /* @__PURE__ */ s(t, {
|
|
48
|
+
widgetName: a,
|
|
49
|
+
baseUrl: e,
|
|
50
|
+
widgetToken: n,
|
|
51
|
+
organizationId: r,
|
|
52
|
+
configClient: i,
|
|
53
|
+
gatewayRouting: o,
|
|
54
|
+
linkComponent: c,
|
|
55
|
+
uiFramework: l,
|
|
56
|
+
errorFallback: d,
|
|
57
|
+
onError: f,
|
|
58
|
+
analytics: p,
|
|
59
|
+
disclosuresAcceptance: m,
|
|
60
|
+
providerLabels: h,
|
|
61
|
+
children: /* @__PURE__ */ s(u, { ...g })
|
|
62
|
+
});
|
|
63
|
+
}
|
|
5
64
|
//#endregion
|
|
6
|
-
export {
|
|
65
|
+
export { f as BillDetailsWidget, d as BillDialogWidget };
|
|
@@ -1,65 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { useAnalyticsTrack as e } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
|
-
import { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
7
|
-
import "../../../../shared/feature/dist/index.js";
|
|
8
|
-
import { BillDialog as n } from "./index42.js";
|
|
9
|
-
import "./index43.js";
|
|
10
|
-
import { BillDetailsContainer as r } from "./index45.js";
|
|
11
|
-
import "./index46.js";
|
|
12
|
-
import { BillDetailWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index47.js";
|
|
13
|
-
import { useEffect as o } from "react";
|
|
14
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
15
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js
|
|
16
|
-
function c() {
|
|
17
|
-
let t = e();
|
|
18
|
-
o(() => {
|
|
19
|
-
t(i.Mounted);
|
|
20
|
-
}, [t]);
|
|
21
|
-
}
|
|
22
|
-
function l(e) {
|
|
23
|
-
return c(), /* @__PURE__ */ s(n, { ...e });
|
|
24
|
-
}
|
|
25
|
-
function u(e) {
|
|
26
|
-
return c(), /* @__PURE__ */ s(r, { ...e });
|
|
27
|
-
}
|
|
28
|
-
function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c, uiFramework: u, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
29
|
-
return /* @__PURE__ */ s(t, {
|
|
30
|
-
widgetName: a,
|
|
31
|
-
baseUrl: e,
|
|
32
|
-
widgetToken: n,
|
|
33
|
-
organizationId: r,
|
|
34
|
-
configClient: i,
|
|
35
|
-
gatewayRouting: o,
|
|
36
|
-
linkComponent: c,
|
|
37
|
-
uiFramework: u,
|
|
38
|
-
errorFallback: d,
|
|
39
|
-
onError: f,
|
|
40
|
-
analytics: p,
|
|
41
|
-
disclosuresAcceptance: m,
|
|
42
|
-
providerLabels: h,
|
|
43
|
-
children: /* @__PURE__ */ s(l, { ...g })
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
function f({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c, uiFramework: l, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
47
|
-
return /* @__PURE__ */ s(t, {
|
|
48
|
-
widgetName: a,
|
|
49
|
-
baseUrl: e,
|
|
50
|
-
widgetToken: n,
|
|
51
|
-
organizationId: r,
|
|
52
|
-
configClient: i,
|
|
53
|
-
gatewayRouting: o,
|
|
54
|
-
linkComponent: c,
|
|
55
|
-
uiFramework: l,
|
|
56
|
-
errorFallback: d,
|
|
57
|
-
onError: f,
|
|
58
|
-
analytics: p,
|
|
59
|
-
disclosuresAcceptance: m,
|
|
60
|
-
providerLabels: h,
|
|
61
|
-
children: /* @__PURE__ */ s(u, { ...g })
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
//#endregion
|
|
65
|
-
export { f as BillDetailsWidget, d as BillDialogWidget };
|
|
1
|
+
import "./index47.js";
|