@tesouro/embedded-components-react 0.5.271 → 0.5.273
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 +4 -0
- package/dist/index.css +17 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +4 -4
- package/dist/lib/BankAccountOnboardingWidget.d.ts +19 -0
- package/dist/lib/BankAccountOnboardingWidget.js +4 -4
- package/dist/lib/WidgetSuite.d.ts +19 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +94 -73
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +71 -57
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +61 -46
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +28 -32
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldErrors.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +26 -21
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +6 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +57 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +31 -38
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +34 -91
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +96 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +4 -185
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +269 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +28 -21
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +21 -68
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +59 -225
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +338 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +29 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +26 -74
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +71 -82
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +85 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +8 -57
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +57 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +34 -261
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +9 -62
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +331 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +2 -48
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +53 -139
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +146 -50
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +50 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +35 -6
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +14 -9
- package/package.json +7 -2
|
@@ -1,28 +1,31 @@
|
|
|
1
|
+
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
1
3
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
4
|
+
function i({ label: i, value: a, testId: o, valueMonospace: s }) {
|
|
5
|
+
return a ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
|
|
6
|
+
component: "span",
|
|
7
|
+
variant: "body2",
|
|
8
|
+
className: "ttw:text-muted-foreground",
|
|
9
|
+
children: i
|
|
10
|
+
}), /* @__PURE__ */ n(e, {
|
|
11
|
+
component: "span",
|
|
12
|
+
variant: "body2",
|
|
13
|
+
"data-testid": o,
|
|
14
|
+
className: `ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground ${s ? "ttw:font-mono ttw:tracking-wider" : ""}`,
|
|
15
|
+
children: a
|
|
16
|
+
})] }) : null;
|
|
17
|
+
}
|
|
18
|
+
function a({ rows: e, testIds: t }) {
|
|
19
|
+
return /* @__PURE__ */ n("div", {
|
|
20
|
+
className: "ttw:grid ttw:grid-cols-[max-content_1fr] ttw:gap-x-4 ttw:gap-y-2",
|
|
21
|
+
"data-testid": t?.root,
|
|
22
|
+
children: e.map((e) => /* @__PURE__ */ n(i, {
|
|
23
|
+
label: e.label,
|
|
24
|
+
value: e.value,
|
|
25
|
+
testId: e.testId,
|
|
26
|
+
valueMonospace: e.valueMonospace
|
|
27
|
+
}, e.testId ?? e.label))
|
|
28
|
+
});
|
|
29
|
+
}
|
|
27
30
|
//#endregion
|
|
28
|
-
export {
|
|
31
|
+
export { a as AboutYouSummary };
|
|
@@ -1,76 +1,28 @@
|
|
|
1
|
-
import { Button as e, Tooltip as t, TooltipContent as n, TooltipProvider as r, TooltipTrigger as i, Typography as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { ABOUT_YOU_PANEL_LABELS_EN as o } from "./index24.js";
|
|
3
|
-
import { AboutYouEditForm as s } from "./index22.js";
|
|
4
|
-
import { AboutYouSummary as c } from "./index23.js";
|
|
5
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
-
import { Pen as d } from "lucide-react";
|
|
7
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
className: "ttw:mb-3 ttw:flex ttw:items-center ttw:justify-between ttw:gap-3",
|
|
34
|
-
children: [/* @__PURE__ */ l(a, {
|
|
35
|
-
component: "h3",
|
|
36
|
-
variant: "h6",
|
|
37
|
-
className: "ttw:font-semibold ttw:text-foreground",
|
|
38
|
-
children: k.panelTitle
|
|
39
|
-
}), /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(i, {
|
|
40
|
-
asChild: !0,
|
|
41
|
-
onFocus: (e) => {
|
|
42
|
-
e.preventDefault();
|
|
43
|
-
},
|
|
44
|
-
children: /* @__PURE__ */ l(e, {
|
|
45
|
-
type: "button",
|
|
46
|
-
variant: "ghost",
|
|
47
|
-
size: "icon-sm",
|
|
48
|
-
onClick: p,
|
|
49
|
-
disabled: _,
|
|
50
|
-
"aria-label": k.editButtonAriaLabel,
|
|
51
|
-
"data-testid": O?.editButton,
|
|
52
|
-
className: "ttw:rounded-lg ttw:bg-muted ttw:text-foreground ttw:hover:bg-primary/10 ttw:hover:text-foreground",
|
|
53
|
-
children: /* @__PURE__ */ l(d, {
|
|
54
|
-
className: "ttw:size-5",
|
|
55
|
-
"aria-hidden": !0
|
|
56
|
-
})
|
|
57
|
-
})
|
|
58
|
-
}), /* @__PURE__ */ l(n, {
|
|
59
|
-
side: "top",
|
|
60
|
-
sideOffset: 4,
|
|
61
|
-
children: k.editTooltip
|
|
62
|
-
})] }) })]
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ l("div", {
|
|
65
|
-
className: "ttw:mb-3 ttw:border-b ttw:border-border",
|
|
66
|
-
"aria-hidden": !0
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ l(c, {
|
|
69
|
-
rows: m,
|
|
70
|
-
testIds: O?.summary
|
|
71
|
-
})
|
|
72
|
-
]
|
|
73
|
-
});
|
|
74
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
panelTitle: "Personal Details",
|
|
4
|
+
editButtonAriaLabel: "Edit personal details",
|
|
5
|
+
editTooltip: "Edit personal details",
|
|
6
|
+
firstName: "First name",
|
|
7
|
+
lastName: "Last name",
|
|
8
|
+
dateOfBirth: "Date of birth",
|
|
9
|
+
dateOfBirthPlaceholder: "Pick a date",
|
|
10
|
+
ssn: "SSN",
|
|
11
|
+
ssnShow: "Show",
|
|
12
|
+
ssnHide: "Hide",
|
|
13
|
+
homeAddress: "Home address",
|
|
14
|
+
city: "City",
|
|
15
|
+
state: "State",
|
|
16
|
+
statePlaceholder: "Select state",
|
|
17
|
+
zipCode: "ZIP code",
|
|
18
|
+
mobilePhoneNumber: "Mobile phone number",
|
|
19
|
+
workEmail: "Work email",
|
|
20
|
+
ownsOver25Question: "Do you own 25% or more of the business?",
|
|
21
|
+
ownsOver25SummaryLabel: "Owns 25% or more of the business",
|
|
22
|
+
ownsOver25Yes: "Yes",
|
|
23
|
+
ownsOver25No: "No",
|
|
24
|
+
ownershipPercentage: "Ownership share (minimum 25%)",
|
|
25
|
+
ownershipPercentagePlaceholder: "e.g., 25"
|
|
26
|
+
};
|
|
75
27
|
//#endregion
|
|
76
|
-
export {
|
|
28
|
+
export { e as ABOUT_YOU_PANEL_LABELS_EN };
|
|
@@ -1,87 +1,76 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Button as e, Tooltip as t, TooltipContent as n, TooltipProvider as r, TooltipTrigger as i, Typography as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ABOUT_YOU_PANEL_LABELS_EN as o } from "./index25.js";
|
|
3
|
+
import { AboutYouEditForm as s } from "./index23.js";
|
|
4
|
+
import { AboutYouSummary as c } from "./index24.js";
|
|
5
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
import { Pen as d } from "lucide-react";
|
|
4
7
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
disabled: c,
|
|
55
|
-
className: "ttw:mt-0.5",
|
|
56
|
-
"aria-labelledby": "bank-account-onboarding-disclosure-text"
|
|
57
|
-
}), /* @__PURE__ */ i("p", {
|
|
58
|
-
id: "bank-account-onboarding-disclosure-text",
|
|
59
|
-
className: "ttw:text-sm ttw:font-normal ttw:leading-snug",
|
|
60
|
-
children: [
|
|
61
|
-
n(g.acceptDisclosuresPrefix, u),
|
|
62
|
-
/* @__PURE__ */ r(o, {
|
|
63
|
-
href: d,
|
|
64
|
-
children: g.termsOfUse
|
|
65
|
-
}),
|
|
66
|
-
g.acceptDisclosuresTermsPrivacyJoin,
|
|
67
|
-
/* @__PURE__ */ r(o, {
|
|
68
|
-
href: f,
|
|
69
|
-
children: g.privacyPolicy
|
|
70
|
-
}),
|
|
71
|
-
n(g.acceptDisclosuresAfterPrivacy, u),
|
|
72
|
-
/* @__PURE__ */ r(o, {
|
|
73
|
-
href: p,
|
|
74
|
-
children: g.electronicCommunication
|
|
75
|
-
}),
|
|
76
|
-
n(g.acceptDisclosuresAfterElectronic, u),
|
|
77
|
-
/* @__PURE__ */ r(o, {
|
|
78
|
-
href: m,
|
|
79
|
-
children: g.patriotAct
|
|
8
|
+
function f({ isEditing: f, onEditClick: p, summaryRows: m, editFields: h, labels: g, isDisabled: _, ssnRevealed: v, ssnToggleAriaLabel: y, onToggleSsnVisibility: b, showOwnershipPercentage: x, maxBirthDate: S, ssnMaskedDisplay: C, ssnFormattedDisplay: w, ssnRequired: T, ssnPlaceholder: E, ssnHelpText: D, testIds: O }) {
|
|
9
|
+
let k = {
|
|
10
|
+
...o,
|
|
11
|
+
...g
|
|
12
|
+
};
|
|
13
|
+
return f ? /* @__PURE__ */ l(s, {
|
|
14
|
+
fields: h,
|
|
15
|
+
labels: k,
|
|
16
|
+
isDisabled: _,
|
|
17
|
+
ssnRevealed: v,
|
|
18
|
+
ssnToggleAriaLabel: y,
|
|
19
|
+
onToggleSsnVisibility: b,
|
|
20
|
+
showOwnershipPercentage: x,
|
|
21
|
+
maxBirthDate: S,
|
|
22
|
+
ssnMaskedDisplay: C,
|
|
23
|
+
ssnFormattedDisplay: w,
|
|
24
|
+
ssnRequired: T,
|
|
25
|
+
ssnPlaceholder: E,
|
|
26
|
+
ssnHelpText: D,
|
|
27
|
+
testIds: O?.editForm
|
|
28
|
+
}) : /* @__PURE__ */ u("section", {
|
|
29
|
+
"data-testid": O?.root,
|
|
30
|
+
className: "ttw:relative ttw:min-w-0 ttw:rounded-lg ttw:bg-surface-subtle ttw:p-4",
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ u("div", {
|
|
33
|
+
className: "ttw:mb-3 ttw:flex ttw:items-center ttw:justify-between ttw:gap-3",
|
|
34
|
+
children: [/* @__PURE__ */ l(a, {
|
|
35
|
+
component: "h3",
|
|
36
|
+
variant: "h6",
|
|
37
|
+
className: "ttw:font-semibold ttw:text-foreground",
|
|
38
|
+
children: k.panelTitle
|
|
39
|
+
}), /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(i, {
|
|
40
|
+
asChild: !0,
|
|
41
|
+
onFocus: (e) => {
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
},
|
|
44
|
+
children: /* @__PURE__ */ l(e, {
|
|
45
|
+
type: "button",
|
|
46
|
+
variant: "ghost",
|
|
47
|
+
size: "icon-sm",
|
|
48
|
+
onClick: p,
|
|
49
|
+
disabled: _,
|
|
50
|
+
"aria-label": k.editButtonAriaLabel,
|
|
51
|
+
"data-testid": O?.editButton,
|
|
52
|
+
className: "ttw:rounded-lg ttw:bg-muted ttw:text-foreground ttw:hover:bg-primary/10 ttw:hover:text-foreground",
|
|
53
|
+
children: /* @__PURE__ */ l(d, {
|
|
54
|
+
className: "ttw:size-5",
|
|
55
|
+
"aria-hidden": !0
|
|
56
|
+
})
|
|
80
57
|
})
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
58
|
+
}), /* @__PURE__ */ l(n, {
|
|
59
|
+
side: "top",
|
|
60
|
+
sideOffset: 4,
|
|
61
|
+
children: k.editTooltip
|
|
62
|
+
})] }) })]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ l("div", {
|
|
65
|
+
className: "ttw:mb-3 ttw:border-b ttw:border-border",
|
|
66
|
+
"aria-hidden": !0
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ l(c, {
|
|
69
|
+
rows: m,
|
|
70
|
+
testIds: O?.summary
|
|
71
|
+
})
|
|
72
|
+
]
|
|
84
73
|
});
|
|
85
74
|
}
|
|
86
75
|
//#endregion
|
|
87
|
-
export {
|
|
76
|
+
export { o as ABOUT_YOU_PANEL_LABELS_EN, f as AboutYouPanel };
|
|
@@ -1,10 +1,87 @@
|
|
|
1
|
+
import { Checkbox as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BUSINESS_DETAILS_LABELS_EN as t, interpolateBankName as n } from "./index8.js";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
1
4
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var a = "ttw:cursor-pointer ttw:text-primary ttw:underline ttw:underline-offset-2";
|
|
6
|
+
function o({ href: e, children: t }) {
|
|
7
|
+
return e ? /* @__PURE__ */ r("a", {
|
|
8
|
+
href: e,
|
|
9
|
+
target: "_blank",
|
|
10
|
+
rel: "noopener noreferrer",
|
|
11
|
+
className: a,
|
|
12
|
+
children: t
|
|
13
|
+
}) : /* @__PURE__ */ r("span", {
|
|
14
|
+
className: a,
|
|
15
|
+
children: t
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function s({ value: a, onChange: s, isSubmitting: c, labels: l, bankName: u, termsHref: d, privacyHref: f, electronicCommunicationHref: p, patriotActHref: m, testIds: h }) {
|
|
19
|
+
let g = {
|
|
20
|
+
...t,
|
|
21
|
+
...l,
|
|
22
|
+
companyStructureOptions: {
|
|
23
|
+
...t.companyStructureOptions,
|
|
24
|
+
...l?.companyStructureOptions ?? {}
|
|
25
|
+
}
|
|
26
|
+
}, _ = (e, t) => s({
|
|
27
|
+
...a,
|
|
28
|
+
[e]: t
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ i("div", {
|
|
31
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
32
|
+
children: [/* @__PURE__ */ i("div", {
|
|
33
|
+
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
34
|
+
children: [/* @__PURE__ */ r(e, {
|
|
35
|
+
id: "isAuthorized",
|
|
36
|
+
"data-testid": h?.authorizationCheckbox,
|
|
37
|
+
checked: a.isAuthorized === !0,
|
|
38
|
+
onCheckedChange: (e) => _("isAuthorized", e === !0 || null),
|
|
39
|
+
disabled: c,
|
|
40
|
+
className: "ttw:mt-0.5",
|
|
41
|
+
"aria-labelledby": "bank-account-onboarding-authorization-text"
|
|
42
|
+
}), /* @__PURE__ */ r("p", {
|
|
43
|
+
id: "bank-account-onboarding-authorization-text",
|
|
44
|
+
className: "ttw:text-sm ttw:font-normal ttw:leading-snug",
|
|
45
|
+
children: g.isAuthorizedQuestion
|
|
46
|
+
})]
|
|
47
|
+
}), /* @__PURE__ */ i("div", {
|
|
48
|
+
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
49
|
+
children: [/* @__PURE__ */ r(e, {
|
|
50
|
+
id: "isCheckboxChecked",
|
|
51
|
+
"data-testid": h?.disclosureCheckbox,
|
|
52
|
+
checked: a.isCheckboxChecked,
|
|
53
|
+
onCheckedChange: (e) => _("isCheckboxChecked", e === !0),
|
|
54
|
+
disabled: c,
|
|
55
|
+
className: "ttw:mt-0.5",
|
|
56
|
+
"aria-labelledby": "bank-account-onboarding-disclosure-text"
|
|
57
|
+
}), /* @__PURE__ */ i("p", {
|
|
58
|
+
id: "bank-account-onboarding-disclosure-text",
|
|
59
|
+
className: "ttw:text-sm ttw:font-normal ttw:leading-snug",
|
|
60
|
+
children: [
|
|
61
|
+
n(g.acceptDisclosuresPrefix, u),
|
|
62
|
+
/* @__PURE__ */ r(o, {
|
|
63
|
+
href: d,
|
|
64
|
+
children: g.termsOfUse
|
|
65
|
+
}),
|
|
66
|
+
g.acceptDisclosuresTermsPrivacyJoin,
|
|
67
|
+
/* @__PURE__ */ r(o, {
|
|
68
|
+
href: f,
|
|
69
|
+
children: g.privacyPolicy
|
|
70
|
+
}),
|
|
71
|
+
n(g.acceptDisclosuresAfterPrivacy, u),
|
|
72
|
+
/* @__PURE__ */ r(o, {
|
|
73
|
+
href: p,
|
|
74
|
+
children: g.electronicCommunication
|
|
75
|
+
}),
|
|
76
|
+
n(g.acceptDisclosuresAfterElectronic, u),
|
|
77
|
+
/* @__PURE__ */ r(o, {
|
|
78
|
+
href: m,
|
|
79
|
+
children: g.patriotAct
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
})]
|
|
83
|
+
})]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
9
86
|
//#endregion
|
|
10
|
-
export {
|
|
87
|
+
export { s as BusinessDisclosuresSection };
|
|
@@ -1,59 +1,10 @@
|
|
|
1
|
-
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { UNSAVED_APPLICATION_DIALOG_LABELS_EN as s } from "./index27.js";
|
|
3
|
-
import { useRef as c } from "react";
|
|
4
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
-
import { XIcon as d } from "lucide-react";
|
|
6
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
onOpenChange: (e) => {
|
|
15
|
-
!e && !g && h();
|
|
16
|
-
},
|
|
17
|
-
children: /* @__PURE__ */ u(t, {
|
|
18
|
-
"data-testid": v?.root,
|
|
19
|
-
onOpenAutoFocus: (e) => {
|
|
20
|
-
e.preventDefault(), b.current?.focus();
|
|
21
|
-
},
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ u("button", {
|
|
24
|
-
ref: b,
|
|
25
|
-
type: "button",
|
|
26
|
-
onClick: h,
|
|
27
|
-
disabled: g,
|
|
28
|
-
"data-testid": v?.close,
|
|
29
|
-
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
|
|
30
|
-
children: [/* @__PURE__ */ l(d, {
|
|
31
|
-
className: "ttw:size-4",
|
|
32
|
-
"aria-hidden": !0
|
|
33
|
-
}), /* @__PURE__ */ l("span", {
|
|
34
|
-
className: "ttw:sr-only",
|
|
35
|
-
children: y.closeButton
|
|
36
|
-
})]
|
|
37
|
-
}),
|
|
38
|
-
/* @__PURE__ */ u(i, { children: [/* @__PURE__ */ l(a, { children: y.title }), /* @__PURE__ */ l(n, { children: y.description })] }),
|
|
39
|
-
/* @__PURE__ */ u(r, { children: [/* @__PURE__ */ l(o, {
|
|
40
|
-
type: "button",
|
|
41
|
-
variant: "outline",
|
|
42
|
-
onClick: m,
|
|
43
|
-
disabled: g,
|
|
44
|
-
"data-testid": v?.discard,
|
|
45
|
-
children: y.discardButton
|
|
46
|
-
}), /* @__PURE__ */ l(o, {
|
|
47
|
-
type: "button",
|
|
48
|
-
loading: g,
|
|
49
|
-
disabled: g,
|
|
50
|
-
onClick: p,
|
|
51
|
-
"data-testid": v?.saveDraft,
|
|
52
|
-
children: y.saveDraftButton
|
|
53
|
-
})] })
|
|
54
|
-
]
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
title: "Save changes to application",
|
|
4
|
+
description: "This application has changes that have not been saved. Save it to finish later, or discard the changes.",
|
|
5
|
+
saveDraftButton: "Save changes",
|
|
6
|
+
discardButton: "Discard changes",
|
|
7
|
+
closeButton: "Close"
|
|
8
|
+
};
|
|
58
9
|
//#endregion
|
|
59
|
-
export {
|
|
10
|
+
export { e as UNSAVED_APPLICATION_DIALOG_LABELS_EN };
|
|
@@ -1,11 +1,59 @@
|
|
|
1
|
+
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { UNSAVED_APPLICATION_DIALOG_LABELS_EN as s } from "./index28.js";
|
|
3
|
+
import { useRef as c } from "react";
|
|
4
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
+
import { XIcon as d } from "lucide-react";
|
|
1
6
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
function f({ open: f, onSaveDraft: p, onDiscard: m, onCancel: h, isSaving: g = !1, labels: _, testIds: v }) {
|
|
8
|
+
let y = {
|
|
9
|
+
...s,
|
|
10
|
+
..._
|
|
11
|
+
}, b = c(null);
|
|
12
|
+
return /* @__PURE__ */ l(e, {
|
|
13
|
+
open: f,
|
|
14
|
+
onOpenChange: (e) => {
|
|
15
|
+
!e && !g && h();
|
|
16
|
+
},
|
|
17
|
+
children: /* @__PURE__ */ u(t, {
|
|
18
|
+
"data-testid": v?.root,
|
|
19
|
+
onOpenAutoFocus: (e) => {
|
|
20
|
+
e.preventDefault(), b.current?.focus();
|
|
21
|
+
},
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ u("button", {
|
|
24
|
+
ref: b,
|
|
25
|
+
type: "button",
|
|
26
|
+
onClick: h,
|
|
27
|
+
disabled: g,
|
|
28
|
+
"data-testid": v?.close,
|
|
29
|
+
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
|
|
30
|
+
children: [/* @__PURE__ */ l(d, {
|
|
31
|
+
className: "ttw:size-4",
|
|
32
|
+
"aria-hidden": !0
|
|
33
|
+
}), /* @__PURE__ */ l("span", {
|
|
34
|
+
className: "ttw:sr-only",
|
|
35
|
+
children: y.closeButton
|
|
36
|
+
})]
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ u(i, { children: [/* @__PURE__ */ l(a, { children: y.title }), /* @__PURE__ */ l(n, { children: y.description })] }),
|
|
39
|
+
/* @__PURE__ */ u(r, { children: [/* @__PURE__ */ l(o, {
|
|
40
|
+
type: "button",
|
|
41
|
+
variant: "outline",
|
|
42
|
+
onClick: m,
|
|
43
|
+
disabled: g,
|
|
44
|
+
"data-testid": v?.discard,
|
|
45
|
+
children: y.discardButton
|
|
46
|
+
}), /* @__PURE__ */ l(o, {
|
|
47
|
+
type: "button",
|
|
48
|
+
loading: g,
|
|
49
|
+
disabled: g,
|
|
50
|
+
onClick: p,
|
|
51
|
+
"data-testid": v?.saveDraft,
|
|
52
|
+
children: y.saveDraftButton
|
|
53
|
+
})] })
|
|
54
|
+
]
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
}
|
|
10
58
|
//#endregion
|
|
11
|
-
export {
|
|
59
|
+
export { s as UNSAVED_APPLICATION_DIALOG_LABELS_EN, f as UnsavedApplicationDialog };
|