@tesouro/embedded-components-react 0.11.169 → 0.11.172

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.
Files changed (49) hide show
  1. package/README.md +10 -6
  2. package/dist/index.d.ts +15 -4
  3. package/dist/lib/BillPayWidget.d.ts +9 -4
  4. package/dist/lib/ReceivablesWidget.d.ts +6 -0
  5. package/dist/lib/WidgetSuite.d.ts +6 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +75 -66
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +62 -53
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +44 -38
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +331 -326
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +10 -8
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +190 -187
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +12 -19
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +25 -23
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +4 -7
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +23 -24
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +5 -5
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +196 -187
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +8 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +20 -18
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +11 -15
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +313 -324
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +46 -38
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +2 -2
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +4 -8
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +45 -22
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -29
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +7 -6
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveBillDueDate.js +22 -0
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +116 -98
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +99 -92
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +7 -1
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +15 -24
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +59 -69
  39. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +7 -5
  41. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DateDisclosure/DateDisclosure.js +28 -0
  42. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js +19 -0
  43. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +28 -27
  44. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/dueDateDisplay.js +23 -0
  45. package/package.json +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -6
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -33
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
@@ -1,11 +1,12 @@
1
1
  import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, PAYMENT_HISTORY_LABELS_EN as r, SCHEDULED_RELATIVE_DAY_LABELS_EN as i, SCHEDULED_STATUS_BADGE_LABEL_EN as a, SCHEDULED_SUMMARY_LABEL_EN as o } from "../../../util/dist/lib/billDetailLabels.js";
2
+ import { BILL_DUE_DATE_LABELS_EN as s } from "../../../util/dist/lib/resolveBillDueDate.js";
2
3
  import "../../../util/dist/index.js";
3
- import { APPROVAL_POLICY_RULE_COPY_EN as s } from "./index9.js";
4
- import { PAYABLE_AUDIT_HISTORY_LABELS_EN as c } from "./index29.js";
5
- import { BILL_DETAILS_SHEET_LABELS_EN as l } from "../../ui/dist/index33.js";
4
+ import { APPROVAL_POLICY_RULE_COPY_EN as c } from "./index9.js";
5
+ import { PAYABLE_AUDIT_HISTORY_LABELS_EN as l } from "./index29.js";
6
+ import { BILL_DETAILS_SHEET_LABELS_EN as u } from "../../ui/dist/index33.js";
6
7
  import "../../ui/dist/index.js";
