@tesouro/embedded-components-react 0.2.89 → 0.2.91
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.
- package/README.md +20 -20
- package/dist/index.css +32 -2
- package/dist/index.d.ts +4 -1
- package/dist/lib/ReceivablesWidget.js +26 -26
- package/dist/lib/SettingsWidget.d.ts +1 -1
- package/dist/lib/TeamWidget.d.ts +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +76 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +31 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +30 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +12 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +21 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +13 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +119 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +12 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +12 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +48 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +49 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +46 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +11 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +150 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +56 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +71 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +27 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +3 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +58 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +78 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +5 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +29 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +34 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +4 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +25 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1270 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +12 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +26 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +19 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +2 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +113 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +66 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +11 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +12 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +99 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +57 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +9 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +45 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +75 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +58 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +195 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +25 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +78 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +28 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +39 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +113 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +69 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +189 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +31 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +110 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +133 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +21 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +29 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +23 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +183 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +19 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +42 -386
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +4 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +88 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +390 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +25 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +96 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +94 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +14 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +146 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +86 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +25 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +26 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +398 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +30 -368
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +2 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +406 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +491 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +168 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +42 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +61 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +31 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +114 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +44 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +57 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +32 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +2 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +100 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +26 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +6 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +9 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +214 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +12 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +71 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +42 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +34 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +26 -299
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +32 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +57 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +92 -263
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +110 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +86 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +50 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +63 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +44 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +75 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +20 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +2 -346
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +96 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +191 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +344 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +299 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +98 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +157 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +264 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +22 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +53 -246
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +26 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +60 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +34 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +54 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +345 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +19 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +12 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +11 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +11 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +13 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +20 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +32 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +34 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +34 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +15 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +17 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +250 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +176 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +10 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +26 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +40 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +51 -484
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +48 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +30 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +96 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +61 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +149 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +18 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +21 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +31 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +75 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +75 -223
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +41 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +64 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +44 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +25 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +185 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +106 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +82 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +278 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +48 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +15 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +86 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +221 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +19 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +39 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +93 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +16 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +72 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +17 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +48 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +10 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +50 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +158 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +27 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +78 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +19 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +166 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +125 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +159 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +11 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +60 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +61 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +58 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +8 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +59 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +21 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +63 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +14 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +11 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +255 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +127 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +121 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +18 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +16 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +73 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +16 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +11 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +53 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +34 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +22 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +34 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +17 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +64 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +14 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +17 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +26 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +22 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +22 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +37 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +6 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +9 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +66 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +4 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +126 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +93 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +38 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +7 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +50 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +17 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +100 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +26 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +52 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +35 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +40 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +72 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +93 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +69 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +38 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +30 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +14 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +35 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +67 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +67 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +34 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +12 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +33 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +83 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +23 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +103 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +81 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +23 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +39 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +9 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +71 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +82 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +53 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +53 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +53 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +30 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +36 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +46 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +54 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +69 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +82 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +50 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +39 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +96 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +74 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +20 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +32 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +41 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +18 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +49 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +57 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +29 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +32 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +17 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +64 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +37 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +14 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +12 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +57 -55
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/index2.js +36 -23
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/index3.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1835 -1821
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/avatarSwatch.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +21 -20
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index12.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index13.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +105 -103
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index3.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index7.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index13.js +43 -43
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index15.js +33 -31
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index4.js +14 -9
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index5.js +9 -9
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index19.js +0 -18
|
@@ -1,164 +1,65 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "@
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import { isPayableInOCRProcessing as U } from "./index241.js";
|
|
15
|
-
import { PayableDetailsCancelModal as V } from "./index450.js";
|
|
16
|
-
import { isBillOverdue as X } from "./index152.js";
|
|
17
|
-
const fe = ({
|
|
18
|
-
payable: o,
|
|
19
|
-
permissions: a,
|
|
20
|
-
setEdit: d,
|
|
21
|
-
isEdit: _,
|
|
22
|
-
submitInvoice: b,
|
|
23
|
-
rejectInvoice: y,
|
|
24
|
-
approveInvoice: I,
|
|
25
|
-
forceRejectInvoice: j,
|
|
26
|
-
forceApproveInvoice: k,
|
|
27
|
-
cancelInvoice: x,
|
|
28
|
-
reopenInvoice: g,
|
|
29
|
-
deleteInvoice: R,
|
|
30
|
-
payInvoice: B,
|
|
31
|
-
payableDetailsFormId: $,
|
|
32
|
-
onClose: l,
|
|
33
|
-
modalComponent: D,
|
|
34
|
-
showPayButton: P
|
|
1
|
+
import { jsxs as n, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as f } from "./index84.js";
|
|
3
|
+
import { Field as m, FieldContent as c, FieldLabel as s, FieldError as u } from "./index144.js";
|
|
4
|
+
import { Input as h } from "./index145.js";
|
|
5
|
+
import { Typography as p } from "./index85.js";
|
|
6
|
+
import { useLingui as g } from "@lingui/react";
|
|
7
|
+
import { useFormContext as y, Controller as w } from "react-hook-form";
|
|
8
|
+
import { twMerge as N } from "tailwind-merge";
|
|
9
|
+
const j = ({
|
|
10
|
+
hasExistingBankAccount: a,
|
|
11
|
+
isLoading: o,
|
|
12
|
+
isStandalone: b,
|
|
13
|
+
handleCancel: v
|
|
35
14
|
}) => {
|
|
36
15
|
const {
|
|
37
16
|
i18n: t
|
|
38
|
-
} =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
children: t._("
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
reject: {
|
|
65
|
-
variant: "text",
|
|
66
|
-
color: "error",
|
|
67
|
-
onClick: () => y(),
|
|
68
|
-
children: t._("Reject")
|
|
69
|
-
},
|
|
70
|
-
reopen: {
|
|
71
|
-
variant: "text",
|
|
72
|
-
color: "error",
|
|
73
|
-
onClick: () => g(),
|
|
74
|
-
children: t._("Reopen")
|
|
75
|
-
},
|
|
76
|
-
approve: {
|
|
77
|
-
variant: "contained",
|
|
78
|
-
onClick: () => I(),
|
|
79
|
-
children: t._("Approve")
|
|
80
|
-
},
|
|
81
|
-
cancel: {
|
|
82
|
-
variant: "text",
|
|
83
|
-
color: "error",
|
|
84
|
-
onClick: () => p(!0),
|
|
85
|
-
children: t._("Cancel bill")
|
|
86
|
-
},
|
|
87
|
-
delete: {
|
|
88
|
-
variant: "text",
|
|
89
|
-
color: "error",
|
|
90
|
-
onClick: () => {
|
|
91
|
-
R(), l?.();
|
|
92
|
-
},
|
|
93
|
-
children: t._("Delete bill")
|
|
94
|
-
},
|
|
95
|
-
pay: {
|
|
96
|
-
variant: "contained",
|
|
97
|
-
size: "small",
|
|
98
|
-
onClick: () => B(),
|
|
99
|
-
disabled: !P,
|
|
100
|
-
startIcon: /* @__PURE__ */ r(Q, { size: 14 }),
|
|
101
|
-
children: t._("Pay")
|
|
102
|
-
},
|
|
103
|
-
forceApprove: {
|
|
104
|
-
variant: "outlined",
|
|
105
|
-
onClick: () => k(),
|
|
106
|
-
children: t._("Force Approve")
|
|
107
|
-
},
|
|
108
|
-
forceReject: {
|
|
109
|
-
variant: "outlined",
|
|
110
|
-
color: "error",
|
|
111
|
-
onClick: () => j(),
|
|
112
|
-
children: t._("Force Reject")
|
|
113
|
-
}
|
|
114
|
-
}, F = "Monite-PayableDetails-Header", S = a.includes("cancel"), M = o?.document_id ? m ? `${t._("Bill")} #${o.document_id} ${t._("from")} ${m}` : _ ? `${t._("Edit bill")} #${o.document_id}` : `${t._("Bill")} #${o.document_id}` : t._("New incoming invoice");
|
|
115
|
-
let u = null;
|
|
116
|
-
if (!o || !U(o)) {
|
|
117
|
-
const f = a.filter((e) => e === "approve" || e === "reject"), N = a.filter((e) => e === "forceApprove" || e === "forceReject"), v = ["forceApprove", "forceReject"].filter((e) => N.includes(e)), O = v.map((e) => {
|
|
118
|
-
const {
|
|
119
|
-
children: i,
|
|
120
|
-
onClick: n
|
|
121
|
-
} = c[e];
|
|
122
|
-
return {
|
|
123
|
-
key: e,
|
|
124
|
-
label: i,
|
|
125
|
-
onClick: n,
|
|
126
|
-
sx: {
|
|
127
|
-
color: e === "forceReject" ? "error.main" : "text.primary"
|
|
17
|
+
} = g(), {
|
|
18
|
+
control: d,
|
|
19
|
+
resetField: l
|
|
20
|
+
} = y();
|
|
21
|
+
return /* @__PURE__ */ n("div", { className: N("ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:bg-zinc-100", !b && "ttw:border ttw:border-primary ttw:rounded-[10px]"), children: [
|
|
22
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border", children: [
|
|
23
|
+
/* @__PURE__ */ e(p, { variant: "body1", className: "ttw:font-medium", children: a ? t._("Editing ACH bank transfer") : t._("Adding ACH bank transfer") }),
|
|
24
|
+
!a && !b && /* @__PURE__ */ e(f, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary", onClick: () => {
|
|
25
|
+
l("accountHolderName"), l("accountNumber"), l("routingNumber"), v?.();
|
|
26
|
+
}, children: t._("Cancel") })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ e(w, { name: "accountHolderName", control: d, render: ({
|
|
29
|
+
field: r,
|
|
30
|
+
fieldState: {
|
|
31
|
+
error: i
|
|
32
|
+
}
|
|
33
|
+
}) => /* @__PURE__ */ e(m, { "data-invalid": !!(!r.value && a), children: /* @__PURE__ */ n(c, { children: [
|
|
34
|
+
/* @__PURE__ */ e(s, { htmlFor: r.name, children: t._("Account holder name") }),
|
|
35
|
+
/* @__PURE__ */ e(h, { id: r.name, ...r, className: "ttw:bg-white", disabled: o, "aria-invalid": !!(!r.value && a) || !!i || void 0 }),
|
|
36
|
+
/* @__PURE__ */ e(u, { errors: [i] })
|
|
37
|
+
] }) }) }),
|
|
38
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
39
|
+
/* @__PURE__ */ e(w, { name: "routingNumber", control: d, render: ({
|
|
40
|
+
field: r,
|
|
41
|
+
fieldState: {
|
|
42
|
+
error: i
|
|
128
43
|
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
...n
|
|
147
|
-
} = c[e];
|
|
148
|
-
return /* @__PURE__ */ r(C, { ...n, children: i }, e);
|
|
149
|
-
}),
|
|
150
|
-
v.length > 0 && /* @__PURE__ */ r(G, { items: O })
|
|
151
|
-
] });
|
|
152
|
-
}
|
|
153
|
-
return /* @__PURE__ */ s(z, { children: [
|
|
154
|
-
/* @__PURE__ */ r(J, { className: F, title: M, statusElement: /* @__PURE__ */ s("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
155
|
-
/* @__PURE__ */ r(h, { status: o?.status ?? "draft", dueDate: o?.due_date }),
|
|
156
|
-
E && /* @__PURE__ */ r(h, { status: o?.status ?? "draft", dueDate: o?.due_date, showOverdueBadge: !0 })
|
|
157
|
-
] }), actions: u, closeButtonTooltip: t._("Close payable details") }),
|
|
158
|
-
D,
|
|
159
|
-
S && /* @__PURE__ */ r(V, { isOpen: A, handleCloseModal: () => p(!1), handleConfirmation: x })
|
|
44
|
+
}) => /* @__PURE__ */ e(m, { "data-invalid": !!(!r.value && a), children: /* @__PURE__ */ n(c, { children: [
|
|
45
|
+
/* @__PURE__ */ e(s, { htmlFor: r.name, children: t._("Routing number") }),
|
|
46
|
+
/* @__PURE__ */ e(h, { id: r.name, ...r, placeholder: t._("e.g., 123456789"), className: "ttw:bg-white", disabled: o, "aria-invalid": !!(!r.value && a) || !!i || void 0 }),
|
|
47
|
+
/* @__PURE__ */ e(u, { errors: [i] })
|
|
48
|
+
] }) }) }),
|
|
49
|
+
/* @__PURE__ */ e(w, { name: "accountNumber", control: d, render: ({
|
|
50
|
+
field: r,
|
|
51
|
+
fieldState: {
|
|
52
|
+
error: i
|
|
53
|
+
}
|
|
54
|
+
}) => /* @__PURE__ */ e(m, { "data-invalid": !!(!r.value && a), children: /* @__PURE__ */ n(c, { children: [
|
|
55
|
+
/* @__PURE__ */ e(s, { htmlFor: r.name, children: t._("Account number") }),
|
|
56
|
+
/* @__PURE__ */ e(h, { id: r.name, ...r, placeholder: t._("e.g., 12345678"), className: "ttw:bg-white", disabled: o, "aria-invalid": !!(!r.value && a) || !!i || void 0 }),
|
|
57
|
+
/* @__PURE__ */ e(u, { errors: [i] })
|
|
58
|
+
] }) }) })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ e(p, { color: "muted", variant: "body2", children: t._("Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.") })
|
|
160
61
|
] });
|
|
161
62
|
};
|
|
162
63
|
export {
|
|
163
|
-
|
|
64
|
+
j as CounterpartBankFormContent
|
|
164
65
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMoniteContext as r } from "./index57.js";
|
|
2
|
-
import { getAPIErrorMessage as s } from "./
|
|
2
|
+
import { getAPIErrorMessage as s } from "./index120.js";
|
|
3
3
|
import { useLingui as o } from "@lingui/react";
|
|
4
4
|
import { toast as n } from "react-hot-toast";
|
|
5
5
|
const m = () => {
|
|
@@ -1,269 +1,98 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import "
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import { useOptionalFields as ye } from "./index59.js";
|
|
24
|
-
import { useCounterpartContactList as fe } from "./index74.js";
|
|
25
|
-
import { useEntityUserById as ge } from "./index75.js";
|
|
26
|
-
import { useApprovalPolicyById as be } from "./index76.js";
|
|
27
|
-
import { dateStringToLocalDate as O } from "./index96.js";
|
|
28
|
-
import { StyledLabelTableCell as s } from "./index454.js";
|
|
29
|
-
import { CenteredContentBox as ve } from "./index229.js";
|
|
30
|
-
import { TagsModal as xe } from "./index455.js";
|
|
31
|
-
import { classNames as k } from "./index178.js";
|
|
32
|
-
import Ce from "@mui/icons-material/CachedOutlined";
|
|
33
|
-
import Te from "@mui/icons-material/Edit";
|
|
34
|
-
import we from "@mui/icons-material/WarningAmberRounded";
|
|
35
|
-
import { Box as h, Typography as u, Grid as y, Paper as C, Table as T, TableBody as w, TableRow as l, TableCell as r, Stack as v, Chip as z, IconButton as Re, TableHead as Ie, CircularProgress as Se, Tooltip as G } from "@mui/material";
|
|
36
|
-
import { styled as Ne } from "@mui/material/styles";
|
|
37
|
-
import { Sparkles as Pe } from "lucide-react";
|
|
38
|
-
const H = Ne(h)(() => ({
|
|
39
|
-
pb: 6,
|
|
40
|
-
display: "flex",
|
|
41
|
-
flex: "1 1 auto",
|
|
42
|
-
overflow: "auto",
|
|
43
|
-
width: "100%",
|
|
44
|
-
height: 0
|
|
45
|
-
})), _t = (t) => /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ e(Ae, { ...t }) }), Ae = ({
|
|
46
|
-
payable: t,
|
|
47
|
-
enableGLCodes: f,
|
|
48
|
-
updateTags: R,
|
|
49
|
-
...x
|
|
1
|
+
import { jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useForm as y, FormProvider as B } from "react-hook-form";
|
|
3
|
+
import { useLingui as v } from "@lingui/react";
|
|
4
|
+
import { useId as F, useMemo as z, useCallback as H } from "react";
|
|
5
|
+
import { zodResolver as P } from "@hookform/resolvers/zod";
|
|
6
|
+
import { Button as w } from "./index84.js";
|
|
7
|
+
import { getCounterpartBankValidationSchema as U } from "./index214.js";
|
|
8
|
+
import "./index57.js";
|
|
9
|
+
import { toast as l } from "react-hot-toast";
|
|
10
|
+
import { useCreateCounterpartBank as A } from "./index215.js";
|
|
11
|
+
import { useUpdateCounterpartBank as D } from "./index375.js";
|
|
12
|
+
import "date-fns";
|
|
13
|
+
import { getCounterpartName as L } from "./index7.js";
|
|
14
|
+
import { LoadingSpinner as j } from "./index124.js";
|
|
15
|
+
import { CounterpartBankFormContent as I } from "./index249.js";
|
|
16
|
+
const $ = ({
|
|
17
|
+
counterpartId: p,
|
|
18
|
+
isStandalone: g,
|
|
19
|
+
bankAccount: t,
|
|
20
|
+
handleClose: b,
|
|
21
|
+
onUpdate: c,
|
|
22
|
+
onCreate: i
|
|
50
23
|
}) => {
|
|
51
24
|
const {
|
|
52
|
-
i18n:
|
|
53
|
-
} =
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
] }),
|
|
120
|
-
N && /* @__PURE__ */ i(l, { children: [
|
|
121
|
-
/* @__PURE__ */ e(s, { isRequired: c("counterpartBankAccount", d, N?.name) && t?.ocr_status === null, children: a._("Bank account") }),
|
|
122
|
-
/* @__PURE__ */ e(r, { children: N.name })
|
|
123
|
-
] }),
|
|
124
|
-
j && /* @__PURE__ */ i(l, { children: [
|
|
125
|
-
/* @__PURE__ */ e(s, { isRequired: c("issueDate", d) && t?.ocr_status === null, children: a._("Issue date") }),
|
|
126
|
-
/* @__PURE__ */ e(r, { children: t.issued_at ? a.date(O(t.issued_at), _.dateFormat) : "—" })
|
|
127
|
-
] }),
|
|
128
|
-
/* @__PURE__ */ i(l, { children: [
|
|
129
|
-
/* @__PURE__ */ e(s, { isRequired: c("dueDate", d, t.due_date) && t?.ocr_status === null, children: a._("Due date") }),
|
|
130
|
-
/* @__PURE__ */ e(r, { children: t.due_date ? a.date(O(t.due_date), _.dateFormat) : "—" })
|
|
131
|
-
] }),
|
|
132
|
-
/* @__PURE__ */ i(l, { children: [
|
|
133
|
-
/* @__PURE__ */ e(s, { isRequired: c("amount", d) && t?.ocr_status === null, children: a._("Total") }),
|
|
134
|
-
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(h, { sx: {
|
|
135
|
-
display: "flex",
|
|
136
|
-
justifyContent: "space-between"
|
|
137
|
-
}, children: /* @__PURE__ */ e(h, { children: t.total_amount && t.currency ? o(t.total_amount, t.currency) : t.currency ? o(0, t.currency) : "—" }) }) })
|
|
138
|
-
] }),
|
|
139
|
-
E && /* @__PURE__ */ i(l, { children: [
|
|
140
|
-
/* @__PURE__ */ e(s, { isRequired: c("tags", d, t.tags?.[0]?.id) && t?.ocr_status === null, children: a._("Tags") }),
|
|
141
|
-
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(v, { direction: "row", gap: 1, children: [
|
|
142
|
-
/* @__PURE__ */ e(h, { sx: {
|
|
143
|
-
width: "100%"
|
|
144
|
-
}, children: t.tags?.length ? /* @__PURE__ */ e(v, { spacing: 1, direction: "row", useFlexGap: !0, flexWrap: "wrap", children: t.tags.map((n) => /* @__PURE__ */ e(z, { label: n.name, color: "primary", sx: {
|
|
145
|
-
maxWidth: 200
|
|
146
|
-
} }, n.id)) }) : /* @__PURE__ */ e(u, { variant: "body2", sx: {
|
|
147
|
-
marginTop: 1
|
|
148
|
-
}, children: a._("Not set") }) }),
|
|
149
|
-
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(Re, { "aria-label": a._("Edit tags"), size: "small", onClick: () => F(!0), children: /* @__PURE__ */ e(Te, { fontSize: "small" }) }) })
|
|
150
|
-
] }) })
|
|
151
|
-
] }),
|
|
152
|
-
/* @__PURE__ */ i(l, { children: [
|
|
153
|
-
/* @__PURE__ */ e(s, { isRequired: c("appliedPolicy", d) && t?.ocr_status === null, children: a._("Applied policy") }),
|
|
154
|
-
/* @__PURE__ */ e(r, { children: !q && b?.name ? /* @__PURE__ */ i(h, { sx: {
|
|
155
|
-
display: "flex",
|
|
156
|
-
alignItems: "center",
|
|
157
|
-
gap: 1
|
|
158
|
-
}, children: [
|
|
159
|
-
/* @__PURE__ */ e("span", { children: b.name }),
|
|
160
|
-
(t.status === "waiting_to_be_paid" || t.status === "paid" || t.status === "partially_paid") && /* @__PURE__ */ e(z, { label: a._("Approved"), color: "success", size: "small" })
|
|
161
|
-
] }) : !q && a._("no policy") })
|
|
162
|
-
] })
|
|
163
|
-
] }) }) })
|
|
164
|
-
] }),
|
|
165
|
-
te && b && /* @__PURE__ */ e(y, { item: !0, xs: 12, children: /* @__PURE__ */ e(me, { approvalPolicy: b, payableId: t.id, currentStatus: t.status }) }),
|
|
166
|
-
/* @__PURE__ */ i(y, { item: !0, xs: 12, className: m + "-Items", children: [
|
|
167
|
-
/* @__PURE__ */ e(u, { variant: "subtitle2", mb: 2, children: a._("Items") }),
|
|
168
|
-
/* @__PURE__ */ e(C, { variant: "outlined", children: /* @__PURE__ */ i(T, { children: [
|
|
169
|
-
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ i(l, { children: [
|
|
170
|
-
/* @__PURE__ */ e(r, { children: a._("Name") }),
|
|
171
|
-
/* @__PURE__ */ e(r, { children: a._("Quantity") }),
|
|
172
|
-
/* @__PURE__ */ e(r, { children: a._("Price") }),
|
|
173
|
-
/* @__PURE__ */ e(r, { align: "right", children: a._("Total, tax") })
|
|
174
|
-
] }) }),
|
|
175
|
-
/* @__PURE__ */ e(w, { children: ee?.map((n) => /* @__PURE__ */ i(l, { children: [
|
|
176
|
-
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(v, { children: [
|
|
177
|
-
/* @__PURE__ */ e(h, { children: n.name }),
|
|
178
|
-
f && n.ledger_account_id && /* @__PURE__ */ e(u, { variant: "body2", color: "secondary.main", children: Z(n.ledger_account_id) })
|
|
179
|
-
] }) }),
|
|
180
|
-
/* @__PURE__ */ e(r, { children: n.quantity }),
|
|
181
|
-
/* @__PURE__ */ e(r, { children: n.unit_price ? o(n.unit_price, t.currency ?? "USD") : "—" }),
|
|
182
|
-
/* @__PURE__ */ e(r, { align: "right", children: n.subtotal && t.currency ? /* @__PURE__ */ i(U, { children: [
|
|
183
|
-
/* @__PURE__ */ e(h, { children: o(n.subtotal ?? 0, t.currency) }),
|
|
184
|
-
/* @__PURE__ */ i(h, { sx: {
|
|
185
|
-
color: "secondary.main"
|
|
186
|
-
}, children: [
|
|
187
|
-
a._("excl. Tax"),
|
|
188
|
-
" ",
|
|
189
|
-
`${n.tax ? (n.tax / 100).toFixed(0) : 0}%`
|
|
190
|
-
] })
|
|
191
|
-
] }) : t.currency ? o(0, t.currency) : "—" })
|
|
192
|
-
] }, n.id)) })
|
|
193
|
-
] }) })
|
|
194
|
-
] }),
|
|
195
|
-
/* @__PURE__ */ e(y, { item: !0, xs: 12, className: m + "-Totals", children: /* @__PURE__ */ e(C, { variant: "outlined", children: /* @__PURE__ */ e(T, { children: /* @__PURE__ */ i(w, { children: [
|
|
196
|
-
/* @__PURE__ */ i(l, { children: [
|
|
197
|
-
/* @__PURE__ */ e(r, { children: a._("Subtotal") }),
|
|
198
|
-
/* @__PURE__ */ e(r, { align: "right", children: t.subtotal && t.currency ? o(t.subtotal, t.currency) : t.currency ? o(0, t.currency) : "—" })
|
|
199
|
-
] }),
|
|
200
|
-
!!t.discount && t.currency && /* @__PURE__ */ i(l, { children: [
|
|
201
|
-
/* @__PURE__ */ e(r, { children: a._("Discount") }),
|
|
202
|
-
/* @__PURE__ */ e(r, { align: "right", children: o(t.discount ?? 0, t.currency) })
|
|
203
|
-
] }),
|
|
204
|
-
/* @__PURE__ */ i(l, { children: [
|
|
205
|
-
/* @__PURE__ */ e(r, { children: a._("Tax Total") }),
|
|
206
|
-
/* @__PURE__ */ e(r, { align: "right", children: t.tax_amount && t.currency ? o(t.tax_amount, t.currency) : t.currency ? o(0, t.currency) : "—" })
|
|
207
|
-
] }),
|
|
208
|
-
/* @__PURE__ */ i(l, { children: [
|
|
209
|
-
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(u, { variant: "subtitle1", children: a._("Total") }) }),
|
|
210
|
-
/* @__PURE__ */ e(r, { align: "right", children: /* @__PURE__ */ e(u, { variant: "subtitle1", children: t.total_amount && t.currency ? o(t.total_amount, t.currency) : t.currency ? o(0, t.currency) : "—" }) })
|
|
211
|
-
] })
|
|
212
|
-
] }) }) }) }),
|
|
213
|
-
/* @__PURE__ */ i(y, { item: !0, xs: 12, className: m + "-History", children: [
|
|
214
|
-
/* @__PURE__ */ e(u, { variant: "subtitle2", mb: 2, children: a._("History") }),
|
|
215
|
-
/* @__PURE__ */ e(C, { variant: "outlined", children: /* @__PURE__ */ e(T, { children: /* @__PURE__ */ i(w, { children: [
|
|
216
|
-
g && /* @__PURE__ */ i(l, { children: [
|
|
217
|
-
/* @__PURE__ */ e(s, { isRequired: c("addedByUser", d) && t?.ocr_status === null, children: a._("Added by") }),
|
|
218
|
-
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(ue, { user: {
|
|
219
|
-
id: g.id,
|
|
220
|
-
first_name: g.first_name,
|
|
221
|
-
last_name: g.last_name,
|
|
222
|
-
userpic_file_id: g.userpic_file_id
|
|
223
|
-
}, showAvatar: !0, avatarSize: 24, typographyVariant: "body2" }) })
|
|
224
|
-
] }),
|
|
225
|
-
/* @__PURE__ */ i(l, { children: [
|
|
226
|
-
/* @__PURE__ */ e(s, { isRequired: c("addedOn", d) && t?.ocr_status === null, children: a._("Added on") }),
|
|
227
|
-
/* @__PURE__ */ e(r, { children: t.created_at ? a.date(t.created_at, {
|
|
228
|
-
dateStyle: "short",
|
|
229
|
-
timeStyle: "short"
|
|
230
|
-
}) : "—" })
|
|
231
|
-
] }),
|
|
232
|
-
/* @__PURE__ */ i(l, { children: [
|
|
233
|
-
/* @__PURE__ */ e(s, { isRequired: c("updatedOn", d) && t?.ocr_status === null, children: a._("Last updated on") }),
|
|
234
|
-
/* @__PURE__ */ e(r, { children: t.updated_at ? a.date(t.updated_at, {
|
|
235
|
-
dateStyle: "short",
|
|
236
|
-
timeStyle: "short"
|
|
237
|
-
}) : "—" })
|
|
238
|
-
] })
|
|
239
|
-
] }) }) })
|
|
25
|
+
i18n: e
|
|
26
|
+
} = v(), h = `vendor-bank-form-${F()}`, N = !!t, {
|
|
27
|
+
mutate: f,
|
|
28
|
+
isPending: k
|
|
29
|
+
} = D(), {
|
|
30
|
+
mutate: _,
|
|
31
|
+
isPending: C
|
|
32
|
+
} = A(), o = k || C, S = z(() => ({
|
|
33
|
+
accountHolderName: t?.account_holder_name ?? "",
|
|
34
|
+
accountNumber: t?.account_number ?? "",
|
|
35
|
+
routingNumber: t?.routing_number ?? ""
|
|
36
|
+
}), [t]), {
|
|
37
|
+
resetField: n,
|
|
38
|
+
...a
|
|
39
|
+
} = y({
|
|
40
|
+
resolver: P(U(e)),
|
|
41
|
+
defaultValues: S
|
|
42
|
+
}), x = H((m) => {
|
|
43
|
+
m.preventDefault(), m.stopPropagation(), a.handleSubmit((r) => {
|
|
44
|
+
if (t) {
|
|
45
|
+
const s = {
|
|
46
|
+
account_holder_name: r.accountHolderName,
|
|
47
|
+
account_number: r.accountNumber,
|
|
48
|
+
routing_number: r.routingNumber
|
|
49
|
+
};
|
|
50
|
+
return f({
|
|
51
|
+
path: {
|
|
52
|
+
counterpart_id: p,
|
|
53
|
+
bank_account_id: t?.id
|
|
54
|
+
},
|
|
55
|
+
body: s
|
|
56
|
+
}, {
|
|
57
|
+
onSuccess: () => {
|
|
58
|
+
l.success(e._("Bank account information has been updated.")), c && c();
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
} else {
|
|
62
|
+
const s = {
|
|
63
|
+
account_holder_name: r.accountHolderName,
|
|
64
|
+
account_number: r.accountNumber,
|
|
65
|
+
routing_number: r.routingNumber,
|
|
66
|
+
country: "US",
|
|
67
|
+
currency: "USD",
|
|
68
|
+
is_default_for_currency: !0
|
|
69
|
+
};
|
|
70
|
+
return _({
|
|
71
|
+
path: {
|
|
72
|
+
counterpart_id: p
|
|
73
|
+
},
|
|
74
|
+
body: s
|
|
75
|
+
}, {
|
|
76
|
+
onSuccess: () => {
|
|
77
|
+
l.success(e._("Bank Account has been added.")), i && i();
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
})(m);
|
|
82
|
+
}, [l, f, _, L, c, i, a.handleSubmit, e]);
|
|
83
|
+
return /* @__PURE__ */ u(B, { resetField: n, ...a, children: /* @__PURE__ */ d("form", { id: h, onSubmit: x, className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100", children: [
|
|
84
|
+
/* @__PURE__ */ u(I, { hasExistingBankAccount: N, handleCancel: b, isLoading: o, isStandalone: g }),
|
|
85
|
+
/* @__PURE__ */ d("div", { className: "ttw:flex ttw:gap-4 ttw:pt-6", children: [
|
|
86
|
+
/* @__PURE__ */ u(w, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", disabled: o, onClick: () => {
|
|
87
|
+
n("accountHolderName"), n("accountNumber"), n("routingNumber"), b();
|
|
88
|
+
}, children: e._("Cancel") }),
|
|
89
|
+
/* @__PURE__ */ d(w, { type: "submit", className: "ttw:flex-1", disabled: o || !a.formState.isDirty, children: [
|
|
90
|
+
o && /* @__PURE__ */ u(j, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
|
|
91
|
+
e._("Save")
|
|
240
92
|
] })
|
|
241
|
-
] })
|
|
242
|
-
|
|
243
|
-
] });
|
|
244
|
-
}, De = ({
|
|
245
|
-
counterpart: t,
|
|
246
|
-
counterpartRawName: f,
|
|
247
|
-
isCounterpartAIMatched: R,
|
|
248
|
-
isCounterpartMatchingToOCRFound: x,
|
|
249
|
-
isCounterpartLoading: a
|
|
250
|
-
}) => {
|
|
251
|
-
const {
|
|
252
|
-
i18n: _
|
|
253
|
-
} = Q();
|
|
254
|
-
if (a)
|
|
255
|
-
return /* @__PURE__ */ e(Se, { size: 14, color: "secondary" });
|
|
256
|
-
const o = he(t);
|
|
257
|
-
return o && !x ? /* @__PURE__ */ i(v, { component: "span", gap: 1, direction: "row", children: [
|
|
258
|
-
o,
|
|
259
|
-
R && /* @__PURE__ */ e(G, { title: _._("Vendor auto-matched by AI. The vendor name on the bill doesn’t exactly match the saved vendor, so AI selected the closest option."), children: /* @__PURE__ */ e(Pe, { className: "ttw:text-blue-600" }) })
|
|
260
|
-
] }) : f ? /* @__PURE__ */ i(v, { component: "span", gap: 1, direction: "row", children: [
|
|
261
|
-
f,
|
|
262
|
-
/* @__PURE__ */ e(G, { title: x ? _._("The vendor details in the bill don’t fully match the saved vendor.") : _._("The specified vendor has not been saved yet."), children: /* @__PURE__ */ e(we, { color: "warning", fontSize: "small", sx: {
|
|
263
|
-
alignSelf: "center"
|
|
264
|
-
} }) })
|
|
265
|
-
] }) : /* @__PURE__ */ e(U, { children: "—" });
|
|
93
|
+
] })
|
|
94
|
+
] }) });
|
|
266
95
|
};
|
|
267
96
|
export {
|
|
268
|
-
|
|
97
|
+
$ as CounterpartBankForm
|
|
269
98
|
};
|