@tesouro/embedded-components-react 0.5.139 → 0.5.142

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 (169) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -11
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +9 -24
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +21 -37
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +21 -14
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +41 -8
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +16 -4
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +8 -98
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +4 -83
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +98 -3
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +78 -135
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +4 -45
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +139 -109
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +44 -186
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +108 -72
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +188 -29
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -83
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -406
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +88 -12
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +403 -77
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +13 -80
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +77 -221
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +78 -41
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +212 -234
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +44 -21
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +234 -557
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +23 -4
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +581 -40
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -251
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +45 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +261 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +3 -46
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +4 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +44 -6
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -13
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +6 -127
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +13 -3
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +126 -3
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -127
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +3 -8
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +124 -7
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +8 -46
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +8 -21
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +51 -20
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -28
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +19 -83
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +28 -47
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +76 -252
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +48 -33
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +249 -142
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +27 -206
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +160 -4
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +217 -5
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +3 -112
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +7 -1
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +104 -18
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +1 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +27 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +48 -48
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +12 -2
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +102 -27
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -128
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +31 -2
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +125 -30
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +2 -10
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +29 -177
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +10 -2
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +178 -11
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -108
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +14 -2
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +106 -8
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -52
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -2
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +26 -16
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +14 -19
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -11
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +19 -14
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +14 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +16 -2
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +26 -28
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +28 -31
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +27 -117
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +19 -2
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +123 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -16
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +4 -2
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -2
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -22
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +4 -2
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -99
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -79
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +97 -273
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +79 -2
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +273 -18
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -56
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +21 -2
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -14
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -50
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +18 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +47 -32
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -374
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +35 -2
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +369 -18
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -96
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +23 -2
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +93 -29
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +1 -51
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +31 -1
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +49 -53
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -13
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +53 -194
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -2
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +195 -2
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -41
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +4 -2
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +37 -15
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -88
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +19 -2
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +78 -308
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -9
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +311 -27
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +9 -2
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +33 -2
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +1 -0
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -8
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -39
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +37 -2
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -36
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +4 -2
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -37
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -12
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +37 -199
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +12 -3
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +199 -15
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -402
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +13 -6
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +413 -6
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +8 -91
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +9 -0
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +93 -2
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -28
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +118 -87
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -2
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +92 -5
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -30
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -2
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +28 -5
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -34
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +7 -2
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +32 -10
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +1 -105
  164. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +855 -831
  165. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  166. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/relativeCalendarDay.js +12 -0
  167. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  168. package/package.json +1 -1
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -125
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import { RefreshingRootWidgetProvider as y } from "./libs/tesouro-embedded-compo
15
15
  import { useDisclosuresAcceptanceSurface as b, useOwnWidgetConfig as x, useRefetchWidget as S, useWidgetConfig as C, useWidgetError as w, useWidgetInitStaleForToken as T, useWidgetLoading as E } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
16
16
  import { BankAccountsWidget as D } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
17
17
  import { CounterpartsWidget as O } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
18
- import { BillPayWidget as k } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js";
18
+ import { BillPayWidget as k } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js";
19
19
  import { CardDetailsWidget as A } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js";
20
20
  import { CreditCardsWidget as j } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js";
21
21
  import { DebitCardsWidget as M } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
@@ -1,3 +1,3 @@
1
- import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js";
1
+ import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js";
2
2
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
3
3
  export { e as BillPayWidget };
@@ -9,24 +9,24 @@ import "./index13.js";
9
9
  import "./index14.js";
10
10
  import "./index27.js";
11
11
  import "./index28.js";
12
- import "./index39.js";
13
- import "./index42.js";
14
- import "./index48.js";
15
- import "./index56.js";
12
+ import "./index41.js";
13
+ import "./index44.js";
14
+ import "./index50.js";
16
15
  import "./index58.js";
17
16
  import "./index60.js";
18
- import "./index61.js";
19
17
  import "./index62.js";
20
18
  import "./index63.js";
21
19
  import "./index64.js";
22
- import "./index68.js";
23
- import "./index69.js";
20
+ import "./index65.js";
21
+ import "./index66.js";
24
22
  import "./index70.js";
25
23
  import "./index71.js";
24
+ import "./index72.js";
26
25
  import "./index73.js";
