@tesouro/embedded-components-react 0.5.28 → 0.5.31

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 (118) hide show
  1. package/README.md +14 -13
  2. package/dist/index.css +15 -0
  3. package/dist/index.d.ts +9 -0
  4. package/dist/index.js +1 -1
  5. package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -0
  6. package/dist/lib/BillPayWidget.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +155 -151
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +2 -44
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +7 -7
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +52 -67
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +15 -12
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +57 -62
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +68 -207
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +278 -175
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -126
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +53 -47
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +204 -49
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -202
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -32
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -240
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +532 -19
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -436
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +42 -4
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +230 -35
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -233
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +46 -8
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +122 -241
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +206 -126
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -213
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -33
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +10 -11
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +123 -8
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -170
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -2
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +7 -11
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +158 -96
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +1 -1
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +11 -7
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +100 -44
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +10 -0
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +52 -0
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +2 -0
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +20 -22
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +4 -9
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +103 -146
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +3 -2
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +93 -88
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +15 -16
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -0
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +43 -29
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +55 -51
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +9 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +33 -1
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -8
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -39
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -2
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -31
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -37
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +34 -10
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -201
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +39 -3
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +3 -8
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +187 -350
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +3 -10
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +13 -5
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +356 -85
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -0
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +9 -2
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +87 -119
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -94
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +25 -4
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +90 -26
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +3 -3
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +26 -30
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +4 -9
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +30 -102
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +9 -14
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +85 -104
  108. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
  109. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
  110. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +4 -0
  111. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +92 -87
  112. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  113. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +126 -105
  114. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +13 -6
  115. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  116. package/package.json +1 -1
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -25
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +0 -28
package/README.md CHANGED
@@ -437,19 +437,20 @@ A self-contained widget that walks an applicant through the embedded bank-accoun
437
437
 
438
438
  #### Props
439
439
 
440
- | Prop | Type | Required | Description |
441
- | ------------------------------------------- | ----------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
442
- | `onEmbeddedOnboardingCompletedSuccessfully` | `() => void` | Yes | Called when the application is submitted and approved. |
443
- | `onNavigateToDashboard` | `() => void` | Yes | Called when the user clicks the dashboard CTA on the result screen. |
444
- | `initialBusinessDetails` | `Partial<BusinessDetailsValues>` | No | Prefills step 1 (business details). Unset fields start empty; the user can still edit before continuing. |
445
- | `initialPersonalDetails` | `Partial<PersonalDetailsValues>` | No | Prefills step 2 (personal / about-you details). Unset fields start empty; the user can still edit before continuing. |
446
- | `initialAdditionalOwners` | `AdditionalOwner[]` | No | Prefills step 3 (additional owners). Defaults to an empty list when omitted. |
447
- | `open` | `boolean` | No | Controlled open state for the modal. When provided the host owns open/close and must update it via `onOpenChange`. Omit for uncontrolled mode. |
448
- | `defaultOpen` | `boolean` | No | Initial open state when uncontrolled. Defaults to `false` so the modal stays closed until the host opens it. Ignored when `open` is set. |
449
- | `onOpenChange` | `(open: boolean) => void` | No | Notified whenever the modal opens or closes — fires on overlay click, escape key, the close button, and any controlled state update. Used both as the change handler in controlled mode and a side hook. |
450
- | `labels` | `BankAccountOnboardingWidgetLabels` | No | Per-step label overrides — see Labels section. Accepts a `modalTitle` override for the modal's accessible title (default: `Bank account onboarding`). |
451
- | `bankLogoSrc` | `string` | No | URL for the bank logo rendered on the result screen; falls back to bank name text. |
452
- | `disclosureLinks` | `DisclosureLinks` | No | Host-resolved URLs for Terms of Use, Privacy Policy, Electronic Communication, and Patriot Act on the business-details agreement step. Omit to leave those links unset. |
440
+ | Prop | Type | Required | Description |
441
+ | ------------------------------------------- | ----------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
442
+ | `onEmbeddedOnboardingCompletedSuccessfully` | `() => void` | Yes | Called when the application is submitted and approved. |
443
+ | `onNavigateToDashboard` | `() => void` | Yes | Called when the user clicks the dashboard CTA on the result screen. |
444
+ | `initialBusinessDetails` | `Partial<BusinessDetailsValues>` | No | Prefills step 1 (business details). Unset fields start empty; the user can still edit before continuing. |
445
+ | `initialPersonalDetails` | `Partial<PersonalDetailsValues>` | No | Prefills step 2 (personal / about-you details). Unset fields start empty; the user can still edit before continuing. |
446
+ | `initialAdditionalOwners` | `AdditionalOwner[]` | No | Prefills step 3 (additional owners). Defaults to an empty list when omitted. |
447
+ | `open` | `boolean` | No | Controlled open state for the modal. When provided the host owns open/close and must update it via `onOpenChange`. Omit for uncontrolled mode. |
448
+ | `defaultOpen` | `boolean` | No | Initial open state when uncontrolled. Defaults to `false` so the modal stays closed until the host opens it. Ignored when `open` is set. |
449
+ | `onOpenChange` | `(open: boolean) => void` | No | Notified whenever the modal opens or closes — fires on overlay click, escape key, the close button, and any controlled state update. Used both as the change handler in controlled mode and a side hook. |
450
+ | `labels` | `BankAccountOnboardingWidgetLabels` | No | Per-step label overrides — see Labels section. Accepts a `modalTitle` override for the modal's accessible title (default: `Bank account onboarding`). |
451
+ | `bankLogoSrc` | `string` | No | URL for the bank logo rendered on the result screen; falls back to bank name text. |
452
+ | `disclosureLinks` | `DisclosureLinks` | No | Host-resolved URLs for Terms of Use, Privacy Policy, Electronic Communication, and Patriot Act on the business-details agreement step. Omit to leave those links unset. |
453
+ | `isFullScreenInline` | `boolean` | No | Renders the widget inline — filling the width/height of its host container — instead of in a modal. `open` / `defaultOpen` are ignored in this mode; the widget always renders once mounted, and the host controls mounting instead. `onOpenChange` still fires for gestures like Cancel, so hosts can react (e.g. by unmounting the widget). Defaults to `false`. |
453
454
 
