@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,331 +1,17 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { deletePayablesId as e, deletePayablesIdFile as t, patchPayablesId as n, postPayables as r, postPayablesIdApprovePaymentOperation as i, postPayablesIdAttachFile as a, postPayablesIdCancel as o, postPayablesIdMarkAsPaid as s, postPayablesIdReject as c, postPayablesIdReopen as l, postPayablesIdSubmitForApproval as u, postPayablesIdValidate as d, postPayablesUploadFromFile as f, postPaymentIntentsIdCancel as p } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { useEmbedApi as m } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as h } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
1
+ import { getPayablesIdOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
3
  import "../../../shared/data-access/dist/index.js";
9
- import { beginApprovalRequestWatch as g, invalidateDeletedPayableQueries as _, invalidatePayableQueries as v, reconcileCancelledPaymentQueries as y, reconcileSubmittedForApprovalQueries as b, reconcileUploadedPayableOcr as x } from "./index6.js";
10
- import { useMutation as S } from "@tanstack/react-query";
11
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js
12
- function C() {
13
- let { client: e, organizationId: t } = m();
14
- return S({
15
- mutationFn: async ({ body: n }) => {
16
- let { data: i } = await r({
17
- client: e,
18
- headers: h(t),
19
- body: n,
20
- throwOnError: !0
21
- });
22
- return i;
23
- },
24
- onSuccess: async () => {
25
- await v({
26
- client: e,
27
- organizationId: t
28
- });
29
- }
30
- });
31
- }
32
- function w() {
33
- let { client: e, organizationId: t } = m();
34
- return S({
35
- mutationFn: async ({ path: r, body: i }) => {
36
- let { data: a } = await n({
37
- client: e,
38
- headers: h(t),
39
- path: r,
40
- body: i,
41
- throwOnError: !0
42
- });
43
- return a;
44
- },
45
- onSuccess: async (n, r) => {
46
- await v({
47
- client: e,
48
- organizationId: t,
49
- payableId: r.path.payable_id
50
- });
51
- }
52
- });
53
- }
54
- function T() {
55
- let { client: t, organizationId: n } = m();
56
- return S({
57
- mutationFn: async ({ path: r }) => {
58
- await e({
59
- client: t,
60
- headers: h(n),
61
- path: r,
62
- throwOnError: !0
63
- });
64
- },
65
- onSuccess: async (e, r) => {
66
- await _({
67
- client: t,
68
- organizationId: n,
69
- payableId: r.path.payable_id
70
- });
71
- }
72
- });
73
- }
74
- function E() {
75
- let { client: e, organizationId: t } = m();
76
- return S({
77
- mutationFn: async ({ file: r }) => {
78
- let { data: i } = await f({
79
- client: e,
80
- headers: h(t),
81
- body: { file: r },
82
- throwOnError: !0
83
- });
84
- if (i?.id && i.currency !== "USD") try {
85
- return await n({
86
- client: e,
87
- headers: h(t),
88
- path: { payable_id: i.id },
89
- body: { currency: "USD" },
90
- throwOnError: !0
91
- }), {
92
- ...i,
93
- currency: "USD"
94
- };
95
- } catch {}
96
- return i;
97
- },
98
- onSuccess: async (n) => {
99
- n?.id && x({
100
- client: e,
101
- organizationId: t,
102
- payableId: n.id
103
- }).catch(() => {});
104
- }
105
- });
106
- }
107
- function D() {
108
- let { client: e, organizationId: t } = m();
109
- return S({
110
- mutationFn: async ({ path: n, file: r }) => {
111
- let { data: i } = await a({
112
- client: e,
113
- headers: h(t),
114
- path: n,
115
- body: { file: r },
116
- throwOnError: !0
117
- });
118
- return i;
119
- },
120
- onSuccess: async (n, r) => {
121
- await v({
122
- client: e,
123
- organizationId: t,
124
- payableId: r.path.payable_id
125
- });
126
- }
127
- });
128
- }
129
- function O() {
130
- let { client: e, organizationId: n } = m();
131
- return S({
132
- mutationFn: async ({ path: r }) => {
133
- await t({
134
- client: e,
135
- headers: h(n),
136
- path: r,
137
- throwOnError: !0
138
- });
139
- },
140
- onSuccess: async (t, r) => {
141
- await v({
142
- client: e,
143
- organizationId: n,
144
- payableId: r.path.payable_id
145
- });
146
- }
147
- });
148
- }
149
- function k() {
150
- let { client: e, organizationId: t } = m();
151
- return S({ mutationFn: async ({ path: n }) => {
152
- let { data: r } = await d({
153
- client: e,
154
- headers: h(t),
155
- path: n,
156
- throwOnError: !0
157
- });
158
- return {
159
- id: r.id,
160
- validation_errors: r.validation_errors ?? []
161
- };
162
- } });
163
- }
164
- function A() {
165
- let { client: e, organizationId: t } = m();
166
- return S({
167
- onMutate: async ({ path: n }) => g({
168
- client: e,
169
- organizationId: t,
170
- payableId: n.payable_id
171
- }, { requireRoundMarker: !0 }),
172
- mutationFn: async ({ path: n }) => {
173
- let { data: r } = await u({
174
- client: e,
175
- headers: h(t),
176
- path: n,
177
- throwOnError: !0
178
- });
179
- return r;
180
- },
181
- onSuccess: async (n, r, i) => {
182
- let a = r.path.payable_id, o = n?.status === "approve_in_progress";
183
- await v({
184
- client: e,
185
- organizationId: t,
186
- payableId: a,
187
- includeApprovalRequests: !0
188
- }), o && i && b({
189
- client: e,
190
- organizationId: t,
191
- payableId: a,
192
- watch: i
193
- }).catch(() => {});
194
- }
195
- });
196
- }
197
- function j() {
198
- let { client: e, organizationId: t } = m();
199
- return S({
200
- mutationFn: async ({ path: n }) => {
201
- let { data: r } = await i({
202
- client: e,
203
- headers: h(t),
204
- path: n,
205
- throwOnError: !0
206
- });
207
- return r;
208
- },
209
- onSuccess: async (n, r) => {
210
- await v({
211
- client: e,
212
- organizationId: t,
213
- payableId: r.path.payable_id,
214
- includeApprovalRequests: !0
215
- });
216
- }
217
- });
218
- }
219
- function M() {
220
- let { client: e, organizationId: t } = m();
221
- return S({
222
- mutationFn: async ({ path: n }) => {
223
- let { data: r } = await c({
224
- client: e,
225
- headers: h(t),
226
- path: n,
227
- throwOnError: !0
228
- });
229
- return r;
230
- },
231
- onSuccess: async (n, r) => {
232
- await v({
233
- client: e,
234
- organizationId: t,
235
- payableId: r.path.payable_id,
236
- includeApprovalRequests: !0
237
- });
238
- }
239
- });
240
- }
241
- function N() {
242
- let { client: e, organizationId: t } = m();
243
- return S({
244
- mutationFn: async ({ path: n }) => {
245
- let { data: r } = await o({
246
- client: e,
247
- headers: h(t),
248
- path: n,
249
- throwOnError: !0
250
- });
251
- return r;
252
- },
253
- onSuccess: async (n, r) => {
254
- await v({
255
- client: e,
256
- organizationId: t,
257
- payableId: r.path.payable_id
258
- });
259
- }
260
- });
261
- }
262
- function P() {
263
- let { client: e, organizationId: t } = m();
264
- return S({
265
- mutationFn: async ({ path: n }) => {
266
- let { data: r } = await p({
267
- client: e,
268
- headers: h(t),
269
- path: n,
270
- throwOnError: !0
271
- });
272
- return r;
273
- },
274
- onSuccess: async (n, r) => {
275
- await v({
276
- client: e,
277
- organizationId: t,
278
- payableId: r.payableId
279
- }), y({
280
- client: e,
281
- organizationId: t,
282
- payableId: r.payableId
283
- }).catch(() => {});
284
- }
285
- });
286
- }
287
- function F() {
288
- let { client: e, organizationId: t } = m();
289
- return S({
290
- mutationFn: async ({ path: n }) => {
291
- let { data: r } = await l({
292
- client: e,
293
- headers: h(t),
294
- path: n,
295
- throwOnError: !0
296
- });
297
- return r;
298
- },
299
- onSuccess: async (n, r) => {
300
- await v({
301
- client: e,
302
- organizationId: t,
303
- payableId: r.path.payable_id
304
- });
305
- }
306
- });
307
- }
308
- function I() {
309
- let { client: e, organizationId: t } = m();
310
- return S({
311
- mutationFn: async ({ path: n, body: r }) => {
312
- let { data: i } = await s({
313
- client: e,
314
- headers: h(t),
315
- path: n,
316
- body: r,
317
- throwOnError: !0
318
- });
319
- return i;
320
- },
321
- onSuccess: async (n, r) => {
322
- await v({
323
- client: e,
324
- organizationId: t,
325
- payableId: r.path.payable_id
326
- });
327
- }
328
- });
5
+ var n = 2500;
6
+ function r({ client: n, organizationId: r, payableId: i }) {
7
+ return {
8
+ ...e({
9
+ client: n,
10
+ headers: t(r),
11
+ path: { payable_id: i }
12
+ }),
13
+ refetchInterval: (e) => e.state.data?.ocr_status === "processing" && 2500
14
+ };
329
15
  }
330
16
  //#endregion
331
- export { D as useAttachPayableFileMutation, N as useCancelPayableMutation, P as useCancelScheduledPaymentMutation, C as useCreatePayableMutation, O as useDeletePayableFileMutation, T as useDeletePayableMutation, j as useForceApprovePayableMutation, M as useForceRejectPayableMutation, I as useMarkPayableAsPaidMutation, F as useReopenPayableMutation, A as useSubmitPayableForApprovalMutation, w as useUpdatePayableMutation, E as useUploadPayableFromFileMutation, k as useValidatePayableMutation };
17
+ export { n as OCR_POLL_INTERVAL_MS, r as payableOcrQueryOptions };
@@ -1,8 +1,32 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
1
+ import { getPayablesId as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
2
+ import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
5
3
  import "../../../shared/data-access/dist/index.js";
6
- import "./index6.js";
7
- import "../../../shared/counterpart-management/data-access/dist/index.js";
8
- import "@tanstack/react-query";
4
+ import { invalidatePayableQueries as n } from "./index4.js";
5
+ import { nextPollInterval as r } from "./index5.js";
6
+ import { OCR_POLL_INTERVAL_MS as i } from "./index13.js";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js
8
+ var a = 9e4;
9
+ async function o({ client: o, organizationId: s, payableId: c }) {
10
+ let l = Date.now() + a, u = i, d = !1;
11
+ for (; !d && Date.now() < l;) {
12
+ await new Promise((e) => {
13
+ setTimeout(e, u);
14
+ }), u = r(u);
15
+ try {
16
+ let { data: n } = await e({
17
+ client: o,
18
+ headers: t(s),
19
+ path: { payable_id: c }
20
+ });
21
+ d = n?.ocr_status !== "processing";
22
+ } catch {}
23
+ }
24
+ return await n({
25
+ client: o,
26
+ organizationId: s,
27
+ payableId: c,
28
+ includeLineItems: !0
29
+ }), d;
30
+ }
31
+ //#endregion
32
+ export { o as reconcileUploadedPayableOcr };
@@ -1,35 +1,8 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { withAuthEpoch as e } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import "../../../shared/data-access/dist/index.js";
8
- import { payableOcrQueryOptions as n } from "./index4.js";
9
- import { suspectedPayableDuplicates as r } from "./index7.js";
10
- import { useQueries as i } from "@tanstack/react-query";
11
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js
12
- function a({ payableIds: a, enabled: o }) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = t(), f = !!(c && l) && (o === !0 || o === void 0);
14
- return i({
15
- queries: a.map((t) => ({
16
- ...e(n({
17
- client: s,
18
- organizationId: c,
19
- payableId: t
20
- }), {
21
- authEpoch: u,
22
- organizationPending: d
23
- }),
24
- enabled: f && !!t
25
- })),
26
- combine: (e) => e.map((e, t) => ({
27
- payableId: a[t],
28
- ocrStatus: e.data?.ocr_status,
29
- isError: e.isError,
30
- suspectedDuplicateOf: r(e.data).map((e) => e.matched_payable_id)
31
- }))
32
- });
33
- }
34
- //#endregion
35
- export { a as usePayableOcrQueries };
1
+ import "./index4.js";
2
+ import "./index6.js";
3
+ import "./index7.js";
4
+ import "./index8.js";
5
+ import "./index10.js";
6
+ import "./index11.js";
7
+ import "./index12.js";
8
+ import "./index14.js";
@@ -1,20 +1,98 @@
1
- import { getPayablesIdOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
- import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { postApprovalRequestsIdApprove as e, postApprovalRequestsIdReject as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getApprovalRequestsOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
+ import { useEmbedApi as i } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
+ import { organizationHeaders as a } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
3
10
  import "../../../shared/data-access/dist/index.js";
11
+ import { NEWEST_REQUEST_FIRST as o, PAYABLE_OBJECT_TYPE as s } from "./index2.js";
12
+ import { invalidateApprovalDecisionQueries as c, reconcileApprovalDecisionQueries as l } from "./index6.js";
13
+ import { beginApprovalRequestWatch as u } from "./index7.js";
14
+ import "./index15.js";
15
+ import { useMutation as d, useQuery as f } from "@tanstack/react-query";
4
16
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js
5
- var n = 1e3;
6
- function r({ client: r, organizationId: i, payableId: a }) {
7
- return {
8
- ...e({
9
- client: r,
10
- headers: t(i),
11
- path: { payable_id: a }
17
+ function p(e, { enabled: t } = {}) {
18
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationPending: p } = i(), m = !!(l && u && e) && t !== !1, h = n({
19
+ client: c,
20
+ headers: a(l),
21
+ query: {
22
+ object_id: e ?? "",
23
+ object_type: s,
24
+ order: o
25
+ }
26
+ });
27
+ return f({
28
+ ...r(h, {
29
+ authEpoch: d,
30
+ organizationPending: p
12
31
  }),
13
- refetchInterval: (e) => {
14
- let t = e.state.data;
15
- return !t || t.approval_policy_id || t.status !== "approve_in_progress" || !t.updated_at ? !1 : Date.now() - new Date(t.updated_at).getTime() < 1e4 && n;
32
+ enabled: m
33
+ });
34
+ }
35
+ async function m({ client: e, organizationId: t, payableId: n, requestStatus: r }) {
36
+ let i = n && r !== "waiting" && n ? await u({
37
+ client: e,
38
+ organizationId: t,
39
+ payableId: n
40
+ }) : void 0;
41
+ await c({
42
+ client: e,
43
+ organizationId: t,
44
+ payableId: n
45
+ }), n && i && l({
46
+ client: e,
47
+ organizationId: t,
48
+ payableId: n,
49
+ watch: i
50
+ }).catch(() => {});
51
+ }
52
+ function h() {
53
+ let { client: t, organizationId: n } = i();
54
+ return d({
55
+ mutationFn: async ({ path: r }) => {
56
+ let { data: i } = await e({
57
+ client: t,
58
+ headers: a(n),
59
+ path: r,
60
+ throwOnError: !0
61
+ });
62
+ return i;
63
+ },
64
+ onSuccess: async (e) => {
65
+ await m({
66
+ client: t,
67
+ organizationId: n,
68
+ payableId: e?.object_id,
69
+ requestStatus: e?.status
70
+ });
71
+ }
72
+ });
73
+ }
74
+ function g() {
75
+ let { client: e, organizationId: n } = i();
76
+ return d({
77
+ mutationFn: async ({ path: r, body: i }) => {
78
+ let { data: o } = await t({
79
+ client: e,
80
+ headers: a(n),
81
+ path: r,
82
+ body: i?.reject_reason ? i : void 0,
83
+ throwOnError: !0
84
+ });
85
+ return o;
86
+ },
87
+ onSuccess: async (t) => {
88
+ await m({
89
+ client: e,
90
+ organizationId: n,
91
+ payableId: t?.object_id,
92
+ requestStatus: t?.status
93
+ });
16
94
  }
17
- };
95
+ });
18
96
  }
19
97
  //#endregion
20
- export { r as payablePolicyAssignmentQueryOptions };
98
+ export { h as useApprovePayableApprovalRequestMutation, p as usePayableApprovalRequestsQuery, g as useRejectPayableApprovalRequestMutation };