@tesouro/embedded-components-react 0.5.32 → 0.5.34

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.
Files changed (40) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +17 -1
  3. package/dist/index.js +2 -2
  4. package/dist/lib/BankAccountOnboardingWidget.d.ts +17 -1
  5. package/dist/lib/BankAccountOnboardingWidget.js +1 -1
  6. package/dist/lib/SettingsWidget.js +1 -2
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +3 -1
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +30 -0
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +48 -0
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +6 -0
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +1 -0
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +9 -2
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +96 -5
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +5 -28
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +26 -320
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index19.js +7 -0
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index20.js +387 -0
  19. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index.js +3 -2
  20. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index7.js +3 -0
  22. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index2.js +5 -0
  23. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/feature/dist/index3.js +7 -7
  24. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/contract/dist/index2.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/contract/dist/index3.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index4.js +4 -0
  27. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/contract/dist/index5.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/shadcn/dist/index2.js +1 -1
  29. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/shadcn/dist/index3.js +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +27 -27
  31. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +162 -154
  32. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +11 -11
  33. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  34. package/package.json +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index2.js +0 -4
  36. package/dist/libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index4.js +0 -4
  37. /package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/feature/dist/index.js +0 -0
  38. /package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/contract/dist/index.js +0 -0
  39. /package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/shadcn/dist/index.js +0 -0
  40. /package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/shadcn/dist/index4.js +0 -0
