@tesouro/embedded-components-react 0.4.13 → 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 -347
- 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 +42 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +10 -2
- 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/index23.js +29 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +1 -297
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +307 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +2 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +45 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +48 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -340
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +338 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +2 -120
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +118 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -99
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +97 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +1 -58
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +52 -179
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +180 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +39 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +90 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +14 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -287
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +86 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +296 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +37 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +37 -199
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +199 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -346
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +345 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +8 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +93 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +120 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +87 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +32 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +1 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +104 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +17 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +123 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +15 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +167 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +106 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +2 -52
- 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 -127
|
@@ -1,99 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { useId as p, useState as m } from "react";
|
|
4
|
-
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
5
|
-
import { ChevronDown as _, Plus as v } from "lucide-react";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js
|
|
7
|
-
var y = 5, b = "ttw:min-h-44";
|
|
8
|
-
function x({ query: x, onQueryChange: S, results: C, isLoading: w, onAddVendor: T, testId: E, labels: D }) {
|
|
9
|
-
let O = {
|
|
10
|
-
...f,
|
|
11
|
-
...D
|
|
12
|
-
}, k = p(), [A, j] = m(!1);
|
|
13
|
-
return /* @__PURE__ */ g("div", {
|
|
14
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
15
|
-
"data-testid": E,
|
|
16
|
-
children: [/* @__PURE__ */ h(o, {
|
|
17
|
-
htmlFor: k,
|
|
18
|
-
children: O.fieldLabel
|
|
19
|
-
}), /* @__PURE__ */ g(s, {
|
|
20
|
-
open: A,
|
|
21
|
-
onOpenChange: j,
|
|
22
|
-
children: [/* @__PURE__ */ h(l, {
|
|
23
|
-
asChild: !0,
|
|
24
|
-
children: /* @__PURE__ */ g("button", {
|
|
25
|
-
type: "button",
|
|
26
|
-
id: k,
|
|
27
|
-
role: "combobox",
|
|
28
|
-
"aria-expanded": A,
|
|
29
|
-
className: "ttw:flex ttw:h-10 ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3 ttw:text-left ttw:text-sm ttw:shadow-xs ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50",
|
|
30
|
-
children: [/* @__PURE__ */ h("span", {
|
|
31
|
-
className: "ttw:min-w-0 ttw:flex-1 ttw:truncate ttw:text-muted-foreground",
|
|
32
|
-
children: O.triggerPlaceholder
|
|
33
|
-
}), /* @__PURE__ */ h(_, {
|
|
34
|
-
"aria-hidden": !0,
|
|
35
|
-
className: "ttw:size-4 ttw:shrink-0 ttw:opacity-50"
|
|
36
|
-
})]
|
|
37
|
-
})
|
|
38
|
-
}), /* @__PURE__ */ h(c, {
|
|
39
|
-
align: "start",
|
|
40
|
-
className: "ttw:w-[var(--radix-popover-trigger-width)] ttw:p-0",
|
|
41
|
-
children: /* @__PURE__ */ g(e, {
|
|
42
|
-
shouldFilter: !1,
|
|
43
|
-
children: [/* @__PURE__ */ h(n, {
|
|
44
|
-
value: x,
|
|
45
|
-
onValueChange: S,
|
|
46
|
-
placeholder: O.placeholder,
|
|
47
|
-
"aria-label": O.placeholder
|
|
48
|
-
}), /* @__PURE__ */ g(i, {
|
|
49
|
-
className: d("ttw:max-h-72", b),
|
|
50
|
-
children: [
|
|
51
|
-
w ? /* @__PURE__ */ g("div", {
|
|
52
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-2",
|
|
53
|
-
"aria-busy": "true",
|
|
54
|
-
children: [/* @__PURE__ */ h("span", {
|
|
55
|
-
className: "ttw:sr-only",
|
|
56
|
-
children: O.loading
|
|
57
|
-
}), Array.from({ length: y }).map((e, t) => /* @__PURE__ */ g("div", {
|
|
58
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:px-2 ttw:py-1.5",
|
|
59
|
-
children: [/* @__PURE__ */ h(u, {
|
|
60
|
-
height: 14,
|
|
61
|
-
width: "55%"
|
|
62
|
-
}), /* @__PURE__ */ h(u, {
|
|
63
|
-
height: 14,
|
|
64
|
-
width: "30%"
|
|
65
|
-
})]
|
|
66
|
-
}, t))]
|
|
67
|
-
}) : x ? C.length === 0 ? /* @__PURE__ */ h("div", {
|
|
68
|
-
className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm", b),
|
|
69
|
-
children: O.emptyResults
|
|
70
|
-
}) : /* @__PURE__ */ h(t, { children: C.map((e, t) => /* @__PURE__ */ g(r, {
|
|
71
|
-
value: `${e.name} ${e.email} ${t}`,
|
|
72
|
-
onSelect: () => e.onSelect(),
|
|
73
|
-
children: [/* @__PURE__ */ h("span", {
|
|
74
|
-
className: "ttw:text-foreground",
|
|
75
|
-
children: e.name
|
|
76
|
-
}), /* @__PURE__ */ h("span", {
|
|
77
|
-
className: "ttw:ml-auto ttw:text-muted-foreground",
|
|
78
|
-
children: e.email
|
|
79
|
-
})]
|
|
80
|
-
}, `${e.name}:${e.email}:${t}`)) }) : /* @__PURE__ */ h("div", {
|
|
81
|
-
className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm ttw:text-muted-foreground", b),
|
|
82
|
-
children: O.searchHint
|
|
83
|
-
}),
|
|
84
|
-
/* @__PURE__ */ h(a, {}),
|
|
85
|
-
/* @__PURE__ */ g(r, {
|
|
86
|
-
value: "__add_vendor__",
|
|
87
|
-
onSelect: T,
|
|
88
|
-
className: "ttw:sticky ttw:bottom-0 ttw:bg-popover ttw:text-primary",
|
|
89
|
-
children: [/* @__PURE__ */ h(v, { className: "ttw:size-4 ttw:text-primary" }), O.addVendorAction]
|
|
90
|
-
})
|
|
91
|
-
]
|
|
92
|
-
})]
|
|
93
|
-
})
|
|
94
|
-
})]
|
|
95
|
-
})]
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
export { x as VendorSearchCombobox, x as default };
|
|
1
|
+
import "./index37.js";
|
|
2
|
+
import "./index38.js";
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js
|
|
2
|
+
var e = {
|
|
3
|
+
fieldLabel: "Select or add vendor",
|
|
4
|
+
triggerPlaceholder: "Select vendor",
|
|
5
|
+
placeholder: "Search",
|
|
6
|
+
searchHint: "Type a vendor name to search",
|
|
7
|
+
loading: "Searching vendors...",
|
|
8
|
+
emptyResults: "No vendors found",
|
|
9
|
+
addVendorAction: "Add vendor"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as VENDOR_SEARCH_COMBOBOX_LABELS_EN };
|
|
@@ -1,13 +1,99 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
1
|
+
import { Command as e, CommandGroup as t, CommandInput as n, CommandItem as r, CommandList as i, CommandSeparator as a, Label as o, Popover as s, PopoverContent as c, PopoverTrigger as l, Skeleton as u, cn as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as f } from "./index40.js";
|
|
3
|
+
import { useId as p, useState as m } from "react";
|
|
4
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
5
|
+
import { ChevronDown as _, Plus as v } from "lucide-react";
|
|
5
6
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
7
|
+
var y = 5, b = "ttw:min-h-44";
|
|
8
|
+
function x({ query: x, onQueryChange: S, results: C, isLoading: w, onAddVendor: T, testId: E, labels: D }) {
|
|
9
|
+
let O = {
|
|
10
|
+
...f,
|
|
11
|
+
...D
|
|
12
|
+
}, k = p(), [A, j] = m(!1);
|
|
13
|
+
return /* @__PURE__ */ g("div", {
|
|
14
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
15
|
+
"data-testid": E,
|
|
16
|
+
children: [/* @__PURE__ */ h(o, {
|
|
17
|
+
htmlFor: k,
|
|
18
|
+
children: O.fieldLabel
|
|
19
|
+
}), /* @__PURE__ */ g(s, {
|
|
20
|
+
open: A,
|
|
21
|
+
onOpenChange: j,
|
|
22
|
+
children: [/* @__PURE__ */ h(l, {
|
|
23
|
+
asChild: !0,
|
|
24
|
+
children: /* @__PURE__ */ g("button", {
|
|
25
|
+
type: "button",
|
|
26
|
+
id: k,
|
|
27
|
+
role: "combobox",
|
|
28
|
+
"aria-expanded": A,
|
|
29
|
+
className: "ttw:flex ttw:h-10 ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3 ttw:text-left ttw:text-sm ttw:shadow-xs ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50",
|
|
30
|
+
children: [/* @__PURE__ */ h("span", {
|
|
31
|
+
className: "ttw:min-w-0 ttw:flex-1 ttw:truncate ttw:text-muted-foreground",
|
|
32
|
+
children: O.triggerPlaceholder
|
|
33
|
+
}), /* @__PURE__ */ h(_, {
|
|
34
|
+
"aria-hidden": !0,
|
|
35
|
+
className: "ttw:size-4 ttw:shrink-0 ttw:opacity-50"
|
|
36
|
+
})]
|
|
37
|
+
})
|
|
38
|
+
}), /* @__PURE__ */ h(c, {
|
|
39
|
+
align: "start",
|
|
40
|
+
className: "ttw:w-[var(--radix-popover-trigger-width)] ttw:p-0",
|
|
41
|
+
children: /* @__PURE__ */ g(e, {
|
|
42
|
+
shouldFilter: !1,
|
|
43
|
+
children: [/* @__PURE__ */ h(n, {
|
|
44
|
+
value: x,
|
|
45
|
+
onValueChange: S,
|
|
46
|
+
placeholder: O.placeholder,
|
|
47
|
+
"aria-label": O.placeholder
|
|
48
|
+
}), /* @__PURE__ */ g(i, {
|
|
49
|
+
className: d("ttw:max-h-72", b),
|
|
50
|
+
children: [
|
|
51
|
+
w ? /* @__PURE__ */ g("div", {
|
|
52
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-2",
|
|
53
|
+
"aria-busy": "true",
|
|
54
|
+
children: [/* @__PURE__ */ h("span", {
|
|
55
|
+
className: "ttw:sr-only",
|
|
56
|
+
children: O.loading
|
|
57
|
+
}), Array.from({ length: y }).map((e, t) => /* @__PURE__ */ g("div", {
|
|
58
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:px-2 ttw:py-1.5",
|
|
59
|
+
children: [/* @__PURE__ */ h(u, {
|
|
60
|
+
height: 14,
|
|
61
|
+
width: "55%"
|
|
62
|
+
}), /* @__PURE__ */ h(u, {
|
|
63
|
+
height: 14,
|
|
64
|
+
width: "30%"
|
|
65
|
+
})]
|
|
66
|
+
}, t))]
|
|
67
|
+
}) : x ? C.length === 0 ? /* @__PURE__ */ h("div", {
|
|
68
|
+
className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm", b),
|
|
69
|
+
children: O.emptyResults
|
|
70
|
+
}) : /* @__PURE__ */ h(t, { children: C.map((e, t) => /* @__PURE__ */ g(r, {
|
|
71
|
+
value: `${e.name} ${e.email} ${t}`,
|
|
72
|
+
onSelect: () => e.onSelect(),
|
|
73
|
+
children: [/* @__PURE__ */ h("span", {
|
|
74
|
+
className: "ttw:text-foreground",
|
|
75
|
+
children: e.name
|
|
76
|
+
}), /* @__PURE__ */ h("span", {
|
|
77
|
+
className: "ttw:ml-auto ttw:text-muted-foreground",
|
|
78
|
+
children: e.email
|
|
79
|
+
})]
|
|
80
|
+
}, `${e.name}:${e.email}:${t}`)) }) : /* @__PURE__ */ h("div", {
|
|
81
|
+
className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm ttw:text-muted-foreground", b),
|
|
82
|
+
children: O.searchHint
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ h(a, {}),
|
|
85
|
+
/* @__PURE__ */ g(r, {
|
|
86
|
+
value: "__add_vendor__",
|
|
87
|
+
onSelect: T,
|
|
88
|
+
className: "ttw:sticky ttw:bottom-0 ttw:bg-popover ttw:text-primary",
|
|
89
|
+
children: [/* @__PURE__ */ h(v, { className: "ttw:size-4 ttw:text-primary" }), O.addVendorAction]
|
|
90
|
+
})
|
|
91
|
+
]
|
|
92
|
+
})]
|
|
93
|
+
})
|
|
94
|
+
})]
|
|
95
|
+
})]
|
|
96
|
+
});
|
|
97
|
+
}
|
|
12
98
|
//#endregion
|
|
13
|
-
export {
|
|
99
|
+
export { x as VendorSearchCombobox, x as default };
|
|
@@ -1,59 +1,2 @@
|
|
|
1
|
-
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { VendorSummaryCard as t } from "./index36.js";
|
|
3
|
-
import "./index37.js";
|
|
4
|
-
import { VendorSearchCombobox as n } from "./index39.js";
|
|
5
1
|
import "./index40.js";
|
|
6
|
-
import
|
|
7
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
8
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js
|
|
9
|
-
function o(o) {
|
|
10
|
-
let { onEdit: s, onClear: c, error: l, testId: u, labels: d, disabled: f } = o, p = {
|
|
11
|
-
...r,
|
|
12
|
-
...d,
|
|
13
|
-
summaryCard: {
|
|
14
|
-
...r.summaryCard,
|
|
15
|
-
...d?.summaryCard,
|
|
16
|
-
ach: {
|
|
17
|
-
...r.summaryCard.ach,
|
|
18
|
-
...d?.summaryCard?.ach
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
search: {
|
|
22
|
-
...r.search,
|
|
23
|
-
...d?.search
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
return /* @__PURE__ */ a("section", {
|
|
27
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
28
|
-
"data-invalid": l ? !0 : void 0,
|
|
29
|
-
"data-testid": u,
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ i(e, {
|
|
32
|
-
component: "h2",
|
|
33
|
-
variant: "h6",
|
|
34
|
-
className: "ttw:font-semibold",
|
|
35
|
-
children: p.heading
|
|
36
|
-
}),
|
|
37
|
-
o.mode === "resolved" ? /* @__PURE__ */ i(t, {
|
|
38
|
-
summary: o.summary,
|
|
39
|
-
onEdit: s,
|
|
40
|
-
onClear: c,
|
|
41
|
-
paymentInstructions: f ? void 0 : o.paymentInstructions,
|
|
42
|
-
labels: p.summaryCard
|
|
43
|
-
}) : f ? /* @__PURE__ */ i(e, {
|
|
44
|
-
variant: "body2",
|
|
45
|
-
className: "ttw:text-muted-foreground",
|
|
46
|
-
children: p.noVendorPlaceholder
|
|
47
|
-
}) : o.mode === "selecting" ? /* @__PURE__ */ i(n, {
|
|
48
|
-
...o.search,
|
|
49
|
-
labels: p.search
|
|
50
|
-
}) : o.newVendorForm,
|
|
51
|
-
l ? /* @__PURE__ */ i("p", {
|
|
52
|
-
className: "ttw:text-sm ttw:text-destructive",
|
|
53
|
-
children: l
|
|
54
|
-
}) : null
|
|
55
|
-
]
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
//#endregion
|
|
59
|
-
export { o as VendorSection, o as default };
|
|
2
|
+
import "./index41.js";
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { VENDOR_SUMMARY_CARD_LABELS_EN as e } from "./index37.js";
|
|
2
|
+
import "./index39.js";
|
|
3
|
+
import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as t } from "./index40.js";
|
|
2
4
|
import "./index42.js";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js
|
|
6
|
+
var n = {
|
|
7
|
+
heading: "Who are you paying?",
|
|
8
|
+
summaryCard: e,
|
|
9
|
+
search: t,
|
|
10
|
+
noVendorPlaceholder: "No vendor selected"
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as VENDOR_SECTION_LABELS_EN };
|
|
@@ -1,55 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import "./index43.js";
|
|
1
|
+
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { VendorSummaryCard as t } from "./index38.js";
|
|
3
|
+
import "./index39.js";
|
|
4
|
+
import { VendorSearchCombobox as n } from "./index41.js";
|
|
5
|
+
import "./index42.js";
|
|
6
|
+
import { VENDOR_SECTION_LABELS_EN as r } from "./index43.js";
|
|
7
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
9
8
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
lineItems: r,
|
|
21
|
-
detailBody: e
|
|
22
|
-
};
|
|
23
|
-
function o(e) {
|
|
24
|
-
return {
|
|
25
|
-
...a,
|
|
26
|
-
...e,
|
|
27
|
-
vendorSection: {
|
|
28
|
-
...a.vendorSection,
|
|
29
|
-
...e?.vendorSection,
|
|
30
|
-
summaryCard: {
|
|
31
|
-
...a.vendorSection.summaryCard,
|
|
32
|
-
...e?.vendorSection?.summaryCard,
|
|
33
|
-
ach: {
|
|
34
|
-
...a.vendorSection.summaryCard.ach,
|
|
35
|
-
...e?.vendorSection?.summaryCard?.ach
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
search: {
|
|
39
|
-
...a.vendorSection.search,
|
|
40
|
-
...e?.vendorSection?.search
|
|
9
|
+
function o(o) {
|
|
10
|
+
let { onEdit: s, onClear: c, error: l, testId: u, labels: d, disabled: f } = o, p = {
|
|
11
|
+
...r,
|
|
12
|
+
...d,
|
|
13
|
+
summaryCard: {
|
|
14
|
+
...r.summaryCard,
|
|
15
|
+
...d?.summaryCard,
|
|
16
|
+
ach: {
|
|
17
|
+
...r.summaryCard.ach,
|
|
18
|
+
...d?.summaryCard?.ach
|
|
41
19
|
}
|
|
42
20
|
},
|
|
43
|
-
|
|
44
|
-
...
|
|
45
|
-
...
|
|
46
|
-
}
|
|
47
|
-
lineItems: {
|
|
48
|
-
...a.lineItems,
|
|
49
|
-
...e?.lineItems
|
|
50
|
-
},
|
|
51
|
-
detailBody: t(e?.detailBody)
|
|
21
|
+
search: {
|
|
22
|
+
...r.search,
|
|
23
|
+
...d?.search
|
|
24
|
+
}
|
|
52
25
|
};
|
|
26
|
+
return /* @__PURE__ */ a("section", {
|
|
27
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
28
|
+
"data-invalid": l ? !0 : void 0,
|
|
29
|
+
"data-testid": u,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ i(e, {
|
|
32
|
+
component: "h2",
|
|
33
|
+
variant: "h6",
|
|
34
|
+
className: "ttw:font-semibold",
|
|
35
|
+
children: p.heading
|
|
36
|
+
}),
|
|
37
|
+
o.mode === "resolved" ? /* @__PURE__ */ i(t, {
|
|
38
|
+
summary: o.summary,
|
|
39
|
+
onEdit: s,
|
|
40
|
+
onClear: c,
|
|
41
|
+
paymentInstructions: f ? void 0 : o.paymentInstructions,
|
|
42
|
+
labels: p.summaryCard
|
|
43
|
+
}) : f ? /* @__PURE__ */ i(e, {
|
|
44
|
+
variant: "body2",
|
|
45
|
+
className: "ttw:text-muted-foreground",
|
|
46
|
+
children: p.noVendorPlaceholder
|
|
47
|
+
}) : o.mode === "selecting" ? /* @__PURE__ */ i(n, {
|
|
48
|
+
...o.search,
|
|
49
|
+
labels: p.search
|
|
50
|
+
}) : o.newVendorForm,
|
|
51
|
+
l ? /* @__PURE__ */ i("p", {
|
|
52
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
53
|
+
children: l
|
|
54
|
+
}) : null
|
|
55
|
+
]
|
|
56
|
+
});
|
|
53
57
|
}
|
|
54
58
|
//#endregion
|
|
55
|
-
export {
|
|
59
|
+
export { o as VendorSection, o as default };
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
function n(n) {
|
|
4
|
-
let r = t(null), i = t(n);
|
|
5
|
-
return e(() => {
|
|
6
|
-
if (n === i.current) return;
|
|
7
|
-
i.current = n;
|
|
8
|
-
let e = r.current?.querySelector("[aria-invalid=\"true\"], [data-invalid=\"true\"]");
|
|
9
|
-
e?.scrollIntoView({ block: "center" }), e?.focus({ preventScroll: !0 });
|
|
10
|
-
}, [n]), r;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { n as useFocusFirstInvalidField };
|
|
1
|
+
import "./index43.js";
|
|
2
|
+
import "./index44.js";
|
|
@@ -1,182 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
9
|
-
import "./index31.js";
|
|
10
|
-
import { LineItemsSection as h } from "./index33.js";
|
|
11
|
-
import "./index34.js";
|
|
12
|
-
import { VendorSection as g } from "./index42.js";
|
|
13
|
-
import "./index43.js";
|
|
14
|
-
import { mergeBillCreateScreenLabels as _ } from "./index44.js";
|
|
15
|
-
import { useFocusFirstInvalidField as v } from "./index45.js";
|
|
16
|
-
import { Fragment as y, useId as b } from "react";
|
|
17
|
-
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
18
|
-
import { Minimize2 as w, MoreVertical as ne, X as T } from "lucide-react";
|
|
1
|
+
import { BILL_DETAIL_BODY_LABELS_EN as e, mergeBillDetailBodyLabels as t } from "./index25.js";
|
|
2
|
+
import "./index27.js";
|
|
3
|
+
import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index28.js";
|
|
4
|
+
import "./index30.js";
|
|
5
|
+
import { LINE_ITEMS_SECTION_LABELS_EN as r } from "./index34.js";
|
|
6
|
+
import "./index36.js";
|
|
7
|
+
import { VENDOR_SECTION_LABELS_EN as i } from "./index43.js";
|
|
8
|
+
import "./index45.js";
|
|
19
9
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
type: "button",
|
|
64
|
-
variant: "ghost",
|
|
65
|
-
size: "icon",
|
|
66
|
-
"aria-label": Q.menuTrigger,
|
|
67
|
-
disabled: V,
|
|
68
|
-
children: /* @__PURE__ */ S(ne, { className: "ttw:size-4" })
|
|
69
|
-
})
|
|
70
|
-
}), /* @__PURE__ */ S(s, {
|
|
71
|
-
align: "end",
|
|
72
|
-
children: ie.map((e, t) => {
|
|
73
|
-
let n = e.items.map((e) => {
|
|
74
|
-
let t = e.icon;
|
|
75
|
-
return /* @__PURE__ */ C(l, {
|
|
76
|
-
variant: e.destructive ? "destructive" : void 0,
|
|
77
|
-
disabled: e.disabled,
|
|
78
|
-
onSelect: e.onSelect,
|
|
79
|
-
children: [t ? /* @__PURE__ */ S(t, { className: "ttw:size-4" }) : null, e.label]
|
|
80
|
-
}, e.id);
|
|
81
|
-
});
|
|
82
|
-
if (!e.heading) return /* @__PURE__ */ S(y, { children: n }, e.items[0]?.id);
|
|
83
|
-
let r = `${re}-${t}`;
|
|
84
|
-
return /* @__PURE__ */ C(y, { children: [
|
|
85
|
-
t > 0 ? /* @__PURE__ */ S(ee, {}) : null,
|
|
86
|
-
/* @__PURE__ */ S(u, {
|
|
87
|
-
id: r,
|
|
88
|
-
className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
|
|
89
|
-
children: e.heading
|
|
90
|
-
}),
|
|
91
|
-
/* @__PURE__ */ S(c, {
|
|
92
|
-
"aria-labelledby": r,
|
|
93
|
-
children: n
|
|
94
|
-
})
|
|
95
|
-
] }, e.items[0]?.id);
|
|
96
|
-
})
|
|
97
|
-
})] }) : null,
|
|
98
|
-
/* @__PURE__ */ S(e, {
|
|
99
|
-
type: "button",
|
|
100
|
-
variant: "ghost",
|
|
101
|
-
size: "icon",
|
|
102
|
-
"aria-label": Q.closeButton,
|
|
103
|
-
disabled: V,
|
|
104
|
-
onClick: G,
|
|
105
|
-
children: /* @__PURE__ */ S(T, { className: "ttw:size-4" })
|
|
106
|
-
})
|
|
107
|
-
]
|
|
108
|
-
})]
|
|
109
|
-
}),
|
|
110
|
-
/* @__PURE__ */ C("div", {
|
|
111
|
-
className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
|
|
112
|
-
children: [/* @__PURE__ */ C("div", {
|
|
113
|
-
ref: ae,
|
|
114
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
|
|
115
|
-
children: [
|
|
116
|
-
N?.form ? /* @__PURE__ */ S("div", {
|
|
117
|
-
"data-invalid": "true",
|
|
118
|
-
children: /* @__PURE__ */ S(f, { children: N.form })
|
|
119
|
-
}) : null,
|
|
120
|
-
A ? /* @__PURE__ */ S("div", {
|
|
121
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
122
|
-
children: A
|
|
123
|
-
}) : null,
|
|
124
|
-
$ ? /* @__PURE__ */ S(te, {
|
|
125
|
-
...z,
|
|
126
|
-
labels: Q.detailBody
|
|
127
|
-
}) : /* @__PURE__ */ C(x, { children: [
|
|
128
|
-
/* @__PURE__ */ S(g, {
|
|
129
|
-
...j,
|
|
130
|
-
onEdit: R ? void 0 : j.onEdit,
|
|
131
|
-
onClear: R ? void 0 : j.onClear,
|
|
132
|
-
disabled: R,
|
|
133
|
-
labels: Q.vendorSection
|
|
134
|
-
}),
|
|
135
|
-
/* @__PURE__ */ S(p, {
|
|
136
|
-
values: M,
|
|
137
|
-
errors: N,
|
|
138
|
-
onChange: P,
|
|
139
|
-
disabled: R,
|
|
140
|
-
labels: Q.detailsFields
|
|
141
|
-
}),
|
|
142
|
-
/* @__PURE__ */ S(h, {
|
|
143
|
-
...F,
|
|
144
|
-
disabled: F.disabled || B || R,
|
|
145
|
-
labels: Q.lineItems
|
|
146
|
-
})
|
|
147
|
-
] })
|
|
148
|
-
]
|
|
149
|
-
}), /* @__PURE__ */ S("div", {
|
|
150
|
-
className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
|
|
151
|
-
children: I
|
|
152
|
-
})]
|
|
153
|
-
}),
|
|
154
|
-
$ ? null : /* @__PURE__ */ C("div", {
|
|
155
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
156
|
-
children: [/* @__PURE__ */ S(e, {
|
|
157
|
-
type: "button",
|
|
158
|
-
variant: "ghost",
|
|
159
|
-
disabled: V,
|
|
160
|
-
onClick: G,
|
|
161
|
-
children: R ? Q.closeButton : Q.cancelButton
|
|
162
|
-
}), R ? null : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(e, {
|
|
163
|
-
type: "button",
|
|
164
|
-
variant: W ? "secondary" : "default",
|
|
165
|
-
onClick: q,
|
|
166
|
-
loading: H,
|
|
167
|
-
disabled: V || U || B || j.mode === "creating",
|
|
168
|
-
children: Q.saveDraftButton
|
|
169
|
-
}), W ? /* @__PURE__ */ S(e, {
|
|
170
|
-
type: "button",
|
|
171
|
-
onClick: J,
|
|
172
|
-
loading: U,
|
|
173
|
-
disabled: V || H || B || j.mode === "creating",
|
|
174
|
-
children: Q.finalizeButton
|
|
175
|
-
}) : null] })]
|
|
176
|
-
})
|
|
177
|
-
]
|
|
178
|
-
})
|
|
179
|
-
});
|
|
10
|
+
var a = {
|
|
11
|
+
closeButton: "Close",
|
|
12
|
+
collapseButton: "Exit full screen",
|
|
13
|
+
menuTrigger: "More actions",
|
|
14
|
+
cancelButton: "Cancel",
|
|
15
|
+
saveDraftButton: "Save and close",
|
|
16
|
+
finalizeButton: "Finalize",
|
|
17
|
+
hiddenDescription: "Enter the details of the bill you want to pay.",
|
|
18
|
+
vendorSection: i,
|
|
19
|
+
detailsFields: n,
|
|
20
|
+
lineItems: r,
|
|
21
|
+
detailBody: e
|
|
22
|
+
};
|
|
23
|
+
function o(e) {
|
|
24
|
+
return {
|
|
25
|
+
...a,
|
|
26
|
+
...e,
|
|
27
|
+
vendorSection: {
|
|
28
|
+
...a.vendorSection,
|
|
29
|
+
...e?.vendorSection,
|
|
30
|
+
summaryCard: {
|
|
31
|
+
...a.vendorSection.summaryCard,
|
|
32
|
+
...e?.vendorSection?.summaryCard,
|
|
33
|
+
ach: {
|
|
34
|
+
...a.vendorSection.summaryCard.ach,
|
|
35
|
+
...e?.vendorSection?.summaryCard?.ach
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
search: {
|
|
39
|
+
...a.vendorSection.search,
|
|
40
|
+
...e?.vendorSection?.search
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
detailsFields: {
|
|
44
|
+
...a.detailsFields,
|
|
45
|
+
...e?.detailsFields
|
|
46
|
+
},
|
|
47
|
+
lineItems: {
|
|
48
|
+
...a.lineItems,
|
|
49
|
+
...e?.lineItems
|
|
50
|
+
},
|
|
51
|
+
detailBody: t(e?.detailBody)
|
|
52
|
+
};
|
|
180
53
|
}
|
|
181
54
|
//#endregion
|
|
182
|
-
export {
|
|
55
|
+
export { a as BILL_CREATE_SCREEN_LABELS_EN, o as mergeBillCreateScreenLabels };
|