@tesouro/embedded-components-react 0.5.141 → 0.5.142
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.
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +21 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +8 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +4 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +78 -135
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +4 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +139 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +44 -186
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +108 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +188 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -406
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +403 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +13 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +77 -221
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +212 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +44 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +234 -557
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +581 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +45 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +261 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +6 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +126 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +124 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +19 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +76 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +48 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +249 -142
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +27 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +160 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +217 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +3 -112
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +104 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +102 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +125 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +29 -177
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +178 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +106 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +28 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +27 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +123 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -99
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +97 -273
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +79 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +273 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +47 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -374
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +369 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +93 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +53 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +195 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +37 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +78 -308
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +311 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +37 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +37 -199
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +199 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -402
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +413 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +8 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +93 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +118 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +92 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +32 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +1 -105
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/relativeCalendarDay.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -125
|
@@ -1,14 +1,181 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
1
|
+
import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as ee, DialogFooter as te, DialogHeader as a, DialogTitle as o, FieldRequirement as s, Label as c, Popover as l, PopoverContent as u, PopoverTrigger as ne, RequiredFieldsLegend as d, Select as f, SelectContent as re, SelectItem as p, SelectTrigger as m, SelectValue as h, cn as g } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { mergeSchedulePaymentDialogLabels as _ } from "./index106.js";
|
|
3
|
+
import { TONE_TEXT_CLASS as v } from "./index107.js";
|
|
4
|
+
import { useId as y } from "react";
|
|
5
|
+
import { Fragment as ie, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
6
|
+
import { CalendarIcon as S } from "lucide-react";
|
|
3
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
scanningAttachment: (e) => `Scanning attachment: ${e}`,
|
|
9
|
-
download: "Download the scanned attachment",
|
|
10
|
-
delete: "Delete the scanned attachment",
|
|
11
|
-
dropzone: e
|
|
8
|
+
var C = {
|
|
9
|
+
sufficient: v.muted,
|
|
10
|
+
warning: v.warning,
|
|
11
|
+
error: v.error
|
|
12
12
|
};
|
|
13
|
+
function w({ open: v, onOpenChange: w, amountDueLabel: T, amountDue: E, dueDateSuffix: D, paymentAmountLabel: O, paymentAmount: k, selectedDate: A, selectedDateLabel: j, calendarDisabled: M, isToday: N, selectedAccountId: P, accounts: F, poweredByBankName: I, funds: L, isAccountsLoading: R, isAccountsError: z, isSubmitting: B, onDateChange: V, onAccountChange: H, onReview: U, onCancel: W, testId: G, labels: K }) {
|
|
14
|
+
let q = _(K), J = y(), Y = y(), X = y(), Z = y(), Q = R || z || F.length === 0, $ = F.find((e) => e.id === P);
|
|
15
|
+
return /* @__PURE__ */ b(r, {
|
|
16
|
+
open: v,
|
|
17
|
+
onOpenChange: (e) => e ? w(e) : W(),
|
|
18
|
+
children: /* @__PURE__ */ x(i, {
|
|
19
|
+
"data-testid": G,
|
|
20
|
+
className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ x(a, { children: [/* @__PURE__ */ b(o, { children: q.title }), /* @__PURE__ */ b(ee, {
|
|
23
|
+
className: "ttw:sr-only",
|
|
24
|
+
children: q.hiddenDescription
|
|
25
|
+
})] }),
|
|
26
|
+
/* @__PURE__ */ x("div", {
|
|
27
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ x("div", {
|
|
30
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
31
|
+
children: [/* @__PURE__ */ b("p", {
|
|
32
|
+
className: "ttw:text-base ttw:text-muted-foreground",
|
|
33
|
+
children: T
|
|
34
|
+
}), /* @__PURE__ */ x("div", {
|
|
35
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
|
|
36
|
+
children: [/* @__PURE__ */ b("p", {
|
|
37
|
+
className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
|
|
38
|
+
children: E
|
|
39
|
+
}), D ? /* @__PURE__ */ b("p", {
|
|
40
|
+
className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
|
|
41
|
+
children: D
|
|
42
|
+
}) : null]
|
|
43
|
+
})]
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ b(d, { labels: q.requiredFieldsLegend }),
|
|
46
|
+
/* @__PURE__ */ x("div", {
|
|
47
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
48
|
+
children: [/* @__PURE__ */ x("div", {
|
|
49
|
+
className: "ttw:grid ttw:gap-2.5",
|
|
50
|
+
children: [/* @__PURE__ */ b(c, { children: O }), /* @__PURE__ */ b("div", {
|
|
51
|
+
"aria-disabled": !0,
|
|
52
|
+
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",
|
|
53
|
+
children: k
|
|
54
|
+
})]
|
|
55
|
+
}), /* @__PURE__ */ x("div", {
|
|
56
|
+
className: "ttw:grid ttw:gap-2.5",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ b(c, {
|
|
59
|
+
id: J,
|
|
60
|
+
requirement: s.Required,
|
|
61
|
+
labels: q.fieldMarkers,
|
|
62
|
+
children: q.paymentDate
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ b("span", {
|
|
65
|
+
id: X,
|
|
66
|
+
className: "ttw:sr-only",
|
|
67
|
+
children: q.fieldMarkers.requiredAccessibleText
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ x(l, { children: [/* @__PURE__ */ b(ne, {
|
|
70
|
+
asChild: !0,
|
|
71
|
+
children: /* @__PURE__ */ x(t, {
|
|
72
|
+
type: "button",
|
|
73
|
+
variant: "outline",
|
|
74
|
+
className: "ttw:justify-start ttw:gap-2",
|
|
75
|
+
"aria-labelledby": `${J} ${Y} ${X}`,
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ b(S, { className: "ttw:size-4" }),
|
|
78
|
+
/* @__PURE__ */ b("span", {
|
|
79
|
+
id: Y,
|
|
80
|
+
children: j ?? q.paymentDatePlaceholder
|
|
81
|
+
}),
|
|
82
|
+
N ? /* @__PURE__ */ b(e, {
|
|
83
|
+
variant: "secondary",
|
|
84
|
+
children: q.today
|
|
85
|
+
}) : null
|
|
86
|
+
]
|
|
87
|
+
})
|
|
88
|
+
}), /* @__PURE__ */ b(u, {
|
|
89
|
+
align: "start",
|
|
90
|
+
className: "ttw:w-auto ttw:p-0",
|
|
91
|
+
children: /* @__PURE__ */ b(n, {
|
|
92
|
+
mode: "single",
|
|
93
|
+
selected: A,
|
|
94
|
+
onSelect: V,
|
|
95
|
+
disabled: M
|
|
96
|
+
})
|
|
97
|
+
})] })
|
|
98
|
+
]
|
|
99
|
+
})]
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ x("div", {
|
|
102
|
+
className: "ttw:grid ttw:gap-2.5",
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ b(c, {
|
|
105
|
+
id: Z,
|
|
106
|
+
requirement: s.Required,
|
|
107
|
+
labels: q.fieldMarkers,
|
|
108
|
+
children: q.payFrom
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ x(f, {
|
|
111
|
+
value: P,
|
|
112
|
+
disabled: Q,
|
|
113
|
+
onValueChange: H,
|
|
114
|
+
children: [/* @__PURE__ */ b(m, {
|
|
115
|
+
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",
|
|
116
|
+
"aria-labelledby": Z,
|
|
117
|
+
"aria-required": !0,
|
|
118
|
+
children: /* @__PURE__ */ b(h, {
|
|
119
|
+
placeholder: q.payFromPlaceholder,
|
|
120
|
+
children: $ ? /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ x("span", {
|
|
121
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
|
|
122
|
+
children: [/* @__PURE__ */ b("span", {
|
|
123
|
+
className: "ttw:truncate",
|
|
124
|
+
children: $.primaryLabel
|
|
125
|
+
}), $.secondaryLabel ? /* @__PURE__ */ b("span", {
|
|
126
|
+
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
127
|
+
children: $.secondaryLabel
|
|
128
|
+
}) : null]
|
|
129
|
+
}), I ? /* @__PURE__ */ b(e, {
|
|
130
|
+
variant: "secondary",
|
|
131
|
+
className: "ttw:shrink-0",
|
|
132
|
+
children: q.poweredByBank(I)
|
|
133
|
+
}) : null] }) : null
|
|
134
|
+
})
|
|
135
|
+
}), /* @__PURE__ */ b(re, { children: F.map((e) => /* @__PURE__ */ b(p, {
|
|
136
|
+
value: e.id,
|
|
137
|
+
children: /* @__PURE__ */ x("span", {
|
|
138
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
|
|
139
|
+
children: [/* @__PURE__ */ b("span", {
|
|
140
|
+
className: "ttw:truncate",
|
|
141
|
+
children: e.primaryLabel
|
|
142
|
+
}), e.secondaryLabel ? /* @__PURE__ */ b("span", {
|
|
143
|
+
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
144
|
+
children: e.secondaryLabel
|
|
145
|
+
}) : null]
|
|
146
|
+
})
|
|
147
|
+
}, e.id)) })]
|
|
148
|
+
}),
|
|
149
|
+
Q ? /* @__PURE__ */ b("p", {
|
|
150
|
+
className: g("ttw:text-sm", z ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
|
|
151
|
+
role: z ? "alert" : void 0,
|
|
152
|
+
children: R ? q.loadingAccounts : z ? q.accountsError : q.noAccounts
|
|
153
|
+
}) : null
|
|
154
|
+
]
|
|
155
|
+
}),
|
|
156
|
+
L.message ? /* @__PURE__ */ b("p", {
|
|
157
|
+
className: g("ttw:text-sm", C[L.state]),
|
|
158
|
+
children: L.message
|
|
159
|
+
}) : null
|
|
160
|
+
]
|
|
161
|
+
}),
|
|
162
|
+
/* @__PURE__ */ x(te, {
|
|
163
|
+
className: "ttw:pt-4 ttw:sm:gap-3",
|
|
164
|
+
children: [/* @__PURE__ */ b(t, {
|
|
165
|
+
type: "button",
|
|
166
|
+
variant: "outline",
|
|
167
|
+
onClick: W,
|
|
168
|
+
children: q.cancelButton
|
|
169
|
+
}), /* @__PURE__ */ b(t, {
|
|
170
|
+
type: "button",
|
|
171
|
+
loading: B,
|
|
172
|
+
onClick: U,
|
|
173
|
+
children: q.reviewButton
|
|
174
|
+
})]
|
|
175
|
+
})
|
|
176
|
+
]
|
|
177
|
+
})
|
|
178
|
+
});
|
|
179
|
+
}
|
|
13
180
|
//#endregion
|
|
14
|
-
export {
|
|
181
|
+
export { w as SchedulePaymentDialog, w as default };
|
|
@@ -1,108 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import "./index5.js";
|
|
4
|
-
import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index108.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/index109.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-white 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
|
+
import "./index106.js";
|
|
2
|
+
import "./index108.js";
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
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/index110.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,10 +1,108 @@
|
|
|
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 "./index110.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { Download as o, Trash2 as s } from "lucide-react";
|
|
1
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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-white 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
|
+
}
|
|
9
107
|
//#endregion
|
|
10
|
-
export {
|
|
108
|
+
export { c as SourceDocumentPanel, c as default };
|
|
@@ -1,52 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
-
import { XIcon as u } from "lucide-react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js
|
|
6
|
-
function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, isSaveDraftDisabled: g, labels: _, testId: v, saveDraftTestId: y, discardTestId: b, closeTestId: x }) {
|
|
7
|
-
let S = {
|
|
8
|
-
...s,
|
|
9
|
-
..._
|
|
10
|
-
};
|
|
11
|
-
return /* @__PURE__ */ c(e, {
|
|
12
|
-
open: d,
|
|
13
|
-
onOpenChange: (e) => {
|
|
14
|
-
!e && !h && m();
|
|
15
|
-
},
|
|
16
|
-
children: /* @__PURE__ */ l(t, {
|
|
17
|
-
"data-testid": v,
|
|
18
|
-
children: [
|
|
19
|
-
/* @__PURE__ */ l("button", {
|
|
20
|
-
type: "button",
|
|
21
|
-
onClick: m,
|
|
22
|
-
disabled: h,
|
|
23
|
-
"data-testid": x,
|
|
24
|
-
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
|
|
25
|
-
children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
|
|
26
|
-
className: "ttw:sr-only",
|
|
27
|
-
children: S.closeButton
|
|
28
|
-
})]
|
|
29
|
-
}),
|
|
30
|
-
/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: S.title }), /* @__PURE__ */ c(n, { children: S.description })] }),
|
|
31
|
-
/* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
32
|
-
type: "button",
|
|
33
|
-
variant: "outline",
|
|
34
|
-
onClick: p,
|
|
35
|
-
disabled: h,
|
|
36
|
-
"data-testid": b,
|
|
37
|
-
children: S.discardButton
|
|
38
|
-
}), /* @__PURE__ */ c(o, {
|
|
39
|
-
type: "button",
|
|
40
|
-
variant: "default",
|
|
41
|
-
loading: h,
|
|
42
|
-
disabled: h || g,
|
|
43
|
-
onClick: f,
|
|
44
|
-
"data-testid": y,
|
|
45
|
-
children: S.saveDraftButton
|
|
46
|
-
})] })
|
|
47
|
-
]
|
|
48
|
-
})
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
export { d as UnsavedBillDialog, d as default };
|
|
1
|
+
import "./index110.js";
|
|
2
|
+
import "./index111.js";
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.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
|
+
closeButton: "Close"
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { e as UNSAVED_BILL_DIALOG_LABELS_EN };
|
|
@@ -0,0 +1,52 @@
|
|
|
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 "./index113.js";
|
|
3
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
import { XIcon as u } from "lucide-react";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js
|
|
6
|
+
function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, isSaveDraftDisabled: g, labels: _, testId: v, saveDraftTestId: y, discardTestId: b, closeTestId: x }) {
|
|
7
|
+
let S = {
|
|
8
|
+
...s,
|
|
9
|
+
..._
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ c(e, {
|
|
12
|
+
open: d,
|
|
13
|
+
onOpenChange: (e) => {
|
|
14
|
+
!e && !h && m();
|
|
15
|
+
},
|
|
16
|
+
children: /* @__PURE__ */ l(t, {
|
|
17
|
+
"data-testid": v,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ l("button", {
|
|
20
|
+
type: "button",
|
|
21
|
+
onClick: m,
|
|
22
|
+
disabled: h,
|
|
23
|
+
"data-testid": x,
|
|
24
|
+
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
|
|
25
|
+
children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
|
|
26
|
+
className: "ttw:sr-only",
|
|
27
|
+
children: S.closeButton
|
|
28
|
+
})]
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: S.title }), /* @__PURE__ */ c(n, { children: S.description })] }),
|
|
31
|
+
/* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
32
|
+
type: "button",
|
|
33
|
+
variant: "outline",
|
|
34
|
+
onClick: p,
|
|
35
|
+
disabled: h,
|
|
36
|
+
"data-testid": b,
|
|
37
|
+
children: S.discardButton
|
|
38
|
+
}), /* @__PURE__ */ c(o, {
|
|
39
|
+
type: "button",
|
|
40
|
+
variant: "default",
|
|
41
|
+
loading: h,
|
|
42
|
+
disabled: h || g,
|
|
43
|
+
onClick: f,
|
|
44
|
+
"data-testid": y,
|
|
45
|
+
children: S.saveDraftButton
|
|
46
|
+
})] })
|
|
47
|
+
]
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { d as UnsavedBillDialog, d as default };
|
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Popover as e, PopoverContent as t, PopoverTrigger as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { useState as r } from "react";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
3
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
function o({ children: o, date: s }) {
|
|
6
|
+
let [c, l] = r(!1);
|
|
7
|
+
return /* @__PURE__ */ a(e, {
|
|
8
|
+
open: c,
|
|
9
|
+
onOpenChange: l,
|
|
10
|
+
children: [/* @__PURE__ */ i(n, {
|
|
11
|
+
type: "button",
|
|
12
|
+
className: "ttw:cursor-default",
|
|
13
|
+
onPointerEnter: (e) => {
|
|
14
|
+
e.pointerType === "mouse" && l(!0);
|
|
15
|
+
},
|
|
16
|
+
onPointerLeave: (e) => {
|
|
17
|
+
e.pointerType === "mouse" && l(!1);
|
|
18
|
+
},
|
|
19
|
+
onClick: (e) => e.stopPropagation(),
|
|
20
|
+
children: o
|
|
21
|
+
}), /* @__PURE__ */ i(t, {
|
|
22
|
+
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
23
|
+
className: "ttw:w-auto ttw:px-3 ttw:py-1.5 ttw:text-xs",
|
|
24
|
+
children: s
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
17
27
|
}
|
|
18
28
|
//#endregion
|
|
19
|
-
export {
|
|
29
|
+
export { o as DateDisclosure };
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Badge as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BADGE_TONE_CLASS_NAME as t } from "./index15.js";
|
|
3
|
+
import { DateDisclosure as n } from "./index16.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-destructive"
|
|
10
|
-
}), /* @__PURE__ */ t("div", {
|
|
11
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
12
|
-
children: [/* @__PURE__ */ e("p", {
|
|
13
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
|
|
14
|
-
children: r
|
|
15
|
-
}), i ? /* @__PURE__ */ e("p", {
|
|
16
|
-
className: "ttw:text-sm ttw:text-foreground",
|
|
17
|
-
children: i
|
|
18
|
-
}) : null]
|
|
19
|
-
})]
|
|
6
|
+
function i({ summary: i, date: a }) {
|
|
7
|
+
let o = /* @__PURE__ */ r(e, {
|
|
8
|
+
variant: "outline",
|
|
9
|
+
className: t.committed,
|
|
10
|
+
children: i
|
|
20
11
|
});
|
|
12
|
+
return a ? /* @__PURE__ */ r(n, {
|
|
13
|
+
date: a,
|
|
14
|
+
children: o
|
|
15
|
+
}) : o;
|
|
21
16
|
}
|
|
22
17
|
//#endregion
|
|
23
|
-
export {
|
|
18
|
+
export { i as ScheduledSummaryBadge };
|