@tesouro/embedded-components-react 0.11.253 → 0.11.254

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
@@ -20,24 +20,24 @@ import "../../../ui/dist/index.js";
20
20
  import { hasUnpaidBalance as oe } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
21
21
  import { usePayableAchInstructions as se } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
22
22
  import "../../../../shared/counterpart-management/feature/dist/index.js";
23
- import { formatGlCodeLabel as ce, resolveGlCodeAvailability as le } from "./index16.js";
24
- import { BillDialogScreen as ue } from "../../ui/dist/index31.js";
25
- import { BillDuplicateNotice as de } from "../../ui/dist/index37.js";
26
- import { BillRejectedBanner as fe } from "../../ui/dist/index40.js";
27
- import { DiscardChangesDialog as pe } from "../../ui/dist/index43.js";
28
- import { ExtractionNotice as me } from "../../ui/dist/index46.js";
29
- import { UnsavedBillDialog as he } from "../../ui/dist/index52.js";
23
+ import { BillDialogScreen as ce } from "../../ui/dist/index30.js";
24
+ import { BillDuplicateNotice as le } from "../../ui/dist/index36.js";
25
+ import { BillRejectedBanner as ue } from "../../ui/dist/index39.js";
26
+ import { DiscardChangesDialog as de } from "../../ui/dist/index42.js";
27
+ import { ExtractionNotice as fe } from "../../ui/dist/index45.js";
28
+ import { UnsavedBillDialog as pe } from "../../ui/dist/index51.js";
30
29
  import "../../ui/dist/index.js";
31
- import { BILL_CREATE_MESSAGE_LABELS_EN as ge, mergeBillDialogCopy as _e } from "./index31.js";
32
- import { useAllPayableLineItemsQuery as ve } from "../../data-access/dist/index6.js";
33
- import { usePayableQuery as ye } from "../../data-access/dist/index24.js";
30
+ import { BILL_CREATE_MESSAGE_LABELS_EN as me, mergeBillDialogCopy as he } from "./index31.js";
31
+ import { useAllPayableLineItemsQuery as ge } from "../../data-access/dist/index6.js";
32
+ import { usePayableQuery as _e } from "../../data-access/dist/index24.js";
34
33
  import "../../data-access/dist/index.js";
35
- import { useBillCreateController as be } from "./index40.js";
36
- import { useBillForm as xe } from "./index42.js";
37
- import { buildPaymentHistory as Se } from "./index2.js";
38
- import { usePayableDuplicateReview as Ce } from "./index4.js";
39
- import { canOverrideApprovalPolicy as we, canReadCounterpartBankAccounts as Te } from "./index5.js";
40
- import { useApprovalPolicyCardView as Ee } from "./index15.js";
34
+ import { useBillCreateController as ve } from "./index40.js";
35
+ import { useBillForm as ye } from "./index42.js";
36
+ import { buildPaymentHistory as be } from "./index2.js";
37
+ import { usePayableDuplicateReview as xe } from "./index4.js";
38
+ import { canOverrideApprovalPolicy as Se, canReadCounterpartBankAccounts as Ce } from "./index5.js";
39
+ import { useApprovalPolicyCardView as we } from "./index15.js";
40
+ import { formatGlCodeLabel as Te, resolveGlCodeAvailability as Ee } from "./index16.js";
41
41
  import { resolveApprovalNotices as De } from "./index17.js";
42
42
  import { resolvePaymentInstructionsGestures as Oe } from "./index18.js";
43
43
  import { useBillRejectionNotice as ke } from "./index20.js";
@@ -55,233 +55,225 @@ import { usePayToSave as Be } from "./index36.js";
55
55
  import { billDialogTestIds as i } from "./index43.js";
56
56
  import { useCallback as a, useEffect as Ve, useMemo as o, useRef as He, useState as s } from "react";
57
57
  import { Fragment as Ue, jsx as c, jsxs as We } from "react/jsx-runtime";
