@tesouro/embedded-components-react 0.5.169 → 0.5.170

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 (129) hide show
  1. package/dist/index.css +39 -17
  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/data-access/dist/index.js +11 -11
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +95 -80
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +37 -11
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +13 -15
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +56 -67
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +4 -43
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +6 -115
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +202 -63
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +2 -4
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +84 -4
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -84
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +4 -5
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +32 -3
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +36 -30
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +167 -35
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +40 -164
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -49
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +50 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +11 -45
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -13
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +14 -8
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +59 -7
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -64
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +24 -8
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +150 -18
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +9 -152
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +25 -9
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +19 -21
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +32 -14
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +14 -39
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +8 -16
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +4 -8
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -4
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +68 -83
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -83
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +143 -3
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +44 -143
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +114 -45
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +189 -111
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +13 -0
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +72 -186
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +31 -76
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +89 -32
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +406 -83
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -411
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +84 -12
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +67 -72
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +222 -73
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +37 -223
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +245 -37
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +5 -23
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +23 -252
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +626 -21
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -586
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +45 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +256 -41
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -263
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +4 -3
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +44 -2
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -46
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +22 -57
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +11 -6
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +130 -11
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -132
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +6 -3
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +129 -3
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -124
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +7 -8
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +82 -8
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +19 -48
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -21
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +14 -6
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +28 -19
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +82 -27
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +47 -83
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +260 -47
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +24 -251
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +382 -25
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +294 -144
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +4 -223
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +7 -4
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +112 -5
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +37 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +1 -114
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +26 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -21
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +126 -10
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +1 -105
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +33 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +7 -28
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +126 -73
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +1 -1
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +11 -30
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +106 -8
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +2 -181
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +10 -2
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +50 -12
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +2 -108
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +6 -0
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +8 -4
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -1
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +154 -23
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +1 -0
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +343 -250
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +5 -123
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -26
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -94
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +7 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +32 -5
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +2 -30
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +12 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +104 -5
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +2 -34
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +31 -2
  121. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  122. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  123. package/dist/packages/shared-ui-shadcn/dist/index.js +2458 -2284
  124. package/package.json +2 -1
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +0 -27
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +0 -2
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +0 -10
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +0 -52
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +0 -2
@@ -1,125 +1,7 @@
1
- import { Button as e, Checkbox as t, Table as n, TableBody as r, TableCell as i, TableHead as a, TableHeader as o, TableRow as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillStatusBadge as c } from "./index21.js";
3
- import "./index22.js";
4
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
5
- import { Ban as d, ChevronRightIcon as f } from "lucide-react";
6
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js
7
- var p = "ttw:border-b ttw:border-border", m = `${p} ttw:whitespace-nowrap`, h = "ttw:gap-4", g = "ttw:gap-2.5";
8
- function _({ group: _, isBusy: v, labels: y }) {
9
- let b = _.isActionDisabled || v || _.isRemoveUnavailable, x = !!(_.onKeepSelected || _.onRemoveDuplicates);
10
- return /* @__PURE__ */ u("div", {
11
- className: `ttw:flex ttw:flex-col ${h}`,
12
- children: [/* @__PURE__ */ u(n, { children: [/* @__PURE__ */ l(o, { children: /* @__PURE__ */ u(s, { children: [
13
- x ? /* @__PURE__ */ l(a, {
14
- className: "ttw:w-11",
15
- children: /* @__PURE__ */ l(t, {
16
- "aria-label": _.selectAllLabel,
17
- checked: _.selectAllChecked ?? !1,
18
- disabled: v,
19
- onCheckedChange: _.onToggleAllRows
20
- })
21
- }) : null,
22
- /* @__PURE__ */ l(a, { children: y.columnInvoiceNumber }),
23
- /* @__PURE__ */ l(a, { children: y.columnAmount }),
24
- /* @__PURE__ */ l(a, { children: y.columnStatus }),
25
- /* @__PURE__ */ l(a, { children: y.columnDueDate }),
26
- /* @__PURE__ */ l(a, { children: y.columnAddedOn }),
27
- /* @__PURE__ */ l(a, {
28
- className: "ttw:w-14",
29
- children: /* @__PURE__ */ l("span", {
30
- className: "ttw:sr-only",
31
- children: y.columnActions
32
- })
33
- })
34
- ] }) }), /* @__PURE__ */ l(r, { children: _.rows.map((n) => /* @__PURE__ */ u(s, { children: [
35
- x ? /* @__PURE__ */ l(i, {
36
- className: p,
37
- children: /* @__PURE__ */ l(t, {
38
- "aria-label": n.selectLabel,
39
- checked: n.isSelected ?? !1,
40
- disabled: v,
41
- onCheckedChange: n.onToggleSelected
42
- })
43
- }) : null,
44
- /* @__PURE__ */ l(i, {
45
- className: m,
46
- children: n.invoiceNumberLabel
47
- }),
48
- /* @__PURE__ */ l(i, {
49
- className: m,
50
- children: n.amountLabel
51
- }),
52
- /* @__PURE__ */ l(i, {
53
- className: m,
54
- children: /* @__PURE__ */ u("div", {
55
- className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-0.5",
56
- children: [n.status && n.statusTone ? /* @__PURE__ */ l(c, {
57
- status: n.status,
58
- tone: n.statusTone,
59
- labels: y.statusBadge
60
- }) : null, n.removalOutcome ? /* @__PURE__ */ l("span", {
61
- className: "ttw:text-xs ttw:text-muted-foreground",
62
- children: n.removalOutcome === "delete" ? y.removalOutcomeDelete : y.removalOutcomeCancel
63
- }) : null]
64
- })
65
- }),
66
- /* @__PURE__ */ l(i, {
67
- className: m,
68
- children: n.dueDateLabel
69
- }),
70
- /* @__PURE__ */ l(i, {
71
- className: m,
72
- children: n.addedOnLabel
73
- }),
74
- /* @__PURE__ */ l(i, {
75
- className: p,
76
- children: /* @__PURE__ */ l("div", {
77
- className: "ttw:flex ttw:justify-end",
78
- children: /* @__PURE__ */ l(e, {
79
- variant: "ghost",
80
- size: "icon",
81
- "aria-label": n.openLabel,
82
- disabled: v,
83
- onClick: n.onOpen,
84
- children: /* @__PURE__ */ l(f, { className: "ttw:size-4" })
85
- })
86
- })
87
- })
88
- ] }, n.id)) })] }), /* @__PURE__ */ u("div", {
89
- className: "ttw:flex ttw:flex-col ttw:items-end ttw:gap-2",
90
- children: [/* @__PURE__ */ u("p", {
91
- className: "ttw:text-right ttw:text-sm ttw:text-muted-foreground",
92
- children: [
93
- y.removalHelperBeforeUnsubmitted,
94
- /* @__PURE__ */ l("span", {
95
- className: "ttw:font-semibold",
96
- children: y.removalHelperUnsubmitted
97
- }),
98
- y.removalHelperBetween,
99
- /* @__PURE__ */ l("span", {
100
- className: "ttw:font-semibold",
101
- children: y.removalHelperSubmitted
102
- }),
103
- y.removalHelperAfterSubmitted
104
- ]
105
- }), x ? /* @__PURE__ */ u("div", {
106
- className: `ttw:flex ttw:flex-wrap ttw:justify-end ${g}`,
107
- children: [_.onKeepSelected ? /* @__PURE__ */ l(e, {
108
- variant: "outline",
109
- disabled: _.isActionDisabled || v,
110
- loading: _.pendingAction === "keep",
111
- onClick: _.onKeepSelected,
112
- children: y.keepSelectedButton
113
- }) : null, _.onRemoveDuplicates ? /* @__PURE__ */ u(e, {
114
- variant: "destructive",
115
- disabled: b,
116
- loading: _.pendingAction === "remove",
117
- onClick: _.onRemoveDuplicates,
118
- children: [_.pendingAction === "remove" ? null : /* @__PURE__ */ l(d, {}), y.removeDuplicatesButton]
119
- }) : null]
120
- }) : null]
121
- })]
122
- });
123
- }
2
+ var e = {
3
+ message: "Data extracted automatically — please review all details to make sure they match",
4
+ dismiss: "Dismiss this notice"
5
+ };
124
6
  //#endregion
