@tesouro/embedded-components-react 0.4.12 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/monite-sdk.d.ts +204 -468
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +37 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +98 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +81 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +7 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +16 -61
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +63 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +66 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +6 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +3 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +28 -166
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +40 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +173 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +45 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +45 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +55 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -66
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +7 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +58 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +134 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +14 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +39 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +78 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +78 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +24 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +47 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +119 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +33 -168
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +170 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +23 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +199 -203
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +198 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +105 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +23 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +47 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +27 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +198 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +30 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +240 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +19 -342
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +364 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +4 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +186 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +3 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +125 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +5 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +239 -101
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +107 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +209 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +64 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +12 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +161 -154
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +47 -337
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +327 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +113 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +95 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +9 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -160
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +178 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +37 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +11 -282
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +87 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +294 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +9 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +5 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +187 -333
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +335 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -0
- 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 +87 -121
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +127 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +85 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +158 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +100 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +0 -28
|
@@ -1,16 +1,92 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 "./index53.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";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
...
|
|
8
|
-
...
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
+
})
|
|
13
89
|
});
|
|
14
90
|
}
|
|
15
91
|
//#endregion
|
|
16
|
-
export {
|
|
92
|
+
export { h as BillDecisionDialog, h as default };
|
|
@@ -1,86 +1,4 @@
|
|
|
1
|
-
import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
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 "./index18.js";
|
|
7
|
-
import "./index21.js";
|
|
8
|
-
import { DUE_DATE_VALUE_LABELS_EN as i } from "./index22.js";
|
|
9
|
-
import "./index24.js";
|
|
10
|
-
import { MISSING_VALUE_LABELS_EN as a } from "./index53.js";
|
|
11
|
-
import "./index55.js";
|
|
12
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js
|
|
13
|
-
var
|
|
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
|
-
payToHeading: "Pay to",
|
|
23
|
-
payToHeadingPaid: "Paid to",
|
|
24
|
-
invoiceDetailsHeading: "Invoice details",
|
|
25
|
-
lineItemsHeading: "Line items",
|
|
26
|
-
lineItemsQuantityHeading: "Qty/Price",
|
|
27
|
-
lineItemsAmountHeading: "Amount",
|
|
28
|
-
payButton: "Pay",
|
|
29
|
-
markAsPaidButton: "Mark as paid",
|
|
30
|
-
rejectButton: "Reject",
|
|
31
|
-
approveButton: "Approve",
|
|
32
|
-
cancelButton: "Cancel bill",
|
|
33
|
-
cancelScheduledPaymentButton: "Cancel scheduled payment",
|
|
34
|
-
reopenButton: "Reopen bill",
|
|
35
|
-
forceApproveButton: "Approve",
|
|
36
|
-
forceRejectButton: "Reject",
|
|
37
|
-
policyOverridesGroup: "Policy overrides",
|
|
38
|
-
overflowMenuTrigger: "Bill actions",
|
|
39
|
-
expandButton: "Open full screen",
|
|
40
|
-
closeButton: "Close",
|
|
41
|
-
statusBadge: r,
|
|
42
|
-
approvalPolicy: n,
|
|
43
|
-
dueDate: i
|
|
44
|
-
}, s = ".pdf,.png,.jpg,.jpeg,.doc,.docx", c = {
|
|
45
|
-
...t,
|
|
46
|
-
dropzone: {
|
|
47
|
-
...t.dropzone,
|
|
48
|
-
fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
|
|
49
|
-
}
|
|
50
|
-
}, l = {
|
|
51
|
-
createButton: "Add bill",
|
|
52
|
-
columnVendor: "Vendor",
|
|
53
|
-
columnAttachment: "Attachment",
|
|
54
|
-
columnIssueDate: "Issue date",
|
|
55
|
-
columnDueDate: "Due date",
|
|
56
|
-
columnScheduledDate: "Scheduled date",
|
|
57
|
-
columnPaidDate: "Paid date",
|
|
58
|
-
columnAmountDue: "Amount due",
|
|
59
|
-
columnAmountScheduled: "Amount scheduled",
|
|
60
|
-
columnAmountPaid: "Amount paid",
|
|
61
|
-
columnTotalAmount: "Total amount",
|
|
62
|
-
columnStatus: "Status",
|
|
63
|
-
columnAddedOn: "Added on",
|
|
64
|
-
columnActions: "Actions",
|
|
65
|
-
openRow: (e) => `View bill — ${e}`,
|
|
66
|
-
duplicateBillsReviewButton: "Review duplicates",
|
|
67
|
-
searchPlaceholder: "Search by vendor name",
|
|
68
|
-
searchLabel: "Search bills by vendor name",
|
|
69
|
-
filterTabsLabel: "Filter bills by status",
|
|
70
|
-
filteredEmptyTitle: "No bills match",
|
|
71
|
-
filteredEmptyDescription: "Try a different search or status filter.",
|
|
72
|
-
errorTitle: "Couldn't load bills",
|
|
73
|
-
errorDescription: "Something went wrong. Try again.",
|
|
74
|
-
errorRetry: "Retry",
|
|
75
|
-
statusBadge: r,
|
|
76
|
-
addBill: c,
|
|
77
|
-
sortableHeader: {
|
|
78
|
-
sortedAscending: e.sortedAscending,
|
|
79
|
-
sortedDescending: e.sortedDescending,
|
|
80
|
-
notSorted: e.notSorted
|
|
81
|
-
},
|
|
82
|
-
missingValue: a,
|
|
83
|
-
dueDate: i
|
|
84
|
-
};
|
|
2
|
+
var e = { missing: "Missing" };
|
|
85
3
|
//#endregion
|
|
86
|
-
export {
|
|
4
|
+
export { e as MISSING_VALUE_LABELS_EN };
|
|
@@ -1,287 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import { BillOverflowMenu as p } from "./index16.js";
|
|
5
|
-
import "./index17.js";
|
|
6
|
-
import { BillStatusBadge as m } from "./index20.js";
|
|
7
|
-
import "./index21.js";
|
|
8
|
-
import { DueDateValue as h } from "./index23.js";
|
|
9
|
-
import "./index24.js";
|
|
10
|
-
import { BillActionButtons as g, NO_BILL_ACTIONS as _ } from "./index15.js";
|
|
11
|
-
import { BILL_DETAILS_SHEET_LABELS_EN as v } from "./index56.js";
|
|
12
|
-
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
13
|
-
import { ChevronDownIcon as S, MoveDiagonal2Icon as C, XIcon as w } from "lucide-react";
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MISSING_VALUE_LABELS_EN as t } from "./index56.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
14
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
|
|
20
|
-
children: [/* @__PURE__ */ b("dt", {
|
|
21
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
22
|
-
children: e.label
|
|
23
|
-
}), /* @__PURE__ */ x("dd", {
|
|
24
|
-
className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
|
|
25
|
-
children: [/* @__PURE__ */ b("span", {
|
|
26
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
27
|
-
children: e.value
|
|
28
|
-
}), e.secondaryValue ? /* @__PURE__ */ b("span", {
|
|
29
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
30
|
-
children: e.secondaryValue
|
|
31
|
-
}) : null]
|
|
32
|
-
})]
|
|
33
|
-
}, e.label))
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function E({ heading: e, children: t }) {
|
|
37
|
-
return /* @__PURE__ */ x(n, {
|
|
38
|
-
defaultOpen: !0,
|
|
39
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
40
|
-
children: [/* @__PURE__ */ x(i, {
|
|
41
|
-
className: "ttw:group ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:rounded-xs ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
|
|
42
|
-
children: [/* @__PURE__ */ b(d, {
|
|
43
|
-
variant: "body1",
|
|
44
|
-
className: "ttw:font-semibold",
|
|
45
|
-
children: e
|
|
46
|
-
}), /* @__PURE__ */ b(S, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
|
|
47
|
-
}), /* @__PURE__ */ b(r, { children: t })]
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function D({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolicy: S, isLoading: D, isError: O, notice: k, onClose: A, onExpand: j, testId: M, labels: N }) {
|
|
51
|
-
let P = {
|
|
52
|
-
...v,
|
|
53
|
-
...N,
|
|
54
|
-
statusBadge: {
|
|
55
|
-
...v.statusBadge,
|
|
56
|
-
...N?.statusBadge
|
|
57
|
-
},
|
|
58
|
-
approvalPolicy: {
|
|
59
|
-
...v.approvalPolicy,
|
|
60
|
-
...N?.approvalPolicy
|
|
61
|
-
},
|
|
62
|
-
dueDate: {
|
|
63
|
-
...v.dueDate,
|
|
64
|
-
...N?.dueDate
|
|
65
|
-
}
|
|
5
|
+
function r({ labels: r, className: i }) {
|
|
6
|
+
let a = {
|
|
7
|
+
...t,
|
|
8
|
+
...r
|
|
66
9
|
};
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
children: /* @__PURE__ */ x(o, {
|
|
71
|
-
showCloseButton: !1,
|
|
72
|
-
className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
|
|
73
|
-
"data-testid": M,
|
|
74
|
-
children: [/* @__PURE__ */ x(c, {
|
|
75
|
-
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
|
|
76
|
-
children: [/* @__PURE__ */ x("div", {
|
|
77
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
78
|
-
children: [
|
|
79
|
-
/* @__PURE__ */ b(l, {
|
|
80
|
-
className: D ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
|
|
81
|
-
children: O ? P.errorTitle : D ? P.loadingTitle : i?.title
|
|
82
|
-
}),
|
|
83
|
-
D ? /* @__PURE__ */ x("div", {
|
|
84
|
-
"aria-hidden": !0,
|
|
85
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
|
|
86
|
-
children: [/* @__PURE__ */ b(u, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ b(u, { className: "ttw:h-4 ttw:w-28" })]
|
|
87
|
-
}) : null,
|
|
88
|
-
i && !D && !O ? /* @__PURE__ */ b("p", {
|
|
89
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
90
|
-
children: i.subtitle
|
|
91
|
-
}) : null,
|
|
92
|
-
/* @__PURE__ */ b(s, {
|
|
93
|
-
className: "ttw:sr-only",
|
|
94
|
-
children: P.hiddenDescription
|
|
95
|
-
})
|
|
96
|
-
]
|
|
97
|
-
}), /* @__PURE__ */ x("div", {
|
|
98
|
-
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
99
|
-
children: [
|
|
100
|
-
j ? /* @__PURE__ */ b(t, {
|
|
101
|
-
type: "button",
|
|
102
|
-
variant: "ghost",
|
|
103
|
-
size: "icon",
|
|
104
|
-
"aria-label": P.expandButton,
|
|
105
|
-
onClick: j,
|
|
106
|
-
children: /* @__PURE__ */ b(C, { className: "ttw:size-4" })
|
|
107
|
-
}) : null,
|
|
108
|
-
i && !D && !O ? /* @__PURE__ */ b(p, {
|
|
109
|
-
actions: d.menu,
|
|
110
|
-
triggerLabel: P.overflowMenuTrigger,
|
|
111
|
-
placement: "header"
|
|
112
|
-
}) : null,
|
|
113
|
-
/* @__PURE__ */ b(t, {
|
|
114
|
-
type: "button",
|
|
115
|
-
variant: "ghost",
|
|
116
|
-
size: "icon",
|
|
117
|
-
"aria-label": P.closeButton,
|
|
118
|
-
onClick: A,
|
|
119
|
-
children: /* @__PURE__ */ b(w, { className: "ttw:size-4" })
|
|
120
|
-
})
|
|
121
|
-
]
|
|
122
|
-
})]
|
|
123
|
-
}), /* @__PURE__ */ b("div", {
|
|
124
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
|
|
125
|
-
children: O ? /* @__PURE__ */ b("p", {
|
|
126
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
127
|
-
children: P.errorDescription
|
|
128
|
-
}) : D ? /* @__PURE__ */ x("div", {
|
|
129
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
130
|
-
children: [/* @__PURE__ */ b(u, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ x("div", {
|
|
131
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
132
|
-
children: [
|
|
133
|
-
/* @__PURE__ */ b(u, { className: "ttw:h-4 ttw:w-40" }),
|
|
134
|
-
/* @__PURE__ */ b(u, { className: "ttw:h-9 ttw:w-full" }),
|
|
135
|
-
/* @__PURE__ */ b(u, { className: "ttw:h-9 ttw:w-full" })
|
|
136
|
-
]
|
|
137
|
-
})]
|
|
138
|
-
}) : i ? /* @__PURE__ */ x(y, { children: [
|
|
139
|
-
k,
|
|
140
|
-
/* @__PURE__ */ x("section", {
|
|
141
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
|
|
142
|
-
children: [
|
|
143
|
-
/* @__PURE__ */ x("div", {
|
|
144
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
145
|
-
children: [i.paidOnLabel ? /* @__PURE__ */ x("div", {
|
|
146
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
147
|
-
children: [/* @__PURE__ */ x("div", {
|
|
148
|
-
className: "ttw:flex ttw:flex-col",
|
|
149
|
-
children: [/* @__PURE__ */ b("span", {
|
|
150
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
151
|
-
children: P.amountDueHeading
|
|
152
|
-
}), /* @__PURE__ */ b("span", {
|
|
153
|
-
className: "ttw:text-3xl ttw:font-semibold",
|
|
154
|
-
children: i.amountDueLabel
|
|
155
|
-
})]
|
|
156
|
-
}), /* @__PURE__ */ x("div", {
|
|
157
|
-
className: "ttw:flex ttw:flex-col",
|
|
158
|
-
children: [/* @__PURE__ */ b("span", {
|
|
159
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
160
|
-
children: P.amountPaidHeading
|
|
161
|
-
}), /* @__PURE__ */ b("span", {
|
|
162
|
-
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
163
|
-
children: i.amountPaidLabel
|
|
164
|
-
})]
|
|
165
|
-
})]
|
|
166
|
-
}) : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("span", {
|
|
167
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
168
|
-
children: P.amountDueHeading
|
|
169
|
-
}), /* @__PURE__ */ b("span", {
|
|
170
|
-
className: "ttw:text-3xl ttw:font-semibold",
|
|
171
|
-
children: i.amountDueLabel
|
|
172
|
-
})] }), /* @__PURE__ */ b("div", { children: i.paidOnLabel ? /* @__PURE__ */ b(e, {
|
|
173
|
-
variant: "outline",
|
|
174
|
-
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
175
|
-
children: i.paidOnLabel
|
|
176
|
-
}) : /* @__PURE__ */ b(m, {
|
|
177
|
-
status: i.status,
|
|
178
|
-
tone: i.statusTone,
|
|
179
|
-
labels: P.statusBadge
|
|
180
|
-
}) })]
|
|
181
|
-
}),
|
|
182
|
-
/* @__PURE__ */ x("div", {
|
|
183
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
|
|
184
|
-
children: [/* @__PURE__ */ x("div", {
|
|
185
|
-
className: "ttw:flex ttw:flex-col",
|
|
186
|
-
children: [/* @__PURE__ */ b("span", {
|
|
187
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
188
|
-
children: P.invoiceDateLabel
|
|
189
|
-
}), /* @__PURE__ */ b("span", {
|
|
190
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
191
|
-
children: i.invoiceDateLabel
|
|
192
|
-
})]
|
|
193
|
-
}), /* @__PURE__ */ x("div", {
|
|
194
|
-
className: "ttw:flex ttw:flex-col",
|
|
195
|
-
children: [/* @__PURE__ */ b("span", {
|
|
196
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
197
|
-
children: P.dueDateLabel
|
|
198
|
-
}), /* @__PURE__ */ b(h, {
|
|
199
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
200
|
-
value: i.dueDateLabel,
|
|
201
|
-
tone: i.dueDateTone,
|
|
202
|
-
labels: P.dueDate
|
|
203
|
-
})]
|
|
204
|
-
})]
|
|
205
|
-
}),
|
|
206
|
-
d.row.length ? /* @__PURE__ */ b("div", {
|
|
207
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
208
|
-
children: /* @__PURE__ */ b(g, { actions: d.row })
|
|
209
|
-
}) : null
|
|
210
|
-
]
|
|
211
|
-
}),
|
|
212
|
-
/* @__PURE__ */ b(E, {
|
|
213
|
-
heading: i.paidOnLabel ? P.payToHeadingPaid : P.payToHeading,
|
|
214
|
-
children: /* @__PURE__ */ b(T, { items: i.payToItems })
|
|
215
|
-
}),
|
|
216
|
-
/* @__PURE__ */ b(E, {
|
|
217
|
-
heading: P.invoiceDetailsHeading,
|
|
218
|
-
children: /* @__PURE__ */ x("div", {
|
|
219
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
220
|
-
children: [
|
|
221
|
-
/* @__PURE__ */ b(T, { items: i.invoiceItems }),
|
|
222
|
-
i.lineItems.length ? /* @__PURE__ */ x("table", {
|
|
223
|
-
className: "ttw:w-full ttw:text-sm",
|
|
224
|
-
children: [/* @__PURE__ */ b("thead", { children: /* @__PURE__ */ x("tr", {
|
|
225
|
-
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
226
|
-
children: [
|
|
227
|
-
/* @__PURE__ */ b("th", {
|
|
228
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
|
|
229
|
-
children: P.lineItemsHeading
|
|
230
|
-
}),
|
|
231
|
-
/* @__PURE__ */ b("th", {
|
|
232
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
233
|
-
children: P.lineItemsQuantityHeading
|
|
234
|
-
}),
|
|
235
|
-
/* @__PURE__ */ b("th", {
|
|
236
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
237
|
-
children: P.lineItemsAmountHeading
|
|
238
|
-
})
|
|
239
|
-
]
|
|
240
|
-
}) }), /* @__PURE__ */ b("tbody", { children: i.lineItems.map((e) => /* @__PURE__ */ x("tr", {
|
|
241
|
-
className: "ttw:border-b ttw:border-border",
|
|
242
|
-
children: [
|
|
243
|
-
/* @__PURE__ */ x("td", {
|
|
244
|
-
className: "ttw:px-3 ttw:py-2",
|
|
245
|
-
children: [/* @__PURE__ */ b("span", {
|
|
246
|
-
className: "ttw:block",
|
|
247
|
-
children: e.description
|
|
248
|
-
}), /* @__PURE__ */ b("span", {
|
|
249
|
-
className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
|
|
250
|
-
children: e.glCodeLabel
|
|
251
|
-
})]
|
|
252
|
-
}),
|
|
253
|
-
/* @__PURE__ */ b("td", {
|
|
254
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
|
|
255
|
-
children: e.quantityLabel
|
|
256
|
-
}),
|
|
257
|
-
/* @__PURE__ */ b("td", {
|
|
258
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
|
|
259
|
-
children: e.amountLabel
|
|
260
|
-
})
|
|
261
|
-
]
|
|
262
|
-
}, e.id)) })]
|
|
263
|
-
}) : null,
|
|
264
|
-
/* @__PURE__ */ b("dl", {
|
|
265
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
266
|
-
children: i.totals.map((e) => /* @__PURE__ */ x("div", {
|
|
267
|
-
className: e.emphasis ? "ttw:flex ttw:justify-between ttw:gap-6 ttw:border-t ttw:border-border ttw:pt-2 ttw:text-base ttw:font-semibold" : "ttw:flex ttw:justify-between ttw:gap-6 ttw:text-sm",
|
|
268
|
-
children: [/* @__PURE__ */ b("dt", {
|
|
269
|
-
className: e.emphasis ? "" : "ttw:text-muted-foreground",
|
|
270
|
-
children: e.label
|
|
271
|
-
}), /* @__PURE__ */ b("dd", { children: e.value })]
|
|
272
|
-
}, e.label))
|
|
273
|
-
})
|
|
274
|
-
]
|
|
275
|
-
})
|
|
276
|
-
}),
|
|
277
|
-
S ? /* @__PURE__ */ b(f, {
|
|
278
|
-
view: S,
|
|
279
|
-
labels: P.approvalPolicy
|
|
280
|
-
}) : null
|
|
281
|
-
] }) : null
|
|
282
|
-
})]
|
|
283
|
-
})
|
|
10
|
+
return /* @__PURE__ */ n("span", {
|
|
11
|
+
className: e("ttw:text-amber-700", i),
|
|
12
|
+
children: a.missing
|
|
284
13
|
});
|
|
285
14
|
}
|
|
286
15
|
//#endregion
|
|
287
|
-
export {
|
|
16
|
+
export { r as MissingValue, r as default };
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js
|
|
5
|
-
function r({ label: r, tone: i = "warning" }) {
|
|
6
|
-
return /* @__PURE__ */ n(e, {
|
|
7
|
-
variant: "outline",
|
|
8
|
-
className: t[i],
|
|
9
|
-
children: r
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { r as BillDuplicateBadge, r as default };
|
|
1
|
+
import "./index56.js";
|
|
2
|
+
import "./index57.js";
|
|
@@ -1 +1,88 @@
|
|
|
1
|
+
import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
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 "./index56.js";
|
|
1
11
|
import "./index58.js";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.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
|
+
payToHeading: "Pay to",
|
|
23
|
+
payToHeadingPaid: "Paid to",
|
|
24
|
+
paymentHistoryHeading: "Payment history",
|
|
25
|
+
paymentHistoryErrorDescription: "Couldn't load payment history.",
|
|
26
|
+
invoiceDetailsHeading: "Invoice details",
|
|
27
|
+
lineItemsHeading: "Line items",
|
|
28
|
+
lineItemsQuantityHeading: "Qty/Price",
|
|
29
|
+
lineItemsAmountHeading: "Amount",
|
|
30
|
+
payButton: "Pay",
|
|
31
|
+
markAsPaidButton: "Mark as paid",
|
|
32
|
+
rejectButton: "Reject",
|
|
33
|
+
approveButton: "Approve",
|
|
34
|
+
cancelButton: "Cancel bill",
|
|
35
|
+
cancelScheduledPaymentButton: "Cancel scheduled payment",
|
|
36
|
+
reopenButton: "Reopen bill",
|
|
37
|
+
forceApproveButton: "Approve",
|
|
38
|
+
forceRejectButton: "Reject",
|
|
39
|
+
policyOverridesGroup: "Policy overrides",
|
|
40
|
+
overflowMenuTrigger: "Bill actions",
|
|
41
|
+
expandButton: "Open full screen",
|
|
42
|
+
closeButton: "Close",
|
|
43
|
+
statusBadge: r,
|
|
44
|
+
approvalPolicy: n,
|
|
45
|
+
dueDate: i
|
|
46
|
+
}, s = ".pdf,.png,.jpg,.jpeg,.doc,.docx", c = {
|
|
47
|
+
...t,
|
|
48
|
+
dropzone: {
|
|
49
|
+
...t.dropzone,
|
|
50
|
+
fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
|
|
51
|
+
}
|
|
52
|
+
}, l = {
|
|
53
|
+
createButton: "Add bill",
|
|
54
|
+
columnVendor: "Vendor",
|
|
55
|
+
columnAttachment: "Attachment",
|
|
56
|
+
columnIssueDate: "Issue date",
|
|
57
|
+
columnDueDate: "Due date",
|
|
58
|
+
columnScheduledDate: "Scheduled date",
|
|
59
|
+
columnPaidDate: "Paid date",
|
|
60
|
+
columnAmountDue: "Amount due",
|
|
61
|
+
columnAmountScheduled: "Amount scheduled",
|
|
62
|
+
columnAmountPaid: "Amount paid",
|
|
63
|
+
columnTotalAmount: "Total amount",
|
|
64
|
+
columnStatus: "Status",
|
|
65
|
+
columnAddedOn: "Added on",
|
|
66
|
+
columnActions: "Actions",
|
|
67
|
+
openRow: (e) => `View bill — ${e}`,
|
|
68
|
+
duplicateBillsReviewButton: "Review duplicates",
|
|
69
|
+
searchPlaceholder: "Search by vendor name",
|
|
70
|
+
searchLabel: "Search bills by vendor name",
|
|
71
|
+
filterTabsLabel: "Filter bills by status",
|
|
72
|
+
filteredEmptyTitle: "No bills match",
|
|
73
|
+
filteredEmptyDescription: "Try a different search or status filter.",
|
|
74
|
+
errorTitle: "Couldn't load bills",
|
|
75
|
+
errorDescription: "Something went wrong. Try again.",
|
|
76
|
+
errorRetry: "Retry",
|
|
77
|
+
statusBadge: r,
|
|
78
|
+
addBill: c,
|
|
79
|
+
sortableHeader: {
|
|
80
|
+
sortedAscending: e.sortedAscending,
|
|
81
|
+
sortedDescending: e.sortedDescending,
|
|
82
|
+
notSorted: e.notSorted
|
|
83
|
+
},
|
|
84
|
+
missingValue: a,
|
|
85
|
+
dueDate: i
|
|
86
|
+
};
|
|
87
|
+
//#endregion
|
|
88
|
+
export { l as BILLS_SCREEN_LABELS_EN, s as BILLS_SCREEN_UPLOAD_ACCEPT, o as BILL_DETAILS_SHEET_LABELS_EN };
|