@tesouro/embedded-components-react 0.11.253 → 0.11.255

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 (111) hide show
  1. package/dist/index.css +9 -344
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +35 -38
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +21 -14
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +3 -105
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +4 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +47 -47
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +87 -90
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +238 -248
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +15 -34
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +199 -202
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +16 -14
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +25 -25
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js +18 -32
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js +150 -19
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +2 -150
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +75 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +272 -70
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -279
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +20 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index17.js +51 -16
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index18.js +2 -55
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +34 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index20.js +369 -30
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index21.js +2 -373
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +22 -2
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index23.js +124 -20
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index24.js +2 -126
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +30 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index26.js +51 -29
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index27.js +1 -52
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +54 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +10 -54
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +35 -35
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index30.js +133 -10
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -198
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js +30 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +52 -43
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -315
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js +15 -2
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +158 -14
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -162
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index38.js +3 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index39.js +19 -2
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index40.js +2 -35
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index41.js +9 -2
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +31 -8
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +2 -33
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index44.js +6 -2
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index45.js +27 -5
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index46.js +2 -29
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index47.js +13 -2
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +100 -11
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +2 -107
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +12 -16
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index50.js +9 -2
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index51.js +41 -8
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +2 -52
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +1 -22
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +31 -1
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +1 -31
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +34 -1
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +1 -3
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +2 -6
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -6
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +119 -104
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +2 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +2 -1
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +11 -11
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +9 -4
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +8 -8
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +76 -171
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +1 -1
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js +33 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js +9 -0
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js +126 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index15.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +23 -29
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +32 -126
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +14 -2
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +3 -13
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +28 -104
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +72 -1
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +2 -33
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index9.js +12 -7
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -9
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +6 -9
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +32 -31
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +4 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +15 -5
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +53 -84
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +17 -18
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +12 -12
  97. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +4 -4
  98. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +9 -9
  99. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +13 -14
  100. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +1 -1
  102. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +20 -19
  103. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +30 -34
  104. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js +55 -0
  105. package/dist/packages/shared-ui-shadcn/dist/index.js +1322 -1312
  106. package/package.json +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index53.js +0 -2
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +0 -6
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -31
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +0 -5
@@ -1,44 +1,25 @@
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";
1
+ import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, SCHEDULED_RELATIVE_DAY_LABELS_EN as r, SCHEDULED_SUMMARY_LABEL_EN as i } from "../../../util/dist/lib/billDetailLabels.js";
2
+ import { BILL_DUE_DATE_LABELS_EN as a } from "../../../util/dist/lib/resolveBillDueDate.js";
3
3
  import "../../../util/dist/index.js";
4
- import { APPROVAL_POLICY_RULE_COPY_EN as c } from "./index10.js";
5
- import { PAYABLE_AUDIT_HISTORY_LABELS_EN as l } from "./index30.js";
6
- import { BILL_DETAILS_SHEET_LABELS_EN as u } from "../../ui/dist/index33.js";
4
+ import { APPROVAL_POLICY_RULE_COPY_EN as o } from "./index10.js";
5
+ import { PAYABLE_AUDIT_HISTORY_LABELS_EN as s } from "./index30.js";
6
+ import { BILL_DETAILS_SHEET_LABELS_EN as c } from "../../ui/dist/index32.js";
7
7
  import "../../ui/dist/index.js";
