@tesouro/embedded-components-react 0.5.214 → 0.5.216

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 (123) hide show
  1. package/dist/index.d.ts +144 -3
  2. package/dist/index.js +14 -13
  3. package/dist/lib/BankAccountOnboardingWidget.d.ts +56 -2
  4. package/dist/lib/BankAccountOnboardingWidget.js +4 -3
  5. package/dist/lib/MarketingWidget.js +1 -1
  6. package/dist/lib/ReceivablesWidget.d.ts +88 -1
  7. package/dist/lib/ReceivablesWidget.js +1 -1
  8. package/dist/lib/WidgetSuite.d.ts +53 -0
  9. package/dist/libs/shared/util-validation/dist/index5.js +7 -0
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +3 -2
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index11.js +72 -72
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +4 -1
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +15 -15
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +60 -60
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +12 -12
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +16 -16
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +11 -11
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js +8 -8
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +71 -5
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js +95 -33
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index24.js +6 -17
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +16 -616
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index26.js +669 -0
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +15 -13
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +52 -37
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +31 -37
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +33 -89
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +39 -12
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +98 -2
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +14 -4
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +2 -185
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +4 -30
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +183 -21
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +26 -66
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +21 -233
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +66 -27
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +233 -26
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +27 -72
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +26 -85
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +74 -8
  41. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +83 -55
  42. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +6 -7
  43. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +37 -42
  44. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +11 -0
  45. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +64 -0
  46. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +7 -33
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +7 -7
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +63 -67
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +160 -1
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +6 -0
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +32 -25
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +25 -200
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +175 -1
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +1 -101
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +92 -71
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +44 -100
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +93 -421
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +442 -112
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +166 -157
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +150 -204
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +202 -31
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +32 -145
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +145 -37
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +44 -58
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +113 -87
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +58 -116
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +83 -357
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +111 -65
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +449 -99
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +68 -281
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +115 -0
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +314 -0
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +34 -23
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +444 -92
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +113 -52
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +18 -14
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -92
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +95 -3
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +3 -24
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +24 -1
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +1 -3
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +1 -1
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +3 -18
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +18 -1
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +0 -3
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +0 -8
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +11 -0
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +1 -264
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +258 -42
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +38 -62
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +61 -463
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +457 -89
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +91 -234
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +89 -82
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +22 -338
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +236 -0
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +26 -204
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +3 -0
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +249 -0
  102. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +93 -0
  103. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +344 -0
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +208 -32
  105. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +29 -202
  106. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +183 -137
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +157 -12
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +10 -19
  109. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +23 -2
  110. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +1 -1
  111. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index5.js +16 -19
  112. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index6.js +157 -16
  113. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -40
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/onboardingSuppressionReason.js +3 -1
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +167 -156
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -34
  117. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +2 -1
  118. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  119. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/application/bankAccountApplication.js +26 -0
  120. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js +1 -1
  121. package/dist/packages/shared-ui-shadcn/dist/index.js +13 -13
  122. package/package.json +1 -1
  123. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index7.js +0 -161
@@ -2,11 +2,11 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { bankAccountOnboardingTestIds as e } from "./index12.js";
6
- import { buildAdditionalOwnerSchema as t } from "./index10.js";
7
- import { ADDITIONAL_OWNERS_LABELS_EN as n } from "../../ui/dist/index5.js";
8
- import { AdditionalOwnersForm as r } from "../../ui/dist/index6.js";
5
+ import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../ui/dist/index5.js";
6
+ import { AdditionalOwnersForm as t } from "../../ui/dist/index6.js";
9
7
  import "../../ui/dist/index.js";
8
+ import { bankAccountOnboardingTestIds as n } from "./index12.js";
9
+ import { buildAdditionalOwnerSchema as r } from "./index10.js";
10
10
  import { valuesKey as i } from "./index17.js";
11
11
  import { EMPTY_ADDITIONAL_OWNER as a, buildAdditionalOwnerEditDisplay as o, buildAdditionalOwnerEditFields as s, normalizeAdditionalOwnerDraft as c } from "./index16.js";
