@tesouro/embedded-components-react 0.2.327 → 0.2.329

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 (133) hide show
  1. package/dist/index.css +3 -0
  2. package/dist/index.d.ts +59 -59
  3. package/dist/index.js +1 -1
  4. package/dist/lib/BillPayWidget.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -10
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +119 -33
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +50 -21
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +39 -17
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +17 -12
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +10 -10
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +45 -17
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -21
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +9 -24
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +42 -9
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +25 -50
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +49 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +91 -63
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +20 -49
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +52 -7
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -35
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +67 -113
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +46 -53
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +80 -205
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +32 -192
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +117 -62
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +54 -45
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +205 -31
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +184 -143
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +63 -33
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +46 -100
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +32 -7
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +146 -182
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +38 -4
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +102 -24
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +10 -80
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +200 -78
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +2 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +27 -2
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +78 -41
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +132 -1
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +3 -53
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +2 -9
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +43 -16
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +1 -8
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +50 -77
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -145
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +18 -5
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +6 -6
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +78 -7
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +138 -75
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +2 -0
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +6 -6
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -113
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +85 -1
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +2 -24
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +8 -0
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +115 -0
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +25 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -25
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -12
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +58 -13
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +2 -24
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +22 -2
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +23 -31
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -262
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +15 -2
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +23 -6
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -49
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +41 -1
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +271 -20
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -286
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +9 -2
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +47 -14
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -120
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +22 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +284 -8
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +2 -96
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +16 -2
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +118 -11
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +1 -57
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +10 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +93 -51
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -138
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +12 -1
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +56 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -44
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +53 -1
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +137 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -16
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +7 -2
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +42 -59
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -238
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -202
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +61 -8
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -8
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -91
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +16 -0
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +1 -1
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +67 -4
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +248 -25
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +204 -2
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +6 -3
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -32
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +93 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +1 -105
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +28 -16
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -10
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +4 -167
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +34 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +2 -14
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -87
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +105 -1
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -0
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +18 -0
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +10 -0
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +170 -0
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -0
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +14 -0
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +89 -0
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -0
  126. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +20 -20
  127. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/index.js +4 -4
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +21 -21
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +142 -102
  130. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  131. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  132. package/package.json +1 -1
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +0 -12
package/dist/index.css CHANGED
@@ -4412,6 +4412,9 @@
4412
4412
  .ttw\:hover\:bg-transparent:hover {
4413
4413
  background-color: transparent;
4414
4414
  }
4415
+ .ttw\:hover\:bg-violet-50:hover {
4416
+ background-color: var(--ttw-color-violet-50);
4417
+ }
4415
4418
  .ttw\:hover\:bg-white\/10:hover {
4416
4419
  background-color: var(--ttw-color-white);
4417
4420
  }
package/dist/index.d.ts CHANGED
@@ -1741,6 +1741,65 @@ interface ConfirmDeleteDialogLabels {
1741
1741
  cancelButton: string;
1742
1742
  }
1743
1743
 