@@ -0,0 +1,387 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Dialog as e, DialogContent as t, DialogTitle as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { useAcceptWidgetDisclosures as i } from "../../../shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js";
8
+ import { useDisclosuresQuery as a } from "../../../shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js";
9
+ import { OnboardingSuppressionReason as o } from "../../../shared/data-access/dist/lib/onboardingSuppressionReason.js";
10
+ import { useOrganizationOnboardingSuppression as s } from "../../../shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js";
11
+ import "../../../shared/data-access/dist/index.js";
12
+ import { OnboardingShell as c } from "../../../shared/ui/dist/lib/OnboardingShell/OnboardingShell.js";
13
+ import "../../../shared/ui/dist/index.js";
14
+ import { useAnalyticsTrack as l } from "../../../shared/feature/dist/lib/analytics/hooks.js";
15
+ import { WidgetProvider as u } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
16
+ import { getStateOptions as d } from "../../../shared/util/dist/lib/usStates.js";
17
+ import { extractApiErrorMessage as ee } from "../../../shared/util/dist/lib/apiErrors.js";
18
+ import { useRefetchWidget as te, useWidgetConfig as f } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
19
+ import { getNaicsOptions as ne } from "../../../shared/feature/dist/lib/naicsCodeMap.js";
20
+ import "../../../shared/feature/dist/index.js";
21
+ import { bankAccountOnboardingTestIds as p } from "./index9.js";
22
+ import { ADDITIONAL_OWNERS_LABELS_EN as m } from "../../ui/dist/index4.js";
23
+ import { interpolateBankName as h } from "../../ui/dist/index6.js";
24
+ import { ResultStep as re } from "../../ui/dist/index11.js";
25
+ import "../../ui/dist/index.js";
26
+ import { BusinessDetailsStep as ie } from "./index10.js";
27
+ import { PersonalDetailsStep as ae } from "./index12.js";
28
+ import { AdditionalOwnersStep as oe } from "./index14.js";
29
+ import { buildCreateApplicationBody as se, buildUpdateApplicationBody as g } from "./index15.js";
30
+ import { buildOnboardingPrefill as _ } from "./index16.js";
31
+ import { OnboardingAnalyticsEvent as v, WIDGET_NAME as ce } from "./index17.js";
32
+ import { DEFAULT_LABELS as y } from "./index18.js";
33
+ import { withoutResumeOnlyOwnerFields as b } from "./index19.js";
34
+ import { ApplicationClientSecretProvider as le, useApplicationClientSecret as ue } from "../../data-access/dist/index2.js";
35
+ import { useCreateApplication as de } from "../../data-access/dist/index4.js";
36
+ import { useUpdateApplication as fe } from "../../data-access/dist/index6.js";
37
+ import { useSubmitApplication as pe } from "../../data-access/dist/index7.js";
38
+ import { usePollApplicationCompletion as me } from "../../data-access/dist/index8.js";
39
+ import { useResumableBankAccountApplication as x } from "../../data-access/dist/index10.js";
40
+ import { useStartedBankAccountApplication as he } from "../../data-access/dist/index11.js";
41
+ import "../../data-access/dist/index.js";
42
+ import { useCallback as S, useEffect as C, useMemo as w, useRef as ge, useState as T } from "react";
43
+ import { Fragment as _e, jsx as E, jsxs as ve } from "react/jsx-runtime";
44
+ //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index20.js
45
+ var ye = "DRAFT", be = [], xe = {
46
+ companyLegalName: "",
47
+ companyDbaName: "",
48
+ businessAddress: "",
49
+ city: "",
50
+ state: "",
51
+ zipCode: "",
52
+ companyPhoneNumber: "",
53
+ companyStructure: "",
54
+ website: "",
55
+ taxId: "",
56
+ naicsCode: "",
57
+ isAuthorized: null,
58
+ isCheckboxChecked: !1
59
+ }, Se = {
60
+ firstName: "",
61
+ lastName: "",
62
+ dateOfBirth: void 0,
63
+ ssn: "",
64
+ homeAddress: "",
65
+ city: "",
66
+ state: "",
67
+ zipCode: "",
68
+ mobilePhoneNumber: "",
69
+ workEmail: "",
70
+ ownsOver25Percent: null,
71
+ ownershipPercentage: null
72
+ };
73
+ function Ce(e, t) {
74
+ if (e === 0) return {
75
+ title: t.businessReviewTitle,
76
+ subtitle: t.businessReviewSubtitle
77
+ };
78
+ if (e === 1) return {
79
+ title: t.personalReviewTitle,
80
+ subtitle: t.personalReviewSubtitle
81
+ };
82
+ let n = {
83
+ ...m,
84
+ ...t.additionalOwners
85
+ };
86
+ return {
87
+ title: n.heading,
88
+ subtitle: n.subheading
89
+ };
90
+ }
91
+ function D({ onEmbeddedOnboardingCompletedSuccessfully: r, onNavigateToDashboard: u, labels: m, initialBusinessDetails: _, initialPersonalDetails: ce, initialAdditionalOwners: le, initialApplicationId: x = null, bankLogoSrc: he, disclosureLinks: ye, open: D, defaultOpen: O, onOpenChange: k, isFullScreenInline: A = !1 }) {
92
+ let j = l();
93
+ C(() => {
94
+ j(v.Mounted);
95
+ }, [j]);
96
+ let M = {
97
+ ...y,
98
+ ...m,
99
+ stepIndicator: {
100
+ ...y.stepIndicator,
101
+ ...m?.stepIndicator
102
+ },
103
+ businessDetails: m?.businessDetails ?? {},
104
+ personalDetails: m?.personalDetails ?? {},
105
+ additionalOwners: m?.additionalOwners ?? {},
106
+ result: {
107
+ ...y.result,
108
+ ...m?.result
109
+ }
110
+ }, N = f().initResponse, { termsHref: we, privacyHref: Te, electronicCommunicationHref: Ee, patriotActHref: De } = ye ?? {}, P = D === void 0, [Oe, ke] = T(() => O ?? !1), Ae = P ? Oe : D, je = O ?? !1, F = S((e) => {
111
+ P && ke(e), k?.(e);
112
+ }, [k, P]), Me = S(() => {
113
+ r();
114
+ }, [r]), Ne = te(), [I, L] = T(0), [Pe, Fe] = T(() => ({
115
+ ...xe,
116
+ ..._
117
+ })), [R, Ie] = T(() => ({
118
+ ...Se,
119
+ ...ce
120
+ })), [Le, Re] = T(() => le ?? []), [z, ze] = T(null), [B, Be] = T(null), [V, Ve] = T(null), [H, He] = T(x), [Ue, U] = T(null), [W, We] = T(!1), [Ge, G] = T(null), Ke = de(), K = fe(), qe = pe(), Je = me(), { setClientSecret: Ye } = ue(), { data: Xe, refetch: Ze } = a(), { mutateAsync: Qe } = i(), q = s(), J = ge(null);
121
+ C(() => () => J.current?.abort(), []);
122
+ let $e = w(() => ne(M.businessDetails.naicsTitles), [M.businessDetails.naicsTitles]), et = w(() => d(M.businessDetails.stateTitles), [M.businessDetails.stateTitles]), tt = w(() => d(M.personalDetails.stateTitles), [M.personalDetails.stateTitles]), nt = w(() => d(M.additionalOwners.stateTitles), [M.additionalOwners.stateTitles]), Y = W || Ge !== null, rt = N?.status === "ACTIVE" || N?.status === "INACTIVE", it = N?.status === "INVITED", X = !!N && !Y && (rt || it || q.isSuppressed), Z = X ? rt ? o.UserAlreadyOnboarded : it ? o.UserInvitedToOrganization : q.reason : null;
123
+ if (C(() => {
124
+ !X || !Z || (j(v.Suppressed, { reason: Z }), console.info(`[onboarding] not shown: ${Z}`));
125
+ }, [
126
+ X,
127
+ Z,
128
+ j
129
+ ]), !N || !Y && (X || !q.isResolved)) return null;
130
+ let Q = z?.companyStructure === "SOLE_PROPRIETORSHIP", at = [
131
+ M.stepIndicator.business,
132
+ M.stepIndicator.personal,
133
+ M.stepIndicator.ownership
134
+ ], ot = I === 0 ? z : I === 1 ? B : I === 2 ? V : null, $ = Ke.isPending || K.isPending || qe.isPending || W, st = () => {
135
+ U(null), L((e) => e === 0 ? 0 : e - 1);
136
+ }, ct = () => {
137
+ F(!1);
138
+ }, lt = async (e) => {
139
+ We(!0), F(!0);
140
+ let t = new AbortController();
141
+ J.current = t;
142
+ let n = !1;
143
+ try {
144
+ let r = await qe.mutateAsync({ path: { id: e } });
145
+ if (t.signal.aborted) return;
146
+ if (!r.id) throw Error(M.submitFailedError);
147
+ if (n = !0, (await Je(e, { signal: t.signal })).status === "complete") {
148
+ let e = Xe;
149
+ if (e === void 0 && (e = (await Ze()).data), t.signal.aborted) return;
150
+ if (e !== void 0) try {
151
+ await Qe({ displayedVersion: e.version ?? null });
152
+ } catch {}
153
+ if (t.signal.aborted) return;
154
+ G("success"), Ne(), Me();
155
+ } else G("pending");
156
+ } catch (e) {
157
+ if (e instanceof DOMException && e.name === "AbortError") return;
158
+ if (!n) throw e;
159
+ G("pending");
160
+ } finally {
161
+ J.current = null, We(!1);
162
+ }
163
+ }, ut = () => {
164
+ Re((e) => e.map(b));
165
+ }, dt = async () => {
166
+ U(null);
167
+ try {
168
+ if (I === 0) {
169
+ if (!z) return;
170
+ let e = H;
171
+ if (e) await K.mutateAsync({
172
+ path: { id: e },
173
+ body: g({
174
+ businessDetails: z,
175
+ carryConsent: x !== null
176
+ })
177
+ });
178
+ else {
179
+ let t = await Ke.mutateAsync({ body: se(z) });
180
+ e = t.id, He(e), t.clientSecret && Ye(t.clientSecret);
181
+ }
182
+ Q && ut(), L(1);
183
+ } else if (I === 1) {
184
+ if (!B || !z || !H) return;
185
+ await K.mutateAsync({
186
+ path: { id: H },
187
+ body: g({
188
+ businessDetails: z,
189
+ applicant: B,
190
+ carryConsent: x !== null
191
+ })
192
+ }), L(2);
193
+ } else if (I === 2) {
194
+ if (!V || !H) return;
195
+ await K.mutateAsync({
196
+ path: { id: H },
197
+ body: g({ businessOwners: V })
198
+ }), await lt(H);
199
+ }
200
+ } catch (e) {
201
+ let t = ee(e) ?? (e instanceof Error ? e.message : void 0) ?? M.genericRetryError;
202
+ U(t);
203
+ }
204
+ }, ft = Ce(Math.min(I, 2), M), pt = N.bankName?.trim() || M.fallbackBankName, mt = h(M.shellFdicDisclaimer, pt);
205
+ if (Y) {
206
+ let r = z?.companyLegalName ?? "", i = N.bankName?.trim() || M.fallbackBankName, a = Ge ?? "pending", o = a === "success", s = {
207
+ ...y.result,
208
+ ...M.result
209
+ }, c = /* @__PURE__ */ E(re, {
210
+ testIds: {
211
+ processing: p.resultProcessing,
212
+ dashboardButton: p.resultDashboardButton
213
+ },
214
+ status: a,
215
+ isLoading: W,
216
+ loadingMessage: s.loadingMessage,
217
+ headingLine1: o ? s.successHeadingLine1 : s.pendingHeadingLine1,
218
+ headingLine2: `${r}!`,
219
+ body: o ? s.successBody : s.pendingBody,
220
+ followUpEmail: B?.workEmail ?? "",
221
+ emailBoxLead: s.pendingEmailBoxLead,
222
+ navigateToDashboardLabel: s.navigateToDashboard,
223
+ bankLogoSrc: he,
224
+ bankLogoAlt: h(s.bankLogoAlt, i),
225
+ fdicDisclaimer: h(s.fdicDisclaimer, i),
226
+ onNavigateToDashboard: u
227
+ });
228
+ return A ? /* @__PURE__ */ E("div", {
229
+ className: "ttw:grid ttw:h-full ttw:w-full ttw:grid-rows-[1fr] ttw:place-items-center ttw:gap-0 ttw:overflow-auto ttw:bg-background",
230
+ children: c
231
+ }) : /* @__PURE__ */ E(e, {
232
+ open: Ae,
233
+ onOpenChange: F,
234
+ children: /* @__PURE__ */ ve(t, {
235
+ className: "ttw:grid ttw:max-h-[95vh] ttw:w-[720px] ttw:max-w-[calc(100vw-2rem)] ttw:grid-rows-[1fr] ttw:gap-0 ttw:overflow-hidden ttw:rounded-2xl ttw:p-0",
236
+ children: [/* @__PURE__ */ E(n, {
237
+ className: "ttw:sr-only",
238
+ children: M.modalTitle
239
+ }), c]
240
+ })
241
+ });
242
+ }
243
+ let ht = I === 2 ? M.submit : M.next, gt = ot === null || $;
244
+ return /* @__PURE__ */ E(_e, { children: /* @__PURE__ */ ve(c, {
245
+ open: Ae,
246
+ defaultOpen: je,
247
+ onOpenChange: F,
248
+ isFullScreenInline: A,
249
+ title: ft.title,
250
+ subtitle: ft.subtitle,
251
+ stepLabels: at,
252
+ activeStep: I,
253
+ disclaimerText: mt,
254
+ onBack: I === 0 ? ct : st,
255
+ onCancel: I > 0 ? ct : void 0,
256
+ onNext: dt,
257
+ showDismissButton: !1,
258
+ isNextDisabled: gt,
259
+ isNextLoading: $,
260
+ nextLabel: ht,
261
+ nextIcon: null,
262
+ errorMessage: Ue,
263
+ labels: {
264
+ backButton: I === 0 ? M.cancel : M.back,
265
+ cancelButton: M.cancel
266
+ },
267
+ testIds: {
268
+ root: p.shell,
269
+ dismiss: p.shellDismiss,
270
+ back: p.shellBack,
271
+ cancel: p.shellCancel,
272
+ next: p.shellNext,
273
+ scrollRegion: {
274
+ root: p.shellScrollRegion,
275
+ fade: p.shellScrollFade,
276
+ hint: p.shellScrollHint
277
+ }
278
+ },
279
+ children: [
280
+ I === 0 ? /* @__PURE__ */ E(ie, {
281
+ value: Pe,
282
+ onValueChange: Fe,
283
+ onSnapshotChange: ze,
284
+ naicsOptions: $e,
285
+ stateOptions: et,
286
+ isSubmitting: $,
287
+ labels: M.businessDetails,
288
+ bankName: pt,
289
+ termsHref: we,
290
+ privacyHref: Te,
291
+ electronicCommunicationHref: Ee,
292
+ patriotActHref: De
293
+ }, "business") : null,
294
+ I === 1 ? /* @__PURE__ */ E(ae, {
295
+ value: R,
296
+ onValueChange: Ie,
297
+ onSnapshotChange: Be,
298
+ stateOptions: tt,
299
+ isSubmitting: $,
300
+ labels: M.personalDetails
301
+ }, "personal") : null,
302
+ I === 2 ? /* @__PURE__ */ E(oe, {
303
+ owners: Q ? be : Le,
304
+ onOwnersChange: Re,
305
+ primaryOwnerName: `${R.firstName} ${R.lastName}`.trim(),
306
+ primaryOwnerPercentage: Q ? 100 : B?.ownsOver25Percent === !0 ? B.ownershipPercentage ?? 0 : 0,
307
+ stateOptions: nt,
308
+ onSnapshotChange: Ve,
309
+ isSubmitting: $,
310
+ labels: M.additionalOwners
311
+ }) : null
312
+ ]
313
+ }) });
314
+ }
315
+ function O({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: l, analytics: d, disclosuresAcceptance: ee, providerLabels: te, ...f }) {
316
+ return /* @__PURE__ */ E(u, {
317
+ baseUrl: e,
318
+ widgetToken: t,
319
+ organizationId: n,
320
+ configClient: r,
321
+ gatewayRouting: i,
322
+ linkComponent: a,
323
+ implementation: o,
324
+ uiFramework: s,
325
+ errorFallback: c,
326
+ onError: l,
327
+ analytics: d,
328
+ disclosuresAcceptance: ee,
329
+ providerLabels: te,
330
+ widgetName: ce,
331
+ children: /* @__PURE__ */ E(k, { ...f })
332
+ });
333
+ }
334
+ function k(e) {
335
+ let { initResponse: t } = f(), { client: n } = r(), i = t?.userId ?? null, [a, o] = T(i), [s, c] = T(0);
336
+ i !== a && (o(i), a !== null && i !== null && c((e) => e + 1));
337
+ let [l, u] = T(n);
338
+ return n !== l && (u(n), c((e) => e + 1)), /* @__PURE__ */ E(le, { children: /* @__PURE__ */ E(j, { ...e }, s) }, s);
339
+ }
340
+ var A = { canRender: !1 };
341
+ function j(e) {
342
+ let { setClientSecret: t } = ue(), { applicationId: n, clientSecret: r, isResolved: i } = x(), { application: a, isResolved: o, isUnavailable: s } = he(n, r);
343
+ C(() => {
344
+ r && t(r);
345
+ }, [r, t]);
346
+ let [c, l] = T(null);
347
+ if (C(() => {
348
+ if (!(c?.canRender === !0 || !i || !o)) {
349
+ if (s) {
350
+ l(A);
351
+ return;
352
+ }
353
+ if (a !== null && a.status !== void 0 && a.status !== ye) {
354
+ l(A);
355
+ return;
356
+ }
357
+ l({
358
+ canRender: !0,
359
+ applicationId: a === null ? null : n,
360
+ prefill: _(a)
361
+ });
362
+ }
363
+ }, [
364
+ c,
365
+ i,
366
+ o,
367
+ s,
368
+ a,
369
+ n
370
+ ]), c === null || !c.canRender) return null;
371
+ let { applicationId: u, prefill: d } = c;
372
+ return /* @__PURE__ */ E(D, {
373
+ ...e,
374
+ initialApplicationId: u,
375
+ initialBusinessDetails: {
376
+ ...e.initialBusinessDetails,
377
+ ...d?.businessDetails
378
+ },
379
+ initialPersonalDetails: {
380
+ ...e.initialPersonalDetails,
381
+ ...d?.personalDetails
382
+ },
383
+ initialAdditionalOwners: d?.additionalOwners ?? e.initialAdditionalOwners?.map(b)
384
+ });
385
+ }
386
+ //#endregion
387
+ export { O as BankAccountOnboardingWidget, O as default };
@@ -1,5 +1,6 @@
1
1
  import "./index3.js";
