@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
@@ -1547,7 +1547,39 @@ var n = (e) => (e.client ?? t).post({
1547
1547
  "Content-Type": "application/json",
1548
1548
  ...e.headers
1549
1549
  }
1550
- }), Bt = (e) => (e.client ?? t).get({
1550
+ }), Bt = (e) => (e.client ?? t).post({
1551
+ security: [{
1552
+ key: "HTTPBearer",
1553
+ scheme: "bearer",
1554
+ type: "http"
1555
+ }],
1556
+ url: "/finops/v1/recurrences",
1557
+ ...e,
1558
+ headers: {
1559
+ "Content-Type": "application/json",
1560
+ ...e.headers
1561
+ }
1562
+ }), Vt = (e) => (e.client ?? t).get({
1563
+ security: [{
1564
+ key: "HTTPBearer",
1565
+ scheme: "bearer",
1566
+ type: "http"
1567
+ }],
1568
+ url: "/finops/v1/recurrences/{recurrence_id}",
1569
+ ...e
1570
+ }), Ht = (e) => (e.client ?? t).patch({
1571
+ security: [{
1572
+ key: "HTTPBearer",
1573
+ scheme: "bearer",
1574
+ type: "http"
1575
+ }],
1576
+ url: "/finops/v1/recurrences/{recurrence_id}",
1577
+ ...e,
1578
+ headers: {
1579
+ "Content-Type": "application/json",
1580
+ ...e.headers
1581
+ }
1582
+ }), Ut = (e) => (e.client ?? t).get({
1551
1583
  security: [{
1552
1584
  key: "HTTPBearer",
1553
1585
  scheme: "bearer",
@@ -1555,7 +1587,7 @@ var n = (e) => (e.client ?? t).post({
1555
1587
  }],
1556
1588
  url: "/finops/v1/transactions",
1557
1589
  ...e
1558
- }), Vt = (e) => (e.client ?? t).get({
1590
+ }), Wt = (e) => (e.client ?? t).get({
1559
1591
  security: [{
1560
1592
  key: "HTTPBearer",
1561
1593
  scheme: "bearer",
@@ -1563,7 +1595,7 @@ var n = (e) => (e.client ?? t).post({
1563
1595
  }],
1564
1596
  url: "/finops/v1/transactions/validations",
1565
1597
  ...e
1566
- }), Ht = (e) => (e.client ?? t).put({
1598
+ }), Gt = (e) => (e.client ?? t).put({
1567
1599
  security: [{
1568
1600
  key: "HTTPBearer",
1569
1601
  scheme: "bearer",
@@ -1575,7 +1607,7 @@ var n = (e) => (e.client ?? t).post({
1575
1607
  "Content-Type": "application/json",
1576
1608
  ...e.headers
1577
1609
  }
1578
- }), Ut = (e) => (e.client ?? t).get({
1610
+ }), Kt = (e) => (e.client ?? t).get({
1579
1611
  security: [{
1580
1612
  key: "HTTPBearer",
1581
1613
  scheme: "bearer",
@@ -1583,7 +1615,7 @@ var n = (e) => (e.client ?? t).post({
1583
1615
  }],
1584
1616
  url: "/finops/v1/transactions/{transaction_id}",
1585
1617
  ...e
1586
- }), Wt = (e) => (e.client ?? t).patch({
1618
+ }), qt = (e) => (e.client ?? t).patch({
1587
1619
  security: [{
1588
1620
  key: "HTTPBearer",
1589
1621
  scheme: "bearer",
@@ -1595,7 +1627,7 @@ var n = (e) => (e.client ?? t).post({
1595
1627
  "Content-Type": "application/json",
1596
1628
  ...e.headers
1597
1629
  }
1598
- }), Gt = (e) => (e.client ?? t).post({
1630
+ }), Jt = (e) => (e.client ?? t).post({
1599
1631
  security: [{
1600
1632
  key: "HTTPBearer",
1601
1633
  scheme: "bearer",
@@ -1603,7 +1635,7 @@ var n = (e) => (e.client ?? t).post({
1603
1635
  }],
1604
1636
  url: "/finops/v1/transactions/{transaction_id}/approve",
1605
1637
  ...e
1606
- }), Kt = (e) => (e.client ?? t).get({
1638
+ }), Yt = (e) => (e.client ?? t).get({
1607
1639
  security: [{
1608
1640
  key: "HTTPBearer",
1609
1641
  scheme: "bearer",
@@ -1611,7 +1643,7 @@ var n = (e) => (e.client ?? t).post({
1611
1643
  }],
1612
1644
  url: "/finops/v1/transactions/{transaction_id}/expense_history",
1613
1645
  ...e
1614
- }), qt = (e) => (e.client ?? t).post({
1646
+ }), Xt = (e) => (e.client ?? t).post({
1615
1647
  security: [{
1616
1648
  key: "HTTPBearer",
1617
1649
  scheme: "bearer",
@@ -1623,7 +1655,7 @@ var n = (e) => (e.client ?? t).post({
1623
1655
  "Content-Type": "application/json",
1624
1656
  ...e.headers
1625
1657
  }
1626
- }), Jt = (e) => (e.client ?? t).post({
1658
+ }), Zt = (e) => (e.client ?? t).post({
1627
1659
  security: [{
1628
1660
  key: "HTTPBearer",
1629
1661
  scheme: "bearer",
@@ -1631,7 +1663,7 @@ var n = (e) => (e.client ?? t).post({
1631
1663
  }],
1632
1664
  url: "/finops/v1/transactions/{transaction_id}/reopen",
1633
1665
  ...e
1634
- }), Yt = (e) => (e.client ?? t).post({
1666
+ }), Qt = (e) => (e.client ?? t).post({
1635
1667
  security: [{
1636
1668
  key: "HTTPBearer",
1637
1669
  scheme: "bearer",
@@ -1643,7 +1675,7 @@ var n = (e) => (e.client ?? t).post({
1643
1675
  "Content-Type": "application/json",
1644
1676
  ...e.headers
1645
1677
  }
1646
- }), Xt = (e) => (e?.client ?? t).get({
1678
+ }), $t = (e) => (e?.client ?? t).get({
1647
1679
  security: [{
1648
1680
  key: "APPToken",
1649
1681
  scheme: "bearer",
@@ -1655,7 +1687,7 @@ var n = (e) => (e.client ?? t).post({
1655
1687
  }],
1656
1688
  url: "/identity/v1/departments",
1657
1689
  ...e
1658
- }), Zt = (e) => (e.client ?? t).post({
1690
+ }), en = (e) => (e.client ?? t).post({
1659
1691
  security: [{
1660
1692
  key: "APPToken",
1661
1693
  scheme: "bearer",
@@ -1671,7 +1703,7 @@ var n = (e) => (e.client ?? t).post({
1671
1703
  "Content-Type": "application/json",
1672
1704
  ...e.headers
1673
1705
  }
1674
- }), Qt = (e) => (e.client ?? t).delete({
1706
+ }), tn = (e) => (e.client ?? t).delete({
1675
1707
  security: [{
1676
1708
  key: "APPToken",
1677
1709
  scheme: "bearer",
@@ -1683,7 +1715,7 @@ var n = (e) => (e.client ?? t).post({
1683
1715
  }],
1684
1716
  url: "/identity/v1/departments/{departmentId}",
1685
1717
  ...e
1686
- }), $t = (e) => (e.client ?? t).get({
1718
+ }), nn = (e) => (e.client ?? t).get({
1687
1719
  security: [{
1688
1720
  key: "APPToken",
1689
1721
  scheme: "bearer",
@@ -1695,7 +1727,7 @@ var n = (e) => (e.client ?? t).post({
1695
1727
  }],
1696
1728
  url: "/identity/v1/departments/{departmentId}",
1697
1729
  ...e
1698
- }), en = (e) => (e.client ?? t).put({
1730
+ }), rn = (e) => (e.client ?? t).put({
1699
1731
  security: [{
1700
1732
  key: "APPToken",
1701
1733
  scheme: "bearer",
@@ -1711,7 +1743,7 @@ var n = (e) => (e.client ?? t).post({
1711
1743
  "Content-Type": "application/json",
1712
1744
  ...e.headers
1713
1745
  }
1714
- }), tn = (e) => (e.client ?? t).post({
1746
+ }), an = (e) => (e.client ?? t).post({
1715
1747
  security: [{
1716
1748
  key: "APPToken",
1717
1749
  scheme: "bearer",
@@ -1727,7 +1759,7 @@ var n = (e) => (e.client ?? t).post({
1727
1759
  "Content-Type": "application/json",
1728
1760
  ...e.headers
1729
1761
  }
1730
- }), nn = (e) => (e?.client ?? t).get({
1762
+ }), on = (e) => (e?.client ?? t).get({
1731
1763
  security: [{
1732
1764
  key: "HTTPBearer",
1733
1765
  scheme: "bearer",
@@ -1735,7 +1767,7 @@ var n = (e) => (e.client ?? t).post({
1735
1767
  }],
1736
1768
  url: "/identity/v1/disclosures",
1737
1769
  ...e
1738
- }), rn = (e) => (e?.client ?? t).get({
1770
+ }), sn = (e) => (e?.client ?? t).get({
1739
1771
  security: [{
1740
1772
  key: "APPToken",
1741
1773
  scheme: "bearer",
@@ -1747,7 +1779,7 @@ var n = (e) => (e.client ?? t).post({
1747
1779
  }],
1748
1780
  url: "/identity/v1/locations",
1749
1781
  ...e
1750
- }), an = (e) => (e.client ?? t).post({
1782
+ }), cn = (e) => (e.client ?? t).post({
1751
1783
  security: [{
1752
1784
  key: "APPToken",
1753
1785
  scheme: "bearer",
@@ -1763,7 +1795,7 @@ var n = (e) => (e.client ?? t).post({
1763
1795
  "Content-Type": "application/json",
1764
1796
  ...e.headers
1765
1797
  }
1766
- }), on = (e) => (e.client ?? t).delete({
1798
+ }), ln = (e) => (e.client ?? t).delete({
1767
1799
  security: [{
1768
1800
  key: "APPToken",
1769
1801
  scheme: "bearer",
@@ -1775,7 +1807,7 @@ var n = (e) => (e.client ?? t).post({
1775
1807
  }],
1776
1808
  url: "/identity/v1/locations/{locationId}",
1777
1809
  ...e
1778
- }), sn = (e) => (e.client ?? t).get({
1810
+ }), un = (e) => (e.client ?? t).get({
1779
1811
  security: [{
1780
1812
  key: "APPToken",
1781
1813
  scheme: "bearer",
@@ -1787,7 +1819,7 @@ var n = (e) => (e.client ?? t).post({
1787
1819
  }],
1788
1820
  url: "/identity/v1/locations/{locationId}",
1789
1821
  ...e
1790
- }), cn = (e) => (e.client ?? t).put({
1822
+ }), dn = (e) => (e.client ?? t).put({
1791
1823
  security: [{
1792
1824
  key: "APPToken",
1793
1825
  scheme: "bearer",
@@ -1803,7 +1835,7 @@ var n = (e) => (e.client ?? t).post({
1803
1835
  "Content-Type": "application/json",
1804
1836
  ...e.headers
1805
1837
  }
1806
- }), ln = (e) => (e.client ?? t).post({
1838
+ }), fn = (e) => (e.client ?? t).post({
1807
1839
  security: [{
1808
1840
  key: "APPToken",
1809
1841
  scheme: "bearer",
@@ -1819,7 +1851,7 @@ var n = (e) => (e.client ?? t).post({
1819
1851
  "Content-Type": "application/json",
1820
1852
  ...e.headers
1821
1853
  }
1822
- }), un = (e) => (e.client ?? t).get({
1854
+ }), pn = (e) => (e.client ?? t).get({
1823
1855
  security: [{
1824
1856
  key: "APPToken",
1825
1857
  scheme: "bearer",
@@ -1831,7 +1863,7 @@ var n = (e) => (e.client ?? t).post({
1831
1863
  }],
1832
1864
  url: "/identity/v1/organizations/{organizationId}",
1833
1865
  ...e
1834
- }), dn = (e) => (e?.client ?? t).get({
1866
+ }), mn = (e) => (e?.client ?? t).get({
1835
1867
  security: [{
1836
1868
  key: "APPToken",
1837
1869
  scheme: "bearer",
@@ -1843,7 +1875,7 @@ var n = (e) => (e.client ?? t).post({
1843
1875
  }],
1844
1876
  url: "/identity/v1/roles",
1845
1877
  ...e
1846
- }), fn = (e) => (e.client ?? t).post({
1878
+ }), hn = (e) => (e.client ?? t).post({
1847
1879
  security: [{
1848
1880
  key: "APPToken",
1849
1881
  scheme: "bearer",
@@ -1859,7 +1891,7 @@ var n = (e) => (e.client ?? t).post({
1859
1891
  "Content-Type": "application/json",
1860
1892
  ...e.headers
1861
1893
  }
1862
- }), pn = (e) => (e.client ?? t).get({
1894
+ }), gn = (e) => (e.client ?? t).get({
1863
1895
  security: [{
1864
1896
  key: "APPToken",
1865
1897
  scheme: "bearer",
@@ -1871,7 +1903,7 @@ var n = (e) => (e.client ?? t).post({
1871
1903
  }],
1872
1904
  url: "/identity/v1/roles/{roleId}/permissions",
1873
1905
  ...e
1874
- }), mn = (e) => (e.client ?? t).get({
1906
+ }), _n = (e) => (e.client ?? t).get({
1875
1907
  security: [{
1876
1908
  key: "HTTPBearer",
1877
1909
  scheme: "bearer",
@@ -1879,7 +1911,7 @@ var n = (e) => (e.client ?? t).post({
1879
1911
  }],
1880
1912
  url: "/identity/v1/user-data/{key}",
1881
1913
  ...e
1882
- }), hn = (e) => (e.client ?? t).put({
1914
+ }), vn = (e) => (e.client ?? t).put({
1883
1915
  security: [{
1884
1916
  key: "HTTPBearer",
1885
1917
  scheme: "bearer",
@@ -1891,7 +1923,7 @@ var n = (e) => (e.client ?? t).post({
1891
1923
  "Content-Type": "application/json",
1892
1924
  ...e.headers
1893
1925
  }
1894
- }), gn = (e) => (e?.client ?? t).get({
1926
+ }), yn = (e) => (e?.client ?? t).get({
1895
1927
  security: [{
1896
1928
  key: "APPToken",
1897
1929
  scheme: "bearer",
@@ -1903,7 +1935,7 @@ var n = (e) => (e.client ?? t).post({
1903
1935
  }],
1904
1936
  url: "/identity/v1/users",
1905
1937
  ...e
1906
- }), _n = (e) => (e.client ?? t).post({
1938
+ }), bn = (e) => (e.client ?? t).post({
1907
1939
  security: [{
1908
1940
  key: "APPToken",
1909
1941
  scheme: "bearer",
@@ -1919,7 +1951,7 @@ var n = (e) => (e.client ?? t).post({
1919
1951
  "Content-Type": "application/json",
1920
1952
  ...e.headers
1921
1953
  }
1922
- }), vn = (e) => (e.client ?? t).patch({
1954
+ }), xn = (e) => (e.client ?? t).patch({
1923
1955
  security: [{
1924
1956
  key: "APPToken",
1925
1957
  scheme: "bearer",
@@ -1935,7 +1967,7 @@ var n = (e) => (e.client ?? t).post({
1935
1967
  "Content-Type": "application/json",
1936
1968
  ...e.headers
1937
1969
  }
1938
- }), yn = (e) => (e.client ?? t).post({
1970
+ }), Sn = (e) => (e.client ?? t).post({
1939
1971
  security: [{
1940
1972
  key: "APPToken",
1941
1973
  scheme: "bearer",
@@ -1949,4 +1981,4 @@ var n = (e) => (e.client ?? t).post({
1949
1981
  ...e
1950
1982
  });
1951
1983
  //#endregion
1952
- export { O as activateCreditCard, P as activateDebitCard, tn as bulkUpdateDepartmentMembers, ln as bulkUpdateLocationMembers, fn as bulkUpdateRoleMembers, z as connectExternalBankAccount, K as createAchMoneyMovement, s as createApplication, p as createBankAccount, q as createBookTransfer, b as createCheckDeposit, A as createDebitCard, Zt as createDepartment, an as createLocation, _n as createUser, o as createVelocityControl, Qt as deactivateDepartment, on as deactivateLocation, ee as deleteApprovalPoliciesId, c as deleteBankAccountApplication, le as deleteCounterpartsId, _e as deleteCounterpartsIdBankAccountsId, xe as deleteEntitiesIdLogo, ke as deleteFilesId, Me as deleteLedgerAccountsId, Le as deleteMeasureUnitsId, We as deletePayablesId, Qe as deletePayablesIdFile, gt as deleteProductsId, xt as deleteReceiptsId, Tt as deleteReceivablesId, yn as disableUser, w as downloadBankAccountTransactions, J as getAnalyticsPayables, Y as getAnalyticsReceipts, X as getAnalyticsReceivables, Z as getAnalyticsTransactions, r as getApiWidgetGatewayInit, i as getApplicationStatus, Q as getApprovalPolicies, ne as getApprovalRequests, g as getBankAccount, v as getBankAccountAccess, l as getBankAccountApplication, S as getBankAccountStatement, x as getBankAccountStatements, C as getBankAccountTransactions, T as getBankAccountTransfers, f as getBankAccounts, ae as getBankDetails, se as getCounterparts, ue as getCounterpartsId, fe as getCounterpartsIdAddresses, he as getCounterpartsIdBankAccounts, D as getCreditCardById, E as getCreditCards, M as getDebitCardById, F as getDebitCardCredentials, k as getDebitCards, $t as getDepartment, h as getDepositableBankAccounts, nn as getDisclosures, be as getDocumentsIdNextNumbers, Ce as getEntitiesIdSettings, Te as getEntityUsers, Ee as getEntityUsersMe, De as getEntityUsersMyEntity, H as getExternalBankAccountAccess, R as getExternalBankAccounts, Ae as getLedgerAccounts, sn as getLocation, Pe as getMailboxes, Fe as getMeasureUnits, a as getMerchantCategoryGroups, un as getOrganization, ze as getOverdueReminders, Ve as getPayables, Ge as getPayablesId, $e as getPayablesIdHistory, et as getPayablesIdLineItems, st as getPayablesIdSuggestions, ut as getPaymentRecords, dt as getPaymentReminders, pt as getPaymentTerms, mt as getProducts, _t as getProductsId, yt as getReceipts, Ct as getReceivables, Et as getReceivablesId, Mt as getReceivablesIdHistory, Pt as getReceivablesIdMails, Rt as getReceivablesIdPdfLink, Bt as getTransactions, Ut as getTransactionsId, Kt as getTransactionsIdExpenseHistory, Vt as getTransactionsValidations, mn as getUserData, gn as getUsers, y as grantBankAccountAccess, U as grantExternalBankAccountAccess, W as linkExternalBankAccount, Xt as listDepartments, rn as listLocations, pn as listRolePermissions, dn as listRoles, m as manageBankAccountAccess, j as manageDebitCardAccess, te as patchApprovalPoliciesId, de as patchCounterpartsId, me as patchCounterpartsIdAddressesId, ve as patchCounterpartsIdBankAccountsId, we as patchEntitiesIdSettings, Ne as patchLedgerAccountsId, Re as patchMeasureUnitsId, Ke as patchPayablesId, vt as patchProductsId, St as patchReceiptsId, Dt as patchReceivablesId, Wt as patchTransactionsId, n as postApiWidgetGatewayDisclosureAcceptance, $ as postApprovalPolicies, re as postApprovalRequestsIdApprove, ie as postApprovalRequestsIdReject, oe as postBankDetails, ce as postCounterparts, pe as postCounterpartsIdAddresses, ge as postCounterpartsIdBankAccounts, ye as postCounterpartsIdBankAccountsIdMakeDefault, Oe as postFiles, je as postLedgerAccounts, Ie as postMeasureUnits, Be as postOverdueReminders, He as postPayables, qe as postPayablesIdApprovePaymentOperation, Je as postPayablesIdAttachFile, Ye as postPayablesIdCancel, Xe as postPayablesIdDuplicatesIdConfirm, Ze as postPayablesIdDuplicatesIdDismiss, nt as postPayablesIdMarkAsPaid, rt as postPayablesIdReject, it as postPayablesIdReopen, at as postPayablesIdSchedulePayment, ot as postPayablesIdSubmitForApproval, ct as postPayablesIdValidate, Ue as postPayablesUploadFromFile, lt as postPaymentIntentsIdCancel, ft as postPaymentReminders, ht as postProducts, bt as postReceiptsUploadFromFile, wt as postReceivables, Ot as postReceivablesIdAccept, kt as postReceivablesIdCancel, At as postReceivablesIdClone, jt as postReceivablesIdDecline, Nt as postReceivablesIdIssue, Ft as postReceivablesIdMarkAsPaid, It as postReceivablesIdMarkAsPartiallyPaid, Lt as postReceivablesIdMarkAsUncollectible, zt as postReceivablesIdSend, Gt as postTransactionsIdApprove, qt as postTransactionsIdReject, Jt as postTransactionsIdReopen, Yt as postTransactionsIdSubmit, Se as putEntitiesIdLogo, tt as putPayablesIdLineItems, Ht as putTransactionsValidations, I as setDebitCardLockStatus, d as submitApplication, B as unlinkExternalBankAccount, u as updateApplication, _ as updateBankAccount, N as updateDebitCard, en as updateDepartment, V as updateExternalBankAccount, cn as updateLocation, vn as updateUser, hn as upsertUserData, G as validateExternalBankAccount, L as verifyDebitCard };
1984
+ export { O as activateCreditCard, P as activateDebitCard, an as bulkUpdateDepartmentMembers, fn as bulkUpdateLocationMembers, hn as bulkUpdateRoleMembers, z as connectExternalBankAccount, K as createAchMoneyMovement, s as createApplication, p as createBankAccount, q as createBookTransfer, b as createCheckDeposit, A as createDebitCard, en as createDepartment, cn as createLocation, bn as createUser, o as createVelocityControl, tn as deactivateDepartment, ln as deactivateLocation, ee as deleteApprovalPoliciesId, c as deleteBankAccountApplication, le as deleteCounterpartsId, _e as deleteCounterpartsIdBankAccountsId, xe as deleteEntitiesIdLogo, ke as deleteFilesId, Me as deleteLedgerAccountsId, Le as deleteMeasureUnitsId, We as deletePayablesId, Qe as deletePayablesIdFile, gt as deleteProductsId, xt as deleteReceiptsId, Tt as deleteReceivablesId, Sn as disableUser, w as downloadBankAccountTransactions, J as getAnalyticsPayables, Y as getAnalyticsReceipts, X as getAnalyticsReceivables, Z as getAnalyticsTransactions, r as getApiWidgetGatewayInit, i as getApplicationStatus, Q as getApprovalPolicies, ne as getApprovalRequests, g as getBankAccount, v as getBankAccountAccess, l as getBankAccountApplication, S as getBankAccountStatement, x as getBankAccountStatements, C as getBankAccountTransactions, T as getBankAccountTransfers, f as getBankAccounts, ae as getBankDetails, se as getCounterparts, ue as getCounterpartsId, fe as getCounterpartsIdAddresses, he as getCounterpartsIdBankAccounts, D as getCreditCardById, E as getCreditCards, M as getDebitCardById, F as getDebitCardCredentials, k as getDebitCards, nn as getDepartment, h as getDepositableBankAccounts, on as getDisclosures, be as getDocumentsIdNextNumbers, Ce as getEntitiesIdSettings, Te as getEntityUsers, Ee as getEntityUsersMe, De as getEntityUsersMyEntity, H as getExternalBankAccountAccess, R as getExternalBankAccounts, Ae as getLedgerAccounts, un as getLocation, Pe as getMailboxes, Fe as getMeasureUnits, a as getMerchantCategoryGroups, pn as getOrganization, ze as getOverdueReminders, Ve as getPayables, Ge as getPayablesId, $e as getPayablesIdHistory, et as getPayablesIdLineItems, st as getPayablesIdSuggestions, ut as getPaymentRecords, dt as getPaymentReminders, pt as getPaymentTerms, mt as getProducts, _t as getProductsId, yt as getReceipts, Ct as getReceivables, Et as getReceivablesId, Mt as getReceivablesIdHistory, Pt as getReceivablesIdMails, Rt as getReceivablesIdPdfLink, Vt as getRecurrencesId, Ut as getTransactions, Kt as getTransactionsId, Yt as getTransactionsIdExpenseHistory, Wt as getTransactionsValidations, _n as getUserData, yn as getUsers, y as grantBankAccountAccess, U as grantExternalBankAccountAccess, W as linkExternalBankAccount, $t as listDepartments, sn as listLocations, gn as listRolePermissions, mn as listRoles, m as manageBankAccountAccess, j as manageDebitCardAccess, te as patchApprovalPoliciesId, de as patchCounterpartsId, me as patchCounterpartsIdAddressesId, ve as patchCounterpartsIdBankAccountsId, we as patchEntitiesIdSettings, Ne as patchLedgerAccountsId, Re as patchMeasureUnitsId, Ke as patchPayablesId, vt as patchProductsId, St as patchReceiptsId, Dt as patchReceivablesId, Ht as patchRecurrencesId, qt as patchTransactionsId, n as postApiWidgetGatewayDisclosureAcceptance, $ as postApprovalPolicies, re as postApprovalRequestsIdApprove, ie as postApprovalRequestsIdReject, oe as postBankDetails, ce as postCounterparts, pe as postCounterpartsIdAddresses, ge as postCounterpartsIdBankAccounts, ye as postCounterpartsIdBankAccountsIdMakeDefault, Oe as postFiles, je as postLedgerAccounts, Ie as postMeasureUnits, Be as postOverdueReminders, He as postPayables, qe as postPayablesIdApprovePaymentOperation, Je as postPayablesIdAttachFile, Ye as postPayablesIdCancel, Xe as postPayablesIdDuplicatesIdConfirm, Ze as postPayablesIdDuplicatesIdDismiss, nt as postPayablesIdMarkAsPaid, rt as postPayablesIdReject, it as postPayablesIdReopen, at as postPayablesIdSchedulePayment, ot as postPayablesIdSubmitForApproval, ct as postPayablesIdValidate, Ue as postPayablesUploadFromFile, lt as postPaymentIntentsIdCancel, ft as postPaymentReminders, ht as postProducts, bt as postReceiptsUploadFromFile, wt as postReceivables, Ot as postReceivablesIdAccept, kt as postReceivablesIdCancel, At as postReceivablesIdClone, jt as postReceivablesIdDecline, Nt as postReceivablesIdIssue, Ft as postReceivablesIdMarkAsPaid, It as postReceivablesIdMarkAsPartiallyPaid, Lt as postReceivablesIdMarkAsUncollectible, zt as postReceivablesIdSend, Bt as postRecurrences, Jt as postTransactionsIdApprove, Xt as postTransactionsIdReject, Zt as postTransactionsIdReopen, Qt as postTransactionsIdSubmit, Se as putEntitiesIdLogo, tt as putPayablesIdLineItems, Gt as putTransactionsValidations, I as setDebitCardLockStatus, d as submitApplication, B as unlinkExternalBankAccount, u as updateApplication, _ as updateBankAccount, N as updateDebitCard, rn as updateDepartment, V as updateExternalBankAccount, dn as updateLocation, xn as updateUser, vn as upsertUserData, G as validateExternalBankAccount, L as verifyDebitCard };
@@ -17,5 +17,6 @@ import { getNaicsOptions as S } from "./lib/naicsCodeMap.js";
17
17
  import { useOrganizationUserNames as C } from "./lib/user/useOrganizationUserNames.js";
18
18
  import { CardProgram as w } from "./lib/card/cardProgram.js";
19
19
  import { CARD_STATUS_LABELS_EN as T, CARD_STATUS_TONE as E, CARD_TYPE_LABELS_EN as D } from "./lib/card/cardPresentation.js";
20
+ import { deniedNoticeExpiresAt as O, selectBankAccountApplication as k } from "./lib/application/bankAccountApplication.js";
20
21
  import "./lib/analytics/index.js";
21
- export { T as CARD_STATUS_LABELS_EN, E as CARD_STATUS_TONE, D as CARD_TYPE_LABELS_EN, w as CardProgram, t as Implementation, m as RefreshingRootWidgetProvider, s as RootWidgetProvider, u as WidgetProvider, d as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, n as getGlobalWidgetConfig, a as getGlobalWidgetInitState, S as getNaicsOptions, r as setGlobalWidgetConfig, o as subscribeToGlobalWidgetInitState, i as updateGlobalWidgetConfig, c as useAnalyticsCaptureException, l as useAnalyticsTrack, h as useDisclosuresAcceptanceSurface, f as useOptionalWidgetToken, C as useOrganizationUserNames, g as useOwnWidgetConfig, _ as useRefetchWidget, v as useWidgetConfig, y as useWidgetError, b as useWidgetInitStaleForToken, x as useWidgetLoading, p as useWidgetToken };
22
+ export { T as CARD_STATUS_LABELS_EN, E as CARD_STATUS_TONE, D as CARD_TYPE_LABELS_EN, w as CardProgram, t as Implementation, m as RefreshingRootWidgetProvider, s as RootWidgetProvider, u as WidgetProvider, d as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, O as deniedNoticeExpiresAt, n as getGlobalWidgetConfig, a as getGlobalWidgetInitState, S as getNaicsOptions, k as selectBankAccountApplication, r as setGlobalWidgetConfig, o as subscribeToGlobalWidgetInitState, i as updateGlobalWidgetConfig, c as useAnalyticsCaptureException, l as useAnalyticsTrack, h as useDisclosuresAcceptanceSurface, f as useOptionalWidgetToken, C as useOrganizationUserNames, g as useOwnWidgetConfig, _ as useRefetchWidget, v as useWidgetConfig, y as useWidgetError, b as useWidgetInitStaleForToken, x as useWidgetLoading, p as useWidgetToken };
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.214", n = "b0bbb056113f49692e90cd0867b0aa70a281d493", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.216", n = "4ea8c77025c772bba27174f3a062b0e2d82ec29d", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -0,0 +1,26 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/application/bankAccountApplication.js
2
+ var e = [
3
+ "COMPLETE",
4
+ "SUBMITTED",
5
+ "DRAFT",
6
+ "DENIED"
7
+ ], t = /* @__PURE__ */ new Set(["DELETED", "CANCELED"]);
8
+ function n(e) {
9
+ return e.find((e) => e.ownership === "STARTED_BY_YOU") ?? e[0] ?? null;
10
+ }
11
+ function r(r) {
12
+ let i = r.filter((e) => e.product === "BANK_ACCOUNT" && !t.has(e.status));
13
+ for (let t of e) {
14
+ let e = i.filter((e) => e.status === t);
15
+ if (e.length > 0) return n(e);
16
+ }
17
+ return n(i);
18
+ }
19
+ var i = 2592e6;
20
+ function a(e) {
21
+ if (e?.status !== "DENIED") return null;
22
+ let t = Date.parse(e.deniedAt ?? e.updatedAt);
23
+ return Number.isFinite(t) ? t + i : null;
24
+ }
25
+ //#endregion
26
+ export { i as DENIED_NOTICE_DURATION_MS, a as deniedNoticeExpiresAt, r as selectBankAccountApplication };
@@ -24,7 +24,7 @@ import { WIDGET_NAME as b, WidgetSuiteAnalyticsEvent as x } from "./index2.js";
24
24
  import { needsDisclosureAcceptance as S } from "./index3.js";
25
25
  import { AcceptDisclosuresWidget as C } from "../../../accept-disclosures-widget/feature/dist/index5.js";
26
26
  import "../../../accept-disclosures-widget/feature/dist/index.js";
27
- import { BankAccountOnboardingWidget as w } from "../../../bank-account-onboarding-widget/feature/dist/index25.js";
27
+ import { BankAccountOnboardingWidget as w } from "../../../bank-account-onboarding-widget/feature/dist/index26.js";
28
28
  import "../../../bank-account-onboarding-widget/feature/dist/index.js";
29
29
  import { useCallback as T, useEffect as E, useMemo as D, useRef as O, useState as k } from "react";
30
30
  import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
@@ -16621,48 +16621,48 @@ function Nj(e) {
16621
16621
  function Pj(e) {
16622
16622
  return e == null ? [] : Array.isArray(e) ? e : [e];
16623
16623
  }
16624
- function Fj({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i, minDate: a, maxDate: o, disabledDates: s, className: c, id: l, "aria-invalid": u, container: d }) {
16625
- let [f, p] = e.useState(!1), m = e.useMemo(() => {
16624
+ function Fj({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i, minDate: a, maxDate: o, defaultMonth: s, disabledDates: c, className: l, id: u, "aria-invalid": d, container: f }) {
16625
+ let [p, m] = e.useState(!1), h = e.useMemo(() => {
16626
16626
  let e = [
16627
16627
  ...a ? [{ before: a }] : [],
16628
16628
  ...o ? [{ after: o }] : [],
16629
- ...Pj(s)
16629
+ ...Pj(c)
16630
16630
  ];
16631
16631
  if (e.length !== 0) return e.length === 1 ? e[0] : e;
16632
16632
  }, [
16633
16633
  a,
16634
16634
  o,
16635
- s
16635
+ c
16636
16636
  ]);
16637
16637
  return /* @__PURE__ */ v(ZC, {
16638
- open: f,
16639
- onOpenChange: p,
16638
+ open: p,
16639
+ onOpenChange: m,
16640
16640
  children: [/* @__PURE__ */ _(QC, {
16641
16641
  asChild: !0,
16642
16642
  children: /* @__PURE__ */ v(Tv, {
16643
- id: l,
16643
+ id: u,
16644
16644
  type: "button",
16645
16645
  variant: "outline",
16646
16646
  disabled: i,
16647
- "aria-invalid": u,
16648
- className: J("ttw:w-full ttw:justify-start ttw:text-left ttw:font-normal", !t && "ttw:text-muted-foreground", c),
16647
+ "aria-invalid": d,
16648
+ className: J("ttw:w-full ttw:justify-start ttw:text-left ttw:font-normal", !t && "ttw:text-muted-foreground", l),
16649
16649
  children: [/* @__PURE__ */ _(I, { className: "ttw:mr-2 ttw:size-4" }), t ? Nj(t) : r]
16650
16650
  })
16651
16651
  }), /* @__PURE__ */ _($C, {
16652
16652
  className: "ttw:w-auto ttw:p-0",
16653
16653
  align: "start",
16654
- container: d,
16654
+ container: f,
16655
16655
  children: /* @__PURE__ */ _(hO, {
16656
16656
  mode: "single",
16657
16657
  selected: t,
16658
16658
  onSelect: (e) => {
16659
- n(e), p(!1);
16659
+ n(e), m(!1);
16660
16660
  },
16661
16661
  captionLayout: "dropdown",
16662
- disabled: m,
16662
+ disabled: h,
16663
16663
  startMonth: a,
16664
16664
  endMonth: o,
16665
- defaultMonth: t ?? o ?? a
16665
+ defaultMonth: t ?? s ?? o ?? a
16666
16666
  })
16667
16667
  })]
16668
16668
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.214",
3
+ "version": "0.5.216",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {
@@ -1,161 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useOrganizationApplicationStatus as e } from "../../../shared/data-access/dist/lib/useOrganizationApplicationStatus.js";
6
- import "../../../shared/data-access/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, useWidgetInitStaleForToken as i } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
- import "../../../shared/feature/dist/index.js";
11
- import { MARKETING_WIDGET_STATUS_LABELS_EN as a } from "./index4.js";
12
- import { MarketingWidgetAnalyticsEvent as o, WIDGET_NAME as s } from "./index2.js";
13
- import { marketingWidgetTestIds as c } from "./index3.js";
14
- import { MarketingApplicationView as l, deniedNoticeExpiresAt as u, marketingApplicationViewFor as d } from "./index5.js";
15
- import { selectBankAccountApplication as f } from "./index6.js";
16
- import { MARKETING_WIDGET_LABELS_EN as p } from "../../ui/dist/index2.js";
17
- import { MarketingBenefitIcon as m, MarketingWidgetStatusTone as h } from "../../ui/dist/index3.js";
18
- import { MarketingWidget as g } from "../../ui/dist/index9.js";
19
- import "../../ui/dist/index.js";
20
- import { useCallback as _, useEffect as v, useMemo as y, useReducer as b, useState as x } from "react";
21
- import { jsx as S } from "react/jsx-runtime";
22
- //#region ../../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index7.js
23
- var C = 2 ** 31 - 1, w = /* @__PURE__ */ new Set([
24
- "ACTIVE",
25
- "INACTIVE",
26
- "INVITED"
27
- ]), T = {
28
- [l.DraftStartedByOther]: "draftStartedByOther",
29
- [l.SubmittedByYou]: "submittedByYou",
30
- [l.SubmittedByOther]: "submittedByOther",
31
- [l.DeniedByYou]: "deniedByYou",
32
- [l.DeniedByOther]: "deniedByOther"
33
- }, E = {
34
- [l.DraftStartedByOther]: h.Brand,
35
- [l.SubmittedByYou]: h.Warning,
36
- [l.SubmittedByOther]: h.Warning,
37
- [l.DeniedByYou]: h.Danger,
38
- [l.DeniedByOther]: h.Danger
39
- };
40
- function D(e) {
41
- return e in T;
42
- }
43
- function O(e) {
44
- let t = a, n = (n) => ({
45
- ...t[n],
46
- ...e?.[n]
47
- });
48
- return {
49
- resumeApplication: e?.resumeApplication ?? t.resumeApplication,
50
- bankNameFallback: e?.bankNameFallback ?? t.bankNameFallback,
51
- formatDate: e?.formatDate ?? t.formatDate,
52
- draftStartedByOther: n("draftStartedByOther"),
53
- submittedByYou: n("submittedByYou"),
54
- submittedByOther: n("submittedByOther"),
55
- deniedByYou: n("deniedByYou"),
56
- deniedByOther: n("deniedByOther")
57
- };
58
- }
59
- function k(e, t, n) {
60
- let r = (e) => e ? n(e) : void 0;
61
- return {
62
- bankName: t,
63
- applicantName: [e?.applicantFirstName, e?.applicantLastName].map((e) => e?.trim()).filter(Boolean).join(" ") || void 0,
64
- startedOn: r(e?.createdAt),
65
- submittedOn: r(e?.submittedAt),
66
- deniedOn: r(e?.deniedAt)
67
- };
68
- }
69
- function A({ content: n, onPrimaryCtaClick: a, labels: s, statusLabels: p }) {
70
- let m = t(), { initResponse: h } = r(), A = i(), j = e(), [M, N] = x(!1), [P, F] = b((e) => e + 1, 0), I = y(() => f(j.applications), [j.applications]), L = u(I), R = y(() => O(p), [p]), z = d(I), B = h?.bankName || R.bankNameFallback, V = y(() => {
71
- if (!D(z)) return;
72
- let e = R[T[z]], t = k(I, B, R.formatDate);
73
- return {
74
- chipLabel: e.chipLabel,
75
- chipTone: E[z],
76
- heading: e.heading?.(t),
77
- body: e.body(t)
78
- };
79
- }, [
80
- I,
81
- B,
82
- R,
83
- z
84
- ]), H = y(() => z === l.Resume ? {
85
- ...s,
86
- applyNow: R.resumeApplication,
87
- primaryCta: R.resumeApplication
88
- } : s, [
89
- s,
90
- R.resumeApplication,
91
- z
92
- ]);
93
- v(() => {
94
- m(o.Mounted);
95
- }, [m]), v(() => {
96
- if (L === null) return;
97
- let e = L - Date.now();
98
- if (e < 0) return;
99
- let t = setTimeout(F, Math.min(e + 1, C));
100
- return () => clearTimeout(t);
101
- }, [L, P]);
102
- let U = !V && z !== l.Hidden;
103
- M && !U && N(!1);
104
- let W = _(() => {
105
- m(o.OpenModal), N(!0);
106
- }, [m]), G = _(() => {
107
- N(!1);
108
- }, []), K = _(() => {
109
- m(o.PrimaryCta), N(!1), a();
110
- }, [a, m]);
111
- return !h?.status || w.has(h.status) || A || !j.isResolved || z === l.Hidden ? null : /* @__PURE__ */ S(g, {
112
- open: M,
113
- vspLogo: n.vspLogo,
114
- bankingText: n.bankingText,
115
- primaryCaption: n.primaryCaption,
116
- secondaryCaption: n.secondaryCaption,
117
- providedByCaption: n.providedByCaption,
118
- primaryModalHeader: n.primaryModalHeader,
119
- howItWorksHeader: n.howItWorksHeader,
120
- howItWorksSteps: n.howItWorksSteps,
121
- fromDayOneHeader: n.fromDayOneHeader,
122
- benefits: n.benefits,
123
- appearance: n.appearance,
124
- onOpenMarketingModal: W,
125
- onCloseMarketingModal: G,
126
- onPrimaryCtaClick: K,
127
- statusMessage: V,
128
- labels: H,
129
- testIds: {
130
- root: c.root,
131
- learnMoreButton: c.learnMoreButton,
132
- applyNowButton: c.applyNowButton,
133
- statusMessage: c.statusMessage,
134
- modal: {
135
- root: c.modal,
136
- primaryCtaButton: c.primaryCtaButton
137
- }
138
- }
139
- });
140
- }
141
- function j({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
142
- return /* @__PURE__ */ S(n, {
143
- widgetName: s,
144
- baseUrl: e,
145
- widgetToken: t,
146
- organizationId: r,
147
- configClient: i,
148
- gatewayRouting: a,
149
- linkComponent: o,
150
- implementation: c,
151
- uiFramework: l,
152
- errorFallback: u,
153
- onError: d,
154
- analytics: f,
155
- disclosuresAcceptance: p,
156
- providerLabels: m,
157
- children: /* @__PURE__ */ S(A, { ...h })
158
- });
159
- }
160
- //#endregion
161
- export { p as MARKETING_WIDGET_LABELS_EN, a as MARKETING_WIDGET_STATUS_LABELS_EN, m as MarketingBenefitIcon, j as MarketingWidget };