@tesouro/embedded-components-react 0.5.189 → 0.5.191

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 (293) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BankAccountsWidget.d.ts +0 -1
  4. package/dist/lib/BillPayWidget.js +1 -1
  5. package/dist/lib/WidgetSuite.d.ts +0 -1
  6. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js +34 -34
  7. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +18 -18
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +263 -263
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +0 -1
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +1 -2
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +89 -89
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +33 -14
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +29 -74
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +18 -55
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +24 -42
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +13 -327
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +31 -7
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +8 -35
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +92 -14
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +20 -137
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +69 -28
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index19.js +58 -0
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index2.js +35 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index20.js +47 -0
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index21.js +88 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index22.js +36 -0
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index23.js +35 -0
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index24.js +40 -0
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index25.js +34 -0
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index26.js +34 -0
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index27.js +34 -0
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index28.js +36 -0
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index29.js +36 -0
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +16 -4
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index30.js +36 -0
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index31.js +8 -0
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index32.js +35 -0
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index33.js +49 -0
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index34.js +36 -0
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index35.js +47 -0
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index36.js +27 -0
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index37.js +15 -0
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index38.js +35 -0
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index39.js +55 -0
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +27 -13
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index40.js +20 -0
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index41.js +43 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index42.js +27 -0
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index43.js +35 -0
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index44.js +29 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index45.js +29 -0
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index46.js +6 -0
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index47.js +39 -0
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +2 -33
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +35 -255
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +59 -123
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +13 -91
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +29 -29
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +19 -21
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +5 -62
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +15 -4
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +22 -5
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +51 -211
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -4
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +84 -15
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +5 -24
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +31 -62
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +41 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +167 -81
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +56 -5
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +46 -3
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +1 -7
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +47 -3
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +13 -32
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +8 -38
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +7 -163
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +61 -41
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +13 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +24 -45
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +162 -13
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +4 -56
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +25 -8
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +16 -7
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +32 -57
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +96 -8
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +81 -24
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +3 -158
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +45 -10
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +111 -23
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +189 -21
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +69 -33
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +38 -5
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +29 -13
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +89 -8
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +412 -4
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +12 -97
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +83 -82
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +80 -3
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +224 -134
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +44 -45
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +247 -109
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +22 -191
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +6 -38
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +614 -66
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +4 -35
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +42 -89
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +243 -398
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +3 -16
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +3 -86
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +43 -80
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +1 -232
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +6 -44
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +11 -252
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +24 -5
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +130 -23
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -628
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +6 -4
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +127 -40
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +8 -257
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +10 -3
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +82 -2
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +22 -44
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +22 -1
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +29 -6
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +12 -22
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +83 -10
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +48 -130
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +262 -3
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +32 -3
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +387 -124
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +307 -8
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +4 -10
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +4 -81
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +111 -21
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +1 -22
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +37 -13
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +24 -28
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +222 -35
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +46 -42
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +10 -126
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +105 -1
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -33
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +28 -7
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +73 -126
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +1 -1
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +30 -11
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +8 -106
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +181 -2
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -10
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +12 -50
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +108 -2
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -0
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -0
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -14
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +12 -16
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +18 -2
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -4
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -28
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +30 -2
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -32
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +32 -1
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +1 -35
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +32 -18
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +19 -135
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +137 -2
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -4
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +78 -12
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +278 -1
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -4
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +16 -17
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +56 -2
  175. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +1 -106
  176. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +15 -76
  177. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +51 -275
  178. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +19 -5
  179. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +368 -50
  180. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +19 -14
  181. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +92 -50
  182. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +25 -28
  183. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +43 -363
  184. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +48 -15
  185. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +10 -93
  186. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +197 -2
  187. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +1 -31
  188. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +2 -52
  189. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +41 -2
  190. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +1 -55
  191. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +16 -10
  192. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +75 -184
  193. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -1
  194. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +46 -2
  195. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +313 -36
  196. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +6 -16
  197. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +26 -81
  198. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -317
  199. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +1 -9
  200. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +13 -31
  201. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +170 -2
  202. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -2
  203. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +4 -1
  204. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +34 -13
  205. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -170
  206. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +39 -2
  207. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +10 -2
  208. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +195 -30
  209. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +1 -0
  210. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +2 -37
  211. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +14 -10
  212. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -201
  213. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +4 -3
  214. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +20 -16
  215. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +1 -508
  216. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +62 -7
  217. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +14 -5
  218. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +493 -77
  219. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index87.js → ui/dist/index88.js} +1 -2
  220. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +10 -2
  221. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +5 -3
  222. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +88 -25
  223. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -7
  224. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +5 -32
  225. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +30 -2
  226. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -12
  227. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +5 -104
  228. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +34 -2
  229. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +2 -31
  230. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +146 -0
  231. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/derivePayableStatus.js +62 -0
  232. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/formatBillMoney.js +7 -0
  233. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/formatScheduledDateLabel.js +12 -0
  234. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/isEditablePayableStatus.js +7 -0
  235. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/isLiveScheduledPaymentRecord.js +7 -0
  236. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +6 -0
  237. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableDuplicates.js +48 -0
  238. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableTotals.js +18 -0
  239. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveAmountDue.js +6 -0
  240. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveLineItemAmount.js +11 -0
  241. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveLineItemQuantity.js +7 -0
  242. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveVendor.js +9 -0
  243. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/widgetName.js +4 -0
  244. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +95 -95
  245. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +8 -8
  246. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +9 -9
  247. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +8 -5
  248. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +7 -0
  249. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -0
  250. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +31 -18
  251. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +1 -1
  252. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +2 -32
  253. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +23 -190
  254. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +163 -50
  255. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +1 -80
  256. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +101 -2
  257. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +85 -0
  258. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +1 -1
  259. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +3 -3
  260. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +1 -1
  261. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +10 -10
  262. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +104 -104
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +4 -4
  264. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +47 -47
  265. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
  266. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +11 -11
  267. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +10 -10
  268. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +15 -15
  269. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +9 -9
  270. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +7 -7
  271. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +53 -53
  272. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +15 -15
  273. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js +4 -4
  274. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -35
  275. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js +4 -4
  276. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  277. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/mergeLabelTree.js +12 -0
  278. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index4.js +1 -1
  279. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +46 -46
  280. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js +5 -13
  281. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  282. package/package.json +1 -1
  283. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +0 -86
  284. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +0 -50
  285. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +0 -263
  286. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +0 -35
  287. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +0 -392
  288. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +0 -310
  289. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -7
  290. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +0 -114
  291. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +0 -1
  292. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +0 -27
  293. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +0 -2
