@tesouro/embedded-components-react 0.5.8 → 0.5.11

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 (35) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +1 -1
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +4 -78
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +84 -3
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +4 -5
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +5 -4
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +3 -32
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +30 -39
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +37 -166
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +164 -39
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +48 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +1 -50
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +45 -11
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +13 -8
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +8 -14
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -59
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +64 -8
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +8 -24
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +18 -139
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +144 -16
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +24 -4
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +1 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +4 -3
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +26 -4
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +102 -98
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +91 -84
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -1
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +92 -87
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +133 -129
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +3 -3
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +1 -0
  34. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  35. package/package.json +1 -1
@@ -27,26 +27,26 @@ import { UnsavedBillDialog as he } from "../../ui/dist/index106.js";
27
27
  import "../../ui/dist/index.js";
28
28
  import { usePayableDuplicateReview as ge } from "./index13.js";
29
29
  import "./index14.js";
30
- import { canOverrideApprovalPolicy as _e, canReadCounterpartBankAccounts as ve } from "./index19.js";
31
- import { resolveAmountDueMinorUnits as ye } from "./index20.js";
32
- import { usePayableAchInstructions as be } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
30
+ import { isEditablePayableStatus as _e } from "./index19.js";
31
+ import { canOverrideApprovalPolicy as ve, canReadCounterpartBankAccounts as ye } from "./index20.js";
32
+ import { resolveAmountDueMinorUnits as be } from "./index21.js";
33
+ import { usePayableAchInstructions as xe } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
33
34
  import "../../../shared/counterpart-management/feature/dist/index.js";
34
- import { PayBillFlow as xe } from "./index26.js";
35
- import "./index27.js";
36
- import { useMarkAsPaidFlow as Se } from "./index17.js";
35
+ import { PayBillFlow as Se } from "./index27.js";
36
+ import "./index28.js";
37
+ import { useMarkAsPaidFlow as Ce } from "./index17.js";
37
38
  import "./index18.js";
38
- import { BILL_CREATE_MESSAGE_LABELS_EN as Ce, mergeBillCreateScreenCopy as we } from "./index47.js";
39
- import { useBillCreateController as Te } from "./index56.js";
40
- import { useBillForm as Ee } from "./index58.js";
41
- import { buildPaymentHistory as De } from "./index3.js";
42
- import { currentApprovalRound as Oe } from "./index4.js";
43
- import { usePayableApprovalRoundStart as ke } from "./index31.js";
44
- import { useApprovalPolicyCardView as Ae } from "./index32.js";
45
- import { resolveBillRejectionNotice as je } from "./index33.js";
46
- import { useCurrentApprovalRequestId as Me } from "./index34.js";
47
- import { usePayableDetailActions as Ne } from "./index35.js";
48
- import { useScheduledPayment as Pe } from "./index36.js";
49
- import { isEditablePayableStatus as Fe } from "./index37.js";
39
+ import { BILL_CREATE_MESSAGE_LABELS_EN as we, mergeBillCreateScreenCopy as Te } from "./index47.js";
40
+ import { useBillCreateController as Ee } from "./index56.js";
41
+ import { useBillForm as De } from "./index58.js";
42
+ import { buildPaymentHistory as Oe } from "./index3.js";
43
+ import { currentApprovalRound as ke } from "./index4.js";
44
+ import { usePayableApprovalRoundStart as Ae } from "./index32.js";
45
+ import { useApprovalPolicyCardView as je } from "./index33.js";
46
+ import { resolveBillRejectionNotice as Me } from "./index34.js";
47
+ import { useCurrentApprovalRequestId as Ne } from "./index35.js";
48
+ import { usePayableDetailActions as Pe } from "./index36.js";
49
+ import { useScheduledPayment as Fe } from "./index37.js";
50
50
  import { useDraftDelete as Ie } from "./index38.js";
51
51
  import { buildBillDetailView as Le } from "./index42.js";
52
52
  import { resolveEditorDismissal as Re } from "./index43.js";