1744
+ interface NoPolicyBannerLabels {
1745
+ Title: string;
1746
+ Body: string;
1747
+ /**
1748
+ * Heading for an org that *has* rules, none of which this editor can show. The
1749
+ * plain `Title` would contradict the notice sitting directly above it, which
1750
+ * has just said how many rules exist.
1751
+ */
1752
+ TitleWithUnlistedRules: string;
1753
+ /** Body for that case. The notice above already explains the why. */
1754
+ BodyWithUnlistedRules: string;
1755
+ CreateRule: string;
1756
+ }
1757
+
1758
+ interface NoPolicyBannerProps {
1759
+ onCreateRule: () => void;
1760
+ disabled?: boolean;
1761
+ /**
1762
+ * Why Create rule is off, shown on hover and on keyboard focus. Omit it for the
1763
+ * transient reasons that explain themselves on screen (a write in flight).
1764
+ */
1765
+ createRuleDisabledReason?: string;
1766
+ /**
1767
+ * Whether the org has rules that simply are not shown here. Switches the copy
1768
+ * off the "none created yet" claim, which would contradict the notice that
1769
+ * sits above this banner and has just counted them.
1770
+ */
1771
+ hasUnlistedRules?: boolean;
1772
+ labels?: Partial<NoPolicyBannerLabels>;
1773
+ }
1774
+
1775
+ interface GapCoverageAlertLabels {
1776
+ Title: string;
1777
+ Footer: string;
1778
+ }
1779
+
1780
+ /**
1781
+ * One uncovered bill-amount range. `label` is pre-formatted by the caller
1782
+ * (e.g. "$10.01 to $99.99" or "$500.01 or more") — this component renders it
1783
+ * as-is rather than composing range/currency copy itself.
1784
+ */
1785
+ interface GapRange {
1786
+ id: string;
1787
+ label: string;
1788
+ /**
1789
+ * Why a new rule cannot take this range, for the link's tooltip. A range can be
1790
+ * uncovered today and still be spoken for — a rule whose schedule has not
1791
+ * started covers nothing yet but claims its range — in which case starting a
1792
+ * rule here only ever ends in a rejected save. Omit for a range that is free.
1793
+ */
1794
+ blockedReason?: string;
1795
+ }
1796
+ interface GapCoverageAlertProps {
1797
+ gaps: GapRange[];
1798
+ onSelectGap: (id: string) => void;
1799
+ disabled?: boolean;
1800
+ labels?: Partial<GapCoverageAlertLabels>;
1801
+ }
1802
+
1744
1803
  /**
1745
1804
  * Action handlers for custom payment flows in payable operations.
1746
1805
  *
@@ -4796,65 +4855,6 @@ interface CheckAmountAndDetailScreenProps {
4796
4855
  continueDisabled?: boolean;
4797
4856
  }
4798
4857
 
4799
- interface NoPolicyBannerLabels {
4800
- Title: string;
4801
- Body: string;
4802
- /**
4803
- * Heading for an org that *has* rules, none of which this editor can show. The
4804
- * plain `Title` would contradict the notice sitting directly above it, which
4805
- * has just said how many rules exist.
4806
- */
4807
- TitleWithUnlistedRules: string;
4808
- /** Body for that case. The notice above already explains the why. */
4809
- BodyWithUnlistedRules: string;
4810
- CreateRule: string;
4811
- }
4812
-
4813
- interface NoPolicyBannerProps {
4814
- onCreateRule: () => void;
4815
- disabled?: boolean;
4816
- /**
4817
- * Why Create rule is off, shown on hover and on keyboard focus. Omit it for the
4818
- * transient reasons that explain themselves on screen (a write in flight).
4819
- */
4820
- createRuleDisabledReason?: string;
4821
- /**
4822
- * Whether the org has rules that simply are not shown here. Switches the copy
4823
- * off the "none created yet" claim, which would contradict the notice that
4824
- * sits above this banner and has just counted them.
4825
- */
4826
- hasUnlistedRules?: boolean;
4827
- labels?: Partial<NoPolicyBannerLabels>;
4828
- }
4829
-
4830
- interface GapCoverageAlertLabels {
4831
- Title: string;
4832
- Footer: string;
4833
- }
4834
-
4835
- /**
4836
- * One uncovered bill-amount range. `label` is pre-formatted by the caller
4837
- * (e.g. "$10.01 to $99.99" or "$500.01 or more") — this component renders it
4838
- * as-is rather than composing range/currency copy itself.
4839
- */
4840
- interface GapRange {
4841
- id: string;
4842
- label: string;
4843
- /**
4844
- * Why a new rule cannot take this range, for the link's tooltip. A range can be
4845
- * uncovered today and still be spoken for — a rule whose schedule has not
4846
- * started covers nothing yet but claims its range — in which case starting a
4847
- * rule here only ever ends in a rejected save. Omit for a range that is free.
4848
- */
4849
- blockedReason?: string;
4850
- }
4851
- interface GapCoverageAlertProps {
4852
- gaps: GapRange[];
4853
- onSelectGap: (id: string) => void;
4854
- disabled?: boolean;
4855
- labels?: Partial<GapCoverageAlertLabels>;
4856
- }
4857
-
4858
4858
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
4859
4859
 