125
- export { _ as DuplicateBillsGroupPanel, _ as default };
7
+ export { e as EXTRACTION_NOTICE_LABELS_EN };
@@ -1,28 +1,30 @@
1
- import { BILL_STATUS_BADGE_LABELS_EN as e } from "./index20.js";
2
- import "./index22.js";
1
+ import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index90.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { Info as r, X as i } from "lucide-react";
3
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js
4
- var t = {
5
- title: "Possible duplicate files",
6
- descriptionFirstLine: "The following bills may be duplicates of each other.",
7
- descriptionSecondLine: "You can keep or remove duplicates, or view them for more detail before making a decision.",
8
- columnInvoiceNumber: "Invoice number",
9
- columnAmount: "Amount",
10
- columnStatus: "Status",
11
- columnDueDate: "Due date",
12
- columnAddedOn: "Added on",
13
- columnActions: "Actions",
14
- statusBadge: e,
15
- removalHelperBeforeUnsubmitted: "Removing duplicates deletes ",
16
- removalHelperUnsubmitted: "bills not yet submitted",
17
- removalHelperBetween: ", and cancels ",
18
- removalHelperSubmitted: "ones already submitted",
19
- removalHelperAfterSubmitted: ". This action cannot be undone.",
20
- removalOutcomeDelete: "Deletes this bill",
21
- removalOutcomeCancel: "Cancels this bill",
22
- keepSelectedButton: "Keep selected files as their own file",
23
- removeDuplicatesButton: "Remove selected duplicates",
24
- emptyState: "No possible duplicates left to review.",
25
- errorState: "Couldn't load the possible duplicates. Try again shortly."
26
- };
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
+ }
27
29
  //#endregion
