@tesouro/embedded-components-react 0.3.49 → 0.3.51

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 (144) hide show
  1. package/dist/index.css +8 -2
  2. package/dist/index.js +2 -2
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/LinkedAccountsWidget.js +1 -1
  5. package/dist/libs/shared/util-validation/dist/{index22.js → index23.js} +1 -1
  6. package/dist/libs/shared/util-validation/dist/index7.js +6 -0
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +11 -10
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +39 -30
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +26 -311
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +325 -12
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +13 -26
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +20 -40
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +75 -24
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +36 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +80 -68
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +86 -73
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +77 -14
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +18 -63
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +50 -29
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +22 -18
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +82 -30
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +7 -42
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +15 -159
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +23 -33
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +66 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +2 -50
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +3 -4
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +5 -14
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +3 -14
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +31 -63
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +23 -18
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +37 -24
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +161 -61
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +29 -130
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +1 -25
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +47 -4
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +4 -41
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +12 -55
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +13 -4
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +63 -72
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +26 -49
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +23 -23
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +62 -93
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +133 -34
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +20 -163
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +4 -77
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +39 -21
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +5 -210
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +70 -211
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +47 -103
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +92 -12
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +34 -47
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +59 -62
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +163 -29
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +67 -181
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +20 -32
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +203 -94
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +214 -15
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +98 -312
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +16 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +49 -31
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +29 -80
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +183 -156
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +9 -2
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +38 -3
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +102 -2
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +18 -44
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +343 -1
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +4 -8
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +30 -8
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +79 -88
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +179 -3
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +3 -9
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +2 -20
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +4 -2
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -51
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +0 -2
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +6 -126
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +9 -9
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +92 -44
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -23
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +123 -26
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +7 -82
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -48
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +45 -250
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +69 -5
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +21 -113
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +27 -208
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +86 -4
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +47 -5
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +244 -106
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +115 -1
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +201 -16
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +4 -0
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +8 -0
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -0
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +44 -5
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +1 -0
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +25 -0
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +94 -3
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -19
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +1 -0
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +28 -28
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +1 -3
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +6 -16
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +119 -16
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +24 -111
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +89 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -7
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +5 -28
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +30 -2
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +2 -7
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +5 -32
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +34 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -12
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -104
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +105 -1
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -17
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +15 -123
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +125 -2
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -18
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +14 -6
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +7 -167
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +170 -2
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -14
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +11 -105
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +108 -2
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +2 -10
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +8 -45
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +47 -2
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +2 -0
  132. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index8.js +95 -94
  133. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index10.js +45 -0
  135. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index7.js +18 -55
  136. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index8.js +46 -265
  137. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +273 -34
  138. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApproverOptions.js +1 -1
  139. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +23 -23
  140. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +87 -71
  141. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  142. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +1 -1
  143. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  144. package/package.json +1 -1
