@tesouro/embedded-components-react 0.3.20 → 0.3.23

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 (243) hide show
  1. package/dist/index.css +9 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/monite-sdk.js +18 -18
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +15 -15
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +31 -32
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +42 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +158 -43
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +33 -4
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -16
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +45 -12
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +4 -64
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +13 -26
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +14 -62
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +56 -123
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +18 -3
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +15 -10
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +61 -40
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +130 -50
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +20 -4
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +38 -69
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +48 -46
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +5 -93
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +71 -34
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +48 -139
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +91 -66
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +22 -5
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +34 -22
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +144 -210
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +63 -209
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +21 -103
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +209 -12
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +211 -44
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +104 -30
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +12 -165
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +47 -35
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +29 -99
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +64 -5
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +166 -12
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +34 -243
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +104 -4
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +12 -27
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +259 -81
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +4 -145
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +33 -3
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +82 -2
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +155 -37
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +2 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +2 -6
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +2 -6
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +43 -9
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +1 -94
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -3
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -5
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +85 -13
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +3 -59
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +9 -3
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +19 -120
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +56 -8
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +3 -32
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +3 -46
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +116 -15
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +8 -28
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +43 -83
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +19 -47
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +27 -249
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +82 -109
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +47 -206
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +253 -4
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +111 -6
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +6 -39
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +197 -102
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -0
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +6 -23
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +114 -0
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +1 -0
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +25 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -24
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +3 -162
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +9 -6
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +10 -11
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +123 -8
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -170
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +18 -2
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +7 -11
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +163 -82
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +1 -1
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +14 -0
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +89 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -0
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +1 -1
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +16 -20
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +13 -12
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +19 -97
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +98 -42
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +43 -27
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +30 -1
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +1 -17
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +11 -10
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +14 -4
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +4 -13
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +7 -7
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +18 -9
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +8 -105
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +102 -35
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +36 -45
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +44 -71
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +72 -100
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +99 -43
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +35 -178
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +171 -125
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +134 -123
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +125 -73
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +63 -232
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +248 -8
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +8 -6
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +5 -456
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +455 -21
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +17 -12
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +13 -49
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +51 -43
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +46 -14
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +13 -41
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +39 -144
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +143 -112
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +114 -39
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +33 -25
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +32 -19
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +3 -3
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +19 -21
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +20 -72
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +73 -17
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +18 -172
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +149 -116
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +136 -30
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +31 -115
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +116 -19
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +10 -36
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +46 -14
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +13 -23
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +21 -25
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +26 -36
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +36 -77
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +77 -50
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +50 -33
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +34 -89
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +86 -48
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +54 -1
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +1 -40
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +40 -1
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +0 -135
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +129 -102
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +105 -50
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +48 -779
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +780 -87
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +84 -97
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +105 -6
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +6 -27
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +23 -11
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +13 -2
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +2 -25
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +25 -14
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +14 -171
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +163 -200
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +204 -78
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +82 -17
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +17 -158
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +146 -85
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +95 -42
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +46 -4
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +4 -16
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +13 -24
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +27 -1
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +0 -186
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +186 -0
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +0 -42
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +41 -3
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +5 -24
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +20 -73
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +74 -16
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +16 -19
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +19 -5
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +4 -8
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +10 -11
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +11 -131
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +129 -4
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +4 -4
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +8 -5
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +4 -221
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +219 -11
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +12 -34
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +32 -181
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +168 -189
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +192 -88
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +97 -61
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +63 -54
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +46 -83
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +91 -40
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +39 -75
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +63 -71
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +85 -12
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +12 -24
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +25 -16
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +14 -2
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +4 -23
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +23 -0
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +1 -24
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +24 -4
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +4 -13
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +9 -13
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +13 -4
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +4 -8
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +8 -4
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +8 -6
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +6 -22
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +17 -68
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +66 -113
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +104 -64
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +72 -138
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +144 -28
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +28 -16
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +14 -87
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +91 -3
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +3 -26
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index612.js +22 -67
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index613.js +71 -1
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index614.js +0 -65
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +66 -29
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +30 -2
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index617.js +2 -34
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +33 -15
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index619.js +14 -29
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index620.js +29 -26
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index621.js +30 -2
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index622.js +2 -97
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index623.js +97 -0
  239. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +1 -1
  240. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  241. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
  242. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  243. package/package.json +1 -1