4860
4860
  export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ACCOUNT_DELETE_DIALOG_LABELS_EN, ACCOUNT_FORM_SHEET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, AccountDeleteDialog, AccountFormSheet, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CHART_OF_ACCOUNTS_LABELS_EN, CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, CREATE_CARD_FEATURE_LABELS_EN, CardDetailsWidget, CardFormatValue, CardsWidget, ChartOfAccountsTable, ChartOfAccountsWidget, CounterpartsWidget, CreateCardWidget, ERROR_STATE_ID, ExpenseApprovalPoliciesWidget, ExpenseManagementWidget, ExpenseRequirementsWidget, HELP_FAQ_EN, HELP_WIDGET_LABELS_EN, HelpWidget, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, ProfileWidget, RESULT_LABELS_EN, ReceiptMatchWidget, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TagsWidget, TeamWidget, TransfersWidget, UIFramework, UploadReceiptWidget, WidgetProvider, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, resolveCreateCardFeatureLabels, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import "./lib/AcceptDisclosuresWidget.js";
16
16
  import { BankAccountsWidget as C } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
17
17
  import "./lib/BankAccountsWidget.js";
18
18
  import { CounterpartsWidget as w } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
19
- import { BillPayWidget as T } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js";
19
+ import { BillPayWidget as T } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js";
20
20
  import "./lib/BillPayWidget.js";
21
21
  import { CardDetailsWidget as E } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js";
22
22
  import { CardFormatValue as D } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index3.js";
@@ -1,3 +1,3 @@
1
- import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js";
1
+ import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js";
2
2
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
3
3
  export { e as BillPayWidget };
@@ -1,13 +1,13 @@
1
1
  import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
2
2
  import "../../../shared/data-access/dist/index.js";
3
3
  import "./index3.js";