454
455
  ### MarketingWidget
455
456
 
package/dist/index.css CHANGED
@@ -398,6 +398,9 @@
398
398
  .ttw\:-mx-1 {
399
399
  margin-inline: calc(var(--ttw-spacing) * -1);
400
400
  }
401
+ .ttw\:-mx-2 {
402
+ margin-inline: calc(var(--ttw-spacing) * -2);
403
+ }
401
404
  .ttw\:-mx-6 {
402
405
  margin-inline: calc(var(--ttw-spacing) * -6);
403
406
  }
@@ -413,6 +416,9 @@
413
416
  .ttw\:mx-auto {
414
417
  margin-inline: auto;
415
418
  }
419
+ .ttw\:-my-1 {
420
+ margin-block: calc(var(--ttw-spacing) * -1);
421
+ }
416
422
  .ttw\:-my-2 {
417
423
  margin-block: calc(var(--ttw-spacing) * -2);
418
424
  }
@@ -1244,6 +1250,9 @@
1244
1250
  .ttw\:w-\[90px\] {
1245
1251
  width: 90px;
1246
1252
  }
1253
+ .ttw\:w-\[140px\] {
1254
+ width: 140px;
1255
+ }
1247
1256
  .ttw\:w-\[300px\] {
1248
1257
  width: 300px;
1249
1258
  }
@@ -1631,6 +1640,9 @@
1631
1640
  .ttw\:rotate-45 {
1632
1641
  rotate: 45deg;
1633
1642
  }
1643
+ .ttw\:rotate-90 {
1644
+ rotate: 90deg;
1645
+ }
1634
1646
  .ttw\:rotate-y-180 {
1635
1647
  --tw-rotate-y: rotateY(180deg);
1636
1648
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
@@ -1758,6 +1770,9 @@
1758
1770
  .ttw\:place-content-center {
1759
1771
  place-content: center;
1760
1772
  }
1773
+ .ttw\:place-items-center {
1774
+ place-items: center;
1775
+ }
1761
1776
  .ttw\:items-baseline {
1762
1777
  align-items: baseline;
1763
1778
  }
package/dist/index.d.ts CHANGED
@@ -4450,6 +4450,15 @@ interface BankAccountOnboardingWidgetInnerProps {
4450
4450
  * or other side effects without owning the open state.
4451
4451
  */
4452
4452
  onOpenChange?: (open: boolean) => void;
4453
+ /**
4454
+ * Renders the widget inline — filling the width/height of its host
4455
+ * container — instead of in a modal dialog. `open`/`defaultOpen` play no
4456
+ * part in whether the widget's content is shown in this mode; the widget
4457
+ * always renders once mounted, and the host controls mounting instead.
4458
+ * `onOpenChange` still fires for gestures like Cancel, so hosts can react
4459
+ * to them (e.g. by unmounting the widget).
4460
+ */
4461
+ isFullScreenInline?: boolean;
4453
4462
  }
4454
4463
  type BankAccountOnboardingWidgetProps = WidgetProviderProps & BankAccountOnboardingWidgetInnerProps;
4455
4464
  declare function BankAccountOnboardingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: BankAccountOnboardingWidgetProps): React.JSX.Element;
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { RefreshingRootWidgetProvider as _ } from "./libs/tesouro-embedded-compo
14
14
  import { useDisclosuresAcceptanceSurface as v, useOwnWidgetConfig as y, useRefetchWidget as b, useWidgetConfig as x, useWidgetError as S, useWidgetInitStaleForToken as C, useWidgetLoading as w } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
15
15
  import { BankAccountsWidget as T } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
16
16
  import { CounterpartsWidget as E } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
17
- import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js";
17
+ import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js";
18
18
  import { CardDetailsWidget as O } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js";
19
19
  import { CreditCardsWidget as k } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js";
