@tesouro/embedded-components-react 0.5.182 → 0.5.184

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 (360) hide show
  1. package/dist/index.css +49 -36
  2. package/dist/index.d.ts +30 -1
  3. package/dist/lib/BankAccountOnboardingWidget.d.ts +30 -1
  4. package/dist/lib/WidgetSuite.d.ts +30 -1
  5. package/dist/lib/monite-sdk.js +19 -19
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +5 -4
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +3 -32
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +24 -33
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +44 -0
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +13 -36
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +43 -3
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +4 -0
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js +3 -0
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +339 -301
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +3 -1
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +11 -0
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +64 -0
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +21 -21
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +2 -292
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +95 -49
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +287 -61
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +49 -102
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +66 -90
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +100 -16
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +89 -53
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +15 -77
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +54 -11
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +67 -56
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +8 -164
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +67 -37
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +165 -183
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +36 -89
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +184 -94
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +89 -257
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +98 -183
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +257 -125
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +183 -6
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +127 -5
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +5 -14
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +8 -3
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +17 -3
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +3 -8
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +3 -38
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -34
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +35 -10
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +34 -43
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +13 -1
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +38 -41
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +1 -50
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +46 -5
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +47 -5
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +5 -4
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +4 -42
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +3 -21
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +42 -4
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +21 -3
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +6 -2
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +4 -32
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +2 -74
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +32 -4
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +73 -8
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +4 -4
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +11 -13
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +6 -132
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +12 -213
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +134 -7
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +211 -5
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +7 -18
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +5 -15
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +13 -3
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +15 -8
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +5 -15
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +8 -37
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +16 -8
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +34 -5
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +8 -5
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +9 -2
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +5 -55
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +2 -2
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +57 -1
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +2 -3
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +1 -4
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +3 -9
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +2 -8
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +8 -13
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +7 -348
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +13 -21
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +349 -7
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +22 -3
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +7 -2
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +3 -8
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +2 -6
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +8 -2
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +6 -2
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +2 -17
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +2 -6
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +15 -113
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +6 -33
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +115 -2
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +32 -9
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +2 -8
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +10 -4
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +10 -18
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +4 -18
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +18 -1
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +20 -1
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -8
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +1 -37
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +4 -11
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +33 -8
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +10 -10
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +7 -3
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +9 -9
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +5 -24
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +15 -4
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +24 -51
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +3 -0
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +51 -22
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +1 -8
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +13 -14
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +4 -9
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +26 -1
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +13 -1
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +1 -8
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +1 -8
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +5 -12
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +5 -19
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +10 -46
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +22 -3
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +49 -11
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -18
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +13 -1
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +2 -2
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +2 -2
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +4 -4
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +12 -12
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +1 -1
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +1 -1
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +2 -2
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +2 -2
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +1 -1
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +3 -3
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -1
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +24 -24
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +2 -2
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +2 -2
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +3 -3
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +1 -1
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +1 -1
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +2 -2
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +7 -7
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +7 -7
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +10 -10
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +2 -2
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +2 -2
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +9 -9
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -1
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -1
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -1
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +3 -3
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -1
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +1 -1
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +2 -2
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +2 -2
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +2 -2
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +6 -6
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +2 -2
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +1 -1
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +1 -1
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -2
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +2 -2
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +3 -3
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +1 -1
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +2 -2
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +2 -2
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +1 -1
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +1 -1
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +1 -1
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +2 -2
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +2 -2
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +2 -2
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +2 -2
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +1 -1
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +2 -2
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +4 -4
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +1 -1
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +1 -1
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +1 -1
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +1 -1
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -1
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +2 -2
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +1 -1
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +1 -1
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +1 -1
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +7 -7
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +5 -5
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +4 -4
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +2 -2
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +2 -2
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +7 -7
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +1 -1
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +2 -2
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +3 -3
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +3 -3
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +26 -20
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +2 -2
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +3 -3
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +1 -1
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +4 -4
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +3 -3
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +6 -6
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +2 -2
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +3 -3
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +3 -3
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +2 -2
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +3 -3
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +22 -22
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +20 -20
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +8 -8
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +39 -33
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +1 -1
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +2 -2
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +7 -7
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +1 -1
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +2 -2
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +11 -11
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +10 -10
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +1 -1
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +11 -11
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +10 -10
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +2 -2
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +3 -3
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +1 -1
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +4 -4
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +3 -3
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +1 -1
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +1 -1
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +2 -2
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +4 -4
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +16 -6
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +2 -2
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +1 -1
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +2 -2
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +1 -80
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +1 -1
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +2 -2
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +6 -6
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +8 -8
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +8 -8
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +7 -7
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +3 -3
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +9 -9
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +5 -3
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +11 -11
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +1 -1
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +1 -1
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +8 -8
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +83 -1
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +4 -4
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +1 -1
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +25 -19
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +3 -3
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +3 -3
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +3 -3
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +1 -1
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +8 -8
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +1 -1
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +13 -13
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +4 -24
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +6 -6
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +1 -1
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +8 -8
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +1 -1
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +1 -1
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +3 -3
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +3 -3
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +4 -4
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +3 -3
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +2 -2
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +1 -12
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +6 -6
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +4 -4
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +3 -3
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +2 -2
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +2 -2
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +9 -9
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +5 -5
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +21 -32
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +29 -29
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +2 -2
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +2 -2
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +1 -1
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +2 -2
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +3 -3
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +9 -38
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +8 -8
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +4 -4
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +1 -1
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +9 -9
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +5 -5
  301. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +1 -1
  302. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +34 -14
  303. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +2 -2
  304. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +1 -1
  305. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +38 -74
  306. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +1 -1
  307. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +2 -2
  308. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +1 -1
  309. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +1 -1
  310. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +13 -35
  311. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +2 -2
  312. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +80 -1
  313. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +1 -1
  314. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +35 -21
  315. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +1 -51
  316. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +22 -46
  317. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +48 -13
  318. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +47 -17
  319. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +13 -14
  320. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +17 -21
  321. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +17 -4
  322. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +23 -4
  323. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +4 -21
  324. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +4 -18
  325. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +21 -1
  326. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +18 -3
  327. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +0 -2
  328. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +3 -17
  329. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +17 -3
  330. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +3 -26
  331. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +2 -0
  332. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +26 -1
  333. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +1 -8
  334. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +1 -8
  335. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +4 -13
  336. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +8 -3
  337. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +17 -21
  338. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +3 -14
  339. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +21 -77
  340. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +7 -7
  341. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +70 -20
  342. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +11 -104
  343. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +25 -255
  344. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +104 -108
  345. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +255 -151
  346. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +108 -7
  347. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +150 -13
  348. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +7 -6
  349. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +11 -27
  350. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +7 -2
  351. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +28 -93
  352. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +34 -34
  353. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +188 -181
  354. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +162 -154
  355. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  356. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +97 -73
  357. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/HostIsolationScope.js +10 -10
  358. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +67 -55
  359. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +1 -0
  360. package/package.json +1 -1