4
- import { usePayableApprovalRequestsQuery as t, useRejectPayableApprovalRequestMutation as n } from "./index5.js";
5
- import { usePayableHistoryQuery as r } from "./index6.js";
6
- import { useAllPayableLineItemsQuery as i, useReplacePayableLineItemsMutation as a } from "./index7.js";
7
- import { usePayablePaymentRecordsQuery as o } from "./index8.js";
8
- import { useSchedulePaymentMutation as s } from "./index9.js";
9
- import { useAttachPayableFileMutation as c, useCreatePayableMutation as l, useDeletePayableFileMutation as u, useMarkPayableAsPaidMutation as d, useSubmitPayableForApprovalMutation as f, useUpdatePayableMutation as p, useUploadPayableFromFileMutation as m, useValidatePayableMutation as h } from "./index10.js";
10
- import { usePayableOcrQueries as g } from "./index12.js";
11
- import { usePayableQuery as _, usePayablesQuery as v, usePayablesTotalCountQuery as y } from "./index13.js";
12
- import { usePayableSuggestionsQuery as b } from "./index14.js";
13
- export { i as useAllPayableLineItemsQuery, c as useAttachPayableFileMutation, l as useCreatePayableMutation, u as useDeletePayableFileMutation, e as useEmbedApi, d as useMarkPayableAsPaidMutation, t as usePayableApprovalRequestsQuery, r as usePayableHistoryQuery, g as usePayableOcrQueries, o as usePayablePaymentRecordsQuery, _ as usePayableQuery, b as usePayableSuggestionsQuery, v as usePayablesQuery, y as usePayablesTotalCountQuery, n as useRejectPayableApprovalRequestMutation, a as useReplacePayableLineItemsMutation, s as useSchedulePaymentMutation, f as useSubmitPayableForApprovalMutation, p as useUpdatePayableMutation, m as useUploadPayableFromFileMutation, h as useValidatePayableMutation };
4
+ import { useApprovePayableApprovalRequestMutation as t, usePayableApprovalRequestsQuery as n, useRejectPayableApprovalRequestMutation as r } from "./index5.js";
5
+ import { usePayableHistoryQuery as i } from "./index6.js";
6
+ import { useAllPayableLineItemsQuery as a, useReplacePayableLineItemsMutation as o } from "./index7.js";
7
+ import { usePayablePaymentRecordsQuery as s } from "./index8.js";
8
+ import { useSchedulePaymentMutation as c } from "./index9.js";
9
+ import { useAttachPayableFileMutation as l, useCancelPayableMutation as u, useCreatePayableMutation as d, useDeletePayableFileMutation as f, useForceApprovePayableMutation as p, useForceRejectPayableMutation as m, useMarkPayableAsPaidMutation as h, useReopenPayableMutation as g, useSubmitPayableForApprovalMutation as _, useUpdatePayableMutation as v, useUploadPayableFromFileMutation as y, useValidatePayableMutation as b } from "./index10.js";
10
+ import { usePayableOcrQueries as x } from "./index12.js";
11
+ import { usePayableQuery as S, usePayablesQuery as C, usePayablesTotalCountQuery as w } from "./index13.js";
12
+ import { usePayableSuggestionsQuery as T } from "./index14.js";
13
+ export { a as useAllPayableLineItemsQuery, t as useApprovePayableApprovalRequestMutation, l as useAttachPayableFileMutation, u as useCancelPayableMutation, d as useCreatePayableMutation, f as useDeletePayableFileMutation, e as useEmbedApi, p as useForceApprovePayableMutation, m as useForceRejectPayableMutation, h as useMarkPayableAsPaidMutation, n as usePayableApprovalRequestsQuery, i as usePayableHistoryQuery, x as usePayableOcrQueries, s as usePayablePaymentRecordsQuery, S as usePayableQuery, T as usePayableSuggestionsQuery, C as usePayablesQuery, w as usePayablesTotalCountQuery, r as useRejectPayableApprovalRequestMutation, g as useReopenPayableMutation, o as useReplacePayableLineItemsMutation, c as useSchedulePaymentMutation, _ as useSubmitPayableForApprovalMutation, v as useUpdatePayableMutation, y as useUploadPayableFromFileMutation, b as useValidatePayableMutation };
@@ -4,14 +4,14 @@
4
4
  "use client";
5
5
  import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
6
  import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { deleteFilesId as n, patchPayablesId as r, postPayables as i, postPayablesIdAttachFile as a, postPayablesIdMarkAsPaid as o, postPayablesIdSubmitForApproval as s, postPayablesIdValidate as c, postPayablesUploadFromFile as l } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