20
20
  import { DebitCardsWidget as A } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
@@ -947,6 +947,15 @@ interface BankAccountOnboardingWidgetInnerProps {
947
947
  * or other side effects without owning the open state.
948
948
  */
949
949
  onOpenChange?: (open: boolean) => void;
950
+ /**
951
+ * Renders the widget inline — filling the width/height of its host
952
+ * container — instead of in a modal dialog. `open`/`defaultOpen` play no
953
+ * part in whether the widget's content is shown in this mode; the widget
954
+ * always renders once mounted, and the host controls mounting instead.
955
+ * `onOpenChange` still fires for gestures like Cancel, so hosts can react
956
+ * to them (e.g. by unmounting the widget).
957
+ */
958
+ isFullScreenInline?: boolean;
950
959
  }
951
960
  type BankAccountOnboardingWidgetProps = WidgetProviderProps & BankAccountOnboardingWidgetInnerProps;
952
961
  declare function BankAccountOnboardingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: BankAccountOnboardingWidgetProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js";
1
+ import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js";
2
2
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
3
3
  export { e as BillPayWidget };
@@ -14,18 +14,18 @@ import { useAnalyticsTrack as c } from "../../../shared/feature/dist/lib/analyti
14
14
  import { WidgetProvider as l } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
15
15
  import { getStateOptions as u } from "../../../shared/util/dist/lib/usStates.js";
16
16
  import { extractApiErrorMessage as ee } from "../../../shared/util/dist/lib/apiErrors.js";
17
- import { useRefetchWidget as te, useWidgetConfig as d } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
18
- import { getNaicsOptions as f } from "../../../shared/feature/dist/lib/naicsCodeMap.js";
17
+ import { useRefetchWidget as d, useWidgetConfig as f } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
18
+ import { getNaicsOptions as p } from "../../../shared/feature/dist/lib/naicsCodeMap.js";
19
19
  import "../../../shared/feature/dist/index.js";
20
- import { bankAccountOnboardingTestIds as p } from "./index9.js";
21
- import { ADDITIONAL_OWNERS_LABELS_EN as ne } from "../../ui/dist/index4.js";
22
- import { interpolateBankName as m } from "../../ui/dist/index6.js";
23
- import { ResultStep as re } from "../../ui/dist/index11.js";
20
+ import { bankAccountOnboardingTestIds as m } from "./index9.js";
21
+ import { ADDITIONAL_OWNERS_LABELS_EN as te } from "../../ui/dist/index4.js";
22
+ import { interpolateBankName as h } from "../../ui/dist/index6.js";
23
+ import { ResultStep as ne } from "../../ui/dist/index11.js";
24
24
  import "../../ui/dist/index.js";
25
- import { BusinessDetailsStep as ie } from "./index10.js";
26
- import { PersonalDetailsStep as ae } from "./index12.js";
27
- import { AdditionalOwnersStep as oe } from "./index14.js";
28
- import { buildCreateApplicationBody as se, buildUpdateApplicationBody as h } from "./index15.js";
25
+ import { BusinessDetailsStep as re } from "./index10.js";
26
+ import { PersonalDetailsStep as ie } from "./index12.js";
27
+ import { AdditionalOwnersStep as ae } from "./index14.js";
28
+ import { buildCreateApplicationBody as oe, buildUpdateApplicationBody as se } from "./index15.js";
29
29
  import { OnboardingAnalyticsEvent as g, WIDGET_NAME as _ } from "./index16.js";
30
30
  import { DEFAULT_LABELS as v } from "./index17.js";
31
31
  import { ApplicationClientSecretProvider as y, useApplicationClientSecret as ce } from "../../data-access/dist/index2.js";
@@ -34,10 +34,10 @@ import { useUpdateApplication as ue } from "../../data-access/dist/index6.js";
34
34
  import { useSubmitApplication as de } from "../../data-access/dist/index7.js";
35
35
  import { usePollApplicationCompletion as fe } from "../../data-access/dist/index8.js";
36
36
  import "../../data-access/dist/index.js";