7
8
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js
8
- var u = {
9
+ var d = {
9
10
  subtitle: "Accounts payable",
10
11
  vendorRow: "Vendor",
11
12
  bankAccountRow: "ACH bank account",
@@ -26,6 +27,7 @@ var u = {
26
27
  actionError: n.actionError,
27
28
  actionSuccess: n.actionSuccess,
28
29
  scheduledRelativeDay: i,
30
+ dueDate: s,
29
31
  scheduledSummary: o,
30
32
  scheduledStatusBadge: a,
31
33
  awaitingApprovalNotice: e,
@@ -34,9 +36,9 @@ var u = {
34
36
  rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
35
37
  rejectedOn: (e) => `Rejected on ${e}`,
36
38
  rejectionMessage: (e) => `"${e}"`,
37
- sheet: l,
38
- history: c,
39
+ sheet: u,
40
+ history: l,
39
41
  decisionDialog: n.decisionDialog,
40
- approvalPolicyCopy: s
42
+ approvalPolicyCopy: c
41
43
  };
42
- export { u as BILL_DETAILS_LABELS_EN };
44
+ export { d as BILL_DETAILS_LABELS_EN };
@@ -8,235 +8,238 @@ import { useAllLedgerAccountsQuery as ee } from "../../../../shared/data-access/
8
8
  import "../../../../shared/data-access/dist/index.js";
9
9
  import { useWidgetConfig as te } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
10
  import { useOrganizationUserNames as n } from "../../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
11
+ import { useLocalCalendarDay as r } from "../../../../shared/feature/dist/lib/calendar/useLocalCalendarDay.js";
11
12
  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";
13
+ import { mergeDecisionDialogCopy as i, mergePaymentHistoryMethodLabels as a } from "../../../util/dist/lib/billDetailLabels.js";
14
+ import { hasSuspectedPayableDuplicate as o } from "../../../util/dist/lib/payableDuplicates.js";
14
15
  import "../../../util/dist/index.js";
15
- import { mapPayableToBillDetails as o } from "./index26.js";
16
- import { BillDecisionDialog as s } from "../../../ui/dist/index4.js";
16
+ import { mapPayableToBillDetails as s } from "./index26.js";
17
+ import { BillDecisionDialog as c } from "../../../ui/dist/index4.js";
17
18
  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";
19
+ import { BillDetailsSheet as l } from "../../ui/dist/index34.js";
20
+ import { BillDuplicateNotice as u } from "../../ui/dist/index37.js";
20
21
  import "../../ui/dist/index.js";
21
- import { useAllPayableLineItemsQuery as u } from "../../data-access/dist/index5.js";
22
- import { usePayableQuery as d } from "../../data-access/dist/index23.js";
22
+ import { useAllPayableLineItemsQuery as d } from "../../data-access/dist/index5.js";
23
+ import { usePayableQuery as f } from "../../data-access/dist/index23.js";
23
24
  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 "./index14.js";
27
- import { resolveApprovalNotices as g } from "./index16.js";
28
- import { useBillRejectionNotice as ne } from "./index19.js";
29
- import { useCurrentApprovalRequestId as re } from "./index20.js";
30
- import { usePayableAuditHistory as ie } from "./index21.js";
31
- import { usePayableDetailActions as ae } from "./index22.js";
32
- import { useScheduledDateLabel as oe } from "./index23.js";
33
- import { useScheduledPayment as se } from "./index24.js";
34
- import { usePayableAchInstructions as ce } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
25
+ import { buildPaymentHistory as p } from "./index2.js";
26
+ import { canOverrideApprovalPolicy as m, canReadCounterpartBankAccounts as h } from "./index5.js";
27
+ import { useApprovalPolicyCardView as g } from "./index14.js";
28
+ import { resolveApprovalNotices as ne } from "./index16.js";
29
+ import { useBillRejectionNotice as re } from "./index19.js";
30
+ import { useCurrentApprovalRequestId as ie } from "./index20.js";
31
+ import { usePayableAuditHistory as ae } from "./index21.js";
32
+ import { usePayableDetailActions as oe } from "./index22.js";
33
+ import { useScheduledDateLabel as se } from "./index23.js";
34
+ import { useScheduledPayment as ce } from "./index24.js";
35
+ import { usePayableAchInstructions as le } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
35
36
  import "../../../../shared/counterpart-management/feature/dist/index.js";
36
37
  import { BILL_DETAILS_LABELS_EN as _ } from "./index46.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";
38
+ import { useMemo as v, useRef as ue, useState as de } from "react";
39
+ import { Fragment as fe, jsx as y, jsxs as b } from "react/jsx-runtime";
39
40
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.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(() => ({
41
+ function x({ open: x, onOpenChange: S, payableId: C, onClose: w, onExpand: T, onEdit: E, testId: D, labels: O, renderPaymentFlows: k }) {
42
+ let A = v(() => ({
42
43
  ..._,
43
- ...k,
44
+ ...O,
44
45
  sheet: {
45
46
  ..._.sheet,
46
- ...k?.sheet,
47
+ ...O?.sheet,
47
48
  statusBadge: {
48
49
  ..._.sheet.statusBadge,
49
- ...k?.sheet?.statusBadge
50
+ ...O?.sheet?.statusBadge
50
51
  },
51
52
  approvalPolicy: {
52
53
  ..._.sheet.approvalPolicy,
53
- ...k?.sheet?.approvalPolicy
54
- },
55
- dueDate: {
56
- ..._.sheet.dueDate,
57
- ...k?.sheet?.dueDate
54
+ ...O?.sheet?.approvalPolicy
58
55
  },
59
56
  auditHistory: {
60
57
  ..._.sheet.auditHistory,
61
- ...k?.sheet?.auditHistory
58
+ ...O?.sheet?.auditHistory
62
59
  }
63
60
  },
64
- decisionDialog: r(_.decisionDialog, k?.decisionDialog),
61
+ decisionDialog: i(_.decisionDialog, O?.decisionDialog),
65
62
  approvalPolicyCopy: {
66
63
  ..._.approvalPolicyCopy,
67
- ...k?.approvalPolicyCopy
64
+ ...O?.approvalPolicyCopy
68
65
  },
69
66
  history: {
70
67
  ..._.history,
71
- ...k?.history
68
+ ...O?.history
72
69
  },
73
70
  scheduledRelativeDay: {
74
71
  ..._.scheduledRelativeDay,
75
- ...k?.scheduledRelativeDay
72
+ ...O?.scheduledRelativeDay
73
+ },
74
+ dueDate: {
75
+ ..._.dueDate,
76
+ ...O?.dueDate
76
77
  },
77
78
  actionSuccess: {
78
79
  ..._.actionSuccess,
79
- ...k?.actionSuccess
80
+ ...O?.actionSuccess
80
81
  },
81
- paymentHistoryMethodLabels: i(k?.paymentHistoryMethodLabels)
82
- }), [k]), M = d(w, { pollWhilePolicyAssignmentUnsettled: !0 }), 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
- status: I?.status,
96
- updatedAt: I?.updated_at,
97
- payableFetchedAt: M.dataUpdatedAt,
98
- copy: j.approvalPolicyCopy
99
- }), me = p({
100
- status: I?.status,
101
- scopes: F?.scopes,
102
- arePendingApproversUnknown: K.isLoading,
103
- hasApprovalPolicy: !!I?.approval_policy_id,
104
- hasWaitingRequest: B.hasWaitingRequest
105
- }), q = g({
106
- isCapabilityUnknown: B.isLoading || K.isLoading,
107
- canApproveNow: !!B.id,
108
- canOverridePolicy: me,
109
- status: I?.status,
110
- hasApprovalPolicy: !!I?.approval_policy_id,
111
- pendingApproverNames: K.pendingApprovers.flatMap((e) => e.names),
112
- labels: j
113
- }), J = se({
114
- payableId: w,
115
- scheduledPaymentDate: I?.scheduled_payment_date
116
- }), Y = m(F?.scopes), X = ce({
117
- counterpartId: I?.counterpart_id,
118
- currency: I?.currency,
119
- currentBankAccountId: I?.counterpart_bank_account_id,
120
- enabled: Y
121
- }), { actions: he, decisionDialog: ge } = ae({
122
- payableId: I ? w : void 0,
123
- status: I?.status,
124
- currentApprovalRequestId: B.id,
125
- hasScheduledPayment: J.hasScheduledPayment,
126
- scheduledPaymentIntentId: J.scheduledPaymentIntentId,
127
- isScheduledPaymentUnknown: J.isResolving,
128
- isPayabilityUnknown: X.isLoading,
129
- hasApprovalPolicy: !!I?.approval_policy_id,
130
- hasWaitingRequest: B.hasWaitingRequest,
131
- pendingApprovers: K.pendingApprovers,
132
- arePendingApproversUnknown: K.isLoading,
82
+ paymentHistoryMethodLabels: a(O?.paymentHistoryMethodLabels)
83
+ }), [O]), j = f(C, { pollWhilePolicyAssignmentUnsettled: !0 }), M = d(C), N = ee(), { initResponse: P } = te(), F = j.data, I = ue(null), [L, R] = de(!1), z = ie({
84
+ payableId: C,
85
+ status: F?.status
86
+ }), B = F?.status === "rejected", V = e(P?.scopes, [t.ApprovalRequestReadOrg]), pe = B && V, H = e(P?.scopes, [t.UserReadOrg]), { userNames: U, isError: me, isResolving: he } = n({ enabled: H }), W = re({
87
+ payableId: C,
88
+ payableStatus: F?.status,
89
+ payableUpdatedAt: F?.updated_at,
90
+ enabled: pe,
91
+ userNames: U,
92
+ labels: A
93
+ }), G = g({
94
+ payableId: C,
95
+ approvalPolicyId: F?.approval_policy_id,
96
+ status: F?.status,
97
+ updatedAt: F?.updated_at,
98
+ payableFetchedAt: j.dataUpdatedAt,
99
+ copy: A.approvalPolicyCopy
100
+ }), ge = m({
101
+ status: F?.status,
102
+ scopes: P?.scopes,
103
+ arePendingApproversUnknown: G.isLoading,
104
+ hasApprovalPolicy: !!F?.approval_policy_id,
105
+ hasWaitingRequest: z.hasWaitingRequest
106
+ }), K = ne({
107
+ isCapabilityUnknown: z.isLoading || G.isLoading,
108
+ canApproveNow: !!z.id,
109
+ canOverridePolicy: ge,
110
+ status: F?.status,
111
+ hasApprovalPolicy: !!F?.approval_policy_id,
112
+ pendingApproverNames: G.pendingApprovers.flatMap((e) => e.names),
113
+ labels: A
114
+ }), q = ce({
115
+ payableId: C,
116
+ scheduledPaymentDate: F?.scheduled_payment_date
117
+ }), J = h(P?.scopes), Y = le({
118
+ counterpartId: F?.counterpart_id,
119
+ currency: F?.currency,
120
+ currentBankAccountId: F?.counterpart_bank_account_id,
121
+ enabled: J
122
+ }), { actions: _e, decisionDialog: ve } = oe({
123
+ payableId: F ? C : void 0,
124
+ status: F?.status,
125
+ currentApprovalRequestId: z.id,
126
+ hasScheduledPayment: q.hasScheduledPayment,
127
+ scheduledPaymentIntentId: q.scheduledPaymentIntentId,
128
+ isScheduledPaymentUnknown: q.isResolving,
129
+ isPayabilityUnknown: Y.isLoading,
130
+ hasApprovalPolicy: !!F?.approval_policy_id,
131
+ hasWaitingRequest: z.hasWaitingRequest,
132
+ pendingApprovers: G.pendingApprovers,
133
+ arePendingApproversUnknown: G.isLoading,
133
134
  labels: {
134
- edit: j.sheet.editButton,
135
- payBill: j.sheet.payButton,
136
- markAsPaid: j.sheet.markAsPaidButton,
137
- reject: j.sheet.rejectButton,
138
- approve: j.sheet.approveButton,
139
- cancel: j.sheet.cancelButton,
140
- cancelScheduledPayment: j.sheet.cancelScheduledPaymentButton,
141
- reopen: j.sheet.reopenButton,
142
- forceApprove: j.sheet.forceApproveButton,
143
- forceReject: j.sheet.forceRejectButton,
144
- policyOverridesHeading: j.sheet.policyOverridesGroup,
145
- decisionDialog: j.decisionDialog,
146
- actionError: j.actionError,
147
- actionSuccess: j.actionSuccess
135
+ edit: A.sheet.editButton,
136
+ payBill: A.sheet.payButton,
137
+ markAsPaid: A.sheet.markAsPaidButton,
138
+ reject: A.sheet.rejectButton,
139
+ approve: A.sheet.approveButton,
140
+ cancel: A.sheet.cancelButton,
141
+ cancelScheduledPayment: A.sheet.cancelScheduledPaymentButton,
142
+ reopen: A.sheet.reopenButton,
143
+ forceApprove: A.sheet.forceApproveButton,
144
+ forceReject: A.sheet.forceRejectButton,
145
+ policyOverridesHeading: A.sheet.policyOverridesGroup,
146
+ decisionDialog: A.decisionDialog,
147
+ actionError: A.actionError,
148
+ actionSuccess: A.actionSuccess
148
149
  },
149
- isMarkAsPaidPending: R,
150
- onMarkAsPaidSelect: () => L.current?.openMarkAsPaid(),
151
- onPayBillSelect: () => L.current?.openPayBill(),
152
- onEditSelect: D,
150
+ isMarkAsPaidPending: L,
151
+ onMarkAsPaidSelect: () => I.current?.openMarkAsPaid(),
152
+ onPayBillSelect: () => I.current?.openPayBill(),
153
+ onEditSelect: E,
153
154
  onActionSucceeded: (e) => {
154
- e === "reopen" && D?.();
155
+ e === "reopen" && E?.();
155
156
  }
156
- }), Z = oe({
157
- hasScheduledPayment: J.hasScheduledPayment,
158
- scheduledDate: J.scheduledDate,
159
- labels: j.scheduledRelativeDay
160
- }), _e = Z ? j.scheduledSummary(Z.label) : void 0, Q = a(I) ? /* @__PURE__ */ b(l, { onOpenFullScreen: E }) : void 0, { historyQuery: $, rows: ve, namesError: ye } = ie({
161
- payableId: w,
162
- userNames: W,
163
- isRosterError: U && fe,
164
- labels: j.history
165
- }), be = v(() => f({
166
- records: J.paymentRecords,
167
- events: $.data?.data ?? [],
168
- currencyCode: I?.currency,
169
- labels: j
157
+ }), X = se({
158
+ hasScheduledPayment: q.hasScheduledPayment,
159
+ scheduledDate: q.scheduledDate,
160
+ labels: A.scheduledRelativeDay
161
+ }), ye = X ? A.scheduledSummary(X.label) : void 0, be = o(F) ? /* @__PURE__ */ y(u, { onOpenFullScreen: T }) : void 0, { historyQuery: Z, rows: xe, namesError: Q } = ae({
162
+ payableId: C,
163
+ userNames: U,
164
+ isRosterError: H && me,
165
+ labels: A.history
166
+ }), Se = v(() => p({
167
+ records: q.paymentRecords,
168
+ events: Z.data?.data ?? [],
169
+ currencyCode: F?.currency,
170
+ labels: A
170
171
  }), [
171
- J.paymentRecords,
172
- $.data,
173
- I?.currency,
174
- j
175
- ]), xe = v(() => I ? o({
176
- payable: I,
177
- lineItems: N.lineItems,
178
- ledgerAccounts: P.data?.data ?? [],
179
- labels: j,
180
- hasScheduledPayment: J.hasScheduledPayment,
181
- rejection: G,
182
- achInstructions: X.achInstructions,
183
- achInstructionsReadable: Y && !X.isLoading && !X.isError
172
+ q.paymentRecords,
173
+ Z.data,
174
+ F?.currency,
175
+ A
176
+ ]), $ = r(), Ce = v(() => F ? s({
177
+ payable: F,
178
+ lineItems: M.lineItems,
179
+ ledgerAccounts: N.data?.data ?? [],
180
+ labels: A,
181
+ hasScheduledPayment: q.hasScheduledPayment,
182
+ today: $,
183
+ rejection: W,
184
+ achInstructions: Y.achInstructions,
185
+ achInstructionsReadable: J && !Y.isLoading && !Y.isError
184
186
  }) : void 0, [
185
- I,
186
- N.lineItems,
187
- P.data,
188
- j,
189
- J.hasScheduledPayment,
190
- G,
191
- X.achInstructions,
192
- X.isError,
193
- X.isLoading,
194
- Y
195
- ]), Se = M.isLoading || N.isResolving || P.isResolving || X.isLoading, Ce = M.isError || N.isError || P.isError;
196
- return /* @__PURE__ */ x(y, { children: [
197
- /* @__PURE__ */ b(c, {
198
- open: S,
199
- onOpenChange: C,
200
- details: xe,
201
- actions: he,
202
- approvalPolicy: K.view,
203
- showApprovalOverrideNotice: q.showApprovalOverrideNotice,
204
- awaitingApprovalNotice: q.awaitingApprovalNotice,
205
- scheduledSummary: _e,
206
- scheduledSummaryDate: Z?.absoluteLabel,
207
- auditHistory: ve,
208
- auditHistoryError: $.isError,
209
- auditHistoryLoading: $.isLoading || pe,
210
- auditHistoryNamesError: ye,
211
- paymentHistory: be,
212
- paymentHistoryError: J.isError || $.isError,
213
- paymentHistoryLoading: J.isResolving || $.isLoading,
214
- isLoading: Se,
215
- isError: Ce,
216
- notice: Q,
217
- onClose: T,
218
- onExpand: E,
219
- testId: O,
220
- labels: j.sheet
187
+ F,
188
+ M.lineItems,
189
+ N.data,
190
+ A,
191
+ q.hasScheduledPayment,
192
+ $,
193
+ W,
194
+ Y.achInstructions,
195
+ Y.isError,
196
+ Y.isLoading,
197
+ J
198
+ ]), we = j.isLoading || M.isResolving || N.isResolving || Y.isLoading, Te = j.isError || M.isError || N.isError;
199
+ return /* @__PURE__ */ b(fe, { children: [
200
+ /* @__PURE__ */ y(l, {
201
+ open: x,
202
+ onOpenChange: S,
203
+ details: Ce,
204
+ actions: _e,
205
+ approvalPolicy: G.view,
206
+ showApprovalOverrideNotice: K.showApprovalOverrideNotice,
207
+ awaitingApprovalNotice: K.awaitingApprovalNotice,
208
+ scheduledSummary: ye,
209
+ scheduledSummaryDate: X?.absoluteLabel,
210
+ auditHistory: xe,
211
+ auditHistoryError: Z.isError,
212
+ auditHistoryLoading: Z.isLoading || he,
213
+ auditHistoryNamesError: Q,
214
+ paymentHistory: Se,
215
+ paymentHistoryError: q.isError || Z.isError,
216
+ paymentHistoryLoading: q.isResolving || Z.isLoading,
217
+ isLoading: we,
218
+ isError: Te,
219
+ notice: be,
220
+ onClose: w,
221
+ onExpand: T,
222
+ testId: D,
223
+ labels: A.sheet
221
224
  }),
222
- /* @__PURE__ */ b(s, {
223
- ...ge,
224
- labels: { cancelButton: j.decisionDialog.cancelButton },
225
- testId: O ? `${O}-decision-dialog` : void 0,
226
- confirmTestId: O ? `${O}-decision-confirm` : void 0,
227
- reasonTestId: O ? `${O}-decision-reason` : void 0,
228
- reasonFieldId: O ? `${O}-decision-reason-field` : void 0
225
+ /* @__PURE__ */ y(c, {
226
+ ...ve,
227
+ labels: { cancelButton: A.decisionDialog.cancelButton },
228
+ testId: D ? `${D}-decision-dialog` : void 0,
229
+ confirmTestId: D ? `${D}-decision-confirm` : void 0,
230
+ reasonTestId: D ? `${D}-decision-reason` : void 0,
231
+ reasonFieldId: D ? `${D}-decision-reason-field` : void 0
229
232
  }),
230
- A?.({
231
- ref: L,
232
- payable: I,
233
- payableId: w,
233
+ k?.({
234
+ ref: I,
235
+ payable: F,
236
+ payableId: C,
234
237
  isPayBillEnabled: !0,
235
- hasScheduledPayment: J.hasScheduledPayment,
236
- onMissingAchInstructions: E,
237
- onMarkAsPaidPendingChange: z,
238
- testId: O
238
+ hasScheduledPayment: q.hasScheduledPayment,
239
+ onMissingAchInstructions: T,
240
+ onMarkAsPaidPendingChange: R,
241
+ testId: D
239
242
  })
240
243
  ] });
241
244
  }
242
- export { S as BillDetailsContainer, S as default };
245
+ export { x as BillDetailsContainer, x as default };
@@ -5,14 +5,12 @@ import { VENDOR_SUMMARY_CARD_LABELS_EN as i } from "./index11.js";
5
5
  import "./index13.js";
6
6
  import { BILL_STATUS_BADGE_LABELS_EN as a } from "../../../../shared/document-status/ui/dist/index2.js";
7
7
  import "../../../../shared/document-status/ui/dist/index.js";
8
- import { DUE_DATE_VALUE_LABELS_EN as o } from "../../../ui/dist/index21.js";
9
- import "../../../ui/dist/index.js";
10
8
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js
11
- var s = {
9
+ var o = {
12
10
  ...e,
13
11
  error: "Couldn't load audit history.",
14
12
  namesError: "Some names could not be loaded."
15
- }, c = {
13
+ }, s = {
16
14
  errorTitle: "Couldn't load this bill",
17
15
  errorDescription: "Something went wrong. Try again.",
18
16
  amountDueHeading: "Amount due",
@@ -32,50 +30,45 @@ var s = {
32
30
  amountColumn: "Amount",
33
31
  paymentHistoryHeading: "Payment history",
34
32
  paymentHistoryErrorDescription: "Couldn't load payment history.",
35
- history: s,
33
+ history: o,
36
34
  statusBadge: a,
37
35
  approvalPolicy: r,
38
- dueDate: o,
39
36
  payToCard: {
40
37
  ...i,
41
38
  editAction: "Edit vendor"
42
39
  },
43
40
  requiredFieldsLegend: t
44
41
  };
45
- function l(e) {
42
+ function c(e) {
46
43
  let t = {
47
- ...c.payToCard.ach.fieldMarkers,
44
+ ...s.payToCard.ach.fieldMarkers,
48
45
  ...e?.payToCard?.ach?.fieldMarkers
49
46
  };
50
47
  return {
51
- ...c,
48
+ ...s,
52
49
  ...e,
53
50
  statusBadge: {
54
- ...c.statusBadge,
51
+ ...s.statusBadge,
55
52
  ...e?.statusBadge
56
53
  },
57
54
  approvalPolicy: {
58
- ...c.approvalPolicy,
55
+ ...s.approvalPolicy,
59
56
  ...e?.approvalPolicy
60
57
  },
61
- dueDate: {
62
- ...c.dueDate,
63
- ...e?.dueDate
64
- },
65
58
  payToCard: {
66
- ...c.payToCard,
59
+ ...s.payToCard,
67
60
  ...e?.payToCard,
68
61
  ach: {
69
- ...c.payToCard.ach,
62
+ ...s.payToCard.ach,
70
63
  ...e?.payToCard?.ach,
71
64
  fieldMarkers: t
72
65
  }
73
66
  },
74
67
  history: {
75
- ...c.history,
68
+ ...s.history,
76
69
  ...e?.history
77
70
  },
78
71
  requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
79
72
  };
80
73
  }
81
- export { s as BILL_AUDIT_HISTORY_SECTION_LABELS_EN, c as BILL_DETAIL_BODY_LABELS_EN, l as mergeBillDetailBodyLabels };
74
+ export { o as BILL_AUDIT_HISTORY_SECTION_LABELS_EN, s as BILL_DETAIL_BODY_LABELS_EN, c as mergeBillDetailBodyLabels };