@tesouro/embedded-components-react 0.4.21 → 0.4.23
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 +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +64 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +38 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +104 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +87 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +23 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +66 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +74 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +37 -166
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +164 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +47 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +18 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +136 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +39 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +79 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +95 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -121
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +113 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +32 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +70 -226
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -219
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +221 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +220 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +119 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +43 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +29 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +186 -222
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +36 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +230 -375
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +21 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +424 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -192
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +21 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +219 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +109 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +58 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +124 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +45 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +76 -243
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +48 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -196
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +207 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +3 -114
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +106 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js +4 -0
- 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/formatRejectionDate.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +33 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js +0 -4
|
@@ -1,92 +1,7 @@
|
|
|
1
|
-
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o, Label as s, Textarea as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { BILL_DECISION_DIALOG_LABELS_EN as l } from "./index54.js";
|
|
3
|
-
import { Fragment as u, useEffect as d, useState as f } from "react";
|
|
4
|
-
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
5
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, [D, O] = f("");
|
|
11
|
-
if (d(() => {
|
|
12
|
-
h || O("");
|
|
13
|
-
}, [h]), !g) return null;
|
|
14
|
-
let { alignment: k = "start", icon: A, tone: j = "default", actionWidth: M = "auto" } = g.presentation ?? {}, N = k === "center", P = M === "equal", F = g.pendingApprovers ?? [];
|
|
15
|
-
return /* @__PURE__ */ p(e, {
|
|
16
|
-
open: h,
|
|
17
|
-
onOpenChange: (e) => {
|
|
18
|
-
e || v();
|
|
19
|
-
},
|
|
20
|
-
children: /* @__PURE__ */ m(t, {
|
|
21
|
-
"data-testid": S,
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ m(i, {
|
|
24
|
-
className: N ? "ttw:items-center ttw:sm:text-center" : void 0,
|
|
25
|
-
children: [
|
|
26
|
-
A ? /* @__PURE__ */ p("span", {
|
|
27
|
-
className: j === "destructive" ? "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive" : "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
|
|
28
|
-
children: /* @__PURE__ */ p(A, { className: j === "destructive" ? "ttw:size-4 ttw:text-white" : "ttw:size-4 ttw:text-foreground" })
|
|
29
|
-
}) : null,
|
|
30
|
-
/* @__PURE__ */ p(a, { children: g.title }),
|
|
31
|
-
/* @__PURE__ */ p(n, { children: g.description })
|
|
32
|
-
]
|
|
33
|
-
}),
|
|
34
|
-
F.length > 0 ? /* @__PURE__ */ p("div", {
|
|
35
|
-
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:rounded-md ttw:bg-muted ttw:px-3 ttw:py-3",
|
|
36
|
-
children: /* @__PURE__ */ p("ul", {
|
|
37
|
-
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
|
|
38
|
-
children: F.map((e) => /* @__PURE__ */ p("li", {
|
|
39
|
-
className: "ttw:list-disc ttw:text-sm ttw:text-foreground",
|
|
40
|
-
children: e.names.map((e, t) => /* @__PURE__ */ m(u, { children: [t > 0 ? /* @__PURE__ */ p("span", {
|
|
41
|
-
className: "ttw:text-muted-foreground",
|
|
42
|
-
children: ` ${E.orConnector} `
|
|
43
|
-
}) : null, /* @__PURE__ */ p("span", {
|
|
44
|
-
className: "ttw:font-medium",
|
|
45
|
-
children: e
|
|
46
|
-
})] }, e))
|
|
47
|
-
}, e.id))
|
|
48
|
-
})
|
|
49
|
-
}) : null,
|
|
50
|
-
g.reason ? /* @__PURE__ */ m("div", {
|
|
51
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
52
|
-
children: [/* @__PURE__ */ m(s, {
|
|
53
|
-
htmlFor: T,
|
|
54
|
-
children: [g.reason.label, /* @__PURE__ */ p("span", {
|
|
55
|
-
className: "ttw:ml-1 ttw:text-muted-foreground",
|
|
56
|
-
children: g.reason.optionalHint
|
|
57
|
-
})]
|
|
58
|
-
}), /* @__PURE__ */ p(c, {
|
|
59
|
-
id: T,
|
|
60
|
-
value: D,
|
|
61
|
-
placeholder: g.reason.placeholder,
|
|
62
|
-
onChange: (e) => O(e.target.value),
|
|
63
|
-
disabled: y,
|
|
64
|
-
"data-testid": w
|
|
65
|
-
})]
|
|
66
|
-
}) : null,
|
|
67
|
-
/* @__PURE__ */ m(r, {
|
|
68
|
-
className: N ? "ttw:sm:justify-center" : void 0,
|
|
69
|
-
children: [/* @__PURE__ */ p(o, {
|
|
70
|
-
type: "button",
|
|
71
|
-
variant: "outline",
|
|
72
|
-
onClick: v,
|
|
73
|
-
disabled: y,
|
|
74
|
-
className: P ? "ttw:flex-1" : void 0,
|
|
75
|
-
children: E.cancelButton
|
|
76
|
-
}), /* @__PURE__ */ m(o, {
|
|
77
|
-
type: "button",
|
|
78
|
-
variant: j === "destructive" ? "destructive" : "default",
|
|
79
|
-
loading: y,
|
|
80
|
-
disabled: y,
|
|
81
|
-
onClick: () => _(g.reason ? D.trim() : void 0),
|
|
82
|
-
className: P ? "ttw:flex-1" : void 0,
|
|
83
|
-
"data-testid": C,
|
|
84
|
-
children: [y ? null : b, g.confirmButton]
|
|
85
|
-
})]
|
|
86
|
-
})
|
|
87
|
-
]
|
|
88
|
-
})
|
|
89
|
-
});
|
|
90
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
cancelButton: "Cancel",
|
|
4
|
+
orConnector: "or"
|
|
5
|
+
};
|
|
91
6
|
//#endregion
|
|
92
|
-
export {
|
|
7
|
+
export { e as BILL_DECISION_DIALOG_LABELS_EN };
|
|
@@ -1,2 +1,92 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./index55.js";
|
|
1
|
+
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o, Label as s, Textarea as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BILL_DECISION_DIALOG_LABELS_EN as l } from "./index55.js";
|
|
3
|
+
import { Fragment as u, useEffect as d, useState as f } from "react";
|
|
4
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js
|
|
6
|
+
function h({ open: h, copy: g, onConfirm: _, onCancel: v, isPending: y, confirmIcon: b, labels: x, testId: S, confirmTestId: C, reasonTestId: w, reasonFieldId: T = "bill-decision-reason" }) {
|
|
7
|
+
let E = {
|
|
8
|
+
...l,
|
|
9
|
+
...x
|
|
10
|
+
}, [D, O] = f("");
|
|
11
|
+
if (d(() => {
|
|
12
|
+
h || O("");
|
|
13
|
+
}, [h]), !g) return null;
|
|
14
|
+
let { alignment: k = "start", icon: A, tone: j = "default", actionWidth: M = "auto" } = g.presentation ?? {}, N = k === "center", P = M === "equal", F = g.pendingApprovers ?? [];
|
|
15
|
+
return /* @__PURE__ */ p(e, {
|
|
16
|
+
open: h,
|
|
17
|
+
onOpenChange: (e) => {
|
|
18
|
+
e || v();
|
|
19
|
+
},
|
|
20
|
+
children: /* @__PURE__ */ m(t, {
|
|
21
|
+
"data-testid": S,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ m(i, {
|
|
24
|
+
className: N ? "ttw:items-center ttw:sm:text-center" : void 0,
|
|
25
|
+
children: [
|
|
26
|
+
A ? /* @__PURE__ */ p("span", {
|
|
27
|
+
className: j === "destructive" ? "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive" : "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
|
|
28
|
+
children: /* @__PURE__ */ p(A, { className: j === "destructive" ? "ttw:size-4 ttw:text-white" : "ttw:size-4 ttw:text-foreground" })
|
|
29
|
+
}) : null,
|
|
30
|
+
/* @__PURE__ */ p(a, { children: g.title }),
|
|
31
|
+
/* @__PURE__ */ p(n, { children: g.description })
|
|
32
|
+
]
|
|
33
|
+
}),
|
|
34
|
+
F.length > 0 ? /* @__PURE__ */ p("div", {
|
|
35
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:rounded-md ttw:bg-muted ttw:px-3 ttw:py-3",
|
|
36
|
+
children: /* @__PURE__ */ p("ul", {
|
|
37
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
|
|
38
|
+
children: F.map((e) => /* @__PURE__ */ p("li", {
|
|
39
|
+
className: "ttw:list-disc ttw:text-sm ttw:text-foreground",
|
|
40
|
+
children: e.names.map((e, t) => /* @__PURE__ */ m(u, { children: [t > 0 ? /* @__PURE__ */ p("span", {
|
|
41
|
+
className: "ttw:text-muted-foreground",
|
|
42
|
+
children: ` ${E.orConnector} `
|
|
43
|
+
}) : null, /* @__PURE__ */ p("span", {
|
|
44
|
+
className: "ttw:font-medium",
|
|
45
|
+
children: e
|
|
46
|
+
})] }, e))
|
|
47
|
+
}, e.id))
|
|
48
|
+
})
|
|
49
|
+
}) : null,
|
|
50
|
+
g.reason ? /* @__PURE__ */ m("div", {
|
|
51
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
52
|
+
children: [/* @__PURE__ */ m(s, {
|
|
53
|
+
htmlFor: T,
|
|
54
|
+
children: [g.reason.label, /* @__PURE__ */ p("span", {
|
|
55
|
+
className: "ttw:ml-1 ttw:text-muted-foreground",
|
|
56
|
+
children: g.reason.optionalHint
|
|
57
|
+
})]
|
|
58
|
+
}), /* @__PURE__ */ p(c, {
|
|
59
|
+
id: T,
|
|
60
|
+
value: D,
|
|
61
|
+
placeholder: g.reason.placeholder,
|
|
62
|
+
onChange: (e) => O(e.target.value),
|
|
63
|
+
disabled: y,
|
|
64
|
+
"data-testid": w
|
|
65
|
+
})]
|
|
66
|
+
}) : null,
|
|
67
|
+
/* @__PURE__ */ m(r, {
|
|
68
|
+
className: N ? "ttw:sm:justify-center" : void 0,
|
|
69
|
+
children: [/* @__PURE__ */ p(o, {
|
|
70
|
+
type: "button",
|
|
71
|
+
variant: "outline",
|
|
72
|
+
onClick: v,
|
|
73
|
+
disabled: y,
|
|
74
|
+
className: P ? "ttw:flex-1" : void 0,
|
|
75
|
+
children: E.cancelButton
|
|
76
|
+
}), /* @__PURE__ */ m(o, {
|
|
77
|
+
type: "button",
|
|
78
|
+
variant: j === "destructive" ? "destructive" : "default",
|
|
79
|
+
loading: y,
|
|
80
|
+
disabled: y,
|
|
81
|
+
onClick: () => _(g.reason ? D.trim() : void 0),
|
|
82
|
+
className: P ? "ttw:flex-1" : void 0,
|
|
83
|
+
"data-testid": C,
|
|
84
|
+
children: [y ? null : b, g.confirmButton]
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
]
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
export { h as BillDecisionDialog, h as default };
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { MISSING_VALUE_LABELS_EN as t } from "./index57.js";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js
|
|
5
|
-
|
|
6
|
-
let a = {
|
|
7
|
-
...t,
|
|
8
|
-
...r
|
|
9
|
-
};
|
|
10
|
-
return /* @__PURE__ */ n("span", {
|
|
11
|
-
className: e("ttw:text-amber-700", i),
|
|
12
|
-
children: a.missing
|
|
13
|
-
});
|
|
14
|
-
}
|
|
2
|
+
var e = { missing: "Missing" };
|
|
15
3
|
//#endregion
|
|
16
|
-
export {
|
|
4
|
+
export { e as MISSING_VALUE_LABELS_EN };
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./index58.js";
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MISSING_VALUE_LABELS_EN as t } from "./index58.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js
|
|
5
|
+
function r({ labels: r, className: i }) {
|
|
6
|
+
let a = {
|
|
7
|
+
...t,
|
|
8
|
+
...r
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ n("span", {
|
|
11
|
+
className: e("ttw:text-amber-700", i),
|
|
12
|
+
children: a.missing
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as MissingValue, r as default };
|
|
@@ -1,89 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ADD_BILL_PANEL_LABELS_EN as t } from "./index6.js";
|
|
3
|
-
import "./index8.js";
|
|
4
|
-
import { APPROVAL_POLICY_CARD_LABELS_EN as n } from "./index12.js";
|
|
5
|
-
import "./index14.js";
|
|
6
|
-
import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index16.js";
|
|
7
|
-
import "./index19.js";
|
|
8
|
-
import { DUE_DATE_VALUE_LABELS_EN as i } from "./index20.js";
|
|
9
|
-
import "./index22.js";
|
|
10
|
-
import { MISSING_VALUE_LABELS_EN as a } from "./index57.js";
|
|
1
|
+
import "./index58.js";
|
|
11
2
|
import "./index59.js";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js
|
|
13
|
-
var o = {
|
|
14
|
-
loadingTitle: "Loading bill…",
|
|
15
|
-
hiddenDescription: "Bill details",
|
|
16
|
-
errorTitle: "Couldn't load this bill",
|
|
17
|
-
errorDescription: "Something went wrong. Try again.",
|
|
18
|
-
amountDueHeading: "Amount due",
|
|
19
|
-
amountPaidHeading: "Amount paid",
|
|
20
|
-
invoiceDateLabel: "Invoice date",
|
|
21
|
-
dueDateLabel: "Due date",
|
|
22
|
-
approvalOverrideNotice: "If approvers are unavailable, you can override the approval policy from the overflow menu.",
|
|
23
|
-
payToHeading: "Pay to",
|
|
24
|
-
payToHeadingPaid: "Paid to",
|
|
25
|
-
paymentHistoryHeading: "Payment history",
|
|
26
|
-
paymentHistoryErrorDescription: "Couldn't load payment history.",
|
|
27
|
-
invoiceDetailsHeading: "Invoice details",
|
|
28
|
-
lineItemsHeading: "Line items",
|
|
29
|
-
lineItemsQuantityHeading: "Qty/Price",
|
|
30
|
-
lineItemsAmountHeading: "Amount",
|
|
31
|
-
payButton: "Pay",
|
|
32
|
-
markAsPaidButton: "Mark as paid",
|
|
33
|
-
rejectButton: "Reject",
|
|
34
|
-
approveButton: "Approve",
|
|
35
|
-
cancelButton: "Cancel bill",
|
|
36
|
-
cancelScheduledPaymentButton: "Cancel scheduled payment",
|
|
37
|
-
reopenButton: "Reopen bill",
|
|
38
|
-
forceApproveButton: "Approve",
|
|
39
|
-
forceRejectButton: "Reject",
|
|
40
|
-
policyOverridesGroup: "Policy overrides",
|
|
41
|
-
overflowMenuTrigger: "Bill actions",
|
|
42
|
-
expandButton: "Open full screen",
|
|
43
|
-
closeButton: "Close",
|
|
44
|
-
statusBadge: r,
|
|
45
|
-
approvalPolicy: n,
|
|
46
|
-
dueDate: i
|
|
47
|
-
}, s = ".pdf,.png,.jpg,.jpeg,.doc,.docx", c = {
|
|
48
|
-
...t,
|
|
49
|
-
dropzone: {
|
|
50
|
-
...t.dropzone,
|
|
51
|
-
fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
|
|
52
|
-
}
|
|
53
|
-
}, l = {
|
|
54
|
-
createButton: "Add bill",
|
|
55
|
-
columnVendor: "Vendor",
|
|
56
|
-
columnAttachment: "Attachment",
|
|
57
|
-
columnIssueDate: "Issue date",
|
|
58
|
-
columnDueDate: "Due date",
|
|
59
|
-
columnScheduledDate: "Scheduled date",
|
|
60
|
-
columnPaidDate: "Paid date",
|
|
61
|
-
columnAmountDue: "Amount due",
|
|
62
|
-
columnAmountScheduled: "Amount scheduled",
|
|
63
|
-
columnAmountPaid: "Amount paid",
|
|
64
|
-
columnTotalAmount: "Total amount",
|
|
65
|
-
columnStatus: "Status",
|
|
66
|
-
columnAddedOn: "Added on",
|
|
67
|
-
columnActions: "Actions",
|
|
68
|
-
openRow: (e) => `View bill — ${e}`,
|
|
69
|
-
duplicateBillsReviewButton: "Review duplicates",
|
|
70
|
-
searchPlaceholder: "Search by vendor name",
|
|
71
|
-
searchLabel: "Search bills by vendor name",
|
|
72
|
-
filterTabsLabel: "Filter bills by status",
|
|
73
|
-
filteredEmptyTitle: "No bills match",
|
|
74
|
-
filteredEmptyDescription: "Try a different search or status filter.",
|
|
75
|
-
errorTitle: "Couldn't load bills",
|
|
76
|
-
errorDescription: "Something went wrong. Try again.",
|
|
77
|
-
errorRetry: "Retry",
|
|
78
|
-
statusBadge: r,
|
|
79
|
-
addBill: c,
|
|
80
|
-
sortableHeader: {
|
|
81
|
-
sortedAscending: e.sortedAscending,
|
|
82
|
-
sortedDescending: e.sortedDescending,
|
|
83
|
-
notSorted: e.notSorted
|
|
84
|
-
},
|
|
85
|
-
missingValue: a,
|
|
86
|
-
dueDate: i
|
|
87
|
-
};
|
|
88
|
-
//#endregion
|
|
89
|
-
export { l as BILLS_SCREEN_LABELS_EN, s as BILLS_SCREEN_UPLOAD_ACCEPT, o as BILL_DETAILS_SHEET_LABELS_EN };
|