28
- export { t as DUPLICATE_BILLS_DIALOG_LABELS_EN };
30
+ export { a as ExtractionNotice, a as default };
@@ -1,94 +1,2 @@
1
- import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r, Dialog as i, DialogContent as a, DialogDescription as o, DialogHeader as s, DialogTitle as c, Spinner as l } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { DUPLICATE_BILLS_DIALOG_LABELS_EN as u } from "./index91.js";
3
- import { DuplicateBillsGroupPanel as d } from "./index90.js";
4
- import { useMemo as f } from "react";
5
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
6
- import { CopyX as h } from "lucide-react";
7
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js
8
- function g({ open: g, onOpenChange: _, groups: v, isLoading: y, isError: b, expandedGroupId: x, onExpandedGroupChange: S, isBusy: C, labels: w }) {
9
- let T = f(() => ({
10
- ...u,
11
- ...w,
12
- statusBadge: {
13
- ...u.statusBadge,
14
- ...w?.statusBadge
15
- }
16
- }), [w]);
17
- return /* @__PURE__ */ p(i, {
18
- open: g,
19
- onOpenChange: (e) => {
20
- (!C || e) && _(e);
21
- },
22
- children: /* @__PURE__ */ m(a, {
23
- className: "ttw:flex ttw:flex-col ttw:gap-8 ttw:overflow-hidden ttw:max-h-[90vh] ttw:sm:max-w-240",
24
- showCloseButton: !C,
25
- children: [/* @__PURE__ */ m(s, {
26
- className: "ttw:items-center ttw:gap-3 ttw:text-center ttw:sm:text-center",
27
- children: [
28
- /* @__PURE__ */ p("div", {
29
- className: "ttw:flex ttw:items-center ttw:justify-center ttw:border ttw:rounded-full ttw:size-11 ttw:border-orange-300 ttw:bg-orange-200",
30
- children: /* @__PURE__ */ p(h, {
31
- className: "ttw:size-4 ttw:text-orange-950",
32
- "aria-hidden": !0
33
- })
34
- }),
35
- /* @__PURE__ */ p(c, { children: T.title }),
36
- /* @__PURE__ */ m(o, { children: [/* @__PURE__ */ p("span", {
37
- className: "ttw:block",
38
- children: T.descriptionFirstLine
39
- }), /* @__PURE__ */ p("span", {
40
- className: "ttw:block",
41
- children: T.descriptionSecondLine
42
- })] })
43
- ]
44
- }), /* @__PURE__ */ p("div", {
45
- className: "ttw:min-h-0 ttw:overflow-y-auto",
46
- children: y ? /* @__PURE__ */ p("div", {
47
- className: "ttw:flex ttw:justify-center ttw:py-8",
48
- children: /* @__PURE__ */ p(l, { className: "ttw:size-6 ttw:text-muted-foreground" })
49
- }) : b ? /* @__PURE__ */ p("p", {
50
- className: "ttw:py-8 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
51
- children: T.errorState
52
- }) : v.length === 0 ? /* @__PURE__ */ p("p", {
53
- className: "ttw:py-8 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
54
- children: T.emptyState
55
- }) : /* @__PURE__ */ p(e, {
56
- type: "single",
57
- collapsible: !0,
58
- value: x ?? "",
59
- onValueChange: S,
60
- className: "ttw:flex ttw:flex-col ttw:gap-2",
61
- children: v.map((e) => {
62
- let i = e.id === x;
63
- return /* @__PURE__ */ m(n, {
64
- value: e.id,
65
- className: `ttw:rounded-md ttw:border-b-transparent ttw:px-4 ${i ? "ttw:bg-white" : "ttw:bg-muted"}`,
66
- children: [/* @__PURE__ */ p(r, {
67
- "aria-label": e.accessibleLabel,
68
- disabled: C,
69
- className: "ttw:hover:no-underline!",
70
- iconClassName: "ttw:size-5",
71
- children: /* @__PURE__ */ m("span", {
72
- className: "ttw:flex ttw:items-center ttw:gap-2",
73
- children: [/* @__PURE__ */ p("span", {
74
- className: "ttw:text-base ttw:font-medium",
75
- children: e.titleLabel
76
- }), /* @__PURE__ */ p("span", {
77
- className: `ttw:inline-flex ttw:size-5 ttw:items-center ttw:justify-center ttw:rounded-full ttw:text-xs ttw:font-medium ${i ? "ttw:bg-muted" : "ttw:bg-white"}`,
78
- children: e.countLabel
79
- })]
80
- })
81
- }), /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(d, {
82
- group: e,
83
- isBusy: C,
84
- labels: T
85
- }) })]
86
- }, e.id);
87
- })
88
- })
89
- })]
90
- })
91
- });
92
- }
93
- //#endregion
94
- export { g as DuplicateBillsDialog, g as default };
1
+ import "./index90.js";
2
+ import "./index91.js";
@@ -1,2 +1,7 @@
1
- import "./index91.js";
2
- import "./index92.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js
2
+ var e = {
3
+ revealValue: "Show value",
4
+ hideValue: "Hide value"
5
+ };
6
+ //#endregion
7
+ export { e as REVEALABLE_FIELD_LABELS_EN };
@@ -1,7 +1,34 @@
1
+ import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { REVEALABLE_FIELD_LABELS_EN as t } from "./index93.js";
3
+ import { useState as n } from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { Eye as a, EyeOff as o } from "lucide-react";
1
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js
2
- var e = {
3
- message: "Data extracted automatically — please review all details to make sure they match",
4
- dismiss: "Dismiss this notice"
5
- };
7
+ function s({ field: s, labels: c }) {
8
+ let l = {
9
+ ...t,
10
+ ...c
11
+ }, [u, d] = n(!1), f = s.maskedValue && !u ? s.maskedValue : s.value;
12
+ return /* @__PURE__ */ i("div", {
13
+ className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
14
+ children: [/* @__PURE__ */ i("div", {
15
+ className: "ttw:min-w-0",
16
+ children: [/* @__PURE__ */ r("dt", {
17
+ className: "ttw:text-xs ttw:text-muted-foreground",
18
+ children: s.label
19
+ }), /* @__PURE__ */ r("dd", {
20
+ className: "ttw:break-words ttw:text-sm ttw:font-medium",
21
+ children: f
22
+ })]
23
+ }), s.maskedValue ? /* @__PURE__ */ r(e, {
24
+ type: "button",
25
+ variant: "ghost",
26
+ size: "icon",
27
+ "aria-label": u ? l.hideValue : l.revealValue,
28
+ onClick: () => d((e) => !e),
29
+ children: r(u ? o : a, { className: "ttw:size-4" })
30
+ }) : null]
31
+ });
32
+ }
6
33
  //#endregion