12
12
  import { useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
@@ -26,9 +26,9 @@ function g(e) {
26
26
  }
27
27
  function _({ owners: h, onOwnersChange: _, primaryOwnerName: v, primaryOwnerPercentage: y, stateOptions: b, onSnapshotChange: x, onPendingOwnerChange: S, isSubmitting: C, labels: w }) {
28
28
  let T = u(() => ({
29
- ...n,
29
+ ...e,
30
30
  ...w
31
- }), [w]), E = u(() => t(T), [T]), [D, O] = f(null), [k, A] = f(null), [j, M] = f(null), [N, P] = f(null), [F, I] = f(!1), L = (e) => {
31
+ }), [w]), E = u(() => r(T), [T]), [D, O] = f(null), [k, A] = f(null), [j, M] = f(null), [N, P] = f(null), [F, I] = f(!1), L = (e) => {
32
32
  O(c(e));
33
33
  }, R = y + h.reduce((e, t) => e + m(t), 0), z = R > 100 ? T.totalOwnershipExceedsTemplate(R) : null, B = R > 75, V = `${y}%`, H = y >= 25, U = h.every((e) => E.safeParse(e).success), W = D !== null && E.safeParse(D).success, G = U && z === null && D === null && N === null ? h : null, K = JSON.stringify({ snapshot: G?.map((e) => ({
34
34
  ...e,
@@ -84,7 +84,7 @@ function _({ owners: h, onOwnersChange: _, primaryOwnerName: v, primaryOwnerPerc
84
84
  O(null), A(null), I(!1);
85
85
  }
86
86
  } : null;
87
- return /* @__PURE__ */ p(r, {
87
+ return /* @__PURE__ */ p(t, {
88
88
  ownerRows: h.map(g),
89
89
  primaryOwnerName: v,
90
90
  primaryOwnerShareDisplay: V,
@@ -101,11 +101,11 @@ function _({ owners: h, onOwnersChange: _, primaryOwnerName: v, primaryOwnerPerc
101
101
  isSubmitting: C,
102
102
  labels: w,
103
103
  testIds: {
104
- addOwnerButton: e.addOwnerButton,
105
- overlay: { root: e.shellOverlay },
104
+ addOwnerButton: n.addOwnerButton,
105
+ overlay: { root: n.shellOverlay },
106
106
  deleteOverlay: {
107
- root: e.ownerDeleteOverlay,
108
- content: e.ownerDeleteContent
107
+ root: n.ownerDeleteOverlay,
108
+ content: n.ownerDeleteContent
109
109
  }
110
110
  }
111
111
  });
@@ -1,22 +1,22 @@
1
- import { isIdentifierEnteredOrStored as e, usableStoredTaxIdLast4 as t } from "./index7.js";
2
- import { buildAdditionalOwnerSchema as n, buildBusinessDetailsPanelFieldsSchema as r, buildPersonalDetailsSchema as i } from "./index10.js";
3
- import { ADDITIONAL_OWNERS_LABELS_EN as a } from "../../ui/dist/index5.js";
4
- import { BUSINESS_DETAILS_LABELS_EN as o } from "../../ui/dist/index7.js";
5
- import { PERSONAL_DETAILS_LABELS_EN as s } from "../../ui/dist/index8.js";
1
+ import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../ui/dist/index5.js";
2
+ import { BUSINESS_DETAILS_LABELS_EN as t } from "../../ui/dist/index7.js";
3
+ import { PERSONAL_DETAILS_LABELS_EN as n } from "../../ui/dist/index8.js";
6
4
  import "../../ui/dist/index.js";
5
+ import { isIdentifierEnteredOrStored as r, usableStoredTaxIdLast4 as i } from "./index7.js";
6
+ import { buildAdditionalOwnerSchema as a, buildBusinessDetailsPanelFieldsSchema as o, buildPersonalDetailsSchema as s } from "./index10.js";
7
7
  import { EMPTY_ADDITIONAL_OWNER as c } from "./index16.js";
8
8
  import { formatBirthDate as l, stripPhone as u } from "./index19.js";
9
9
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js
10
- var d = r(o).shape, f = i(s).shape, p = n(a).shape, m = (e, t) => e.safeParse(t).success;
10
+ var d = o(t).shape, f = s(n).shape, p = a(e).shape, m = (e, t) => e.safeParse(t).success;
11
11
  function h(e) {
12
12
  return Object.keys(e).length === 0 ? {} : {
13
13
  ...e,
14
14
  countryCode: "USA"
15
15
  };
16
16
  }
17
- var g = (t) => e(t, void 0);
17
+ var g = (e) => r(e, void 0);
18
18
  function _(e) {
19
- return !(e.taxIdOnFileLast4 && !t(e)) || g(e.taxId);
19
+ return !(e.taxIdOnFileLast4 && !i(e)) || g(e.taxId);
20
20
  }
21
21
  function v(e) {
22
22
  return _(e) ? e.companyStructure : e.taxIdOnFileStructure;
@@ -1,7 +1,73 @@
1
+ import { RESULT_LABELS_EN as e } from "../../ui/dist/index15.js";
2
+ import "../../ui/dist/index.js";
1
3
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js
2
- var e = {
3
- Mounted: "onboarding.mounted",
4
- Suppressed: "onboarding.suppressed"
5
- }, t = "onboarding";
4
+ function t({ applicantName: e, submittedOn: t }) {
5
+ return e && t ? [`Submitted by ${e} on ${t}.`] : e ? [`Submitted by ${e}.`] : t ? [`Submitted on ${t}.`] : [];
6
+ }
7
+ var n = {
8
+ title: "Business bank account application",
9
+ bankDisclosure: "{bankName}, Member FDIC",
10
+ close: "Close",
11
+ formatDate: (e) => new Date(e).toLocaleDateString("en-US", {
12
+ month: "short",
13
+ day: "numeric",
14
+ year: "numeric"
15
+ }),
16
+ draftStartedByOther: {
17
+ chipLabel: "Application in progress",
18
+ heading: ({ startedOn: e }) => e ? `An application is already in progress as of ${e}.` : "An application is already in progress.",
19
+ body: () => ["Only the user who started the application can finish it. If someone else needs to apply instead, the original applicant can cancel theirs so someone else can start one."]
20
+ },
21
+ submittedByYou: {
22
+ chipLabel: "Under review",
23
+ heading: ({ bankName: e }) => `Your application is with ${e}.`,
24
+ body: ({ submittedOn: e }) => [e ? `Submitted ${e}. Reviews usually take 1–3 business days.` : "Reviews usually take 1–3 business days.", "Nothing is needed from you right now. We'll email you if anything else is needed."]
25
+ },
26
+ submittedByOther: {
27
+ chipLabel: "Under review",
28
+ heading: ({ bankName: e }) => `Your business's application is with ${e}.`,
29
+ body: (e) => [...t(e), `${e.applicantName ?? "The applicant"} will be contacted with updates.`]
30
+ },
31
+ deniedByYou: {
32
+ chipLabel: "Not approved",
33
+ body: ({ deniedOn: e }) => [e ? `Application denied on ${e}. Details have been sent to your email.` : "Application denied. Details have been sent to your email."]
34
+ },
35
+ deniedByOther: {
36
+ chipLabel: "Not approved",
37
+ body: ({ bankName: e, applicantName: t }) => [`${e} was unable to approve your business's application.`, `${t ?? "The applicant"} has the details.`]
38
+ }
39
+ }, r = {
40
+ stepIndicator: {
41
+ business: "Business",
42
+ personal: "Personal",
43
+ ownership: "Ownership",
44
+ done: "Done"
45
+ },
46
+ businessDetails: {},
47
+ personalDetails: {},
48
+ additionalOwners: {},
49
+ result: e,
50
+ unsavedApplicationDialog: {},
51
+ deleteApplicationDialog: {},
52
+ back: "Back",
53
+ cancel: "Cancel",
54
+ next: "Next",
55
+ submit: "Submit application",
56
+ saveAndClose: "Save and close",
57
+ deleteApplication: "Cancel and delete application",
58
+ applicationDeletedToast: "Application deleted.",
59
+ applicationSavedToast: "Application saved. You can continue later.",
60
+ businessReviewTitle: "Review your business details",
61
+ businessReviewSubtitle: "Take a moment to make sure your business information is correct.",
62
+ personalReviewTitle: "Review your personal details",
63
+ personalReviewSubtitle: "Take a moment to make sure your personal information is correct.",
64
+ modalTitle: "Bank account onboarding",
65
+ submitFailedError: "Unable to submit application. Please try again.",
66
+ genericRetryError: "Please try again.",
67
+ saveDraftNothingValidError: "Fix the highlighted fields before saving, or discard your changes.",
68
+ fallbackBankName: "Member Bank",
69
+ shellFdicDisclaimer: "Products and services are offered by {bankName}, N.A., Member FDIC.",
70
+ applicationStatus: n
71
+ };
6
72
  //#endregion
7
- export { e as OnboardingAnalyticsEvent, t as WIDGET_NAME };
73
+ export { n as APPLICATION_STATUS_LABELS_EN, r as DEFAULT_LABELS };
@@ -1,37 +1,99 @@
1
- import { RESULT_LABELS_EN as e } from "../../ui/dist/index13.js";
1
+ import { OnboardingSuppressionReason as e } from "../../../shared/data-access/dist/lib/onboardingSuppressionReason.js";
2
+ import "../../../shared/data-access/dist/index.js";
3
+ import { deniedNoticeExpiresAt as t } from "../../../shared/feature/dist/lib/application/bankAccountApplication.js";
4
+ import "../../../shared/feature/dist/index.js";
5
+ import { interpolateBankName as n } from "../../ui/dist/index7.js";
6
+ import { ApplicationStatusTone as r } from "../../ui/dist/index10.js";
2
7
  import "../../ui/dist/index.js";
8
+ import { APPLICATION_STATUS_LABELS_EN as i } from "./index22.js";
3
9
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js
4
- var t = {
5
- stepIndicator: {
6
- business: "Business",
7
- personal: "Personal",
8
- ownership: "Ownership",
9
- done: "Done"
10
- },
11
- businessDetails: {},
12
- personalDetails: {},
13
- additionalOwners: {},
14
- result: e,
15
- unsavedApplicationDialog: {},
16
- deleteApplicationDialog: {},
17
- back: "Back",
18
- cancel: "Cancel",
19
- next: "Next",
20
- submit: "Submit application",
21
- saveAndClose: "Save and close",
22
- deleteApplication: "Cancel and delete application",
23
- applicationDeletedToast: "Application deleted.",
24
- applicationSavedToast: "Application saved. You can continue later.",
25
- businessReviewTitle: "Review your business details",
26
- businessReviewSubtitle: "Take a moment to make sure your business information is correct.",
27
- personalReviewTitle: "Review your personal details",
28
- personalReviewSubtitle: "Take a moment to make sure your personal information is correct.",
29
- modalTitle: "Bank account onboarding",
30
- submitFailedError: "Unable to submit application. Please try again.",
31
- genericRetryError: "Please try again.",
32
- saveDraftNothingValidError: "Fix the highlighted fields before saving, or discard your changes.",
33
- fallbackBankName: "Member Bank",
34
- shellFdicDisclaimer: "Products and services are offered by {bankName}, N.A., Member FDIC."
10
+ var a = {
11
+ Form: "form",
12
+ DraftStartedByOther: "draftStartedByOther",
13
+ SubmittedByYou: "submittedByYou",
14
+ SubmittedByOther: "submittedByOther",
15
+ DeniedByYou: "deniedByYou",
16
+ DeniedByOther: "deniedByOther",
17
+ Hidden: "hidden"
35
18
  };
19
+ function o(e) {
20
+ return e !== a.Form && e !== a.Hidden;
21
+ }
22
+ function s(e, n = Date.now()) {
23
+ if (!e) return a.Form;
24
+ let r = e.ownership === "STARTED_BY_YOU";
25
+ switch (e.status) {
26
+ case "COMPLETE": return a.Hidden;
27
+ case "DRAFT": return r ? a.Form : a.DraftStartedByOther;
28
+ case "SUBMITTED": return r ? a.SubmittedByYou : a.SubmittedByOther;
29
+ case "DENIED": {
30
+ let i = t(e);
31
+ return i !== null && n > i ? a.Hidden : r ? a.DeniedByYou : a.DeniedByOther;
32
+ }
33
+ case "DELETED":
34
+ case "CANCELED": return a.Form;
35
+ default: return a.Hidden;
36
+ }
37
+ }
38
+ function c(t) {
39
+ switch (t?.status) {
40
+ case "COMPLETE": return e.OrganizationApplicationComplete;
41
+ case "DENIED": return e.OrganizationApplicationDenialExpired;
42
+ default: return e.OrganizationApplicationStatusUnrecognized;
43
+ }
44
+ }
45
+ var l = {
46
+ [a.DraftStartedByOther]: "draftStartedByOther",
47
+ [a.SubmittedByYou]: "submittedByYou",
48
+ [a.SubmittedByOther]: "submittedByOther",
49
+ [a.DeniedByYou]: "deniedByYou",
50
+ [a.DeniedByOther]: "deniedByOther"
51
+ }, u = {
52
+ [a.DraftStartedByOther]: r.Brand,
53
+ [a.SubmittedByYou]: r.Warning,
54
+ [a.SubmittedByOther]: r.Warning,
55
+ [a.DeniedByYou]: r.Danger,
56
+ [a.DeniedByOther]: r.Danger
57
+ };
58
+ function d(e) {
59
+ let t = i, n = (n) => ({
60
+ ...t[n],
61
+ ...e?.[n]
62
+ });
63
+ return {
64
+ title: e?.title ?? t.title,
65
+ bankDisclosure: e?.bankDisclosure ?? t.bankDisclosure,
66
+ close: e?.close ?? t.close,
67
+ formatDate: e?.formatDate ?? t.formatDate,
68
+ draftStartedByOther: n("draftStartedByOther"),
69
+ submittedByYou: n("submittedByYou"),
70
+ submittedByOther: n("submittedByOther"),
71
+ deniedByYou: n("deniedByYou"),
72
+ deniedByOther: n("deniedByOther")
73
+ };
74
+ }
75
+ function f(e, t, n) {
76
+ let r = (e) => e ? n(e) : void 0;
77
+ return {
78
+ bankName: t,
79
+ applicantName: [e?.applicantFirstName, e?.applicantLastName].map((e) => e?.trim()).filter(Boolean).join(" ") || void 0,
80
+ startedOn: r(e?.createdAt),
81
+ submittedOn: r(e?.submittedAt),
82
+ deniedOn: r(e?.deniedAt)
83
+ };
84
+ }
85
+ function p(e, t, r, i) {
86
+ let a = i[l[e]], o = f(t, r, i.formatDate);
87
+ return {
88
+ chipTone: u[e],
89
+ labels: {
90
+ title: i.title,
91
+ bankDisclosure: n(i.bankDisclosure, r),
92
+ chipLabel: a.chipLabel,
93
+ heading: a.heading?.(o),
94
+ body: a.body(o)
95
+ }
96
+ };
97
+ }
36
98
  //#endregion
37
- export { t as DEFAULT_LABELS };
99
+ export { a as OnboardingApplicationView, p as applicationStatusNoticeFor, c as hiddenViewReason, o as isNoticeView, d as mergeApplicationStatusLabels, s as onboardingApplicationViewFor };
@@ -1,19 +1,8 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index24.js
2
- var e = [
3
- "ssnOnFileLast4",
4
- "taxIdOnFileLast4",
5
- "taxIdOnFileStructure"
6
- ], t = [...e, "id"];
7
- function n(e, t) {
8
- let n = { ...e };
9
- for (let e of t) delete n[e];
10
- return n;
11
- }
12
- function r(t) {
13
- return t ? n(t, e) : void 0;
14
- }
15
- function i(e) {
16
- return n(e, t);
17
- }
2
+ var e = {
3
+ Mounted: "onboarding.mounted",
4
+ Suppressed: "onboarding.suppressed",
5
+ ApplicationStatusShown: "onboarding.application_status_shown"
6
+ }, t = "onboarding";
18
7
  //#endregion
19
- export { i as withoutResumeOnlyOwnerFields, r as withoutStoredIdentifierMarkers };
8
+ export { e as OnboardingAnalyticsEvent, t as WIDGET_NAME };