@tesouro/embedded-components-react 0.2.336 → 0.2.337

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 (96) hide show
  1. package/dist/index.css +22 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +6 -2
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +1 -0
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +185 -180
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +98 -97
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +6 -107
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +19 -8
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +57 -38
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +3 -8
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +107 -88
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +8 -159
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +43 -5
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +4 -4
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +93 -108
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +180 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -24
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +8 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +115 -0
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +25 -0
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +34 -26
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -16
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +18 -2
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +1 -41
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +38 -269
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +272 -1
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -9
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +7 -47
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +49 -2
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +2 -22
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +20 -284
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +286 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -16
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +13 -117
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +120 -2
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -10
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +8 -94
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +96 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +1 -12
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +11 -56
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +57 -1
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +1 -53
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +51 -136
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +141 -1
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -7
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +5 -42
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +44 -2
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -4
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -61
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +63 -2
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -4
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -14
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +16 -2
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +1 -73
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +72 -250
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +251 -12
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +9 -252
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +1 -10
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +6 -4
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +43 -87
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -0
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +14 -2
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +278 -5
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +8 -28
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +8 -2
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +91 -5
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +1 -1
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +15 -9
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +101 -94
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +3 -14
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +28 -8
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -170
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +7 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +32 -12
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -89
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +12 -2
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +106 -0
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +2 -0
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +18 -0
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +10 -0
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +170 -0
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -0
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +14 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +89 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -0
  92. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  93. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  94. package/dist/packages/shared-ui-shadcn/dist/index.js +1378 -1371
  95. package/package.json +1 -1
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +0 -34
@@ -1,93 +1,49 @@
1
- import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index55.js";
3
- import { UPLOAD_ITEM_ICON_TONE as n } from "./index56.js";
4
- import { useId as r } from "react";
5
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u, Loader2 as d, X as f, XCircle as p } from "lucide-react";
1
+ import { Alert as e, AlertTitle as t, Button as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_DUPLICATE_NOTICE_LABELS_EN as r } from "./index56.js";
3
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
+ import { CopyX as o } from "lucide-react";
7
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js
8
- function m({ status: t }) {
9
- let r = e("ttw:size-4", n[t]);
10
- return t === "uploading" ? /* @__PURE__ */ a(d, {
11
- "aria-hidden": !0,
12
- className: e(r, "ttw:animate-spin")
13
- }) : a(t === "ready" ? s : p, {
14
- "aria-hidden": !0,
15
- className: r
16
- });
17
- }
18
- function h({ item: t, labels: n }) {
19
- let s = r(), c = /* @__PURE__ */ o(i, { children: [
20
- /* @__PURE__ */ a(m, { status: t.status }),
21
- /* @__PURE__ */ a("span", {
22
- id: s,
23
- className: "ttw:sr-only",
24
- children: n.statusLabel(t.status)
25
- }),
26
- /* @__PURE__ */ a("span", {
27
- className: "ttw:flex-1 ttw:truncate ttw:text-left ttw:text-sm ttw:text-foreground",
28
- children: t.fileName
29
- }),
30
- t.onOpen ? /* @__PURE__ */ a(l, {
31
- "aria-hidden": !0,
32
- className: "ttw:size-4"
33
- }) : null
34
- ] }), u = "ttw:flex ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-2.5";
35
- return t.onOpen ? /* @__PURE__ */ a("button", {
6
+ function s({ onNotADuplicate: s, onRemoveBill: c, onViewOtherBill: l, testId: u, labels: d }) {
7
+ let f = {
8
+ ...r,
9
+ ...d
10
+ }, p = l ? /* @__PURE__ */ i("button", {
36
11
  type: "button",
37
- onClick: t.onOpen,
38
- "aria-describedby": s,
39
- "aria-label": n.openItem(t.fileName),
40
- className: e(u, "ttw:w-full ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-muted/50 ttw:hover:text-foreground"),
41
- children: c
42
- }) : /* @__PURE__ */ a("div", {
43
- "aria-describedby": s,
44
- className: u,
45
- children: c
12
+ onClick: l,
13
+ className: "ttw:underline ttw:hover:no-underline",
14
+ children: f.otherBill
15
+ }) : /* @__PURE__ */ i("span", {
16
+ className: "ttw:underline",
17
+ children: f.otherBill
46
18
  });
47
- }
48
- function g({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
49
- let p = {
50
- ...t,
51
- ...d
52
- };
53
- return /* @__PURE__ */ o("div", {
54
- className: "ttw:fixed ttw:right-4 ttw:bottom-4 ttw:z-50 ttw:w-96 ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
55
- "data-testid": l,
56
- children: [/* @__PURE__ */ o("div", {
57
- className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-b ttw:border-border ttw:bg-muted/40 ttw:px-4 ttw:py-3",
58
- children: [
59
- /* @__PURE__ */ a("span", {
60
- "aria-live": "polite",
61
- className: "ttw:flex-1 ttw:text-base ttw:font-semibold ttw:text-foreground",
62
- children: n
63
- }),
64
- /* @__PURE__ */ a("button", {
65
- type: "button",
66
- onClick: i,
67
- "aria-label": r ? p.expand : p.collapse,
68
- "aria-expanded": !r,
69
- className: "ttw:text-muted-foreground ttw:hover:text-foreground",
70
- children: a(r ? u : c, { className: "ttw:size-4" })
71
- }),
72
- /* @__PURE__ */ a("button", {
73
- type: "button",
74
- onClick: s,
75
- "aria-label": p.close,
76
- className: "ttw:text-muted-foreground ttw:hover:text-foreground",
77
- children: /* @__PURE__ */ a(f, { className: "ttw:size-4" })
78
- })
79
- ]
80
- }), r ? null : /* @__PURE__ */ a("div", {
81
- className: "ttw:max-h-96 ttw:overflow-y-auto",
82
- children: e.map((e) => /* @__PURE__ */ o("div", { children: [e.caption ? /* @__PURE__ */ a("p", {
83
- className: "ttw:px-4 ttw:pt-3 ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
84
- children: e.caption
85
- }) : null, e.items.map((e) => /* @__PURE__ */ a(h, {
86
- item: e,
87
- labels: p
88
- }, e.id))] }, e.id))
89
- })]
19
+ return /* @__PURE__ */ a(e, {
20
+ className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
21
+ "data-testid": u,
22
+ children: [
23
+ /* @__PURE__ */ i(o, {}),
24
+ /* @__PURE__ */ a(t, {
25
+ className: "ttw:flex-1",
26
+ children: [
27
+ f.messagePrefix,
28
+ p,
29
+ f.messageSuffix
30
+ ]
31
+ }),
32
+ s ? /* @__PURE__ */ i(n, {
33
+ type: "button",
34
+ variant: "outline",
35
+ className: "ttw:text-foreground",
36
+ onClick: s,
37
+ children: f.notADuplicateButton
38
+ }) : null,
39
+ c ? /* @__PURE__ */ i(n, {
40
+ type: "button",
41
+ variant: "destructive",
42
+ onClick: c,
43
+ children: f.removeBillButton
44
+ }) : null
45
+ ]
90
46
  });
91
47
  }
92
48
  //#endregion
93
- export { g as BillUploadStatusTray, g as default };
49
+ export { s as BillDuplicateNotice, s as default };
@@ -0,0 +1,2 @@
1
+ import "./index56.js";
2
+ import "./index57.js";
@@ -1,2 +1,14 @@
1
- import "./index55.js";
2
- import "./index57.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js
2
+ var e = {
3
+ Vendor: "vendor",
4
+ DueDate: "dueDate",
5
+ ScheduledDate: "scheduledDate",
6
+ PaidDate: "paidDate",
7
+ Status: "status",
8
+ AmountDue: "amountDue",
9
+ AmountScheduled: "amountScheduled",
10
+ AmountPaid: "amountPaid",
11
+ AddedOn: "addedOn"
12
+ };
13
+ //#endregion
14
+ export { e as BillColumn };
@@ -1,7 +1,280 @@
1
+ import { Alert as e, AlertTitle as t, Button as n, DataTable as r, DataTableSortableHeader as i, Input as a, Tabs as ee, TabsContent as te, TabsList as ne, TabsTrigger as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { EmptyState as s } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
+ import { ErrorState as c } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
+ import "../../../shared/ui/dist/index.js";
5
+ import { AddBillPanel as l } from "./index7.js";
6
+ import "./index8.js";
7
+ import { BillStatusBadge as re } from "./index20.js";
8
+ import "./index21.js";
9
+ import { MissingValue as u } from "./index50.js";
10
+ import "./index51.js";
11
+ import { BILLS_SCREEN_LABELS_EN as d, BILLS_SCREEN_UPLOAD_ACCEPT as f } from "./index52.js";
12
+ import { BillDuplicateBadge as ie } from "./index54.js";
13
+ import "./index55.js";
14
+ import { BillColumn as p } from "./index59.js";
15
+ import { useMemo as m } from "react";
16
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
17
+ import { ChevronRightIcon as _, CopyX as v, PlusIcon as y, SearchIcon as b } from "lucide-react";
1
18
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js
2
- var e = {
3
- message: "Data extracted automatically — please review all details to make sure they match",
4
- dismiss: "Dismiss this notice"
5
- };
19
+ var ae = [
20
+ 10,
21
+ 25,
22
+ 50,
23
+ 100
24
+ ], oe = [
25
+ p.Vendor,
26
+ p.DueDate,
27
+ p.ScheduledDate,
28
+ p.PaidDate,
29
+ p.Status,
30
+ p.AmountDue,
31
+ p.AmountScheduled,
32
+ p.AmountPaid,
33
+ p.AddedOn
34
+ ], x = [
35
+ p.Vendor,
36
+ p.DueDate,
37
+ p.Status,
38
+ p.AmountDue,
39
+ p.AddedOn
40
+ ];
41
+ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce, pageSize: le, onPageSizeChange: ue, pageSizeOptions: T = ae, pageInfo: E, hasNextPage: D, hasPrevPage: O, onNextPage: k, onPrevPage: A, filterTabs: j, selectedFilterTabId: M, onFilterTabChange: N, searchValue: P, onSearchChange: F, visibleColumns: I = x, isSearchActive: L, showAddPanelWhenEmpty: R, emptyState: z, onCreateClick: B, onRetry: V, onFilesSelected: H, maxFiles: U, onEnterManually: W, uploadStatus: G, uploadErrorMessage: K, emailAddress: q, onCopyEmail: J, labels: Y, duplicateWarning: X, onReviewDuplicates: Z }) {
42
+ let Q = m(() => ({
43
+ ...d,
44
+ ...Y,
45
+ statusBadge: {
46
+ ...d.statusBadge,
47
+ ...Y?.statusBadge
48
+ },
49
+ addBill: {
50
+ ...d.addBill,
51
+ ...Y?.addBill,
52
+ dropzone: {
53
+ ...d.addBill.dropzone,
54
+ ...Y?.addBill?.dropzone
55
+ }
56
+ },
57
+ sortableHeader: {
58
+ ...d.sortableHeader,
59
+ ...Y?.sortableHeader
60
+ },
61
+ missingValue: {
62
+ ...d.missingValue,
63
+ ...Y?.missingValue
64
+ }
65
+ }), [Y]), $ = m(() => {
66
+ let e = (e) => function({ column: t }) {
67
+ return /* @__PURE__ */ h(i, {
68
+ column: t,
69
+ title: e,
70
+ labels: Q.sortableHeader
71
+ });
72
+ }, t = (e) => function({ row: t }) {
73
+ return t.original[e] || /* @__PURE__ */ h(u, { labels: Q.missingValue });
74
+ }, n = (e) => function({ row: t }) {
75
+ return /* @__PURE__ */ h("div", {
76
+ className: "ttw:text-right",
77
+ children: t.original[e] || /* @__PURE__ */ h(u, { labels: Q.missingValue })
78
+ });
79
+ }, r = (e) => function() {
80
+ return /* @__PURE__ */ h("div", {
81
+ className: "ttw:text-right",
82
+ children: e
83
+ });
84
+ };
85
+ return {
86
+ [p.Vendor]: {
87
+ accessorKey: "vendorLabel",
88
+ enableSorting: !0,
89
+ header: e(Q.columnVendor),
90
+ cell: t("vendorLabel")
91
+ },
92
+ [p.DueDate]: {
93
+ accessorKey: "dueDateLabel",
94
+ enableSorting: !0,
95
+ header: e(Q.columnDueDate),
96
+ cell: t("dueDateLabel")
97
+ },
98
+ [p.ScheduledDate]: {
99
+ accessorKey: "scheduledDateLabel",
100
+ enableSorting: !0,
101
+ header: e(Q.columnScheduledDate),
102
+ cell: t("scheduledDateLabel")
103
+ },
104
+ [p.PaidDate]: {
105
+ accessorKey: "paidDateLabel",
106
+ enableSorting: !1,
107
+ header: Q.columnPaidDate,
108
+ cell: t("paidDateLabel")
109
+ },
110
+ [p.Status]: {
111
+ accessorKey: "status",
112
+ enableSorting: !1,
113
+ header: Q.columnStatus,
114
+ cell: ({ row: e }) => /* @__PURE__ */ g("div", {
115
+ className: "ttw:flex ttw:items-center ttw:gap-1",
116
+ children: [/* @__PURE__ */ h(re, {
117
+ status: e.original.status,
118
+ tone: e.original.statusTone,
119
+ labels: Q.statusBadge
120
+ }), e.original.duplicateBadge ? /* @__PURE__ */ h(ie, { ...e.original.duplicateBadge }) : null]
121
+ })
122
+ },
123
+ [p.AmountDue]: {
124
+ accessorKey: "amountDueLabel",
125
+ enableSorting: !1,
126
+ header: r(Q.columnAmountDue),
127
+ cell: n("amountDueLabel")
128
+ },
129
+ [p.AmountScheduled]: {
130
+ accessorKey: "amountScheduledLabel",
131
+ enableSorting: !1,
132
+ header: r(Q.columnAmountScheduled),
133
+ cell: n("amountScheduledLabel")
134
+ },
135
+ [p.AmountPaid]: {
136
+ accessorKey: "amountPaidLabel",
137
+ enableSorting: !1,
138
+ header: r(Q.columnAmountPaid),
139
+ cell: n("amountPaidLabel")
140
+ },
141
+ [p.AddedOn]: {
142
+ accessorKey: "addedOnLabel",
143
+ enableSorting: !0,
144
+ header: e(Q.columnAddedOn),
145
+ cell: t("addedOnLabel")
146
+ }
147
+ };
148
+ }, [Q]), de = m(() => [...oe.filter((e) => I.includes(e)).map((e) => $[e]), {
149
+ id: "actions",
150
+ enableSorting: !1,
151
+ header: () => /* @__PURE__ */ h("span", {
152
+ className: "ttw:sr-only",
153
+ children: Q.columnActions
154
+ }),
155
+ cell: ({ row: e }) => /* @__PURE__ */ h("div", {
156
+ className: "ttw:flex ttw:justify-end",
157
+ children: /* @__PURE__ */ h(n, {
158
+ variant: "ghost",
159
+ size: "icon",
160
+ "aria-label": Q.openRow(e.original.vendorLabel || Q.missingValue.missing),
161
+ onClick: (t) => {
162
+ t.stopPropagation(), e.original.onOpen();
163
+ },
164
+ children: /* @__PURE__ */ h(_, { className: "ttw:size-4" })
165
+ })
166
+ })
167
+ }], [
168
+ $,
169
+ Q,
170
+ I
171
+ ]), fe = !!(B && H) && !C && !w && !L && S.length === 0 && R === !0, pe = /* @__PURE__ */ h("div", {
172
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
173
+ children: /* @__PURE__ */ g("div", {
174
+ className: "ttw:relative ttw:w-80",
175
+ children: [/* @__PURE__ */ h(b, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ h(a, {
176
+ className: "ttw:pl-9",
177
+ type: "search",
178
+ "aria-label": Q.searchLabel,
179
+ placeholder: Q.searchPlaceholder,
180
+ value: P,
181
+ onChange: (e) => F(e.target.value)
182
+ })]
183
+ })
184
+ });
185
+ return /* @__PURE__ */ g("div", {
186
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
187
+ children: [X ? /* @__PURE__ */ g(e, {
188
+ className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
189
+ children: [
190
+ /* @__PURE__ */ h(v, {}),
191
+ /* @__PURE__ */ h(t, {
192
+ className: "ttw:flex-1",
193
+ children: X
194
+ }),
195
+ Z ? /* @__PURE__ */ h(n, {
196
+ type: "button",
197
+ variant: "outline",
198
+ className: "ttw:text-foreground",
199
+ onClick: Z,
200
+ children: Q.duplicateBillsReviewButton
201
+ }) : null
202
+ ]
203
+ }) : null, /* @__PURE__ */ g(ee, {
204
+ value: M,
205
+ onValueChange: N,
206
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
207
+ children: [/* @__PURE__ */ g("div", {
208
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
209
+ children: [/* @__PURE__ */ h(ne, {
210
+ "aria-label": Q.filterTabsLabel,
211
+ children: j.map((e) => /* @__PURE__ */ g(o, {
212
+ value: e.id,
213
+ className: "ttw:min-w-28",
214
+ children: [e.icon, e.label]
215
+ }, e.id))
216
+ }), B ? /* @__PURE__ */ g(n, {
217
+ onClick: B,
218
+ children: [/* @__PURE__ */ h(y, { className: "ttw:size-4" }), Q.createButton]
219
+ }) : null]
220
+ }), (() => {
221
+ let e = w ? /* @__PURE__ */ h(c, {
222
+ title: Q.errorTitle,
223
+ description: Q.errorDescription,
224
+ retryLabel: V ? Q.errorRetry : void 0,
225
+ onRetry: V
226
+ }) : fe && B && H ? /* @__PURE__ */ h("div", {
227
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
228
+ children: q && J ? /* @__PURE__ */ h(l, {
229
+ emailAddress: q,
230
+ onCopyEmail: J,
231
+ onFilesSelected: H,
232
+ accept: f,
233
+ maxFiles: U,
234
+ uploadStatus: G,
235
+ uploadErrorMessage: K,
236
+ onEnterManually: W ?? B,
237
+ labels: Q.addBill
238
+ }) : /* @__PURE__ */ h(l, {
239
+ onFilesSelected: H,
240
+ accept: f,
241
+ maxFiles: U,
242
+ uploadStatus: G,
243
+ uploadErrorMessage: K,
244
+ onEnterManually: W ?? B,
245
+ labels: Q.addBill
246
+ })
247
+ }) : /* @__PURE__ */ h(r, {
248
+ columns: de,
249
+ data: S,
250
+ isLoading: C,
251
+ sorting: se,
252
+ onSortingChange: ce,
253
+ pageSize: le,
254
+ onPageSizeChange: ue,
255
+ pageSizeOptions: T,
256
+ pageInfo: E,
257
+ hasNextPage: D,
258
+ hasPrevPage: O,
259
+ onNextPage: k,
260
+ onPrevPage: A,
261
+ onRowClick: (e) => e.onOpen(),
262
+ filterComponent: pe,
263
+ children: L ? /* @__PURE__ */ h(s, {
264
+ title: Q.filteredEmptyTitle,
265
+ description: Q.filteredEmptyDescription
266
+ }) : z ? /* @__PURE__ */ h(s, {
267
+ title: z.title,
268
+ description: z.description
269
+ }) : void 0
270
+ });
271
+ return j.map((t) => /* @__PURE__ */ h(te, {
272
+ value: t.id,
273
+ children: t.id === M ? e : null
274
+ }, t.id));
275
+ })()]
276
+ })]
277
+ });
278
+ }
6
279
  //#endregion
7
- export { e as EXTRACTION_NOTICE_LABELS_EN };
280
+ export { S as BillsScreen, S as default, x as DEFAULT_BILL_COLUMNS };
@@ -1,30 +1,10 @@
1
- import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index60.js";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { Info as r, X as i } from "lucide-react";
4
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js
5
- function a({ onDismiss: a, testId: o, labels: s }) {
6
- let c = {
7
- ...e,
8
- ...s
9
- };
10
- return /* @__PURE__ */ n("div", {
11
- className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:border-primary/30 ttw:bg-primary/5 ttw:px-3 ttw:py-2.5",
12
- "data-testid": o,
13
- children: [
14
- /* @__PURE__ */ t(r, { className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-primary" }),
15
- /* @__PURE__ */ t("p", {
16
- className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
17
- children: c.message
18
- }),
19
- /* @__PURE__ */ t("button", {
20
- type: "button",
21
- onClick: a,
22
- "aria-label": c.dismiss,
23
- className: "ttw:shrink-0 ttw:text-muted-foreground ttw:hover:text-foreground",
24
- children: /* @__PURE__ */ t(i, { className: "ttw:size-4" })
25
- })
26
- ]
27
- });
28
- }
2
+ var e = {
3
+ collapse: "Collapse upload status",
4
+ expand: "Expand upload status",
5
+ close: "Close upload status",
6
+ statusLabel: (e) => e === "uploading" ? "Uploading" : e === "ready" ? "Ready" : "Failed",
7
+ openItem: (e) => `Open ${e}`
8
+ };
29
9
  //#endregion
30
- export { a as ExtractionNotice, a as default };
10
+ export { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
@@ -1,2 +1,8 @@
1
- import "./index60.js";
2
- import "./index61.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js
2
+ var e = {
3
+ uploading: "ttw:text-muted-foreground",
4
+ ready: "ttw:text-emerald-600",
5
+ failed: "ttw:text-destructive"
6
+ };
7
+ //#endregion
8
+ export { e as UPLOAD_ITEM_ICON_TONE };
@@ -1,7 +1,93 @@
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index61.js";
3
+ import { UPLOAD_ITEM_ICON_TONE as n } from "./index62.js";
4
+ import { useId as r } from "react";
5
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u, Loader2 as d, X as f, XCircle as p } from "lucide-react";
1
7
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js
2
- var e = {
3
- revealValue: "Show value",
4
- hideValue: "Hide value"
5
- };
8
+ function m({ status: t }) {
9
+ let r = e("ttw:size-4", n[t]);
10
+ return t === "uploading" ? /* @__PURE__ */ a(d, {
11
+ "aria-hidden": !0,
12
+ className: e(r, "ttw:animate-spin")
13
+ }) : a(t === "ready" ? s : p, {
14
+ "aria-hidden": !0,
15
+ className: r
16
+ });
17
+ }
18
+ function h({ item: t, labels: n }) {
19
+ let s = r(), c = /* @__PURE__ */ o(i, { children: [
20
+ /* @__PURE__ */ a(m, { status: t.status }),
21
+ /* @__PURE__ */ a("span", {
22
+ id: s,
23
+ className: "ttw:sr-only",
24
+ children: n.statusLabel(t.status)
25
+ }),
26
+ /* @__PURE__ */ a("span", {
27
+ className: "ttw:flex-1 ttw:truncate ttw:text-left ttw:text-sm ttw:text-foreground",
28
+ children: t.fileName
29
+ }),
30
+ t.onOpen ? /* @__PURE__ */ a(l, {
31
+ "aria-hidden": !0,
32
+ className: "ttw:size-4"
33
+ }) : null
34
+ ] }), u = "ttw:flex ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-2.5";
35
+ return t.onOpen ? /* @__PURE__ */ a("button", {
36
+ type: "button",
37
+ onClick: t.onOpen,
38
+ "aria-describedby": s,
39
+ "aria-label": n.openItem(t.fileName),
40
+ className: e(u, "ttw:w-full ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-muted/50 ttw:hover:text-foreground"),
41
+ children: c
42
+ }) : /* @__PURE__ */ a("div", {
43
+ "aria-describedby": s,
44
+ className: u,
45
+ children: c
46
+ });
47
+ }
48
+ function g({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
49
+ let p = {
50
+ ...t,
51
+ ...d
52
+ };
53
+ return /* @__PURE__ */ o("div", {
54
+ className: "ttw:fixed ttw:right-4 ttw:bottom-4 ttw:z-50 ttw:w-96 ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
55
+ "data-testid": l,
56
+ children: [/* @__PURE__ */ o("div", {
57
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-b ttw:border-border ttw:bg-muted/40 ttw:px-4 ttw:py-3",
58
+ children: [
59
+ /* @__PURE__ */ a("span", {
60
+ "aria-live": "polite",
61
+ className: "ttw:flex-1 ttw:text-base ttw:font-semibold ttw:text-foreground",
62
+ children: n
63
+ }),
64
+ /* @__PURE__ */ a("button", {
65
+ type: "button",
66
+ onClick: i,
67
+ "aria-label": r ? p.expand : p.collapse,
68
+ "aria-expanded": !r,
69
+ className: "ttw:text-muted-foreground ttw:hover:text-foreground",
70
+ children: a(r ? u : c, { className: "ttw:size-4" })
71
+ }),
72
+ /* @__PURE__ */ a("button", {
73
+ type: "button",
74
+ onClick: s,
75
+ "aria-label": p.close,
76
+ className: "ttw:text-muted-foreground ttw:hover:text-foreground",
77
+ children: /* @__PURE__ */ a(f, { className: "ttw:size-4" })
78
+ })
79
+ ]
80
+ }), r ? null : /* @__PURE__ */ a("div", {
81
+ className: "ttw:max-h-96 ttw:overflow-y-auto",
82
+ children: e.map((e) => /* @__PURE__ */ o("div", { children: [e.caption ? /* @__PURE__ */ a("p", {
83
+ className: "ttw:px-4 ttw:pt-3 ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
84
+ children: e.caption
85
+ }) : null, e.items.map((e) => /* @__PURE__ */ a(h, {
86
+ item: e,
87
+ labels: p
88
+ }, e.id))] }, e.id))
89
+ })]
90
+ });
91
+ }
6
92
  //#endregion
7
- export { e as REVEALABLE_FIELD_LABELS_EN };
93
+ export { g as BillUploadStatusTray, g as default };
@@ -1,2 +1,2 @@
1
+ import "./index61.js";
1
2
  import "./index63.js";
2
- import "./index64.js";
@@ -1,12 +1,18 @@
1
- import { REVEALABLE_FIELD_LABELS_EN as e } from "./index63.js";
2
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js
3
- var t = {
4
- title: "Review transaction",
5
- hiddenDescription: "Review the payment before submitting it.",
6
- payToHeading: "Pay to",
7
- backButton: "Back",
8
- submitButton: "Submit",
9
- ...e
2
+ var e = {
3
+ title: "Possible duplicate files",
4
+ descriptionFirstLine: "The following bills may be duplicates of each other.",
5
+ descriptionSecondLine: "You can keep or remove duplicates, or view them for more detail before making a decision.",
6
+ selectAllRows: "Select all bills",
7
+ columnDuplicate: "Duplicate?",
8
+ columnVendor: "Vendor",
9
+ columnInvoiceNumber: "Invoice number",
10
+ columnAmount: "Amount",
11
+ columnInvoiceDate: "Invoice date",
12
+ columnAddedOn: "Added on",
13
+ columnActions: "Actions",
14
+ keepSelectedButton: "Keep selected files",
15
+ cancelDuplicatesButton: "Cancel duplicates"
10
16
  };
11
17
  //#endregion
12
- export { t as REVIEW_TRANSACTION_DIALOG_LABELS_EN };
18
+ export { e as DUPLICATE_BILLS_DIALOG_LABELS_EN };