27
- import "./index76.js";
28
- import "./index84.js";
29
- import "./index85.js";
26
+ import "./index75.js";
27
+ import "./index78.js";
30
28
  import "./index86.js";
31
- import { BillPayWidget as e } from "./index90.js";
29
+ import "./index87.js";
30
+ import "./index88.js";
31
+ import { BillPayWidget as e } from "./index92.js";
32
32
  export { e as BillPayWidget };
@@ -9,7 +9,7 @@ import { DuplicateVerdict as n, useApplyDuplicateVerdictsMutation as r } from ".
9
9
  import "../../data-access/dist/index.js";
10
10
  import { useDuplicateBills as i } from "./index10.js";
11
11
  import { useDuplicateBillsSelection as a } from "./index11.js";
12
- import { DuplicateBillsDialog as o } from "../../ui/dist/index90.js";
12
+ import { DuplicateBillsDialog as o } from "../../ui/dist/index92.js";
13
13
  import "../../ui/dist/index.js";
14
14
  import { useEffect as s, useMemo as c, useState as l } from "react";
15
15
  import { jsx as u } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { MARK_AS_PAID_DIALOG_LABELS_EN as e, mergeMarkAsPaidDialogLabels as t } from "../../ui/dist/index101.js";
1
+ import { MARK_AS_PAID_DIALOG_LABELS_EN as e, mergeMarkAsPaidDialogLabels as t } from "../../ui/dist/index103.js";
2
2
  import "../../ui/dist/index.js";
3
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js
4
4
  var n = {
@@ -1,5 +1,5 @@
1
- import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/index98.js";
2
- import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t, mergeSchedulePaymentDialogLabels as n } from "../../ui/dist/index104.js";
1
+ import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/index100.js";
2
+ import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t, mergeSchedulePaymentDialogLabels as n } from "../../ui/dist/index106.js";
3
3
  import "../../ui/dist/index.js";
4
4
  import { SOURCE_ACCOUNT_LABELS_EN as r } from "./index24.js";
5
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js
@@ -5,8 +5,8 @@
5
5
  import { useWidgetConfig as e } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
6
6
  import "../../../shared/feature/dist/index.js";
7
7
  import { resolveVendor as t } from "./index8.js";
8
- import { ReviewTransactionDialog as n } from "../../ui/dist/index99.js";
9
- import { SchedulePaymentDialog as r } from "../../ui/dist/index106.js";
8
+ import { ReviewTransactionDialog as n } from "../../ui/dist/index101.js";
9
+ import { SchedulePaymentDialog as r } from "../../ui/dist/index108.js";
10
10
  import "../../ui/dist/index.js";
11
11
  import { canReadCounterpartBankAccounts as i } from "./index20.js";
12
12
  import { resolveAmountDueMinorUnits as a } from "./index21.js";