2
2
  import { SettingsSection as e } from "./index4.js";
3
- import { SettingsWidget as t } from "./index6.js";
3
+ import { HELP_FAQ_EN as t } from "../../help/ui/contract/dist/index3.js";
4
+ import { SettingsWidget as n } from "./index6.js";
4
5
  import "./index7.js";
5
- export { e as SettingsSection, t as SettingsWidget };
6
+ export { t as HELP_FAQ_EN, e as SettingsSection, n as SettingsWidget };
@@ -27,8 +27,8 @@ import { SettingsWidgetUi as g } from "../../ui/dist/lib/SettingsWidgetUi/Settin
27
27
  import "../../ui/dist/index.js";
28
28
  import { ChartOfAccountsWidget as _ } from "../../chart-of-accounts/feature/dist/index8.js";
29
29
  import "../../chart-of-accounts/feature/dist/index.js";
30
- import { HelpWidget as v } from "../../../help-widget/feature/dist/index3.js";
31
- import "../../../help-widget/feature/dist/index.js";
30
+ import { HelpWidget as v } from "../../help/feature/dist/index3.js";
31
+ import "../../help/feature/dist/index.js";
32
32
  import { ProfileWidget as y } from "../../profile/feature/dist/index4.js";
33
33
  import "../../profile/feature/dist/index.js";