37
- import { useCallback as pe, useEffect as b, useMemo as x, useRef as me, useState as S } from "react";
38
- import { Fragment as he, jsx as C, jsxs as ge } from "react/jsx-runtime";
37
+ import { useCallback as b, useEffect as x, useMemo as S, useRef as pe, useState as C } from "react";
38
+ import { Fragment as me, jsx as w, jsxs as he } from "react/jsx-runtime";
39
39
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js
40
- var _e = {
40
+ var ge = {
41
41
  companyLegalName: "",
42
42
  companyDbaName: "",
43
43
  businessAddress: "",
@@ -51,7 +51,7 @@ var _e = {
51
51
  naicsCode: "",
52
52
  isAuthorized: null,
53
53
  isCheckboxChecked: !1
54
- }, ve = {
54
+ }, _e = {
55
55
  firstName: "",
56
56
  lastName: "",
57
57
  dateOfBirth: void 0,
@@ -65,7 +65,7 @@ var _e = {
65
65
  ownsOver25Percent: null,
66
66
  ownershipPercentage: null
67
67
  };
68
- function ye(e, t) {
68
+ function ve(e, t) {
69
69
  if (e === 0) return {
70
70
  title: t.businessReviewTitle,
71
71
  subtitle: t.businessReviewSubtitle
@@ -75,7 +75,7 @@ function ye(e, t) {
75
75
  subtitle: t.personalReviewSubtitle
76
76
  };
77
77
  let n = {
78
- ...ne,
78
+ ...te,
79
79
  ...t.additionalOwners
80
80
  };
81
81
  return {
@@ -83,12 +83,12 @@ function ye(e, t) {
83
83
  subtitle: n.subheading
84
84
  };
85
85
  }
86
- function w({ onEmbeddedOnboardingCompletedSuccessfully: l, onNavigateToDashboard: ne, labels: _, initialBusinessDetails: y, initialPersonalDetails: w, initialAdditionalOwners: T, bankLogoSrc: E, disclosureLinks: be, open: D, defaultOpen: O, onOpenChange: k }) {
87
- let A = c();
88
- b(() => {
89
- A(g.Mounted);
90
- }, [A]);
91
- let j = {
86
+ function ye({ onEmbeddedOnboardingCompletedSuccessfully: l, onNavigateToDashboard: te, labels: _, initialBusinessDetails: y, initialPersonalDetails: ye, initialAdditionalOwners: T, bankLogoSrc: E, disclosureLinks: be, open: D, defaultOpen: O, onOpenChange: k, isFullScreenInline: A = !1 }) {
87
+ let j = c();
88
+ x(() => {
89
+ j(g.Mounted);
90
+ }, [j]);
91
+ let M = {
92
92
  ...v,
93
93
  ..._,
94
94
  stepIndicator: {
@@ -102,43 +102,43 @@ function w({ onEmbeddedOnboardingCompletedSuccessfully: l, onNavigateToDashboard
102
102
  ...v.result,
103
103
  ..._?.result
104
104
  }
105
- }, M = d().initResponse, { termsHref: xe, privacyHref: Se, electronicCommunicationHref: Ce, patriotActHref: we } = be ?? {}, N = D === void 0, [Te, Ee] = S(() => O ?? !1), P = N ? Te : D, De = O ?? !1, F = pe((e) => {
106
- N && Ee(e), k?.(e);
107
- }, [k, N]), Oe = pe(() => {
105
+ }, N = f().initResponse, { termsHref: xe, privacyHref: Se, electronicCommunicationHref: Ce, patriotActHref: we } = be ?? {}, P = D === void 0, [Te, Ee] = C(() => O ?? !1), F = P ? Te : D, De = O ?? !1, I = b((e) => {
106
+ P && Ee(e), k?.(e);
107
+ }, [k, P]), Oe = b(() => {
108
108
  l();
109
- }, [l]), ke = te(), [I, L] = S(0), [Ae, je] = S(() => ({
110
- ..._e,
109
+ }, [l]), ke = d(), [L, R] = C(0), [Ae, je] = C(() => ({
110
+ ...ge,
111
111
  ...y
112
- })), [R, Me] = S(() => ({
113
- ...ve,
114
- ...w
115
- })), [Ne, Pe] = S(() => T ?? []), [z, Fe] = S(null), [B, Ie] = S(null), [V, Le] = S(null), [H, Re] = S(null), [ze, U] = S(null), [W, Be] = S(!1), [Ve, G] = S(null), He = le(), K = ue(), Ue = de(), We = fe(), { setClientSecret: Ge } = ce(), { data: Ke, refetch: qe } = i(), { mutateAsync: Je } = r(), q = o(), J = me(null);
116
- b(() => () => J.current?.abort(), []);
117
- let Ye = x(() => f(j.businessDetails.naicsTitles), [j.businessDetails.naicsTitles]), Xe = x(() => u(j.businessDetails.stateTitles), [j.businessDetails.stateTitles]), Ze = x(() => u(j.personalDetails.stateTitles), [j.personalDetails.stateTitles]), Qe = x(() => u(j.additionalOwners.stateTitles), [j.additionalOwners.stateTitles]), Y = W || Ve !== null, $e = M?.status === "ACTIVE" || M?.status === "INACTIVE", et = M?.status === "INVITED", X = !!M && !Y && ($e || et || q.isSuppressed), Z = X ? $e ? a.UserAlreadyOnboarded : et ? a.UserInvitedToOrganization : q.reason : null;
118
- if (b(() => {
119
- !X || !Z || (A(g.Suppressed, { reason: Z }), console.info(`[onboarding] not shown: ${Z}`));
112
+ })), [z, Me] = C(() => ({
113
+ ..._e,
114
+ ...ye
115
+ })), [Ne, Pe] = C(() => T ?? []), [B, Fe] = C(null), [V, Ie] = C(null), [H, Le] = C(null), [U, Re] = C(null), [ze, W] = C(null), [G, Be] = C(!1), [Ve, K] = C(null), He = le(), q = ue(), Ue = de(), We = fe(), { setClientSecret: Ge } = ce(), { data: Ke, refetch: qe } = i(), { mutateAsync: Je } = r(), J = o(), Y = pe(null);
116
+ x(() => () => Y.current?.abort(), []);
117
+ let Ye = S(() => p(M.businessDetails.naicsTitles), [M.businessDetails.naicsTitles]), Xe = S(() => u(M.businessDetails.stateTitles), [M.businessDetails.stateTitles]), Ze = S(() => u(M.personalDetails.stateTitles), [M.personalDetails.stateTitles]), Qe = S(() => u(M.additionalOwners.stateTitles), [M.additionalOwners.stateTitles]), X = G || Ve !== null, $e = N?.status === "ACTIVE" || N?.status === "INACTIVE", et = N?.status === "INVITED", Z = !!N && !X && ($e || et || J.isSuppressed), Q = Z ? $e ? a.UserAlreadyOnboarded : et ? a.UserInvitedToOrganization : J.reason : null;
118
+ if (x(() => {
119
+ !Z || !Q || (j(g.Suppressed, { reason: Q }), console.info(`[onboarding] not shown: ${Q}`));
120
120
  }, [
121
- X,
122
121
  Z,
123
- A
124
- ]), !M || !Y && (X || !q.isResolved)) return null;
125
- let tt = z?.companyStructure === "SOLE_PROPRIETORSHIP", nt = [
126
- j.stepIndicator.business,
127
- j.stepIndicator.personal,
128
- j.stepIndicator.ownership
129
- ], rt = I === 0 ? z : I === 1 ? B : I === 2 ? V : null, Q = He.isPending || K.isPending || Ue.isPending || W, it = () => {
130
- U(null), L((e) => e === 0 ? 0 : e - 1);
131
- }, $ = () => {
132
- F(!1);
133
- }, at = async (e) => {
134
- Be(!0), F(!0);
122
+ Q,
123
+ j
124
+ ]), !N || !X && (Z || !J.isResolved)) return null;
125
+ let tt = B?.companyStructure === "SOLE_PROPRIETORSHIP", nt = [
126
+ M.stepIndicator.business,
127
+ M.stepIndicator.personal,
128
+ M.stepIndicator.ownership
129
+ ], rt = L === 0 ? B : L === 1 ? V : L === 2 ? H : null, $ = He.isPending || q.isPending || Ue.isPending || G, it = () => {
130
+ W(null), R((e) => e === 0 ? 0 : e - 1);
131
+ }, at = () => {
132
+ I(!1);
133
+ }, ot = async (e) => {
134
+ Be(!0), I(!0);
135
135
  let t = new AbortController();
136
- J.current = t;
136
+ Y.current = t;
137
137
  let n = !1;
138
138
  try {
139
139
  let r = await Ue.mutateAsync({ path: { id: e } });
140
140
  if (t.signal.aborted) return;
141
- if (!r.id) throw Error(j.submitFailedError);
141
+ if (!r.id) throw Error(M.submitFailedError);
142
142
  if (n = !0, (await We(e, { signal: t.signal })).status === "complete") {
143
143
  let e = Ke;
144
144
  if (e === void 0 && (e = (await qe()).data), t.signal.aborted) return;
@@ -146,155 +146,159 @@ function w({ onEmbeddedOnboardingCompletedSuccessfully: l, onNavigateToDashboard
146
146
  await Je({ displayedVersion: e.version ?? null });
147
147
  } catch {}
148
148
  if (t.signal.aborted) return;
149
- G("success"), ke(), Oe();
150
- } else G("pending");
149
+ K("success"), ke(), Oe();
150
+ } else K("pending");
151
151
  } catch (e) {
152
152
  if (e instanceof DOMException && e.name === "AbortError") return;
153
153
  if (!n) throw e;
154
- G("pending");
154
+ K("pending");
155
155
  } finally {
156
- J.current = null, Be(!1);
156
+ Y.current = null, Be(!1);
157
157
  }
158
- }, ot = async () => {
159
- U(null);
158
+ }, st = async () => {
159
+ W(null);
160
160
  try {
161
- if (I === 0) {
162
- if (!z) return;
163
- let e = H;
161
+ if (L === 0) {
162
+ if (!B) return;
163
+ let e = U;
164
164
  if (!e) {
165
- let t = await He.mutateAsync({ body: se(z) });
165
+ let t = await He.mutateAsync({ body: oe(B) });
166
166
  e = t.id, Re(e), t.clientSecret && Ge(t.clientSecret);
167
167
  }
168
- L(1);
169
- } else if (I === 1) {
170
- if (!B || !z || !H) return;
171
- await K.mutateAsync({
172
- path: { id: H },
173
- body: h({
174
- businessDetails: z,
175
- applicant: B
168
+ R(1);
169
+ } else if (L === 1) {
170
+ if (!V || !B || !U) return;
171
+ await q.mutateAsync({
172
+ path: { id: U },
173
+ body: se({
174
+ businessDetails: B,
175
+ applicant: V
176
176
  })
177
- }), L(2);
178
- } else if (I === 2) {
179
- if (!V || !H) return;
180
- await K.mutateAsync({
181
- path: { id: H },
182
- body: h({ businessOwners: V })
183
- }), await at(H);
177
+ }), R(2);
178
+ } else if (L === 2) {
179
+ if (!H || !U) return;
180
+ await q.mutateAsync({
181
+ path: { id: U },
182
+ body: se({ businessOwners: H })
183
+ }), await ot(U);
184
184
  }
185
185
  } catch (e) {
186
- let t = ee(e) ?? (e instanceof Error ? e.message : void 0) ?? j.genericRetryError;
187
- U(t);
186
+ let t = ee(e) ?? (e instanceof Error ? e.message : void 0) ?? M.genericRetryError;
187
+ W(t);
188
188
  }
189
- }, st = ye(Math.min(I, 2), j), ct = M.bankName?.trim() || j.fallbackBankName, lt = m(j.shellFdicDisclaimer, ct);
190
- if (Y) {
191
- let r = z?.companyLegalName ?? "", i = M.bankName?.trim() || j.fallbackBankName, a = Ve ?? "pending", o = a === "success", s = {
189
+ }, ct = ve(Math.min(L, 2), M), lt = N.bankName?.trim() || M.fallbackBankName, ut = h(M.shellFdicDisclaimer, lt);
190
+ if (X) {
191
+ let r = B?.companyLegalName ?? "", i = N.bankName?.trim() || M.fallbackBankName, a = Ve ?? "pending", o = a === "success", s = {
192
192
  ...v.result,
193
- ...j.result
194
- };
195
- return /* @__PURE__ */ C(e, {
196
- open: P,
197
- onOpenChange: F,
198
- children: /* @__PURE__ */ ge(t, {
193
+ ...M.result
194
+ }, c = /* @__PURE__ */ w(ne, {
195
+ testIds: {
196
+ processing: m.resultProcessing,
197
+ dashboardButton: m.resultDashboardButton
198
+ },
199
+ status: a,
200
+ isLoading: G,
201
+ loadingMessage: s.loadingMessage,
202
+ headingLine1: o ? s.successHeadingLine1 : s.pendingHeadingLine1,
203
+ headingLine2: `${r}!`,
204
+ body: o ? s.successBody : s.pendingBody,
205
+ followUpEmail: V?.workEmail ?? "",
206
+ emailBoxLead: s.pendingEmailBoxLead,
207
+ navigateToDashboardLabel: s.navigateToDashboard,
208
+ bankLogoSrc: E,
209
+ bankLogoAlt: h(s.bankLogoAlt, i),
210
+ fdicDisclaimer: h(s.fdicDisclaimer, i),
211
+ onNavigateToDashboard: te
212
+ });
213
+ return A ? /* @__PURE__ */ w("div", {
214
+ 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",
215
+ children: c
216
+ }) : /* @__PURE__ */ w(e, {
217
+ open: F,
218
+ onOpenChange: I,
219
+ children: /* @__PURE__ */ he(t, {
199
220
  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",
200
- children: [/* @__PURE__ */ C(n, {
221
+ children: [/* @__PURE__ */ w(n, {
201
222
  className: "ttw:sr-only",
202
- children: j.modalTitle
203
- }), /* @__PURE__ */ C(re, {
204
- testIds: {
205
- processing: p.resultProcessing,
206
- dashboardButton: p.resultDashboardButton
207
- },
208
- status: a,
209
- isLoading: W,
210
- loadingMessage: s.loadingMessage,
211
- headingLine1: o ? s.successHeadingLine1 : s.pendingHeadingLine1,
212
- headingLine2: `${r}!`,
213
- body: o ? s.successBody : s.pendingBody,
214
- followUpEmail: B?.workEmail ?? "",
215
- emailBoxLead: s.pendingEmailBoxLead,
216
- navigateToDashboardLabel: s.navigateToDashboard,
217
- bankLogoSrc: E,
218
- bankLogoAlt: m(s.bankLogoAlt, i),
219
- fdicDisclaimer: m(s.fdicDisclaimer, i),
220
- onNavigateToDashboard: ne
221
- })]
223
+ children: M.modalTitle
224
+ }), c]
222
225
  })
223
226
  });
224
227
  }
225
- let ut = I === 2 ? j.submit : j.next, dt = rt === null || Q;
226
- return /* @__PURE__ */ C(he, { children: /* @__PURE__ */ ge(s, {
227
- open: P,
228
+ let dt = L === 2 ? M.submit : M.next, ft = rt === null || $;
229
+ return /* @__PURE__ */ w(me, { children: /* @__PURE__ */ he(s, {
230
+ open: F,
228
231
  defaultOpen: De,
229
- onOpenChange: F,
230
- title: st.title,
231
- subtitle: st.subtitle,
232
+ onOpenChange: I,
233
+ isFullScreenInline: A,
234
+ title: ct.title,
235
+ subtitle: ct.subtitle,
232
236
  stepLabels: nt,
233
- activeStep: I,
234
- disclaimerText: lt,
235
- onBack: I === 0 ? $ : it,
236
- onCancel: I > 0 ? $ : void 0,
237
- onNext: ot,
237
+ activeStep: L,
238
+ disclaimerText: ut,
239
+ onBack: L === 0 ? at : it,
240
+ onCancel: L > 0 ? at : void 0,
241
+ onNext: st,
238
242
  showDismissButton: !1,
239
- isNextDisabled: dt,
240
- isNextLoading: Q,
241
- nextLabel: ut,
243
+ isNextDisabled: ft,
244
+ isNextLoading: $,
245
+ nextLabel: dt,
242
246
  nextIcon: null,
243
247
  errorMessage: ze,
244
248
  labels: {
245
- backButton: I === 0 ? j.cancel : j.back,
246
- cancelButton: j.cancel
249
+ backButton: L === 0 ? M.cancel : M.back,
250
+ cancelButton: M.cancel
247
251
  },
248
252
  testIds: {
249
- root: p.shell,
250
- dismiss: p.shellDismiss,
251
- back: p.shellBack,
252
- cancel: p.shellCancel,
253
- next: p.shellNext,
253
+ root: m.shell,
254
+ dismiss: m.shellDismiss,
255
+ back: m.shellBack,
256
+ cancel: m.shellCancel,
257
+ next: m.shellNext,
254
258
  scrollRegion: {
255
- root: p.shellScrollRegion,
256
- fade: p.shellScrollFade,
257
- hint: p.shellScrollHint
259
+ root: m.shellScrollRegion,
260
+ fade: m.shellScrollFade,
261
+ hint: m.shellScrollHint
258
262
  }
259
263
  },
260
264
  children: [
261
- I === 0 ? /* @__PURE__ */ C(ie, {
265
+ L === 0 ? /* @__PURE__ */ w(re, {
262
266
  value: Ae,
263
267
  onValueChange: je,
264
268
  onSnapshotChange: Fe,
265
269
  naicsOptions: Ye,
266
270
  stateOptions: Xe,
267
- isSubmitting: Q,
268
- labels: j.businessDetails,
269
- bankName: ct,
271
+ isSubmitting: $,
272
+ labels: M.businessDetails,
273
+ bankName: lt,
270
274
  termsHref: xe,
271
275
  privacyHref: Se,
272
276
  electronicCommunicationHref: Ce,
273
277
  patriotActHref: we
274
278
  }, "business") : null,
275
- I === 1 ? /* @__PURE__ */ C(ae, {
276
- value: R,
279
+ L === 1 ? /* @__PURE__ */ w(ie, {
280
+ value: z,
277
281
  onValueChange: Me,
278
282
  onSnapshotChange: Ie,
279
283
  stateOptions: Ze,
280
- isSubmitting: Q,
281
- labels: j.personalDetails
284
+ isSubmitting: $,
285
+ labels: M.personalDetails
282
286
  }, "personal") : null,
283
- I === 2 ? /* @__PURE__ */ C(oe, {
287
+ L === 2 ? /* @__PURE__ */ w(ae, {
284
288
  owners: Ne,
285
289
  onOwnersChange: Pe,
286
- primaryOwnerName: `${R.firstName} ${R.lastName}`.trim(),
287
- primaryOwnerPercentage: tt ? 100 : B?.ownsOver25Percent === !0 ? B.ownershipPercentage ?? 0 : 0,
290
+ primaryOwnerName: `${z.firstName} ${z.lastName}`.trim(),
291
+ primaryOwnerPercentage: tt ? 100 : V?.ownsOver25Percent === !0 ? V.ownershipPercentage ?? 0 : 0,
288
292
  stateOptions: Qe,
289
293
  onSnapshotChange: Le,
290
- isSubmitting: Q,
291
- labels: j.additionalOwners
294
+ isSubmitting: $,
295
+ labels: M.additionalOwners
292
296
  }) : null
293
297
  ]
294
298
  }) });
295
299
  }
296
- function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: u, analytics: ee, disclosuresAcceptance: te, providerLabels: d, ...f }) {
297
- return /* @__PURE__ */ C(l, {
300
+ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: u, analytics: ee, disclosuresAcceptance: d, providerLabels: f, ...p }) {
301
+ return /* @__PURE__ */ w(l, {
298
302
  baseUrl: e,
299
303
  widgetToken: t,
300
304
  organizationId: n,
@@ -306,15 +310,15 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
306
310
  errorFallback: c,
307
311
  onError: u,
308
312
  analytics: ee,
309
- disclosuresAcceptance: te,
310
- providerLabels: d,
313
+ disclosuresAcceptance: d,
314
+ providerLabels: f,
311
315
  widgetName: _,
312
- children: /* @__PURE__ */ C(E, { ...f })
316
+ children: /* @__PURE__ */ w(E, { ...p })
313
317
  });
314
318
  }
315
319
  function E(e) {
316
- let { initResponse: t } = d(), n = t?.userId ?? null, [r, i] = S(n), [a, o] = S(0);
317
- return n !== r && (i(n), r !== null && n !== null && o((e) => e + 1)), /* @__PURE__ */ C(y, { children: /* @__PURE__ */ C(w, { ...e }, a) }, a);
320
+ let { initResponse: t } = f(), n = t?.userId ?? null, [r, i] = C(n), [a, o] = C(0);
321
+ return n !== r && (i(n), r !== null && n !== null && o((e) => e + 1)), /* @__PURE__ */ w(y, { children: /* @__PURE__ */ w(ye, { ...e }, a) }, a);
318
322
  }
319
323
  //#endregion
320
324
  export { T as BankAccountOnboardingWidget, T as default };
@@ -9,8 +9,8 @@ import { useAllPayableLineItemsQuery as u, useReplacePayableLineItemsMutation as
9
9
  import { usePayablePaymentRecordsQuery as f } from "./index11.js";
10
10
  import { useSchedulePaymentMutation as p } from "./index12.js";
11
11
  import { useAttachPayableFileMutation as m, useCancelPayableMutation as h, useCancelScheduledPaymentMutation as g, useCreatePayableMutation as _, useDeletePayableFileMutation as v, useDeletePayableMutation as y, useForceApprovePayableMutation as b, useForceRejectPayableMutation as x, useMarkPayableAsPaidMutation as S, useReopenPayableMutation as C, useSubmitPayableForApprovalMutation as w, useUpdatePayableMutation as T, useUploadPayableFromFileMutation as E, useValidatePayableMutation as D } from "./index13.js";
12
- import { useUpdatePayableCounterpartBankAccountMutation as O } from "./index14.js";
13
- import { usePayableOcrQueries as k } from "./index15.js";
14
- import { useAllSuspectedDuplicatePayablesQuery as A, usePayableQuery as j, usePayablesQuery as M, usePayablesTotalCountQuery as N } from "./index17.js";
15
- import { usePayableSuggestionsQuery as P } from "./index18.js";
16
- export { n as DuplicateVerdict, r as hasSuspectedPayableDuplicate, t as isLiveScheduledPaymentRecord, i as suspectedPayableDuplicates, u as useAllPayableLineItemsQuery, A as useAllSuspectedDuplicatePayablesQuery, a as useApplyDuplicateVerdictsMutation, o as useApprovePayableApprovalRequestMutation, m as useAttachPayableFileMutation, h as useCancelPayableMutation, g as useCancelScheduledPaymentMutation, _ as useCreatePayableMutation, v as useDeletePayableFileMutation, y as useDeletePayableMutation, e as useEmbedApi, b as useForceApprovePayableMutation, x as useForceRejectPayableMutation, S as useMarkPayableAsPaidMutation, s as usePayableApprovalRequestsQuery, l as usePayableHistoryQuery, k as usePayableOcrQueries, f as usePayablePaymentRecordsQuery, j as usePayableQuery, P as usePayableSuggestionsQuery, M as usePayablesQuery, N as usePayablesTotalCountQuery, c as useRejectPayableApprovalRequestMutation, C as useReopenPayableMutation, d as useReplacePayableLineItemsMutation, p as useSchedulePaymentMutation, w as useSubmitPayableForApprovalMutation, O as useUpdatePayableCounterpartBankAccountMutation, T as useUpdatePayableMutation, E as useUploadPayableFromFileMutation, D as useValidatePayableMutation };
12
+ import "./index14.js";
13
+ import { usePayableOcrQueries as O } from "./index15.js";
14
+ import { useAllSuspectedDuplicatePayablesQuery as k, usePayableQuery as A, usePayablesQuery as j, usePayablesTotalCountQuery as M } from "./index17.js";
15
+ import { usePayableSuggestionsQuery as N } from "./index18.js";
16
+ export { n as DuplicateVerdict, r as hasSuspectedPayableDuplicate, t as isLiveScheduledPaymentRecord, i as suspectedPayableDuplicates, u as useAllPayableLineItemsQuery, k as useAllSuspectedDuplicatePayablesQuery, a as useApplyDuplicateVerdictsMutation, o as useApprovePayableApprovalRequestMutation, m as useAttachPayableFileMutation, h as useCancelPayableMutation, g as useCancelScheduledPaymentMutation, _ as useCreatePayableMutation, v as useDeletePayableFileMutation, y as useDeletePayableMutation, e as useEmbedApi, b as useForceApprovePayableMutation, x as useForceRejectPayableMutation, S as useMarkPayableAsPaidMutation, s as usePayableApprovalRequestsQuery, l as usePayableHistoryQuery, O as usePayableOcrQueries, f as usePayablePaymentRecordsQuery, A as usePayableQuery, N as usePayableSuggestionsQuery, j as usePayablesQuery, M as usePayablesTotalCountQuery, c as useRejectPayableApprovalRequestMutation, C as useReopenPayableMutation, d as useReplacePayableLineItemsMutation, p as useSchedulePaymentMutation, w as useSubmitPayableForApprovalMutation, T as useUpdatePayableMutation, E as useUploadPayableFromFileMutation, D as useValidatePayableMutation };