@@ -1,170 +1,10 @@
1
- import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as ee, DialogHeader as o, DialogTitle as s, Label as c, Popover as l, PopoverContent as u, PopoverTrigger as d, Select as f, SelectContent as p, SelectItem as m, SelectTrigger as h, SelectValue as g, cn as _ } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as v } from "./index88.js";
3
- import { TONE_TEXT_CLASS as y } from "./index89.js";
4
- import { useId as b } from "react";
5
- import { Fragment as te, jsx as x, jsxs as S } from "react/jsx-runtime";
6
- import { CalendarIcon as C } from "lucide-react";
7
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js
8
- var w = {
9
- sufficient: y.muted,
10
- warning: y.warning,
11
- error: y.error
2
+ var e = {
3
+ neutral: "ttw:text-foreground",
4
+ muted: "ttw:text-muted-foreground",
5
+ success: "ttw:text-emerald-700",
6
+ warning: "ttw:text-amber-700",
7
+ error: "ttw:text-destructive"
12
8
  };
13
- function T({ open: y, onOpenChange: T, amountDueLabel: E, amountDue: D, dueDateSuffix: O, paymentAmountLabel: k, paymentAmount: A, selectedDate: j, selectedDateLabel: M, calendarDisabled: N, isToday: P, selectedAccountId: F, accounts: I, poweredByBankName: L, funds: R, isAccountsLoading: z, isAccountsError: B, isSubmitting: V, onDateChange: H, onAccountChange: U, onReview: W, onCancel: G, testId: K, labels: q }) {
14
- let J = {
15
- ...v,
16
- ...q
17
- }, Y = b(), X = b(), Z = b(), Q = z || B || I.length === 0, $ = I.find((e) => e.id === F);
18
- return /* @__PURE__ */ x(r, {
19
- open: y,
20
- onOpenChange: (e) => e ? T(e) : G(),
21
- children: /* @__PURE__ */ S(i, {
22
- "data-testid": K,
23
- className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
24
- children: [
25
- /* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(s, { children: J.title }), /* @__PURE__ */ x(a, {
26
- className: "ttw:sr-only",
27
- children: J.hiddenDescription
28
- })] }),
29
- /* @__PURE__ */ S("div", {
30
- className: "ttw:flex ttw:flex-col ttw:gap-3",
31
- children: [
32
- /* @__PURE__ */ S("div", {
33
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
34
- children: [/* @__PURE__ */ x("p", {
35
- className: "ttw:text-base ttw:text-muted-foreground",
36
- children: E
37
- }), /* @__PURE__ */ S("div", {
38
- className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
39
- children: [/* @__PURE__ */ x("p", {
40
- className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
41
- children: D
42
- }), O ? /* @__PURE__ */ x("p", {
43
- className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
44
- children: O
45
- }) : null]
46
- })]
47
- }),
48
- /* @__PURE__ */ S("div", {
49
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
50
- children: [/* @__PURE__ */ S("div", {
51
- className: "ttw:grid ttw:gap-2.5",
52
- children: [/* @__PURE__ */ x(c, { children: k }), /* @__PURE__ */ x("div", {
53
- "aria-disabled": !0,
54
- className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
55
- children: A
56
- })]
57
- }), /* @__PURE__ */ S("div", {
58
- className: "ttw:grid ttw:gap-2.5",
59
- children: [/* @__PURE__ */ x(c, {
60
- id: Y,
61
- children: J.paymentDate
62
- }), /* @__PURE__ */ S(l, { children: [/* @__PURE__ */ x(d, {
63
- asChild: !0,
64
- children: /* @__PURE__ */ S(t, {
65
- type: "button",
66
- variant: "outline",
67
- className: "ttw:justify-start ttw:gap-2",
68
- "aria-labelledby": `${Y} ${X}`,
69
- children: [
70
- /* @__PURE__ */ x(C, { className: "ttw:size-4" }),
71
- /* @__PURE__ */ x("span", {
72
- id: X,
73
- children: M ?? J.paymentDatePlaceholder
74
- }),
75
- P ? /* @__PURE__ */ x(e, {
76
- variant: "secondary",
77
- children: J.today
78
- }) : null
79
- ]
80
- })
81
- }), /* @__PURE__ */ x(u, {
82
- align: "start",
83
- className: "ttw:w-auto ttw:p-0",
84
- children: /* @__PURE__ */ x(n, {
85
- mode: "single",
86
- selected: j,
87
- onSelect: H,
88
- disabled: N
89
- })
90
- })] })]
91
- })]
92
- }),
93
- /* @__PURE__ */ S("div", {
94
- className: "ttw:grid ttw:gap-2.5",
95
- children: [
96
- /* @__PURE__ */ x(c, {
97
- id: Z,
98
- children: J.payFrom
99
- }),
100
- /* @__PURE__ */ S(f, {
101
- value: F,
102
- disabled: Q,
103
- onValueChange: U,
104
- children: [/* @__PURE__ */ x(h, {
105
- className: "ttw:w-full ttw:data-[size=default]:h-14 ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1",
106
- "aria-labelledby": Z,
107
- children: /* @__PURE__ */ x(g, {
108
- placeholder: J.payFromPlaceholder,
109
- children: $ ? /* @__PURE__ */ S(te, { children: [/* @__PURE__ */ S("span", {
110
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
111
- children: [/* @__PURE__ */ x("span", {
112
- className: "ttw:truncate",
113
- children: $.primaryLabel
114
- }), $.secondaryLabel ? /* @__PURE__ */ x("span", {
115
- className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
116
- children: $.secondaryLabel
117
- }) : null]
118
- }), L ? /* @__PURE__ */ x(e, {
119
- variant: "secondary",
120
- className: "ttw:shrink-0",
121
- children: J.poweredByBank(L)
122
- }) : null] }) : null
123
- })
124
- }), /* @__PURE__ */ x(p, { children: I.map((e) => /* @__PURE__ */ x(m, {
125
- value: e.id,
126
- children: /* @__PURE__ */ S("span", {
127
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
128
- children: [/* @__PURE__ */ x("span", {
129
- className: "ttw:truncate",
130
- children: e.primaryLabel
131
- }), e.secondaryLabel ? /* @__PURE__ */ x("span", {
132
- className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
133
- children: e.secondaryLabel
134
- }) : null]
135
- })
136
- }, e.id)) })]
137
- }),
138
- Q ? /* @__PURE__ */ x("p", {
139
- className: _("ttw:text-sm", B ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
140
- role: B ? "alert" : void 0,
141
- children: z ? J.loadingAccounts : B ? J.accountsError : J.noAccounts
142
- }) : null
143
- ]
144
- }),
145
- R.message ? /* @__PURE__ */ x("p", {
146
- className: _("ttw:text-sm", w[R.state]),
147
- children: R.message
148
- }) : null
149
- ]
150
- }),
151
- /* @__PURE__ */ S(ee, {
152
- className: "ttw:pt-4 ttw:sm:gap-3",
153
- children: [/* @__PURE__ */ x(t, {
154
- type: "button",
155
- variant: "outline",
156
- onClick: G,
157
- children: J.cancelButton
158
- }), /* @__PURE__ */ x(t, {
159
- type: "button",
160
- loading: V,
161
- onClick: W,
162
- children: J.reviewButton
163
- })]
164
- })
165
- ]
166
- })
167
- });
168
- }
169
9
  //#endregion
