@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
@@ -1,27 +1,17 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { countSuspectedPayableDuplicateGroups as e } from "../../data-access/dist/index7.js";
6
- import { usePayablesQuery as t } from "../../data-access/dist/index17.js";
7
- import "../../data-access/dist/index.js";
1
+ import { BanIcon as e, Trash2Icon as t } from "lucide-react";
8
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js
9
- function n(e) {
10
- return e.isError && e.data === void 0;
11
- }
12
- function r({ enabled: r = !0 } = {}) {
13
- let i = t({
14
- duplicate_match_status: "suspected",
15
- limit: 100,
16
- enabled: r
17
- });
3
+ function n(n, r) {
18
4
  return {
19
- count: i.data?.data?.length ?? 0,
20
- groupCount: e(i.data?.data ?? []),
21
- isCapped: !!i.data?.next_pagination_token,
22
- isError: n(i),
23
- isLoading: i.isLoading
5
+ title: n.title,
6
+ description: n.description,
7
+ confirmButton: n.confirmButton,
8
+ presentation: {
9
+ alignment: "center",
10
+ icon: r === "delete" ? t : e,
11
+ tone: r === "confirm" ? "default" : "destructive",
12
+ actionWidth: "equal"
13
+ }
24
14
  };
25
15
  }
26
16
  //#endregion
27
- export { r as useDuplicateBillsCount };
17
+ export { n as duplicateRemovalPrompt };
@@ -1,13 +1,86 @@
1
+ import { endOfDay as e, endOfMonth as t, endOfQuarter as n, endOfWeek as r, endOfYear as i, startOfDay as a, startOfMonth as o, startOfQuarter as s, startOfWeek as c, startOfYear as l, subDays as u, subMonths as d, subQuarters as f, subWeeks as p, subYears as m } from "date-fns";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js
2
- var e = {
3
- uploadingSummary: (e) => `Uploading and scanning ${e} ${e === 1 ? "file" : "files"}`,
4
- completeSummary: (e) => `${e} ${e === 1 ? "upload" : "uploads"} complete`,
5
- readyCaption: (e) => `${e} new ${e === 1 ? "bill" : "bills"} ready`,
6
- duplicateCaption: (e) => `${e} possible ${e === 1 ? "duplicate" : "duplicates"}`,
7
- failedCaption: (e) => `${e} failed to upload`,
8
- tooManyFilesError: (e) => `You can only upload up to ${e} files at a time`,
9
- remainingCapacityError: (e) => e === 0 ? "Wait for the current uploads to finish before adding more files" : `You can upload ${e} more ${e === 1 ? "file" : "files"} right now`,
10
- billDeletedError: "This bill was already deleted"
3
+ var h = {
4
+ Today: "today",
5
+ ThisWeek: "this_week",
6
+ ThisMonth: "this_month",
7
+ ThisQuarter: "this_quarter",
8
+ ThisYear: "this_year",
9
+ Yesterday: "yesterday",
10
+ LastWeek: "last_week",
11
+ LastMonth: "last_month",
12
+ Last30Days: "last_30_days",
13
+ Last90Days: "last_90_days",
14
+ LastQuarter: "last_quarter",
15
+ LastYear: "last_year"
11
16
  };
17
+ function g(g, _ = /* @__PURE__ */ new Date()) {
18
+ let v = a(_);
19
+ switch (g) {
20
+ case h.Today: return {
21
+ from: v,
22
+ to: e(v)
23
+ };
24
+ case h.ThisWeek: return {
25
+ from: c(v),
26
+ to: r(v)
27
+ };
28
+ case h.ThisMonth: return {
29
+ from: o(v),
30
+ to: t(v)
31
+ };
32
+ case h.ThisQuarter: return {
33
+ from: s(v),
34
+ to: n(v)
35
+ };
36
+ case h.ThisYear: return {
37
+ from: l(v),
38
+ to: i(v)
39
+ };
40
+ case h.Yesterday: {
41
+ let t = u(v, 1);
42
+ return {
43
+ from: t,
44
+ to: e(t)
45
+ };
46
+ }
47
+ case h.LastWeek: {
48
+ let e = c(p(v, 1));
49
+ return {
50
+ from: e,
51
+ to: r(e)
52
+ };
53
+ }
54
+ case h.LastMonth: {
55
+ let e = o(d(v, 1));
56
+ return {
57
+ from: e,
58
+ to: t(e)
59
+ };
60
+ }
61
+ case h.Last30Days: return {
62
+ from: u(v, 29),
63
+ to: e(v)
64
+ };
65
+ case h.Last90Days: return {
66
+ from: u(v, 89),
67
+ to: e(v)
68
+ };
69
+ case h.LastQuarter: {
70
+ let e = s(f(v, 1));
71
+ return {
72
+ from: e,
73
+ to: n(e)
74
+ };
75
+ }
76
+ case h.LastYear: {
77
+ let e = l(m(v, 1));
78
+ return {
79
+ from: e,
80
+ to: i(e)
81
+ };
82
+ }
83
+ }
84
+ }
12
85
  //#endregion
13
- export { e as BILL_UPLOAD_QUEUE_LABELS_EN };
86
+ export { h as BillsDatePreset, g as resolveDatePreset };
@@ -1,132 +1,50 @@
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 { getPayablesIdOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
- import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
- import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
10
- import { isApiNotFoundError as a } from "../../../shared/data-access/dist/lib/isApiNotFoundError.js";
11
- import "../../../shared/data-access/dist/index.js";
12
- import "../../../shared/ui/dist/index.js";
13
- import { useUploadPayableFromFileMutation as o } from "../../data-access/dist/index13.js";
14
- import { usePayableOcrQueries as s } from "../../data-access/dist/index15.js";
15
- import "../../data-access/dist/index.js";
16
- import { billPayUploadQueueKey as c } from "./index69.js";
17
- import { BILL_UPLOAD_QUEUE_LABELS_EN as l } from "./index70.js";
18
- import { useCallback as u, useEffect as d, useMemo as f, useState as p } from "react";
19
- import { useQuery as m, useQueryClient as h } from "@tanstack/react-query";
1
+ import { BillStatusFilter as e } from "./index69.js";
2
+ import { BillsDatePreset as t } from "./index70.js";
20
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js
21
- function g({ onOpenBill: g, labels: _ } = {}) {
22
- let v = {
23
- ...l,
24
- ..._
25
- }, y = _?.tooManyFilesError ?? l.tooManyFilesError, b = _?.remainingCapacityError ?? l.remainingCapacityError, { client: x, organizationId: S, authEpoch: C, organizationPending: w } = r(), T = h(), E = f(() => c(S), [S]), D = o(), [O, k] = p(!1), { data: A = [] } = m({
26
- queryKey: E,
27
- queryFn: () => T.getQueryData(E) ?? [],
28
- staleTime: Infinity,
29
- gcTime: Infinity,
30
- initialData: []
31
- }), j = u((e, t) => {
32
- T.setQueryData(E, (n) => (n ?? []).map((n) => n.localId === e ? {
33
- ...n,
34
- ...t
35
- } : n));
36
- }, [T, E]), M = u((e) => {
37
- T.setQueryData(E, (t) => (t ?? []).filter((t) => t.localId !== e));
38
- }, [T, E]), N = u((t) => {
39
- let n = (T.getQueryData(E) ?? []).filter((e) => e.status === "uploading").length;
40
- if (t.length + n > 10) {
41
- e.error(n > 0 ? b(10 - n) : y(10));
42
- return;
43
- }
44
- k(!1);
45
- for (let e of t) {
46
- let t = crypto.randomUUID();
47
- T.setQueryData(E, (n) => [...n ?? [], {
48
- localId: t,
49
- fileName: e.name,
50
- status: "uploading"
51
- }]), D.mutateAsync({ file: e }).then((e) => j(t, { payableId: e?.id })).catch(() => j(t, { status: "failed" }));
52
- }
53
- }, [
54
- j,
55
- T,
56
- E,
57
- b,
58
- y,
59
- D
60
- ]), P = s({ payableIds: A.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
61
- d(() => {
62
- let e = /* @__PURE__ */ new Set();
63
- for (let t of P) if (t.suspectedDuplicateOf.length !== 0) {
64
- e.add(t.payableId);
65
- for (let n of t.suspectedDuplicateOf) e.add(n);
66
- }
67
- for (let { payableId: t, ocrStatus: n, isError: r } of P) {
68
- let i = A.find((e) => e.payableId === t && e.status === "uploading");
69
- i && (n === "success" ? j(i.localId, { status: e.has(t) ? "duplicate" : "ready" }) : (r || n === "error" || n === "canceled") && j(i.localId, { status: "failed" }));
70
- }
71
- for (let t of A) t.status === "ready" && t.payableId && e.has(t.payableId) && j(t.localId, { status: "duplicate" });
72
- }, [
73
- A,
74
- P,
75
- j
76
- ]);
77
- let F = A.filter((e) => e.status === "uploading"), I = A.filter((e) => e.status === "ready"), L = A.filter((e) => e.status === "duplicate"), R = A.filter((e) => e.status === "failed"), z = (r) => ({
78
- id: r.localId,
79
- fileName: r.fileName,
80
- status: r.status,
81
- onOpen: (r.status === "ready" || r.status === "duplicate") && r.payableId && g ? () => {
82
- let o = r.payableId;
83
- T.fetchQuery({
84
- ...n(t({
85
- client: x,
86
- headers: i(S),
87
- path: { payable_id: o }
88
- }), {
89
- authEpoch: C,
90
- organizationPending: w
91
- }),
92
- retry: !1
93
- }).catch((e) => {
94
- if (a(e)) return "deleted";
95
- }).then((t) => {
96
- t === "deleted" ? e.error(v.billDeletedError) : g(o), M(r.localId);
97
- });
98
- } : void 0
99
- }), B = F.length ? [{
100
- id: "in-progress",
101
- items: A.map(z)
102
- }] : [
103
- ...I.length ? [{
104
- id: "ready",
105
- caption: v.readyCaption(I.length),
106
- items: I.map(z)
107
- }] : [],
108
- ...L.length ? [{
109
- id: "duplicate",
110
- caption: v.duplicateCaption(L.length),
111
- items: L.map(z)
112
- }] : [],
113
- ...R.length ? [{
114
- id: "failed",
115
- caption: v.failedCaption(R.length),
116
- items: R.map(z)
117
- }] : []
118
- ], V = I.length + L.length, H = F.length ? v.uploadingSummary(A.length) : V ? v.completeSummary(V) : v.failedCaption(R.length), U = u(() => {
119
- T.setQueryData(E, []);
120
- }, [T, E]);
121
- return {
122
- enqueue: N,
123
- sections: B,
124
- summaryLabel: H,
125
- collapsed: O,
126
- onToggleCollapsed: u(() => k((e) => !e), []),
127
- onClose: U,
128
- isVisible: A.length > 0
129
- };
130
- }
4
+ var n = {
5
+ presets: {
6
+ [t.Today]: "Today",
7
+ [t.ThisWeek]: "This week",
8
+ [t.ThisMonth]: "This month",
9
+ [t.ThisQuarter]: "This quarter",
10
+ [t.ThisYear]: "This year",
11
+ [t.Yesterday]: "Yesterday",
12
+ [t.LastWeek]: "Last week",
13
+ [t.LastMonth]: "Last month",
14
+ [t.Last30Days]: "Last 30 days",
15
+ [t.Last90Days]: "Last 90 days",
16
+ [t.LastQuarter]: "Last quarter",
17
+ [t.LastYear]: "Last year"
18
+ },
19
+ presetGroupCurrent: "Current",
20
+ presetGroupPast: "Past",
21
+ statuses: {
22
+ [e.Draft]: "Draft",
23
+ [e.ReadyToSubmit]: "Ready to submit",
24
+ [e.PendingApproval]: "Pending review",
25
+ [e.ReadyToPay]: "Ready to pay",
26
+ [e.Paid]: "Paid",
27
+ [e.Canceled]: "Cancelled",
28
+ [e.Rejected]: "Rejected"
29
+ },
30
+ dateFieldNames: {
31
+ issueDate: "Issue date",
32
+ dueDate: "Due date",
33
+ addedOn: "Added on"
34
+ },
35
+ dateChip: (e, t) => `${e}: ${t}`,
36
+ statusChip: (e) => `Status: ${e}`,
37
+ vendorChip: (e) => `Vendor: ${e}`,
38
+ amountChip: (e) => `Total amount: ${e}`,
39
+ attachmentChipHas: "Has attachment",
40
+ attachmentChipNone: "No attachment",
41
+ moreSelected: (e, t) => `${e} + ${t} more`,
42
+ amountAtLeast: (e) => `${e} or more`,
43
+ amountAtMost: (e) => `${e} or less`,
44
+ amountBetween: (e, t) => `${e} - ${t}`,
45
+ dateRange: (e, t) => `${e} - ${t}`,
46
+ dateFrom: (e) => `From ${e}`,
47
+ dateTo: (e) => `Until ${e}`
48
+ };
131
49
  //#endregion
132
- export { g as useBillUploadQueue };
50
+ export { n as BILLS_FILTER_LABELS_EN };
@@ -1,3 +1,262 @@
1
- import "./index69.js";
2
- import "./index70.js";
3
- import "./index71.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { formatMoneyExact as e } from "../../../shared/util/dist/lib/formatMoneyExact.js";
6
+ import { BillsFilterField as t } from "../../ui/dist/index76.js";
7
+ import "../../ui/dist/index.js";
8
+ import { getCounterpartName as n } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
9
+ import { useCounterpartsQuery as r } from "../../../shared/counterpart-management/data-access/dist/index3.js";
10
+ import "../../../shared/counterpart-management/feature/dist/index.js";
11
+ import { BILL_STATUS_FILTER_ORDER as i, billStatusFilterApiValues as a } from "./index69.js";
12
+ import { BillsDatePreset as o, resolveDatePreset as s } from "./index70.js";
13
+ import { BILLS_FILTER_LABELS_EN as c } from "./index71.js";
14
+ import { useCallback as l, useEffect as u, useMemo as d, useState as f } from "react";
15
+ import { format as p, formatISO as m } from "date-fns";
16
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js
17
+ var h = {
18
+ Date: "date",
19
+ Status: "status",
20
+ Amount: "amount",
21
+ Vendor: "vendor",
22
+ Attachment: "attachment"
23
+ }, g = 50, _ = 300, v = "MMM d, yyyy", y = 864e5, b = {
24
+ [t.IssueDate]: "issued_at",
25
+ [t.DueDate]: "due_date",
26
+ [t.AddedOn]: "created_at"
27
+ }, x = {
28
+ [o.Today]: "current",
29
+ [o.ThisWeek]: "current",
30
+ [o.ThisMonth]: "current",
31
+ [o.ThisQuarter]: "current",
32
+ [o.ThisYear]: "current",
33
+ [o.Yesterday]: "past",
34
+ [o.LastWeek]: "past",
35
+ [o.LastMonth]: "past",
36
+ [o.Last30Days]: "past",
37
+ [o.Last90Days]: "past",
38
+ [o.LastQuarter]: "past",
39
+ [o.LastYear]: "past"
40
+ };
41
+ function S() {
42
+ return {
43
+ dateField: t.DueDate,
44
+ statuses: [],
45
+ amountMode: "any",
46
+ amountMin: "",
47
+ amountMax: "",
48
+ vendorIds: []
49
+ };
50
+ }
51
+ function C(e) {
52
+ let t = Number.parseFloat(e);
53
+ return Number.isFinite(t) ? Math.round(t * 100) : void 0;
54
+ }
55
+ function w({ offersStatusFilter: o = !1, offersVendorFilter: w = !0, isVendorFilterPaused: T = !1, onFiltersChange: E, labels: D } = {}) {
56
+ let O = d(() => ({
57
+ ...c,
58
+ ...D,
59
+ presets: {
60
+ ...c.presets,
61
+ ...D?.presets
62
+ },
63
+ statuses: {
64
+ ...c.statuses,
65
+ ...D?.statuses
66
+ },
67
+ dateFieldNames: {
68
+ ...c.dateFieldNames,
69
+ ...D?.dateFieldNames
70
+ }
71
+ }), [D]), [k, A] = f(S), [j, M] = f({}), [N, P] = f(""), [F, I] = f(""), L = l((e) => {
72
+ A((t) => ({
73
+ ...t,
74
+ ...e
75
+ })), E?.();
76
+ }, [E]);
77
+ u(() => {
78
+ w || A((e) => e.vendorIds.length === 0 ? e : (E?.(), {
79
+ ...e,
80
+ vendorIds: []
81
+ }));
82
+ }, [w, E]), u(() => {
83
+ o || A((e) => e.statuses.length === 0 ? e : (E?.(), {
84
+ ...e,
85
+ statuses: []
86
+ }));
87
+ }, [o, E]), u(() => {
88
+ let e = setTimeout(() => I(N.trim()), _);
89
+ return () => clearTimeout(e);
90
+ }, [N]);
91
+ let R = r({
92
+ enabled: w && !T,
93
+ is_vendor: !0,
94
+ sort: "counterpart_name",
95
+ order: "asc",
96
+ limit: g,
97
+ counterpart_name__icontains: F || void 0
98
+ }), z = d(() => (R.data?.data ?? []).map((e) => ({
99
+ value: e.id,
100
+ label: n(e)
101
+ })), [R.data?.data]), B = d(() => i.map((e) => ({
102
+ value: e,
103
+ label: O.statuses[e]
104
+ })), [O.statuses]), V = d(() => Object.entries(x).map(([e, t]) => ({
105
+ value: e,
106
+ label: O.presets[e],
107
+ group: t === "current" ? O.presetGroupCurrent : O.presetGroupPast
108
+ })), [
109
+ O.presetGroupCurrent,
110
+ O.presetGroupPast,
111
+ O.presets
112
+ ]), H = d(() => {
113
+ let e = {}, t = b[k.dateField], n = (e) => Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
114
+ if (k.dateFrom && (e[`${t}__gte`] = t === "created_at" ? new Date(n(k.dateFrom)).toISOString() : m(k.dateFrom, { representation: "date" })), k.dateTo && (t === "created_at" ? e.created_at__lt = new Date(n(k.dateTo) + y).toISOString() : e[`${t}__lte`] = m(k.dateTo, { representation: "date" })), k.statuses.length > 0 && (e.status__in = a(k.statuses)), k.amountMode !== "any") {
115
+ let t = "total_amount__gte", n = "total_amount__lte", r = C(k.amountMin), i = C(k.amountMax);
116
+ k.amountMode === "exact" ? r !== void 0 && (e[t] = r, e[n] = r) : (r !== void 0 && (e[t] = r), i !== void 0 && (e[n] = i));
117
+ }
118
+ return k.vendorIds.length > 0 && (e.counterpart_id__in = [...k.vendorIds]), k.hasFile !== void 0 && (e.has_file = k.hasFile), e;
119
+ }, [k]), U = d(() => {
120
+ let t = [], n = (e) => p(e, v), r = (e) => {
121
+ let [t, ...n] = e;
122
+ return t ? n.length === 0 ? t : O.moreSelected(t, n.length) : "";
123
+ };
124
+ if (k.dateFrom || k.dateTo) {
125
+ let e = (k.datePreset ? O.presets[k.datePreset] : void 0) ?? (k.dateFrom && k.dateTo ? O.dateRange(n(k.dateFrom), n(k.dateTo)) : k.dateFrom ? O.dateFrom(n(k.dateFrom)) : O.dateTo(n(k.dateTo)));
126
+ t.push({
127
+ key: h.Date,
128
+ label: O.dateChip(O.dateFieldNames[k.dateField], e)
129
+ });
130
+ }
131
+ if (k.statuses.length > 0 && t.push({
132
+ key: h.Status,
133
+ label: O.statusChip(r(k.statuses.map((e) => O.statuses[e] ?? e)))
134
+ }), k.vendorIds.length > 0 && t.push({
135
+ key: h.Vendor,
136
+ label: O.vendorChip(r(k.vendorIds.map((e) => j[e] ?? e)))
137
+ }), k.amountMode !== "any") {
138
+ let n = (t) => {
139
+ let n = Number.parseFloat(t);
140
+ return Number.isFinite(n) ? e(n, { currencyCode: "USD" }) : "";
141
+ }, r = n(k.amountMin), i = n(k.amountMax), a = k.amountMode === "exact" ? r : r && i ? O.amountBetween(r, i) : r ? O.amountAtLeast(r) : i ? O.amountAtMost(i) : "";
142
+ a && t.push({
143
+ key: h.Amount,
144
+ label: O.amountChip(a)
145
+ });
146
+ }
147
+ return k.hasFile !== void 0 && t.push({
148
+ key: h.Attachment,
149
+ label: k.hasFile ? O.attachmentChipHas : O.attachmentChipNone
150
+ }), t;
151
+ }, [
152
+ O,
153
+ k,
154
+ j
155
+ ]), W = l((e) => {
156
+ switch (e) {
157
+ case h.Date:
158
+ L({
159
+ datePreset: void 0,
160
+ dateFrom: void 0,
161
+ dateTo: void 0
162
+ });
163
+ break;
164
+ case h.Status:
165
+ L({ statuses: [] });
166
+ break;
167
+ case h.Vendor:
168
+ L({ vendorIds: [] });
169
+ break;
170
+ case h.Amount:
171
+ L({
172
+ amountMode: "any",
173
+ amountMin: "",
174
+ amountMax: ""
175
+ });
176
+ break;
177
+ case h.Attachment: L({ hasFile: void 0 });
178
+ }
179
+ }, [L]), G = l(() => {
180
+ A(S()), E?.();
181
+ }, [E]), K = l((e) => {
182
+ M((t) => ({
183
+ ...t,
184
+ [e.id]: e.name
185
+ })), A({
186
+ ...S(),
187
+ vendorIds: [e.id]
188
+ }), E?.();
189
+ }, [E]), q = l((e) => {
190
+ M((t) => {
191
+ let n = { ...t };
192
+ for (let t of z) e.includes(t.value) && (n[t.value] = t.label);
193
+ return n;
194
+ }), L({ vendorIds: e });
195
+ }, [L, z]);
196
+ return {
197
+ filterBarProps: {
198
+ fields: [...d(() => [
199
+ ...w ? [t.Vendor] : [],
200
+ t.IssueDate,
201
+ t.DueDate,
202
+ ...o ? [t.Status] : [],
203
+ t.TotalAmount,
204
+ t.AddedOn,
205
+ t.Attachment
206
+ ], [o, w])],
207
+ activeFilterCount: U.length,
208
+ chips: U,
209
+ onRemoveChip: W,
210
+ onClearAll: G,
211
+ dateField: k.dateField,
212
+ onDateFieldChange: (e) => {
213
+ let t = !!(k.dateFrom || k.dateTo);
214
+ A((t) => ({
215
+ ...t,
216
+ dateField: e
217
+ })), t && E?.();
218
+ },
219
+ datePresets: V,
220
+ selectedDatePreset: k.datePreset,
221
+ dateFrom: k.dateFrom,
222
+ dateTo: k.dateTo,
223
+ onDateRangeChange: ({ from: e, to: t }) => L({
224
+ datePreset: void 0,
225
+ dateFrom: e,
226
+ dateTo: t
227
+ }),
228
+ onDatePresetChange: (e) => {
229
+ let n = /* @__PURE__ */ new Date(), r = k.dateField === t.AddedOn ? new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate()) : n, { from: i, to: a } = s(e, r);
230
+ L({
231
+ datePreset: e,
232
+ dateFrom: i,
233
+ dateTo: a
234
+ });
235
+ },
236
+ statusOptions: B,
237
+ selectedStatuses: k.statuses,
238
+ onStatusChange: (e) => L({ statuses: e }),
239
+ amountMode: k.amountMode,
240
+ onAmountModeChange: (e) => L({ amountMode: e }),
241
+ amountMin: k.amountMin,
242
+ amountMax: k.amountMax,
243
+ onAmountMinChange: (e) => L({ amountMin: e }),
244
+ onAmountMaxChange: (e) => L({ amountMax: e }),
245
+ vendorOptions: z,
246
+ selectedVendors: k.vendorIds,
247
+ onVendorChange: q,
248
+ vendorSearchValue: N,
249
+ onVendorSearchChange: P,
250
+ isVendorLoading: R.isLoading || T,
251
+ isVendorError: R.isError,
252
+ hasAttachment: k.hasFile,
253
+ onHasAttachmentChange: (e) => L({ hasFile: e })
254
+ },
255
+ query: H,
256
+ isFilterActive: U.length > 0,
257
+ clearAll: G,
258
+ filterByVendor: K
259
+ };
260
+ }
261
+ //#endregion
262
+ export { h as BillsFilterChipKey, w as useBillsFilters };
@@ -1,6 +1,35 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { resolveVendorName as e } from "../../util/dist/lib/resolveVendor.js";
6
+ import { getCounterpartName as t } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
7
+ import { useCounterpartsByIdsQuery as n } from "../../../shared/counterpart-management/data-access/dist/index3.js";
8
+ import "../../../shared/counterpart-management/feature/dist/index.js";
9
+ import { useMemo as r } from "react";
1
10
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js
2
- function e(e) {
3
- return e === void 0 ? "0" : e > 99 ? "99+" : String(e);
11
+ var i = {
12
+ Resolving: "resolving",
13
+ Unavailable: "unavailable",
14
+ Settled: "settled"
15
+ }, a = /* @__PURE__ */ new Map();
16
+ function o({ payables: i, enabled: o, canReadVendors: c = !0, isPaused: l = !1 } = {}) {
17
+ let u = r(() => (i ?? []).filter((t) => !e(t)).map((e) => e.counterpart_id).filter((e) => !!e), [i]), d = n({
18
+ counterpartIds: u,
19
+ enabled: o !== !1 && c && !l
20
+ }), f = !c && !l;
21
+ return {
22
+ vendorNames: r(() => f ? a : new Map((d.data?.data ?? []).map((e) => [e.id, t(e)]).filter((e) => !!e[1])), [d.data?.data, f]),
23
+ lookup: s({
24
+ hasUnresolvedIds: u.length > 0,
25
+ isScopeWithdrawn: f,
26
+ isFetching: d.isFetching,
27
+ isError: d.isError
28
+ })
29
+ };
30
+ }
31
+ function s({ hasUnresolvedIds: e, isScopeWithdrawn: t, isFetching: n, isError: r }) {
32
+ return e ? t ? i.Unavailable : n ? i.Resolving : r ? i.Unavailable : i.Settled : i.Settled;
4
33
  }
5
34
  //#endregion
6
- export { e as formatBillQueueBadge };
35
+ export { i as BillVendorLookup, o as useBillVendorNames };