@@ -1,27 +1,12 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
6
- import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
7
- import "../../../shared/data-access/dist/index.js";
8
- import { formatCalendarDate as n } from "../../../shared/util/dist/lib/formatCalendarDate.js";
9
- import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
- import "../../../shared/feature/dist/index.js";
11
- import { isLiveScheduledPaymentRecord as i } from "../../data-access/dist/index3.js";
12
- import { usePayablePaymentRecordsQuery as a } from "../../data-access/dist/index11.js";
13
- import "../../data-access/dist/index.js";
1
+ import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
2
+ import { getRelativeCalendarDay as t } from "../../../shared/util/dist/lib/relativeCalendarDay.js";
14
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js
15
- function o({ payableId: o, scheduledPaymentDate: s, enabled: c = !0 }) {
16
- let { initResponse: l } = r(), u = e(l?.scopes, [t.PaymentRecordReadOrg]), d = a(c ? o : void 0, { enabled: c && u }), f = d.paymentRecords.find(i), p = !!f || !!s, m = f?.planned_payment_date ?? (p ? s : void 0);
17
- return {
18
- hasScheduledPayment: p,
19
- paymentRecords: d.paymentRecords,
20
- isError: d.isError,
21
- isResolving: d.isResolving,
22
- scheduledDateLabel: m ? n(m) : void 0,
23
- scheduledPaymentIntentId: f?.payment_intent_id ?? void 0
24
- };
4
+ function n(n, r, i) {
5
+ let a = e(n), o = t(n, i);
6
+ return o ? {
7
+ label: r[o],
8
+ absoluteLabel: a
9
+ } : { label: a };
25
10
  }
26
11
  //#endregion
27
- export { o as useScheduledPayment };
12
+ export { n as formatScheduledDateLabel };
@@ -2,43 +2,27 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
7
- import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
8
- import "../../../shared/data-access/dist/index.js";
9
- import "../../../shared/ui/dist/index.js";
10
- import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
- import "../../../shared/feature/dist/index.js";
12
- import { useDeletePayableMutation as i } from "../../data-access/dist/index13.js";
13
- import "../../data-access/dist/index.js";
14
- import { useState as a } from "react";
5
+ import { useEffect as e, useState as t } from "react";
15
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js
16
- function o({ payableId: o, status: s, enabled: c = !0, labels: l, onDeleted: u }) {
17
- let { initResponse: d } = r(), f = i(), [p, m] = a(!1), h = t(d?.scopes, [n.PayableWriteOrg]), g = !!(c && o && s === "draft" && h), _ = g ? [{
18
- id: "deleteDraft",
19
- label: l.menuItem,
20
- destructive: !0,
21
- onSelect: () => m(!0)
22
- }] : [], v = p && g;
23
- return {
24
- menuItems: _,
25
- dialog: {
26
- open: v,
27
- copy: v ? l.dialog : void 0,
28
- isPending: f.isPending,
29
- onCancel: () => {
30
- f.isPending || m(!1);
31
- },
32
- onConfirm: () => {
33
- g && o && !f.isPending && f.mutate({ path: { payable_id: o } }, {
34
- onError: () => e.error(l.error),
35
- onSuccess: () => {
36
- m(!1), u();
37
- }
38
- });
39
- }
40
- }
41
- };
7
+ var n = (e) => [
8
+ e.getFullYear(),
9
+ String(e.getMonth() + 1).padStart(2, "0"),
10
+ String(e.getDate()).padStart(2, "0")
11
+ ].join("-"), r = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + 1).getTime() - e.getTime();
12
+ function i() {
13
+ let [i, a] = t();
14
+ return e(() => {
15
+ let e, t = () => a(n(/* @__PURE__ */ new Date())), i = () => {
16
+ e = setTimeout(() => {
17
+ t(), i();
18
+ }, r(/* @__PURE__ */ new Date()));
19
+ }, o = () => {
20
+ document.visibilityState === "visible" && (t(), clearTimeout(e), i());
21
+ };
22
+ return t(), i(), document.addEventListener("visibilitychange", o), () => {
23
+ clearTimeout(e), document.removeEventListener("visibilitychange", o);
24
+ };
25
+ }, []), i;
42
26
  }
43
27
  //#endregion
44
- export { o as useDraftDelete };
28
+ export { i as useLocalCalendarDay };
@@ -1,19 +1,26 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
6
+ import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
7
+ import "../../../shared/data-access/dist/index.js";
8
+ import { useWidgetConfig as n } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
9
+ import "../../../shared/feature/dist/index.js";
10
+ import { isLiveScheduledPaymentRecord as r } from "../../data-access/dist/index3.js";
11
+ import { usePayablePaymentRecordsQuery as i } from "../../data-access/dist/index11.js";
12
+ import "../../data-access/dist/index.js";
1
13
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js
2
- var e = 1e4;
3
- function t(e) {
4
- return typeof e == "number" && Number.isFinite(e) ? e : 0;
5
- }
6
- function n(e) {
7
- let n = t(e), r = Math.round(Number(Math.abs(n).toFixed(6)));
8
- return n < 0 ? -r || 0 : r;
9
- }
10
- function r({ quantity: r, unitPrice: i, tax: a }) {
11
- let o = n(t(r) * t(i)), s = n(o * t(a) / e);
14
+ function a({ payableId: a, scheduledPaymentDate: o, enabled: s = !0 }) {
15
+ let { initResponse: c } = n(), l = e(c?.scopes, [t.PaymentRecordReadOrg]), u = i(s ? a : void 0, { enabled: s && l }), d = u.paymentRecords.find(r), f = !!d || !!o, p = d?.planned_payment_date ?? (f ? o : void 0);
12
16
  return {
13
- subtotal: o,
14
- taxAmount: s,
15
- total: o + s
17
+ hasScheduledPayment: f,
18
+ paymentRecords: u.paymentRecords,
19
+ isError: u.isError,
20
+ isResolving: u.isResolving,
21
+ scheduledDate: p ?? void 0,
22
+ scheduledPaymentIntentId: d?.payment_intent_id ?? void 0
16
23
  };
17
24
  }
18
25
  //#endregion
19
- export { e as TAX_RATE_SCALE, r as calculateLineItemTotals, n as roundToMinorUnits };
26
+ export { a as useScheduledPayment };
@@ -1,11 +1,44 @@
1
- import { calculateLineItemTotals as e } from "./index39.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
7
+ import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
8
+ import "../../../shared/data-access/dist/index.js";
9
+ import "../../../shared/ui/dist/index.js";
10
+ import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
+ import "../../../shared/feature/dist/index.js";
12
+ import { useDeletePayableMutation as i } from "../../data-access/dist/index13.js";
13
+ import "../../data-access/dist/index.js";
14
+ import { useState as a } from "react";
2
15
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js
3
- function t(t) {
4
- if (typeof t.subtotal == "number") return t.subtotal;
5
- if (typeof t.quantity == "number" && typeof t.unit_price == "number") return e({
6
- quantity: t.quantity,
7
- unitPrice: t.unit_price
8
- }).subtotal;
16
+ function o({ payableId: o, status: s, enabled: c = !0, labels: l, onDeleted: u }) {
17
+ let { initResponse: d } = r(), f = i(), [p, m] = a(!1), h = t(d?.scopes, [n.PayableWriteOrg]), g = !!(c && o && s === "draft" && h), _ = g ? [{
18
+ id: "deleteDraft",
19
+ label: l.menuItem,
20
+ destructive: !0,
21
+ onSelect: () => m(!0)
22
+ }] : [], v = p && g;
23
+ return {
24
+ menuItems: _,
25
+ dialog: {
26
+ open: v,
27
+ copy: v ? l.dialog : void 0,
28
+ isPending: f.isPending,
29
+ onCancel: () => {
30
+ f.isPending || m(!1);
31
+ },
32
+ onConfirm: () => {
33
+ g && o && !f.isPending && f.mutate({ path: { payable_id: o } }, {
34
+ onError: () => e.error(l.error),
35
+ onSuccess: () => {
36
+ m(!1), u();
37
+ }
38
+ });
39
+ }
40
+ }
41
+ };
9
42
  }
10
43
  //#endregion
11
- export { t as resolveLineItemAmountMinorUnits };
44
+ export { o as useDraftDelete };
@@ -1,7 +1,19 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js
2
- var e = (e) => typeof e == "number" && Number.isFinite(e) && e > 0;
3
- function t({ quantity: t, unit_price: n, subtotal: r }) {
4
- return e(t) ? t : e(n) && e(r) && r % n === 0 ? r / n : 1;
2
+ var e = 1e4;
3
+ function t(e) {
4
+ return typeof e == "number" && Number.isFinite(e) ? e : 0;
5
+ }
6
+ function n(e) {
7
+ let n = t(e), r = Math.round(Number(Math.abs(n).toFixed(6)));
8
+ return n < 0 ? -r || 0 : r;
9
+ }
10
+ function r({ quantity: r, unitPrice: i, tax: a }) {
11
+ let o = n(t(r) * t(i)), s = n(o * t(a) / e);
12
+ return {
13
+ subtotal: o,
14
+ taxAmount: s,
15
+ total: o + s
16
+ };
5
17
  }
6
18
  //#endregion
7
- export { t as resolveLineItemQuantity };
19
+ export { e as TAX_RATE_SCALE, r as calculateLineItemTotals, n as roundToMinorUnits };
@@ -1,101 +1,11 @@
1
- import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
2
- import { derivePayableStatus as t } from "./index7.js";
3
- import { resolveVendor as n, resolveVendorName as r } from "./index8.js";
4
- import { formatBillMoney as i } from "./index2.js";
5
- import { resolveLineItemAmountMinorUnits as a } from "./index40.js";
6
- import { resolveLineItemQuantity as o } from "./index41.js";
1
+ import { calculateLineItemTotals as e } from "./index41.js";
7
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js
8
- function s(e) {
9
- return e.total_amount ?? e.amount_due ?? void 0;
10
- }
11
- function c(e) {
12
- return typeof e == "string" ? e : "";
13
- }
14
- function l({ payable: l, lineItems: d, ledgerAccounts: f, labels: p, hasScheduledPayment: m, now: h, rejection: g, achInstructions: _, achInstructionsReadable: v = !1 }) {
15
- let y = l.currency, b = (e) => i(e, y), x = t({
16
- apiStatus: l.status,
17
- dueDate: l.due_date,
18
- scheduledPaymentDate: l.scheduled_payment_date,
19
- hasScheduledPayment: m,
20
- now: h
21
- }), S = n(l), C = r(l), w = e(l.issued_at) || p.notProvided, T = e(l.due_date) || p.notProvided, E = [{
22
- label: p.vendorRow,
23
- value: C || p.notProvided,
24
- secondaryValue: S?.email ?? void 0
25
- }], D = v ? _?.account_number : void 0;
26
- D && E.push({
27
- label: p.bankAccountRow,
28
- value: p.bankAccountValue(D.slice(-4))
29
- });
30
- let O = [
31
- {
32
- label: p.invoiceNumberRow,
33
- value: l.document_id || p.notProvided
34
- },
35
- {
36
- label: p.issueDateRow,
37
- value: w
38
- },
39
- {
40
- label: p.dueDateRow,
41
- value: T
42
- },
43
- {
44
- label: p.poNumberRow,
45
- value: c(l.purchase_order_number) || p.notProvided
46
- }
47
- ], k = new Map(f.map((e) => [e.id, [e.nominal_code, e.name].filter(Boolean).join(" — ")])), A = d.map((e) => {
48
- let t = b(e.unit_price), n = String(o(e));
49
- return {
50
- id: e.id,
51
- description: e.name ?? e.description ?? "",
52
- glCodeLabel: (e.ledger_account_id ? k.get(e.ledger_account_id) : void 0) || p.glCodeMissing,
53
- quantityLabel: t ? p.quantityValue(n, t) : p.quantityOnlyValue(n),
54
- amountLabel: b(a(e)) ?? ""
55
- };
56
- }), j = [
57
- {
58
- label: p.subtotalRow,
59
- value: l.subtotal
60
- },
61
- {
62
- label: p.discountsRow,
63
- value: l.discount
64
- },
65
- {
66
- label: p.taxRow,
67
- value: l.tax_amount
68
- }
69
- ].map(({ label: e, value: t }) => ({
70
- label: e,
71
- value: b(t)
72
- })).filter((e) => !!e.value), M = b(s(l));
73
- M && j.push({
74
- label: p.totalRow,
75
- value: M,
76
- emphasis: !0
77
- });
78
- let N = u(l);
79
- return {
80
- title: C,
81
- subtitle: p.subtitle,
82
- status: x.status,
83
- statusTone: x.tone,
84
- amountDueLabel: b(l.amount_due) ?? b(l.total_amount) ?? "",
85
- amountPaidLabel: N ? b(l.amount_paid) : void 0,
86
- paidOnLabel: N ? p.paidOnLabel(N) : void 0,
87
- invoiceDateLabel: w,
88
- dueDateLabel: T,
89
- dueDateTone: x.isOverdue ? "danger" : "default",
90
- payToItems: E,
91
- invoiceItems: O,
92
- lineItems: A,
93
- totals: j,
94
- rejection: g
95
- };
96
- }
97
- function u(t) {
98
- return t.status === "paid" && t.paid_at ? e(t.paid_at.slice(0, 10)) : void 0;
3
+ function t(t) {
4
+ if (typeof t.subtotal == "number") return t.subtotal;
5
+ if (typeof t.quantity == "number" && typeof t.unit_price == "number") return e({
6
+ quantity: t.quantity,
7
+ unitPrice: t.unit_price
8
+ }).subtotal;
99
9
  }
100
10
  //#endregion
101
- export { u as getPaidAtLabel, l as mapPayableToBillDetails, s as resolveInvoiceTotalMinorUnits };
11
+ export { t as resolveLineItemAmountMinorUnits };
@@ -1,86 +1,7 @@
1
- import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
2
- import { derivePayableStatus as t } from "./index7.js";
3
- import { resolveVendor as n } from "./index8.js";
4
- import { resolveAmountDueMinorUnits as r } from "./index21.js";
5
- import { formatBillMoney as i } from "./index2.js";
6
- import { resolveLineItemAmountMinorUnits as a } from "./index40.js";
7
- import { resolveLineItemQuantity as o } from "./index41.js";
8
- import { getPaidAtLabel as s, resolveInvoiceTotalMinorUnits as c } from "./index42.js";
9
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js
10
- function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable: f = !0, history: p, paymentHistory: m, approvalPolicy: h, labels: g, hasScheduledPayment: _, rejection: v, payableAchInstructions: y, payableAchInstructionsReadable: b = !1 }) {
11
- let x = l.currency, S = t({
12
- apiStatus: l.status,
13
- dueDate: l.due_date,
14
- scheduledPaymentDate: l.scheduled_payment_date,
15
- hasScheduledPayment: _
16
- }), C = n(l), w = b ? y : void 0, T = w?.account_number, E = !!(w?.account_holder_name && w.routing_number && w.account_number), D = e(l.issued_at) || g.notProvided, O = e(l.due_date) || g.notProvided, k = new Map(d.map((e) => [e.value, e.label])), A = [
17
- {
18
- label: g.subtotalRow,
19
- minorUnits: l.subtotal
20
- },
21
- {
22
- label: g.discountRow,
23
- minorUnits: l.discount
24
- },
25
- {
26
- label: g.taxRow,
27
- minorUnits: l.tax_amount
28
- }
29
- ].map((e) => ({
30
- label: e.label,
31
- value: i(e.minorUnits, x)
32
- })).filter((e) => !!e.value), j = i(c(l), x);
33
- j && A.push({
34
- label: g.totalRow,
35
- value: j,
36
- emphasis: !0
37
- });
38
- let M = s(l);
39
- return {
40
- amountDue: i(r(l), x) ?? "",
41
- amountPaid: M ? i(l.amount_paid, x) : void 0,
42
- paidOnLabel: M ? g.paidOnLabel(M) : void 0,
43
- invoiceDateLabel: D,
44
- dueDateLabel: O,
45
- dueDateTone: S.isOverdue ? "danger" : "default",
46
- status: S.status,
47
- statusTone: S.tone,
48
- payTo: {
49
- name: C?.name || g.notProvided,
50
- email: C?.email ?? "",
51
- methodLabel: E ? g.paymentInstructionsValue(T?.slice(-4) ?? "") : g.paymentInstructionsNotSet,
52
- hasPaymentInstructions: E
53
- },
54
- invoiceFields: [
55
- {
56
- label: g.invoiceDateRow,
57
- value: D
58
- },
59
- {
60
- label: g.dueDateRow,
61
- value: O
62
- },
63
- {
64
- label: g.invoiceNumberRow,
65
- value: l.document_id || g.notProvided
66
- }
67
- ],
68
- lineItems: u.map((e) => {
69
- let t = i(e.unit_price, x), n = String(o(e));
70
- return {
71
- id: e.id,
72
- description: e.name ?? e.description ?? "",
73
- glCodeLabel: e.ledger_account_id ? k.get(e.ledger_account_id) ?? (f ? g.glCodeMissing : g.glCodeUnavailable) : g.glCodeMissing,
74
- qtyPriceLabel: t ? g.qtyPriceValue(n, t) : g.qtyOnlyValue(n),
75
- amount: i(a(e), x) ?? ""
76
- };
77
- }),
78
- amountRows: A,
79
- approvalPolicy: h,
80
- paymentHistory: m,
81
- history: p,
82
- rejection: v
83
- };
2
+ var e = (e) => typeof e == "number" && Number.isFinite(e) && e > 0;
3
+ function t({ quantity: t, unit_price: n, subtotal: r }) {
4
+ return e(t) ? t : e(n) && e(r) && r % n === 0 ? r / n : 1;
84
5
  }
85
6
  //#endregion
86
- export { l as buildBillDetailView };
7
+ export { t as resolveLineItemQuantity };
@@ -1,6 +1,101 @@
1
+ import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
2
+ import { derivePayableStatus as t } from "./index7.js";
3
+ import { resolveVendor as n, resolveVendorName as r } from "./index8.js";
4
+ import { formatBillMoney as i } from "./index2.js";
5
+ import { resolveLineItemAmountMinorUnits as a } from "./index42.js";
6
+ import { resolveLineItemQuantity as o } from "./index43.js";
1
7
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js
2
- function e({ isUnsavedPromptOpen: e, isLocked: t, isDirty: n }) {
3
- return e ? "dismiss-prompt" : !t && n ? "prompt" : "close";
8
+ function s(e) {
9
+ return e.total_amount ?? e.amount_due ?? void 0;
10
+ }
11
+ function c(e) {
12
+ return typeof e == "string" ? e : "";
13
+ }
14
+ function l({ payable: l, lineItems: d, ledgerAccounts: f, labels: p, hasScheduledPayment: m, now: h, rejection: g, achInstructions: _, achInstructionsReadable: v = !1 }) {
15
+ let y = l.currency, b = (e) => i(e, y), x = t({
16
+ apiStatus: l.status,
17
+ dueDate: l.due_date,
18
+ scheduledPaymentDate: l.scheduled_payment_date,
19
+ hasScheduledPayment: m,
20
+ now: h
21
+ }), S = n(l), C = r(l), w = e(l.issued_at) || p.notProvided, T = e(l.due_date) || p.notProvided, E = [{
22
+ label: p.vendorRow,
23
+ value: C || p.notProvided,
24
+ secondaryValue: S?.email ?? void 0
25
+ }], D = v ? _?.account_number : void 0;
26
+ D && E.push({
27
+ label: p.bankAccountRow,
28
+ value: p.bankAccountValue(D.slice(-4))
29
+ });
30
+ let O = [
31
+ {
32
+ label: p.invoiceNumberRow,
33
+ value: l.document_id || p.notProvided
34
+ },
35
+ {
36
+ label: p.issueDateRow,
37
+ value: w
38
+ },
39
+ {
40
+ label: p.dueDateRow,
41
+ value: T
42
+ },
43
+ {
44
+ label: p.poNumberRow,
45
+ value: c(l.purchase_order_number) || p.notProvided
46
+ }
47
+ ], k = new Map(f.map((e) => [e.id, [e.nominal_code, e.name].filter(Boolean).join(" — ")])), A = d.map((e) => {
48
+ let t = b(e.unit_price), n = String(o(e));
49
+ return {
50
+ id: e.id,
51
+ description: e.name ?? e.description ?? "",
52
+ glCodeLabel: (e.ledger_account_id ? k.get(e.ledger_account_id) : void 0) || p.glCodeMissing,
53
+ quantityLabel: t ? p.quantityValue(n, t) : p.quantityOnlyValue(n),
54
+ amountLabel: b(a(e)) ?? ""
55
+ };
56
+ }), j = [
57
+ {
58
+ label: p.subtotalRow,
59
+ value: l.subtotal
60
+ },
61
+ {
62
+ label: p.discountsRow,
63
+ value: l.discount
64
+ },
65
+ {
66
+ label: p.taxRow,
67
+ value: l.tax_amount
68
+ }
69
+ ].map(({ label: e, value: t }) => ({
70
+ label: e,
71
+ value: b(t)
72
+ })).filter((e) => !!e.value), M = b(s(l));
73
+ M && j.push({
74
+ label: p.totalRow,
75
+ value: M,
76
+ emphasis: !0
77
+ });
78
+ let N = u(l);
79
+ return {
80
+ title: C,
81
+ subtitle: p.subtitle,
82
+ status: x.status,
83
+ statusTone: x.tone,
84
+ amountDueLabel: b(l.amount_due) ?? b(l.total_amount) ?? "",
85
+ amountPaidLabel: N ? b(l.amount_paid) : void 0,
86
+ paidOnLabel: N ? p.paidOnLabel(N) : void 0,
87
+ invoiceDateLabel: w,
88
+ dueDateLabel: T,
89
+ dueDateTone: x.isOverdue ? "danger" : "default",
90
+ payToItems: E,
91
+ invoiceItems: O,
92
+ lineItems: A,
93
+ totals: j,
94
+ rejection: g
95
+ };
96
+ }
97
+ function u(t) {
98
+ return t.status === "paid" && t.paid_at ? e(t.paid_at.slice(0, 10)) : void 0;
4
99
  }
5
100
  //#endregion
6
- export { e as resolveEditorDismissal };
101
+ export { u as getPaidAtLabel, l as mapPayableToBillDetails, s as resolveInvoiceTotalMinorUnits };