34
34
  import { useEffect as b } from "react";
@@ -1,3 +1,6 @@
1
1
  import "./index3.js";
2
2
  import "./index4.js";
3
+ import { HELP_FAQ_EN as e } from "../../help/ui/contract/dist/index3.js";
4
+ import "../../help/feature/dist/index.js";
3
5
  import "./index6.js";
6
+ export { e as HELP_FAQ_EN };
@@ -0,0 +1,5 @@
1
+ import { SETTINGS_WIDGET_NAME as e } from "../../../shared/util/dist/lib/widgetName.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index2.js
3
+ var t = `${e}.help_widget`, n = { Mounted: `${t}.mounted` };
4
+ //#endregion
5
+ export { n as HelpWidgetAnalyticsEvent, t as WIDGET_NAME };
@@ -2,12 +2,12 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useFrameworkRenderer as e } from "../../../shared/ui/dist/lib/UIContext/uiRendererRegistry.js";
6
- import "../../../shared/ui/dist/index.js";
7
- import { useAnalyticsTrack as t } from "../../../shared/feature/dist/lib/analytics/hooks.js";
8
- import { WidgetProvider as n } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
9
- import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
- import "../../../shared/feature/dist/index.js";
5
+ import { useFrameworkRenderer as e } from "../../../../shared/ui/dist/lib/UIContext/uiRendererRegistry.js";
6
+ import "../../../../shared/ui/dist/index.js";
7
+ import { useAnalyticsTrack as t } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
8
+ import { WidgetProvider as n } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
9
+ import { useWidgetConfig as r } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
+ import "../../../../shared/feature/dist/index.js";
11
11
  import { HelpWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index2.js";
12
12
  import { HELP_FAQ_EN as o } from "../../ui/contract/dist/index3.js";
13
13
  import "../../ui/contract/dist/index4.js";
@@ -16,7 +16,7 @@ import { HelpWidgetShadcn as s } from "../../ui/shadcn/dist/index3.js";
16
16
  import "../../ui/shadcn/dist/index.js";
17
17
  import { useEffect as c } from "react";
18
18
  import { jsx as l } from "react/jsx-runtime";
19
- //#region ../../libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js
19
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index3.js
20
20
  function u({ faq: n = o, bankName: a, ...u }) {
21
21
  let d = t();
22
22
  c(() => {
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index2.js
1
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index2.js
2
2
  var e = {
3
3
  title: "Frequently asked questions",
4
4
  contactUsTitle: "Contact Us",
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index3.js
1
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js
2
2
  var e = [
3
3
  {
4
4
  title: "Security & Access",
@@ -0,0 +1,4 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index4.js
2
+ var e = "help-widget";
3
+ //#endregion
4
+ export { e as HELP_WIDGET_ID };
@@ -1,6 +1,6 @@
1
1
  import { Fragment as e } from "react";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index5.js
3
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index5.js
4
4
  function n(n) {
5
5
  return n.includes("<bold>") ? n.split(/(<bold>.*?<\/bold>)/g).map((n, r) => {
6
6
  let i = n.match(/<bold>(.*?)<\/bold>/);
@@ -2,7 +2,7 @@ import { renderRichText as e } from "../../contract/dist/index5.js";
2
2
  import "../../contract/dist/index.js";
3
3
  import { Fragment as t } from "react";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/shadcn/dist/index2.js
5
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index2.js
6
6
  function i({ bullets: t, type: a, nested: o = !1 }) {
7
7
  let s = a === "numeric";
8
8
  return /* @__PURE__ */ n(s ? "ol" : "ul", {
@@ -1,11 +1,11 @@
1
- import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { SectionHeading as i } from "../../../../shared/ui/dist/lib/SectionHeading/SectionHeading.js";
3
- import "../../../../shared/ui/dist/index.js";
1
+ import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { SectionHeading as i } from "../../../../../shared/ui/dist/lib/SectionHeading/SectionHeading.js";
3
+ import "../../../../../shared/ui/dist/index.js";
4
4
  import { HELP_WIDGET_LABELS_EN as a } from "../../contract/dist/index2.js";
5
5
  import "../../contract/dist/index.js";
6
6
  import { AnswerBlocks as o } from "./index2.js";
7
7
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
8
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/shadcn/dist/index3.js
8
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index3.js
9
9
  var u = "ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-6";
10
10
  function d({ faq: d, bankName: f, contactUrl: p, labels: m }) {
11
11
  let h = {