170
- export { T as SchedulePaymentDialog, T as default };
10
+ export { e as TONE_TEXT_CLASS };
@@ -1,2 +1,170 @@
1
- import "./index88.js";
2
- import "./index90.js";
1
+ import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as ee, DialogHeader as o, DialogTitle as s, Label as c, Popover as l, PopoverContent as u, PopoverTrigger as d, Select as f, SelectContent as p, SelectItem as m, SelectTrigger as h, SelectValue as g, cn as _ } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as v } from "./index89.js";
3
+ import { TONE_TEXT_CLASS as y } from "./index90.js";
4
+ import { useId as b } from "react";
5
+ import { Fragment as te, jsx as x, jsxs as S } from "react/jsx-runtime";
6
+ import { CalendarIcon as C } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js
8
+ var w = {
9
+ sufficient: y.muted,
10
+ warning: y.warning,
11
+ error: y.error
12
+ };
13
+ function T({ open: y, onOpenChange: T, amountDueLabel: E, amountDue: D, dueDateSuffix: O, paymentAmountLabel: k, paymentAmount: A, selectedDate: j, selectedDateLabel: M, calendarDisabled: N, isToday: P, selectedAccountId: F, accounts: I, poweredByBankName: L, funds: R, isAccountsLoading: z, isAccountsError: B, isSubmitting: V, onDateChange: H, onAccountChange: U, onReview: W, onCancel: G, testId: K, labels: q }) {
14
+ let J = {
15
+ ...v,
16
+ ...q
17
+ }, Y = b(), X = b(), Z = b(), Q = z || B || I.length === 0, $ = I.find((e) => e.id === F);
18
+ return /* @__PURE__ */ x(r, {
19
+ open: y,
20
+ onOpenChange: (e) => e ? T(e) : G(),
21
+ children: /* @__PURE__ */ S(i, {
22
+ "data-testid": K,
23
+ className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
24
+ children: [
25
+ /* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(s, { children: J.title }), /* @__PURE__ */ x(a, {
26
+ className: "ttw:sr-only",
27
+ children: J.hiddenDescription
28
+ })] }),
29
+ /* @__PURE__ */ S("div", {
30
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
31
+ children: [
32
+ /* @__PURE__ */ S("div", {
33
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
34
+ children: [/* @__PURE__ */ x("p", {
35
+ className: "ttw:text-base ttw:text-muted-foreground",
36
+ children: E
37
+ }), /* @__PURE__ */ S("div", {
38
+ className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
39
+ children: [/* @__PURE__ */ x("p", {
40
+ className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
41
+ children: D
42
+ }), O ? /* @__PURE__ */ x("p", {
43
+ className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
44
+ children: O
45
+ }) : null]
46
+ })]
47
+ }),
48
+ /* @__PURE__ */ S("div", {
49
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
50
+ children: [/* @__PURE__ */ S("div", {
51
+ className: "ttw:grid ttw:gap-2.5",
52
+ children: [/* @__PURE__ */ x(c, { children: k }), /* @__PURE__ */ x("div", {
53
+ "aria-disabled": !0,
54
+ className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
55
+ children: A
56
+ })]
57
+ }), /* @__PURE__ */ S("div", {
58
+ className: "ttw:grid ttw:gap-2.5",
59
+ children: [/* @__PURE__ */ x(c, {
60
+ id: Y,
61
+ children: J.paymentDate
62
+ }), /* @__PURE__ */ S(l, { children: [/* @__PURE__ */ x(d, {
63
+ asChild: !0,
64
+ children: /* @__PURE__ */ S(t, {
65
+ type: "button",
66
+ variant: "outline",
67
+ className: "ttw:justify-start ttw:gap-2",
68
+ "aria-labelledby": `${Y} ${X}`,
69
+ children: [
70
+ /* @__PURE__ */ x(C, { className: "ttw:size-4" }),
71
+ /* @__PURE__ */ x("span", {
72
+ id: X,
73
+ children: M ?? J.paymentDatePlaceholder
74
+ }),
75
+ P ? /* @__PURE__ */ x(e, {
76
+ variant: "secondary",
77
+ children: J.today
78
+ }) : null
79
+ ]
80
+ })
81
+ }), /* @__PURE__ */ x(u, {
82
+ align: "start",
83
+ className: "ttw:w-auto ttw:p-0",
84
+ children: /* @__PURE__ */ x(n, {
85
+ mode: "single",
86
+ selected: j,
87
+ onSelect: H,
88
+ disabled: N
89
+ })
90
+ })] })]
91
+ })]
92
+ }),
93
+ /* @__PURE__ */ S("div", {
94
+ className: "ttw:grid ttw:gap-2.5",
95
+ children: [
96
+ /* @__PURE__ */ x(c, {
97
+ id: Z,
98
+ children: J.payFrom
99
+ }),
100
+ /* @__PURE__ */ S(f, {
101
+ value: F,
102
+ disabled: Q,
103
+ onValueChange: U,
104
+ children: [/* @__PURE__ */ x(h, {
105
+ className: "ttw:w-full ttw:data-[size=default]:h-14 ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1",
106
+ "aria-labelledby": Z,
107
+ children: /* @__PURE__ */ x(g, {
108
+ placeholder: J.payFromPlaceholder,
109
+ children: $ ? /* @__PURE__ */ S(te, { children: [/* @__PURE__ */ S("span", {
110
+ className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
111
+ children: [/* @__PURE__ */ x("span", {
112
+ className: "ttw:truncate",
113
+ children: $.primaryLabel
114
+ }), $.secondaryLabel ? /* @__PURE__ */ x("span", {
115
+ className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
116
+ children: $.secondaryLabel
117
+ }) : null]
118
+ }), L ? /* @__PURE__ */ x(e, {
119
+ variant: "secondary",
120
+ className: "ttw:shrink-0",
121
+ children: J.poweredByBank(L)
122
+ }) : null] }) : null
123
+ })
124
+ }), /* @__PURE__ */ x(p, { children: I.map((e) => /* @__PURE__ */ x(m, {
125
+ value: e.id,
126
+ children: /* @__PURE__ */ S("span", {
127
+ className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
128
+ children: [/* @__PURE__ */ x("span", {
129
+ className: "ttw:truncate",
130
+ children: e.primaryLabel
131
+ }), e.secondaryLabel ? /* @__PURE__ */ x("span", {
132
+ className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
133
+ children: e.secondaryLabel
134
+ }) : null]
135
+ })
136
+ }, e.id)) })]
137
+ }),
138
+ Q ? /* @__PURE__ */ x("p", {
139
+ className: _("ttw:text-sm", B ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
140
+ role: B ? "alert" : void 0,
141
+ children: z ? J.loadingAccounts : B ? J.accountsError : J.noAccounts
142
+ }) : null
143
+ ]
144
+ }),
145
+ R.message ? /* @__PURE__ */ x("p", {
146
+ className: _("ttw:text-sm", w[R.state]),
147
+ children: R.message
148
+ }) : null
149
+ ]
150
+ }),
151
+ /* @__PURE__ */ S(ee, {
152
+ className: "ttw:pt-4 ttw:sm:gap-3",
153
+ children: [/* @__PURE__ */ x(t, {
154
+ type: "button",
155
+ variant: "outline",
156
+ onClick: G,
157
+ children: J.cancelButton
158
+ }), /* @__PURE__ */ x(t, {
159
+ type: "button",
160
+ loading: V,
161
+ onClick: W,
162
+ children: J.reviewButton
163
+ })]
164
+ })
165
+ ]
166
+ })
167
+ });
168
+ }
169
+ //#endregion
170
+ export { T as SchedulePaymentDialog, T as default };
@@ -1,14 +1,2 @@
1
- import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "./index2.js";
2
- import "./index5.js";
3
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js
4
- var t = {
5
- uploadHeading: "Attach an invoice (optional)",
6
- scannedAttachment: (e) => `Scanned attachment: ${e}`,
7
- scanning: "Scanning attachment…",
8
- scanningAttachment: (e) => `Scanning attachment: ${e}`,
9
- download: "Download the scanned attachment",
10
- delete: "Delete the scanned attachment",
11
- dropzone: e
12
- };
13
- //#endregion
14
- export { t as SOURCE_DOCUMENT_PANEL_LABELS_EN };
1
+ import "./index89.js";
2
+ import "./index91.js";
@@ -1,108 +1,14 @@
1
- import { Button as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillUploadDropzone as n } from "./index3.js";
1
+ import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "./index2.js";
3
2
  import "./index5.js";