@@ -1,100 +1,190 @@
1
- import { Button as e } from "./index55.js";
2
- import { Typography as t } from "./index61.js";
3
- import { CounterpartAddressFormContent as n } from "./index112.js";
4
- import { CounterpartAddressForm as r } from "./index113.js";
5
- import { useState as i } from "react";
6
- import { Plus as a } from "lucide-react";
7
- import { Fragment as o, jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
8
- import { useLingui as l } from "@lingui/react";
9
- import { twMerge as u } from "tailwind-merge";
1
+ import { Input as e } from "./index90.js";
2
+ import { Typography as t } from "./index63.js";
3
+ import { Field as n, FieldContent as r, FieldError as i, FieldLabel as a } from "./index89.js";
4
+ import { USStatesEnum as o } from "./index108.js";
5
+ import { Select as s, SelectContent as c, SelectItem as l, SelectTrigger as u, SelectValue as d } from "./index109.js";
6
+ import { MoniteCountryShadcn as f } from "./index113.js";
7
+ import { useRef as p } from "react";
8
+ import { Fragment as m, jsx as h, jsxs as g } from "@emotion/react/jsx-runtime";
9
+ import { useLingui as _ } from "@lingui/react";
10
+ import { twMerge as v } from "tailwind-merge";
11
+ import { Controller as y, useFormContext as b } from "react-hook-form";
10
12
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js
11
- var d = ({ isStandalone: d, counterpartId: f, counterpartAddress: p, isUpdateAllowed: m, isLoading: h, customerType: g }) => {
12
- let { i18n: _ } = l(), [v, y] = i(!d), b = !!p, x = p?.city || "", S = p?.state || "", C = p?.postal_code || "", w = () => {
13
- y(!1);
14
- };
15
- return v ? /* @__PURE__ */ s(o, { children: d && f ? /* @__PURE__ */ s(o, { children: p ? /* @__PURE__ */ s(r, {
16
- address: p,
17
- handleClose: w,
18
- counterpartId: f,
19
- onUpdate: w,
20
- isStandalone: !0,
21
- customerType: g
22
- }) : /* @__PURE__ */ s(r, {
23
- handleClose: w,
24
- counterpartId: f,
25
- onCreate: w,
26
- isStandalone: !0,
27
- customerType: g
28
- }) }) : /* @__PURE__ */ s(n, {
29
- hasExistingAddress: !1,
30
- isLoading: h,
31
- isStandalone: !1,
32
- customerType: g
33
- }) }) : /* @__PURE__ */ c("div", {
34
- className: "ttw:flex ttw:flex-col",
35
- children: [/* @__PURE__ */ c("div", {
36
- className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7",
37
- children: [/* @__PURE__ */ c(t, {
38
- variant: "body1",
39
- className: "ttw:font-medium",
40
- children: [
41
- _._("Address"),
42
- " ",
43
- /* @__PURE__ */ s("span", {
44
- className: "ttw:text-muted-foreground",
45
- children: _._("(optional)")
46
- })
47
- ]
48
- }), b && m && /* @__PURE__ */ s(e, {
49
- type: "button",
50
- variant: "ghost",
51
- className: "ttw:text-primary ttw:p-0 ttw:hover:text-primary ttw:hover:underline ttw:w-fit ttw:hover:bg-transparent",
52
- onClick: () => y(!0),
53
- children: _._("Edit")
54
- })]
55
- }), /* @__PURE__ */ s("div", {
56
- className: u("ttw:flex ttw:items-start ttw:rounded-lg", b ? "ttw:border-none" : "ttw:border ttw:border-border ttw:p-3"),
57
- children: b ? /* @__PURE__ */ c("div", {
58
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
59
- children: [
60
- /* @__PURE__ */ s(t, {
61
- variant: "body2",
62
- className: "ttw:font-medium",
63
- children: p?.line1
64
- }),
65
- p?.line2 && /* @__PURE__ */ s(t, {
66
- variant: "body2",
67
- className: "ttw:font-medium",
68
- children: p.line2
69
- }),
70
- /* @__PURE__ */ s(t, {
71
- variant: "body2",
72
- className: "ttw:font-medium",
73
- children: `${x && x}${x && (S || C) && ","} ${S && S} ${C && C}`
74
- }),
75
- /* @__PURE__ */ s(t, {
76
- variant: "body2",
77
- className: "ttw:font-medium",
78
- children: p?.country
79
- })
80
- ]
81
- }) : /* @__PURE__ */ c("div", {
82
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
83
- children: [/* @__PURE__ */ s(t, {
84
- variant: "body2",
85
- className: "ttw:leading-5",
86
- children: _._("No address on file")
87
- }), /* @__PURE__ */ c(e, {
88
- type: "button",
89
- variant: "ghost",
90
- className: "ttw:text-primary ttw:hover:text-primary/70 ttw:w-fit ttw:px-0 ttw:has-[>svg]:px-0 ttw:py-2 ttw:hover:bg-transparent",
91
- onClick: () => y(!0),
92
- disabled: h,
93
- children: [/* @__PURE__ */ s(a, {}), _._("Add address")]
13
+ var x = ({ hasExistingAddress: x, isLoading: S, isStandalone: C, customerType: w }) => {
14
+ let { i18n: T } = _(), { watch: E, control: D } = b(), O = p(null), k = w === "vendor";
15
+ return /* @__PURE__ */ g("div", {
16
+ className: v("ttw:flex ttw:flex-col ttw:gap-4"),
17
+ ref: O,
18
+ children: [
19
+ C ? /* @__PURE__ */ h("div", {
20
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
21
+ children: /* @__PURE__ */ h(t, {
22
+ variant: "body1",
23
+ className: "ttw:font-medium",
24
+ children: x ? T._("Editing address") : T._("Adding address")
25
+ })
26
+ }) : /* @__PURE__ */ h(m, { children: !k && /* @__PURE__ */ h("div", {
27
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
28
+ children: /* @__PURE__ */ g(t, {
29
+ variant: "body1",
30
+ className: "ttw:font-medium",
31
+ children: [
32
+ T._("Address"),
33
+ " ",
34
+ /* @__PURE__ */ h("span", {
35
+ className: "ttw:text-muted-foreground",
36
+ children: T._("(optional)")
37
+ })
38
+ ]
39
+ })
40
+ }) }),
41
+ /* @__PURE__ */ g("div", {
42
+ className: "ttw:flex ttw:gap-4",
43
+ children: [/* @__PURE__ */ h(y, {
44
+ name: "line1",
45
+ control: D,
46
+ render: ({ field: t, fieldState: { error: o } }) => /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
47
+ /* @__PURE__ */ h(a, {
48
+ htmlFor: t.name,
49
+ children: T._("Street address")
50
+ }),
51
+ /* @__PURE__ */ h(e, {
52
+ id: t.name,
53
+ ...t,
54
+ className: C || k ? "ttw:bg-white" : "",
55
+ disabled: S,
56
+ "aria-invalid": !!o || void 0
57
+ }),
58
+ /* @__PURE__ */ h(i, { errors: [o] })
59
+ ] }) })
60
+ }), /* @__PURE__ */ h(y, {
61
+ name: "line2",
62
+ control: D,
63
+ render: ({ field: o, fieldState: { error: s } }) => /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
64
+ /* @__PURE__ */ g(a, {
65
+ htmlFor: o.name,
66
+ className: "ttw:gap-1",
67
+ children: [T._("Apt, suite, floor, etc."), k && /* @__PURE__ */ h(t, {
68
+ variant: "body2",
69
+ color: "muted",
70
+ className: "ttw:leading-snug",
71
+ children: T._("(optional)")
72
+ })]
73
+ }),
74
+ /* @__PURE__ */ h(e, {
75
+ id: o.name,
76
+ ...o,
77
+ className: C || k ? "ttw:bg-white" : "",
78
+ disabled: S,
79
+ "aria-invalid": !!s || void 0
80
+ }),
81
+ /* @__PURE__ */ h(i, { errors: [s] })
82
+ ] }) })
83
+ })]
84
+ }),
85
+ /* @__PURE__ */ g("div", {
86
+ className: "ttw:flex ttw:gap-4",
87
+ children: [/* @__PURE__ */ h(y, {
88
+ name: "city",
89
+ control: D,
90
+ render: ({ field: t, fieldState: { error: o } }) => /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
91
+ /* @__PURE__ */ h(a, {
92
+ htmlFor: t.name,
93
+ children: T._("City")
94
+ }),
95
+ /* @__PURE__ */ h(e, {
96
+ id: t.name,
97
+ ...t,
98
+ className: C || k ? "ttw:bg-white" : "",
99
+ disabled: S,
100
+ "aria-invalid": !!o || void 0
101
+ }),
102
+ /* @__PURE__ */ h(i, { errors: [o] })
103
+ ] }) })
104
+ }), /* @__PURE__ */ h(y, {
105
+ name: "state",
106
+ control: D,
107
+ render: ({ field: t, fieldState: { error: f } }) => E("country") === "US" ? /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
108
+ /* @__PURE__ */ h(a, {
109
+ htmlFor: t.name,
110
+ children: T._("State")
111
+ }),
112
+ /* @__PURE__ */ g(s, {
113
+ value: t.value ?? void 0,
114
+ onValueChange: t.onChange,
115
+ disabled: S,
116
+ children: [/* @__PURE__ */ h(u, {
117
+ ref: t.ref,
118
+ onBlur: t.onBlur,
119
+ "aria-invalid": !!f || void 0,
120
+ className: v("ttw:w-full", (C || k) && "ttw:bg-white"),
121
+ disabled: S,
122
+ children: /* @__PURE__ */ h(d, { placeholder: T._("Select a state") })
123
+ }), /* @__PURE__ */ h(c, { children: Object.entries(o).map(([e, t]) => /* @__PURE__ */ g(l, {
124
+ value: e,
125
+ children: [
126
+ t,
127
+ " — ",
128
+ e
129
+ ]
130
+ }, e)) })]
131
+ }),
132
+ /* @__PURE__ */ h(i, { errors: [f] })
133
+ ] }) }) : /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
134
+ /* @__PURE__ */ h(a, {
135
+ htmlFor: t.name,
136
+ children: T._("State")
137
+ }),
138
+ /* @__PURE__ */ h(e, {
139
+ id: t.name,
140
+ ...t,
141
+ className: C || k ? "ttw:bg-white" : "",
142
+ disabled: S,
143
+ "aria-invalid": !!f || void 0
144
+ }),
145
+ /* @__PURE__ */ h(i, { errors: [f] })
146
+ ] }) })
147
+ })]
148
+ }),
149
+ /* @__PURE__ */ g("div", {
150
+ className: "ttw:flex ttw:gap-4",
151
+ children: [/* @__PURE__ */ h(y, {
152
+ name: "postalCode",
153
+ control: D,
154
+ render: ({ field: t, fieldState: { error: o } }) => /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
155
+ /* @__PURE__ */ h(a, {
156
+ htmlFor: t.name,
157
+ children: T._("Postal code")
158
+ }),
159
+ /* @__PURE__ */ h(e, {
160
+ id: t.name,
161
+ ...t,
162
+ className: C || k ? "ttw:bg-white" : "",
163
+ disabled: S,
164
+ "aria-invalid": !!o || void 0
165
+ }),
166
+ /* @__PURE__ */ h(i, { errors: [o] })
167
+ ] }) })
168
+ }), /* @__PURE__ */ h(y, {
169
+ name: "country",
170
+ control: D,
171
+ render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
172
+ /* @__PURE__ */ h(a, { children: T._("Country") }),
173
+ /* @__PURE__ */ h(f, {
174
+ value: e.value,
175
+ className: C || k ? "ttw:bg-white" : "",
176
+ onChange: e.onChange,
177
+ invalid: !!t,
178
+ disabled: S,
179
+ container: O?.current,
180
+ allowedCountries: ["US"]
181
+ }),
182
+ /* @__PURE__ */ h(i, { errors: [t] })
183
+ ] }) })
94
184
  })]