@@ -2,172 +2,16 @@
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 { useAllBankAccountsQuery as t } from "../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
7
- import "../../../shared/data-access/dist/index.js";
8
- import "../../../shared/ui/dist/index.js";
9
- import { useAnalyticsCaptureException as n } from "../../../shared/feature/dist/lib/analytics/hooks.js";
10
- import { formatCalendarDate as r } from "../../../shared/util/dist/lib/formatCalendarDate.js";
11
- import { formatMoneyExact as i } from "../../../shared/util/dist/lib/formatMoneyExact.js";
12
- import { extractApiErrorMessage as a } from "../../../shared/util/dist/lib/apiErrors.js";
13
- import "../../../shared/feature/dist/index.js";
14
- import { useSchedulePaymentMutation as o } from "../../data-access/dist/index12.js";
5
+ import { usePayableHistoryQuery as e } from "../../data-access/dist/index17.js";
15
6
  import "../../data-access/dist/index.js";
16
- import { dateToCalendarKey as s, getDefaultPaymentDate as c, isPastEasternDate as l, isTodayInEastern as u } from "./index16.js";
17
- import { maskAccountNumber as d } from "./index22.js";
18
- import { deriveSourceAccountFunds as f, mapSourceAccountOptions as p } from "./index23.js";
19
- import { mergePayBillFlowLabels as m } from "./index24.js";
20
- import { useMemo as h, useState as g } from "react";
21
7
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js
22
- function _(e) {
23
- return !!(e?.account_holder_name && e.routing_number && e.account_number);
24
- }
25
- function v({ selectedDate: e, selectedAccount: t, amountDueMinorUnits: n, labels: r }) {
26
- if (!e) return {
27
- ok: !1,
28
- error: r.selectDateError
29
- };
30
- if (l(e)) return {
31
- ok: !1,
32
- error: r.staleDateError
33
- };
34
- if (!t) return {
35
- ok: !1,
36
- error: r.selectAccountError
37
- };
38
- let i = f({
39
- selectedAccount: t,
40
- amountDueMinorUnits: n,
41
- isToday: u(e),
42
- labels: r
43
- });
44
- return i.state === "error" ? {
45
- ok: !1,
46
- error: i.message ?? r.todayInsufficientFunds
47
- } : {
48
- ok: !0,
49
- date: e,
50
- account: t
51
- };
52
- }
53
- function y({ payableId: l, amountDueMinorUnits: y, currencyCode: b = "USD", dueDate: x, vendorName: S, vendorEmail: C, vendorBankAccount: w, isVendorBankAccountLoading: T, isVendorBankAccountError: E, onMissingAchInstructions: D, poweredByBankName: O, labels: k }) {
54
- let A = h(() => m(k), [k]), j = S ?? A.missingVendorName, [M, N] = g(!1), [P, F] = g(!1), [I, L] = g(() => c()), [R, z] = g(), B = t({ enabled: M || P }), V = o(), H = n(), U = h(() => p(B.data?.data ?? [], A), [B.data?.data, A]), W = U.find((e) => e.id === R), G = I ? u(I) : !1, K = { before: c() }, q = f({
55
- selectedAccount: W,
56
- amountDueMinorUnits: y,
57
- isToday: G,
58
- labels: A
59
- }), J = i(y / 100, { currencyCode: b }), Y = I ? r(s(I)) : void 0, X = x ? A.dueDateSuffix(r(x)) : void 0, Z = () => v({
60
- selectedDate: I,
61
- selectedAccount: W,
62
- amountDueMinorUnits: y,
63
- labels: A
64
- }), Q = () => {
65
- if (T) {
66
- e.error(A.checkingPaymentInstructionsError);
67
- return;
68
- }
69
- if (E) {
70
- e.error(A.paymentInstructionsUnavailableError);
71
- return;
72
- }
73
- if (!_(w)) {
74
- D ? D() : e.error(A.missingPaymentInstructionsError);
75
- return;
76
- }
77
- N(!0);
78
- }, $ = () => {
79
- F(!1), N(!1);
80
- };
8
+ var t = "submitted_for_approval";
9
+ function n({ payableId: n, enabled: r = !0 }) {
10
+ let i = e(n, { enabled: r });
81
11
  return {
82
- open: Q,
83
- dialogProps: {
84
- open: M,
85
- onOpenChange: N,
86
- amountDueLabel: A.amountDue,
87
- amountDue: J,
88
- dueDateSuffix: X,
89
- paymentAmountLabel: A.paymentAmount,
90
- paymentAmount: J,
91
- selectedDate: I,
92
- selectedDateLabel: Y,
93
- calendarDisabled: K,
94
- isToday: G,
95
- selectedAccountId: R,
96
- accounts: U,
97
- poweredByBankName: O,
98
- funds: q,
99
- isAccountsLoading: B.isLoading,
100
- isAccountsError: B.isError,
101
- isSubmitting: V.isPending,
102
- onDateChange: L,
103
- onAccountChange: z,
104
- onReview: () => {
105
- let t = Z();
106
- if (!t.ok) {
107
- e.error(t.error);
108
- return;
109
- }
110
- N(!1), F(!0);
111
- },
112
- onCancel: $,
113
- labels: A.scheduleDialog
114
- },
115
- reviewProps: {
116
- open: P,
117
- onOpenChange: F,
118
- amountLabel: A.paymentAmount,
119
- amount: J,
120
- rows: [{
121
- label: A.sourceAccount,
122
- value: W?.primaryLabel ?? ""
123
- }, {
124
- label: A.paymentDate,
125
- value: Y ?? ""
126
- }],
127
- payTo: {
128
- name: j,
129
- email: C,
130
- methodLabel: A.achMethod,
131
- fields: _(w) ? [
132
- {
133
- label: A.routingNumber,
134
- value: w.routing_number
135
- },
136
- {
137
- label: A.accountNumber,
138
- value: w.account_number,
139
- maskedValue: d(w.account_number)
140
- },
141
- {
142
- label: A.accountHolder,
143
- value: w.account_holder_name
144
- }
145
- ] : []
146
- },
147
- isSubmitting: V.isPending,
148
- onBack: () => {
149
- F(!1), N(!0);
150
- },
151
- onCancel: $,
152
- onSubmit: async () => {
153
- let t = Z();
154
- if (!t.ok) {
155
- F(!1), e.error(t.error), N(!0);
156
- return;
157
- }
158
- try {
159
- await V.mutateAsync({
160
- payableId: l,
161
- paymentDate: s(t.date),
162
- sourceBankAccountId: t.account.id
163
- }), $(), e.success(A.scheduledToast);
164
- } catch (t) {
165
- H(t, { payable_id: l }), e.error(a(t) ?? A.submitError);
166
- }
167
- },
168
- labels: A.reviewDialog
169
- }
12
+ roundStartedAt: (i.data?.data ?? []).reduce((e, n) => n.event_type === t ? n.timestamp : e, void 0),
13
+ isLoading: i.isLoading
170
14
  };
171
15
  }
172
16
  //#endregion
173
- export { y as usePayBillFlow };
17
+ export { n as usePayableApprovalRoundStart };
@@ -2,48 +2,68 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useWidgetConfig as e } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
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 { useAllOrganizationRolesQuery as n } from "../../../shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js";
8
+ import { useAllOrganizationUsersQuery as r } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
9
+ import "../../../shared/data-access/dist/index.js";
10
+ import { useWidgetConfig as i } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
6
11
  import "../../../shared/feature/dist/index.js";