7
- export { e as EXTRACTION_NOTICE_LABELS_EN };
34
+ export { s as RevealableField, s as default };
@@ -1,30 +1,2 @@
1
- import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index94.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
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.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
- }
29
- //#endregion
30
- export { a as ExtractionNotice, a as default };
1
+ import "./index93.js";
2
+ import "./index94.js";
@@ -1,2 +1,12 @@
1
- import "./index94.js";
2
- import "./index95.js";
1
+ import { REVEALABLE_FIELD_LABELS_EN as e } from "./index93.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.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
10
+ };
11
+ //#endregion
12
+ export { t as REVIEW_TRANSACTION_DIALOG_LABELS_EN };
@@ -1,7 +1,106 @@
1
+ import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, cn as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { RevealableField as c } from "./index94.js";
3
+ import "./index95.js";
4
+ import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index96.js";
5
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
1
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js
2
- var e = {
3
- revealValue: "Show value",
4
- hideValue: "Hide value"
5
- };
7
+ function f({ open: f, onOpenChange: p, amountLabel: m, amount: h, rows: g, payTo: _, isSubmitting: v, onBack: y, onCancel: b, onSubmit: x, testId: S, labels: C }) {
8
+ let w = {
9
+ ...l,
10
+ ...C
11
+ };
12
+ return /* @__PURE__ */ u(t, {
13
+ open: f,
14
+ onOpenChange: (e) => e ? p(e) : b(),
15
+ children: /* @__PURE__ */ d(n, {
16
+ "data-testid": S,
17
+ className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-6",
18
+ children: [
19
+ /* @__PURE__ */ d(a, {
20
+ className: "ttw:border-b ttw:border-border ttw:pb-7",
21
+ children: [/* @__PURE__ */ u(o, {
22
+ className: "ttw:text-3xl ttw:tracking-tight",
23
+ children: w.title
24
+ }), /* @__PURE__ */ u(r, {
25
+ className: "ttw:sr-only",
26
+ children: w.hiddenDescription
27
+ })]
28
+ }),
29
+ /* @__PURE__ */ d("div", {
30
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
31
+ children: [
32
+ /* @__PURE__ */ d("div", {
33
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
34
+ children: [/* @__PURE__ */ u("p", {
35
+ className: "ttw:text-sm ttw:text-muted-foreground",
36
+ children: m
37
+ }), /* @__PURE__ */ u("p", {
38
+ className: "ttw:text-4xl ttw:font-semibold",
39
+ children: h
40
+ })]
41
+ }),
42
+ /* @__PURE__ */ u("dl", {
43
+ className: "ttw:flex ttw:flex-col",
44
+ children: g.map((e, t) => /* @__PURE__ */ d("div", {
45
+ className: s("ttw:flex ttw:items-center ttw:gap-4 ttw:py-2.5", t < g.length - 1 && "ttw:border-b ttw:border-border"),
46
+ children: [/* @__PURE__ */ u("dt", {
47
+ className: "ttw:w-32 ttw:shrink-0 ttw:text-sm ttw:text-muted-foreground",
48
+ children: e.label
49
+ }), /* @__PURE__ */ u("dd", {
50
+ className: "ttw:text-sm ttw:font-medium",
51
+ children: e.value
52
+ })]
53
+ }, e.label))
54
+ }),
55
+ /* @__PURE__ */ d("section", {
56
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
57
+ children: [
58
+ /* @__PURE__ */ u("p", {
59
+ className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
60
+ children: w.payToHeading
61
+ }),
62
+ /* @__PURE__ */ u("p", {
63
+ className: "ttw:mt-1 ttw:text-xl ttw:font-semibold",
64
+ children: _.name
65
+ }),
66
+ _.email ? /* @__PURE__ */ u("p", {
67
+ className: "ttw:text-sm ttw:text-muted-foreground",
68
+ children: _.email
69
+ }) : null,
70
+ _.methodLabel || _.fields.length > 0 ? /* @__PURE__ */ d("div", {
71
+ className: "ttw:mt-4 ttw:border-t ttw:border-border ttw:pt-4",
72
+ children: [_.methodLabel ? /* @__PURE__ */ u("p", {
73
+ className: "ttw:text-xs ttw:font-semibold ttw:text-muted-foreground",
74
+ children: _.methodLabel
75
+ }) : null, /* @__PURE__ */ u("dl", {
76
+ className: "ttw:mt-3 ttw:grid ttw:gap-3",
77
+ children: _.fields.map((e) => /* @__PURE__ */ u(c, {
78
+ field: e,
79
+ labels: w
80
+ }, e.label))
81
+ })]
82
+ }) : null
83
+ ]
84
+ })
85
+ ]
86
+ }),
87
+ /* @__PURE__ */ d(i, {
88
+ className: "ttw:pt-4 ttw:sm:gap-3",
89
+ children: [/* @__PURE__ */ u(e, {
90
+ type: "button",
91
+ variant: "outline",
92
+ onClick: y,
93
+ children: w.backButton
94
+ }), /* @__PURE__ */ u(e, {
95
+ type: "button",
96
+ loading: v,
97
+ onClick: x,
98
+ children: w.submitButton
99
+ })]
100
+ })
101
+ ]
102
+ })
103
+ });
104
+ }
6
105
  //#endregion