8
+ import { BILL_DETAIL_VIEW_LABELS_EN as l } from "./index31.js";
8
9
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js
9
- var d = {
10
+ var u = {
11
+ ...l,
10
12
  subtitle: "Accounts payable",
11
- vendorRow: "Vendor",
12
- bankAccountRow: "ACH bank account",
13
- bankAccountValue: (e) => `Account ending in ${e}`,
14
- ...r,
15
- invoiceNumberRow: "Number",
16
- issueDateRow: "Issue date",
17
- dueDateRow: "Due date",
18
- poNumberRow: "PO number",
19
- notProvided: "Not provided",
20
- glCodeMissing: "GL code not specified",
21
- quantityValue: (e, t) => `${e} x ${t}`,
22
- quantityOnlyValue: (e) => e,
23
- subtotalRow: "Subtotal",
24
- discountsRow: "Discounts",
25
- taxRow: "Tax",
26
- totalRow: "Total",
27
13
  actionError: n.actionError,
28
14
  actionSuccess: n.actionSuccess,
29
- scheduledRelativeDay: i,
30
- dueDate: s,
31
- scheduledSummary: o,
32
- scheduledStatusBadge: a,
15
+ scheduledRelativeDay: r,
16
+ dueDate: a,
17
+ scheduledSummary: i,
33
18
  awaitingApprovalNotice: e,
34
19
  awaitingApprovalUnknownNotice: t,
35
- paidOnLabel: (e) => `Paid on ${e}`,
36
- rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
37
- rejectedOn: (e) => `Rejected on ${e}`,
38
- rejectionMessage: (e) => `"${e}"`,
39
- sheet: u,
40
- history: l,
20
+ sheet: c,
21
+ history: s,
41
22
  decisionDialog: n.decisionDialog,
42
- approvalPolicyCopy: c
23
+ approvalPolicyCopy: o
43
24
  };
44
- export { d as BILL_DETAILS_LABELS_EN };
25
+ export { u as BILL_DETAILS_LABELS_EN };
@@ -12,234 +12,231 @@ import { useLocalCalendarDay as r } from "../../../../shared/feature/dist/lib/ca
12
12
  import "../../../../shared/feature/dist/index.js";
13
13
  import { mergeDecisionDialogCopy as i, mergePaymentHistoryMethodLabels as a } from "../../../util/dist/lib/billDetailLabels.js";
14
14
  import { hasSuspectedPayableDuplicate as o } from "../../../util/dist/lib/payableDuplicates.js";
15
+ import { resolveVendorName as s } from "../../../util/dist/lib/resolveVendor.js";
15
16
  import "../../../util/dist/index.js";
16
- import { BillDecisionDialog as s } from "../../../ui/dist/index4.js";
17
+ import { BillDecisionDialog as c } from "../../../ui/dist/index4.js";
17
18
  import "../../../ui/dist/index.js";
18
- import { usePayableAchInstructions as c } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
19
+ import { usePayableAchInstructions as l } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
19
20
  import "../../../../shared/counterpart-management/feature/dist/index.js";
20
- import { mapPayableToBillDetails as l } from "./index27.js";
21
- import { BillDetailsSheet as u } from "../../ui/dist/index34.js";
22
- import { BillDuplicateNotice as d } from "../../ui/dist/index37.js";
21
+ import { mergeBillDetailsSheetLabels as u } from "../../ui/dist/index32.js";
22
+ import { BillDetailsSheet as d } from "../../ui/dist/index33.js";
23
+ import { BillDuplicateNotice as f } from "../../ui/dist/index36.js";
23
24
  import "../../ui/dist/index.js";
24
- import { useAllPayableLineItemsQuery as f } from "../../data-access/dist/index6.js";
25
- import { usePayableQuery as p } from "../../data-access/dist/index24.js";
25
+ import { useAllPayableLineItemsQuery as p } from "../../data-access/dist/index6.js";
26
+ import { usePayableQuery as m } from "../../data-access/dist/index24.js";
26
27
  import "../../data-access/dist/index.js";
27
- import { buildPaymentHistory as m } from "./index2.js";
28
- import { canOverrideApprovalPolicy as h, canReadCounterpartBankAccounts as g } from "./index5.js";
29
- import { useApprovalPolicyCardView as ne } from "./index15.js";
30
- import { resolveApprovalNotices as re } from "./index17.js";
31
- import { useBillRejectionNotice as ie } from "./index20.js";
32
- import { useCurrentApprovalRequestId as ae } from "./index21.js";
33
- import { usePayableAuditHistory as oe } from "./index22.js";
34
- import { usePayableDetailActions as se } from "./index23.js";
35
- import { useScheduledDateLabel as ce } from "./index24.js";
36
- import { useScheduledPayment as le } from "./index25.js";
37
- import { BILL_DETAILS_LABELS_EN as _ } from "./index46.js";
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";
28
+ import { buildPaymentHistory as h } from "./index2.js";
29
+ import { canOverrideApprovalPolicy as ne, canReadCounterpartBankAccounts as re } from "./index5.js";
30
+ import { useApprovalPolicyCardView as ie } from "./index15.js";
31
+ import { formatGlCodeLabel as ae } from "./index16.js";
32
+ import { resolveApprovalNotices as oe } from "./index17.js";
33
+ import { useBillRejectionNotice as se } from "./index20.js";
34
+ import { useCurrentApprovalRequestId as ce } from "./index21.js";
35
+ import { usePayableAuditHistory as le } from "./index22.js";
36
+ import { usePayableDetailActions as ue } from "./index23.js";
37
+ import { useScheduledDateLabel as de } from "./index24.js";
38
+ import { useScheduledPayment as fe } from "./index25.js";
39
+ import { buildBillDetailView as pe } from "./index28.js";
40
+ import { BILL_DETAILS_LABELS_EN as g } from "./index46.js";
41
+ import { useMemo as _, useRef as me, useState as he } from "react";
42
+ import { Fragment as ge, jsx as v, jsxs as y } from "react/jsx-runtime";
40
43
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js
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(() => ({
43
- ..._,
44
- ...O,
45
- sheet: {
46
- ..._.sheet,
47
- ...O?.sheet,
48
- statusBadge: {
49
- ..._.sheet.statusBadge,
50
- ...O?.sheet?.statusBadge
51
- },
52
- approvalPolicy: {
53
- ..._.sheet.approvalPolicy,
54
- ...O?.sheet?.approvalPolicy
55
- },
56
- auditHistory: {
57
- ..._.sheet.auditHistory,
58
- ...O?.sheet?.auditHistory
59
- }
60
- },
61
- decisionDialog: i(_.decisionDialog, O?.decisionDialog),
44
+ function b({ open: b, onOpenChange: x, payableId: S, onClose: C, onExpand: w, onEdit: T, testId: E, labels: D, renderPaymentFlows: O }) {
45
+ let k = _(() => ({
46
+ ...g,
47
+ ...D,
48
+ sheet: u(D?.sheet),
49
+ decisionDialog: i(g.decisionDialog, D?.decisionDialog),
62
50
  approvalPolicyCopy: {
63
- ..._.approvalPolicyCopy,
64
- ...O?.approvalPolicyCopy
51
+ ...g.approvalPolicyCopy,
52
+ ...D?.approvalPolicyCopy
65
53
  },
66
54
  history: {
67
- ..._.history,
68
- ...O?.history
55
+ ...g.history,
56
+ ...D?.history
69
57
  },
70
58
  scheduledRelativeDay: {
71
- ..._.scheduledRelativeDay,
72
- ...O?.scheduledRelativeDay
59
+ ...g.scheduledRelativeDay,
60
+ ...D?.scheduledRelativeDay
73
61
  },
74
62
  dueDate: {
75
- ..._.dueDate,
76
- ...O?.dueDate
63
+ ...g.dueDate,
64
+ ...D?.dueDate
77
65
  },
78
66
  actionSuccess: {
79
- ..._.actionSuccess,
80
- ...O?.actionSuccess
67
+ ...g.actionSuccess,
68
+ ...D?.actionSuccess
81
69
  },
82
- paymentHistoryMethodLabels: a(O?.paymentHistoryMethodLabels)
83
- }), [O]), j = p(C, { pollWhilePolicyAssignmentUnsettled: !0 }), M = f(C), N = ee(), { initResponse: P } = te(), F = j.data, I = ue(null), [L, R] = de(!1), z = ae({
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 = ie({
87
- payableId: C,
88
- payableStatus: F?.status,
89
- payableUpdatedAt: F?.updated_at,
90
- enabled: pe,
91
- userNames: U,
92
- labels: A
93
- }), G = ne({
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 = h({
101
- status: F?.status,
102
- scopes: P?.scopes,
103
- arePendingApproversUnknown: G.isLoading,
104
- hasApprovalPolicy: !!F?.approval_policy_id,
105
- hasWaitingRequest: z.hasWaitingRequest
106
- }), K = re({
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 = le({
115
- payableId: C,
116
- scheduledPaymentDate: F?.scheduled_payment_date
117
- }), J = g(P?.scopes), Y = c({
118
- counterpartId: F?.counterpart_id,
119
- currency: F?.currency,
120
- currentBankAccountId: F?.counterpart_bank_account_id,
121
- enabled: J
122
- }), { actions: _e, decisionDialog: ve } = se({
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,
70
+ paymentHistoryMethodLabels: a(D?.paymentHistoryMethodLabels)
71
+ }), [D]), A = m(S, { pollWhilePolicyAssignmentUnsettled: !0 }), j = p(S), M = ee(), { initResponse: N } = te(), P = A.data, F = me(null), [I, L] = he(!1), R = ce({
72
+ payableId: S,
73
+ status: P?.status
74
+ }), _e = P?.status === "rejected", ve = e(N?.scopes, [t.ApprovalRequestReadOrg]), ye = _e && ve, z = e(N?.scopes, [t.UserReadOrg]), { userNames: B, isError: be, isResolving: xe } = n({ enabled: z }), V = se({
75
+ payableId: S,
76
+ payableStatus: P?.status,
77
+ payableUpdatedAt: P?.updated_at,
78
+ enabled: ye,
79
+ userNames: B,
80
+ labels: k
81
+ }), H = ie({
82
+ payableId: S,
83
+ approvalPolicyId: P?.approval_policy_id,
84
+ status: P?.status,
85
+ updatedAt: P?.updated_at,
86
+ payableFetchedAt: A.dataUpdatedAt,
87
+ copy: k.approvalPolicyCopy
88
+ }), Se = ne({
89
+ status: P?.status,
90
+ scopes: N?.scopes,
91
+ arePendingApproversUnknown: H.isLoading,
92
+ hasApprovalPolicy: !!P?.approval_policy_id,
93
+ hasWaitingRequest: R.hasWaitingRequest
94
+ }), U = oe({
95
+ isCapabilityUnknown: R.isLoading || H.isLoading,
96
+ canApproveNow: !!R.id,
97
+ canOverridePolicy: Se,
98
+ status: P?.status,
99
+ hasApprovalPolicy: !!P?.approval_policy_id,
100
+ pendingApproverNames: H.pendingApprovers.flatMap((e) => e.names),
101
+ labels: k
102
+ }), W = fe({
103
+ payableId: S,
104
+ scheduledPaymentDate: P?.scheduled_payment_date
105
+ }), G = re(N?.scopes), K = l({
106
+ counterpartId: P?.counterpart_id,
107
+ currency: P?.currency,
108
+ currentBankAccountId: P?.counterpart_bank_account_id,
109
+ enabled: G
110
+ }), { actions: Ce, decisionDialog: we } = ue({
111
+ payableId: P ? S : void 0,
112
+ status: P?.status,
113
+ currentApprovalRequestId: R.id,
114
+ hasScheduledPayment: W.hasScheduledPayment,
115
+ scheduledPaymentIntentId: W.scheduledPaymentIntentId,
116
+ isScheduledPaymentUnknown: W.isResolving,
117
+ isPayabilityUnknown: K.isLoading,
118
+ hasApprovalPolicy: !!P?.approval_policy_id,
119
+ hasWaitingRequest: R.hasWaitingRequest,
120
+ pendingApprovers: H.pendingApprovers,
121
+ arePendingApproversUnknown: H.isLoading,
134
122
  labels: {
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
123
+ edit: k.sheet.editButton,
124
+ payBill: k.sheet.payButton,
125
+ markAsPaid: k.sheet.markAsPaidButton,
126
+ reject: k.sheet.rejectButton,
127
+ approve: k.sheet.approveButton,
128
+ cancel: k.sheet.cancelButton,
129
+ cancelScheduledPayment: k.sheet.cancelScheduledPaymentButton,
130
+ reopen: k.sheet.reopenButton,
131
+ forceApprove: k.sheet.forceApproveButton,
132
+ forceReject: k.sheet.forceRejectButton,
133
+ policyOverridesHeading: k.sheet.policyOverridesGroup,
134
+ decisionDialog: k.decisionDialog,
135
+ actionError: k.actionError,
136
+ actionSuccess: k.actionSuccess
149
137
  },
150
- isMarkAsPaidPending: L,
151
- onMarkAsPaidSelect: () => I.current?.openMarkAsPaid(),
152
- onPayBillSelect: () => I.current?.openPayBill(),
153
- onEditSelect: E,
138
+ isMarkAsPaidPending: I,
139
+ onMarkAsPaidSelect: () => F.current?.openMarkAsPaid(),
140
+ onPayBillSelect: () => F.current?.openPayBill(),
141
+ onEditSelect: T,
154
142
  onActionSucceeded: (e) => {
155
- e === "reopen" && E?.();
143
+ e === "reopen" && T?.();
156
144
  }
157
- }), X = ce({
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(d, { onOpenFullScreen: T }) : void 0, { historyQuery: Z, rows: xe, namesError: Q } = oe({
162
- payableId: C,
163
- userNames: U,
164
- isRosterError: H && me,
165
- labels: A.history
166
- }), Se = v(() => m({
167
- records: q.paymentRecords,
168
- events: Z.data?.data ?? [],
169
- currencyCode: F?.currency,
170
- labels: A
145
+ }), q = de({
146
+ hasScheduledPayment: W.hasScheduledPayment,
147
+ scheduledDate: W.scheduledDate,
148
+ labels: k.scheduledRelativeDay
149
+ }), Te = q ? k.scheduledSummary(q.label) : void 0, J = o(P) ? /* @__PURE__ */ v(f, { onOpenFullScreen: w }) : void 0, { historyQuery: Y, rows: X, namesError: Ee } = le({
150
+ payableId: S,
151
+ userNames: B,
152
+ isRosterError: z && be,
153
+ labels: k.history
154
+ }), Z = _(() => h({
155
+ records: W.paymentRecords,
156
+ events: Y.data?.data ?? [],
157
+ currencyCode: P?.currency,
158
+ labels: k
171
159
  }), [
172
- q.paymentRecords,
173
- Z.data,
174
- F?.currency,
175
- A
176
- ]), $ = r(), Ce = v(() => F ? l({
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
160
+ W.paymentRecords,
161
+ Y.data,
162
+ P?.currency,
163
+ k
164
+ ]), Q = r(), $ = _(() => (M.data?.data ?? []).map((e) => ({
165
+ value: e.id,
166
+ label: ae(e)
167
+ })), [M.data]), De = _(() => P ? pe({
168
+ payable: P,
169
+ lineItems: j.lineItems,
170
+ glCodeOptions: $,
171
+ history: X,
172
+ paymentHistory: Z,
173
+ approvalPolicy: H.view,
174
+ labels: k,
175
+ dueDateLabels: k.dueDate,
176
+ today: Q,
177
+ hasScheduledPayment: W.hasScheduledPayment,
178
+ rejection: V,
179
+ payableAchInstructions: K.achInstructions,
180
+ payableAchInstructionsReadable: G && !K.isLoading && !K.isError
186
181
  }) : void 0, [
187
- F,
188
- M.lineItems,
189
- N.data,
190
- A,
191
- q.hasScheduledPayment,
182
+ P,
183
+ j.lineItems,
192
184
  $,
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(u, {
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
185
+ X,
186
+ Z,
187
+ H.view,
188
+ k,
189
+ Q,
190
+ W.hasScheduledPayment,
191
+ V,
192
+ K.achInstructions,
193
+ K.isError,
194
+ K.isLoading,
195
+ G
196
+ ]), Oe = A.isLoading || j.isResolving || M.isResolving || K.isLoading, ke = A.isError || j.isError || M.isError;
197
+ return /* @__PURE__ */ y(ge, { children: [
198
+ /* @__PURE__ */ v(d, {
199
+ open: b,
200
+ onOpenChange: x,
201
+ title: s(P),
202
+ subtitle: k.subtitle,
203
+ view: De,
204
+ actions: Ce,
205
+ showApprovalOverrideNotice: U.showApprovalOverrideNotice,
206
+ awaitingApprovalNotice: U.awaitingApprovalNotice,
207
+ statusDetail: Te,
208
+ statusDetailDate: q?.absoluteLabel,
209
+ historyError: Y.isError,
210
+ historyLoading: Y.isLoading || xe,
211
+ historyNamesError: Ee,
212
+ paymentHistoryError: W.isError || Y.isError,
213
+ paymentHistoryLoading: W.isResolving || Y.isLoading,
214
+ isLoading: Oe,
215
+ isError: ke,
216
+ notice: J,
217
+ onClose: C,
218
+ onExpand: w,
219
+ testId: E,
220
+ labels: k.sheet
224
221
  }),
225
- /* @__PURE__ */ y(s, {
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
222
+ /* @__PURE__ */ v(c, {
223
+ ...we,
224
+ labels: { cancelButton: k.decisionDialog.cancelButton },
225
+ testId: E ? `${E}-decision-dialog` : void 0,
226
+ confirmTestId: E ? `${E}-decision-confirm` : void 0,
227
+ reasonTestId: E ? `${E}-decision-reason` : void 0,
228
+ reasonFieldId: E ? `${E}-decision-reason-field` : void 0
232
229
  }),
233
- k?.({
234
- ref: I,
235
- payable: F,
236
- payableId: C,
230
+ O?.({
231
+ ref: F,
232
+ payable: P,
233
+ payableId: S,
237
234
  isPayBillEnabled: !0,
238
- hasScheduledPayment: q.hasScheduledPayment,
239
- onMissingAchInstructions: T,
240
- onMarkAsPaidPendingChange: R,
241
- testId: D
235
+ hasScheduledPayment: W.hasScheduledPayment,
236
+ onMissingAchInstructions: w,
237
+ onMarkAsPaidPendingChange: L,
238
+ testId: E
242
239
  })
243
240
  ] });
244
241
  }
245
- export { x as BillDetailsContainer, x as default };
242
+ export { b as BillDetailsContainer, b as default };
@@ -17,18 +17,18 @@ function u({ status: u, scopes: d, canDecideApprovalRequest: f, hasScheduledPaym
17
17
  if (y && n(u) && T && D.push({
18
18
  id: "edit",
19
19
  label: b.edit,
20
- variant: "default",
21
- surface: "row"
20
+ variant: "ghost",
21
+ surface: "header"
22
22
  }), u === "approve_in_progress" && f && (D.push({
23
+ id: "reject",
24
+ label: b.reject,
25
+ variant: "outline",
26
+ surface: "row"
27
+ }), D.push({
23
28
  id: "approve",
24
29
  label: b.approve,
25
30
  variant: "default",
26
31
  surface: "row"
27
- }), D.push({
28
- id: "reject",
29
- label: b.reject,
30
- variant: "ghost",
31
- surface: "row"
32
32
  })), l({
33
33
  status: u,
34
34
  scopes: d,
@@ -64,24 +64,26 @@ function u({ status: u, scopes: d, canDecideApprovalRequest: f, hasScheduledPaym
64
64
  label: b.payBill,
65
65
  variant: "default",
66
66
  surface: "row"
67
- }), u === "new" && T && D.push({
68
- id: "cancel",
69
- label: b.cancel,
70
- variant: "ghost",
71
- surface: "menu",
72
- icon: r
73
67
  }), (u === "rejected" || u === "waiting_to_be_paid" && !p) && T && D.push({
74
68
  id: "reopen",
75
69
  label: b.reopen,
76
70
  variant: "ghost",
77
71
  surface: "menu",
78
72
  icon: a
73
+ }), u === "new" && T && D.push({
74
+ id: "cancel",
75
+ label: b.cancel,
76
+ variant: "ghost",
77
+ surface: "menu",
78
+ icon: r,
79
+ destructive: !0
79
80
  }), u === "waiting_to_be_paid" && p && m && E && D.push({
80
81
  id: "cancelScheduledPayment",
81
82
  label: b.cancelScheduledPayment,
82
83
  variant: "ghost",
83
84
  surface: "menu",
84
- icon: i
85
+ icon: i,
86
+ destructive: !0
85
87
  }), D;
86
88
  }
87
89
  export { l as canOverrideApprovalPolicy, c as canReadCounterpartBankAccounts, u as getBillDetailActions };
@@ -1,10 +1,11 @@
1
1
  import "./index2.js";
2
2
  import "./index3.js";
3
3
  import "./index4.js";
4
+ import "./index5.js";
4
5
  import "./index6.js";
5
6
  import "./index7.js";
6
7
  import "./index8.js";
7
- import "./index9.js";
8
+ import "./index10.js";
8
9
  import "./index11.js";
9
10
  import "./index12.js";
10
11
  import "./index13.js";
@@ -17,34 +18,33 @@ import "./index19.js";
17
18
  import "./index20.js";
18
19
  import "./index21.js";
19
20
  import "./index22.js";
20
- import "./index23.js";
21
- import { VendorSearchCombobox as e } from "./index24.js";
21
+ import { VendorSearchCombobox as e } from "./index23.js";
22
+ import "./index24.js";
22
23
  import "./index25.js";
23
24
  import "./index26.js";
24
25
  import "./index27.js";
25
26
  import "./index28.js";
26
- import "./index29.js";
27
- import { BillDialogScreen as t } from "./index31.js";
28
- import "./index32.js";
29
- import { BILL_DETAILS_SHEET_LABELS_EN as n } from "./index33.js";
30
- import { BillDetailsSheet as r } from "./index34.js";
27
+ import { BillDialogScreen as t } from "./index30.js";
28
+ import "./index31.js";
29
+ import { BILL_DETAILS_SHEET_LABELS_EN as n, mergeBillDetailsSheetLabels as r } from "./index32.js";
30
+ import { BillDetailsSheet as i } from "./index33.js";
31
+ import "./index34.js";
31
32
  import "./index35.js";
32
- import "./index36.js";
33
- import { BillDuplicateNotice as i } from "./index37.js";
34
- import "./index38.js";
35
- import { BILL_REJECTED_BANNER_LABELS_EN as a } from "./index39.js";
36
- import { BillRejectedBanner as o } from "./index40.js";
37
- import "./index41.js";
38
- import { DISCARD_CHANGES_DIALOG_LABELS_EN as s } from "./index42.js";
39
- import { DiscardChangesDialog as c } from "./index43.js";
33
+ import { BillDuplicateNotice as a } from "./index36.js";
34
+ import "./index37.js";
35
+ import { BILL_REJECTED_BANNER_LABELS_EN as o } from "./index38.js";
36
+ import { BillRejectedBanner as s } from "./index39.js";
37
+ import "./index40.js";
38
+ import { DISCARD_CHANGES_DIALOG_LABELS_EN as c } from "./index41.js";
39
+ import { DiscardChangesDialog as l } from "./index42.js";
40
+ import "./index43.js";
40
41
  import "./index44.js";
41
- import "./index45.js";
42
- import { ExtractionNotice as l } from "./index46.js";
42
+ import { ExtractionNotice as u } from "./index45.js";
43
+ import "./index46.js";
43
44
  import "./index47.js";
44
- import "./index48.js";
45
- import { SourceDocumentPanel as u } from "./index49.js";
46
- import "./index50.js";
47
- import { UNSAVED_BILL_DIALOG_LABELS_EN as d } from "./index51.js";
48
- import { UnsavedBillDialog as f } from "./index52.js";
49
- import "./index53.js";
50
- export { n as BILL_DETAILS_SHEET_LABELS_EN, a as BILL_REJECTED_BANNER_LABELS_EN, r as BillDetailsSheet, t as BillDialogScreen, i as BillDuplicateNotice, o as BillRejectedBanner, s as DISCARD_CHANGES_DIALOG_LABELS_EN, c as DiscardChangesDialog, l as ExtractionNotice, u as SourceDocumentPanel, d as UNSAVED_BILL_DIALOG_LABELS_EN, f as UnsavedBillDialog, e as VendorSearchCombobox };
45
+ import { SourceDocumentPanel as d } from "./index48.js";
46
+ import "./index49.js";
47
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as f } from "./index50.js";
48
+ import { UnsavedBillDialog as p } from "./index51.js";
49
+ import "./index52.js";
50
+ export { n as BILL_DETAILS_SHEET_LABELS_EN, o as BILL_REJECTED_BANNER_LABELS_EN, i as BillDetailsSheet, t as BillDialogScreen, a as BillDuplicateNotice, s as BillRejectedBanner, c as DISCARD_CHANGES_DIALOG_LABELS_EN, l as DiscardChangesDialog, u as ExtractionNotice, d as SourceDocumentPanel, f as UNSAVED_BILL_DIALOG_LABELS_EN, p as UnsavedBillDialog, e as VendorSearchCombobox, r as mergeBillDetailsSheetLabels };