@tesouro/embedded-components-react 0.9.24 → 0.9.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/index.css +82 -55
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +7 -7
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +14 -8
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index11.js +59 -7
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index12.js +10 -65
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +9 -10
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -8
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +9 -7
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +29 -11
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +24 -24
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +14 -22
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +155 -14
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +13 -157
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +18 -12
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +32 -15
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +99 -39
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +69 -85
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +3 -85
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +57 -4
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +114 -57
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +190 -111
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +75 -187
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +35 -15
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +67 -75
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +111 -69
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +461 -108
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +102 -452
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +12 -116
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +85 -12
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +67 -73
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +231 -73
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +38 -232
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +245 -38
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +169 -38
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +21 -252
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +534 -23
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +4 -542
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +43 -4
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +236 -39
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +3 -240
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +6 -3
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +63 -4
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +1 -65
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +82 -225
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +45 -83
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +4 -47
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +13 -4
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +8 -13
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +5 -5
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +138 -155
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +2 -2
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +48 -43
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +219 -207
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js +13 -13
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js +5 -4
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +6 -6
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -5
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +278 -322
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +1 -1
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -16
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +2 -41
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +4 -2
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +39 -9
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +2 -78
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +11 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +78 -2
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -4
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +25 -26
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +4 -2
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +28 -5
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -34
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +7 -2
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +34 -0
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +31 -15
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +1 -54
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +18 -2
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +52 -2
  93. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  94. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +1 -1
  95. package/dist/packages/shared-ui-shadcn/dist/index.js +4696 -4681
  96. package/package.json +1 -1
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +0 -1
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +0 -29
@@ -4,255 +4,267 @@
4
4
  "use client";
5
5
  import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
6
  import { hasAnyScope as t } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
7
- import { useMailboxAddress as n } from "../../../../shared/data-access/dist/lib/useMailboxAddress.js";
8
- import { Scope as r } from "../../../../shared/data-access/dist/lib/scopes.js";
7
+ import { useMailboxAddress as ee } from "../../../../shared/data-access/dist/lib/useMailboxAddress.js";
8
+ import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
9
9
  import "../../../../shared/data-access/dist/index.js";
10
10
  import "../../../../shared/ui/dist/index.js";
11
- import { useWidgetConfig as i, useWidgetInitStaleForToken as ee } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
+ import { useWidgetConfig as te, useWidgetInitStaleForToken as ne } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
12
12
  import "../../../../shared/feature/dist/index.js";
13
- import { BillDecisionDialog as a } from "../../../ui/dist/index4.js";
13
+ import { BillDecisionDialog as r } from "../../../ui/dist/index4.js";
14
14
  import "../../../ui/dist/index.js";
15
- import { AddBillDialog as o } from "../../ui/dist/index6.js";
16
- import { BillsScreen as s } from "../../ui/dist/index20.js";
15
+ import { AddBillDialog as re } from "../../ui/dist/index6.js";
16
+ import { BillsScreen as i } from "../../ui/dist/index20.js";
17
17
  import "../../ui/dist/index.js";