95
185
  })
96
- })]
186
+ ]
97
187
  });
98
188
  };
99
189
  //#endregion
100
- export { d as CounterpartAddressSection };
190
+ export { x as CounterpartAddressFormContent };
@@ -1,262 +1,94 @@
1
- import { Input as e } from "./index88.js";
2
- import { Typography as t } from "./index61.js";
3
- import { Label as n } from "./index86.js";
4
- import { Field as r, FieldContent as i, FieldDescription as a, FieldError as o, FieldLabel as s } from "./index87.js";
5
- import { CounterpartBankSection as c } from "./index104.js";
6
- import { CounterpartAddressSection as l } from "./index114.js";
7
- import { RadioGroup as u, RadioGroupItem as d } from "./index89.js";
8
- import { Checkbox as f } from "./index105.js";
9
- import { useRef as p } from "react";
10
- import { jsx as m, jsxs as h } from "@emotion/react/jsx-runtime";
11
- import { useLingui as g } from "@lingui/react";
12
- import { twMerge as _ } from "tailwind-merge";
13
- import { Controller as v, useFormContext as y } from "react-hook-form";
1
+ import { getCounterpartName as e } from "./index54.js";
2
+ import { Button as t } from "./index57.js";
3
+ import { LoadingSpinner as n } from "./index52.js";
4
+ import "./index53.js";
5
+ import { useUpdateCounterpartAddress as r } from "./index80.js";
6
+ import { useCreateCounterpartAddress as i } from "./index85.js";
7
+ import "./index87.js";
8
+ import { getAddressValidationSchema as a } from "./index104.js";
9
+ import { CounterpartAddressFormContent as o } from "./index114.js";
10
+ import { useCallback as s, useId as c, useMemo as l } from "react";
11
+ import { jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
12
+ import { toast as f } from "react-hot-toast";
13
+ import { useLingui as p } from "@lingui/react";
14
+ import { FormProvider as m, useForm as h } from "react-hook-form";
15
+ import { zodResolver as g } from "@hookform/resolvers/zod";
14
16
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js
15
- var b = ({ handleChangeCounterpartType: b, counterpartType: x, isLoading: S, customerType: C, isEditMode: w }) => {
16
- let { i18n: T } = g(), { control: E } = y(), D = p(null), O = C === "vendor";
17
- return /* @__PURE__ */ h("div", {
18
- className: "ttw:flex ttw:flex-col ttw:gap-4",
19
- ref: D,
20
- children: [
21
- /* @__PURE__ */ h("div", {
22
- className: _("ttw:flex ttw:flex-col ttw:gap-1.5", w && "ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border"),
23
- children: [/* @__PURE__ */ m(t, {
24
- variant: "body1",
25
- className: "ttw:font-medium",
26
- children: w ? T._("Editing {customerType} details", { customerType: C }) : T._("{customerType} details", { customerType: O ? "Vendor" : "Customer" })
27
- }), !w && /* @__PURE__ */ m(t, {
28
- variant: "body2",
29
- color: "muted",
30
- children: O ? T._("Who are you paying?") : T._("Who are you billing?")
17
+ var _ = ({ counterpartId: _, isStandalone: v, address: y, customerType: b, handleClose: x, onUpdate: S, onCreate: C }) => {
18
+ let { i18n: w } = p(), T = `counterpart-address-form-${c()}`, E = !!y, { mutate: D, isPending: O } = r({
19
+ counterpartId: _,
20
+ addressId: y?.id ?? ""
21
+ }), { mutate: k, isPending: A } = i(), j = O || A, M = l(() => ({
22
+ line1: y?.line1 ?? "",
23
+ line2: y?.line2 ?? "",
24
+ city: y?.city ?? "",
25
+ state: y?.state ?? "",
26
+ country: y?.country ?? "US",
27
+ postalCode: y?.postal_code ?? ""
28
+ }), [y]), { resetField: N, ...P } = h({
29
+ resolver: g(a(w, b === "vendor")),
30
+ defaultValues: M
31
+ }), F = s((e) => {
32
+ e.preventDefault(), e.stopPropagation(), P.handleSubmit((e) => {
33
+ let t = {
34
+ line1: e.line1 ?? "",
35
+ line2: e.line2,
36
+ city: e.city ?? "",
37
+ state: e.state ?? "",
38
+ country: e.country,
39
+ postal_code: e.postalCode ?? ""
40
+ };
41
+ return y ? D(t, { onSuccess: () => {
42
+ f.success(w._("Address has been updated.")), S && S();
43
+ } }) : k({
44
+ path: { counterpart_id: _ },
45
+ body: t
46
+ }, { onSuccess: () => {
47
+ f.success(w._("Address has been added.")), C && C();
48
+ } });
49
+ })(e);
50
+ }, [
51
+ f,
52
+ D,
53
+ k,
54
+ e,
55
+ S,
56
+ C,
57
+ P.handleSubmit,
58
+ w
59
+ ]);
60
+ return /* @__PURE__ */ u(m, {
61
+ resetField: N,
62
+ ...P,
63
+ children: /* @__PURE__ */ d("form", {
64
+ id: T,
65
+ onSubmit: F,
66
+ className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100",
67
+ children: [/* @__PURE__ */ u(o, {
68
+ hasExistingAddress: E,
69
+ isLoading: j,
70
+ isStandalone: v,
71
+ customerType: b
72
+ }), /* @__PURE__ */ d("div", {
73
+ className: "ttw:flex ttw:gap-4 ttw:pt-6",
74
+ children: [/* @__PURE__ */ u(t, {
75
+ type: "button",
76
+ variant: "outline",
77
+ className: "ttw:border-border ttw:flex-1",
78
+ disabled: j,
79
+ onClick: () => {
80
+ N("line1"), N("line2"), N("city"), N("state"), N("postalCode"), N("country"), x();
81
+ },
82
+ children: w._("Cancel")
83
+ }), /* @__PURE__ */ d(t, {
84
+ type: "submit",
85
+ className: "ttw:flex-1",
86
+ disabled: j || !P.formState.isDirty,
87
+ children: [j && /* @__PURE__ */ u(n, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), w._("Save")]
31
88
  })]
32
- }),
33
- !w && /* @__PURE__ */ h("div", {
34
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
35
- children: [/* @__PURE__ */ m(s, { children: T._("{customerType} type", { customerType: O ? "Vendor" : "Customer" }) }), /* @__PURE__ */ h(u, {
36
- className: "ttw:flex",
37
- value: x,
38
- disabled: S,
39
- onValueChange: (e) => b?.(e),
40
- children: [/* @__PURE__ */ h("div", {
41
- className: _("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", x === "organization" && "ttw:bg-primary/10 ttw:border-primary/30"),
42
- children: [/* @__PURE__ */ m(d, {
43
- value: "organization",
44
- id: "organization",
45
- className: _(x === "organization" ? "ttw:bg-primary" : "ttw:bg-white"),
46
- dotClassName: _(x === "organization" && "ttw:fill-white"),
47
- disabled: S
48
- }), /* @__PURE__ */ h(n, {
49
- htmlFor: "organization",
50
- className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
51
- children: [/* @__PURE__ */ m(t, {
52
- variant: "body2",
53
- className: "ttw:leading-3.5",
54
- children: T._("Business")
55
- }), /* @__PURE__ */ m(t, {
56
- variant: "caption",
57
- color: "muted",
58
- children: T._("A company or organization")
59
- })]
60
- })]
61
- }), /* @__PURE__ */ h("div", {
62
- className: _("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", x === "individual" && "ttw:bg-primary/10 ttw:border-primary/30"),
63
- children: [/* @__PURE__ */ m(d, {
64
- value: "individual",
65
- id: "individual",
66
- className: _(x === "individual" ? "ttw:bg-primary" : "ttw:bg-white"),
67
- dotClassName: _(x === "individual" && "ttw:fill-white"),
68
- disabled: S
69
- }), /* @__PURE__ */ h(n, {
70
- htmlFor: "individual",
71
- className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
72
- children: [/* @__PURE__ */ m(t, {
73
- variant: "body2",
74
- className: "ttw:leading-3.5",
75
- children: T._("Person")
76
- }), /* @__PURE__ */ m(t, {
77
- variant: "caption",
78
- color: "muted",
79
- children: T._("An individual or contractor")
80
- })]
81
- })]
82
- })]
83
- })]
84
- }),
85
- x === "individual" ? /* @__PURE__ */ h("div", {
86
- className: "ttw:flex ttw:gap-4",
87
- children: [/* @__PURE__ */ m(v, {
88
- name: "firstName",
89
- control: E,
90
- render: ({ field: t, fieldState: { error: n } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
91
- /* @__PURE__ */ m(s, {
92
- htmlFor: t.name,
93
- children: T._("First name")
94
- }),
95
- /* @__PURE__ */ m(e, {
96
- className: w ? "ttw:bg-white" : "",
97
- id: t.name,
98
- ...t,
99
- disabled: S,
100
- "aria-invalid": !!n || void 0
101
- }),
102
- /* @__PURE__ */ m(o, { errors: [n] })
103
- ] }) })
104
- }), /* @__PURE__ */ m(v, {
105
- name: "lastName",
106
- control: E,
107
- render: ({ field: t, fieldState: { error: n } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
108
- /* @__PURE__ */ m(s, {
109
- htmlFor: t.name,
110
- children: T._("Last name")
111
- }),
112
- /* @__PURE__ */ m(e, {
113
- id: t.name,
114
- ...t,
115
- className: w ? "ttw:bg-white" : "",
116
- disabled: S,
117
- "aria-invalid": !!n || void 0
118
- }),
119
- /* @__PURE__ */ m(o, { errors: [n] })
120
- ] }) })
121
- })]
122
- }) : /* @__PURE__ */ m(v, {
123
- name: "companyName",
124
- control: E,
125
- render: ({ field: t, fieldState: { error: n } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
126
- /* @__PURE__ */ m(s, {
127
- htmlFor: t.name,
128
- children: T._("Business name")
129
- }),
130
- /* @__PURE__ */ m(e, {
131
- id: t.name,
132
- ...t,
133
- className: w ? "ttw:bg-white" : "",
134
- disabled: S,
135
- "aria-invalid": !!n || void 0
136
- }),
137
- /* @__PURE__ */ m(o, { errors: [n] })
138
- ] }) })
139
- }),
140
- /* @__PURE__ */ h("div", {
141
- className: _("ttw:flex ttw:gap-4", O ? "ttw:flex-row" : "ttw:flex-col"),
142
- children: [
143
- /* @__PURE__ */ m(v, {
144
- name: "email",
145
- control: E,
146
- render: ({ field: t, fieldState: { error: n } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
147
- /* @__PURE__ */ m(s, {
148
- htmlFor: t.name,
149
- children: T._("Email")
150
- }),
151
- /* @__PURE__ */ m(e, {
152
- id: t.name,
153
- ...t,
154
- className: w ? "ttw:bg-white" : "",
155
- disabled: S,
156
- "aria-invalid": !!n || void 0
157
- }),
158
- /* @__PURE__ */ m(o, { errors: [n] })
159
- ] }) })
160
- }),
161
- !O && /* @__PURE__ */ m(v, {
162
- name: "remindersEnabled",
163
- control: E,
164
- render: ({ field: e }) => /* @__PURE__ */ m(r, {
165
- orientation: "horizontal",
166
- children: /* @__PURE__ */ h(i, {
167
- className: "ttw:flex-row",
168
- children: [/* @__PURE__ */ m(f, {
169
- id: e.name,
170
- ref: e.ref,
171
- checked: e.value,
172
- onCheckedChange: e.onChange,
173
- onBlur: e.onBlur,
174
- disabled: S
175
- }), /* @__PURE__ */ m(s, {
176
- htmlFor: e.name,
177
- className: "ttw:font-normal ttw:leading-4",
178
- children: T._("Send reminders to this email when an invoice is approaching its due date")
179
- })]
180
- })
181
- })
182
- }),
183
- /* @__PURE__ */ m(v, {
184
- name: "phone",
185
- control: E,
186
- render: ({ field: n, fieldState: { error: a } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
187
- /* @__PURE__ */ h(s, {
188
- htmlFor: n.name,
189
- className: "ttw:gap-1",
190
- children: [T._("Phone"), /* @__PURE__ */ m(t, {
191
- variant: "body2",
192
- color: "muted",
193
- className: "ttw:leading-snug",
194
- children: T._("(optional)")
195
- })]
196
- }),
197
- /* @__PURE__ */ m(e, {
198
- id: n.name,
199
- ...n,
200
- className: w ? "ttw:bg-white" : "",
201
- disabled: S,
202
- "aria-invalid": !!a || void 0
203
- }),
204
- /* @__PURE__ */ m(o, { errors: [a] })
205
- ] }) })
206
- })
207
- ]
208
- }),
209
- /* @__PURE__ */ m(v, {
210
- name: "tax_id",
211
- control: E,
212
- render: ({ field: n, fieldState: { error: c } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
213
- /* @__PURE__ */ h(s, {
214
- htmlFor: n.name,
215
- className: "ttw:gap-1",
216
- children: [T._("Tax ID / {documentType}", { documentType: x === "individual" ? "SSN" : "EIN" }), /* @__PURE__ */ m(t, {
217
- variant: "body2",
218
- color: "muted",
219
- className: "ttw:leading-snug",
220
- children: T._("(optional)")
221
- })]
222
- }),
223
- /* @__PURE__ */ m(e, {
224
- id: n.name,
225
- ...n,
226
- className: w ? "ttw:bg-white" : "",
227
- placeholder: T._("e.g., {example}", { example: x === "individual" ? "034-56-78890" : "12-3456789" }),
228
- disabled: S,
229
- "aria-invalid": !!c || void 0
230
- }),
231
- /* @__PURE__ */ m(a, { children: O ? T._("Required only if you'll file a 1099 IRS form for this vendor at year-end.") : T._("Required only if you'll issue a 1099 IRS form at year-end.") }),
232
- /* @__PURE__ */ m(o, { errors: [c] })
233
- ] }) })
234
- }),
235
- (O || !w) && /* @__PURE__ */ m(l, {
236
- isLoading: S,
237
- customerType: C,
238
- isStandalone: !1
239
- }),
240
- O && !w && /* @__PURE__ */ h("div", {
241
- className: "ttw:flex ttw:flex-col ttw:gap-4",
242
- children: [/* @__PURE__ */ h("div", {
243
- className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-6 ttw:pb-7",
244
- children: [/* @__PURE__ */ m(t, {
245
- variant: "body1",
246
- className: "ttw:font-medium",
247
- children: T._("Accepted payment methods")
248
- }), /* @__PURE__ */ m(t, {
249
- variant: "body2",
250
- color: "muted",
251
- children: T._("How and where will the money be sent. Don't have these yet? No problem. You can save this vendor and add their payment details later - you just won't be able to send payments until you do.")
252
- })]
253
- }), /* @__PURE__ */ m(c, {
254
- isLoading: S,
255
- isStandalone: !1
256
- })]
257
- })
258
- ]
89
+ })]
90
+ })
259
91
  });
260
92
  };
261
93
  //#endregion
262
- export { b as CounterpartFormContent };
94
+ export { _ as CounterpartAddressForm };