7
+ import { deleteFilesId as n, patchPayablesId as r, postPayables as i, postPayablesIdApprovePaymentOperation as a, postPayablesIdAttachFile as o, postPayablesIdCancel as s, postPayablesIdMarkAsPaid as c, postPayablesIdReject as l, postPayablesIdReopen as u, postPayablesIdSubmitForApproval as d, postPayablesIdValidate as f, postPayablesUploadFromFile as p } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
- import { invalidatePayableQueries as u } from "./index4.js";
10
- import { useMutation as d } from "@tanstack/react-query";
9
+ import { invalidatePayableQueries as m } from "./index4.js";
10
+ import { useMutation as h } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js
12
- function f() {
12
+ function g() {
13
13
  let { client: n, organizationId: r } = e();
14
- return d({
14
+ return h({
15
15
  mutationFn: async ({ body: e }) => {
16
16
  let { data: a } = await i({
17
17
  client: n,
@@ -22,16 +22,16 @@ function f() {
22
22
  return a;
23
23
  },
24
24
  onSuccess: async () => {
25
- await u({
25
+ await m({
26
26
  client: n,
27
27
  organizationId: r
28
28
  });
29
29
  }
30
30
  });
31
31
  }
32
- function p() {
32
+ function _() {
33
33
  let { client: n, organizationId: i } = e();
34
- return d({
34
+ return h({
35
35
  mutationFn: async ({ path: e, body: a }) => {
36
36
  let { data: o } = await r({
37
37
  client: n,
@@ -43,7 +43,7 @@ function p() {
43
43
  return o;
44
44
  },
45
45
  onSuccess: async (e, t) => {
46
- await u({
46
+ await m({
47
47
  client: n,
48
48
  organizationId: i,
49
49
  payableId: t.path.payable_id
@@ -51,11 +51,11 @@ function p() {
51
51
  }
52
52
  });
53
53
  }
54
- function m() {
54
+ function v() {
55
55
  let { client: n, organizationId: i } = e();
56
- return d({
56
+ return h({
57
57
  mutationFn: async ({ file: e }) => {
58
- let { data: a } = await l({
58
+ let { data: a } = await p({
59
59
  client: n,
60
60
  headers: t(i),
61
61
  body: { file: e },
@@ -76,28 +76,28 @@ function m() {
76
76
  return a;
77
77
  },
78
78
  onSuccess: async () => {
79
- await u({
79
+ await m({
80
80
  client: n,
81
81
  organizationId: i
82
82
  });
83
83
  }
84
84
  });
85
85
  }
86
- function h() {
86
+ function y() {
87
87
  let { client: n, organizationId: r } = e();
88
- return d({
88
+ return h({
89
89
  mutationFn: async ({ path: e, file: i }) => {
90
- let { data: o } = await a({
90
+ let { data: a } = await o({
91
91
  client: n,
92
92
  headers: t(r),
93
93
  path: e,
94
94
  body: { file: i },
95
95
  throwOnError: !0
96
96
  });
97
- return o;
97
+ return a;
98
98
  },
99
99
  onSuccess: async (e, t) => {
100
- await u({
100
+ await m({
101
101
  client: n,
102
102
  organizationId: r,
103
103
  payableId: t.path.payable_id
@@ -105,9 +105,9 @@ function h() {
105
105
  }
106
106
  });
107
107
  }
108
- function g() {
108
+ function b() {
109
109
  let { client: r, organizationId: i } = e();
110
- return d({
110
+ return h({
111
111
  mutationFn: async ({ path: e }) => {
112
112
  await n({
113
113
  client: r,
@@ -117,7 +117,7 @@ function g() {
117
117
  });
118
118
  },
119
119
  onSuccess: async (e, t) => {
120
- await u({
120
+ await m({
121
121
  client: r,
122
122
  organizationId: i,
123
123
  payableId: t.payableId
@@ -125,10 +125,10 @@ function g() {
125
125
  }
126
126
  });
127
127
  }
128
- function _() {
128
+ function x() {
129
129
  let { client: n, organizationId: r } = e();
130
- return d({ mutationFn: async ({ path: e }) => {
131
- let { data: i } = await c({
130
+ return h({ mutationFn: async ({ path: e }) => {
131
+ let { data: i } = await f({
132
132
  client: n,
133
133
  headers: t(r),
134
134
  path: e,
@@ -140,11 +140,11 @@ function _() {
140
140
  };
141
141
  } });
142
142
  }
143
- function v() {
143
+ function S() {
144
144
  let { client: n, organizationId: r } = e();
145
- return d({
145
+ return h({
146
146
  mutationFn: async ({ path: e }) => {
147
- let { data: i } = await s({
147
+ let { data: i } = await d({
148
148
  client: n,
149
149
  headers: t(r),
150
150
  path: e,
@@ -153,7 +153,7 @@ function v() {
153
153
  return i;
154
154
  },
155
155
  onSuccess: async (e, t) => {
156
- await u({
156
+ await m({
157
157
  client: n,
158
158
  organizationId: r,
159
159
  payableId: t.path.payable_id,
@@ -162,11 +162,97 @@ function v() {
162
162
  }
163
163
  });
164
164
  }
165
- function y() {
165
+ function C() {
166
+ let { client: n, organizationId: r } = e();
167
+ return h({
168
+ mutationFn: async ({ path: e }) => {
169
+ let { data: i } = await a({
170
+ client: n,
171
+ headers: t(r),
172
+ path: e,
173
+ throwOnError: !0
174
+ });
175
+ return i;
176
+ },
177
+ onSuccess: async (e, t) => {
178
+ await m({
179
+ client: n,
180
+ organizationId: r,
181
+ payableId: t.path.payable_id,
182
+ includeApprovalRequests: !0
183
+ });
184
+ }
185
+ });
186
+ }
187
+ function w() {
188
+ let { client: n, organizationId: r } = e();
189
+ return h({
190
+ mutationFn: async ({ path: e }) => {
191
+ let { data: i } = await l({
192
+ client: n,
193
+ headers: t(r),
194
+ path: e,
195
+ throwOnError: !0
196
+ });
197
+ return i;
198
+ },
199
+ onSuccess: async (e, t) => {
200
+ await m({
201
+ client: n,
202
+ organizationId: r,
203
+ payableId: t.path.payable_id,
204
+ includeApprovalRequests: !0
205
+ });
206
+ }
207
+ });
208
+ }
209
+ function T() {
210
+ let { client: n, organizationId: r } = e();
211
+ return h({
212
+ mutationFn: async ({ path: e }) => {
213
+ let { data: i } = await s({
214
+ client: n,
215
+ headers: t(r),
216
+ path: e,
217
+ throwOnError: !0
218
+ });
219
+ return i;
220
+ },
221
+ onSuccess: async (e, t) => {
222
+ await m({
223
+ client: n,
224
+ organizationId: r,
225
+ payableId: t.path.payable_id
226
+ });
227
+ }
228
+ });
229
+ }
230
+ function E() {
166
231
  let { client: n, organizationId: r } = e();
167
- return d({
232
+ return h({
233
+ mutationFn: async ({ path: e }) => {
234
+ let { data: i } = await u({
235
+ client: n,
236
+ headers: t(r),
237
+ path: e,
238
+ throwOnError: !0
239
+ });
240
+ return i;
241
+ },
242
+ onSuccess: async (e, t) => {
243
+ await m({
244
+ client: n,
245
+ organizationId: r,
246
+ payableId: t.path.payable_id
247
+ });
248
+ }
249
+ });
250
+ }
251
+ function D() {
252
+ let { client: n, organizationId: r } = e();
253
+ return h({
168
254
  mutationFn: async ({ path: e, body: i }) => {
169
- let { data: a } = await o({
255
+ let { data: a } = await c({
170
256
  client: n,
171
257
  headers: t(r),
172
258
  path: e,
@@ -176,7 +262,7 @@ function y() {
176
262
  return a;
177
263
  },
178
264
  onSuccess: async (e, t) => {
179
- await u({
265
+ await m({
180
266
  client: n,
181
267
  organizationId: r,
182
268
  payableId: t.path.payable_id
@@ -185,4 +271,4 @@ function y() {
185
271
  });
186
272
  }
187
273
  //#endregion
188
- export { h as useAttachPayableFileMutation, f as useCreatePayableMutation, g as useDeletePayableFileMutation, y as useMarkPayableAsPaidMutation, v as useSubmitPayableForApprovalMutation, p as useUpdatePayableMutation, m as useUploadPayableFromFileMutation, _ as useValidatePayableMutation };
274
+ export { y as useAttachPayableFileMutation, T as useCancelPayableMutation, g as useCreatePayableMutation, b as useDeletePayableFileMutation, C as useForceApprovePayableMutation, w as useForceRejectPayableMutation, D as useMarkPayableAsPaidMutation, E as useReopenPayableMutation, S as useSubmitPayableForApprovalMutation, _ as useUpdatePayableMutation, v as useUploadPayableFromFileMutation, x as useValidatePayableMutation };
@@ -1,39 +1,68 @@
1
1
  import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.js";
2
+ import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
3
+ import { getPaymentRecords as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
2
4
  import "../../../shared/data-access/dist/index.js";
3
- import { approvalRequestsInvalidationKey as t, payableHistoryInvalidationKey as n, payableInvalidationKey as r, payableLineItemsInvalidationKey as i, payablePaymentRecordsInvalidationKey as a, payablesAnalyticsInvalidationKey as o, payablesInvalidationKey as s } from "./index3.js";
5
+ import { approvalRequestsInvalidationKey as r, payableHistoryInvalidationKey as i, payableInvalidationKey as a, payableLineItemsInvalidationKey as o, payablePaymentRecordsInvalidationKey as s, payablesAnalyticsInvalidationKey as c, payablesInvalidationKey as l } from "./index3.js";
4
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js
5
- async function c({ client: c, organizationId: l, payableId: u, includeLineItems: d, includeApprovalRequests: f }) {
7
+ async function u({ client: t, organizationId: n, payableId: u, includeLineItems: d, includeApprovalRequests: f }) {
6
8
  let p = {
7
- client: c,
8
- organizationId: l
9
+ client: t,
10
+ organizationId: n
9
11
  }, m = u ? {
10
12
  ...p,
11
13
  payableId: u
12
14
  } : void 0, h = [
13
- s(p),
14
- o(p),
15
- ...f ? [t(p)] : [],
15
+ l(p),
16
+ c(p),
17
+ ...f ? [r(p)] : [],
16
18
  ...m ? [
17
- r(m),
18
- n(m),
19
- a(m)
19
+ a(m),
20
+ i(m),
21
+ s(m)
20
22
  ] : [],
21
- ...m && d ? [i(m)] : []
23
+ ...m && d ? [o(m)] : []
22
24
  ];
23
25
  await Promise.all(h.map((t) => e(t)));
24
26
  }
25
- var l = 500;
26
- async function u({ client: n, organizationId: r, payableId: i }) {
27
- await e(t({
28
- client: n,
29
- organizationId: r
27
+ var d = 500;
28
+ async function f({ client: t, organizationId: n, payableId: i }) {
29
+ await e(r({
30
+ client: t,
31
+ organizationId: n
30
32
  })), await new Promise((e) => {
31
- setTimeout(e, l);
32
- }), await c({
33
- client: n,
34
- organizationId: r,
33
+ setTimeout(e, d);
34
+ }), await u({
35
+ client: t,
36
+ organizationId: n,
35
37
  payableId: i
36
38
  });
37
39
  }
40
+ var p = 2e4, m = 1e3, h = /* @__PURE__ */ new Set(["created", "processing"]);
41
+ async function g({ client: e, organizationId: r, payableId: i }) {
42
+ let a = Date.now() + p, o = !1;
43
+ for (; !o && Date.now() < a;) {
44
+ await new Promise((e) => {
45
+ setTimeout(e, m);
46
+ });
47
+ try {
48
+ let { data: a } = await n({
49
+ client: e,
50
+ headers: t(r),
51
+ query: {
52
+ limit: 100,
53
+ object_id__in: [i],
54
+ order: "desc",
55
+ sort: "paid_at"
56
+ }
57
+ });
58
+ o = (a?.data ?? []).some((e) => !!e.status && h.has(e.status));
59
+ } catch {}
60
+ }
61
+ return await u({
62
+ client: e,
63
+ organizationId: r,
64
+ payableId: i
65
+ }), o;
66
+ }
38
67
  //#endregion
39
- export { u as invalidateApprovalDecisionQueries, c as invalidatePayableQueries };
68
+ export { f as invalidateApprovalDecisionQueries, u as invalidatePayableQueries, g as reconcileScheduledPaymentQueries };
@@ -4,32 +4,32 @@
4
4
  "use client";
5
5
  import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
6
  import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { postApprovalRequestsIdReject as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
- import { getApprovalRequestsOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
9
- import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { postApprovalRequestsIdApprove as n, postApprovalRequestsIdReject as r } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
+ import { getApprovalRequestsOptions as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
9
+ import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
10
10
  import "../../../shared/data-access/dist/index.js";
11
- import { invalidateApprovalDecisionQueries as a } from "./index4.js";
12
- import { useMutation as o, useQuery as s } from "@tanstack/react-query";
11
+ import { invalidateApprovalDecisionQueries as o } from "./index4.js";
12
+ import { useMutation as s, useQuery as c } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js
14
- var c = "payable", l = "desc";
15
- function u(n, { enabled: a } = {}) {
16
- let { client: o, organizationId: u, widgetToken: d, authEpoch: f } = e(), p = !!(u && d && n) && a !== !1, m = r({
14
+ var l = "payable", u = "desc";
15
+ function d(n, { enabled: r } = {}) {
16
+ let { client: o, organizationId: s, widgetToken: d, authEpoch: f } = e(), p = !!(s && d && n) && r !== !1, m = i({
17
17
  client: o,
18
- headers: t(u),
18
+ headers: t(s),
19
19
  query: {
20
20
  object_id: n ?? "",
21
- object_type: c,
22
- order: l
21
+ object_type: l,
22
+ order: u
23
23
  }
24
24
  });
25
- return s({
26
- ...i(m, f),
25
+ return c({
26
+ ...a(m, f),
27
27
  enabled: p
28
28
  });
29
29
  }
30
- function d() {
30
+ function f() {
31
31
  let { client: r, organizationId: i } = e();
32
- return o({
32
+ return s({
33
33
  mutationFn: async ({ path: e }) => {
34
34
  let { data: a } = await n({
35
35
  client: r,
@@ -40,7 +40,7 @@ function d() {
40
40
  return a;
41
41
  },
42
42
  onSuccess: async (e) => {
43
- await a({
43
+ await o({
44
44
  client: r,
45
45
  organizationId: i,
46
46
  payableId: e?.object_id
@@ -48,5 +48,27 @@ function d() {
48
48
  }
49
49
  });
50
50
  }
51
+ function p() {
52
+ let { client: n, organizationId: i } = e();
53
+ return s({
54
+ mutationFn: async ({ path: e, body: a }) => {
55
+ let { data: o } = await r({
56
+ client: n,
57
+ headers: t(i),
58
+ path: e,
59
+ body: a?.reject_reason ? a : void 0,
60
+ throwOnError: !0
61
+ });
62
+ return o;
63
+ },
64
+ onSuccess: async (e) => {
65
+ await o({
66
+ client: n,
67
+ organizationId: i,
68
+ payableId: e?.object_id
69
+ });
70
+ }
71
+ });
72
+ }
51
73
  //#endregion
52
- export { u as usePayableApprovalRequestsQuery, d as useRejectPayableApprovalRequestMutation };
74
+ export { f as useApprovePayableApprovalRequestMutation, d as usePayableApprovalRequestsQuery, p as useRejectPayableApprovalRequestMutation };
@@ -47,7 +47,7 @@ function d(d, { enabled: f } = {}) {
47
47
  return {
48
48
  ...x,
49
49
  paymentRecords: S,
50
- isResolving: o(x)
50
+ isResolving: v && o(x)
51
51
  };
52
52
  }
53
53
  //#endregion