@@ -2,44 +2,162 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
6
- import "../../../shared/feature/dist/index.js";
7
- import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "./index47.js";
8
- import { Payables as r } from "../../../monite-sdk/dist/index443.js";
9
- import "../../../monite-sdk/dist/index.js";
10
- import { MoniteRegionProvider as i } from "../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
11
- import "../../../shared/monite-wrapper/feature/dist/index.js";
12
- import { useEffect as a } from "react";
13
- import { jsx as o } from "react/jsx-runtime";
5
+ import { useAllLedgerAccountsQuery as e } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
6
+ import "../../../shared/data-access/dist/index.js";
7
+ import { resolveAmountDueMinorUnits as t } from "./index6.js";
8
+ import { resolveVendor as n } from "./index7.js";
9
+ import { BillDecisionDialog as r } from "../../ui/dist/index47.js";
10
+ import { BillDetailsSheet as i } from "../../ui/dist/index53.js";
11
+ import { BillDuplicateNotice as a } from "../../ui/dist/index57.js";
12
+ import { MarkAsPaidDialog as o } from "../../ui/dist/index83.js";
13
+ import "../../ui/dist/index.js";
14
+ import { useAllPayableLineItemsQuery as s } from "../../data-access/dist/index7.js";
15
+ import { usePayableQuery as c } from "../../data-access/dist/index13.js";
16
+ import "../../data-access/dist/index.js";
17
+ import { PayBillFlow as l } from "./index13.js";
18
+ import "./index14.js";
19
+ import { mergeMarkAsPaidFlowLabels as u } from "./index2.js";
20
+ import { useMarkAsPaidFlow as d } from "./index4.js";
21
+ import "./index5.js";
22
+ import { mergeDecisionDialogCopy as f } from "./index29.js";
23
+ import { useApprovalPolicyCardView as p } from "./index19.js";
24
+ import { useCurrentApprovalRequestId as m } from "./index20.js";
25
+ import { usePayableDetailActions as h } from "./index22.js";
26
+ import { useScheduledPayment as g } from "./index23.js";
27
+ import { BILL_DETAILS_LABELS_EN as _ } from "./index46.js";
28
+ import { mapPayableToBillDetails as v } from "./index47.js";
29
+ import { useMemo as y, useRef as b } from "react";
30
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
14
31
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js
15
- var s = (e) => e;
16
- function c(n) {
17
- let i = e();
18
- return a(() => {
19
- i(t.Mounted);
20
- }, [i]), /* @__PURE__ */ o(r, { ...n });
32
+ function w(e) {
33
+ return !!(e?.bank_account?.account_holder_name && e.bank_account.routing_number && e.bank_account.account_number);
21
34
  }
22
- function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, pageTitleComponent: v = s, ...y }) {
23
- return /* @__PURE__ */ o(i, {
24
- widgetName: n,
25
- baseUrl: e,
26
- widgetToken: t,
27
- organizationId: r,
28
- configClient: a,
29
- gatewayRouting: l,
30
- linkComponent: u,
31
- implementation: d,
32
- uiFramework: f,
33
- errorFallback: p,
34
- onError: m,
35
- finopsThemeColors: h,
36
- analytics: g,
37
- disclosuresAcceptance: _,
38
- children: /* @__PURE__ */ o(c, {
39
- ...y,
40
- pageTitleComponent: v
41
- })
42
- });
35
+ function T({ open: T, onOpenChange: E, payableId: D, onClose: O, onExpand: k, testId: A, labels: j, poweredByBankName: M, isPossibleDuplicate: N }) {
36
+ let P = y(() => ({
37
+ ..._,
38
+ ...j,
39
+ sheet: {
40
+ ..._.sheet,
41
+ ...j?.sheet,
42
+ statusBadge: {
43
+ ..._.sheet.statusBadge,
44
+ ...j?.sheet?.statusBadge
45
+ },
46
+ approvalPolicy: {
47
+ ..._.sheet.approvalPolicy,
48
+ ...j?.sheet?.approvalPolicy
49
+ }
50
+ },
51
+ decisionDialog: f(_.decisionDialog, j?.decisionDialog),
52
+ approvalPolicyCopy: {
53
+ ..._.approvalPolicyCopy,
54
+ ...j?.approvalPolicyCopy
55
+ },
56
+ markAsPaid: u(j?.markAsPaid),
57
+ actionSuccess: {
58
+ ..._.actionSuccess,
59
+ ...j?.actionSuccess
60
+ }
61
+ }), [j]), F = c(D), I = s(D), L = e(), R = F.data, z = b(null), B = m({
62
+ payableId: D,
63
+ status: R?.status
64
+ }), V = p({
65
+ payableId: D,
66
+ approvalPolicyId: R?.approval_policy_id,
67
+ copy: P.approvalPolicyCopy
68
+ }), H = g({
69
+ payableId: D,
70
+ scheduledPaymentDate: R?.scheduled_payment_date
71
+ }), U = d({
72
+ payableId: D,
73
+ amountDueMinorUnits: t(R) ?? 0,
74
+ amountToPayMinorUnits: R?.amount_to_pay ?? void 0,
75
+ currencyCode: R?.currency ?? void 0,
76
+ dueDate: R?.due_date,
77
+ hasScheduledPayment: H.hasScheduledPayment,
78
+ testId: A,
79
+ labels: P.markAsPaid
80
+ }), { actions: W, decisionDialog: G } = h({
81
+ payableId: R ? D : void 0,
82
+ status: R?.status,
83
+ currentApprovalRequestId: B.id,
84
+ isPolicyApprover: B.isPolicyApprover,
85
+ hasWaitingRequest: B.hasWaitingRequest,
86
+ hasScheduledPayment: H.hasScheduledPayment,
87
+ scheduledPaymentRecordId: H.scheduledPaymentRecordId,
88
+ isScheduledPaymentUnknown: H.isResolving,
89
+ pendingApprovers: V.pendingApprovers,
90
+ arePendingApproversUnknown: V.isLoading,
91
+ labels: {
92
+ payBill: P.sheet.payButton,
93
+ markAsPaid: P.sheet.markAsPaidButton,
94
+ reject: P.sheet.rejectButton,
95
+ approve: P.sheet.approveButton,
96
+ cancel: P.sheet.cancelButton,
97
+ cancelScheduledPayment: P.sheet.cancelScheduledPaymentButton,
98
+ reopen: P.sheet.reopenButton,
99
+ forceApprove: P.sheet.forceApproveButton,
100
+ forceReject: P.sheet.forceRejectButton,
101
+ policyOverridesHeading: P.sheet.policyOverridesGroup,
102
+ decisionDialog: P.decisionDialog,
103
+ actionError: P.actionError,
104
+ actionSuccess: P.actionSuccess
105
+ },
106
+ isMarkAsPaidPending: U.isPending,
107
+ onMarkAsPaidSelect: U.open,
108
+ onPayBillSelect: () => {
109
+ if (!w(n(R)) && k) {
110
+ k();
111
+ return;
112
+ }
113
+ z.current?.open();
114
+ }
115
+ }), K = H.hasScheduledPayment && H.scheduledDateLabel ? /* @__PURE__ */ S("p", {
116
+ className: "ttw:text-sm ttw:text-muted-foreground",
117
+ children: P.scheduledSummary(H.scheduledDateLabel)
118
+ }) : void 0, q = N ? /* @__PURE__ */ S(a, {}) : void 0, J = q || K ? /* @__PURE__ */ C(x, { children: [q, K] }) : void 0, Y = y(() => R ? v({
119
+ payable: R,
120
+ lineItems: I.lineItems,
121
+ ledgerAccounts: L.data?.data ?? [],
122
+ labels: P,
123
+ hasScheduledPayment: H.hasScheduledPayment
124
+ }) : void 0, [
125
+ R,
126
+ I.lineItems,
127
+ L.data,
128
+ P,
129
+ H.hasScheduledPayment
130
+ ]), X = F.isLoading || I.isResolving || L.isResolving, Z = F.isError || I.isError || L.isError;
131
+ return /* @__PURE__ */ C(x, { children: [
132
+ /* @__PURE__ */ S(i, {
133
+ open: T,
134
+ onOpenChange: E,
135
+ details: Y,
136
+ actions: W,
137
+ approvalPolicy: V.view,
138
+ isLoading: X,
139
+ isError: Z,
140
+ notice: J,
141
+ onClose: O,
142
+ onExpand: k,
143
+ testId: A,
144
+ labels: P.sheet
145
+ }),
146
+ /* @__PURE__ */ S(r, {
147
+ ...G,
148
+ labels: { cancelButton: P.decisionDialog.cancelButton },
149
+ testId: A ? `${A}-decision-dialog` : void 0,
150
+ confirmTestId: A ? `${A}-decision-confirm` : void 0,
151
+ reasonTestId: A ? `${A}-decision-reason` : void 0,
152
+ reasonFieldId: A ? `${A}-decision-reason-field` : void 0
153
+ }),
154
+ /* @__PURE__ */ S(o, { ...U.dialogProps }),
155
+ R ? /* @__PURE__ */ S(l, {
156
+ ref: z,
157
+ payable: R,
158
+ poweredByBankName: M
159
+ }) : null
160
+ ] });
43
161
  }
44
162
  //#endregion
45
- export { l as BillPayWidgetMonite, l as default };
163
+ export { T as BillDetailsContainer, T as default };
@@ -1 +1,3 @@
1
+ import "./index46.js";
2
+ import "./index47.js";
1
3
  import "./index48.js";
@@ -1,6 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js
2
- function e(e) {
3
- return e ? `••••${e.slice(-4)}` : void 0;
4
- }
5
- //#endregion
6
- export { e as maskAccountNumber };
1
+ import "./index2.js";
2
+ import "./index4.js";
@@ -1,8 +1,4 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js
2
- var e = (e) => [
3
- "bill-pay",
4
- "upload-queue",
5
- e ?? ""
6
- ];
2
+ var e = { Mounted: "bill_pay_widget.mounted" }, t = "bill_pay_widget";
7
3
  //#endregion
8
- export { e as billPayUploadQueueKey };
4
+ export { e as BillPayWidgetAnalyticsEvent, t as WIDGET_NAME };
@@ -1,11 +1,45 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
6
+ import "../../../shared/feature/dist/index.js";
7
+ import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "./index50.js";
8
+ import { Payables as r } from "../../../monite-sdk/dist/index443.js";
9
+ import "../../../monite-sdk/dist/index.js";
10
+ import { MoniteRegionProvider as i } from "../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
11
+ import "../../../shared/monite-wrapper/feature/dist/index.js";
12
+ import { useEffect as a } from "react";
13
+ import { jsx as o } from "react/jsx-runtime";
1
14
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.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
- failedCaption: (e) => `${e} failed to upload`,
7
- tooManyFilesError: (e) => `You can only upload up to ${e} files at a time`,
8
- 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`
9
- };
15
+ var s = (e) => e;
16
+ function c(n) {
17
+ let i = e();
18
+ return a(() => {
19
+ i(t.Mounted);
20
+ }, [i]), /* @__PURE__ */ o(r, { ...n });
21
+ }
22
+ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, pageTitleComponent: v = s, ...y }) {
23
+ return /* @__PURE__ */ o(i, {
24
+ widgetName: n,
25
+ baseUrl: e,
26
+ widgetToken: t,
27
+ organizationId: r,
28
+ configClient: a,
29
+ gatewayRouting: l,
30
+ linkComponent: u,
31
+ implementation: d,
32
+ uiFramework: f,
33
+ errorFallback: p,
34
+ onError: m,
35
+ finopsThemeColors: h,
36
+ analytics: g,
37
+ disclosuresAcceptance: _,
38
+ children: /* @__PURE__ */ o(c, {
39
+ ...y,
40
+ pageTitleComponent: v
41
+ })
42
+ });
43
+ }
10
44
  //#endregion
11
- export { e as BILL_UPLOAD_QUEUE_LABELS_EN };
45
+ export { l as BillPayWidgetMonite, l as default };
@@ -1,94 +1 @@
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 { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import "../../../shared/ui/dist/index.js";
8
- import { useUploadPayableFromFileMutation as n } from "../../data-access/dist/index10.js";
9
- import { usePayableOcrQueries as r } from "../../data-access/dist/index12.js";
10
- import "../../data-access/dist/index.js";
11
- import { billPayUploadQueueKey as i } from "./index50.js";
12
- import { BILL_UPLOAD_QUEUE_LABELS_EN as a } from "./index51.js";
13
- import { useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
14
- import { useQuery as u, useQueryClient as d } from "@tanstack/react-query";
15
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js
16
- function f({ onOpenBill: f, labels: p } = {}) {
17
- let m = {
18
- ...a,
19
- ...p
20
- }, h = p?.tooManyFilesError ?? a.tooManyFilesError, g = p?.remainingCapacityError ?? a.remainingCapacityError, { organizationId: _ } = t(), v = d(), y = c(() => i(_), [_]), b = n(), [x, S] = l(!1), { data: C = [] } = u({
21
- queryKey: y,
22
- queryFn: () => v.getQueryData(y) ?? [],
23
- staleTime: Infinity,
24
- gcTime: Infinity,
25
- initialData: []
26
- }), w = o((e, t) => {
27
- v.setQueryData(y, (n) => (n ?? []).map((n) => n.localId === e ? {
28
- ...n,
29
- ...t
30
- } : n));
31
- }, [v, y]), T = o((t) => {
32
- let n = (v.getQueryData(y) ?? []).filter((e) => e.status === "uploading").length;
33
- if (t.length + n > 10) {
34
- e.error(n > 0 ? g(10 - n) : h(10));
35
- return;
36
- }
37
- S(!1);
38
- for (let e of t) {
39
- let t = crypto.randomUUID();
40
- v.setQueryData(y, (n) => [...n ?? [], {
41
- localId: t,
42
- fileName: e.name,
43
- status: "uploading"
44
- }]), b.mutateAsync({ file: e }).then((e) => w(t, { payableId: e?.id })).catch(() => w(t, { status: "failed" }));
45
- }
46
- }, [
47
- w,
48
- v,
49
- y,
50
- g,
51
- h,
52
- b
53
- ]), E = r({ payableIds: C.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
54
- s(() => {
55
- for (let { payableId: e, ocrStatus: t, isError: n } of E) {
56
- let r = C.find((t) => t.payableId === e && t.status === "uploading");
57
- r && (t === "success" ? w(r.localId, { status: "ready" }) : (n || t === "error" || t === "canceled") && w(r.localId, { status: "failed" }));
58
- }
59
- }, [
60
- C,
61
- E,
62
- w
63
- ]);
64
- let D = C.filter((e) => e.status === "uploading"), O = C.filter((e) => e.status === "ready"), k = C.filter((e) => e.status === "failed"), A = (e) => ({
65
- id: e.localId,
66
- fileName: e.fileName,
67
- status: e.status,
68
- onOpen: e.status === "ready" && e.payableId && f ? () => f(e.payableId) : void 0
69
- }), j = D.length ? [{
70
- id: "in-progress",
71
- items: C.map(A)
72
- }] : [...O.length ? [{
73
- id: "ready",
74
- caption: m.readyCaption(O.length),
75
- items: O.map(A)
76
- }] : [], ...k.length ? [{
77
- id: "failed",
78
- caption: m.failedCaption(k.length),
79
- items: k.map(A)
80
- }] : []], M = D.length ? m.uploadingSummary(C.length) : O.length ? m.completeSummary(O.length) : m.failedCaption(k.length), N = o(() => {
81
- v.setQueryData(y, []);
82
- }, [v, y]);
83
- return {
84
- enqueue: T,
85
- sections: j,
86
- summaryLabel: M,
87
- collapsed: x,
88
- onToggleCollapsed: o(() => S((e) => !e), []),
89
- onClose: N,
90
- isVisible: C.length > 0
91
- };
92
- }
93
- //#endregion
94
- export { f as useBillUploadQueue };
1
+ import "./index51.js";
@@ -1,3 +1,8 @@
1
- import "./index50.js";
2
- import "./index51.js";
3
- import "./index52.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js
2
+ var e = (e) => [
3
+ "bill-pay",
4
+ "upload-queue",
5
+ e ?? ""
6
+ ];
7
+ //#endregion
8
+ export { e as billPayUploadQueueKey };
@@ -1,9 +1,11 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js
2
2
  var e = {
3
- duplicateBadge: "Duplicate?",
4
- existingBadge: "Existing",
5
- selectRow: ({ vendorLabel: e, designation: t, invoiceNumberLabel: n, addedOnLabel: r }) => `Select bill — ${e}, ${t}, invoice ${n}, added ${r}`,
6
- openRow: ({ vendorLabel: e, designation: t, invoiceNumberLabel: n, addedOnLabel: r }) => `View bill — ${e}, ${t}, invoice ${n}, added ${r}`
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
+ failedCaption: (e) => `${e} failed to upload`,
7
+ tooManyFilesError: (e) => `You can only upload up to ${e} files at a time`,
8
+ 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`
7
9
  };