4
- import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index92.js";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
- import { Download as o, Trash2 as s } from "lucide-react";
7
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js
8
- function c(c) {
9
- let { mode: l, testId: u, labels: d } = c, f = {
10
- ...r,
11
- ...d,
12
- dropzone: {
13
- ...r.dropzone,
14
- ...d?.dropzone
15
- }
16
- };
17
- if (l === "loading") return /* @__PURE__ */ a("div", {
18
- className: "ttw:flex ttw:flex-col ttw:gap-3",
19
- "data-testid": u,
20
- children: [/* @__PURE__ */ i("div", {
21
- className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
22
- children: /* @__PURE__ */ i("span", {
23
- "aria-live": "polite",
24
- className: "ttw:text-sm ttw:text-muted-foreground",
25
- children: c.fileName ? f.scanningAttachment(c.fileName) : f.scanning
26
- })
27
- }), /* @__PURE__ */ a("div", {
28
- className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
29
- children: [
30
- /* @__PURE__ */ i(t, { className: "ttw:h-6 ttw:w-2/5" }),
31
- /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-3/5" }),
32
- /* @__PURE__ */ i(t, { className: "ttw:mt-4 ttw:h-4 ttw:w-full" }),
33
- /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-full" }),
34
- /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4/5" }),
35
- /* @__PURE__ */ i(t, { className: "ttw:mt-auto ttw:h-24 ttw:w-full" })
36
- ]
37
- })]
38
- });
39
- if (l === "document") {
40
- let { fileName: t, preview: n, onDownload: r, onDelete: l, isDeleting: d, deleteErrorMessage: p } = c;
41
- return /* @__PURE__ */ a("div", {
42
- className: "ttw:flex ttw:flex-col ttw:gap-3",
43
- "data-testid": u,
44
- children: [
45
- /* @__PURE__ */ a("div", {
46
- className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
47
- children: [
48
- /* @__PURE__ */ i("span", {
49
- className: "ttw:text-sm ttw:text-muted-foreground",
50
- children: f.scannedAttachment(t ?? "")
51
- }),
52
- r ? /* @__PURE__ */ i(e, {
53
- type: "button",
54
- variant: "ghost",
55
- size: "icon",
56
- "aria-label": f.download,
57
- onClick: r,
58
- children: /* @__PURE__ */ i(o, { className: "ttw:size-4" })
59
- }) : null,
60
- l ? /* @__PURE__ */ i(e, {
61
- type: "button",
62
- variant: "ghost",
63
- size: "icon",
64
- "aria-label": f.delete,
65
- disabled: d,
66
- onClick: l,
67
- children: /* @__PURE__ */ i(s, { className: "ttw:size-4" })
68
- }) : null
69
- ]
70
- }),
71
- p ? /* @__PURE__ */ i("p", {
72
- role: "alert",
73
- className: "ttw:text-sm ttw:text-destructive",
74
- "data-testid": u ? `${u}-delete-error` : void 0,
75
- children: p
76
- }) : null,
77
- /* @__PURE__ */ i("div", {
78
- className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:items-start ttw:justify-center ttw:overflow-auto ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
79
- children: n
80
- })
81
- ]
82
- });
83
- }
84
- return /* @__PURE__ */ a("div", {
85
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
86
- "data-testid": u,
87
- children: [
88
- /* @__PURE__ */ i("p", {
89
- className: "ttw:mb-3 ttw:text-sm ttw:font-medium ttw:text-foreground",
90
- children: f.uploadHeading
91
- }),
92
- c.noticeMessage ? /* @__PURE__ */ i("p", {
93
- "aria-live": "polite",
94
- className: "ttw:mb-3 ttw:text-sm ttw:text-muted-foreground",
95
- "data-testid": u ? `${u}-notice` : void 0,
96
- children: c.noticeMessage
97
- }) : null,
98
- /* @__PURE__ */ i(n, {
99
- status: c.uploadStatus,
100
- errorMessage: c.uploadErrorMessage,
101
- onFilesSelected: c.onFilesSelected,
102
- labels: f.dropzone
103
- })
104
- ]
105
- });
106
- }
4
+ var t = {
5
+ uploadHeading: "Attach an invoice (optional)",
6
+ scannedAttachment: (e) => `Scanned attachment: ${e}`,
7
+ scanning: "Scanning attachment…",
8
+ scanningAttachment: (e) => `Scanning attachment: ${e}`,
9
+ download: "Download the scanned attachment",
10
+ delete: "Delete the scanned attachment",
11
+ dropzone: e
12
+ };
107
13
  //#endregion