18
- import { BILL_QUEUE_ORDER as c } from "./index4.js";
19
- import { BILLS_TAB_LABELS_EN as l } from "./index7.js";
20
- import { BillDuplicateView as u, useBillsTable as d } from "./index16.js";
21
- import { useDuplicateBillsCount as f } from "./index2.js";
22
- import { formatBillQueueBadge as p } from "./index3.js";
23
- import { copyTextToClipboard as m } from "./index5.js";
24
- import { resolveDuplicateWarning as h } from "./index6.js";
25
- import { billsTableCellTestIds as te } from "./index8.js";
26
- import { useBillQueueCounts as g } from "./index9.js";
27
- import { useEffect as _, useImperativeHandle as v, useMemo as y, useState as b } from "react";
28
- import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
18
+ import { BILL_QUEUE_ORDER as a, DUPLICATES_TAB_ID as o } from "./index4.js";
19
+ import { BILLS_TAB_LABELS_EN as s } from "./index7.js";
20
+ import { BillDuplicateView as c, useBillsTable as l } from "./index16.js";
21
+ import { useDuplicateBillsCount as u } from "./index2.js";
22
+ import { formatBillQueueBadge as d } from "./index3.js";
23
+ import { copyTextToClipboard as f } from "./index5.js";
24
+ import { resolveDuplicateWarning as p } from "./index6.js";
25
+ import { billsTableCellTestIds as m } from "./index8.js";
26
+ import { useBillQueueCounts as h } from "./index9.js";
27
+ import { useCallback as g, useImperativeHandle as ie, useMemo as _, useState as v } from "react";
28
+ import { Fragment as ae, jsx as y, jsxs as oe } from "react/jsx-runtime";
29
29
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js
30
- var w = () => void 0;
31
- function T({ labels: T, onOpenBill: ne, onEnterManually: re, onFilesSelected: ie, maxFiles: E, onSettingsClick: D, ref: O }) {
32
- let k = y(() => ({
33
- ...l,
34
- ...T,
30
+ var b = () => void 0;
31
+ function x({ labels: x, onOpenBill: S, onEnterManually: se, onFilesSelected: ce, maxFiles: C, onSettingsClick: le, ref: ue }) {
32
+ let w = _(() => ({
33
+ ...s,
34
+ ...x,
35
35
  queues: {
36
- ...l.queues,
37
- ...T?.queues
36
+ ...s.queues,
37
+ ...x?.queues
38
38
  },
39
39
  scheduledRelativeDay: {
40
- ...l.scheduledRelativeDay,
41
- ...T?.scheduledRelativeDay
40
+ ...s.scheduledRelativeDay,
41
+ ...x?.scheduledRelativeDay
42
42
  },
43
43
  filters: {
44
- ...l.filters,
45
- ...T?.filters,
44
+ ...s.filters,
45
+ ...x?.filters,
46
46
  presets: {
47
- ...l.filters.presets,
48
- ...T?.filters?.presets
47
+ ...s.filters.presets,
48
+ ...x?.filters?.presets
49
49
  },
50
50
  statuses: {
51
- ...l.filters.statuses,
52
- ...T?.filters?.statuses
51
+ ...s.filters.statuses,
52
+ ...x?.filters?.statuses
53
53
  },
54
54
  dateFieldNames: {
55
- ...l.filters.dateFieldNames,
56
- ...T?.filters?.dateFieldNames
55
+ ...s.filters.dateFieldNames,
56
+ ...x?.filters?.dateFieldNames
57
57
  }
58
58
  },
59
59
  filterBar: {
60
- ...l.filterBar,
61
- ...T?.filterBar
60
+ ...s.filterBar,
61
+ ...x?.filterBar
62
62
  },
63
- queueEmptyStates: c.reduce((e, t) => ({
63
+ duplicatesEmptyState: {
64
+ ...s.duplicatesEmptyState,
65
+ ...x?.duplicatesEmptyState
66
+ },
67
+ queueEmptyStates: a.reduce((e, t) => ({
64
68
  ...e,
65
69
  [t]: {
66
- ...l.queueEmptyStates[t],
67
- ...T?.queueEmptyStates?.[t]
70
+ ...s.queueEmptyStates[t],
71
+ ...x?.queueEmptyStates?.[t]
68
72
  }
69
73
  }), {})
70
- }), [T]), [A, j] = b(!1), [M, N] = b(u.AllBills), { initResponse: P } = i(), F = ee(), I = t(P?.scopes, [r.PayableReadOrg]), L = t(P?.scopes, [r.PayableWriteOrg]), R = !P || I, z = !P || L, B = t(P?.scopes, [r.CounterpartReadOrg]), V = y(() => ({
71
- originalBill: k.duplicateOriginalBillLabel,
72
- menuTrigger: k.duplicateMenuTrigger,
73
- notDuplicateAction: k.duplicateNotDuplicateAction,
74
- notDuplicateConfirmTitle: k.duplicateNotDuplicateConfirmTitle,
75
- notDuplicateConfirmDescription: k.duplicateNotDuplicateConfirmDescription,
76
- notDuplicateConfirmButton: k.duplicateNotDuplicateConfirmButton,
77
- notDuplicateConfirmBackButton: k.duplicateNotDuplicateConfirmBackButton,
78
- deleteAction: k.duplicateDeleteAction,
79
- deleteConfirmTitle: k.duplicateDeleteConfirmTitle,
80
- deleteConfirmDescription: k.duplicateDeleteConfirmDescription,
81
- deleteConfirmButton: k.duplicateDeleteConfirmButton,
82
- deletedToast: k.duplicateDeletedToast,
83
- confirmAction: k.duplicateConfirmAction,
84
- confirmDuplicateTitle: k.duplicateConfirmDuplicateTitle,
85
- confirmDuplicateDescription: k.duplicateConfirmDuplicateDescription,
86
- confirmDuplicateButton: k.duplicateConfirmDuplicateButton,
87
- confirmedToast: k.duplicateConfirmedToast,
88
- cancelAction: k.duplicateCancelAction,
89
- cancelConfirmTitle: k.duplicateCancelConfirmTitle,
90
- cancelConfirmDescription: k.duplicateCancelConfirmDescription,
91
- cancelConfirmButton: k.duplicateCancelConfirmButton,
92
- cancelConfirmBackButton: k.duplicateCancelConfirmBackButton,
93
- dismissedToast: k.duplicateDismissedToast,
94
- cancelledToast: k.duplicateCancelledToast,
95
- actionFailedToast: k.duplicateActionFailedToast,
96
- groupHeader: k.duplicateGroupHeader
74
+ }), [x]), [de, T] = v(!1), [E, D] = v(c.AllBills), { initResponse: O } = te(), k = ne(), A = t(O?.scopes, [n.PayableReadOrg]), j = t(O?.scopes, [n.PayableWriteOrg]), M = !O || A, N = !O || j, P = t(O?.scopes, [n.CounterpartReadOrg]), F = _(() => ({
75
+ copyRow: w.duplicateCopyRowLabel,
76
+ menuTrigger: w.duplicateMenuTrigger,
77
+ notDuplicateAction: w.duplicateNotDuplicateAction,
78
+ notDuplicateConfirmTitle: w.duplicateNotDuplicateConfirmTitle,
79
+ notDuplicateConfirmDescription: w.duplicateNotDuplicateConfirmDescription,
80
+ notDuplicateConfirmButton: w.duplicateNotDuplicateConfirmButton,
81
+ notDuplicateConfirmBackButton: w.duplicateNotDuplicateConfirmBackButton,
82
+ deleteAction: w.duplicateDeleteAction,
83
+ deleteConfirmTitle: w.duplicateDeleteConfirmTitle,
84
+ deleteConfirmDescription: w.duplicateDeleteConfirmDescription,
85
+ deleteConfirmButton: w.duplicateDeleteConfirmButton,
86
+ deletedToast: w.duplicateDeletedToast,
87
+ confirmAction: w.duplicateConfirmAction,
88
+ confirmDuplicateTitle: w.duplicateConfirmDuplicateTitle,
89
+ confirmDuplicateDescription: w.duplicateConfirmDuplicateDescription,
90
+ confirmDuplicateButton: w.duplicateConfirmDuplicateButton,
91
+ confirmedToast: w.duplicateConfirmedToast,
92
+ cancelAction: w.duplicateCancelAction,
93
+ cancelConfirmTitle: w.duplicateCancelConfirmTitle,
94
+ cancelConfirmDescription: w.duplicateCancelConfirmDescription,
95
+ cancelConfirmButton: w.duplicateCancelConfirmButton,
96
+ cancelConfirmBackButton: w.duplicateCancelConfirmBackButton,
97
+ dismissedToast: w.duplicateDismissedToast,
98
+ cancelledToast: w.duplicateCancelledToast,
99
+ actionFailedToast: w.duplicateActionFailedToast,
100
+ groupHeader: w.duplicateGroupHeader
97
101
  }), [
98
- k.duplicateOriginalBillLabel,
99
- k.duplicateMenuTrigger,
100
- k.duplicateNotDuplicateAction,
101
- k.duplicateNotDuplicateConfirmTitle,
102
- k.duplicateNotDuplicateConfirmDescription,
103
- k.duplicateNotDuplicateConfirmButton,
104
- k.duplicateNotDuplicateConfirmBackButton,
105
- k.duplicateDeleteAction,
106
- k.duplicateDeleteConfirmTitle,
107
- k.duplicateDeleteConfirmDescription,
108
- k.duplicateDeleteConfirmButton,
109
- k.duplicateDeletedToast,
110
- k.duplicateConfirmAction,
111
- k.duplicateConfirmDuplicateTitle,
112
- k.duplicateConfirmDuplicateDescription,
113
- k.duplicateConfirmDuplicateButton,
114
- k.duplicateConfirmedToast,
115
- k.duplicateCancelAction,
116
- k.duplicateCancelConfirmTitle,
117
- k.duplicateCancelConfirmDescription,
118
- k.duplicateCancelConfirmButton,
119
- k.duplicateCancelConfirmBackButton,
120
- k.duplicateDismissedToast,
121
- k.duplicateCancelledToast,
122
- k.duplicateActionFailedToast,
123
- k.duplicateGroupHeader
124
- ]), H = t(P?.scopes, [r.MailboxReadOrg]), { mailboxAddress: U } = n({
102
+ w.duplicateCopyRowLabel,
103
+ w.duplicateMenuTrigger,
104
+ w.duplicateNotDuplicateAction,
105
+ w.duplicateNotDuplicateConfirmTitle,
106
+ w.duplicateNotDuplicateConfirmDescription,
107
+ w.duplicateNotDuplicateConfirmButton,
108
+ w.duplicateNotDuplicateConfirmBackButton,
109
+ w.duplicateDeleteAction,
110
+ w.duplicateDeleteConfirmTitle,
111
+ w.duplicateDeleteConfirmDescription,
112
+ w.duplicateDeleteConfirmButton,
113
+ w.duplicateDeletedToast,
114
+ w.duplicateConfirmAction,
115
+ w.duplicateConfirmDuplicateTitle,
116
+ w.duplicateConfirmDuplicateDescription,
117
+ w.duplicateConfirmDuplicateButton,
118
+ w.duplicateConfirmedToast,
119
+ w.duplicateCancelAction,
120
+ w.duplicateCancelConfirmTitle,
121
+ w.duplicateCancelConfirmDescription,
122
+ w.duplicateCancelConfirmButton,
123
+ w.duplicateCancelConfirmBackButton,
124
+ w.duplicateDismissedToast,
125
+ w.duplicateCancelledToast,
126
+ w.duplicateActionFailedToast,
127
+ w.duplicateGroupHeader
128
+ ]), I = t(O?.scopes, [n.MailboxReadOrg]), { mailboxAddress: L } = ee({
125
129
  relatedObjectType: "payable",
126
- enabled: H && !F
127
- }), W = H ? U : void 0, G = d({
128
- enabled: R,
129
- canReadVendors: B,
130
- isVendorFilterPaused: F,
131
- filterLabels: k.filters,
132
- onOpenBill: ne ?? w,
133
- duplicateRowNote: k.duplicateRowNote,
134
- attachmentLabel: k.attachmentIndicator,
135
- duplicateGroupLabels: V,
136
- canManageDuplicates: z,
137
- duplicateView: M,
138
- scheduledRelativeDayLabels: k.scheduledRelativeDay
139
- }), K = f({ enabled: R }), q = h(K, k, M === u.PossibleDuplicates);
140
- _(() => {
141
- M === u.PossibleDuplicates && !K.isLoading && (K.isError || K.count === 0) && N(u.AllBills);
142
- }, [
143
- M,
144
- K.count,
145
- K.isError,
146
- K.isLoading
147
- ]);
148
- let J = g({ enabled: R }), ae = y(() => c.map((e) => ({
130
+ enabled: I && !k
131
+ }), R = I ? L : void 0, z = l({
132
+ enabled: M,
133
+ canReadVendors: P,
134
+ isVendorFilterPaused: k,
135
+ filterLabels: w.filters,
136
+ onOpenBill: S ?? b,
137
+ duplicateRowNote: w.duplicateRowNote,
138
+ attachmentLabel: w.attachmentIndicator,
139
+ duplicateGroupLabels: F,
140
+ canManageDuplicates: N,
141
+ duplicateView: E,
142
+ scheduledRelativeDayLabels: w.scheduledRelativeDay
143
+ }), B = u({ enabled: M }), V = E === c.PossibleDuplicates, fe = p(B, w), H = h({ enabled: M }), U = !B.isError && B.count > 0, pe = _(() => [...a.map((e) => ({
149
144
  id: e,
150
- label: k.queues[e],
151
- badge: p(J[e])
152
- })), [k.queues, J]), Y = T?.screen, oe = y(() => ({
153
- ...Y,
154
- createButton: k.createButton,
155
- settingsButton: k.settingsButton,
145
+ label: w.queues[e],
146
+ badge: d(H[e])
147
+ })), {
148
+ id: o,
149
+ label: w.duplicatesTab,
150
+ badge: B.isError ? void 0 : d(B.count),
151
+ tone: U ? "warning" : void 0,
152
+ startsGroup: !0
153
+ }], [
154
+ w.queues,
155
+ w.duplicatesTab,
156
+ H,
157
+ B.isError,
158
+ B.count,
159
+ U
160
+ ]), { clearQueryConstraints: W, onFilterTabChange: G } = z, K = g(() => {
161
+ W(), D(c.PossibleDuplicates);
162
+ }, [W]), me = g((e) => {
163
+ if (e === "duplicates") {
164
+ K();
165
+ return;
166
+ }
167
+ D(c.AllBills), G(e);
168
+ }, [G, K]), q = x?.screen, he = _(() => ({
169
+ ...q,
170
+ createButton: w.createButton,
171
+ settingsButton: w.settingsButton,
156
172
  addBill: {
157
- ...Y?.addBill,
158
- heading: k.nonEmptyHeading
173
+ ...q?.addBill,
174
+ heading: w.nonEmptyHeading
159
175
  }
160
176
  }), [
161
- Y,
162
- k.createButton,
163
- k.settingsButton,
164
- k.nonEmptyHeading
165
- ]), se = y(() => ({
166
- ...G.filterBarProps,
167
- labels: k.filterBar
168
- }), [G.filterBarProps, k.filterBar]), X = () => {
169
- j(!1), re?.();
170
- }, Z = (e) => {
171
- j(!1), ie?.(e);
172
- }, Q = W ? {
173
- emailAddress: W,
177
+ q,
178
+ w.createButton,
179
+ w.settingsButton,
180
+ w.nonEmptyHeading
181
+ ]), J = _(() => ({
182
+ ...z.filterBarProps,
183
+ labels: w.filterBar
184
+ }), [z.filterBarProps, w.filterBar]), Y = () => {
185
+ T(!1), se?.();
186
+ }, X = (e) => {
187
+ T(!1), ce?.(e);
188
+ }, Z = R ? {
189
+ emailAddress: R,
174
190
  onCopyEmail: async () => {
175
- W && (await m(W) ? e.success(k.emailCopiedToast) : e.error(k.emailCopyFailedToast));
191
+ R && (await f(R) ? e.success(w.emailCopiedToast) : e.error(w.emailCopyFailedToast));
176
192
  }
177
193
  } : {
178
194
  emailAddress: void 0,
179
195
  onCopyEmail: void 0
180
- }, { showVendorBills: $ } = G;
181
- return v(O, () => ({ showVendorBills: $ }), [$]), /* @__PURE__ */ C(x, { children: [
182
- /* @__PURE__ */ S(s, {
183
- rows: G.rows,
184
- isLoading: G.isLoading || !P,
185
- isError: G.isError,
186
- onRetry: G.onRetry,
187
- sorting: G.sorting,
188
- onSortingChange: G.onSortingChange,
189
- pageSize: G.pageSize,
190
- onPageSizeChange: G.onPageSizeChange,
191
- pageSizeOptions: G.pageSizeOptions,
192
- hasNextPage: G.hasNextPage,
193
- hasPrevPage: G.hasPrevPage,
194
- onNextPage: G.onNextPage,
195
- onPrevPage: G.onPrevPage,
196
- filterTabs: ae,
197
- selectedFilterTabId: G.selectedFilterTabId,
198
- onFilterTabChange: G.onFilterTabChange,
199
- searchValue: G.searchValue,
200
- onSearchChange: G.onSearchChange,
201
- filters: se,
202
- visibleColumns: G.visibleColumns,
203
- cellTestIds: te,
204
- isSearchActive: G.isSearchActive,
205
- showAddPanelWhenEmpty: G.showAddPanelWhenEmpty,
206
- emptyState: k.queueEmptyStates[G.selectedFilterTabId],
207
- onCreateClick: z ? () => j(!0) : void 0,
208
- onSettingsClick: D,
209
- onEnterManually: z ? X : void 0,
210
- onFilesSelected: z ? Z : void 0,
211
- maxFiles: E,
212
- ...Q,
213
- duplicateWarning: q,
214
- duplicateReviewControl: K.isError ? void 0 : {
215
- isActive: M === u.PossibleDuplicates,
216
- reviewLabel: k.duplicateReviewButton,
217
- clearLabel: k.duplicateReviewClearButton,
218
- activeFilterLabel: k.duplicateFilterChip,
219
- onReview: () => {
220
- G.clearQueryConstraints(), N(u.PossibleDuplicates);
221
- },
222
- onClear: () => N(u.AllBills)
196
+ }, { showVendorBills: Q } = z, $ = g((e) => {
197
+ D(c.AllBills), Q(e);
198
+ }, [Q]);
199
+ return ie(ue, () => ({ showVendorBills: $ }), [$]), /* @__PURE__ */ oe(ae, { children: [
200
+ /* @__PURE__ */ y(i, {
201
+ rows: z.rows,
202
+ isLoading: z.isLoading || !O,
203
+ isError: z.isError,
204
+ onRetry: z.onRetry,
205
+ sorting: z.sorting,
206
+ onSortingChange: z.onSortingChange,
207
+ pageSize: z.pageSize,
208
+ onPageSizeChange: z.onPageSizeChange,
209
+ pageSizeOptions: z.pageSizeOptions,
210
+ hasNextPage: z.hasNextPage,
211
+ hasPrevPage: z.hasPrevPage,
212
+ onNextPage: z.onNextPage,
213
+ onPrevPage: z.onPrevPage,
214
+ filterTabs: pe,
215
+ selectedFilterTabId: V ? o : z.selectedFilterTabId,
216
+ onFilterTabChange: me,
217
+ searchValue: z.searchValue,
218
+ onSearchChange: z.onSearchChange,
219
+ filters: J,
220
+ visibleColumns: z.visibleColumns,
221
+ cellTestIds: m,
222
+ isSearchActive: z.isSearchActive,
223
+ showAddPanelWhenEmpty: z.showAddPanelWhenEmpty,
224
+ emptyState: V ? w.duplicatesEmptyState : w.queueEmptyStates[z.selectedFilterTabId],
225
+ onCreateClick: N ? () => T(!0) : void 0,
226
+ onSettingsClick: le,
227
+ onEnterManually: N ? Y : void 0,
228
+ onFilesSelected: N ? X : void 0,
229
+ maxFiles: C,
230
+ ...Z,
231
+ duplicateWarning: fe,
232
+ duplicateReviewControl: V ? void 0 : {
233
+ reviewLabel: w.duplicateReviewButton,
234
+ onReview: K
223
235
  },
224
- labels: oe
236
+ labels: he
225
237
  }),
226
- /* @__PURE__ */ S(a, {
227
- open: G.cancelConfirmation.open,
228
- copy: G.cancelConfirmation.copy,
229
- onConfirm: G.cancelConfirmation.onConfirm,
230
- onCancel: G.cancelConfirmation.onCancel,
231
- isPending: G.cancelConfirmation.isPending,
232
- labels: { cancelButton: G.cancelConfirmation.cancelButtonLabel }
238
+ /* @__PURE__ */ y(r, {
239
+ open: z.cancelConfirmation.open,
240
+ copy: z.cancelConfirmation.copy,
241
+ onConfirm: z.cancelConfirmation.onConfirm,
242
+ onCancel: z.cancelConfirmation.onCancel,
243
+ isPending: z.cancelConfirmation.isPending,
244
+ labels: { cancelButton: z.cancelConfirmation.cancelButtonLabel }
233
245
  }),
234
- /* @__PURE__ */ S(a, {
235
- open: G.keepConfirmation.open,
236
- copy: G.keepConfirmation.copy,
237
- onConfirm: G.keepConfirmation.onConfirm,
238
- onCancel: G.keepConfirmation.onCancel,
239
- isPending: G.keepConfirmation.isPending,
240
- labels: { cancelButton: G.keepConfirmation.cancelButtonLabel }
246
+ /* @__PURE__ */ y(r, {
247
+ open: z.keepConfirmation.open,
248
+ copy: z.keepConfirmation.copy,
249
+ onConfirm: z.keepConfirmation.onConfirm,
250
+ onCancel: z.keepConfirmation.onCancel,
251
+ isPending: z.keepConfirmation.isPending,
252
+ labels: { cancelButton: z.keepConfirmation.cancelButtonLabel }
241
253
  }),
242
- z ? /* @__PURE__ */ S(o, {
243
- open: A,
244
- onOpenChange: j,
245
- onFilesSelected: Z,
246
- maxFiles: E,
247
- onEnterManually: X,
248
- ...Q,
249
- dialogLabels: T?.addBillDialog?.dialog,
254
+ N ? /* @__PURE__ */ y(re, {
255
+ open: de,
256
+ onOpenChange: T,
257
+ onFilesSelected: X,
258
+ maxFiles: C,
259
+ onEnterManually: Y,
260
+ ...Z,
261
+ dialogLabels: x?.addBillDialog?.dialog,
250
262
  labels: {
251
- ...T?.addBillDialog?.panel,
252
- heading: G.hasAnyBills ? k.nonEmptyHeading : k.emptyHeading
263
+ ...x?.addBillDialog?.panel,
264
+ heading: z.hasAnyBills ? w.nonEmptyHeading : w.emptyHeading
253
265
  }
254
266
  }) : null
255
267
  ] });
256
268
  }
257
269
  //#endregion
258
- export { T as BillsList, T as default };
270
+ export { x as BillsList, x as default };
@@ -32,13 +32,13 @@ var t = {
32
32
  function i(e) {
33
33
  return e === t.Pending || e === t.Drafts;
34
34
  }
35
- var a = t.Drafts, o = [
35
+ var a = "duplicates", o = t.Drafts, s = [
36
36
  t.Drafts,
37
37
  t.Pending,
38
38
  t.Scheduled,
39
39
  t.Paid,
40
40
  t.All
41
- ], s = {
41
+ ], c = {
42
42
  [t.Drafts]: [
43
43
  e.Vendor,
44
44
  e.InvoiceNumber,
@@ -99,34 +99,34 @@ var a = t.Drafts, o = [
99
99
  e.AddedOn
100
100
  ]
101
101
  };
102
- function c(e) {
103
- return s[e];
104
- }
105
102
  function l(e) {
103
+ return c[e];
104
+ }
105
+ function u(e) {
106
106
  let t = n[e];
107
107
  return t ? [...t] : void 0;
108
108
  }
109
- function u(e) {
109
+ function d(e) {
110
110
  return r[e];
111
111
  }
112
- var d = {
112
+ var f = {
113
113
  vendorLabel: "counterpart_name",
114
114
  issueDateLabel: "issued_at",
115
115
  dueDateLabel: "due_date",
116
116
  scheduledDateLabel: "scheduled_payment_date",
117
117
  addedOnLabel: "created_at"
118
- }, f = {
118
+ }, p = {
119
119
  [e.Vendor]: "vendorLabel",
120
120
  [e.IssueDate]: "issueDateLabel",
121
121
  [e.DueDate]: "dueDateLabel",
122
122
  [e.ScheduledDate]: "scheduledDateLabel",
123
123
  [e.AddedOn]: "addedOnLabel"
124
124
  };
125
- function p(e) {
126
- return f[e];
127
- }
128
125
  function m(e) {
129
- if (e) return d[e];
126
+ return p[e];
127
+ }
128
+ function h(e) {
129
+ if (e) return f[e];
130
130
  }
131
131
  //#endregion
132
- export { s as BILL_QUEUE_COLUMNS, r as BILL_QUEUE_HAS_SCHEDULED_PAYMENT, o as BILL_QUEUE_ORDER, n as BILL_QUEUE_STATUSES, d as BILL_SORT_FIELDS, t as BillQueue, a as DEFAULT_BILL_QUEUE, c as billQueueColumns, u as billQueueHasScheduledPayment, i as billQueueOffersAddPanel, l as billQueueStatuses, p as billSortColumnId, m as billSortField };
132
+ export { c as BILL_QUEUE_COLUMNS, r as BILL_QUEUE_HAS_SCHEDULED_PAYMENT, s as BILL_QUEUE_ORDER, n as BILL_QUEUE_STATUSES, f as BILL_SORT_FIELDS, t as BillQueue, o as DEFAULT_BILL_QUEUE, a as DUPLICATES_TAB_ID, l as billQueueColumns, d as billQueueHasScheduledPayment, i as billQueueOffersAddPanel, u as billQueueStatuses, m as billSortColumnId, h as billSortField };
@@ -1,9 +1,10 @@
1
1
  import "./index2.js";
2
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js
3
- function e(e, t, n = !1) {
4
- if (e.isError) return t.duplicateWarningUnavailable;
5
- if (e.isCapped) return t.duplicateWarningManyCapped(100);
6
- if (e.count !== 0) return e.count === 1 ? n ? t.duplicateReviewingOne : t.duplicateWarningOne : n ? t.duplicateReviewingMany(e.count, e.groupCount) : t.duplicateWarningMany(e.count, e.groupCount);
3
+ function e(e, t) {
4
+ if (!e.isError) {
5
+ if (e.isCapped) return t.duplicateWarningManyCapped(100);
6
+ if (e.count !== 0) return e.count === 1 ? t.duplicateWarningOne : t.duplicateWarningMany(e.count, e.groupCount);
7
+ }
7
8
  }
8
9
  //#endregion
9
10
  export { e as resolveDuplicateWarning };
@@ -31,13 +31,13 @@ var t = {
31
31
  duplicateWarningOne: "1 possible duplicate found",
32
32
  duplicateWarningMany: (e, t) => `${e} possible duplicate bills found across ${t} original ${t === 1 ? "bill" : "bills"}`,
33
33
  duplicateWarningManyCapped: (e) => `${e}+ possible duplicate bills found`,
34
- duplicateWarningUnavailable: "Couldn't check for possible duplicates. Try again shortly.",
35
34
  duplicateRowNote: "Possible duplicate",
36
35
  duplicateReviewButton: "Review duplicates",
37
- duplicateReviewClearButton: "Show all bills",
38
- duplicateReviewingOne: "Reviewing 1 possible duplicate",
39
- duplicateReviewingMany: (e, t) => `Reviewing ${e} possible duplicate bills across ${t} original ${t === 1 ? "bill" : "bills"}`,
40
- duplicateFilterChip: "Possible duplicates",
36
+ duplicatesTab: "Duplicates",
37
+ duplicatesEmptyState: {
38
+ title: "No possible duplicates",
39
+ description: "Bills flagged as possible duplicates appear here for review."
40
+ },
41
41
  duplicateMenuTrigger: ({ vendorLabel: e, invoiceNumberLabel: t }) => t ? `Open duplicate actions for ${e}, invoice ${t}` : `Open duplicate actions for ${e}`,
42
42
  duplicateNotDuplicateAction: "Not a duplicate",
43
43
  duplicateNotDuplicateConfirmTitle: "Mark as not a duplicate?",
@@ -63,7 +63,7 @@ var t = {
63
63
  duplicateCancelledToast: "Duplicate cancelled",
64
64
  duplicateActionFailedToast: "Couldn't update this duplicate. Try again.",
65
65
  duplicateGroupHeader: ({ vendorLabel: e, invoiceNumberLabel: t }) => t ? `${e} - ${t}` : e,
66
- duplicateOriginalBillLabel: "Original bill",
66
+ duplicateCopyRowLabel: "Possible duplicate",
67
67
  attachmentIndicator: "Has an attachment",
68
68
  scheduledRelativeDay: {
69
69
  today: "Today",
@@ -1,7 +1,7 @@
1
1
  import { DATA_TABLE_LABELS_EN as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../../../shared/document-status/ui/dist/index2.js";
3
3
  import "../../../../shared/document-status/ui/dist/index.js";
4
- import { DUE_DATE_VALUE_LABELS_EN as n } from "../../../ui/dist/index17.js";
4
+ import { DUE_DATE_VALUE_LABELS_EN as n } from "../../../ui/dist/index19.js";
5
5
  import "../../../ui/dist/index.js";
6
6
  import { ADD_BILL_PANEL_LABELS_EN as r } from "./index2.js";
7
7
  import "./index4.js";
@@ -40,10 +40,6 @@ var o = ".pdf,.png,.jpg,.jpeg,.doc,.docx", s = {
40
40
  searchPlaceholder: "Search by vendor name",
41
41
  searchLabel: "Search bills by vendor name",
42
42
  filterTabsLabel: "Filter bills by status",
43
- duplicateReviewFilterLabel: "Possible duplicates",
44
- duplicateReviewClearButton: "Show all bills",
45
- duplicateGroupToggle: (e) => `Expand or collapse duplicate group ${e}`,
46
- duplicateGroupBillCount: (e) => e === 1 ? "1 bill" : `${e} bills`,
47
43
  filteredEmptyTitle: "No bills match",
48
44
  filteredEmptyDescription: "Try a different search or status filter.",
49
45
  errorTitle: "Couldn't load bills",
@@ -1,4 +1,4 @@
1
- import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index12.js";
1
+ import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index14.js";
2
2
  import "../../../ui/dist/index.js";
3
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js
4
4
  var t = {