7
- import { resolveVendor as t } from "./index12.js";
8
- import { canReadCounterpartBankAccounts as n } from "./index19.js";
9
- import { resolveAmountDueMinorUnits as r } from "./index20.js";
10
- import { payBillFlowTestIds as i } from "./index21.js";
11
- import { ReviewTransactionDialog as a } from "../../ui/dist/index97.js";
12
- import { SchedulePaymentDialog as o } from "../../ui/dist/index104.js";
13
- import "../../ui/dist/index.js";
14
- import { usePayBillFlow as s } from "./index25.js";
15
- import { usePayableAchInstructions as c } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
16
- import "../../../shared/counterpart-management/feature/dist/index.js";
17
- import { useImperativeHandle as l } from "react";
18
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
12
+ import { usePayableApprovalRequestsQuery as a } from "../../data-access/dist/index16.js";
13
+ import "../../data-access/dist/index.js";
14
+ import { useGetApprovalPoliciesQuery as o } from "../../../shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js";
15
+ import "../../../shared/approval-policy/data-access/dist/index.js";
16
+ import { buildApprovalPolicyCardView as s } from "./index22.js";
17
+ import { currentApprovalRound as c } from "./index3.js";
18
+ import { usePayableApprovalRoundStart as l } from "./index25.js";
19
+ import { buildPendingApproverGroups as u } from "./index23.js";
20
+ import { buildPendingApproverGroupsFromCardView as d } from "./index24.js";
21
+ import { useMemo as f } from "react";
19
22
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js
20
- function p({ ref: p, payable: m, onMissingAchInstructions: h, poweredByBankName: g, labels: _ }) {
21
- let v = t(m), { initResponse: y } = e(), b = n(y?.scopes), { achInstructions: x, isLoading: S, isError: C } = c({
22
- counterpartId: m.counterpart_id,
23
- currency: m.currency,
24
- currentBankAccountId: m.counterpart_bank_account_id,
25
- enabled: b
26
- }), w = s({
27
- payableId: m.id,
28
- amountDueMinorUnits: r(m) ?? 0,
29
- currencyCode: m.currency ?? void 0,
30
- dueDate: m.due_date,
31
- vendorName: v?.name ?? void 0,
32
- vendorEmail: v?.email ?? void 0,
33
- vendorBankAccount: x,
34
- isVendorBankAccountLoading: S,
35
- isVendorBankAccountError: C,
36
- onMissingAchInstructions: h,
37
- poweredByBankName: g,
38
- labels: _
39
- });
40
- return l(p, () => ({ open: w.open }), [w.open]), /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(o, {
41
- ...w.dialogProps,
42
- testId: i.scheduleDialog
43
- }), /* @__PURE__ */ d(a, {
44
- ...w.reviewProps,
45
- testId: i.reviewDialog
46
- })] });
23
+ function p({ payableId: p, approvalPolicyId: m, enabled: h = !0, copy: g }) {
24
+ let _ = h && !!m, { initResponse: v } = i(), y = e(v?.scopes, [t.ApprovalPolicyReadOrg]), b = e(v?.scopes, [t.ApprovalRequestReadOrg]), x = e(v?.scopes, [t.RoleReadOrg]), S = e(v?.scopes, [t.UserReadOrg]), C = o({ enabled: _ && y }), w = n({ enabled: _ && x }), T = r({ enabled: _ && S }), E = a(p, { enabled: _ && b }), { roundStartedAt: D } = l({
25
+ payableId: p,
26
+ enabled: _ && b
27
+ }), O = f(() => {
28
+ let e = /* @__PURE__ */ new Map();
29
+ for (let t of w.data?.data ?? []) e.set(t.id, {
30
+ label: t.name,
31
+ kind: "role"
32
+ });
33
+ for (let t of T.data?.data ?? []) e.set(t.id, {
34
+ label: t.name,
35
+ kind: "user"
36
+ });
37
+ return e;
38
+ }, [w.data, T.data]), k = f(() => c(E.data?.data, D), [E.data, D]), A = f(() => new Set(k.flatMap((e) => e.approved_by ?? [])), [k]), j = f(() => new Set(k.filter((e) => (e.approved_by ?? []).length > 0).flatMap((e) => e.role_ids ?? [])), [k]), M = f(() => m ? C.data?.data.find((e) => e.id === m) : void 0, [C.data, m]), N = f(() => _ && M ? s({
39
+ policy: M,
40
+ lookup: O,
41
+ approvedUserIds: A,
42
+ approvedRoleIds: j,
43
+ copy: g
44
+ }) : void 0, [
45
+ _,
46
+ M,
47
+ O,
48
+ A,
49
+ j,
50
+ g
51
+ ]);
52
+ return {
53
+ view: N,
54
+ pendingApprovers: f(() => _ ? N ? d(N) : u({
55
+ requestsNewestFirst: E.data?.data,
56
+ roundStartedAt: D,
57
+ lookup: O
58
+ }) : [], [
59
+ _,
60
+ N,
61
+ E.data,
62
+ D,
63
+ O
64
+ ]),
65
+ isLoading: !!m && (!h || C.isResolving || w.isResolving || T.isResolving || E.isLoading || E.isError || !b)
66
+ };
47
67
  }