108
- export { c as SourceDocumentPanel, c as default };
14
+ export { t as SOURCE_DOCUMENT_PANEL_LABELS_EN };
@@ -1,2 +1,108 @@
1
- import "./index92.js";
2
- import "./index93.js";
1
+ import { Button as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BillUploadDropzone as n } from "./index3.js";
3
+ import "./index5.js";
4
+ import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index93.js";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { Download as o, Trash2 as s } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js
8
+ function c(c) {
9
+ let { mode: l, testId: u, labels: d } = c, f = {
10
+ ...r,
11
+ ...d,
12
+ dropzone: {
13
+ ...r.dropzone,
14
+ ...d?.dropzone
15
+ }
16
+ };
17
+ if (l === "loading") return /* @__PURE__ */ a("div", {
18
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
19
+ "data-testid": u,
20
+ children: [/* @__PURE__ */ i("div", {
21
+ className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
22
+ children: /* @__PURE__ */ i("span", {
23
+ "aria-live": "polite",
24
+ className: "ttw:text-sm ttw:text-muted-foreground",
25
+ children: c.fileName ? f.scanningAttachment(c.fileName) : f.scanning
26
+ })
27
+ }), /* @__PURE__ */ a("div", {
28
+ className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
29
+ children: [
30
+ /* @__PURE__ */ i(t, { className: "ttw:h-6 ttw:w-2/5" }),
31
+ /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-3/5" }),
32
+ /* @__PURE__ */ i(t, { className: "ttw:mt-4 ttw:h-4 ttw:w-full" }),
33
+ /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-full" }),
34
+ /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4/5" }),
35
+ /* @__PURE__ */ i(t, { className: "ttw:mt-auto ttw:h-24 ttw:w-full" })
36
+ ]
37
+ })]
38
+ });
39
+ if (l === "document") {
40
+ let { fileName: t, preview: n, onDownload: r, onDelete: l, isDeleting: d, deleteErrorMessage: p } = c;
41
+ return /* @__PURE__ */ a("div", {
42
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
43
+ "data-testid": u,
44
+ children: [
45
+ /* @__PURE__ */ a("div", {
46
+ className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
47
+ children: [
48
+ /* @__PURE__ */ i("span", {
49
+ className: "ttw:text-sm ttw:text-muted-foreground",
50
+ children: f.scannedAttachment(t ?? "")
51
+ }),
52
+ r ? /* @__PURE__ */ i(e, {
53
+ type: "button",
54
+ variant: "ghost",
55
+ size: "icon",
56
+ "aria-label": f.download,
57
+ onClick: r,
58
+ children: /* @__PURE__ */ i(o, { className: "ttw:size-4" })
59
+ }) : null,
60
+ l ? /* @__PURE__ */ i(e, {
61
+ type: "button",
62
+ variant: "ghost",
63
+ size: "icon",
64
+ "aria-label": f.delete,
65
+ disabled: d,
66
+ onClick: l,
67
+ children: /* @__PURE__ */ i(s, { className: "ttw:size-4" })
68
+ }) : null
69
+ ]
70
+ }),
71
+ p ? /* @__PURE__ */ i("p", {
72
+ role: "alert",
73
+ className: "ttw:text-sm ttw:text-destructive",
74
+ "data-testid": u ? `${u}-delete-error` : void 0,
75
+ children: p
76
+ }) : null,
77
+ /* @__PURE__ */ i("div", {
78
+ className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:items-start ttw:justify-center ttw:overflow-auto ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
79
+ children: n
80
+ })
81
+ ]
82
+ });
83
+ }
84
+ return /* @__PURE__ */ a("div", {
85
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
86
+ "data-testid": u,
87
+ children: [
88
+ /* @__PURE__ */ i("p", {
89
+ className: "ttw:mb-3 ttw:text-sm ttw:font-medium ttw:text-foreground",
90
+ children: f.uploadHeading
91
+ }),
92
+ c.noticeMessage ? /* @__PURE__ */ i("p", {
93
+ "aria-live": "polite",
94
+ className: "ttw:mb-3 ttw:text-sm ttw:text-muted-foreground",
95
+ "data-testid": u ? `${u}-notice` : void 0,
96
+ children: c.noticeMessage
97
+ }) : null,
98
+ /* @__PURE__ */ i(n, {
99
+ status: c.uploadStatus,
100
+ errorMessage: c.uploadErrorMessage,
101
+ onFilesSelected: c.onFilesSelected,
102
+ labels: f.dropzone
103
+ })
104
+ ]
105
+ });
106
+ }
107
+ //#endregion
108
+ export { c as SourceDocumentPanel, c as default };
@@ -1,10 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js
2
- var e = {
3
- title: "Save this bill as a draft?",
4
- description: "This bill has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
5
- saveDraftButton: "Save as draft",
6
- discardButton: "Discard changes",
7
- cancelButton: "Keep editing"
8
- };
9
- //#endregion
10
- export { e as UNSAVED_BILL_DIALOG_LABELS_EN };
1
+ import "./index93.js";
2
+ import "./index94.js";
@@ -1,47 +1,10 @@
1
- import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { UNSAVED_BILL_DIALOG_LABELS_EN as s } from "./index95.js";
3
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js
5
- function u({ open: u, onSaveDraft: d, onDiscard: f, onCancel: p, isSaving: m, isSaveDraftDisabled: h, labels: g, testId: _, saveDraftTestId: v, discardTestId: y }) {
6
- let b = {
7
- ...s,
8
- ...g
9
- };
10
- return /* @__PURE__ */ c(e, {
11
- open: u,
12
- onOpenChange: (e) => {
13
- !e && !m && p();
14
- },
15
- children: /* @__PURE__ */ l(t, {
16
- "data-testid": _,
17
- children: [/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: b.title }), /* @__PURE__ */ c(n, { children: b.description })] }), /* @__PURE__ */ l(r, { children: [
18
- /* @__PURE__ */ c(o, {
19
- type: "button",
20
- variant: "outline",
21
- onClick: p,
22
- disabled: m,
23
- children: b.cancelButton
24
- }),
25
- /* @__PURE__ */ c(o, {
26
- type: "button",
27
- variant: "outline",
28
- onClick: f,
29
- disabled: m,
30
- "data-testid": y,
31
- children: b.discardButton
32
- }),
33
- /* @__PURE__ */ c(o, {
34
- type: "button",
35
- variant: "default",
36
- loading: m,
37
- disabled: m || h,
38
- onClick: d,
39
- "data-testid": v,
40
- children: b.saveDraftButton
41
- })
42
- ] })]
43
- })
44
- });
45
- }
2
+ var e = {
3
+ title: "Save this bill as a draft?",
4
+ description: "This bill has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
5
+ saveDraftButton: "Save as draft",
6
+ discardButton: "Discard changes",
7
+ cancelButton: "Keep editing"
8
+ };
46
9
  //#endregion
47
- export { u as UnsavedBillDialog, u as default };
10
+ export { e as UNSAVED_BILL_DIALOG_LABELS_EN };