@tesouro/embedded-components-react 0.9.22 → 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
@@ -1,169 +1,152 @@
1
- import { Alert as e, AlertTitle as t, Badge as n, Button as r, cn as i } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillStatusBadge as a } from "../../../../shared/document-status/ui/dist/index4.js";
1
+ import { Badge as e, Button as t, Skeleton as n, cn as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BillStatusBadge as i } from "../../../../shared/document-status/ui/dist/index4.js";
3
3
  import "../../../../shared/document-status/ui/dist/index.js";
4
- import { BillOverflowMenu as o } from "../../../ui/dist/index7.js";
4
+ import { BillDuplicateWarning as a } from "../../../ui/dist/index6.js";
5
5
  import "../../../ui/dist/index.js";
6
- import { BILL_DUPLICATE_NOTICE_LABELS_EN as s } from "./index36.js";
7
- import { useState as c } from "react";
8
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
9
- import { FileQuestionIcon as d, MoveDiagonal2Icon as f } from "lucide-react";
6
+ import { BILL_DUPLICATE_NOTICE_LABELS_EN as o } from "./index36.js";
7
+ import { useState as s } from "react";
8
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
9
+ import { MoveDiagonal2Icon as d } from "lucide-react";
10
10
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js
11
- var p = {
12
- success: "ttw:text-green-700",
13
- warning: "ttw:text-amber-800"
14
- }, m = "ttw:grid-cols-[minmax(220px,1.5fr)_minmax(110px,1fr)_minmax(88px,1fr)_minmax(96px,1fr)_minmax(96px,1fr)_minmax(112px,1fr)_48px]", h = "ttw:grid-cols-[minmax(220px,1.5fr)_minmax(110px,1fr)_minmax(88px,1fr)_minmax(96px,1fr)_minmax(96px,1fr)_minmax(112px,1fr)]";
15
- function g({ onNotADuplicate: g, onRemoveBill: _, onOpenFullScreen: v, isActionDisabled: y, rows: b, collapsedRowCount: x, showMoreLabel: S, testId: C, labels: w }) {
16
- let T = {
17
- ...s,
18
- ...w
19
- }, E = !!b?.length, [D, O] = c(!1), k = x !== void 0 && !!S && (b?.length ?? 0) > x, A = k && !D ? b?.slice(0, x) : b;
20
- return E ? /* @__PURE__ */ u("div", {
21
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:rounded-lg ttw:border ttw:border-amber-500 ttw:bg-amber-50 ttw:p-2 ttw:text-amber-700",
22
- "data-testid": C,
23
- children: [/* @__PURE__ */ u("div", {
24
- className: "ttw:flex ttw:items-center ttw:gap-2",
25
- children: [/* @__PURE__ */ l(d, {
26
- className: "ttw:size-4 ttw:shrink-0",
27
- "aria-hidden": !0
28
- }), /* @__PURE__ */ l("p", {
29
- className: "ttw:text-sm ttw:leading-5",
30
- children: T.message
31
- })]
32
- }), /* @__PURE__ */ u("div", {
33
- className: "ttw:overflow-x-auto ttw:rounded-md ttw:border ttw:border-amber-200",
11
+ var f = "ttw:border-b ttw:border-warning/40 ttw:px-2 ttw:py-2.5 ttw:text-foreground", p = "ttw:border-b ttw:border-warning/40 ttw:px-2 ttw:py-1.5 ttw:text-left ttw:text-xs ttw:font-medium ttw:text-foreground", m = [
12
+ "ttw:w-24",
13
+ "ttw:w-20",
14
+ "ttw:ml-auto ttw:w-16",
15
+ "ttw:w-20"
16
+ ], h = 2;
17
+ function g({ message: g, onNotADuplicate: _, onRemoveBill: v, isRemoveBillDestructive: y = !0, onOpenFullScreen: b, isActionDisabled: x, rows: S, isLoading: C, loadingRowCount: w = h, collapsedRowCount: T, showMoreLabel: E, testId: D, labels: O }) {
18
+ let k = {
19
+ ...o,
20
+ ...O
21
+ }, A = !!S?.length, j = !A && C === !0, [M, N] = s(!1), P = T !== void 0 && !!E && (S?.length ?? 0) > T, F = P && !M ? S?.slice(0, T) : S, I = _ || v ? /* @__PURE__ */ u(c, { children: [_ ? /* @__PURE__ */ l(t, {
22
+ type: "button",
23
+ variant: "outline",
24
+ size: "sm",
25
+ className: "ttw:bg-background ttw:text-foreground ttw:hover:bg-muted",
26
+ disabled: x,
27
+ onClick: _,
28
+ children: k.notADuplicateButton
29
+ }) : null, v ? /* @__PURE__ */ l(t, {
30
+ type: "button",
31
+ variant: y ? "destructive" : "outline",
32
+ size: "sm",
33
+ className: r(!y && "ttw:bg-background ttw:text-foreground ttw:hover:bg-muted"),
34
+ disabled: x,
35
+ onClick: v,
36
+ children: k.removeBillButton
37
+ }) : null] }) : null;
38
+ return A || j ? /* @__PURE__ */ l(a, {
39
+ message: g ?? k.message,
40
+ testId: D,
41
+ details: /* @__PURE__ */ u("div", {
42
+ className: "ttw:overflow-x-auto",
43
+ "aria-busy": j || void 0,
34
44
  children: [
35
- /* @__PURE__ */ u("div", {
36
- className: i("ttw:grid ttw:min-w-240 ttw:border-b ttw:border-amber-200 ttw:text-xs ttw:font-semibold ttw:text-amber-700", m),
37
- children: [
38
- /* @__PURE__ */ l("div", {
39
- className: "ttw:px-3 ttw:py-2",
40
- children: T.vendorColumn
41
- }),
42
- /* @__PURE__ */ l("div", {
43
- className: "ttw:px-3 ttw:py-2",
44
- children: T.invoiceNumberColumn
45
- }),
46
- /* @__PURE__ */ l("div", {
47
- className: "ttw:px-3 ttw:py-2 ttw:text-right",
48
- children: T.amountColumn
45
+ /* @__PURE__ */ u("table", {
46
+ className: "ttw:w-full ttw:min-w-120 ttw:border-collapse ttw:text-sm",
47
+ children: [/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ u("tr", { children: [
48
+ /* @__PURE__ */ l("th", {
49
+ scope: "col",
50
+ className: p,
51
+ children: k.createdOnColumn
49
52
  }),
50
- /* @__PURE__ */ l("div", {
51
- className: "ttw:px-3 ttw:py-2",
52
- children: T.addedOnColumn
53
+ /* @__PURE__ */ l("th", {
54
+ scope: "col",
55
+ className: p,
56
+ children: k.dueDateColumn
53
57
  }),
54
- /* @__PURE__ */ l("div", {
55
- className: "ttw:px-3 ttw:py-2",
56
- children: T.dueDateColumn
58
+ /* @__PURE__ */ l("th", {
59
+ scope: "col",
60
+ className: r(p, "ttw:text-right"),
61
+ children: k.amountColumn
57
62
  }),
58
- /* @__PURE__ */ l("div", {
59
- className: "ttw:px-3 ttw:py-2",
60
- children: T.statusColumn
61
- }),
62
- /* @__PURE__ */ l("div", { className: "ttw:px-3 ttw:py-2" })
63
- ]
63
+ /* @__PURE__ */ l("th", {
64
+ scope: "col",
65
+ className: p,
66
+ children: k.statusColumn
67
+ })
68
+ ] }) }), /* @__PURE__ */ u("tbody", { children: [j ? Array.from({ length: w }, (e, t) => /* @__PURE__ */ l("tr", {
69
+ "aria-hidden": !0,
70
+ children: m.map((e, t) => /* @__PURE__ */ l("td", {
71
+ className: f,
72
+ children: /* @__PURE__ */ l(n, { className: r("ttw:h-4", e) })
73
+ }, t))
74
+ }, t)) : null, F?.map((t) => {
75
+ let n = t.isCurrent ? void 0 : t.onOpen;
76
+ return /* @__PURE__ */ u("tr", {
77
+ "aria-current": t.isCurrent || void 0,
78
+ className: r(t.isCurrent && "ttw:bg-warning/10", n && "ttw:cursor-pointer ttw:hover:bg-muted/50 ttw:focus-visible:outline-2 ttw:focus-visible:-outline-offset-2 ttw:focus-visible:outline-ring"),
79
+ tabIndex: n ? 0 : void 0,
80
+ "aria-label": n ? t.openLabel : void 0,
81
+ onClick: n,
82
+ onKeyDown: (e) => {
83
+ n && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), n());
84
+ },
85
+ children: [
86
+ /* @__PURE__ */ l("td", {
87
+ className: f,
88
+ children: /* @__PURE__ */ u("span", {
89
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-2 ttw:gap-y-1",
90
+ children: [/* @__PURE__ */ l("span", { children: t.createdOnLabel }), t.badges?.map((t) => /* @__PURE__ */ l(e, {
91
+ variant: "secondary",
92
+ children: t
93
+ }, t))]
94
+ })
95
+ }),
96
+ /* @__PURE__ */ l("td", {
97
+ className: f,
98
+ children: t.dueDateLabel
99
+ }),
100
+ /* @__PURE__ */ l("td", {
101
+ className: r(f, "ttw:text-right"),
102
+ children: t.amountLabel
103
+ }),
104
+ /* @__PURE__ */ l("td", {
105
+ className: f,
106
+ children: t.status ? /* @__PURE__ */ l(i, {
107
+ status: t.status,
108
+ tone: t.statusTone ?? "neutral"
109
+ }) : null
110
+ })
111
+ ]
112
+ }, t.id);
113
+ })] })]
64
114
  }),
65
- A?.map((e) => /* @__PURE__ */ u("div", {
66
- className: i("ttw:group ttw:grid ttw:min-h-13 ttw:min-w-240 ttw:items-center ttw:border-b ttw:border-amber-200 ttw:text-sm ttw:text-foreground", m),
67
- children: [/* @__PURE__ */ u("button", {
68
- type: "button",
69
- className: i("ttw:col-span-6 ttw:grid ttw:items-center ttw:text-left ttw:transition-colors", h, e.onOpen ? "ttw:cursor-pointer ttw:hover:bg-amber-100 ttw:focus-visible:bg-amber-100" : "ttw:cursor-default"),
70
- "aria-disabled": !e.onOpen,
71
- tabIndex: e.onOpen ? 0 : -1,
72
- onClick: e.onOpen,
73
- children: [
74
- /* @__PURE__ */ u("span", {
75
- className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:items-start ttw:gap-1 ttw:px-3 ttw:py-2",
76
- children: [/* @__PURE__ */ l("span", {
77
- className: i("ttw:min-w-0 ttw:font-medium", e.roleTone && p[e.roleTone]),
78
- children: e.roleLabel
79
- }), e.badges?.length ? /* @__PURE__ */ l("span", {
80
- className: "ttw:flex ttw:flex-wrap ttw:gap-1",
81
- children: e.badges.map((e) => /* @__PURE__ */ l(n, {
82
- variant: "secondary",
83
- children: e
84
- }, e))
85
- }) : null]
86
- }),
87
- /* @__PURE__ */ l("span", {
88
- className: "ttw:px-3 ttw:py-2",
89
- children: e.invoiceNumberLabel
90
- }),
91
- /* @__PURE__ */ l("span", {
92
- className: "ttw:px-3 ttw:py-2 ttw:text-right",
93
- children: e.amountLabel
94
- }),
95
- /* @__PURE__ */ l("span", {
96
- className: "ttw:px-3 ttw:py-2",
97
- children: e.addedOnLabel
98
- }),
99
- /* @__PURE__ */ l("span", {
100
- className: "ttw:px-3 ttw:py-2",
101
- children: e.dueDateLabel
102
- }),
103
- /* @__PURE__ */ l("span", {
104
- className: "ttw:px-3 ttw:py-2",
105
- children: e.status ? /* @__PURE__ */ l(a, {
106
- status: e.status,
107
- tone: e.statusTone ?? "neutral"
108
- }) : null
109
- })
110
- ]
111
- }), /* @__PURE__ */ l("div", {
112
- className: "ttw:flex ttw:justify-end ttw:px-1 ttw:py-2",
113
- children: e.menu ? /* @__PURE__ */ l(o, {
114
- actions: e.menu.items.map((e) => ({
115
- ...e,
116
- variant: "ghost"
117
- })),
118
- triggerLabel: e.menu.triggerLabel
119
- }) : null
120
- })]
121
- }, e.id)),
122
- k && !D ? /* @__PURE__ */ l("button", {
115
+ j ? /* @__PURE__ */ l("span", {
116
+ className: "ttw:sr-only",
117
+ children: k.loadingRows
118
+ }) : null,
119
+ P && !M ? /* @__PURE__ */ l(t, {
123
120
  type: "button",
124
- className: "ttw:w-full ttw:px-3 ttw:py-2 ttw:text-center ttw:text-sm ttw:font-medium ttw:text-amber-800 ttw:hover:bg-amber-100 ttw:focus-visible:bg-amber-100",
125
- onClick: () => O(!0),
126
- children: S
121
+ variant: "link",
122
+ className: "ttw:mt-1 ttw:px-2",
123
+ onClick: () => N(!0),
124
+ children: E
127
125
  }) : null
128
126
  ]
129
- })]
130
- }) : /* @__PURE__ */ u(e, {
131
- className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
132
- "data-testid": C,
133
- children: [
134
- /* @__PURE__ */ l(d, {}),
135
- /* @__PURE__ */ l(t, {
136
- className: "ttw:flex-1",
137
- children: T.message
138
- }),
139
- g ? /* @__PURE__ */ l(r, {
140
- type: "button",
141
- variant: "outline",
142
- className: "ttw:text-foreground",
143
- disabled: y,
144
- onClick: g,
145
- children: T.notADuplicateButton
146
- }) : null,
147
- _ ? /* @__PURE__ */ l(r, {
148
- type: "button",
149
- variant: "destructive",
150
- disabled: y,
151
- onClick: _,
152
- children: T.removeBillButton
153
- }) : null,
154
- v ? /* @__PURE__ */ l(r, {
155
- type: "button",
156
- variant: "ghost",
157
- size: "icon",
158
- className: "ttw:text-foreground",
159
- "aria-label": T.openFullScreenButton,
160
- onClick: v,
161
- children: /* @__PURE__ */ l(f, {
162
- className: "ttw:size-4",
163
- "aria-hidden": !0
164
- })
165
- }) : null
166
- ]
127
+ }),
128
+ children: I && !j ? /* @__PURE__ */ u("div", {
129
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
130
+ children: [/* @__PURE__ */ l("span", {
131
+ className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
132
+ children: k.question
133
+ }), I]
134
+ }) : null
135
+ }) : /* @__PURE__ */ u(a, {
136
+ message: g ?? k.message,
137
+ testId: D,
138
+ children: [I, b ? /* @__PURE__ */ l(t, {
139
+ type: "button",
140
+ variant: "ghost",
141
+ size: "icon-sm",
142
+ className: "ttw:text-foreground",
143
+ "aria-label": k.openFullScreenButton,
144
+ onClick: b,
145
+ children: /* @__PURE__ */ l(d, {
146
+ className: "ttw:size-4",
147
+ "aria-hidden": !0
148
+ })
149
+ }) : null]
167
150
  });
168
151
  }
169
152
  //#endregion
@@ -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/bill-detail/ui/dist/index48.js
4
4
  var t = {
@@ -1,5 +1,5 @@
1
1
  import { Button as e, Skeleton as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillUploadDropzone as n } from "../../../ui/dist/index13.js";
2
+ import { BillUploadDropzone as n } from "../../../ui/dist/index15.js";
3
3
  import "../../../ui/dist/index.js";
4
4
  import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index48.js";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import { Badge as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { BILL_STATUS_TONE_CLASS_NAME as t } from "../../../../shared/document-status/ui/dist/index3.js";
3
3
  import "../../../../shared/document-status/ui/dist/index.js";
4
- import { DateDisclosure as n } from "../../../ui/dist/index16.js";
4
+ import { DateDisclosure as n } from "../../../ui/dist/index18.js";
5
5
  import "../../../ui/dist/index.js";
6
6
  import { jsx as r } from "react/jsx-runtime";
7
7
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js
@@ -1,8 +1,8 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js
2
2
  var e = {
3
3
  uploading: "ttw:text-muted-foreground",
4
- ready: "ttw:text-emerald-600",
5
- duplicate: "ttw:text-orange-600",
4
+ ready: "ttw:text-success",
5
+ duplicate: "ttw:text-warning",
6
6
  failed: "ttw:text-destructive"
7
7
  };
8
8
  //#endregion
@@ -66,11 +66,10 @@ function xe(e, t) {
66
66
  if (i.length === 0) continue;
67
67
  let c = i.map((e) => n.get(e)).filter((e) => !!e).sort(l), u = d(c), [ee] = c, f = {
68
68
  key: `duplicate-group:${[...i].sort().join(":")}`,
69
- headerLabel: t.groupHeader({
69
+ label: t.groupHeader({
70
70
  vendorLabel: te(ee),
71
71
  invoiceNumberLabel: ee?.document_id ?? ""
72
72
  }),
73
- memberCount: i.length,
74
73
  originalPayableId: u
75
74
  };
76
75
  for (let e of i) o.set(e, f);
@@ -94,40 +93,40 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
94
93
  ]), y(() => {
95
94
  R();
96
95
  }, [E, R]);
97
- let z = le({
98
- offersStatusFilter: D === h.All,
96
+ let z = E === C.PossibleDuplicates, B = le({
97
+ offersStatusFilter: D === h.All && !z,
99
98
  offersVendorFilter: l,
100
99
  isVendorFilterPaused: d,
101
100
  labels: ue,
102
101
  onFiltersChange: R
103
- }), { clearAll: Ie, filterByVendor: Le } = z, Re = Ae[0], B = se(Re?.id), ze = B ? Re?.desc ? "desc" : "asc" : void 0, V = E === C.PossibleDuplicates, H = V ? h.All : D, U = b(() => ({
104
- ...z.query,
105
- limit: V ? S : O,
106
- pagination_token: V ? void 0 : Ne,
107
- status__in: V ? void 0 : ae(H) ?? z.query.status__in,
108
- has_scheduled_payment: V ? void 0 : re(H),
109
- duplicate_match_status: V ? "suspected" : void 0,
102
+ }), { clearAll: Ie, filterByVendor: Le } = B, Re = Ae[0], V = se(Re?.id), ze = V ? Re?.desc ? "desc" : "asc" : void 0, H = z ? h.All : D, U = b(() => ({
103
+ ...B.query,
104
+ limit: z ? S : O,
105
+ pagination_token: z ? void 0 : Ne,
106
+ status__in: z ? void 0 : ae(H) ?? B.query.status__in,
107
+ has_scheduled_payment: z ? void 0 : re(H),
108
+ duplicate_match_status: z ? "suspected" : void 0,
110
109
  counterpart_name__icontains: N || void 0,
111
- sort: B,
110
+ sort: V,
112
111
  order: ze
113
112
  }), [
114
- z.query,
113
+ B.query,
115
114
  O,
116
115
  Ne,
117
- V,
116
+ z,
118
117
  H,
119
118
  N,
120
- B,
119
+ V,
121
120
  ze
122
121
  ]), { organizationId: Be } = r(), W = JSON.stringify([Be, U]), G = pe({
123
122
  ...U,
124
- enabled: c && !V,
123
+ enabled: c && !z,
125
124
  pollWhileOcrProcessing: !0
126
125
  }), K = fe({
127
126
  ...U,
128
- enabled: c && V,
127
+ enabled: c && z,
129
128
  maxPages: ye
130
- }), q = V ? {
129
+ }), q = z ? {
131
130
  ...K,
132
131
  data: { data: K.payables },
133
132
  isLoading: K.isResolving,
@@ -198,10 +197,15 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
198
197
  return J.forEach((t, n) => {
199
198
  let r = Q.get(t.id)?.key;
200
199
  r !== void 0 && !e.has(r) && e.set(r, n);
201
- }), J.map((t, n) => ({
202
- payable: t,
203
- order: e.get(Q.get(t.id)?.key ?? "") ?? n
204
- })).sort((e, t) => e.order - t.order).map(({ payable: e }) => e);
200
+ }), J.map((t, n) => {
201
+ let r = Q.get(t.id);
202
+ return {
203
+ payable: t,
204
+ index: n,
205
+ order: e.get(r?.key ?? "") ?? n,
206
+ leads: r?.originalPayableId === t.id ? 0 : 1
207
+ };
208
+ }).sort((e, t) => e.order - t.order || e.leads - t.leads || e.index - t.index).map(({ payable: e }) => e);
205
209
  }, [J, Q]), { vendorNames: Ze, lookup: Qe } = de({
206
210
  payables: q.data?.data,
207
211
  enabled: c,
@@ -212,7 +216,7 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
212
216
  apiStatus: e.status,
213
217
  dueDate: e.due_date,
214
218
  scheduledPaymentDate: e.scheduled_payment_date
215
- }), i = e.amount_due ?? e.total_amount, a = e.status === "partially_paid" || e.status === "paid", c = (t) => t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" }), l = o(e.scheduled_payment_date, De, Oe), u = Q.get(e.id), d = s(e), p = te(e) || (e.counterpart_id ? Ze.get(e.counterpart_id) ?? "" : ""), m = e.document_id ?? "", g = f(e.status), _ = u?.originalPayableId !== void 0 && u.originalPayableId === e.id, re = V && d && Ee && u ? {
219
+ }), i = e.amount_due ?? e.total_amount, a = e.status === "partially_paid" || e.status === "paid", c = (t) => t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" }), l = o(e.scheduled_payment_date, De, Oe), u = Q.get(e.id), d = s(e), p = te(e) || (e.counterpart_id ? Ze.get(e.counterpart_id) ?? "" : ""), m = e.document_id ?? "", g = f(e.status), _ = u?.originalPayableId !== void 0 && u.originalPayableId === e.id, re = z && d && Ee && u ? {
216
220
  triggerLabel: T.menuTrigger({
217
221
  vendorLabel: p,
218
222
  invoiceNumberLabel: m
@@ -261,15 +265,15 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
261
265
  ...u ? {
262
266
  group: {
263
267
  key: u.key,
264
- headerLabel: u.headerLabel,
265
- memberCount: u.memberCount
268
+ label: u.label
266
269
  },
267
- groupedRowLabel: p,
268
- groupedRowLabelTone: void 0,
269
- groupedRowBadge: _ ? T.originalBill : void 0
270
+ ...u.originalPayableId !== void 0 && !_ ? {
271
+ isNested: !0,
272
+ groupedRowLabel: T.copyRow
273
+ } : {}
270
274
  } : {},
271
275
  ...re ? { menu: re } : {},
272
- ...!V && !u && d ? {
276
+ ...!z && !u && d ? {
273
277
  rowTone: "warning",
274
278
  rowNote: we
275
279
  } : {},
@@ -282,7 +286,7 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
282
286
  Z,
283
287
  Y.isPending,
284
288
  Ee,
285
- V,
289
+ z,
286
290
  we,
287
291
  Te,
288
292
  De,
@@ -291,7 +295,7 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
291
295
  H,
292
296
  Ze,
293
297
  Qe
294
- ]), et = b(() => V ? Se($e, S) : [], [$e, V]), $ = Math.min(Pe, Math.max(0, et.length - 1)), tt = V ? et[$] ?? [] : $e, nt = v((e) => {
298
+ ]), et = b(() => z ? Se($e, S) : [], [$e, z]), $ = Math.min(Pe, Math.max(0, et.length - 1)), tt = z ? et[$] ?? [] : $e, nt = v((e) => {
295
299
  let t = e;
296
300
  ke(t), je((e) => {
297
301
  let n = e[0]?.id;
@@ -306,24 +310,24 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
306
310
  }, [R]), ot = v((e) => {
307
311
  Me(e), R();
308
312
  }, [R]), st = v(() => {
309
- if (V) {
313
+ if (z) {
310
314
  A($ + 1);
311
315
  return;
312
316
  }
313
317
  k(G.data?.next_pagination_token ?? void 0);
314
318
  }, [
315
319
  $,
316
- V,
320
+ z,
317
321
  G.data?.next_pagination_token
318
322
  ]), ct = v(() => {
319
- if (V) {
323
+ if (z) {
320
324
  A(Math.max(0, $ - 1));
321
325
  return;
322
326
  }
323
327
  k(G.data?.prev_pagination_token ?? void 0);
324
328
  }, [
325
329
  $,
326
- V,
330
+ z,
327
331
  G.data?.prev_pagination_token
328
332
  ]), lt = v(() => {
329
333
  q.refetch();
@@ -340,23 +344,24 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
340
344
  searchValue: j,
341
345
  onSearchChange: M,
342
346
  hasAnyBills: Ye,
343
- isSearchActive: N.length > 0 || z.isFilterActive || V,
344
- filterBarProps: z.filterBarProps,
345
- visibleColumns: V ? [
347
+ isSearchActive: N.length > 0 || B.isFilterActive,
348
+ filterBarProps: B.filterBarProps,
349
+ visibleColumns: z ? [
346
350
  m.Vendor,
351
+ m.InvoiceNumber,
347
352
  m.AmountDue,
348
353
  m.DueDate,
349
354
  m.AddedOn,
350
355
  m.Status
351
356
  ] : _(D),
352
- showAddPanelWhenEmpty: !V && ie(D),
357
+ showAddPanelWhenEmpty: !z && ie(D),
353
358
  sorting: Ae,
354
359
  onSortingChange: at,
355
- pageSize: V ? S : O,
356
- pageSizeOptions: V ? [S] : void 0,
360
+ pageSize: z ? S : O,
361
+ pageSizeOptions: z ? [S] : void 0,
357
362
  onPageSizeChange: ot,
358
- hasNextPage: V ? $ < et.length - 1 : !!G.data?.next_pagination_token,
359
- hasPrevPage: V ? $ > 0 : !!G.data?.prev_pagination_token,
363
+ hasNextPage: z ? $ < et.length - 1 : !!G.data?.next_pagination_token,
364
+ hasPrevPage: z ? $ > 0 : !!G.data?.prev_pagination_token,
360
365
  onNextPage: st,
361
366
  onPrevPage: ct,
362
367
  cancelConfirmation: {