@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
@@ -1,15 +1,169 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import "../../../shared/ui/dist/index.js";
7
+ import { useReplacePayableLineItemsMutation as t } from "../../data-access/dist/index7.js";
8
+ import { useCreatePayableMutation as n, useSubmitPayableForApprovalMutation as r, useUpdatePayableMutation as i, useValidatePayableMutation as a } from "../../data-access/dist/index10.js";
9
+ import "../../data-access/dist/index.js";
10
+ import { BILL_CREATE_MESSAGE_LABELS_EN as o } from "./index31.js";
11
+ import { encodeFileToBase64 as s } from "./index37.js";
12
+ import { mapBillFormToPayload as c, mapLineItemsToPayload as l } from "./index38.js";
13
+ import { validateBillCompleteness as u, validateBillTotals as d, validateLineItems as f } from "./index39.js";
14
+ import { useCallback as p, useRef as m, useState as h } from "react";
1
15
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js
2
- var e = {
3
- dialog: "bill-pay-bill-create-dialog",
4
- vendorSection: "bill-pay-bill-create-vendor",
5
- lineItems: "bill-pay-bill-create-line-items",
6
- documentPanel: "bill-pay-bill-create-document",
7
- duplicateNotice: "bill-pay-bill-create-duplicate-notice",
8
- decisionDialog: "bill-pay-bill-decision-dialog",
9
- decisionConfirm: "bill-pay-bill-decision-confirm",
10
- decisionReason: "bill-pay-bill-decision-reason",
11
- deleteDraftDialog: "bill-pay-bill-delete-draft-dialog",
12
- deleteDraftConfirm: "bill-pay-bill-delete-draft-confirm"
16
+ var g = {
17
+ document_id: "invoiceNumber",
18
+ issued_at: "invoiceDate",
19
+ due_date: "dueDate",
20
+ counterpart_id: "vendor"
13
21
  };
22
+ function _(e) {
23
+ return e.type === "type_error.none.not_allowed" || e.msg === "none is not an allowed value";
24
+ }
25
+ function v(e, t = o) {
26
+ let n = {}, r = [];
27
+ for (let i of e) {
28
+ let e = i.loc[0] ?? t.unknownValidationField, a = g[e], o = _(i) ? t.requiredField : i.msg;
29
+ a ? n[a] = o : r.push(t.unmappedValidationError(e, o));
30
+ }
31
+ return r.length && (n.form = r.join(" ")), n;
32
+ }
33
+ function y(e, t) {
34
+ if (!e && !t) return;
35
+ let n = {}, r = /* @__PURE__ */ new Set([...Object.keys(e ?? {}), ...Object.keys(t ?? {})]);
36
+ for (let i of r) n[i] = {
37
+ ...e?.[i],
38
+ ...t?.[i]
39
+ };
40
+ return n;
41
+ }
42
+ function b({ payableId: g, form: _, counterpartId: b, clearCounterpart: x, prepareVendorForSave: S, onSaved: C, onPayableCreated: w, onDraftSaved: T, onFinalized: E, labels: D }) {
43
+ let O = {
44
+ ...o,
45
+ ...D
46
+ }, [k, A] = h(), j = g ?? k, [M, N] = h(), P = p(() => N(void 0), []), [F, I] = h(), L = m(!1), R = n(), z = i(), B = t(), V = a(), H = r(), U = p(() => {
47
+ let t = f(_.lineItems, O), n = d(_.discount, _.tax, _.totalOverride, O);
48
+ return _.setLineItemErrors(t), !t && !n || (t ? (_.setErrors(void 0), e.error(O.lineItemsNeedAttention)) : _.setErrors(n), !1);
49
+ }, [_, O]), W = p(async (e) => {
50
+ let t = !j && M ? {
51
+ base64EncodedFile: await s(M),
52
+ fileName: M.name
53
+ } : void 0, n = c({
54
+ values: _.values,
55
+ counterpartId: b,
56
+ clearCounterpart: x,
57
+ counterpartBankAccountId: e,
58
+ editedTotals: _.isTotalsDirty ? {
59
+ discount: _.discount,
60
+ tax: _.tax,
61
+ total: _.totalOverride
62
+ } : void 0,
63
+ document: t
64
+ }), r = j;
65
+ if (r ? await z.mutateAsync({
66
+ path: { payable_id: r },
67
+ body: n
68
+ }) : (r = (await R.mutateAsync({ body: n }))?.id, r && (A(r), w?.(r), t && N(void 0))), !r) throw Error("Payable was created without an id");
69
+ return await B.mutateAsync({
70
+ path: { payable_id: r },
71
+ body: { data: l(_.lineItems) }
72
+ }), r;
73
+ }, [
74
+ b,
75
+ x,
76
+ R,
77
+ _.discount,
78
+ _.isTotalsDirty,
79
+ _.lineItems,
80
+ _.tax,
81
+ _.totalOverride,
82
+ _.values,
83
+ w,
84
+ j,
85
+ B,
86
+ M,
87
+ z
88
+ ]);
89
+ return {
90
+ saveDraft: p(async () => {
91
+ if (!L.current && U()) {
92
+ L.current = !0, I("draft");
93
+ try {
94
+ let t = await S?.();
95
+ if (t && !t.ok) return;
96
+ let n = await W(t?.counterpartBankAccountId);
97
+ _.setErrors(void 0), C?.(n), T?.(n), e.success(O.draftSaved);
98
+ } catch {
99
+ _.setErrors({ form: O.saveFailed });
100
+ } finally {
101
+ I(void 0), L.current = !1;
102
+ }
103
+ }
104
+ }, [
105
+ _,
106
+ U,
107
+ O.draftSaved,
108
+ O.saveFailed,
109
+ T,
110
+ C,
111
+ S,
112
+ W
113
+ ]),
114
+ finalize: p(async () => {
115
+ if (L.current) return;
116
+ let t = f(_.lineItems, O), n = d(_.discount, _.tax, _.totalOverride, O), { formErrors: r, lineItemErrors: i } = u(_.values, b, _.lineItems, O), a = y(i, t);
117
+ _.setLineItemErrors(a);
118
+ let o = {
119
+ ...r,
120
+ ...n
121
+ };
122
+ if (_.setErrors(Object.keys(o).length ? o : void 0), t && e.error(O.lineItemsNeedAttention), !(a || Object.keys(o).length)) {
123
+ L.current = !0, I("finalize");
124
+ try {
125
+ let t;
126
+ try {
127
+ let e = await S?.();
128
+ if (e && !e.ok) return;
129
+ t = await W(e?.counterpartBankAccountId);
130
+ } catch {
131
+ _.setErrors({ form: O.saveFailed });
132
+ return;
133
+ }
134
+ C?.(t);
135
+ try {
136
+ let n = await V.mutateAsync({ path: { payable_id: t } });
137
+ if (n.validation_errors.length) {
138
+ _.setErrors(v(n.validation_errors, O));
139
+ return;
140
+ }
141
+ await H.mutateAsync({ path: { payable_id: t } }), _.setErrors(void 0), E?.(t), e.success(O.billFinalized);
142
+ } catch {
143
+ _.setErrors({ form: O.finalizeFailed });
144
+ }
145
+ } finally {
146
+ I(void 0), L.current = !1;
147
+ }
148
+ }
149
+ }, [
150
+ b,
151
+ _,
152
+ O,
153
+ E,
154
+ C,
155
+ S,
156
+ W,
157
+ H,
158
+ V
159
+ ]),
160
+ payableId: j,
161
+ isSavingDraft: F === "draft",
162
+ isFinalizing: F === "finalize",
163
+ stagedFile: M,
164
+ stageFile: N,
165
+ clearStagedFile: P
166
+ };
167
+ }
14
168
  //#endregion
15
- export { e as billCreateTestIds };
169
+ export { v as mapValidationErrorsToForm, b as useBillCreateController };
@@ -1,247 +1,38 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
6
- import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
7
- import { useAllLedgerAccountsQuery as ee } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
8
- import { useAllOrganizationUsersQuery as te } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
9
- import "../../../shared/data-access/dist/index.js";
10
- import { formatCalendarDate as ne } from "../../../shared/util/dist/lib/formatCalendarDate.js";
11
- import { useWidgetConfig as re } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
12
- import "../../../shared/feature/dist/index.js";
13
- import { resolveVendor as ie } from "./index3.js";
14
- import { BillCreateScreen as ae } from "../../ui/dist/index41.js";
15
- import { BillDecisionDialog as n } from "../../ui/dist/index47.js";
16
- import { BillDuplicateNotice as oe } from "../../ui/dist/index57.js";
17
- import { ExtractionNotice as se } from "../../ui/dist/index74.js";
18
- import "../../ui/dist/index.js";
19
- import { usePayableHistoryQuery as ce } from "../../data-access/dist/index6.js";
20
- import { useAllPayableLineItemsQuery as le } from "../../data-access/dist/index7.js";
21
- import { usePayableQuery as ue } from "../../data-access/dist/index13.js";
22
- import "../../data-access/dist/index.js";
23
- import { PayBillFlow as de } from "./index10.js";
24
- import "./index11.js";
25
- import { mergeBillCreateScreenCopy as fe } from "./index28.js";
26
- import { useBillCreateController as pe } from "./index37.js";
27
- import { useBillForm as me } from "./index39.js";
28
- import { useApprovalPolicyCardView as he } from "./index16.js";
29
- import { useCurrentApprovalRequestId as ge } from "./index17.js";
30
- import { usePayableDetailActions as _e } from "./index19.js";
31
- import { useScheduledPayment as r } from "./index20.js";
32
- import { useDraftDelete as ve } from "./index21.js";
33
- import { buildBillDetailView as ye } from "./index24.js";
34
- import { buildBillHistory as be } from "./index25.js";
35
- import { SourceDocumentContainer as xe } from "./index29.js";
36
- import { useVendorSectionProps as Se } from "./index32.js";
37
- import { usePaymentInstructionsForm as Ce } from "./index33.js";
38
- import { billCreateTestIds as i } from "./index40.js";
39
- import { useCallback as a, useEffect as we, useMemo as o, useRef as Te, useState as s } from "react";
40
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
41
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js
42
- function Ee(e) {
43
- return !!(e?.bank_account?.account_holder_name && e.bank_account.routing_number && e.bank_account.account_number);
2
+ function e() {
3
+ return {
4
+ id: crypto.randomUUID(),
5
+ description: "",
6
+ glCode: "",
7
+ quantity: "1",
8
+ price: "",
9
+ amount: ""
10
+ };
44
11
  }
45
- function d({ open: d, onOpenChange: f, payableId: p, readOnly: m = !1, copy: h, poweredByBankName: De, isPossibleDuplicate: Oe }) {
46
- let g = o(() => fe(h), [h]), [_, v] = s(), [y, b] = s(!1), [ke, x] = s(!1), [Ae, S] = s(!1), [C, w] = s(), T = p ?? C, E = ue(T, { pollWhileOcrProcessing: !0 }), D = le(T), O = ee(), k = E.data, A = me({
47
- payable: k,
48
- lineItems: D.lineItems
49
- }), j = k?.counterpart_id;
50
- we(() => {
51
- y || j && (v(j), b(!0));
52
- }, [y, j]);
53
- let je = a((e) => {
54
- b(!0), v(e);
55
- }, []), M = Se({
56
- payableId: m ? void 0 : T,
57
- counterpartId: m ? void 0 : _,
58
- payableCounterpartId: j,
59
- onCounterpartChange: je,
60
- requiredError: A.errors?.vendor,
61
- payableCounterpartBankAccountId: k?.counterpart_bank_account_id ?? void 0,
62
- extractedVendor: k?.counterpart_raw_data ?? void 0
63
- }), N = pe({
64
- payableId: p,
65
- form: A,
66
- counterpartId: _,
67
- clearCounterpart: !!(T && y) && !_,
68
- prepareVendorForSave: M.savePaymentInstructions,
69
- onPayableCreated: w,
70
- onSaved: w,
71
- onDraftSaved: () => f(!1),
72
- onFinalized: () => f(!1)
73
- }), P = !!(N.isSavingDraft || N.isFinalizing), F = m ? T : void 0, I = ge({
74
- payableId: F,
75
- status: k?.status
76
- }), L = Te(null), R = r({
77
- payableId: T,
78
- scheduledPaymentDate: k?.scheduled_payment_date,
79
- enabled: m
80
- }), z = ie(k), B = Ce({
81
- payableId: F,
82
- counterpartId: m ? j : void 0,
83
- saveErrorMessage: g.detail.paymentInstructionsSaveError,
84
- linkErrorMessage: g.detail.paymentInstructionsLinkError
85
- }), { initResponse: V } = re(), H = e(V?.scopes, [t.CounterpartWriteOrg]) && e(V?.scopes, [t.PayableWriteOrg]), U = he({
86
- payableId: F,
87
- approvalPolicyId: k?.approval_policy_id,
88
- enabled: m,
89
- copy: g.approvalPolicyCopy
90
- }), { actions: Me, decisionDialog: Ne } = _e({
91
- payableId: F,
92
- status: k?.status,
93
- currentApprovalRequestId: I.id,
94
- isPolicyApprover: I.isPolicyApprover,
95
- hasWaitingRequest: I.hasWaitingRequest,
96
- hasScheduledPayment: R.hasScheduledPayment,
97
- scheduledPaymentRecordId: R.scheduledPaymentRecordId,
98
- isScheduledPaymentUnknown: R.isResolving,
99
- pendingApprovers: U.pendingApprovers,
100
- labels: g.actions,
101
- onPayBillSelect: () => Ee(z) || !H ? L.current?.open() : B.open()
102
- }), W = ve({
103
- payableId: T,
104
- status: k?.status,
105
- enabled: !m,
106
- labels: g.deleteDraft,
107
- onDeleted: () => f(!1)
108
- }), G = o(() => (O.data?.data ?? []).map((e) => ({
109
- value: e.id,
110
- label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
111
- })), [O.data]), K = ce(F), Pe = e(V?.scopes, [t.UserReadOrg]), q = te({ enabled: m && Pe }), J = o(() => be(K.data?.data ?? [], q.data?.data ?? [], g.history), [
112
- K.data,
113
- q.data,
114
- g.history
115
- ]), Fe = o(() => m && k ? ye({
116
- payable: k,
117
- lineItems: D.lineItems,
118
- glCodeOptions: G,
119
- history: J,
120
- approvalPolicy: U.view,
121
- labels: g.detail,
122
- hasScheduledPayment: R.hasScheduledPayment
123
- }) : void 0, [
124
- R.hasScheduledPayment,
125
- U.view,
126
- g.detail,
127
- G,
128
- J,
129
- D.lineItems,
130
- k,
131
- m
132
- ]), Y = k?.source_of_payable_data === "ocr", X = z?.name, Ie = m ? X ? g.viewTitle(X) : g.readOnlyTitle : Y && X ? g.extractedTitle(X) : g.newTitle, Le = m && k?.created_at ? g.addedOn(ne(k.created_at.slice(0, 10))) : void 0, Z = a(() => {
133
- let e = A.isDirty || M.hasUnsavedVendorChanges || !!N.stagedFile;
134
- !m && e && !window.confirm(g.discardConfirm) || f(!1);
135
- }, [
136
- N.stagedFile,
137
- g.discardConfirm,
138
- A.isDirty,
139
- f,
140
- m,
141
- M.hasUnsavedVendorChanges
142
- ]), Re = a((e) => {
143
- if (!P) return e ? f(!0) : Z();
144
- }, [
145
- Z,
146
- P,
147
- f
148
- ]), Q = !!Oe && !Ae, $ = !m && Y && !ke, ze = Q || $ ? /* @__PURE__ */ u(c, { children: [Q ? /* @__PURE__ */ l(oe, {
149
- onNotADuplicate: m ? void 0 : () => S(!0),
150
- onRemoveBill: m ? void 0 : () => S(!0),
151
- testId: i.duplicateNotice
152
- }) : null, $ ? /* @__PURE__ */ l(se, { onDismiss: () => x(!0) }) : null] }) : void 0;
153
- return /* @__PURE__ */ u(c, { children: [
154
- /* @__PURE__ */ l(ae, {
155
- open: d,
156
- onOpenChange: Re,
157
- title: Ie,
158
- subtitle: Le,
159
- notice: ze,
160
- vendor: {
161
- ...M,
162
- testId: i.vendorSection
163
- },
164
- values: A.values,
165
- errors: A.errors,
166
- onChange: A.onChange,
167
- lineItems: {
168
- items: A.lineItemRows,
169
- glCodeOptions: G,
170
- discount: A.discount,
171
- onDiscountChange: A.onDiscountChange,
172
- tax: A.tax,
173
- onTaxChange: A.onTaxChange,
174
- total: A.total,
175
- onTotalChange: A.onTotalChange,
176
- onAddLineItem: A.onAddLineItem,
177
- errors: A.lineItemErrors,
178
- testId: i.lineItems
179
- },
180
- documentPanel: /* @__PURE__ */ l(xe, {
181
- payableId: T,
182
- readOnly: m,
183
- isDocumentPending: !!T && !k?.file && (E.isLoading || k?.ocr_status === "processing"),
184
- file: k?.file ? {
185
- id: k.file.id,
186
- name: k.file.name,
187
- url: k.file.url,
188
- mimetype: k.file.mimetype
189
- } : void 0,
190
- staging: {
191
- stagedFile: N.stagedFile,
192
- onFileStaged: N.stageFile,
193
- onClearStagedFile: N.clearStagedFile,
194
- isSaving: P
195
- }
196
- }),
197
- menuItems: W.menuItems,
198
- readOnly: m,
199
- detail: m ? {
200
- view: Fe,
201
- actions: Me,
202
- scheduledSummary: R.hasScheduledPayment && R.scheduledDateLabel ? g.scheduledSummary(R.scheduledDateLabel) : void 0,
203
- paymentInstructionsForm: j && H ? {
204
- isOpen: B.isOpen,
205
- values: B.values,
206
- errors: B.errors,
207
- isSaving: B.isSaving,
208
- onOpen: B.open,
209
- onCancel: B.close,
210
- onChange: B.onChange,
211
- onSave: B.save
212
- } : void 0,
213
- isLoading: E.isLoading || D.isResolving || O.isResolving,
214
- isError: E.isError || D.isError || O.isError
215
- } : void 0,
216
- isLineItemsLoading: D.isResolving,
217
- isSaving: P,
218
- isSavingDraft: N.isSavingDraft,
219
- isFinalizing: N.isFinalizing,
220
- onCancel: Z,
221
- onSaveDraft: N.saveDraft,
222
- onFinalize: N.finalize,
223
- testId: i.dialog
224
- }),
225
- /* @__PURE__ */ l(n, {
226
- ...Ne,
227
- labels: { cancelButton: g.actions.decisionDialog.cancelButton },
228
- testId: i.decisionDialog,
229
- confirmTestId: i.decisionConfirm,
230
- reasonTestId: i.decisionReason
231
- }),
232
- /* @__PURE__ */ l(n, {
233
- ...W.dialog,
234
- labels: { cancelButton: g.actions.decisionDialog.cancelButton },
235
- testId: i.deleteDraftDialog,
236
- confirmTestId: i.deleteDraftConfirm
237
- }),
238
- m && k ? /* @__PURE__ */ l(de, {
239
- ref: L,
240
- payable: k,
241
- poweredByBankName: De,
242
- labels: g.payBill
243
- }) : null
244
- ] });
12
+ function t(e) {
13
+ return typeof e == "number" ? (e / 100).toFixed(2) : "";
14
+ }
15
+ function n({ payable: n, lineItems: r }) {
16
+ let i = {
17
+ invoiceNumber: n.document_id ?? "",
18
+ invoiceDate: n.issued_at ?? "",
19
+ dueDate: n.due_date ?? "",
20
+ poNumber: ""
21
+ }, a = r.map((e) => ({
22
+ id: e.id,
23
+ description: e.name ?? "",
24
+ glCode: e.ledger_account_id ?? "",
25
+ quantity: e.quantity == null ? "" : String(e.quantity),
26
+ price: t(e.unit_price),
27
+ amount: t(e.subtotal)
28
+ }));
29
+ return {
30
+ values: i,
31
+ lineItems: a.length ? a : [e()],
32
+ discount: t(n.discount),
33
+ tax: t(n.tax_amount),
34
+ total: t(n.total_amount)
35
+ };
245
36
  }
246
37
  //#endregion
247
- export { d as BillCreateDialog, d as default };
38
+ export { e as emptyLineItem, n as mapPayableToBillForm };
@@ -1,4 +1,104 @@
1
- import "./index28.js";
2
- import "./index37.js";
3
- import "./index39.js";
4
- import "./index41.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { calculateTotal as e, displayLineAmount as t, parseMoneyToMinorUnits as n } from "./index38.js";
6
+ import { emptyLineItem as r, mapPayableToBillForm as i } from "./index41.js";
7
+ import { useCallback as a, useEffect as o, useMemo as s, useState as c } from "react";
8
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js
9
+ function l(e, r, i) {
10
+ return n(r) === null ? i : t(e, r);
11
+ }
12
+ function u({ payable: t, lineItems: n } = {}) {
13
+ let u = s(() => i({
14
+ payable: t ?? {},
15
+ lineItems: n ?? []
16
+ }), [t, n]), [d, f] = c(u.values), [p, m] = c(u.lineItems), [h, g] = c(u.discount), [_, v] = c(u.tax), [y, b] = c(u.total || void 0), [x, S] = c(), [C, w] = c(), [T, E] = c(!1), [D, O] = c(!1), [k, A] = c(!1);
17
+ o(() => {
18
+ T || f(u.values);
19
+ }, [u]), o(() => {
20
+ D || m(u.lineItems);
21
+ }, [u]), o(() => {
22
+ k || (g(u.discount), v(u.tax), b(u.total || void 0));
23
+ }, [u]);
24
+ let j = a((e) => {
25
+ f((t) => ({
26
+ ...t,
27
+ ...e
28
+ })), E(!0);
29
+ }, []), M = a((e) => {
30
+ w((t) => {
31
+ if (!t?.[e]) return t;
32
+ let n = { ...t };
33
+ return delete n[e], Object.keys(n).length ? n : void 0;
34
+ });
35
+ }, []), N = a((e, t) => {
36
+ M(e), m((n) => n.map((n) => {
37
+ if (n.id !== e) return n;
38
+ let r = {
39
+ ...n,
40
+ ...t
41
+ };
42
+ return "amount" in t ? r : {
43
+ ...r,
44
+ amount: l(r.quantity, r.price, r.amount)
45
+ };
46
+ })), O(!0), b(void 0);
47
+ }, [M]), P = a((e, t) => {
48
+ M(e), m((n) => n.map((n) => {
49
+ if (n.id !== e) return n;
50
+ let r = Number.parseFloat(n.quantity), i = String(Math.max(1, (Number.isFinite(r) ? r : 1) + t));
51
+ return {
52
+ ...n,
53
+ quantity: i,
54
+ amount: l(i, n.price, n.amount)
55
+ };
56
+ })), O(!0), b(void 0);
57
+ }, [M]), F = a((e) => {
58
+ M(e), m((t) => t.length <= 1 ? t : t.filter((t) => t.id !== e)), O(!0), b(void 0);
59
+ }, [M]), I = a(() => {
60
+ m((e) => [...e, r()]), O(!0), b(void 0);
61
+ }, []), L = a((e) => {
62
+ g(e), A(!0), b(void 0);
63
+ }, []), R = a((e) => {
64
+ v(e), A(!0), b(void 0);
65
+ }, []), z = a((e) => {
66
+ b(e), A(!0);
67
+ }, []), B = s(() => p.map((e) => ({
68
+ ...e,
69
+ onChange: (t) => N(e.id, t),
70
+ onQuantityStep: (t) => P(e.id, t),
71
+ onRemove: () => F(e.id)
72
+ })), [
73
+ p,
74
+ N,
75
+ F,
76
+ P
77
+ ]), V = s(() => e(p, _, h), [
78
+ p,
79
+ _,
80
+ h
81
+ ]);
82
+ return {
83
+ values: d,
84
+ errors: x,
85
+ setErrors: S,
86
+ lineItemErrors: C,
87
+ setLineItemErrors: w,
88
+ onChange: j,
89
+ lineItems: p,
90
+ lineItemRows: B,
91
+ discount: h,
92
+ onDiscountChange: L,
93
+ tax: _,
94
+ onTaxChange: R,
95
+ total: y ?? V,
96
+ totalOverride: y,
97
+ onTotalChange: z,
98
+ onAddLineItem: I,
99
+ isTotalsDirty: k,
100
+ isDirty: T || D || k
101
+ };
102
+ }
103
+ //#endregion
104
+ export { u as useBillForm };
@@ -1,30 +1,15 @@
1
- import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/index52.js";
2
- import "../../ui/dist/index.js";
3
- import { APPROVAL_POLICY_RULE_COPY_EN as t } from "./index12.js";
4
- import { BILL_DETAIL_ACTIONS_LABELS_EN as n, SCHEDULED_SUMMARY_LABEL_EN as r } from "./index26.js";
5
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js
6
- var i = {
7
- subtitle: "Accounts payable",
8
- vendorRow: "Vendor",
9
- bankAccountRow: "ACH bank account",
10
- bankAccountValue: (e) => `Account ending in ${e}`,
11
- invoiceNumberRow: "Number",
12
- issueDateRow: "Issue date",
13
- dueDateRow: "Due date",
14
- poNumberRow: "PO number",
15
- notProvided: "Not provided",
16
- glCodeMissing: "GL code not specified",
17
- quantityValue: (e, t) => `${e} x ${t}`,
18
- subtotalRow: "Subtotal",
19
- discountsRow: "Discounts",
20
- taxRow: "Tax",
21
- totalRow: "Total",
22
- actionError: n.actionError,
23
- actionSuccess: n.actionSuccess,
24
- scheduledSummary: r,
25
- sheet: e,
26
- decisionDialog: n.decisionDialog,
27
- approvalPolicyCopy: t
2
+ var e = {
3
+ dialog: "bill-pay-bill-create-dialog",
4
+ vendorSection: "bill-pay-bill-create-vendor",
5
+ lineItems: "bill-pay-bill-create-line-items",
6
+ documentPanel: "bill-pay-bill-create-document",
7
+ duplicateNotice: "bill-pay-bill-create-duplicate-notice",
8
+ decisionDialog: "bill-pay-bill-decision-dialog",
9
+ decisionConfirm: "bill-pay-bill-decision-confirm",
10
+ decisionReason: "bill-pay-bill-decision-reason",
11
+ deleteDraftDialog: "bill-pay-bill-delete-draft-dialog",
12
+ deleteDraftConfirm: "bill-pay-bill-delete-draft-confirm"
28
13
  };
29
14
  //#endregion
30
- export { i as BILL_DETAILS_LABELS_EN };
15
+ export { e as billCreateTestIds };