@@ -59,48 +59,48 @@ import { useCallback as i, useEffect as Ue, useMemo as a, useRef as We, useState
59
59
  import { Fragment as Ge, jsx as s, jsxs as Ke } from "react/jsx-runtime";
60
60
  import { Trash2Icon as qe } from "lucide-react";
61
61
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js
62
- function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye, onCollapse: Xe, poweredByBankName: Ze }) {
63
- let d = a(() => we(Ye), [Ye]), [f, Qe] = o(), [p, $e] = o(!1), [et, tt] = o(!1), [m, h] = o(!1), [nt, rt] = o(), g = Je ?? nt, _ = se(g, { pollWhileOcrProcessing: !0 }), v = oe(g), { initResponse: y } = re(), it = !!y, b = e(y?.scopes, [t.AccountingConfigReadOrg]), x = ee({ enabled: b }), S = _.data, C = !g || !!S, w = !u && C && !!g && S?.status !== "draft", at = !u && !!S && !Fe(S?.status), T = u || at, E = Ee({
62
+ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye, onCollapse: Xe, onEdit: Ze, poweredByBankName: Qe }) {
63
+ let d = a(() => Te(Ye), [Ye]), [f, $e] = o(), [p, et] = o(!1), [tt, nt] = o(!1), [m, h] = o(!1), [rt, it] = o(), g = Je ?? rt, _ = se(g, { pollWhileOcrProcessing: !0 }), v = oe(g), { initResponse: y } = re(), at = !!y, b = e(y?.scopes, [t.AccountingConfigReadOrg]), x = ee({ enabled: b }), S = _.data, C = !g || !!S, w = !u && C && !!g && S?.status !== "draft", ot = !u && !!S && !_e(S?.status), T = u || ot, E = De({
64
64
  payable: S,
65
65
  lineItems: v.lineItems
66
66
  }), D = S?.counterpart_id;
67
67
  Ue(() => {
68
- p || D && (Qe(D), $e(!0));
68
+ p || D && ($e(D), et(!0));
69
69
  }, [p, D]);
70
- let ot = i((e) => {
71
- $e(!0), Qe(e);
70
+ let st = i((e) => {
71
+ et(!0), $e(e);
72
72
  }, []), O = Ve({
73
73
  payableId: u ? void 0 : g,
74
74
  counterpartId: u ? void 0 : f,
75
75
  payableCounterpartId: D,
76
76
  isVendorKnown: !u && C,
77
- onCounterpartChange: ot,
77
+ onCounterpartChange: st,
78
78
  requiredError: E.errors?.vendor,
79
79
  payableCounterpartBankAccountId: S?.counterpart_bank_account_id ?? void 0,
80
80
  extractedVendor: S?.counterpart_raw_data ?? void 0
81
- }), st = !!(g && p) && !f, ct = _.refetch, lt = i(async () => {
82
- let { data: e } = await ct();
81
+ }), ct = !!(g && p) && !f, lt = _.refetch, ut = i(async () => {
82
+ let { data: e } = await lt();
83
83
  return e?.status ?? void 0;
84
- }, [ct]), ut = a(() => w ? { draftSaved: Ce.submittedSaved } : void 0, [w]), k = Te({
84
+ }, [lt]), dt = a(() => w ? { draftSaved: we.submittedSaved } : void 0, [w]), k = Ee({
85
85
  payableId: Je,
86
86
  form: E,
87
- labels: ut,
87
+ labels: dt,
88
88
  counterpartId: f,
89
- clearCounterpart: st,
89
+ clearCounterpart: ct,
90
90
  prepareVendorForSave: O.savePaymentInstructions,
91
- onPayableCreated: rt,
92
- onSaved: rt,
91
+ onPayableCreated: it,
92
+ onSaved: it,
93
93
  onDraftSaved: () => l(!1),
94
94
  onFinalized: () => l(!1),
95
- readSavedStatus: w ? lt : void 0
96
- }), A = !!(k.isSavingDraft || k.isFinalizing), j = u ? g : void 0, M = Me({
95
+ readSavedStatus: w ? ut : void 0
96
+ }), A = !!(k.isSavingDraft || k.isFinalizing), j = u ? g : void 0, M = Ne({
97
97
  payableId: j,
98
98
  status: S?.status
99
- }), dt = We(null), N = Pe({
99
+ }), ft = We(null), N = Fe({
100
100
  payableId: g,
101
101
  scheduledPaymentDate: S?.scheduled_payment_date,
102
102
  enabled: u || w
103
- }), ft = le(S), P = ve(y?.scopes), F = be({
103
+ }), pt = le(S), P = ye(y?.scopes), F = xe({
104
104
  counterpartId: u ? D : void 0,
105
105
  currency: S?.currency,
106
106
  currentBankAccountId: u ? S?.counterpart_bank_account_id ?? void 0 : void 0,
@@ -112,27 +112,27 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
112
112
  canReadCounterpartBankAccounts: P,
113
113
  saveErrorMessage: d.detail.paymentInstructionsSaveError,
114
114
  linkErrorMessage: d.detail.paymentInstructionsLinkError
115
- }), pt = e(y?.scopes, [t.PayableWriteOrg]), L = e(y?.scopes, [t.CounterpartWriteOrg]) && pt, mt = L && ce(S?.status) && !N.hasScheduledPayment && !N.isResolving, R = Se({
115
+ }), mt = e(y?.scopes, [t.PayableWriteOrg]), L = e(y?.scopes, [t.CounterpartWriteOrg]) && mt, ht = L && ce(S?.status) && !N.hasScheduledPayment && !N.isResolving, R = Ce({
116
116
  payableId: j,
117
- amountDueMinorUnits: ye(S) ?? 0,
117
+ amountDueMinorUnits: be(S) ?? 0,
118
118
  amountToPayMinorUnits: S?.amount_to_pay ?? void 0,
119
119
  currencyCode: S?.currency ?? void 0,
120
120
  dueDate: S?.due_date,
121
121
  hasScheduledPayment: N.hasScheduledPayment,
122
122
  labels: d.markAsPaid
123
- }), z = Ae({
123
+ }), z = je({
124
124
  payableId: j,
125
125
  approvalPolicyId: S?.approval_policy_id,
126
126
  enabled: u,
127
127
  copy: d.approvalPolicyCopy
128
- }), ht = _e({
128
+ }), gt = ve({
129
129
  status: S?.status,
130
130
  scopes: y?.scopes,
131
131
  arePendingApproversUnknown: z.isLoading,
132
132
  hasApprovalPolicy: !!S?.approval_policy_id,
133
133
  hasWaitingRequest: M.hasWaitingRequest
134
- }), { actions: B, decisionDialog: gt, isActionPending: _t } = Ne({
135
- payableId: u || w ? g : void 0,
134
+ }), _t = u || w ? g : void 0, vt = u ? Ze : void 0, { actions: B, decisionDialog: yt, isActionPending: bt } = Pe({
135
+ payableId: _t,
136
136
  status: S?.status,
137
137
  currentApprovalRequestId: M.id,
138
138
  arePendingApproversUnknown: z.isLoading,
@@ -146,15 +146,22 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
146
146
  labels: d.actions,
147
147
  isMarkAsPaidPending: R.isPending,
148
148
  onMarkAsPaidSelect: R.open,
149
- onPayBillSelect: () => dt.current?.open(),
150
- onActionSucceeded: w ? () => l(!1) : void 0
149
+ onPayBillSelect: () => ft.current?.open(),
150
+ onEditSelect: vt,
151
+ onActionSucceeded: (e) => {
152
+ if (e === "reopen") {
153
+ vt?.();
154
+ return;
155
+ }
156
+ w && l(!1);
157
+ }
151
158
  }), V = Ie({
152
159
  payableId: g,
153
160
  status: S?.status,
154
161
  enabled: !u,
155
162
  labels: d.deleteDraft,
156
163
  onDeleted: () => l(!1)
157
- }), H = A || _t, U = _.isLoading || v.isResolving || x.isResolving || F.isLoading, W = _.isError || v.isError || x.isError, vt = a(() => [...V.menuItems, ...w || u && !U && !W ? B.menu.map((e) => ({
164
+ }), H = A || bt, U = _.isLoading || v.isResolving || x.isResolving || F.isLoading, W = _.isError || v.isError || x.isError, xt = a(() => [...V.menuItems, ...w || u && !U && !W ? B.menu.map((e) => ({
158
165
  id: e.id,
159
166
  label: e.label,
160
167
  onSelect: e.onSelect,
@@ -172,27 +179,27 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
172
179
  value: e.id,
173
180
  label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
174
181
  })), [x.data]), K;
175
- it && (b ? x.isError ? K = d.lineItemsGlCodeUnavailable.loadError : !x.isResolving && G.length === 0 && (K = d.lineItemsGlCodeUnavailable.empty) : K = d.lineItemsGlCodeUnavailable.noAccess);
176
- let yt = !it || !!K || x.isResolving, bt = b && !x.isResolving && !x.isError, q = ae(j), xt = S?.status === "rejected" || !u && w, St = e(y?.scopes, [t.ApprovalRequestReadOrg]), Ct = xt && St, wt = e(y?.scopes, [t.UserReadOrg]), J = te({ enabled: (u || xt) && wt }), Tt = a(() => ze(q.data?.data ?? [], J.data?.data ?? [], d.history), [
182
+ at && (b ? x.isError ? K = d.lineItemsGlCodeUnavailable.loadError : !x.isResolving && G.length === 0 && (K = d.lineItemsGlCodeUnavailable.empty) : K = d.lineItemsGlCodeUnavailable.noAccess);
183
+ let St = !at || !!K || x.isResolving, Ct = b && !x.isResolving && !x.isError, q = ae(j), wt = S?.status === "rejected" || !u && w, Tt = e(y?.scopes, [t.ApprovalRequestReadOrg]), Et = wt && Tt, Dt = e(y?.scopes, [t.UserReadOrg]), J = te({ enabled: (u || wt) && Dt }), Ot = a(() => ze(q.data?.data ?? [], J.data?.data ?? [], d.history), [
177
184
  q.data,
178
185
  J.data,
179
186
  d.history
180
- ]), Et = ke({
187
+ ]), kt = Ae({
181
188
  payableId: g,
182
- enabled: Ct
183
- }), Dt = ie(g, { enabled: Ct }), Ot = a(() => Oe(Dt.data?.data, Et.roundStartedAt), [Dt.data, Et.roundStartedAt]), Y = a(() => je({
189
+ enabled: Et
190
+ }), At = ie(g, { enabled: Et }), jt = a(() => ke(At.data?.data, kt.roundStartedAt), [At.data, kt.roundStartedAt]), Y = a(() => Me({
184
191
  payableStatus: S?.status,
185
- approvalRequests: Ot,
192
+ approvalRequests: jt,
186
193
  users: J.data?.data ?? [],
187
194
  payableUpdatedAt: S?.updated_at,
188
195
  labels: d.detail
189
196
  }), [
190
197
  S?.status,
191
198
  S?.updated_at,
192
- Ot,
199
+ jt,
193
200
  J.data,
194
201
  d.detail
195
- ]), kt = a(() => De({
202
+ ]), Mt = a(() => Oe({
196
203
  records: N.paymentRecords,
197
204
  events: q.data?.data ?? [],
198
205
  currencyCode: S?.currency,
@@ -202,13 +209,13 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
202
209
  q.data,
203
210
  S?.currency,
204
211
  d.detail
205
- ]), At = a(() => u && S ? Le({
212
+ ]), Nt = a(() => u && S ? Le({
206
213
  payable: S,
207
214
  lineItems: v.lineItems,
208
215
  glCodeOptions: G,
209
- glCodeRosterAvailable: bt,
210
- history: Tt,
211
- paymentHistory: kt,
216
+ glCodeRosterAvailable: Ct,
217
+ history: Ot,
218
+ paymentHistory: Mt,
212
219
  approvalPolicy: z.view,
213
220
  labels: d.detail,
214
221
  hasScheduledPayment: N.hasScheduledPayment,
@@ -221,16 +228,16 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
221
228
  P,
222
229
  d.detail,
223
230
  G,
224
- bt,
225
- Tt,
231
+ Ct,
232
+ Ot,
226
233
  v.lineItems,
227
234
  S,
228
235
  F.achInstructions,
229
236
  F.isError,
230
- kt,
237
+ Mt,
231
238
  u,
232
239
  Y
233
- ]), jt = S?.source_of_payable_data === "ocr", X = ft?.name, Mt = u ? X ? d.viewTitle(X) : d.readOnlyTitle : X && (jt || w) ? d.extractedTitle(X) : d.newTitle, Nt = u && S?.created_at ? d.addedOn(ne(S.created_at.slice(0, 10))) : void 0, Z = i(() => {
240
+ ]), Pt = S?.source_of_payable_data === "ocr", X = pt?.name, Ft = u ? X ? d.viewTitle(X) : d.readOnlyTitle : X && (Pt || w) ? d.extractedTitle(X) : d.newTitle, It = u && S?.created_at ? d.addedOn(ne(S.created_at.slice(0, 10))) : void 0, Z = i(() => {
234
241
  let e = E.isDirty || O.hasUnsavedVendorChanges || !!k.stagedFile || k.isFileDeletionPending;
235
242
  switch (Re({
236
243
  isUnsavedPromptOpen: m,
@@ -253,9 +260,9 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
253
260
  m,
254
261
  l,
255
262
  O.hasUnsavedVendorChanges
256
- ]), Pt = i(() => {
263
+ ]), Lt = i(() => {
257
264
  h(!1), l(!1);
258
- }, [l]), Q = v.isResolving || O.mode === "creating", Ft = i(async () => {
265
+ }, [l]), Q = v.isResolving || O.mode === "creating", Rt = i(async () => {
259
266
  if (Q) return;
260
267
  let e = await k.saveDraft();
261
268
  h(!1), e && l(!1);
@@ -266,35 +273,35 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
266
273
  ]), $ = ge({
267
274
  payable: S,
268
275
  onRemoved: () => l(!1),
269
- canManage: pt
270
- }), It = i((e) => {
276
+ canManage: mt
277
+ }), zt = i((e) => {
271
278
  if (!(H || $.isBusy)) return e ? l(!0) : Z();
272
279
  }, [
273
280
  $.isBusy,
274
281
  H,
275
282
  Z,
276
283
  l
277
- ]), Lt = $.isPossibleDuplicate, Rt = !u && jt && !et, zt = !u && !!Y, Bt = zt || Lt || Rt ? /* @__PURE__ */ Ke(Ge, { children: [
278
- zt && Y ? /* @__PURE__ */ s(fe, {
284
+ ]), Bt = $.isPossibleDuplicate, Vt = !u && Pt && !tt, Ht = !u && !!Y, Ut = Ht || Bt || Vt ? /* @__PURE__ */ Ke(Ge, { children: [
285
+ Ht && Y ? /* @__PURE__ */ s(fe, {
279
286
  ...Y,
280
287
  labels: d.rejectedBanner
281
288
  }) : null,
282
- Lt ? /* @__PURE__ */ s(de, {
289
+ Bt ? /* @__PURE__ */ s(de, {
283
290
  onNotADuplicate: $.onNotADuplicate,
284
291
  onRemoveBill: $.onRemoveBill,
285
292
  isActionDisabled: $.isBusy,
286
293
  labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
287
294
  testId: r.duplicateNotice
288
295
  }) : null,
289
- Rt ? /* @__PURE__ */ s(pe, { onDismiss: () => tt(!0) }) : null
296
+ Vt ? /* @__PURE__ */ s(pe, { onDismiss: () => nt(!0) }) : null
290
297
  ] }) : void 0;
291
298
  return /* @__PURE__ */ Ke(Ge, { children: [
292
299
  /* @__PURE__ */ s(ue, {
293
300
  open: c,
294
- onOpenChange: It,
295
- title: Mt,
296
- subtitle: Nt,
297
- notice: Bt,
301
+ onOpenChange: zt,
302
+ title: Ft,
303
+ subtitle: It,
304
+ notice: Ut,
298
305
  vendor: {
299
306
  ...O,
300
307
  testId: r.vendorSection
@@ -305,7 +312,7 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
305
312
  lineItems: {
306
313
  items: E.lineItemRows,
307
314
  glCodeOptions: G,
308
- glCodeDisabled: yt,
315
+ glCodeDisabled: St,
309
316
  glCodeUnavailableMessage: K,
310
317
  discount: E.discount,
311
318
  onDiscountChange: E.onDiscountChange,
@@ -342,15 +349,15 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
342
349
  hasFailed: k.hasFileDeletionFailed
343
350
  }
344
351
  }),
345
- menuItems: vt,
352
+ menuItems: xt,
346
353
  readOnly: T,
347
354
  detail: u ? {
348
- view: At,
355
+ view: Nt,
349
356
  actions: B,
350
357
  scheduledSummary: N.hasScheduledPayment && N.scheduledDateLabel ? d.scheduledSummary(N.scheduledDateLabel) : void 0,
351
- showApprovalOverrideNotice: ht && !!S?.approval_policy_id,
352
- onEditPaymentInstructions: D && mt ? I.open : void 0,
353
- paymentInstructionsForm: D && (mt || L && S?.status === "rejected") ? {
358
+ showApprovalOverrideNotice: gt && !!S?.approval_policy_id,
359
+ onEditPaymentInstructions: D && ht ? I.open : void 0,
360
+ paymentInstructionsForm: D && (ht || L && S?.status === "rejected") ? {
354
361
  isOpen: I.isOpen,
355
362
  values: I.values,
356
363
  errors: I.errors,
@@ -380,8 +387,8 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
380
387
  }),
381
388
  /* @__PURE__ */ s(he, {
382
389
  open: m,
383
- onSaveDraft: Ft,
384
- onDiscard: Pt,
390
+ onSaveDraft: Rt,
391
+ onDiscard: Lt,
385
392
  onCancel: () => h(!1),
386
393
  isSaving: k.isSavingDraft,
387
394
  isSaveDraftDisabled: Q,
@@ -392,7 +399,7 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
392
399
  closeTestId: r.unsavedClose
393
400
  }),
394
401
  /* @__PURE__ */ s(n, {
395
- ...gt,
402
+ ...yt,
396
403
  labels: { cancelButton: d.actions.decisionDialog.cancelButton },
397
404
  testId: r.decisionDialog,
398
405
  confirmTestId: r.decisionConfirm,
@@ -416,11 +423,11 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
416
423
  confirmTestId: r.duplicateRemoveConfirm
417
424
  }),
418
425
  /* @__PURE__ */ s(me, { ...R.dialogProps }),
419
- u && S ? /* @__PURE__ */ s(xe, {
420
- ref: dt,
426
+ u && S ? /* @__PURE__ */ s(Se, {
427
+ ref: ft,
421
428
  payable: S,
422
429
  onMissingAchInstructions: L ? I.open : void 0,
423
- poweredByBankName: Ze,
430
+ poweredByBankName: Qe,
424
431
  labels: d.payBill
425
432
  }) : null
426
433
  ] });
@@ -2,7 +2,7 @@ import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/index61.js";
2
2
  import "../../ui/dist/index.js";
3
3
  import { MARK_AS_PAID_FLOW_LABELS_EN as t } from "./index15.js";
4
4
  import "./index18.js";
5
- import { APPROVAL_POLICY_RULE_COPY_EN as n } from "./index28.js";
5
+ import { APPROVAL_POLICY_RULE_COPY_EN as n } from "./index29.js";
6
6
  import { BILL_DETAIL_ACTIONS_LABELS_EN as r, PAYMENT_HISTORY_LABELS_EN as i, SCHEDULED_SUMMARY_LABEL_EN as a } from "./index45.js";
7
7
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js
8
8
  var o = {