@tesouro/embedded-components-react 0.4.12 → 0.4.14

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 (164) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/lib/monite-sdk.d.ts +204 -468
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +14 -14
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +37 -78
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +98 -7
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +81 -15
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +7 -26
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +16 -61
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +26 -2
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +63 -65
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +2 -6
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +66 -5
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +6 -24
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -32
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +3 -41
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +28 -166
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +40 -44
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +173 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +45 -47
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +1 -7
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +45 -11
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +4 -8
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +13 -14
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +55 -22
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -66
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +7 -19
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +58 -126
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +15 -11
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +134 -4
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +14 -31
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +4 -5
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +39 -87
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +78 -67
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +78 -48
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +24 -57
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +47 -91
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +119 -33
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +33 -168
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +170 -75
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +75 -21
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +23 -210
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +199 -203
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +198 -89
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +105 -13
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +12 -47
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +23 -6
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +47 -31
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +27 -198
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +198 -30
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +30 -234
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +240 -19
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +19 -342
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +364 -4
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +4 -34
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -167
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +186 -3
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +56 -5
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +3 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +2 -44
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +46 -1
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +1 -8
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +6 -9
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +9 -92
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +94 -3
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +3 -128
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +125 -8
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -7
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +5 -69
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +8 -46
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +43 -18
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +20 -28
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +27 -82
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +83 -47
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -250
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +239 -101
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +107 -202
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +209 -3
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +4 -8
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -43
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +6 -113
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +115 -1
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +0 -24
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +25 -0
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +64 -89
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +40 -37
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +10 -0
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +52 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -5
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +12 -62
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +12 -1
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -12
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -12
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -16
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +30 -2
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -4
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +28 -26
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -1
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +6 -5
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +161 -154
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +16 -21
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +47 -337
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +20 -13
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +327 -107
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +13 -9
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +113 -92
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +9 -10
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +95 -55
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +9 -51
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +56 -10
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -160
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +54 -1
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +11 -2
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +178 -37
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +1 -1
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -5
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +37 -88
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +5 -2
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +88 -12
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -84
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +11 -282
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -13
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +87 -0
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +294 -6
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +9 -35
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +0 -1
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +5 -36
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +37 -10
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -201
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -3
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +3 -8
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +187 -333
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +3 -10
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +13 -4
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +335 -81
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -0
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +87 -121
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -89
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +127 -2
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +25 -4
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +85 -26
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +3 -3
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +26 -30
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +4 -9
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +30 -102
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +9 -14
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +85 -104
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +10 -11
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +123 -8
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -170
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +18 -2
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -11
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +158 -96
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +1 -1
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +11 -7
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +100 -44
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +1 -1
  161. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  162. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  163. package/package.json +7 -7
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +0 -28
@@ -1,8 +1,296 @@
1
+ import { Badge as e, Button as t, Collapsible as n, CollapsibleContent as r, CollapsibleTrigger as i, Sheet as a, SheetContent as o, SheetDescription as s, SheetHeader as c, SheetTitle as l, Skeleton as u, Typography as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ApprovalPolicyCard as f } from "./index13.js";
3
+ import "./index14.js";
4
+ import { BillStatusBadge as p } from "./index18.js";
5
+ import "./index19.js";
6
+ import { DueDateValue as m } from "./index21.js";
7
+ import "./index22.js";
8
+ import { PaymentHistoryList as h } from "./index23.js";
9
+ import "./index24.js";
10
+ import { BillActionButtons as g, NO_BILL_ACTIONS as _ } from "./index15.js";
11
+ import { BillOverflowMenu as v } from "./index32.js";
12
+ import "./index33.js";
13
+ import { BILL_DETAILS_SHEET_LABELS_EN as y } from "./index59.js";
14
+ import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
15
+ import { ChevronDownIcon as C, MoveDiagonal2Icon as w, XIcon as T } from "lucide-react";
1
16
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js
2
- var e = {
3
- message: "This bill is a possible duplicate of another bill.",
4
- notADuplicateButton: "Not a duplicate",
5
- removeBillButton: "Remove this bill"
6
- };
17
+ function E({ items: e }) {
18
+ return /* @__PURE__ */ x("dl", {
19
+ className: "ttw:flex ttw:flex-col",
20
+ children: e.map((e) => /* @__PURE__ */ S("div", {
21
+ className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
22
+ children: [/* @__PURE__ */ x("dt", {
23
+ className: "ttw:text-sm ttw:text-muted-foreground",
24
+ children: e.label
25
+ }), /* @__PURE__ */ S("dd", {
26
+ className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
27
+ children: [/* @__PURE__ */ x("span", {
28
+ className: "ttw:text-sm ttw:font-medium",
29
+ children: e.value
30
+ }), e.secondaryValue ? /* @__PURE__ */ x("span", {
31
+ className: "ttw:text-sm ttw:text-muted-foreground",
32
+ children: e.secondaryValue
33
+ }) : null]
34
+ })]
35
+ }, e.label))
36
+ });
37
+ }
38
+ function D({ heading: e, children: t }) {
39
+ return /* @__PURE__ */ S(n, {
40
+ defaultOpen: !0,
41
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
42
+ children: [/* @__PURE__ */ S(i, {
43
+ className: "ttw:group ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:rounded-xs ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
44
+ children: [/* @__PURE__ */ x(d, {
45
+ variant: "body1",
46
+ className: "ttw:font-semibold",
47
+ children: e
48
+ }), /* @__PURE__ */ x(C, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
49
+ }), /* @__PURE__ */ x(r, { children: t })]
50
+ });
51
+ }
52
+ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolicy: C, paymentHistory: O, paymentHistoryError: k, paymentHistoryLoading: A, isLoading: j, isError: M, notice: N, onClose: P, onExpand: F, testId: I, labels: L }) {
53
+ let R = {
54
+ ...y,
55
+ ...L,
56
+ statusBadge: {
57
+ ...y.statusBadge,
58
+ ...L?.statusBadge
59
+ },
60
+ approvalPolicy: {
61
+ ...y.approvalPolicy,
62
+ ...L?.approvalPolicy
63
+ },
64
+ dueDate: {
65
+ ...y.dueDate,
66
+ ...L?.dueDate
67
+ }
68
+ };
69
+ return /* @__PURE__ */ x(a, {
70
+ open: n,
71
+ onOpenChange: (e) => e ? r(e) : P(),
72
+ children: /* @__PURE__ */ S(o, {
73
+ showCloseButton: !1,
74
+ className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
75
+ "data-testid": I,
76
+ children: [/* @__PURE__ */ S(c, {
77
+ className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
78
+ children: [/* @__PURE__ */ S("div", {
79
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
80
+ children: [
81
+ /* @__PURE__ */ x(l, {
82
+ className: j ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
83
+ children: M ? R.errorTitle : j ? R.loadingTitle : i?.title
84
+ }),
85
+ j ? /* @__PURE__ */ S("div", {
86
+ "aria-hidden": !0,
87
+ className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
88
+ children: [/* @__PURE__ */ x(u, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ x(u, { className: "ttw:h-4 ttw:w-28" })]
89
+ }) : null,
90
+ i && !j && !M ? /* @__PURE__ */ x("p", {
91
+ className: "ttw:text-sm ttw:text-muted-foreground",
92
+ children: i.subtitle
93
+ }) : null,
94
+ /* @__PURE__ */ x(s, {
95
+ className: "ttw:sr-only",
96
+ children: R.hiddenDescription
97
+ })
98
+ ]
99
+ }), /* @__PURE__ */ S("div", {
100
+ className: "ttw:flex ttw:items-center ttw:gap-1",
101
+ children: [
102
+ F ? /* @__PURE__ */ x(t, {
103
+ type: "button",
104
+ variant: "ghost",
105
+ size: "icon",
106
+ "aria-label": R.expandButton,
107
+ onClick: F,
108
+ children: /* @__PURE__ */ x(w, { className: "ttw:size-4" })
109
+ }) : null,
110
+ i && !j && !M ? /* @__PURE__ */ x(v, {
111
+ actions: d.menu,
112
+ triggerLabel: R.overflowMenuTrigger,
113
+ placement: "header"
114
+ }) : null,
115
+ /* @__PURE__ */ x(t, {
116
+ type: "button",
117
+ variant: "ghost",
118
+ size: "icon",
119
+ "aria-label": R.closeButton,
120
+ onClick: P,
121
+ children: /* @__PURE__ */ x(T, { className: "ttw:size-4" })
122
+ })
123
+ ]
124
+ })]
125
+ }), /* @__PURE__ */ x("div", {
126
+ className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
127
+ children: M ? /* @__PURE__ */ x("p", {
128
+ className: "ttw:text-sm ttw:text-muted-foreground",
129
+ children: R.errorDescription
130
+ }) : j ? /* @__PURE__ */ S("div", {
131
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
132
+ children: [/* @__PURE__ */ x(u, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ S("div", {
133
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
134
+ children: [
135
+ /* @__PURE__ */ x(u, { className: "ttw:h-4 ttw:w-40" }),
136
+ /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" }),
137
+ /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" })
138
+ ]
139
+ })]
140
+ }) : i ? /* @__PURE__ */ S(b, { children: [
141
+ N,
142
+ /* @__PURE__ */ S("section", {
143
+ className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
144
+ children: [
145
+ /* @__PURE__ */ S("div", {
146
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
147
+ children: [i.paidOnLabel ? /* @__PURE__ */ S("div", {
148
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
149
+ children: [/* @__PURE__ */ S("div", {
150
+ className: "ttw:flex ttw:flex-col",
151
+ children: [/* @__PURE__ */ x("span", {
152
+ className: "ttw:text-sm ttw:text-muted-foreground",
153
+ children: R.amountDueHeading
154
+ }), /* @__PURE__ */ x("span", {
155
+ className: "ttw:text-3xl ttw:font-semibold",
156
+ children: i.amountDueLabel
157
+ })]
158
+ }), /* @__PURE__ */ S("div", {
159
+ className: "ttw:flex ttw:flex-col",
160
+ children: [/* @__PURE__ */ x("span", {
161
+ className: "ttw:text-sm ttw:text-muted-foreground",
162
+ children: R.amountPaidHeading
163
+ }), /* @__PURE__ */ x("span", {
164
+ className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
165
+ children: i.amountPaidLabel
166
+ })]
167
+ })]
168
+ }) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("span", {
169
+ className: "ttw:text-sm ttw:text-muted-foreground",
170
+ children: R.amountDueHeading
171
+ }), /* @__PURE__ */ x("span", {
172
+ className: "ttw:text-3xl ttw:font-semibold",
173
+ children: i.amountDueLabel
174
+ })] }), /* @__PURE__ */ x("div", { children: i.paidOnLabel ? /* @__PURE__ */ x(e, {
175
+ variant: "outline",
176
+ className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
177
+ children: i.paidOnLabel
178
+ }) : /* @__PURE__ */ x(p, {
179
+ status: i.status,
180
+ tone: i.statusTone,
181
+ labels: R.statusBadge
182
+ }) })]
183
+ }),
184
+ /* @__PURE__ */ S("div", {
185
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
186
+ children: [/* @__PURE__ */ S("div", {
187
+ className: "ttw:flex ttw:flex-col",
188
+ children: [/* @__PURE__ */ x("span", {
189
+ className: "ttw:text-xs ttw:text-muted-foreground",
190
+ children: R.invoiceDateLabel
191
+ }), /* @__PURE__ */ x("span", {
192
+ className: "ttw:text-sm ttw:font-medium",
193
+ children: i.invoiceDateLabel
194
+ })]
195
+ }), /* @__PURE__ */ S("div", {
196
+ className: "ttw:flex ttw:flex-col",
197
+ children: [/* @__PURE__ */ x("span", {
198
+ className: "ttw:text-xs ttw:text-muted-foreground",
199
+ children: R.dueDateLabel
200
+ }), /* @__PURE__ */ x(m, {
201
+ className: "ttw:text-sm ttw:font-medium",
202
+ value: i.dueDateLabel,
203
+ tone: i.dueDateTone,
204
+ labels: R.dueDate
205
+ })]
206
+ })]
207
+ }),
208
+ d.row.length ? /* @__PURE__ */ x("div", {
209
+ className: "ttw:flex ttw:items-center ttw:gap-2",
210
+ children: /* @__PURE__ */ x(g, { actions: d.row })
211
+ }) : null
212
+ ]
213
+ }),
214
+ /* @__PURE__ */ x(D, {
215
+ heading: i.paidOnLabel ? R.payToHeadingPaid : R.payToHeading,
216
+ children: /* @__PURE__ */ x(E, { items: i.payToItems })
217
+ }),
218
+ O?.length || k || A ? /* @__PURE__ */ x(D, {
219
+ heading: R.paymentHistoryHeading,
220
+ children: k ? /* @__PURE__ */ x("p", {
221
+ className: "ttw:text-sm ttw:text-muted-foreground",
222
+ children: R.paymentHistoryErrorDescription
223
+ }) : A ? /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ x(h, { records: O ?? [] })
224
+ }) : null,
225
+ /* @__PURE__ */ x(D, {
226
+ heading: R.invoiceDetailsHeading,
227
+ children: /* @__PURE__ */ S("div", {
228
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
229
+ children: [
230
+ /* @__PURE__ */ x(E, { items: i.invoiceItems }),
231
+ i.lineItems.length ? /* @__PURE__ */ S("table", {
232
+ className: "ttw:w-full ttw:text-sm",
233
+ children: [/* @__PURE__ */ x("thead", { children: /* @__PURE__ */ S("tr", {
234
+ className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
235
+ children: [
236
+ /* @__PURE__ */ x("th", {
237
+ className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
238
+ children: R.lineItemsHeading
239
+ }),
240
+ /* @__PURE__ */ x("th", {
241
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
242
+ children: R.lineItemsQuantityHeading
243
+ }),
244
+ /* @__PURE__ */ x("th", {
245
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
246
+ children: R.lineItemsAmountHeading
247
+ })
248
+ ]
249
+ }) }), /* @__PURE__ */ x("tbody", { children: i.lineItems.map((e) => /* @__PURE__ */ S("tr", {
250
+ className: "ttw:border-b ttw:border-border",
251
+ children: [
252
+ /* @__PURE__ */ S("td", {
253
+ className: "ttw:px-3 ttw:py-2",
254
+ children: [/* @__PURE__ */ x("span", {
255
+ className: "ttw:block",
256
+ children: e.description
257
+ }), /* @__PURE__ */ x("span", {
258
+ className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
259
+ children: e.glCodeLabel
260
+ })]
261
+ }),
262
+ /* @__PURE__ */ x("td", {
263
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
264
+ children: e.quantityLabel
265
+ }),
266
+ /* @__PURE__ */ x("td", {
267
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
268
+ children: e.amountLabel
269
+ })
270
+ ]
271
+ }, e.id)) })]
272
+ }) : null,
273
+ /* @__PURE__ */ x("dl", {
274
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
275
+ children: i.totals.map((e) => /* @__PURE__ */ S("div", {
276
+ className: e.emphasis ? "ttw:flex ttw:justify-between ttw:gap-6 ttw:border-t ttw:border-border ttw:pt-2 ttw:text-base ttw:font-semibold" : "ttw:flex ttw:justify-between ttw:gap-6 ttw:text-sm",
277
+ children: [/* @__PURE__ */ x("dt", {
278
+ className: e.emphasis ? "" : "ttw:text-muted-foreground",
279
+ children: e.label
280
+ }), /* @__PURE__ */ x("dd", { children: e.value })]
281
+ }, e.label))
282
+ })
283
+ ]
284
+ })
285
+ }),
286
+ C ? /* @__PURE__ */ x(f, {
287
+ view: C,
288
+ labels: R.approvalPolicy
289
+ }) : null
290
+ ] }) : null
291
+ })]
292
+ })
293
+ });
294
+ }
7
295
  //#endregion