7
- export { e as REVEALABLE_FIELD_LABELS_EN };
106
+ export { f as ReviewTransactionDialog, f as default };
@@ -1,34 +1,2 @@
1
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { REVEALABLE_FIELD_LABELS_EN as t } from "./index97.js";
3
- import { useState as n } from "react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import { Eye as a, EyeOff as o } from "lucide-react";
6
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js
7
- function s({ field: s, labels: c }) {
8
- let l = {
9
- ...t,
10
- ...c
11
- }, [u, d] = n(!1), f = s.maskedValue && !u ? s.maskedValue : s.value;
12
- return /* @__PURE__ */ i("div", {
13
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
14
- children: [/* @__PURE__ */ i("div", {
15
- className: "ttw:min-w-0",
16
- children: [/* @__PURE__ */ r("dt", {
17
- className: "ttw:text-xs ttw:text-muted-foreground",
18
- children: s.label
19
- }), /* @__PURE__ */ r("dd", {
20
- className: "ttw:break-words ttw:text-sm ttw:font-medium",
21
- children: f
22
- })]
23
- }), s.maskedValue ? /* @__PURE__ */ r(e, {
24
- type: "button",
25
- variant: "ghost",
26
- size: "icon",
27
- "aria-label": u ? l.hideValue : l.revealValue,
28
- onClick: () => d((e) => !e),
29
- children: r(u ? o : a, { className: "ttw:size-4" })
30
- }) : null]
31
- });
32
- }
33
- //#endregion
34
- export { s as RevealableField, s as default };
1
+ import "./index96.js";
2
+ import "./index97.js";
@@ -1,2 +1,31 @@
1
- import "./index97.js";
2
- import "./index98.js";
1
+ import { LABEL_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js
3
+ var r = {
4
+ title: "Mark this bill as paid",
5
+ description: "You can't undo this action.",
6
+ amountDue: "Amount due",
7
+ paymentAmount: "Payment amount",
8
+ paymentDate: "Payment date",
9
+ paymentDatePlaceholder: "Select",
10
+ today: "Today",
11
+ comments: "Comments",
12
+ commentsPlaceholder: "Additional context for this payment.",
13
+ cancelButton: "Cancel",
14
+ confirmButton: "Mark as paid",
15
+ fieldMarkers: e,
16
+ requiredFieldsLegend: t
17
+ };
18
+ function i(e) {
19
+ let t = {
20
+ ...r.fieldMarkers,
21
+ ...e?.fieldMarkers
22
+ };
23
+ return {
24
+ ...r,
25
+ ...e,
26
+ fieldMarkers: t,
27
+ requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
28
+ };
29
+ }
30
+ //#endregion
31
+ export { r as MARK_AS_PAID_DIALOG_LABELS_EN, i as mergeMarkAsPaidDialogLabels };
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.169", n = "ba8fb6f103740b35cd1aefe10843bd1f635e0d4b", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.170", n = "062ef2ecb5b23518706c6c6e141e2b3542088901", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -7,7 +7,7 @@ import "../../../shared/data-access/dist/index.js";
7
7
  import { Implementation as t } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
8
8
  import { useWidgetConfig as n } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
9
9
  import "../../../shared/feature/dist/index.js";
10
- import { BillPayWidget as r } from "../../../bill-pay-widget/feature/dist/index92.js";
10
+ import { BillPayWidget as r } from "../../../bill-pay-widget/feature/dist/index91.js";
11
11
  import "../../../bill-pay-widget/feature/dist/index.js";
12
12
  import { jsx as i } from "react/jsx-runtime";
13
13
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js