58
- import { Trash2Icon as Ge } from "lucide-react";
59
58
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js
60
- function Ke({ open: Ke, onOpenChange: l, payableId: qe, initialCounterpartId: Je, readOnly: u = !1, copy: d, onCollapse: Ye, onEdit: Xe, onOpenBill: f, renderPaymentFlows: Ze }) {
61
- let p = o(() => _e(d), [d]), m = d?.messages, h = o(() => ({
62
- ...ge,
63
- ...m
64
- }), [m]), Qe = qe ? void 0 : Je, [g, $e] = s(Qe), [_, et] = s(!!Qe), [tt, nt] = s(!1), [v, y] = s(!1), [rt, b] = s(), x = a((e) => {
59
+ function Ge({ open: Ge, onOpenChange: l, payableId: u, initialCounterpartId: Ke, readOnly: d = !1, copy: f, onCollapse: qe, onEdit: Je, onOpenBill: p, renderPaymentFlows: Ye }) {
60
+ let m = o(() => he(f), [f]), h = f?.messages, g = o(() => ({
61
+ ...me,
62
+ ...h
63
+ }), [h]), Xe = u ? void 0 : Ke, [Ze, Qe] = s(Xe), [_, $e] = s(!!Xe), [et, tt] = s(!1), [v, y] = s(!1), [nt, b] = s(), x = a((e) => {
65
64
  b(() => e);
66
- }, []), [it, at] = s(), S = qe ?? it, C = ye(S, {
65
+ }, []), [rt, it] = s(), S = u ?? rt, C = _e(S, {
67
66
  pollWhileOcrProcessing: !0,
68
67
  pollWhilePolicyAssignmentUnsettled: !0
69
- }), w = ve(S), { initResponse: T } = te(), ot = !!T, st = t(T?.scopes, [n.AccountingConfigReadOrg]), E = ee({ enabled: st }), D = C.data, O = !S || !!D, k = !u && O && !!S && D?.status !== "draft", ct = !u && !!D && !ie(D?.status), A = u || ct, j = xe({
68
+ }), w = ge(S), { initResponse: T } = te(), at = !!T, ot = t(T?.scopes, [n.AccountingConfigReadOrg]), E = ee({ enabled: ot }), D = C.data, O = !S || !!D, k = !d && O && !!S && D?.status !== "draft", st = !d && !!D && !ie(D?.status), A = d || st, j = ye({
70
69
  payable: D,
71
70
  lineItems: w.lineItems,
72
- labels: h
71
+ labels: g
73
72
  }), M = D?.counterpart_id ?? void 0;
74
73
  Ve(() => {
75
- _ || M && ($e(M), et(!0));
74
+ _ || M && (Qe(M), $e(!0));
76
75
  }, [_, M]);
77
- let lt = a((e) => {
78
- et(!0), $e(e);
76
+ let ct = a((e) => {
77
+ $e(!0), Qe(e);
79
78
  }, []), N = Pe({
80
79
  payableId: S,
81
80
  scheduledPaymentDate: D?.scheduled_payment_date,
82
- enabled: u || k
83
- }), P = Ne({
81
+ enabled: d || k
82
+ }), lt = Ne({
84
83
  hasScheduledPayment: N.hasScheduledPayment,
85
84
  scheduledDate: N.scheduledDate,
86
- labels: p.scheduledRelativeDay
87
- }), F = Te(T?.scopes), ut = t(T?.scopes, [n.PayableWriteOrg]), I = t(T?.scopes, [n.CounterpartWriteOrg]) && ut, L = I && oe(D?.status) && !N.hasScheduledPayment && !N.isResolving, dt = L && F, ft = L || I && D?.status === "rejected", pt = !u && O && (!S || D?.status === "draft") && !N.hasScheduledPayment && !N.isResolving, R = ze({
85
+ labels: m.scheduledRelativeDay
86
+ }), P = Ce(T?.scopes), ut = t(T?.scopes, [n.PayableWriteOrg]), F = t(T?.scopes, [n.CounterpartWriteOrg]) && ut, I = F && oe(D?.status) && !N.hasScheduledPayment && !N.isResolving, dt = I && P, ft = I || F && D?.status === "rejected", pt = !d && O && (!S || D?.status === "draft") && !N.hasScheduledPayment && !N.isResolving, L = ze({
88
87
  payableId: S,
89
- counterpartId: u ? M : g,
88
+ counterpartId: d ? M : Ze,
90
89
  payableCounterpartId: M,
91
- isVendorKnown: u ? !!D : O,
92
- onCounterpartChange: lt,
90
+ isVendorKnown: d ? !!D : O,
91
+ onCounterpartChange: ct,
93
92
  requiredError: j.errors?.vendor,
94
93
  payableCounterpartBankAccountId: D?.counterpart_bank_account_id ?? void 0,
95
94
  extractedVendor: D?.counterpart_raw_data ?? void 0,
96
- readOnly: u,
97
- canEditVendor: !u || dt,
98
- canEditPaymentInstructions: !u || L,
99
- canAddPaymentInstructions: !u || ft,
95
+ readOnly: d,
96
+ canEditVendor: !d || dt,
97
+ canEditPaymentInstructions: !d || I,
98
+ canAddPaymentInstructions: !d || ft,
100
99
  confirmDiscard: x,
101
- labels: d?.vendorSection
102
- }), mt = R.activePayToOperation === "missingInstructions" ? pt || ft : R.activePayToOperation === "existingInstructions" ? pt || L : R.activePayToOperation === "vendor" && u ? dt : !1, ht = !!(S && _) && !g, z = C.refetch, gt = a(async () => {
103
- let { data: e } = await z();
100
+ labels: f?.vendorSection
101
+ }), mt = L.activePayToOperation === "missingInstructions" ? pt || ft : L.activePayToOperation === "existingInstructions" ? pt || I : L.activePayToOperation === "vendor" && d ? dt : !1, ht = !!(S && _) && !Ze, R = C.refetch, gt = a(async () => {
102
+ let { data: e } = await R();
104
103
  return e?.status ?? void 0;
105
- }, [z]), { vendorWithInlineSave: B, isSavingPayToEdits: _t } = Be({
106
- vendor: R,
104
+ }, [R]), { vendorWithInlineSave: z, isSavingPayToEdits: _t } = Be({
105
+ vendor: L,
107
106
  payableId: S,
108
107
  linkedCounterpartId: D?.counterpart_id,
109
108
  linkedBankAccountId: D?.counterpart_bank_account_id,
110
109
  canSavePayToEdits: mt,
111
- readOnly: u,
112
- refreshPayable: z,
113
- labels: p.detail
110
+ readOnly: d,
111
+ refreshPayable: R,
112
+ labels: m.detail
114
113
  }), vt = o(() => k ? {
115
- ...m,
116
- draftSaved: h.submittedSaved
117
- } : m, [
114
+ ...h,
115
+ draftSaved: g.submittedSaved
116
+ } : h, [
118
117
  k,
119
- m,
120
- h.submittedSaved
121
- ]), V = be({
122
- payableId: qe,
118
+ h,
119
+ g.submittedSaved
120
+ ]), B = ve({
121
+ payableId: u,
123
122
  form: j,
124
123
  labels: vt,
125
- counterpartId: g,
126
- isVendorPending: R.mode === "creating" || R.isPendingVendor,
127
- onVendorIncomplete: R.revealIncompleteVendor,
124
+ counterpartId: Ze,
125
+ isVendorPending: L.mode === "creating" || L.isPendingVendor,
126
+ onVendorIncomplete: L.revealIncompleteVendor,
128
127
  clearCounterpart: ht,
129
- prepareVendorForSave: R.prepareVendorForSave,
130
- onPayableCreated: at,
131
- onSaved: at,
128
+ prepareVendorForSave: L.prepareVendorForSave,
129
+ onPayableCreated: it,
130
+ onSaved: it,
132
131
  onDraftSaved: () => l(!1),
133
132
  onFinalized: () => l(!1),
134
133
  readSavedStatus: k ? gt : void 0
135
- }), yt = !!(V.isSavingDraft || V.isFinalizing || R.isVendorSavePending), H = u ? S : void 0, U = Ae({
136
- payableId: H,
134
+ }), yt = !!(B.isSavingDraft || B.isFinalizing || L.isVendorSavePending), V = d ? S : void 0, H = Ae({
135
+ payableId: V,
137
136
  status: D?.status
138
- }), W = He(null), [bt, xt] = s(!1), St = ae(D), G = se({
139
- counterpartId: u ? M : void 0,
137
+ }), U = He(null), [bt, xt] = s(!1), St = ae(D), W = se({
138
+ counterpartId: d ? M : void 0,
140
139
  currency: D?.currency,
141
- currentBankAccountId: u ? D?.counterpart_bank_account_id ?? void 0 : void 0,
142
- enabled: F && u
143
- }), K = Ee({
144
- payableId: H,
140
+ currentBankAccountId: d ? D?.counterpart_bank_account_id ?? void 0 : void 0,
141
+ enabled: P && d
142
+ }), G = we({
143
+ payableId: V,
145
144
  approvalPolicyId: D?.approval_policy_id,
146
145
  status: D?.status,
147
146
  updatedAt: D?.updated_at,
148
147
  payableFetchedAt: C.dataUpdatedAt,
149
- enabled: u,
150
- copy: p.approvalPolicyCopy
151
- }), Ct = we({
148
+ enabled: d,
149
+ copy: m.approvalPolicyCopy
150
+ }), Ct = Se({
152
151
  status: D?.status,
153
152
  scopes: T?.scopes,
154
- arePendingApproversUnknown: K.isLoading,
153
+ arePendingApproversUnknown: G.isLoading,
155
154
  hasApprovalPolicy: !!D?.approval_policy_id,
156
- hasWaitingRequest: U.hasWaitingRequest
155
+ hasWaitingRequest: H.hasWaitingRequest
157
156
  }), wt = De({
158
- isCapabilityUnknown: U.isLoading || K.isLoading,
159
- canApproveNow: !!U.id,
157
+ isCapabilityUnknown: H.isLoading || G.isLoading,
158
+ canApproveNow: !!H.id,
160
159
  canOverridePolicy: Ct,
161
160
  status: D?.status,
162
161
  hasApprovalPolicy: !!D?.approval_policy_id,
163
- pendingApproverNames: K.pendingApprovers.flatMap((e) => e.names),
164
- labels: p
165
- }), Tt = u || k ? S : void 0, Et = u ? Xe : void 0, q = a((e) => {
162
+ pendingApproverNames: G.pendingApprovers.flatMap((e) => e.names),
163
+ labels: m
164
+ }), Tt = d || k ? S : void 0, Et = d ? Je : void 0, K = a((e) => {
166
165
  let t = () => {
167
- R.discardPayToEdits(), e?.();
166
+ L.discardPayToEdits(), e?.();
168
167
  };
169
- R.hasUnsavedVendorChanges ? x(t) : t();
170
- }, [x, R]), { actions: Dt, decisionDialog: Ot, isActionPending: kt } = Me({
168
+ L.hasUnsavedVendorChanges ? x(t) : t();
169
+ }, [x, L]), { actions: q, decisionDialog: Dt, isActionPending: Ot } = Me({
171
170
  payableId: Tt,
172
171
  status: D?.status,
173
- currentApprovalRequestId: U.id,
174
- arePendingApproversUnknown: K.isLoading,
172
+ currentApprovalRequestId: H.id,
173
+ arePendingApproversUnknown: G.isLoading,
175
174
  hasScheduledPayment: N.hasScheduledPayment,
176
175
  scheduledPaymentIntentId: N.scheduledPaymentIntentId,
177
176
  isScheduledPaymentUnknown: N.isResolving,
178
- isPayabilityUnknown: G.isLoading,
177
+ isPayabilityUnknown: W.isLoading,
179
178
  hasApprovalPolicy: !!D?.approval_policy_id,
180
- hasWaitingRequest: U.hasWaitingRequest,
181
- pendingApprovers: K.pendingApprovers,
182
- labels: p.actions,
179
+ hasWaitingRequest: H.hasWaitingRequest,
180
+ pendingApprovers: G.pendingApprovers,
181
+ labels: m.actions,
183
182
  isMarkAsPaidPending: bt,
184
- onMarkAsPaidSelect: () => W.current?.openMarkAsPaid(),
185
- onPayBillSelect: () => q(() => W.current?.openPayBill()),
183
+ onMarkAsPaidSelect: () => U.current?.openMarkAsPaid(),
184
+ onPayBillSelect: () => K(() => U.current?.openPayBill()),
186
185
  onEditSelect: Et,
187
186
  onActionSucceeded: (e) => {
188
187
  e === "reopen" ? Et?.() : k && l(!1);
189
188
  }
190
- }), At = Fe({
189
+ }), kt = Fe({
191
190
  payableId: S,
192
191
  status: D?.status,
193
- enabled: !u,
194
- labels: p.deleteDraft,
192
+ enabled: !d,
193
+ labels: m.deleteDraft,
195
194
  onDeleted: () => l(!1)
196
- }), jt = yt || kt, Mt = D?.ocr_status === "processing", Nt = C.isLoading || w.isResolving || Mt, Pt = C.isLoading || w.isResolving || E.isResolving || G.isLoading, Ft = C.isError || w.isError || E.isError, It = o(() => [...At.menuItems, ...k || u && !Pt && !Ft ? Dt.menu.map((e) => ({
197
- id: e.id,
198
- label: e.label,
199
- onSelect: e.onSelect,
200
- disabled: e.disabled,
201
- icon: e.icon,
202
- sectionHeading: e.sectionHeading
203
- })) : []], [
204
- Dt.menu,
205
- At.menuItems,
195
+ }), At = yt || Ot, jt = D?.ocr_status === "processing", Mt = C.isLoading || w.isResolving || jt, Nt = C.isLoading || w.isResolving || E.isResolving || W.isLoading, Pt = C.isError || w.isError || E.isError, Ft = o(() => [...kt.menuItems, ...k || d && !Nt && !Pt ? q.menu : []], [
196
+ q.menu,
197
+ kt.menuItems,
206
198
  k,
207
- u,
208
- Pt,
209
- Ft
199
+ d,
200
+ Nt,
201
+ Pt
210
202
  ]), J = o(() => (E.data?.data ?? []).map((e) => ({
211
203
  value: e.id,
212
- label: ce(e)
213
- })), [E.data]), { unavailableMessage: Lt, disabled: Rt, rosterAvailable: zt } = le({
214
- isInitResolved: ot,
215
- canReadGlCodes: st,
204
+ label: Te(e)
205
+ })), [E.data]), { unavailableMessage: It, disabled: Lt, rosterAvailable: Rt } = Ee({
206
+ isInitResolved: at,
207
+ canReadGlCodes: ot,
216
208
  isResolving: E.isResolving,
217
209
  isError: E.isError,
218
210
  optionCount: J.length,
219
- labels: p.lineItemsGlCodeUnavailable
220
- }), Bt = D?.status === "rejected" || !u && k, Vt = t(T?.scopes, [n.ApprovalRequestReadOrg]), Ht = Bt && Vt, Ut = t(T?.scopes, [n.UserReadOrg]), { userNames: Wt, isError: Gt, isResolving: Kt } = ne({ enabled: (u || Bt) && Ut }), { historyQuery: Y, rows: qt, namesError: Jt } = je({
221
- payableId: H,
222
- userNames: Wt,
223
- isRosterError: Ut && Gt,
224
- labels: p.history
211
+ labels: m.lineItemsGlCodeUnavailable
212
+ }), zt = D?.status === "rejected" || !d && k, Bt = t(T?.scopes, [n.ApprovalRequestReadOrg]), Vt = zt && Bt, Ht = t(T?.scopes, [n.UserReadOrg]), { userNames: Ut, isError: Wt, isResolving: Gt } = ne({ enabled: (d || zt) && Ht }), { historyQuery: Y, rows: Kt, namesError: qt } = je({
213
+ payableId: V,
214
+ userNames: Ut,
215
+ isRosterError: Ht && Wt,
216
+ labels: m.history
225
217
  }), X = ke({
226
218
  payableId: S,
227
219
  payableStatus: D?.status,
228
220
  payableUpdatedAt: D?.updated_at,
229
- enabled: Ht,
230
- userNames: Wt,
231
- labels: p.detail
232
- }), Yt = o(() => Se({
221
+ enabled: Vt,
222
+ userNames: Ut,
223
+ labels: m.detail
224
+ }), Jt = o(() => be({
233
225
  records: N.paymentRecords,
234
226
  events: Y.data?.data ?? [],
235
227
  currencyCode: D?.currency,
236
- labels: p.detail
228
+ labels: m.detail
237
229
  }), [
238
230
  N.paymentRecords,
239
231
  Y.data,
240
232
  D?.currency,
241
- p.detail
242
- ]), Xt = re(), Zt = o(() => {
243
- if (!u || !D) return;
233
+ m.detail
234
+ ]), Yt = re(), Xt = o(() => {
235
+ if (!d || !D) return;
244
236
  let e = Ie({
245
237
  payable: D,
246
238
  lineItems: w.lineItems,
247
239
  glCodeOptions: J,
248
- glCodeRosterAvailable: zt,
249
- history: qt,
250
- paymentHistory: Yt,
251
- approvalPolicy: K.view,
252
- labels: p.detail,
253
- dueDateLabels: p.dueDate,
254
- today: Xt,
240
+ glCodeRosterAvailable: Rt,
241
+ history: Kt,
242
+ paymentHistory: Jt,
243
+ approvalPolicy: G.view,
244
+ labels: m.detail,
245
+ dueDateLabels: m.dueDate,
246
+ today: Yt,
255
247
  hasScheduledPayment: N.hasScheduledPayment,
256
248
  rejection: X,
257
- payableAchInstructions: G.achInstructions,
258
- payableAchInstructionsReadable: F && !G.isError
249
+ payableAchInstructions: W.achInstructions,
250
+ payableAchInstructionsReadable: P && !W.isError
259
251
  });
260
- return R.mode === "resolved" && R.summary ? {
252
+ return L.mode === "resolved" && L.summary ? {
261
253
  ...e,
262
- payTo: R.summary
254
+ payTo: L.summary
263
255
  } : e;
264
256
  }, [
265
257
  N.hasScheduledPayment,
266
- K.view,
267
- Xt,
268
- F,
269
- p.detail,
270
- p.dueDate,
258
+ G.view,
259
+ Yt,
260
+ P,
261
+ m.detail,
262
+ m.dueDate,
271
263
  J,
272
- zt,
273
- qt,
264
+ Rt,
265
+ Kt,
274
266
  w.lineItems,
275
267
  D,
276
- G.achInstructions,
277
- G.isError,
278
- Yt,
279
- u,
268
+ W.achInstructions,
269
+ W.isError,
270
+ Jt,
271
+ d,
280
272
  X,
281
- R.mode,
282
- R.summary
283
- ]), Qt = D?.source_of_payable_data === "ocr", Z = St?.name, $t = u ? Z ? p.viewTitle(Z) : p.readOnlyTitle : Z && (Qt || k) ? p.extractedTitle(Z) : p.newTitle, en = u && D?.created_at ? p.addedOn(e(D.created_at.slice(0, 10))) : void 0, Q = j.isDirty || R.hasUnsavedVendorChanges || !!V.stagedFile || V.isFileDeletionPending, tn = a(() => {
284
- if (u && R.isEditingPayTo) q(() => l(!1));
273
+ L.mode,
274
+ L.summary
275
+ ]), Zt = D?.source_of_payable_data === "ocr", Z = St?.name, Qt = d ? Z ? m.viewTitle(Z) : m.readOnlyTitle : Z && (Zt || k) ? m.extractedTitle(Z) : m.newTitle, $t = d && D?.created_at ? m.addedOn(e(D.created_at.slice(0, 10))) : void 0, Q = j.isDirty || L.hasUnsavedVendorChanges || !!B.stagedFile || B.isFileDeletionPending, en = a(() => {
276
+ if (d && L.isEditingPayTo) K(() => l(!1));
285
277
  else switch (Le({
286
278
  isUnsavedPromptOpen: v,
287
279
  isLocked: A,
@@ -299,56 +291,56 @@ function Ke({ open: Ke, onOpenChange: l, payableId: qe, initialCounterpartId: Je
299
291
  Q,
300
292
  A,
301
293
  v,
302
- q,
294
+ K,
303
295
  l,
304
- u,
305
- R.isEditingPayTo
306
- ]), nn = a((e, t) => {
307
- if (!f) return;
308
- let n = () => f(e, t);
309
- u && R.isEditingPayTo ? q(n) : !A && Q ? x(n) : n();
296
+ d,
297
+ L.isEditingPayTo
298
+ ]), tn = a((e, t) => {
299
+ if (!p) return;
300
+ let n = () => p(e, t);
301
+ d && L.isEditingPayTo ? K(n) : !A && Q ? x(n) : n();
310
302
  }, [
311
303
  x,
312
304
  Q,
313
305
  A,
314
- q,
315
- f,
316
- u,
317
- R.isEditingPayTo
318
- ]), rn = a(() => {
319
- R.isEditingPayTo ? q(Ye) : Ye?.();
306
+ K,
307
+ p,
308
+ d,
309
+ L.isEditingPayTo
310
+ ]), nn = a(() => {
311
+ L.isEditingPayTo ? K(qe) : qe?.();
320
312
  }, [
321
- q,
322
- Ye,
323
- R.isEditingPayTo
324
- ]), an = a(() => {
313
+ K,
314
+ qe,
315
+ L.isEditingPayTo
316
+ ]), rn = a(() => {
325
317
  y(!1), l(!1);
326
- }, [l]), on = Nt || R.mode === "creating", sn = a(async () => {
327
- if (on) return;
328
- let e = await V.saveDraft();
318
+ }, [l]), an = Mt || L.mode === "creating", on = a(async () => {
319
+ if (an) return;
320
+ let e = await B.saveDraft();
329
321
  y(!1), e && l(!1);
330
322
  }, [
331
- V,
332
- on,
323
+ B,
324
+ an,
333
325
  l
334
- ]), $ = Ce({
326
+ ]), $ = xe({
335
327
  payable: D,
336
- onOpenPayable: f ? nn : void 0,
328
+ onOpenPayable: p ? tn : void 0,
337
329
  onRemoved: () => l(!1),
338
330
  canManage: ut
339
- }), cn = a((e) => {
340
- if (!(jt || $.isBusy)) return e ? l(!0) : tn();
331
+ }), sn = a((e) => {
332
+ if (!(At || $.isBusy)) return e ? l(!0) : en();
341
333
  }, [
342
334
  $.isBusy,
343
- jt,
344
- tn,
335
+ At,
336
+ en,
345
337
  l
346
- ]), ln = $.isPossibleDuplicate, un = !u && Qt && !tt, dn = !u && !!X, fn = dn || ln || un ? /* @__PURE__ */ We(Ue, { children: [
347
- dn && X ? /* @__PURE__ */ c(fe, {
338
+ ]), cn = $.isPossibleDuplicate, ln = !d && Zt && !et, un = !d && !!X, dn = un || cn || ln ? /* @__PURE__ */ We(Ue, { children: [
339
+ un && X ? /* @__PURE__ */ c(ue, {
348
340
  ...X,
349
- labels: p.rejectedBanner
341
+ labels: m.rejectedBanner
350
342
  }) : null,
351
- ln ? /* @__PURE__ */ c(de, {
343
+ cn ? /* @__PURE__ */ c(le, {
352
344
  title: $.title,
353
345
  meta: $.meta,
354
346
  onNotADuplicate: $.onNotADuplicate,
@@ -361,20 +353,20 @@ function Ke({ open: Ke, onOpenChange: l, payableId: qe, initialCounterpartId: Je
361
353
  labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
362
354
  testId: i.duplicateNotice
363
355
  }) : null,
364
- un ? /* @__PURE__ */ c(me, {
365
- onDismiss: () => nt(!0),
366
- labels: d?.extractionNotice
356
+ ln ? /* @__PURE__ */ c(fe, {
357
+ onDismiss: () => tt(!0),
358
+ labels: f?.extractionNotice
367
359
  }) : null
368
360
  ] }) : void 0;
369
361
  return /* @__PURE__ */ We(Ue, { children: [
370
- /* @__PURE__ */ c(ue, {
371
- open: Ke,
372
- onOpenChange: cn,
373
- title: $t,
374
- subtitle: en,
375
- notice: fn,
362
+ /* @__PURE__ */ c(ce, {
363
+ open: Ge,
364
+ onOpenChange: sn,
365
+ title: Qt,
366
+ subtitle: $t,
367
+ notice: dn,
376
368
  vendor: {
377
- ...B,
369
+ ...z,
378
370
  testId: i.vendorSection
379
371
  },
380
372
  values: j.values,
@@ -383,8 +375,8 @@ function Ke({ open: Ke, onOpenChange: l, payableId: qe, initialCounterpartId: Je
383
375
  lineItems: {
384
376
  items: j.lineItemRows,
385
377
  glCodeOptions: J,
386
- glCodeDisabled: Rt,
387
- glCodeUnavailableMessage: Lt,
378
+ glCodeDisabled: Lt,
379
+ glCodeUnavailableMessage: It,
388
380
  discount: j.discount,
389
381
  onDiscountChange: j.onDiscountChange,
390
382
  onDiscountBlur: j.onDiscountBlur,
@@ -410,90 +402,89 @@ function Ke({ open: Ke, onOpenChange: l, payableId: qe, initialCounterpartId: Je
410
402
  mimetype: D.file.mimetype
411
403
  } : void 0,
412
404
  staging: {
413
- stagedFile: V.stagedFile,
414
- onFileStaged: V.stageFile,
415
- onClearStagedFile: V.clearStagedFile,
405
+ stagedFile: B.stagedFile,
406
+ onFileStaged: B.stageFile,
407
+ onClearStagedFile: B.clearStagedFile,
416
408
  isSaving: yt
417
409
  },
418
410
  deletion: {
419
- isPending: V.isFileDeletionPending,
420
- onRequest: V.requestFileDeletion,
421
- onDetachNow: V.detachFileNow,
422
- isDeleting: V.isDeletingFile,
423
- hasFailed: V.hasFileDeletionFailed
411
+ isPending: B.isFileDeletionPending,
412
+ onRequest: B.requestFileDeletion,
413
+ onDetachNow: B.detachFileNow,
414
+ isDeleting: B.isDeletingFile,
415
+ hasFailed: B.hasFileDeletionFailed
424
416
  },
425
- labels: d?.sourceDocument
417
+ labels: f?.sourceDocument
426
418
  }),
427
- menuItems: It,
419
+ menuItems: Ft,
428
420
  readOnly: A,
429
- detail: u ? {
430
- view: Zt,
431
- actions: Dt,
432
- scheduledSummary: P ? p.scheduledSummary(P.label) : void 0,
433
- scheduledSummaryDate: P?.absoluteLabel,
434
- scheduledStatusLabel: P ? p.scheduledStatusBadge(P.label) : void 0,
421
+ detail: d ? {
422
+ view: Xt,
423
+ actions: q,
424
+ statusDetail: lt ? m.scheduledSummary(lt.label) : void 0,
425
+ statusDetailDate: lt?.absoluteLabel,
435
426
  ...wt,
436
427
  payTo: {
437
- onEdit: B.mode === "resolved" ? B.onEdit : void 0,
438
- paymentInstructions: D?.status === "paid" || D?.status === "canceled" ? void 0 : Oe(B.paymentInstructionsEditor, !!Zt?.payTo.hasPaymentInstructions),
439
- detailsWarning: B.detailsWarning,
440
- editForm: B.mode === "creating" ? B.newVendorForm : void 0
428
+ onEdit: z.mode === "resolved" ? z.onEdit : void 0,
429
+ paymentInstructions: D?.status === "paid" || D?.status === "canceled" ? void 0 : Oe(z.paymentInstructionsEditor, !!Xt?.payTo.hasPaymentInstructions),
430
+ detailsWarning: z.detailsWarning,
431
+ editForm: z.mode === "creating" ? z.newVendorForm : void 0
441
432
  },
442
- isLoading: Pt,
443
- isError: Ft,
433
+ isLoading: Nt,
434
+ isError: Pt,
444
435
  paymentHistoryError: N.isError || Y.isError,
445
436
  paymentHistoryLoading: N.isResolving || Y.isLoading,
446
437
  historyError: Y.isError,
447
- historyLoading: Y.isLoading || Kt,
448
- historyNamesError: Jt
438
+ historyLoading: Y.isLoading || Gt,
439
+ historyNamesError: qt
449
440
  } : void 0,
450
- isLineItemsLoading: Nt,
451
- isSaving: jt || _t,
452
- isSavingDraft: V.isSavingDraft,
453
- isSubmitting: V.isFinalizing,
454
- onCancel: tn,
455
- onCollapse: u ? rn : void 0,
456
- onSaveDraft: V.saveDraft,
457
- onFinalize: V.finalize,
458
- scrollToErrorToken: V.scrollToErrorToken,
441
+ isLineItemsLoading: Mt,
442
+ isSaving: At || _t,
443
+ isSavingDraft: B.isSavingDraft,
444
+ isSubmitting: B.isFinalizing,
445
+ onCancel: en,
446
+ onCollapse: d ? nn : void 0,
447
+ onSaveDraft: B.saveDraft,
448
+ onFinalize: B.finalize,
449
+ scrollToErrorToken: B.scrollToErrorToken,
459
450
  showSubmit: !A && O,
460
451
  testId: i.dialog,
461
- labels: d?.screen
452
+ labels: f?.screen
462
453
  }),
463
- /* @__PURE__ */ c(he, {
454
+ /* @__PURE__ */ c(pe, {
464
455
  open: v,
465
- onSaveDraft: sn,
466
- onDiscard: an,
456
+ onSaveDraft: on,
457
+ onDiscard: rn,
467
458
  onCancel: () => y(!1),
468
- isSaving: V.isSavingDraft,
469
- isSaveDraftDisabled: on,
470
- labels: p.unsavedChanges,
459
+ isSaving: B.isSavingDraft,
460
+ isSaveDraftDisabled: an,
461
+ labels: m.unsavedChanges,
471
462
  testId: i.unsavedDialog,
472
463
  saveDraftTestId: i.unsavedSaveDraft,
473
464
  discardTestId: i.unsavedDiscard,
474
465
  closeTestId: i.unsavedClose
475
466
  }),
476
- /* @__PURE__ */ c(pe, {
477
- open: !!rt,
467
+ /* @__PURE__ */ c(de, {
468
+ open: !!nt,
478
469
  onDiscard: () => {
479
- let e = rt;
470
+ let e = nt;
480
471
  b(void 0), e?.();
481
472
  },
482
473
  onKeepEditing: () => b(void 0),
483
- labels: p.discardChanges,
474
+ labels: m.discardChanges,
484
475
  testId: i.discardDialog,
485
476
  discardTestId: i.discardConfirm
486
477
  }),
487
478
  /* @__PURE__ */ c(r, {
488
- ...Ot,
489
- labels: { cancelButton: p.actions.decisionDialog.cancelButton },
479
+ ...Dt,
480
+ labels: { cancelButton: m.actions.decisionDialog.cancelButton },
490
481
  testId: i.decisionDialog,
491
482
  confirmTestId: i.decisionConfirm,
492
483
  reasonTestId: i.decisionReason
493
484
  }),
494
485
  /* @__PURE__ */ c(r, {
495
- ...At.dialog,
496
- labels: { cancelButton: p.actions.decisionDialog.cancelButton },
486
+ ...kt.dialog,
487
+ labels: { cancelButton: m.actions.decisionDialog.cancelButton },
497
488
  testId: i.deleteDraftDialog,
498
489
  confirmTestId: i.deleteDraftConfirm
499
490
  }),
@@ -503,7 +494,6 @@ function Ke({ open: Ke, onOpenChange: l, payableId: qe, initialCounterpartId: Je
503
494
  onConfirm: $.removeConfirmation.onConfirm,
504
495
  onCancel: $.removeConfirmation.onCancel,
505
496
  isPending: $.removeConfirmation.isPending,
506
- confirmIcon: $.isRemoveBillDestructive ? /* @__PURE__ */ c(Ge, {}) : void 0,
507
497
  labels: { cancelButton: $.removeConfirmation.cancelButtonLabel },
508
498
  testId: i.duplicateRemoveDialog,
509
499
  confirmTestId: i.duplicateRemoveConfirm
@@ -516,15 +506,15 @@ function Ke({ open: Ke, onOpenChange: l, payableId: qe, initialCounterpartId: Je
516
506
  isPending: $.keepRowConfirmation.isPending,
517
507
  labels: { cancelButton: $.keepRowConfirmation.cancelButtonLabel }
518
508
  }),
519
- Ze?.({
520
- ref: W,
509
+ Ye?.({
510
+ ref: U,
521
511
  payable: D,
522
- payableId: H,
523
- isPayBillEnabled: u,
512
+ payableId: V,
513
+ isPayBillEnabled: d,
524
514
  hasScheduledPayment: N.hasScheduledPayment,
525
- onMissingAchInstructions: I ? R.openPaymentInstructions : void 0,
515
+ onMissingAchInstructions: F ? L.openPaymentInstructions : void 0,
526
516
  onMarkAsPaidPendingChange: xt
527
517
  })
528
518
  ] });
529
519
  }
530
- export { Ke as BillDialog, Ke as default };
520
+ export { Ge as BillDialog, Ge as default };