48
68
  //#endregion
49
- export { p as PayBillFlow, p as default };
69
+ export { p as useApprovalPolicyCardView };
@@ -1 +1,13 @@
1
- import "./index26.js";
1
+ import { formatRejectionDate as e } from "../../../shared/util/dist/lib/formatRejectionDate.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js
3
+ function t({ payableStatus: t, approvalRequests: n, userNames: r, payableUpdatedAt: i, labels: a, now: o }) {
4
+ let s = n.find((e) => e.status === "rejected");
5
+ if (!s) return t !== "rejected" || !i ? void 0 : { actorLabel: a.rejectedOn(e(i, o)) };
6
+ let c = s.rejected_by ? r.get(s.rejected_by) : void 0, l = e(s.updated_at, o);
7
+ return {
8
+ actorLabel: c ? a.rejectedByOn(c, l) : a.rejectedOn(l),
9
+ message: s.reject_reason ? a.rejectionMessage(s.reject_reason) : void 0
10
+ };
11
+ }
12
+ //#endregion
13
+ export { t as resolveBillRejectionNotice };
@@ -1,50 +1,29 @@
1
- import { ApprovalPoliciesSettingsDefaultLabels as e } from "../../../shared/approval-policy/feature/dist/lib/labels.js";
2
- import { parseApprovalPolicyScript as t } from "../../../shared/approval-policy/util/dist/lib/policyScript.js";
3
- import { parseApprovalPolicyTrigger as n } from "../../../shared/approval-policy/util/dist/lib/policyTrigger.js";
4
- import { buildPolicySentence as r, buildPolicyTitle as i } from "../../../shared/approval-policy/feature/dist/lib/policyViewModel.js";
5
- import "../../../shared/approval-policy/feature/dist/index.js";
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 { useCurrentUserQuery as t } from "../../../shared/data-access/dist/lib/useCurrentUserQuery.js";
7
+ import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
8
+ import "../../../shared/data-access/dist/index.js";
9
+ import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
+ import "../../../shared/feature/dist/index.js";
11
+ import { usePayableApprovalRequestsQuery as i } from "../../data-access/dist/index16.js";
12
+ import "../../data-access/dist/index.js";
13
+ import { currentApprovalRound as a } from "./index3.js";
14
+ import { usePayableApprovalRoundStart as o } from "./index25.js";
6
15
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js
7
- var a = {
8
- ruleTitleRange: e.ruleTitleRange,
9
- ruleTitleUpTo: e.ruleTitleUpTo,
10
- ruleTitleFrom: e.ruleTitleFrom,
11
- ruleTitleAny: e.ruleTitleAny,
12
- ruleSentenceRange: e.ruleSentenceRange,
13
- ruleSentenceUpTo: e.ruleSentenceUpTo,
14
- ruleSentenceFrom: e.ruleSentenceFrom,
15
- ruleSentenceAny: e.ruleSentenceAny
16
- };
17
- function o({ policy: a, lookup: o, approvedUserIds: s, approvedRoleIds: c, copy: l }) {
18
- let u = t(a.script);
19
- if (!u.groups.length || !u.isSupported) return;
20
- let d = [];
21
- for (let [e, t] of u.groups.entries()) {
22
- let n = [];
23
- for (let e of [...t.roleIds, ...t.userIds]) {
24
- let t = o.get(e);
25
- t && n.push({
26
- id: e,
27
- label: t.label,
28
- approved: t.kind === "user" ? s.has(e) : !!c?.has(e)
29
- });
30
- }
31
- n.length && d.push({
32
- id: `group-${e + 1}`,
33
- chips: n
34
- });
35
- }
36
- if (!d.length) return;
37
- let { condition: f, hasKnownAmountBounds: p } = n(a.trigger);
38
- if (!p) return;
39
- let m = {
40
- ...e,
41
- ...l
42
- };
16
+ function s({ payableId: s, status: c }) {
17
+ let { initResponse: l } = r(), u = e(l?.scopes, [n.ApprovalRequestReadOrg]), d = c === "approve_in_progress" && u, f = i(s, { enabled: d }), p = t({ enabled: d }), { roundStartedAt: m } = o({
18
+ payableId: s,
19
+ enabled: d
20
+ }), h = p.data?.id, g = d ? a(f.data?.data, m) : [], _ = (e) => e.caller_is_policy_approver ?? !!(h && e.user_ids.includes(h)), v = g.some(_), y = g.filter((e) => e.status === "waiting");
43
21
  return {
44
- title: i(f, m),
45
- sentence: r(f, m),
46
- steps: d
22
+ id: y.filter(_).find((e) => !(h && (e.approved_by ?? []).includes(h)))?.id,
23
+ isPolicyApprover: v,
24
+ hasWaitingRequest: y.length > 0,
25
+ isLoading: f.isLoading || p.isLoading
47
26
  };
48
27
  }
49
28
  //#endregion
50
- export { a as APPROVAL_POLICY_RULE_COPY_EN, o as buildApprovalPolicyCardView };
29
+ export { s as useCurrentApprovalRequestId };
@@ -1,16 +1,165 @@
1
- import { currentApprovalRound as e } from "./index4.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 "../../../shared/ui/dist/index.js";
7
+ import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
8
+ import "../../../shared/feature/dist/index.js";
9
+ import { useApprovePayableApprovalRequestMutation as n, useRejectPayableApprovalRequestMutation as r } from "../../data-access/dist/index16.js";
10
+ import { useCancelPayableMutation as i } from "../../data-access/dist/index23.js";
11
+ import { useCancelScheduledPaymentMutation as a } from "../../data-access/dist/index24.js";
12
+ import { useForceApprovePayableMutation as o } from "../../data-access/dist/index28.js";
13
+ import { useForceRejectPayableMutation as s } from "../../data-access/dist/index29.js";
14
+ import { useReopenPayableMutation as c } from "../../data-access/dist/index32.js";
15
+ import "../../data-access/dist/index.js";
16
+ import { getBillDetailActions as l } from "./index15.js";
17
+ import { useState as u } from "react";
18
+ import { BanIcon as d, HandIcon as f } from "lucide-react";
2
19
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js
3
- function t({ requestsNewestFirst: t, roundStartedAt: n, lookup: r }) {
4
- let i = e(t, n), a = [];
5
- for (let e of i) {
6
- if (e.status !== "waiting") continue;
7
- let t = [...e.role_ids ?? [], ...e.user_ids ?? []].map((e) => r.get(e)?.label).filter((e) => !!e);
8
- t.length && a.push({
9
- id: e.id,
10
- names: t
11
- });
12
- }
13
- return a;
20
+ function p({ payableId: d, status: f, currentApprovalRequestId: p, arePendingApproversUnknown: m, hasScheduledPayment: h, scheduledPaymentIntentId: g, isScheduledPaymentUnknown: v, isPayabilityUnknown: x, labels: S, isMarkAsPaidPending: C, hasApprovalPolicy: w = !0, hasWaitingRequest: T, pendingApprovers: E, onPayBillSelect: D, onMarkAsPaidSelect: O, onEditSelect: k, onActionSucceeded: A }) {
21
+ let { initResponse: j } = t(), M = r(), N = n(), P = i(), F = a(), I = c(), L = o(), R = s(), z = C || M.isPending || N.isPending || P.isPending || F.isPending || I.isPending || L.isPending || R.isPending, [B, V] = u(), H = B && (B.id !== "cancelScheduledPayment" || B.scheduledPaymentIntentId === g) ? B : void 0, U = d && f ? l({
22
+ status: f,
23
+ scopes: j?.scopes,
24
+ canDecideApprovalRequest: !!p,
25
+ arePendingApproversUnknown: m,
26
+ hasApprovalPolicy: w,
27
+ hasWaitingRequest: T,
28
+ hasScheduledPayment: h || v,
29
+ scheduledPaymentIntentId: g,
30
+ isPayabilityUnknown: x,
31
+ canEdit: !!k,
32
+ labels: S
33
+ }) : [], W = (t) => ({
34
+ onError: () => e.error(S.actionError),
35
+ onSuccess: () => {
36
+ let n = b(t) && !w ? `${t}NoApprovalPolicy` : t;
37
+ e.success(S.actionSuccess[n]), A?.(t);
38
+ }
39
+ }), G = {
40
+ reject: {
41
+ isPending: M.isPending,
42
+ run: (e) => p && M.mutate({
43
+ path: { approval_request_id: p },
44
+ body: e ? { reject_reason: e } : void 0
45
+ }, W("reject"))
46
+ },
47
+ approve: {
48
+ isPending: N.isPending,
49
+ run: () => p && N.mutate({ path: { approval_request_id: p } }, W("approve"))
50
+ },
51
+ cancel: {
52
+ isPending: P.isPending,
53
+ run: () => d && P.mutate({ path: { payable_id: d } }, W("cancel"))
54
+ },
55
+ cancelScheduledPayment: {
56
+ isPending: F.isPending,
57
+ run: () => {
58
+ let e = H?.scheduledPaymentIntentId;
59
+ d && e && F.mutate({
60
+ path: { payment_intent_id: e },
61
+ payableId: d
62
+ }, W("cancelScheduledPayment"));
63
+ }
64
+ },
65
+ reopen: {
66
+ isPending: I.isPending,
67
+ run: () => d && I.mutate({ path: { payable_id: d } }, W("reopen"))
68
+ },
69
+ forceApprove: {
70
+ isPending: L.isPending,
71
+ run: () => d && L.mutate({ path: { payable_id: d } }, W("forceApprove"))
72
+ },
73
+ forceReject: {
74
+ isPending: R.isPending,
75
+ run: () => d && R.mutate({ path: { payable_id: d } }, W("forceReject"))
76
+ }
77
+ }, K = U.map((e) => ({
78
+ ...e,
79
+ disabled: z,
80
+ loading: e.id === "markAsPaid" ? C : G[e.id]?.isPending ?? !1,
81
+ onSelect: () => {
82
+ if (!z && d) {
83
+ if (e.id === "payBill") {
84
+ D();
85
+ return;
86
+ }
87
+ if (e.id === "markAsPaid") {
88
+ O();
89
+ return;
90
+ }
91
+ if (e.id === "edit") {
92
+ k?.();
93
+ return;
94
+ }
95
+ if (y(e.id)) {
96
+ V({
97
+ id: e.id,
98
+ scheduledPaymentIntentId: g
99
+ });
100
+ return;
101
+ }
102
+ G[e.id]?.run();
103
+ }
104
+ }
105
+ }));
106
+ return {
107
+ isActionPending: z,
108
+ actions: {
109
+ row: K.filter((e) => e.surface === "row"),
110
+ menu: K.filter((e) => e.surface === "menu")
111
+ },
112
+ decisionDialog: {
113
+ open: !!H,
114
+ copy: H ? {
115
+ ...S.decisionDialog[H.id],
116
+ ...b(H.id) && !w ? S.decisionDialog[H.id].noApprovalPolicy : void 0,
117
+ presentation: _(H.id),
118
+ pendingApprovers: b(H.id) ? E ?? [] : void 0
119
+ } : void 0,
120
+ isPending: H ? G[H.id]?.isPending ?? !1 : !1,
121
+ onCancel: () => {
122
+ z || V(void 0);
123
+ },
124
+ onConfirm: (e) => {
125
+ H && !z && (G[H.id]?.run(e), V(void 0));
126
+ }
127
+ }
128
+ };
129
+ }
130
+ var m = {
131
+ alignment: "center",
132
+ icon: f,
133
+ tone: "destructive",
134
+ actionWidth: "equal"
135
+ }, h = {
136
+ alignment: "center",
137
+ icon: d,
138
+ tone: "destructive",
139
+ actionWidth: "equal"
140
+ }, g = {
141
+ alignment: "center",
142
+ icon: d,
143
+ tone: "destructive",
144
+ actionWidth: "equal"
145
+ };
146
+ function _(e) {
147
+ if (b(e)) return m;
148
+ if (e === "reject") return h;
149
+ if (e === "cancel") return g;
150
+ }
151
+ var v = [
152
+ "reject",
153
+ "cancel",
154
+ "cancelScheduledPayment",
155
+ "forceApprove",
156
+ "forceReject"
157
+ ];
158
+ function y(e) {
159
+ return v.includes(e);
160
+ }
161
+ function b(e) {
162
+ return e === "forceApprove" || e === "forceReject";
14
163
  }
15
164
  //#endregion
16
- export { t as buildPendingApproverGroups };
165
+ export { p as usePayableDetailActions };
@@ -1,59 +1,7 @@
1
- import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
2
- import { formatBillMoney as t } from "./index2.js";
3
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js
4
- var n = /* @__PURE__ */ new Set([
5
- "marked_as_paid",
6
- "marked_as_partially_paid",
7
- "payment_reverted"
8
- ]);
9
- function r(e, t) {
10
- let n = e?.[t];
11
- return typeof n == "string" && n ? n : void 0;
12
- }
13
- function i(e, t) {
14
- let n = e?.[t];
15
- return typeof n == "number" ? n : void 0;
16
- }
17
- function a(e) {
18
- let t;
19
- for (let n of e.history ?? []) n.status === e.status && (t = n.timestamp);
20
- return t;
21
- }
22
- var o = /* @__PURE__ */ new Set(["created", "processing"]);
23
- function s(e, t) {
24
- if (e) return t[e.toLowerCase()] ?? e.split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
25
- }
26
- function c({ records: c, events: l = [], currencyCode: u, labels: d }) {
27
- let f = (e) => t(e, u), p = (e) => e?.slice(0, 10) ?? "", m = [], h = new Set(c.map((e) => e.id));
28
- for (let t of c) {
29
- let n = o.has(t.status ?? ""), r = t.paid_at ?? a(t), i = n ? t.planned_payment_date : r?.slice(0, 10) ?? t.planned_payment_date, c = t.status === "succeeded" ? d.paymentHistorySentLabel : n ? d.paymentHistoryScheduledLabel : t.status === "canceled" ? d.paymentHistoryCanceledLabel : d.paymentHistoryOtherLabel, l = s(t.payment_method, d.paymentHistoryMethodLabels), u = t.overpaid_amount && t.overpaid_amount > 0 ? f(t.overpaid_amount) : void 0;
30
- m.push({
31
- key: p(i),
32
- view: {
33
- id: t.id,
34
- dateLabel: e(i),
35
- statusLabel: l ? d.paymentHistoryMethodSuffix(c, l) : c,
36
- amountLabel: f(t.amount) ?? "",
37
- overpaidLabel: u ? d.paymentHistoryOverpaidLabel(u) : void 0
38
- }
39
- });
40
- }
41
- for (let t of l) {
42
- if (!n.has(t.event_type)) continue;
43
- let a = t.event_data, o = r(a, "payment_record_id");
44
- if (o && h.has(o)) continue;
45
- let c = a?.is_external === !0, l = t.event_type === "payment_reverted" ? d.paymentHistoryRevertedLabel : t.event_type === "marked_as_partially_paid" ? c ? d.paymentHistoryPartiallyPaidExternalLabel : d.paymentHistoryPartiallyPaidLabel : c ? d.paymentHistoryMarkedPaidExternalLabel : d.paymentHistoryMarkedPaidLabel, u = s(r(a, "payment_method"), d.paymentHistoryMethodLabels), g = r(a, "paid_at") ?? t.timestamp;
46
- m.push({
47
- key: p(g),
48
- view: {
49
- id: `event:${t.id}`,
50
- dateLabel: e(g?.slice(0, 10)),
51
- statusLabel: u ? d.paymentHistoryMethodSuffix(l, u) : l,
52
- amountLabel: f(i(a, "amount_paid")) ?? ""
53
- }
54
- });
55
- }
56
- return m.slice().sort((e, t) => !e.key || !t.key ? e.key ? -1 : +!!t.key : e.key.localeCompare(t.key)).map((e) => e.view);
2
+ function e(e, t) {
3
+ let n = e ?? [];
4
+ return t ? n.filter((e) => !e.created_at || e.created_at >= t) : n.slice(0, 1);
57
5
  }
58
6
  //#endregion
59
- export { c as buildPaymentHistory };
7
+ export { e as currentApprovalRound };
@@ -1,11 +1,28 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { useEffect as e, useState as t } from "react";
1
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js
2
- function e(e) {
3
- let t = [];
4
- for (let n of e.steps) n.chips.some((e) => e.approved) || t.push({
5
- id: n.id,
6
- names: n.chips.map((e) => e.label)
7
- });
8
- return t;
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;
9
26
  }
10
27
  //#endregion
11
- export { e as buildPendingApproverGroupsFromCardView };
28
+ export { i as useLocalCalendarDay };