@tesouro/embedded-components-react 0.3.45 → 0.3.48
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/README.md +30 -8
- package/dist/index.d.ts +80 -35
- package/dist/index.js +47 -45
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/CreditCardsWidget.d.ts +1347 -0
- package/dist/lib/CreditCardsWidget.js +3 -0
- package/dist/lib/{CardsWidget.d.ts → DebitCardsWidget.d.ts} +46 -27
- package/dist/lib/DebitCardsWidget.js +3 -0
- package/dist/lib/WidgetSuite.d.ts +52 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +42 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +4 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +40 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +5 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +72 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +47 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +91 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +33 -160
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +163 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +23 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +198 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +197 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +105 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +47 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +26 -182
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +187 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +102 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +16 -301
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +322 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +31 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +77 -159
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +167 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +14 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +59 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +125 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +8 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +41 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +240 -101
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +107 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +211 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js +17 -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/widget-suite/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index9.js +3 -10
- package/package.json +1 -1
- package/dist/lib/CardsWidget.js +0 -3
|
@@ -1 +1,115 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
+
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
+
import "../../../shared/data-access/dist/index.js";
|
|
8
|
+
import { EmbeddedToaster as n } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
9
|
+
import "../../../shared/ui/dist/index.js";
|
|
10
|
+
import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
11
|
+
import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
12
|
+
import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
|
+
import "../../../shared/feature/dist/index.js";
|
|
14
|
+
import { BillPayWidgetUi as o } from "../../ui/dist/index47.js";
|
|
15
|
+
import { BillUploadStatusTray as s } from "../../ui/dist/index70.js";
|
|
16
|
+
import "../../ui/dist/index.js";
|
|
17
|
+
import { ApprovalPoliciesSettings as c } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
|
|
18
|
+
import "../../../shared/approval-policy/feature/dist/index.js";
|
|
19
|
+
import { useBillUploadQueue as l } from "./index56.js";
|
|
20
|
+
import "./index57.js";
|
|
21
|
+
import { billsTabTestIds as u } from "./index65.js";
|
|
22
|
+
import { BillsTab as d } from "./index71.js";
|
|
23
|
+
import "./index72.js";
|
|
24
|
+
import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index51.js";
|
|
25
|
+
import { DEFAULT_TABS_LABELS as m } from "./index73.js";
|
|
26
|
+
import { CounterpartsWidget as h } from "../../../counterparts-widget/feature/dist/index8.js";
|
|
27
|
+
import "../../../counterparts-widget/feature/dist/index.js";
|
|
28
|
+
import { useCallback as g, useEffect as _, useState as v } from "react";
|
|
29
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
30
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js
|
|
31
|
+
var S = {
|
|
32
|
+
Bills: "bills",
|
|
33
|
+
Vendors: "vendors",
|
|
34
|
+
Settings: "settings"
|
|
35
|
+
}, C = [
|
|
36
|
+
S.Bills,
|
|
37
|
+
S.Vendors,
|
|
38
|
+
S.Settings
|
|
39
|
+
];
|
|
40
|
+
function w({ labels: i, tabsLabels: p, approvalPolicyLabels: w, approvalPolicyComponentLabels: T, vendorLabels: E, poweredByBankName: D }) {
|
|
41
|
+
let O = r();
|
|
42
|
+
_(() => {
|
|
43
|
+
O(f.Mounted);
|
|
44
|
+
}, [O]);
|
|
45
|
+
let k = {
|
|
46
|
+
...m,
|
|
47
|
+
...p
|
|
48
|
+
}, { initResponse: A } = a(), j = e(A?.scopes, [t.ApprovalPolicyWriteOrg]), M = !A || j, [N, P] = v(S.Bills), [F, I] = v(), L = g((e) => {
|
|
49
|
+
P(S.Bills), I(e);
|
|
50
|
+
}, []), R = l({ onOpenBill: L }), z = [{
|
|
51
|
+
id: S.Bills,
|
|
52
|
+
label: k.bills,
|
|
53
|
+
content: /* @__PURE__ */ b(d, {
|
|
54
|
+
onEnqueueFiles: R.enqueue,
|
|
55
|
+
openPayableId: F,
|
|
56
|
+
onOpenPayableHandled: () => I(void 0),
|
|
57
|
+
poweredByBankName: D
|
|
58
|
+
})
|
|
59
|
+
}, {
|
|
60
|
+
id: S.Vendors,
|
|
61
|
+
label: k.vendors,
|
|
62
|
+
content: /* @__PURE__ */ b(h, {
|
|
63
|
+
...E,
|
|
64
|
+
counterpartType: "vendor",
|
|
65
|
+
onViewAllDocuments: () => P(S.Bills)
|
|
66
|
+
})
|
|
67
|
+
}];
|
|
68
|
+
M && z.push({
|
|
69
|
+
id: S.Settings,
|
|
70
|
+
label: k.settings,
|
|
71
|
+
content: /* @__PURE__ */ b(c, {
|
|
72
|
+
labels: w,
|
|
73
|
+
componentLabels: T
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
let B = z.some((e) => e.id === N) ? N : C.find((e) => z.some((t) => t.id === e)) ?? z[0]?.id ?? "";
|
|
77
|
+
return /* @__PURE__ */ x(y, { children: [
|
|
78
|
+
/* @__PURE__ */ b(n, {}),
|
|
79
|
+
/* @__PURE__ */ b(o, {
|
|
80
|
+
labels: i,
|
|
81
|
+
tabs: z,
|
|
82
|
+
selectedTabId: B,
|
|
83
|
+
onTabChange: P
|
|
84
|
+
}),
|
|
85
|
+
R.isVisible ? /* @__PURE__ */ b(s, {
|
|
86
|
+
sections: R.sections,
|
|
87
|
+
summaryLabel: R.summaryLabel,
|
|
88
|
+
collapsed: R.collapsed,
|
|
89
|
+
onToggleCollapsed: R.onToggleCollapsed,
|
|
90
|
+
onClose: R.onClose,
|
|
91
|
+
testId: u.uploadTray
|
|
92
|
+
}) : null
|
|
93
|
+
] });
|
|
94
|
+
}
|
|
95
|
+
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: m, ...h }) {
|
|
96
|
+
return /* @__PURE__ */ b(i, {
|
|
97
|
+
widgetName: p,
|
|
98
|
+
baseUrl: e,
|
|
99
|
+
widgetToken: t,
|
|
100
|
+
organizationId: n,
|
|
101
|
+
configClient: r,
|
|
102
|
+
gatewayRouting: a,
|
|
103
|
+
linkComponent: o,
|
|
104
|
+
implementation: s,
|
|
105
|
+
uiFramework: c,
|
|
106
|
+
errorFallback: l,
|
|
107
|
+
onError: u,
|
|
108
|
+
analytics: d,
|
|
109
|
+
disclosuresAcceptance: f,
|
|
110
|
+
providerLabels: m,
|
|
111
|
+
children: /* @__PURE__ */ b(w, { ...h })
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
export { T as BillPayWidgetNative, T as default };
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
6
|
-
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
|
-
import "../../../shared/feature/dist/index.js";
|
|
8
|
-
import { BillPayWidgetMonite as n } from "./index51.js";
|
|
9
|
-
import "./index52.js";
|
|
10
|
-
import { BillPayWidgetNative as r } from "./index73.js";
|
|
11
1
|
import "./index74.js";
|
|
12
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js
|
|
14
|
-
function a({ implementation: a, ...o }) {
|
|
15
|
-
let s = t().implementation, c = a ?? s ?? e.Monite;
|
|
16
|
-
return c === e.Native ? /* @__PURE__ */ i(r, {
|
|
17
|
-
implementation: c,
|
|
18
|
-
...o
|
|
19
|
-
}) : /* @__PURE__ */ i(n, {
|
|
20
|
-
implementation: c,
|
|
21
|
-
...o
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { a as BillPayWidget, a as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
6
|
+
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
|
+
import "../../../shared/feature/dist/index.js";
|
|
8
|
+
import { BillPayWidgetMonite as n } from "./index52.js";
|
|
9
|
+
import "./index53.js";
|
|
10
|
+
import { BillPayWidgetNative as r } from "./index74.js";
|
|
11
|
+
import "./index75.js";
|
|
12
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js
|
|
14
|
+
function a({ implementation: a, ...o }) {
|
|
15
|
+
let s = t().implementation, c = a ?? s ?? e.Monite;
|
|
16
|
+
return c === e.Native ? /* @__PURE__ */ i(r, {
|
|
17
|
+
implementation: c,
|
|
18
|
+
...o
|
|
19
|
+
}) : /* @__PURE__ */ i(n, {
|
|
20
|
+
implementation: c,
|
|
21
|
+
...o
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { a as BillPayWidget, a as default };
|
|
@@ -13,15 +13,15 @@ import { mergeBillCreateScreenLabels as h } from "./index43.js";
|
|
|
13
13
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
14
14
|
import { Minimize2 as y, MoreVertical as b, X as x } from "lucide-react";
|
|
15
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js
|
|
16
|
-
function S({ open: S, onOpenChange: C, title: w, subtitle: T, notice: E, vendor: D, values: O, errors: k, onChange: A, lineItems: j, documentPanel: M, menuItems: N, readOnly: P, detail: F, isLineItemsLoading: I, isSaving: L, isSavingDraft: R, isFinalizing: z,
|
|
17
|
-
let
|
|
16
|
+
function S({ open: S, onOpenChange: C, title: w, subtitle: T, notice: E, vendor: D, values: O, errors: k, onChange: A, lineItems: j, documentPanel: M, menuItems: N, readOnly: P, detail: F, isLineItemsLoading: I, isSaving: L, isSavingDraft: R, isFinalizing: z, showFinalize: B = !0, onCancel: V, onCollapse: H, onSaveDraft: U, onFinalize: W, testId: G, labels: K }) {
|
|
17
|
+
let q = h(K), J = !!(P && F);
|
|
18
18
|
return /* @__PURE__ */ _(t, {
|
|
19
19
|
open: S,
|
|
20
20
|
onOpenChange: C,
|
|
21
21
|
children: /* @__PURE__ */ v(n, {
|
|
22
22
|
showCloseButton: !1,
|
|
23
23
|
className: "ttw:flex ttw:h-[calc(100vh-3rem)] ttw:w-[calc(100vw-3rem)] ttw:max-w-[calc(100vw-3rem)] ttw:flex-col ttw:gap-0 ttw:p-0",
|
|
24
|
-
"data-testid":
|
|
24
|
+
"data-testid": G,
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ v(i, {
|
|
27
27
|
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
|
|
@@ -38,19 +38,19 @@ function S({ open: S, onOpenChange: C, title: w, subtitle: T, notice: E, vendor:
|
|
|
38
38
|
}) : null,
|
|
39
39
|
/* @__PURE__ */ _(r, {
|
|
40
40
|
className: "ttw:sr-only",
|
|
41
|
-
children:
|
|
41
|
+
children: q.hiddenDescription
|
|
42
42
|
})
|
|
43
43
|
]
|
|
44
44
|
}), /* @__PURE__ */ v("div", {
|
|
45
45
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
46
46
|
children: [
|
|
47
|
-
|
|
47
|
+
H ? /* @__PURE__ */ _(e, {
|
|
48
48
|
type: "button",
|
|
49
49
|
variant: "ghost",
|
|
50
50
|
size: "icon",
|
|
51
|
-
"aria-label":
|
|
51
|
+
"aria-label": q.collapseButton,
|
|
52
52
|
disabled: L,
|
|
53
|
-
onClick:
|
|
53
|
+
onClick: H,
|
|
54
54
|
children: /* @__PURE__ */ _(y, { className: "ttw:size-4" })
|
|
55
55
|
}) : null,
|
|
56
56
|
N && N.length > 0 ? /* @__PURE__ */ v(o, { children: [/* @__PURE__ */ _(l, {
|
|
@@ -59,7 +59,7 @@ function S({ open: S, onOpenChange: C, title: w, subtitle: T, notice: E, vendor:
|
|
|
59
59
|
type: "button",
|
|
60
60
|
variant: "ghost",
|
|
61
61
|
size: "icon",
|
|
62
|
-
"aria-label":
|
|
62
|
+
"aria-label": q.menuTrigger,
|
|
63
63
|
disabled: L,
|
|
64
64
|
children: /* @__PURE__ */ _(b, { className: "ttw:size-4" })
|
|
65
65
|
})
|
|
@@ -67,6 +67,7 @@ function S({ open: S, onOpenChange: C, title: w, subtitle: T, notice: E, vendor:
|
|
|
67
67
|
align: "end",
|
|
68
68
|
children: N.map((e) => /* @__PURE__ */ _(c, {
|
|
69
69
|
variant: e.destructive ? "destructive" : void 0,
|
|
70
|
+
disabled: e.disabled,
|
|
70
71
|
onSelect: e.onSelect,
|
|
71
72
|
children: e.label
|
|
72
73
|
}, e.id))
|
|
@@ -75,9 +76,9 @@ function S({ open: S, onOpenChange: C, title: w, subtitle: T, notice: E, vendor:
|
|
|
75
76
|
type: "button",
|
|
76
77
|
variant: "ghost",
|
|
77
78
|
size: "icon",
|
|
78
|
-
"aria-label":
|
|
79
|
+
"aria-label": q.closeButton,
|
|
79
80
|
disabled: L,
|
|
80
|
-
onClick:
|
|
81
|
+
onClick: V,
|
|
81
82
|
children: /* @__PURE__ */ _(x, { className: "ttw:size-4" })
|
|
82
83
|
})
|
|
83
84
|
]
|
|
@@ -93,28 +94,28 @@ function S({ open: S, onOpenChange: C, title: w, subtitle: T, notice: E, vendor:
|
|
|
93
94
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
94
95
|
children: E
|
|
95
96
|
}) : null,
|
|
96
|
-
|
|
97
|
+
J ? /* @__PURE__ */ _(d, {
|
|
97
98
|
...F,
|
|
98
|
-
labels:
|
|
99
|
+
labels: q.detailBody
|
|
99
100
|
}) : /* @__PURE__ */ v(g, { children: [
|
|
100
101
|
/* @__PURE__ */ _(m, {
|
|
101
102
|
...D,
|
|
102
103
|
onEdit: P ? void 0 : D.onEdit,
|
|
103
104
|
onClear: P ? void 0 : D.onClear,
|
|
104
105
|
disabled: P,
|
|
105
|
-
labels:
|
|
106
|
+
labels: q.vendorSection
|
|
106
107
|
}),
|
|
107
108
|
/* @__PURE__ */ _(f, {
|
|
108
109
|
values: O,
|
|
109
110
|
errors: k,
|
|
110
111
|
onChange: A,
|
|
111
112
|
disabled: P,
|
|
112
|
-
labels:
|
|
113
|
+
labels: q.detailsFields
|
|
113
114
|
}),
|
|
114
115
|
/* @__PURE__ */ _(p, {
|
|
115
116
|
...j,
|
|
116
117
|
disabled: j.disabled || I || P,
|
|
117
|
-
labels:
|
|
118
|
+
labels: q.lineItems
|
|
118
119
|
})
|
|
119
120
|
] })
|
|
120
121
|
]
|
|
@@ -123,28 +124,28 @@ function S({ open: S, onOpenChange: C, title: w, subtitle: T, notice: E, vendor:
|
|
|
123
124
|
children: M
|
|
124
125
|
})]
|
|
125
126
|
}),
|
|
126
|
-
|
|
127
|
+
J ? null : /* @__PURE__ */ v("div", {
|
|
127
128
|
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
128
129
|
children: [/* @__PURE__ */ _(e, {
|
|
129
130
|
type: "button",
|
|
130
131
|
variant: "ghost",
|
|
131
132
|
disabled: L,
|
|
132
|
-
onClick:
|
|
133
|
-
children: P ?
|
|
133
|
+
onClick: V,
|
|
134
|
+
children: P ? q.closeButton : q.cancelButton
|
|
134
135
|
}), P ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(e, {
|
|
135
136
|
type: "button",
|
|
136
|
-
variant: "secondary",
|
|
137
|
-
onClick:
|
|
137
|
+
variant: B ? "secondary" : "default",
|
|
138
|
+
onClick: U,
|
|
138
139
|
loading: R,
|
|
139
|
-
disabled: z || I || D.mode === "creating",
|
|
140
|
-
children:
|
|
141
|
-
}), /* @__PURE__ */ _(e, {
|
|
140
|
+
disabled: L || z || I || D.mode === "creating",
|
|
141
|
+
children: q.saveDraftButton
|
|
142
|
+
}), B ? /* @__PURE__ */ _(e, {
|
|
142
143
|
type: "button",
|
|
143
|
-
onClick:
|
|
144
|
+
onClick: W,
|
|
144
145
|
loading: z,
|
|
145
|
-
disabled: R || I || D.mode === "creating",
|
|
146
|
-
children:
|
|
147
|
-
})] })]
|
|
146
|
+
disabled: L || R || I || D.mode === "creating",
|
|
147
|
+
children: q.finalizeButton
|
|
148
|
+
}) : null] })]
|
|
148
149
|
})
|
|
149
150
|
]
|
|
150
151
|
})
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./index4.js";
|
|
2
2
|
import "./index6.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { CreditCardsWidget as e } from "./index10.js";
|
|
4
|
+
import { DebitCardsWidget as t } from "./index11.js";
|
|
5
|
+
export { e as CreditCardsWidget, t as DebitCardsWidget };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { CardProgram as e } from "../../../shared/feature/dist/lib/card/cardProgram.js";
|
|
6
|
+
import "../../../shared/feature/dist/index.js";
|
|
7
|
+
import { CardsWidget as t } from "./index9.js";
|
|
8
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
9
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js
|
|
10
|
+
function r(r) {
|
|
11
|
+
return /* @__PURE__ */ n(t, {
|
|
12
|
+
...r,
|
|
13
|
+
cardProgram: e.Credit
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as CreditCardsWidget };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { CardProgram as e } from "../../../shared/feature/dist/lib/card/cardProgram.js";
|
|
6
|
+
import "../../../shared/feature/dist/index.js";
|
|
7
|
+
import { CardsWidget as t } from "./index9.js";
|
|
8
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
9
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js
|
|
10
|
+
function r(r) {
|
|
11
|
+
return /* @__PURE__ */ n(t, {
|
|
12
|
+
...r,
|
|
13
|
+
cardProgram: e.Debit
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as DebitCardsWidget };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.3.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.3.48", n = "09015129181e10cfc5e9f5b0f40bd054eb5e9b80", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { Scope as e } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
6
6
|
import "../../../shared/data-access/dist/index.js";
|
|
7
|
-
import { BillPayWidget as t } from "../../../bill-pay-widget/feature/dist/
|
|
7
|
+
import { BillPayWidget as t } from "../../../bill-pay-widget/feature/dist/index76.js";
|
|
8
8
|
import "../../../bill-pay-widget/feature/dist/index.js";
|
|
9
9
|
import { jsx as n } from "react/jsx-runtime";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js
|
|
@@ -6,9 +6,8 @@ import { useWidgetSuiteProvider as e } from "./index6.js";
|
|
|
6
6
|
import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
7
|
import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import "../../../
|
|
11
|
-
import { CardsWidget as i } from "../../../cards-widget/feature/dist/index9.js";
|
|
9
|
+
import { CreditCardsWidget as r } from "../../../cards-widget/feature/dist/index10.js";
|
|
10
|
+
import { DebitCardsWidget as i } from "../../../cards-widget/feature/dist/index11.js";
|
|
12
11
|
import "../../../cards-widget/feature/dist/index.js";
|
|
13
12
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
14
13
|
//#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index9.js
|
|
@@ -16,13 +15,7 @@ function s() {
|
|
|
16
15
|
let { grantedScopes: s, labels: c } = e();
|
|
17
16
|
return /* @__PURE__ */ o("div", {
|
|
18
17
|
className: "ttw:grid ttw:gap-8",
|
|
19
|
-
children: [t(s, [n.CreditCardReadOrg]) && /* @__PURE__ */ a(i, {
|
|
20
|
-
cardProgram: r.Credit,
|
|
21
|
-
...c.sections.cards.creditCards
|
|
22
|
-
}), t(s, [n.DebitCardReadOrg]) && /* @__PURE__ */ a(i, {
|
|
23
|
-
cardProgram: r.Debit,
|
|
24
|
-
...c.sections.cards.debitCards
|
|
25
|
-
})]
|
|
18
|
+
children: [t(s, [n.CreditCardReadOrg]) && /* @__PURE__ */ a(r, { ...c.sections.cards.creditCards }), t(s, [n.DebitCardReadOrg]) && /* @__PURE__ */ a(i, { ...c.sections.cards.debitCards })]
|
|
26
19
|
});
|
|
27
20
|
}
|
|
28
21
|
var c = {
|
package/package.json
CHANGED
package/dist/lib/CardsWidget.js
DELETED