8
- export { e as BILL_DUPLICATE_NOTICE_LABELS_EN };
296
+ export { O as BillDetailsSheet, O as default };
@@ -1,39 +1,13 @@
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 "./index60.js";
3
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
- import { CopyX as o } from "lucide-react";
1
+ import { Badge as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BADGE_TONE_CLASS_NAME as t } from "./index17.js";
3
+ import { jsx as n } from "react/jsx-runtime";
5
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js
6
- function s({ onNotADuplicate: s, onRemoveBill: c, isActionDisabled: l, testId: u, labels: d }) {
7
- let f = {
8
- ...r,
9
- ...d
10
- };
11
- return /* @__PURE__ */ a(e, {
12
- className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
13
- "data-testid": u,
14
- children: [
15
- /* @__PURE__ */ i(o, {}),
16
- /* @__PURE__ */ i(t, {
17
- className: "ttw:flex-1",
18
- children: f.message
19
- }),
20
- s ? /* @__PURE__ */ i(n, {
21
- type: "button",
22
- variant: "outline",
23
- className: "ttw:text-foreground",
24
- disabled: l,
25
- onClick: s,
26
- children: f.notADuplicateButton
27
- }) : null,
28
- c ? /* @__PURE__ */ i(n, {
29
- type: "button",
30
- variant: "destructive",
31
- disabled: l,
32
- onClick: c,
33
- children: f.removeBillButton
34
- }) : null
35
- ]
5
+ function r({ label: r, tone: i = "warning" }) {
6
+ return /* @__PURE__ */ n(e, {
7
+ variant: "outline",
8
+ className: t[i],
9
+ children: r
36
10
  });
37
11
  }
38
12
  //#endregion
39
- export { s as BillDuplicateNotice, s as default };
13
+ export { r as BillDuplicateBadge, r as default };
@@ -1,2 +1 @@
1
- import "./index60.js";
2
1
  import "./index61.js";
@@ -1,39 +1,8 @@
1
- import { AMOUNT_FILTER_LABELS_EN as e, DATE_RANGE_PICKER_LABELS_EN as t, FILTER_MENU_BUTTON_LABELS_EN as n, FILTER_TAG_LABELS_EN as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js
3
- var i = {
4
- fields: {
5
- vendor: "Vendor",
6
- issueDate: "Issue date",
7
- dueDate: "Due date",
8
- status: "Status",
9
- totalAmount: "Total amount",
10
- addedOn: "Added on",
11
- attachment: "Attachment"
12
- },
13
- fieldMenuLabel: "Filter bills by",
14
- amountMin: "No less than",
15
- amountMax: "No more than",
16
- vendorSearchPlaceholder: "Search vendors",
17
- vendorSearchLabel: "Search vendors",
18
- vendorEmpty: "No vendors match",
19
- vendorLoading: "Loading vendors",
20
- vendorError: "Couldn't load vendors",
21
- attachmentAny: "Any",
22
- attachmentHas: "Has attachment",
23
- attachmentNone: "No attachment",
24
- attachmentLabel: "Filter by attachment",
25
- clearAll: "Clear all",
26
- filterMenuButton: n,
27
- filterTag: r,
28
- amountFilter: {
29
- modeAny: e.modeAny,
30
- modeExact: e.modeExact,
31
- modeRange: e.modeRange,
32
- flowAny: e.flowAny,
33
- flowIn: e.flowIn,
34
- flowOut: e.flowOut
35
- },
36
- dateRangePicker: { presetPlaceholder: t.presetPlaceholder }
2
+ var e = {
3
+ message: "This bill is a possible duplicate of another bill.",
4
+ notADuplicateButton: "Not a duplicate",
5
+ removeBillButton: "Remove this bill"
37
6
  };
38
7
  //#endregion
39
- export { i as BILLS_FILTER_BAR_LABELS_EN };
8
+ export { e as BILL_DUPLICATE_NOTICE_LABELS_EN };
@@ -1,12 +1,39 @@
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 "./index63.js";
3
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
+ import { CopyX as o } from "lucide-react";
1
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js
2
- var e = {
3
- Vendor: "vendor",
4
- IssueDate: "issueDate",
5
- DueDate: "dueDate",
6
- Status: "status",
7
- TotalAmount: "totalAmount",
8
- AddedOn: "addedOn",
9
- Attachment: "attachment"
10
- };
6
+ function s({ onNotADuplicate: s, onRemoveBill: c, isActionDisabled: l, testId: u, labels: d }) {
7
+ let f = {
8
+ ...r,
9
+ ...d
10
+ };
11
+ return /* @__PURE__ */ a(e, {
12
+ className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
13
+ "data-testid": u,
14
+ children: [
15
+ /* @__PURE__ */ i(o, {}),
16
+ /* @__PURE__ */ i(t, {
17
+ className: "ttw:flex-1",
18
+ children: f.message
19
+ }),
20
+ s ? /* @__PURE__ */ i(n, {
21
+ type: "button",
22
+ variant: "outline",
23
+ className: "ttw:text-foreground",
24
+ disabled: l,
25
+ onClick: s,
26
+ children: f.notADuplicateButton
27
+ }) : null,
28
+ c ? /* @__PURE__ */ i(n, {
29
+ type: "button",
30
+ variant: "destructive",
31
+ disabled: l,
32
+ onClick: c,
33
+ children: f.removeBillButton
34
+ }) : null
35
+ ]
36
+ });
37
+ }
11
38
  //#endregion
12
- export { e as BillsFilterField };
39
+ export { s as BillDuplicateNotice, s as default };
@@ -1,201 +1,2 @@
1
- import { AmountFilter as e, DateRangePicker as t, FilterBar as n, FilterMenuButton as r, FilterTag as ee, Input as te, MultiSelectFilter as i, Popover as a, PopoverContent as o, PopoverTrigger as s, RadioGroup as c, RadioGroupItem as l, useFilterPanel as u } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILLS_FILTER_BAR_LABELS_EN as d } from "./index63.js";
3
- import { BillsFilterField as f } from "./index64.js";
4
- import { useMemo as ne } from "react";
5
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
6
- import { ListFilterIcon as h } from "lucide-react";
7
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js
8
- var g = {
9
- date: "ttw:w-auto",
10
- status: "ttw:w-56",
11
- amount: "ttw:w-64",
12
- vendor: "ttw:w-64",
13
- attachment: "ttw:w-56"
14
- }, _ = {
15
- [f.Vendor]: "vendor",
16
- [f.IssueDate]: "date",
17
- [f.DueDate]: "date",
18
- [f.Status]: "status",
19
- [f.TotalAmount]: "amount",
20
- [f.AddedOn]: "date",
21
- [f.Attachment]: "attachment"
22
- }, v = [
23
- f.IssueDate,
24
- f.DueDate,
25
- f.AddedOn
26
- ];
27
- function y({ fields: f, activeFilterCount: y, chips: b, onRemoveChip: x, onClearAll: S, dateField: C, onDateFieldChange: w, datePresets: T, selectedDatePreset: E, dateFrom: D, dateTo: O, onDateRangeChange: k, onDatePresetChange: A, statusOptions: j, selectedStatuses: M, onStatusChange: N, amountMode: P, onAmountModeChange: F, amountMin: I, amountMax: L, onAmountMinChange: re, onAmountMaxChange: R, vendorOptions: z, selectedVendors: B, onVendorChange: V, vendorSearchValue: H, onVendorSearchChange: U, isVendorLoading: W, isVendorError: G, hasAttachment: K, onHasAttachmentChange: q, searchSlot: J, testIds: Y, labels: X, className: ie }) {
28
- let Z = ne(() => ({
29
- ...d,
30
- ...X,
31
- fields: {
32
- ...d.fields,
33
- ...X?.fields
34
- },
35
- filterMenuButton: {
36
- ...d.filterMenuButton,
37
- ...X?.filterMenuButton
38
- },
39
- filterTag: {
40
- ...d.filterTag,
41
- ...X?.filterTag
42
- },
43
- amountFilter: {
44
- ...d.amountFilter,
45
- ...X?.amountFilter
46
- },
47
- dateRangePicker: {
48
- ...d.dateRangePicker,
49
- ...X?.dateRangePicker
50
- }
51
- }), [X]), Q = u(), $ = Q.activePanelId, ae = Q.isMenuOpen || !!$, oe = ($ && g[$]) ?? "ttw:w-52", se = (e) => {
52
- $ && e.preventDefault(), Q.toggleMenu();
53
- }, ce = (e) => {
54
- e || (Q.closeMenu(), Q.closePanel());
55
- }, le = (e) => {
56
- v.includes(e) && w(e), Q.openPanel(_[e]);
57
- }, ue = K === void 0 ? "any" : K ? "has" : "none", de = (e) => {
58
- q(e === "any" ? void 0 : e === "has");
59
- };
60
- return /* @__PURE__ */ p(n, {
61
- className: ie,
62
- searchSlot: J,
63
- menuSlot: /* @__PURE__ */ m(a, {
64
- open: ae,
65
- onOpenChange: ce,
66
- children: [/* @__PURE__ */ p(s, {
67
- asChild: !0,
68
- children: /* @__PURE__ */ p(r, {
69
- size: "md",
70
- activeCount: y,
71
- onClick: se,
72
- labels: Z.filterMenuButton,
73
- "data-testid": Y?.menuButton
74
- })
75
- }), /* @__PURE__ */ m(o, {
76
- align: "start",
77
- className: `ttw:p-0 ${oe}`,
78
- children: [
79
- Q.isMenuOpen ? /* @__PURE__ */ p("div", {
80
- className: "ttw:p-1",
81
- role: "menu",
82
- "aria-label": Z.fieldMenuLabel,
83
- children: f.map((e) => /* @__PURE__ */ m("button", {
84
- type: "button",
85
- role: "menuitem",
86
- className: "ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-md ttw:px-2 ttw:py-1.5 ttw:text-xs ttw:font-medium ttw:transition-colors ttw:hover:bg-accent",
87
- onClick: () => le(e),
88
- children: [/* @__PURE__ */ p(h, {
89
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
90
- "aria-hidden": !0
91
- }), Z.fields[e]]
92
- }, e))
93
- }) : null,
94
- $ === "date" ? /* @__PURE__ */ p(t, {
95
- from: D,
96
- to: O,
97
- onRangeChange: k,
98
- selectedPreset: E,
99
- onPresetChange: A,
100
- presets: [...T],
101
- labels: {
102
- ...Z.dateRangePicker,
103
- fieldLabel: Z.fields[C]
104
- }
105
- }) : null,
106
- $ === "status" ? /* @__PURE__ */ p(i, {
107
- options: [...j],
108
- selectedValues: [...M],
109
- onSelectionChange: N
110
- }) : null,
111
- $ === "amount" ? /* @__PURE__ */ p(e, {
112
- mode: P,
113
- onModeChange: F,
114
- min: I,
115
- max: L,
116
- onMinChange: re,
117
- onMaxChange: R,
118
- showFlowDirection: !1,
119
- labels: {
120
- ...Z.amountFilter,
121
- min: Z.amountMin,
122
- max: Z.amountMax
123
- }
124
- }) : null,
125
- $ === "vendor" ? /* @__PURE__ */ m("div", {
126
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-3",
127
- children: [/* @__PURE__ */ p(te, {
128
- type: "search",
129
- className: "ttw:h-8 ttw:text-xs",
130
- "aria-label": Z.vendorSearchLabel,
131
- placeholder: Z.vendorSearchPlaceholder,
132
- value: H,
133
- onChange: (e) => U(e.target.value)
134
- }), W ? /* @__PURE__ */ p("p", {
135
- className: "ttw:px-1 ttw:text-xs ttw:text-muted-foreground",
136
- children: Z.vendorLoading
137
- }) : G ? /* @__PURE__ */ p("p", {
138
- className: "ttw:px-1 ttw:text-xs ttw:text-destructive",
139
- children: Z.vendorError
140
- }) : z.length === 0 ? /* @__PURE__ */ p("p", {
141
- className: "ttw:px-1 ttw:text-xs ttw:text-muted-foreground",
142
- children: Z.vendorEmpty
143
- }) : /* @__PURE__ */ p(i, {
144
- options: [...z],
145
- selectedValues: [...B],
146
- onSelectionChange: V
147
- })]
148
- }) : null,
149
- $ === "attachment" ? /* @__PURE__ */ p("div", {
150
- className: "ttw:p-3",
151
- children: /* @__PURE__ */ p(c, {
152
- value: ue,
153
- onValueChange: de,
154
- "aria-label": Z.attachmentLabel,
155
- className: "ttw:flex ttw:flex-col ttw:gap-1",
156
- children: [
157
- {
158
- value: "any",
159
- label: Z.attachmentAny
160
- },
161
- {
162
- value: "has",
163
- label: Z.attachmentHas
164
- },
165
- {
166
- value: "none",
167
- label: Z.attachmentNone
168
- }
169
- ].map(({ value: e, label: t }) => /* @__PURE__ */ m("label", {
170
- className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
171
- children: [/* @__PURE__ */ p(l, { value: e }), /* @__PURE__ */ p("span", {
172
- className: "ttw:text-xs ttw:font-medium",
173
- children: t
174
- })]
175
- }, e))
176
- })
177
- }) : null
178
- ]
179
- })]
180
- }),
181
- activeChipsSlot: /* @__PURE__ */ m("span", {
182
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
183
- "data-testid": Y?.chips,
184
- children: [b.map((e) => /* @__PURE__ */ p(ee, {
185
- label: e.label,
186
- labels: Z.filterTag,
187
- onDismiss: () => x(e.key)
188
- }, e.key)), b.length > 0 ? /* @__PURE__ */ p("button", {
189
- type: "button",
190
- className: "ttw:cursor-pointer ttw:whitespace-nowrap ttw:text-xs ttw:text-muted-foreground ttw:transition-colors ttw:hover:text-foreground",
191
- onClick: S,
192
- children: Z.clearAll
193
- }) : null]
194
- })
195
- });
196
- }
197
- function b(e) {
198
- return /* @__PURE__ */ p(y, { ...e }, e.fields.join("|"));
199
- }
200
- //#endregion
201
- export { b as BillsFilterBar, b as default };
1
+ import "./index63.js";
2
+ import "./index64.js";