@tesouro/embedded-components-react 0.7.74 → 0.8.1
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 +14 -17
- package/dist/index.css +18 -17
- package/dist/index.d.ts +178 -49
- package/dist/index.js +51 -50
- package/dist/lib/BankAccountOnboardingWidget.d.ts +178 -49
- package/dist/lib/BankAccountOnboardingWidget.js +8 -7
- package/dist/lib/WidgetSuite.d.ts +177 -48
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +131 -96
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +509 -496
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +47 -78
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +47 -49
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/ReviewStep.js +103 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/TermsStep.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +49 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/apiMapping.js +35 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/buildOnboardingPrefill.js +4 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +4 -2
- 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/fieldInput/formatPhoneNumberInput.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +22 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +59 -60
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +344 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +59 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +40 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +7 -40
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +57 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +30 -93
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +40 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +36 -269
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +93 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +61 -78
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +270 -61
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +25 -338
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +53 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +342 -66
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +26 -82
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +27 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +56 -54
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +123 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +5 -62
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +82 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +256 -311
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +81 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +83 -53
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +2 -147
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +69 -46
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +5 -35
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +122 -165
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +0 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +81 -23
- package/package.json +1 -1
|
@@ -1,175 +1,132 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import { InlineErrorAlert as
|
|
3
|
-
import { ONBOARDING_SHELL_LABELS_EN as
|
|
4
|
-
import { OnboardingShellStepper as
|
|
5
|
-
import { OnboardingShellOverlayContainerContext as
|
|
6
|
-
import { FdicLogo as
|
|
7
|
-
import { OnboardingShellScrollRegion as
|
|
8
|
-
import * as
|
|
9
|
-
import { jsx as
|
|
10
|
-
import {
|
|
11
|
-
import { Check as _, Trash2 as v, X as y } from "lucide-react";
|
|
1
|
+
import { Button as e, Separator as t, cn as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { InlineErrorAlert as r } from "../InlineErrorAlert/InlineErrorAlert.js";
|
|
3
|
+
import { ONBOARDING_SHELL_LABELS_EN as i } from "./labels.js";
|
|
4
|
+
import { OnboardingShellStepper as a } from "./OnboardingShellStepper.js";
|
|
5
|
+
import { OnboardingShellOverlayContainerContext as o } from "./OnboardingShellOverlayPortal.js";
|
|
6
|
+
import { FdicLogo as s } from "./FdicLogo.js";
|
|
7
|
+
import { OnboardingShellScrollRegion as c } from "./OnboardingShellScrollRegion.js";
|
|
8
|
+
import * as l from "react";
|
|
9
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
|
+
import { Check as f, Trash2 as p } from "lucide-react";
|
|
12
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return m(e ? "p" : i, {
|
|
21
|
-
className: t,
|
|
22
|
-
children: n
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function S({ open: i, defaultOpen: a = !0, onOpenChange: S, isFullScreenInline: C = !1, title: w, subtitle: T, stepLabels: E, activeStep: D, disclaimerText: te, onBack: ne, onNext: re, onCancel: O, onSaveAndClose: k, isSaveAndCloseDisabled: A = !1, isSaveAndCloseLoading: j = !1, onDelete: M, isBackDisabled: N = !1, showDismissButton: P = !0, isNextDisabled: F = !1, isNextLoading: I = !1, nextLabel: L, nextIcon: R, errorMessage: z, children: B, labels: V, testIds: H }) {
|
|
26
|
-
let U = {
|
|
27
|
-
...l,
|
|
28
|
-
...V
|
|
29
|
-
}, [W, G] = g({
|
|
30
|
-
prop: i,
|
|
31
|
-
defaultProp: a,
|
|
32
|
-
onChange: S
|
|
33
|
-
}), [K, q] = p.useState(null), J = p.useCallback((e) => {
|
|
34
|
-
q(e);
|
|
35
|
-
}, []), Y = p.useMemo(() => ({
|
|
36
|
-
container: K,
|
|
37
|
-
isFullScreenInline: C
|
|
38
|
-
}), [K, C]), X = I || j, ie = !I && (R === void 0 ? /* @__PURE__ */ m(_, {
|
|
12
|
+
function m({ title: m, subtitle: h, isTitleVisuallyHidden: g = !1, stepLabels: _, activeStep: v, disclaimerText: y, onBack: b, onNext: x, onCancel: S, onSaveAndClose: C, isSaveAndCloseDisabled: w = !1, isSaveAndCloseLoading: T = !1, onDelete: E, isBackDisabled: D = !1, showBackButton: O = !0, backAriaLabel: k, isNextDisabled: A = !1, isNextLoading: j = !1, nextLabel: M, nextIcon: N, nextTone: P = "primary", errorMessage: F, children: I, labels: L, testIds: R }) {
|
|
13
|
+
let z = {
|
|
14
|
+
...i,
|
|
15
|
+
...L
|
|
16
|
+
}, [B, V] = l.useState(null), H = l.useCallback((e) => {
|
|
17
|
+
V(e);
|
|
18
|
+
}, []), U = l.useMemo(() => ({ container: B }), [B]), W = j || T, G = !j && (N === void 0 ? /* @__PURE__ */ u(f, {
|
|
39
19
|
className: "ttw:size-5",
|
|
40
20
|
"aria-hidden": !0
|
|
41
|
-
}) :
|
|
21
|
+
}) : N), K = O ? /* @__PURE__ */ u(e, {
|
|
42
22
|
type: "button",
|
|
43
23
|
variant: "outline",
|
|
44
|
-
disabled:
|
|
45
|
-
onClick:
|
|
24
|
+
disabled: D || W,
|
|
25
|
+
onClick: b,
|
|
26
|
+
"aria-label": k,
|
|
46
27
|
className: "ttw:h-auto ttw:rounded-2xl ttw:border-border ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-muted ttw:hover:text-foreground",
|
|
47
|
-
"data-testid":
|
|
48
|
-
children:
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
className: "ttw:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
className: "ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium",
|
|
148
|
-
"data-testid": H?.next,
|
|
149
|
-
children: [L, ie]
|
|
150
|
-
})
|
|
151
|
-
]
|
|
152
|
-
})]
|
|
153
|
-
})
|
|
154
|
-
]
|
|
155
|
-
})
|
|
156
|
-
]
|
|
157
|
-
});
|
|
158
|
-
return C ? /* @__PURE__ */ m(d.Provider, {
|
|
159
|
-
value: Y,
|
|
160
|
-
children: $
|
|
161
|
-
}) : /* @__PURE__ */ m(t, {
|
|
162
|
-
open: W,
|
|
163
|
-
onOpenChange: G,
|
|
164
|
-
children: /* @__PURE__ */ m(d.Provider, {
|
|
165
|
-
value: Y,
|
|
166
|
-
children: /* @__PURE__ */ m(r, {
|
|
167
|
-
className: s("ttw:max-h-[95vh] ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-2xl ttw:p-0", M ? "ttw:w-[840px]" : "ttw:w-[720px]"),
|
|
168
|
-
"data-testid": H?.root,
|
|
169
|
-
children: $
|
|
170
|
-
})
|
|
28
|
+
"data-testid": R?.back,
|
|
29
|
+
children: z.backButton
|
|
30
|
+
}) : null;
|
|
31
|
+
return /* @__PURE__ */ u(o.Provider, {
|
|
32
|
+
value: U,
|
|
33
|
+
children: /* @__PURE__ */ d("div", {
|
|
34
|
+
ref: H,
|
|
35
|
+
className: "ttw:relative ttw:grid ttw:h-full ttw:w-full ttw:min-h-0 ttw:grid-rows-[auto_1fr_auto] ttw:gap-0 ttw:overflow-hidden ttw:bg-background",
|
|
36
|
+
"data-testid": R?.root,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ d("header", {
|
|
39
|
+
className: "ttw:px-8 ttw:pt-8",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ u("h2", {
|
|
42
|
+
className: g ? "ttw:sr-only" : "ttw:text-2xl ttw:font-bold ttw:leading-tight ttw:text-foreground",
|
|
43
|
+
children: m
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ u("p", {
|
|
46
|
+
className: g ? "ttw:sr-only" : "ttw:mt-1 ttw:mb-4 ttw:text-sm ttw:text-muted-foreground",
|
|
47
|
+
children: h
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ u(a, {
|
|
50
|
+
stepLabels: _,
|
|
51
|
+
activeStep: v,
|
|
52
|
+
labels: L
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ u(c, {
|
|
57
|
+
activeStep: v,
|
|
58
|
+
scrollForMoreLabel: z.scrollForMore,
|
|
59
|
+
testIds: R?.scrollRegion,
|
|
60
|
+
children: I
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ d("footer", {
|
|
63
|
+
className: "ttw:px-8 ttw:pb-8",
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ u(t, { className: "ttw:mb-3" }),
|
|
66
|
+
/* @__PURE__ */ d("div", {
|
|
67
|
+
className: "ttw:mb-4 ttw:flex ttw:items-center ttw:gap-1",
|
|
68
|
+
children: [/* @__PURE__ */ u("p", {
|
|
69
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
70
|
+
children: y
|
|
71
|
+
}), /* @__PURE__ */ u(s, {})]
|
|
72
|
+
}),
|
|
73
|
+
F ? /* @__PURE__ */ u(r, {
|
|
74
|
+
className: "ttw:mb-3",
|
|
75
|
+
children: F
|
|
76
|
+
}) : null,
|
|
77
|
+
/* @__PURE__ */ d("div", {
|
|
78
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
79
|
+
children: [E ? /* @__PURE__ */ d(e, {
|
|
80
|
+
type: "button",
|
|
81
|
+
variant: "ghost",
|
|
82
|
+
disabled: W,
|
|
83
|
+
onClick: E,
|
|
84
|
+
className: "ttw:h-auto ttw:max-w-full ttw:whitespace-normal ttw:rounded-2xl ttw:px-3 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-destructive/10 ttw:hover:text-[color-mix(in_srgb,var(--ttw-destructive),black_10%)]",
|
|
85
|
+
"data-testid": R?.delete,
|
|
86
|
+
children: [/* @__PURE__ */ u(p, {
|
|
87
|
+
className: "ttw:size-4",
|
|
88
|
+
"aria-hidden": !0
|
|
89
|
+
}), z.deleteButton]
|
|
90
|
+
}) : K, /* @__PURE__ */ d("div", {
|
|
91
|
+
className: "ttw:ml-auto ttw:flex ttw:min-w-0 ttw:max-w-full ttw:flex-wrap ttw:items-center ttw:justify-end ttw:gap-3",
|
|
92
|
+
children: [
|
|
93
|
+
E ? K : null,
|
|
94
|
+
S ? /* @__PURE__ */ u(e, {
|
|
95
|
+
type: "button",
|
|
96
|
+
variant: "outline",
|
|
97
|
+
disabled: W,
|
|
98
|
+
onClick: S,
|
|
99
|
+
className: "ttw:h-auto ttw:rounded-2xl ttw:border-border ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-muted ttw:hover:text-foreground",
|
|
100
|
+
"data-testid": R?.cancel,
|
|
101
|
+
children: z.cancelButton
|
|
102
|
+
}) : null,
|
|
103
|
+
C ? /* @__PURE__ */ u(e, {
|
|
104
|
+
type: "button",
|
|
105
|
+
variant: "secondary",
|
|
106
|
+
disabled: w || W,
|
|
107
|
+
loading: T,
|
|
108
|
+
onClick: C,
|
|
109
|
+
className: "ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium",
|
|
110
|
+
"data-testid": R?.saveAndClose,
|
|
111
|
+
children: z.saveAndCloseButton
|
|
112
|
+
}) : null,
|
|
113
|
+
/* @__PURE__ */ d(e, {
|
|
114
|
+
type: "button",
|
|
115
|
+
disabled: A || W,
|
|
116
|
+
loading: j,
|
|
117
|
+
onClick: x,
|
|
118
|
+
className: n("ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium", P === "success" && "ttw:bg-green-600! ttw:text-white! ttw:hover:bg-green-700!"),
|
|
119
|
+
"data-testid": R?.next,
|
|
120
|
+
children: [M, G]
|
|
121
|
+
})
|
|
122
|
+
]
|
|
123
|
+
})]
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
})
|
|
127
|
+
]
|
|
171
128
|
})
|
|
172
129
|
});
|
|
173
130
|
}
|
|
174
131
|
//#endregion
|
|
175
|
-
export {
|
|
132
|
+
export { i as ONBOARDING_SHELL_LABELS_EN, m as OnboardingShell, a as OnboardingShellStepper };
|
|
@@ -3,32 +3,17 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import * as e from "react";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import "react/jsx-runtime";
|
|
8
8
|
//#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return s.style.minHeight = "min(840px, 92vh)", () => {
|
|
19
|
-
s.style.minHeight = e;
|
|
20
|
-
};
|
|
21
|
-
}, [
|
|
22
|
-
s,
|
|
23
|
-
a,
|
|
24
|
-
c
|
|
25
|
-
]);
|
|
26
|
-
let l = /* @__PURE__ */ n("div", {
|
|
27
|
-
className: "ttw:absolute ttw:inset-0 ttw:z-20 ttw:flex ttw:flex-col ttw:overflow-hidden ttw:rounded-2xl ttw:bg-background",
|
|
28
|
-
"data-testid": o?.root,
|
|
29
|
-
children: i
|
|
30
|
-
});
|
|
31
|
-
return s ? t(l, s) : l;
|
|
32
|
-
}
|
|
9
|
+
var t = e.createContext({ container: null });
|
|
10
|
+
[
|
|
11
|
+
"a[href]",
|
|
12
|
+
"button:not([disabled])",
|
|
13
|
+
"input:not([disabled]):not([type=\"hidden\"])",
|
|
14
|
+
"select:not([disabled])",
|
|
15
|
+
"textarea:not([disabled])",
|
|
16
|
+
"[tabindex]:not([tabindex=\"-1\"])"
|
|
17
|
+
].join(",");
|
|
33
18
|
//#endregion
|
|
34
|
-
export {
|
|
19
|
+
export { t as OnboardingShellOverlayContainerContext };
|
|
@@ -101,7 +101,6 @@ function j({ showSectionTitle: n = !0, onboardingDisclosureLinks: r, onApplicant
|
|
|
101
101
|
onRetry: F.refetch,
|
|
102
102
|
testId: k.applicationUnavailable
|
|
103
103
|
}) : /* @__PURE__ */ O(oe, {
|
|
104
|
-
isFullScreenInline: !0,
|
|
105
104
|
showApplicationStatusRefresh: !0,
|
|
106
105
|
onResultPhaseChange: fe,
|
|
107
106
|
onEmbeddedOnboardingCompletedSuccessfully: () => ve(!0),
|
|
@@ -16613,24 +16613,82 @@ function Mj({ searchSlot: e, menuSlot: t, presetsSlot: n, activeChipsSlot: r, ov
|
|
|
16613
16613
|
]
|
|
16614
16614
|
});
|
|
16615
16615
|
}
|
|
16616
|
-
|
|
16616
|
+
var Nj = 8;
|
|
16617
|
+
function Pj(e) {
|
|
16618
|
+
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim()), n = t ? `${t[2]}${t[3]}${t[1]}` : e.split("/").map((e, t, n) => {
|
|
16619
|
+
let r = e.replace(/\D/g, "");
|
|
16620
|
+
return t < 2 && t < n.length - 1 && r.length === 1 ? `0${r}` : r;
|
|
16621
|
+
}).join("").slice(0, Nj);
|
|
16622
|
+
return n.length <= 2 ? n : n.length <= 4 ? `${n.slice(0, 2)}/${n.slice(2)}` : `${n.slice(0, 2)}/${n.slice(2, 4)}/${n.slice(4)}`;
|
|
16623
|
+
}
|
|
16624
|
+
function Fj(e) {
|
|
16625
|
+
let t = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(e);
|
|
16626
|
+
if (!t) return;
|
|
16627
|
+
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a = new Date(i, n - 1, r);
|
|
16628
|
+
return a.setFullYear(i), a.getFullYear() === i && a.getMonth() === n - 1 && a.getDate() === r ? a : void 0;
|
|
16629
|
+
}
|
|
16630
|
+
function Ij(e) {
|
|
16631
|
+
return `${String(e.getMonth() + 1).padStart(2, "0")}/${String(e.getDate()).padStart(2, "0")}/${String(e.getFullYear()).padStart(4, "0")}`;
|
|
16632
|
+
}
|
|
16633
|
+
var Lj = (e) => Number.isNaN(e.getTime());
|
|
16634
|
+
function Rj(e) {
|
|
16635
|
+
if (e !== "") return Fj(e) ?? /* @__PURE__ */ new Date(NaN);
|
|
16636
|
+
}
|
|
16637
|
+
function zj(e) {
|
|
16638
|
+
return e && !Lj(e) ? Ij(e) : "";
|
|
16639
|
+
}
|
|
16640
|
+
function Bj(e, t) {
|
|
16641
|
+
let n = Pj(t).replace(/\D/g, "").length, r = 0;
|
|
16642
|
+
for (let t = 0; t < n && r < e.length;) /\d/.test(e[r]) && (t += 1), r += 1;
|
|
16643
|
+
return t.endsWith("/") && e[r] === "/" ? r + 1 : r;
|
|
16644
|
+
}
|
|
16645
|
+
function Vj(e, t) {
|
|
16646
|
+
return e === void 0 || t === void 0 ? e === t : Lj(e) || Lj(t) ? Lj(e) && Lj(t) : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
16647
|
+
}
|
|
16648
|
+
function Hj({ value: t, onChange: n, autoComplete: r = "bday", ref: i, ...a }) {
|
|
16649
|
+
let [o, s] = e.useState(() => zj(t)), c = e.useRef(null), l = e.useRef(null), u = e.useMemo(() => Uj(c, i), [i]);
|
|
16650
|
+
return !Vj(Rj(o), t) && zj(t) !== o && s(zj(t)), e.useLayoutEffect(() => {
|
|
16651
|
+
let e = l.current;
|
|
16652
|
+
l.current = null, e !== null && c.current?.setSelectionRange(e, e);
|
|
16653
|
+
}), /* @__PURE__ */ _(vb, {
|
|
16654
|
+
...a,
|
|
16655
|
+
ref: u,
|
|
16656
|
+
type: "text",
|
|
16657
|
+
inputMode: "numeric",
|
|
16658
|
+
autoComplete: r,
|
|
16659
|
+
maxLength: 10,
|
|
16660
|
+
value: o,
|
|
16661
|
+
onChange: (e) => {
|
|
16662
|
+
let r = e.target.value, i = Pj(r), a = e.target.selectionStart;
|
|
16663
|
+
l.current = a !== null && a < r.length ? Bj(i, r.slice(0, a)) : null;
|
|
16664
|
+
let o = Rj(i);
|
|
16665
|
+
s(i), Vj(o, t) || n(o);
|
|
16666
|
+
}
|
|
16667
|
+
});
|
|
16668
|
+
}
|
|
16669
|
+
function Uj(...e) {
|
|
16670
|
+
return (t) => {
|
|
16671
|
+
for (let n of e) typeof n == "function" ? n(t) : n && (n.current = t);
|
|
16672
|
+
};
|
|
16673
|
+
}
|
|
16674
|
+
function Wj(e) {
|
|
16617
16675
|
return e.toLocaleDateString("en-US", {
|
|
16618
16676
|
year: "numeric",
|
|
16619
16677
|
month: "short",
|
|
16620
16678
|
day: "numeric"
|
|
16621
16679
|
});
|
|
16622
16680
|
}
|
|
16623
|
-
function
|
|
16681
|
+
function Gj(e) {
|
|
16624
16682
|
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
16625
16683
|
}
|
|
16626
|
-
function
|
|
16684
|
+
function Kj({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i, minDate: a, maxDate: o, defaultMonth: s, disabledDates: c, className: l, id: u, "aria-invalid": d, "aria-describedby": f, onBlur: p, container: m, iconPosition: h = "start" }) {
|
|
16627
16685
|
let [g, y] = e.useState(!1), b = (e) => {
|
|
16628
16686
|
y(e), e || p?.();
|
|
16629
16687
|
}, x = e.useMemo(() => {
|
|
16630
16688
|
let e = [
|
|
16631
16689
|
...a ? [{ before: a }] : [],
|
|
16632
16690
|
...o ? [{ after: o }] : [],
|
|
16633
|
-
...
|
|
16691
|
+
...Gj(c)
|
|
16634
16692
|
];
|
|
16635
16693
|
if (e.length !== 0) return e.length === 1 ? e[0] : e;
|
|
16636
16694
|
}, [
|
|
@@ -16656,7 +16714,7 @@ function Fj({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i
|
|
|
16656
16714
|
className: J("ttw:w-full ttw:justify-start ttw:text-left ttw:font-normal", !t && "ttw:text-muted-foreground", l),
|
|
16657
16715
|
children: [
|
|
16658
16716
|
h === "start" && /* @__PURE__ */ _(I, { className: "ttw:mr-2 ttw:size-4" }),
|
|
16659
|
-
t ?
|
|
16717
|
+
t ? Wj(t) : r,
|
|
16660
16718
|
h === "end" && /* @__PURE__ */ _(I, { className: "ttw:ml-auto ttw:size-4" })
|
|
16661
16719
|
]
|
|
16662
16720
|
})
|
|
@@ -16679,13 +16737,13 @@ function Fj({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i
|
|
|
16679
16737
|
})]
|
|
16680
16738
|
});
|
|
16681
16739
|
}
|
|
16682
|
-
var
|
|
16740
|
+
var qj = {
|
|
16683
16741
|
fieldLabel: "Date range",
|
|
16684
16742
|
presetPlaceholder: "Custom range"
|
|
16685
16743
|
};
|
|
16686
|
-
function
|
|
16744
|
+
function Jj({ from: t, to: n, onRangeChange: r, selectedPreset: i, onPresetChange: a, presets: o = [], labels: s, className: c }) {
|
|
16687
16745
|
let l = {
|
|
16688
|
-
...
|
|
16746
|
+
...qj,
|
|
16689
16747
|
...s
|
|
16690
16748
|
}, u = {
|
|
16691
16749
|
from: t,
|
|
@@ -16733,7 +16791,7 @@ function Lj({ from: t, to: n, onRangeChange: r, selectedPreset: i, onPresetChang
|
|
|
16733
16791
|
})]
|
|
16734
16792
|
});
|
|
16735
16793
|
}
|
|
16736
|
-
function
|
|
16794
|
+
function Yj({ options: e, selectedValues: t, onSelectionChange: n, className: r, hasMore: i, onLoadMore: a }) {
|
|
16737
16795
|
let o = (e) => {
|
|
16738
16796
|
n(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
16739
16797
|
};
|
|
@@ -16764,7 +16822,7 @@ function Rj({ options: e, selectedValues: t, onSelectionChange: n, className: r,
|
|
|
16764
16822
|
}, e.value))
|
|
16765
16823
|
});
|
|
16766
16824
|
}
|
|
16767
|
-
var
|
|
16825
|
+
var Xj = {
|
|
16768
16826
|
min: "Greater than",
|
|
16769
16827
|
max: "Less than",
|
|
16770
16828
|
modeAny: "Any",
|
|
@@ -16774,7 +16832,7 @@ var zj = {
|
|
|
16774
16832
|
flowIn: "Flowing in",
|
|
16775
16833
|
flowOut: "Flowing out"
|
|
16776
16834
|
};
|
|
16777
|
-
function
|
|
16835
|
+
function Zj({ value: e, onValueChange: t, placeholder: n = "0.00", label: r }) {
|
|
16778
16836
|
return /* @__PURE__ */ v("div", {
|
|
16779
16837
|
className: J("ttw:flex ttw:h-8 ttw:w-full ttw:min-w-0 ttw:items-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-input ttw:bg-transparent ttw:px-2.5 ttw:text-xs ttw:shadow-xs", "ttw:transition-[color,box-shadow] ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50"),
|
|
16780
16838
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -16791,9 +16849,9 @@ function Bj({ value: e, onValueChange: t, placeholder: n = "0.00", label: r }) {
|
|
|
16791
16849
|
})]
|
|
16792
16850
|
});
|
|
16793
16851
|
}
|
|
16794
|
-
function
|
|
16852
|
+
function Qj({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i, onMaxChange: a, showFlowDirection: o = !1, flowDirection: s = "any", onFlowDirectionChange: c, labels: l, className: u }) {
|
|
16795
16853
|
let d = {
|
|
16796
|
-
...
|
|
16854
|
+
...Xj,
|
|
16797
16855
|
...l
|
|
16798
16856
|
};
|
|
16799
16857
|
return /* @__PURE__ */ v("div", {
|
|
@@ -16856,7 +16914,7 @@ function Vj({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i
|
|
|
16856
16914
|
children: [/* @__PURE__ */ _("span", {
|
|
16857
16915
|
className: "ttw:text-xs ttw:text-muted-foreground ttw:w-24 ttw:shrink-0",
|
|
16858
16916
|
children: d.min
|
|
16859
|
-
}), /* @__PURE__ */ _(
|
|
16917
|
+
}), /* @__PURE__ */ _(Zj, {
|
|
16860
16918
|
value: n,
|
|
16861
16919
|
onValueChange: i,
|
|
16862
16920
|
label: d.min
|
|
@@ -16866,12 +16924,12 @@ function Vj({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i
|
|
|
16866
16924
|
children: [/* @__PURE__ */ _("span", {
|
|
16867
16925
|
className: "ttw:text-xs ttw:text-muted-foreground ttw:w-24 ttw:shrink-0",
|
|
16868
16926
|
children: d.max
|
|
16869
|
-
}), /* @__PURE__ */ _(
|
|
16927
|
+
}), /* @__PURE__ */ _(Zj, {
|
|
16870
16928
|
value: r,
|
|
16871
16929
|
onValueChange: a,
|
|
16872
16930
|
label: d.max
|
|
16873
16931
|
})]
|
|
16874
|
-
})] }) : /* @__PURE__ */ _(
|
|
16932
|
+
})] }) : /* @__PURE__ */ _(Zj, {
|
|
16875
16933
|
value: n,
|
|
16876
16934
|
onValueChange: i,
|
|
16877
16935
|
label: d.modeExact
|
|
@@ -16880,7 +16938,7 @@ function Vj({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i
|
|
|
16880
16938
|
]
|
|
16881
16939
|
});
|
|
16882
16940
|
}
|
|
16883
|
-
function
|
|
16941
|
+
function $j({ className: e, ...t }) {
|
|
16884
16942
|
return /* @__PURE__ */ v("div", {
|
|
16885
16943
|
className: "ttw:relative",
|
|
16886
16944
|
children: [/* @__PURE__ */ _(de, { className: "ttw:absolute ttw:left-2.5 ttw:top-1/2 ttw:-translate-y-1/2 ttw:size-4 ttw:text-muted-foreground ttw:pointer-events-none" }), /* @__PURE__ */ _("input", {
|
|
@@ -16890,13 +16948,13 @@ function Hj({ className: e, ...t }) {
|
|
|
16890
16948
|
})]
|
|
16891
16949
|
});
|
|
16892
16950
|
}
|
|
16893
|
-
var
|
|
16951
|
+
var eM = { closeToast: "Close notification" }, tM = {
|
|
16894
16952
|
toast: "ttw:font-sans ttw:text-sm ttw:shadow-md",
|
|
16895
16953
|
description: "ttw:text-sm",
|
|
16896
16954
|
actionButton: "ttw:bg-primary ttw:text-primary-foreground ttw:rounded-md ttw:font-medium ttw:text-xs ttw:px-2.5 ttw:py-1",
|
|
16897
16955
|
cancelButton: "ttw:bg-muted ttw:text-muted-foreground ttw:rounded-md ttw:text-xs ttw:px-2.5 ttw:py-1"
|
|
16898
16956
|
};
|
|
16899
|
-
function
|
|
16957
|
+
function nM({ toastOptions: e, ...t }) {
|
|
16900
16958
|
return /* @__PURE__ */ _(C, {
|
|
16901
16959
|
className: "toaster group",
|
|
16902
16960
|
position: "bottom-right",
|
|
@@ -16932,16 +16990,16 @@ function Gj({ toastOptions: e, ...t }) {
|
|
|
16932
16990
|
},
|
|
16933
16991
|
...t,
|
|
16934
16992
|
toastOptions: {
|
|
16935
|
-
closeButtonAriaLabel:
|
|
16993
|
+
closeButtonAriaLabel: eM.closeToast,
|
|
16936
16994
|
...e,
|
|
16937
16995
|
classNames: {
|
|
16938
|
-
...
|
|
16996
|
+
...tM,
|
|
16939
16997
|
...e?.classNames
|
|
16940
16998
|
}
|
|
16941
16999
|
}
|
|
16942
17000
|
});
|
|
16943
17001
|
}
|
|
16944
|
-
function
|
|
17002
|
+
function rM() {
|
|
16945
17003
|
let [e, t] = f(!1), [n, r] = f(null);
|
|
16946
17004
|
return {
|
|
16947
17005
|
isMenuOpen: e,
|
|
@@ -16960,4 +17018,4 @@ function Kj() {
|
|
|
16960
17018
|
};
|
|
16961
17019
|
}
|
|
16962
17020
|
//#endregion
|
|
16963
|
-
export {
|
|
17021
|
+
export { Xj as AMOUNT_FILTER_LABELS_EN, Bv as AUDIT_HISTORY_LABELS_EN, zv as AUDIT_HISTORY_LIST_LABELS_EN, dv as Accordion, mv as AccordionContent, fv as AccordionItem, pv as AccordionTrigger, yv as Alert, xv as AlertDescription, kv as AlertDialog, Lv as AlertDialogAction, Rv as AlertDialogCancel, Mv as AlertDialogContent, Iv as AlertDialogDescription, Pv as AlertDialogFooter, Nv as AlertDialogHeader, jv as AlertDialogOverlay, Av as AlertDialogPortal, Fv as AlertDialogTitle, bv as AlertTitle, Qj as AmountFilter, ny as AuditHistoryList, ry as Avatar, iy as AvatarFallback, oy as Badge, Tv as Button, cy as COMBOBOX_LABELS_EN, hO as Calendar, gO as CalendarDayButton, tw as Checkbox, Vv as Collapsible, Uv as CollapsibleContent, Wv as CollapsibleSection, Hv as CollapsibleTrigger, fy as Combobox, xj as Command, wj as CommandEmpty, Tj as CommandGroup, Sj as CommandInput, Dj as CommandItem, Cj as CommandList, Ej as CommandSeparator, py as ContextMenu, hy as ContextMenuContent, gy as ContextMenuItem, my as ContextMenuTrigger, _y as DATA_TABLE_LABELS_EN, qj as DATE_RANGE_PICKER_LABELS_EN, Yy as DIALOG_LABELS_EN, Gy as DataTable, Jy as DataTableSortableHeader, Hj as DateInput, Kj as DatePicker, Jj as DateRangePicker, Xy as Dialog, Qy as DialogClose, eb as DialogContent, ib as DialogDescription, nb as DialogFooter, tb as DialogHeader, $y as DialogOverlay, Zy as DialogPortal, rb as DialogTitle, vy as DropdownMenu, Cy as DropdownMenuCheckboxItem, by as DropdownMenuContent, xy as DropdownMenuGroup, Sy as DropdownMenuItem, wy as DropdownMenuLabel, Ty as DropdownMenuSeparator, yy as DropdownMenuTrigger, Oj as FILTER_MENU_BUTTON_LABELS_EN, Aj as FILTER_TAG_LABELS_EN, pb as Field, mb as FieldContent, gb as FieldDescription, _b as FieldError, hb as FieldLabel, lb as FieldRequirement, Mj as FilterBar, kj as FilterMenuButton, jj as FilterTag, vb as Input, yb as InputGroup, xb as InputGroupAddon, bb as InputGroupInput, Cb as InputTags, ab as LABEL_LABELS_EN, ub as Label, Yj as MultiSelectFilter, ZC as Popover, ew as PopoverAnchor, $C as PopoverContent, QC as PopoverTrigger, Dv as PortalContainerProvider, wb as REQUIRED_FIELDS_LEGEND_LABELS_EN, nw as RadioGroup, rw as RadioGroupItem, Db as RequiredFieldsLegend, Ob as SHEET_LABELS_EN, eM as SONNER_LABELS_EN, Sv as SPINNER_LABELS_EN, $j as SearchInput, Ey as Select, Ay as SelectContent, Dy as SelectGroup, My as SelectItem, jy as SelectLabel, Fy as SelectScrollDownButton, Py as SelectScrollUpButton, Ny as SelectSeparator, ky as SelectTrigger, Oy as SelectValue, db as Separator, kb as Sheet, Ab as SheetClose, Nb as SheetContent, Lb as SheetDescription, Fb as SheetFooter, Pb as SheetHeader, Ib as SheetTitle, qv as Skeleton, Cv as Spinner, Hb as Switch, Iy as Table, Ry as TableBody, Vy as TableCell, By as TableHead, Ly as TableHeader, zy as TableRow, Ub as Tabs, qb as TabsContent, Gb as TabsList, Kb as TabsTrigger, Jb as Textarea, nM as Toaster, zb as Tooltip, Vb as TooltipContent, Rb as TooltipProvider, Bb as TooltipTrigger, XC as Typography, ay as badgeVariants, wv as buttonVariants, J as cn, Pj as formatDateInputText, sy as formatLabel, Tb as mergeRequiredFieldsLegendLabels, Fj as parseDateInputText, Wb as tabsListVariants, w as toast, JC as typographyVariants, rM as useFilterPanel, Ov as usePortalContainer };
|