8
10
  //#endregion
9
- export { e as DUPLICATE_BILLS_LABELS_EN };
11
+ export { e as BILL_UPLOAD_QUEUE_LABELS_EN };
@@ -2,21 +2,93 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useCallback as e, useMemo as t, useState as n } from "react";
5
+ import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import "../../../shared/ui/dist/index.js";
8
+ import { useUploadPayableFromFileMutation as n } from "../../data-access/dist/index10.js";
9
+ import { usePayableOcrQueries as r } from "../../data-access/dist/index12.js";
10
+ import "../../data-access/dist/index.js";
11
+ import { billPayUploadQueueKey as i } from "./index53.js";
12
+ import { BILL_UPLOAD_QUEUE_LABELS_EN as a } from "./index54.js";
13
+ import { useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
14
+ import { useQuery as u, useQueryClient as d } from "@tanstack/react-query";
6
15
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js
7
- function r({ rowIds: r }) {
8
- let [i, a] = n([]), o = e((e) => {
9
- a((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
10
- }, []), s = t(() => r.filter((e) => i.includes(e)), [r, i]), c = r.length > 0 && s.length === r.length, l = e(() => {
11
- a(c ? [] : [...r]);
12
- }, [c, r]);
16
+ function f({ onOpenBill: f, labels: p } = {}) {
17
+ let m = {
18
+ ...a,
19
+ ...p
20
+ }, h = p?.tooManyFilesError ?? a.tooManyFilesError, g = p?.remainingCapacityError ?? a.remainingCapacityError, { organizationId: _ } = t(), v = d(), y = c(() => i(_), [_]), b = n(), [x, S] = l(!1), { data: C = [] } = u({
21
+ queryKey: y,
22
+ queryFn: () => v.getQueryData(y) ?? [],
23
+ staleTime: Infinity,
24
+ gcTime: Infinity,
25
+ initialData: []
26
+ }), w = o((e, t) => {
27
+ v.setQueryData(y, (n) => (n ?? []).map((n) => n.localId === e ? {
28
+ ...n,
29
+ ...t
30
+ } : n));
31
+ }, [v, y]), T = o((t) => {
32
+ let n = (v.getQueryData(y) ?? []).filter((e) => e.status === "uploading").length;
33
+ if (t.length + n > 10) {
34
+ e.error(n > 0 ? g(10 - n) : h(10));
35
+ return;
36
+ }
37
+ S(!1);
38
+ for (let e of t) {
39
+ let t = crypto.randomUUID();
40
+ v.setQueryData(y, (n) => [...n ?? [], {
41
+ localId: t,
42
+ fileName: e.name,
43
+ status: "uploading"
44
+ }]), b.mutateAsync({ file: e }).then((e) => w(t, { payableId: e?.id })).catch(() => w(t, { status: "failed" }));
45
+ }
46
+ }, [
47
+ w,
48
+ v,
49
+ y,
50
+ g,
51
+ h,
52
+ b
53
+ ]), E = r({ payableIds: C.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
54
+ s(() => {
55
+ for (let { payableId: e, ocrStatus: t, isError: n } of E) {
56
+ let r = C.find((t) => t.payableId === e && t.status === "uploading");
57
+ r && (t === "success" ? w(r.localId, { status: "ready" }) : (n || t === "error" || t === "canceled") && w(r.localId, { status: "failed" }));
58
+ }
59
+ }, [
60
+ C,
61
+ E,
62
+ w
63
+ ]);
64
+ let D = C.filter((e) => e.status === "uploading"), O = C.filter((e) => e.status === "ready"), k = C.filter((e) => e.status === "failed"), A = (e) => ({
65
+ id: e.localId,
66
+ fileName: e.fileName,
67
+ status: e.status,
68
+ onOpen: e.status === "ready" && e.payableId && f ? () => f(e.payableId) : void 0
69
+ }), j = D.length ? [{
70
+ id: "in-progress",
71
+ items: C.map(A)
72
+ }] : [...O.length ? [{
73
+ id: "ready",
74
+ caption: m.readyCaption(O.length),
75
+ items: O.map(A)
76
+ }] : [], ...k.length ? [{
77
+ id: "failed",
78
+ caption: m.failedCaption(k.length),
79
+ items: k.map(A)
80
+ }] : []], M = D.length ? m.uploadingSummary(C.length) : O.length ? m.completeSummary(O.length) : m.failedCaption(k.length), N = o(() => {
81
+ v.setQueryData(y, []);
82
+ }, [v, y]);
13
83
  return {
14
- selectedIds: s,
15
- isSelected: e((e) => i.includes(e), [i]),
16
- toggleRow: o,
17
- toggleAllRows: l,
18
- selectAllChecked: c ? !0 : s.length > 0 && "indeterminate"
84
+ enqueue: T,
85
+ sections: j,
86
+ summaryLabel: M,
87
+ collapsed: x,
88
+ onToggleCollapsed: o(() => S((e) => !e), []),
89
+ onClose: N,
90
+ isVisible: C.length > 0
19
91
  };
20
92
  }
21
93
  //#endregion
22
- export { r as useDuplicateBillsSelection };
94
+ export { f as useBillUploadQueue };
@@ -1,59 +1,3 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { DuplicateBillsDialog as e } from "../../ui/dist/index71.js";
6
- import "../../ui/dist/index.js";
7
- import { DUPLICATE_BILLS_LABELS_EN as t } from "./index54.js";
8
- import { useDuplicateBillsSelection as n } from "./index55.js";
9
- import { useMemo as r } from "react";
10
- import { jsx as i } from "react/jsx-runtime";
11
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js
12
- var a = [];
13
- function o({ open: o, onOpenChange: s, bills: c = a, canManageDuplicates: l = !0, onOpenBill: u, labels: d, dialogLabels: f }) {
14
- let p = r(() => ({
15
- ...t,
16
- ...d
17
- }), [d]), m = r(() => c.map((e) => e.id), [c]), { selectedIds: h, isSelected: g, toggleRow: _, toggleAllRows: v, selectAllChecked: y } = n({ rowIds: m }), b = r(() => c.map((e) => {
18
- let t = e.isPossibleDuplicate ? p.duplicateBadge : p.existingBadge, n = {
19
- vendorLabel: e.vendorLabel,
20
- designation: t,
21
- invoiceNumberLabel: e.invoiceNumberLabel,
22
- addedOnLabel: e.addedOnLabel
23
- };
24
- return {
25
- ...e,
26
- duplicateBadge: {
27
- label: t,
28
- tone: e.isPossibleDuplicate ? "warning" : "success"
29
- },
30
- selectLabel: p.selectRow(n),
31
- openLabel: p.openRow(n),
32
- isSelected: g(e.id),
33
- onToggleSelected: () => _(e.id),
34
- onOpen: () => u?.(e.id)
35
- };
36
- }), [
37
- c,
38
- g,
39
- p,
40
- _,
41
- u
42
- ]), x = () => {
43
- if (h.length === 0) throw Error("Duplicate review action taken with no bills selected — keep and cancel both need a subject.");
44
- s(!1);
45
- };
46
- return /* @__PURE__ */ i(e, {
47
- open: o,
48
- onOpenChange: s,
49
- rows: b,
50
- selectAllChecked: y,
51
- onToggleAllRows: v,
52
- onKeepSelected: l ? x : void 0,
53
- onCancelDuplicates: l ? x : void 0,
54
- isActionDisabled: h.length === 0,
55
- labels: f
56
- });
57
- }
58
- //#endregion
59
- export { o as DuplicateBillsContainer, o as default };
1
+ import "./index53.js";
2
+ import "./index54.js";
3
+ import "./index55.js";
@@ -1,3 +1,9 @@
1
- import "./index54.js";
2
- import "./index55.js";
3
- import "./index56.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js
2
+ var e = {
3
+ duplicateBadge: "Duplicate?",
4
+ existingBadge: "Existing",
5
+ selectRow: ({ vendorLabel: e, designation: t, invoiceNumberLabel: n, addedOnLabel: r }) => `Select bill — ${e}, ${t}, invoice ${n}, added ${r}`,
6
+ openRow: ({ vendorLabel: e, designation: t, invoiceNumberLabel: n, addedOnLabel: r }) => `View bill — ${e}, ${t}, invoice ${n}, added ${r}`
7
+ };
8
+ //#endregion
9
+ export { e as DUPLICATE_BILLS_LABELS_EN };