@tesouro/embedded-components-react 0.2.85 → 0.2.87
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/dist/index.d.ts +4 -0
- package/dist/lib/BillPayWidget.d.ts +4 -0
- package/dist/lib/ReceivablesWidget.js +22 -22
- package/dist/lib/monite-sdk.d.ts +19 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +19 -19
- 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/index109.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 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +80 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +107 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +22 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +13 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +19 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +9 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +21 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +108 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +69 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +94 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +57 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +9 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +45 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +75 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +54 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +196 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +78 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +29 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +40 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +114 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +70 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +191 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +29 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +109 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +131 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +18 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +25 -390
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +183 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +13 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +118 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +4 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +88 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +6 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +43 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +48 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +394 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +2 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +99 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +25 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +7 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +214 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +20 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +36 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +42 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +62 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +96 -2
- 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 +110 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +86 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +50 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +62 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +486 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +163 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +149 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +19 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +42 -15
- 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 +62 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +29 -248
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +113 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +44 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +53 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +64 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +22 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +53 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +29 -30
- 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 +55 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +16 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +37 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +341 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +296 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +103 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +157 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +267 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +20 -73
- 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 +24 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +31 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +44 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +73 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +2 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +95 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +96 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +191 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +41 -485
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +21 -160
- 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 +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +72 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +32 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +18 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +42 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +14 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +69 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +35 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +34 -80
- 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 +54 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +344 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +18 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +13 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +10 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +15 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +28 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +26 -25
- 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 +31 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +33 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +15 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +17 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +241 -336
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +174 -294
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +12 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +18 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +23 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +38 -23
- 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 +56 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +51 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +29 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +98 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +44 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +65 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +22 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +187 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +98 -161
- 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 +81 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +278 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +15 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +83 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +221 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +33 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +94 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +71 -57
- 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 +17 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +48 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +45 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +160 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +28 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +25 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +76 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +27 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +126 -284
- 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 +21 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +18 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +17 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +165 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +129 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +162 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +12 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +60 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +63 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +59 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +6 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +11 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +58 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +75 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +41 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +255 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +32 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +53 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +34 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +24 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +123 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +16 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +16 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +16 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +24 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +36 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +71 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +16 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +11 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +30 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +17 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +61 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +33 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +46 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +8 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +65 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +21 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +68 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +47 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +152 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +7 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +51 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +31 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +4 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +127 -19
- 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 +12 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +48 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +101 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +19 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +57 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +35 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +40 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +72 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +94 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +75 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +66 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +39 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +32 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +85 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +24 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +103 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +110 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +9 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +28 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +38 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +5 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +39 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +29 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +81 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +48 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +36 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +47 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +69 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +82 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +52 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +49 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +50 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +57 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +70 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +21 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +93 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +15 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +75 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +21 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +9 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +19 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +48 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +57 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +31 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +40 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +35 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +66 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +40 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +20 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +16 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- 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 +1 -1
- 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/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 +7 -7
- 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 +22 -22
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +22 -22
- package/package.json +1 -1
|
@@ -1,305 +1,185 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { useCreatePayable as He } from "./index24.js";
|
|
9
|
-
import { useUpdatePayable as Je } from "./index25.js";
|
|
10
|
-
import { useCreatePayableLineItem as Ne } from "./index26.js";
|
|
11
|
-
import { useUpdatePayableLineItem as Ve } from "./index27.js";
|
|
12
|
-
import { useDeletePayableLineItem as Ke } from "./index28.js";
|
|
13
|
-
import { useCancelPayableById as Xe } from "./index29.js";
|
|
14
|
-
import { useSubmitPayableForApproval as Ye } from "./index30.js";
|
|
15
|
-
import { useForceRejectPayable as Ze } from "./index31.js";
|
|
16
|
-
import { useForceApprovePayable as $e } from "./index32.js";
|
|
17
|
-
import { useReopenPayable as ea } from "./index33.js";
|
|
18
|
-
import { useDeletePayable as aa } from "./index34.js";
|
|
19
|
-
import { useRejectApprovalRequest as ta } from "./index405.js";
|
|
20
|
-
import { useApproveApprovalRequest as ia } from "./index406.js";
|
|
21
|
-
import { isPayableInOCRProcessing as ra } from "./index292.js";
|
|
22
|
-
import { useMoniteContext as sa } from "./index57.js";
|
|
23
|
-
import { useCurrencies as oa } from "./index58.js";
|
|
24
|
-
import { useState as na, useEffect as da, useCallback as X, useMemo as pa } from "react";
|
|
25
|
-
import "./index92.js";
|
|
26
|
-
import "@emotion/react/jsx-runtime";
|
|
27
|
-
import { useLingui as ca } from "@lingui/react";
|
|
28
|
-
import "react-dom";
|
|
29
|
-
import "@mui/x-data-grid";
|
|
30
|
-
import { useEntityUserByAuthToken as ma } from "./index75.js";
|
|
31
|
-
import { usePayablePaymentIntentsAndRecords as ua } from "./index79.js";
|
|
32
|
-
import { useUserPermissions as la } from "./index141.js";
|
|
33
|
-
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
34
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
35
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as z } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as Q, useEffect as J, useState as U, useId as W, useCallback as Y } from "react";
|
|
3
|
+
import { useForm as X } from "react-hook-form";
|
|
4
|
+
import { toast as Z } from "react-hot-toast";
|
|
5
|
+
import { useMoniteContext as ee } from "./index57.js";
|
|
6
|
+
import { MoniteScopedProviders as te } from "./index83.js";
|
|
7
|
+
import { useCounterpartById as ie } from "./index70.js";
|
|
36
8
|
import "@tanstack/react-query";
|
|
37
|
-
import "
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
9
|
+
import { useCounterpartContactList as oe } from "./index74.js";
|
|
10
|
+
import { useMe as ne, useMyEntity as ae } from "./index78.js";
|
|
11
|
+
import { useLingui as R } from "@lingui/react";
|
|
12
|
+
import { useGetReceivableById as se } from "./index82.js";
|
|
13
|
+
import { CenteredContentBox as re } from "./index218.js";
|
|
14
|
+
import { IconWrapper as de } from "./index219.js";
|
|
15
|
+
import { zodResolver as me } from "@hookform/resolvers/zod";
|
|
16
|
+
import ce from "@mui/icons-material/ArrowBack";
|
|
17
|
+
import le from "@mui/icons-material/Close";
|
|
18
|
+
import { Dialog as ue } from "./index50.js";
|
|
19
|
+
import { DialogTitle as pe, Toolbar as fe, Grid as D, Stack as $, Button as j, Typography as ye, DialogContent as he, CircularProgress as ve } from "@mui/material";
|
|
20
|
+
import { getEmailInvoiceDetailsSchema as be } from "./index188.js";
|
|
21
|
+
import { Form as ge, FormContent as Ie } from "./index414.js";
|
|
22
|
+
import { getDefaultContact as _e } from "./index415.js";
|
|
23
|
+
import { useIssueReceivableById as Ce } from "./index299.js";
|
|
24
|
+
import { useSendReceivableById as xe } from "./index416.js";
|
|
25
|
+
import { PreviewEmail as Ee } from "./index417.js";
|
|
26
|
+
const Ye = (t) => {
|
|
53
27
|
const {
|
|
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
|
-
|
|
28
|
+
i18n: n
|
|
29
|
+
} = R(), {
|
|
30
|
+
data: a,
|
|
31
|
+
isLoading: m
|
|
32
|
+
} = ne(), {
|
|
33
|
+
data: o,
|
|
34
|
+
isLoading: b
|
|
35
|
+
} = se(t.invoiceId), {
|
|
36
|
+
entityName: s,
|
|
37
|
+
isLoading: l
|
|
38
|
+
} = ae(), {
|
|
39
|
+
data: g,
|
|
40
|
+
isLoading: i
|
|
41
|
+
} = oe(o?.counterpart_id), {
|
|
42
|
+
data: u
|
|
43
|
+
} = ie(o?.counterpart_id), r = _e(g, u), I = r?.email ?? "", p = r && a ? n._(`Hi {firstName},
|
|
44
|
+
|
|
45
|
+
Please find the invoice attached as discussed.
|
|
46
|
+
|
|
47
|
+
Kind Regards,
|
|
48
|
+
{senderName}`, {
|
|
49
|
+
firstName: r.first_name,
|
|
50
|
+
senderName: a.first_name
|
|
51
|
+
}) : n._(`Please find the invoice attached as discussed.
|
|
52
|
+
|
|
53
|
+
Kind Regards,
|
|
54
|
+
{senderName}`, {
|
|
55
|
+
senderName: a?.first_name ?? ""
|
|
56
|
+
}), _ = o && s ? o.document_id ? n._("Invoice {documentId} from {entityName}", {
|
|
57
|
+
documentId: o.document_id,
|
|
58
|
+
entityName: s
|
|
59
|
+
}) : n._("Invoice from {entityName}", {
|
|
60
|
+
entityName: s
|
|
61
|
+
}) : "";
|
|
62
|
+
return /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(Pe, { ...t, to: I, body: p, subject: _, isLoading: i || b || m || l, isIssued: o?.status !== "draft", isOpen: t.isOpen }) });
|
|
63
|
+
}, d = {
|
|
64
|
+
Edit: "form",
|
|
65
|
+
Preview: "preview"
|
|
66
|
+
}, Pe = ({
|
|
67
|
+
invoiceId: t,
|
|
68
|
+
subject: n,
|
|
69
|
+
body: a,
|
|
70
|
+
to: m,
|
|
71
|
+
isLoading: o,
|
|
72
|
+
isIssued: b,
|
|
73
|
+
onClose: s,
|
|
74
|
+
onSendEmail: l,
|
|
75
|
+
isOpen: g
|
|
76
|
+
}) => {
|
|
97
77
|
const {
|
|
98
|
-
|
|
99
|
-
} =
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
78
|
+
i18n: i
|
|
79
|
+
} = R(), {
|
|
80
|
+
api: u,
|
|
81
|
+
entityId: r
|
|
82
|
+
} = ee(), {
|
|
83
|
+
control: I,
|
|
84
|
+
handleSubmit: p,
|
|
85
|
+
getValues: _,
|
|
86
|
+
trigger: A,
|
|
87
|
+
reset: S
|
|
88
|
+
} = X({
|
|
89
|
+
resolver: me(be(i)),
|
|
90
|
+
defaultValues: Q(() => ({
|
|
91
|
+
subject: n,
|
|
92
|
+
body: a,
|
|
93
|
+
to: m
|
|
94
|
+
}), [n, a, m])
|
|
113
95
|
}), {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
} =
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
} = Ze(e ?? "", M), {
|
|
123
|
-
mutateAsync: we,
|
|
124
|
-
isPending: Ce
|
|
125
|
-
} = $e(e ?? "", U), {
|
|
126
|
-
mutateAsync: Re,
|
|
127
|
-
isPending: Ee
|
|
128
|
-
} = ea(e ?? "", ae), {
|
|
129
|
-
mutateAsync: Le
|
|
130
|
-
} = aa(e ?? "", te), Oe = S.isPending || I.isPending || be || J || Ae || Ce || Ee || _e || he, je = S.isPending || I.isPending || J, N = X(() => p.has(u.PayableApproveOrg), [p]), Se = pa(() => {
|
|
131
|
-
if (!e) return ["cancelEdit", "save"];
|
|
132
|
-
if (c === "draft")
|
|
133
|
-
return l ? g ? ["cancelEdit", "save"] : [] : [...j ? ["cancel"] : [], ...g ? ["edit"] : []];
|
|
134
|
-
if (c === "new")
|
|
135
|
-
return l ? g ? ["cancelEdit", "save"] : [] : [...j ? ["cancel"] : [], ...g ? ["edit"] : [], ...T ? ["submit"] : []];
|
|
136
|
-
if (c === "approve_in_progress") {
|
|
137
|
-
const a = (h?.data?.length ?? 0) > 0 && h?.data?.[0]?.status === "waiting" && P !== void 0, o = N();
|
|
138
|
-
return [
|
|
139
|
-
// Show approve/reject buttons if user has pending approval request
|
|
140
|
-
...a ? ["reject", "approve"] : [],
|
|
141
|
-
...F && o ? ["forceReject", "forceApprove"] : []
|
|
142
|
-
];
|
|
143
|
-
}
|
|
144
|
-
return (c === "waiting_to_be_paid" || c === "partially_paid") && k && Number(i?.amount_to_pay) > 0 ? ["pay"] : c === "rejected" && x ? ["reopen"] : c === "canceled" && z ? ["delete"] : [];
|
|
145
|
-
}, [e, c, l, g, j, T, F, x, z, k, h, P, i?.amount_to_pay, N]), De = async (a, o) => {
|
|
146
|
-
const t = await S.mutateAsync({
|
|
147
|
-
...a
|
|
148
|
-
}, {
|
|
149
|
-
onSuccess: (r) => {
|
|
150
|
-
w.success(b._("Payable “{createdPayableDocument_id}” has been created", {
|
|
151
|
-
createdPayableDocument_id: r.document_id
|
|
152
|
-
})), n.finops.getCounterparts.invalidateQueries({
|
|
153
|
-
parameters: {
|
|
154
|
-
query: {
|
|
155
|
-
is_vendor: !0
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}, d);
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
if (o) {
|
|
162
|
-
const r = [];
|
|
163
|
-
o?.forEach((s) => {
|
|
164
|
-
t.currency && !s.id && r.push(H.mutateAsync({
|
|
165
|
-
path: {
|
|
166
|
-
payable_id: t.id
|
|
167
|
-
},
|
|
168
|
-
body: B(t.currency, s, C, {
|
|
169
|
-
allowLedgerUpdate: !1
|
|
170
|
-
})
|
|
171
|
-
}));
|
|
172
|
-
}), await Promise.all(r);
|
|
173
|
-
}
|
|
174
|
-
await Promise.all([n.finops.getPayablesId.invalidateQueries({
|
|
175
|
-
parameters: {
|
|
176
|
-
path: {
|
|
177
|
-
payable_id: t.id
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}, d), n.finops.getPayables.invalidateQueries(d), n.finops.getPayablesIdLineItems.invalidateQueries({
|
|
181
|
-
parameters: {
|
|
182
|
-
path: {
|
|
183
|
-
payable_id: t.id
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}, d)]), l && R(!1), q?.(t.id);
|
|
187
|
-
}, Qe = async (a, o, t, r) => {
|
|
188
|
-
const s = await I.mutateAsync({
|
|
189
|
-
path: {
|
|
190
|
-
payable_id: a
|
|
191
|
-
},
|
|
192
|
-
body: o
|
|
193
|
-
}, {
|
|
194
|
-
onSuccess: (y) => {
|
|
195
|
-
w.success(b._("Payable “{updatedPayableDocument_id}” has been updated", {
|
|
196
|
-
updatedPayableDocument_id: y.document_id
|
|
197
|
-
}));
|
|
198
|
-
}
|
|
96
|
+
subject: F,
|
|
97
|
+
body: T
|
|
98
|
+
} = _();
|
|
99
|
+
J(() => {
|
|
100
|
+
S({
|
|
101
|
+
subject: n,
|
|
102
|
+
body: a,
|
|
103
|
+
to: m
|
|
199
104
|
});
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
},
|
|
207
|
-
body: B(s.currency, m, C)
|
|
208
|
-
}));
|
|
209
|
-
}), r?.lineItems?.forEach((m, A) => {
|
|
210
|
-
if (!m) return;
|
|
211
|
-
const {
|
|
212
|
-
id: Me,
|
|
213
|
-
...V
|
|
214
|
-
} = m, Ue = Object.values(V).some((Q) => Q), D = t[A]?.id, K = t[A], We = !Me && !!Ue && !!D && !!K;
|
|
215
|
-
s.currency && We && y.push(le.mutateAsync({
|
|
216
|
-
path: {
|
|
217
|
-
payable_id: s.id,
|
|
218
|
-
line_item_id: D
|
|
219
|
-
},
|
|
220
|
-
body: B(s.currency, K, C, {
|
|
221
|
-
allowLedgerUpdate: Y && !!V.ledger_account_id,
|
|
222
|
-
previous: O?.find((Q) => Q.id === D)?.ledger_account_id
|
|
223
|
-
})
|
|
224
|
-
}));
|
|
225
|
-
}), O?.forEach((m) => {
|
|
226
|
-
t?.find((A) => A.id === m.id) || y.push(ye.mutateAsync({
|
|
227
|
-
path: {
|
|
228
|
-
payable_id: s.id,
|
|
229
|
-
line_item_id: m.id
|
|
230
|
-
}
|
|
231
|
-
}));
|
|
232
|
-
}), await Promise.all(y);
|
|
105
|
+
}, [a, S, n, m]);
|
|
106
|
+
const C = xe(t), x = Ce(t), E = u.finops.postPaymentLinks.useMutation({}), {
|
|
107
|
+
data: P
|
|
108
|
+
} = u.finops.getEntitiesIdPaymentMethods.useQuery({
|
|
109
|
+
path: {
|
|
110
|
+
entity_id: r
|
|
233
111
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
},
|
|
247
|
-
body: {
|
|
248
|
-
tag_ids: t
|
|
249
|
-
}
|
|
250
|
-
}, {
|
|
251
|
-
onSuccess: (r) => {
|
|
252
|
-
n.finops.getPayablesId.invalidateQueries({
|
|
253
|
-
parameters: {
|
|
254
|
-
path: {
|
|
255
|
-
payable_id: r.id
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}, d);
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
}, qe = X(() => {
|
|
262
|
-
if (i) {
|
|
263
|
-
if (!f) return L();
|
|
264
|
-
if (f?.length < 2) return f(i.id);
|
|
265
|
-
f(i.id, void 0, {
|
|
266
|
-
resolve: (a) => {
|
|
267
|
-
a?.showToast && w.success(b._("Payment flow started")), _(), v();
|
|
112
|
+
}), [f, k] = U(d.Edit), w = `Monite-Form-emailInvoiceDetails-${W()}`, O = Y((L) => {
|
|
113
|
+
L.preventDefault();
|
|
114
|
+
const G = E.mutateAsync, H = x.mutateAsync, K = C.mutate;
|
|
115
|
+
p(async (v) => {
|
|
116
|
+
const M = P ? P.data.filter(({
|
|
117
|
+
status: N,
|
|
118
|
+
direction: q
|
|
119
|
+
}) => N === "active" && q === "receive") : [];
|
|
120
|
+
M.length === 0 ? Z.error(i._("You haven't onboarded for any payment method. Invoice is issued without a payment link.")) : (await H(void 0), await G({
|
|
121
|
+
recipient: {
|
|
122
|
+
id: r,
|
|
123
|
+
type: "entity"
|
|
268
124
|
},
|
|
269
|
-
|
|
270
|
-
|
|
125
|
+
payment_methods: M.map((N) => N.type),
|
|
126
|
+
object: {
|
|
127
|
+
id: t,
|
|
128
|
+
type: "receivable"
|
|
129
|
+
}
|
|
130
|
+
}));
|
|
131
|
+
const V = {
|
|
132
|
+
body_text: v.body,
|
|
133
|
+
subject_text: v.subject,
|
|
134
|
+
recipients: v.to ? {
|
|
135
|
+
to: [v.to]
|
|
136
|
+
} : void 0
|
|
137
|
+
};
|
|
138
|
+
K(V, {
|
|
139
|
+
onSuccess: () => {
|
|
140
|
+
l?.(t), s();
|
|
271
141
|
}
|
|
272
142
|
});
|
|
273
|
-
}
|
|
274
|
-
}, [
|
|
275
|
-
return {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
143
|
+
})(L);
|
|
144
|
+
}, [E.mutateAsync, x.mutateAsync, p, i, t, r, s, l, P, C.mutate]), y = x.isPending || C.isPending || E.isPending, B = "Monite-EmailInvoiceDetails", h = f == d.Preview;
|
|
145
|
+
return /* @__PURE__ */ c(ue, { open: g, fullScreen: !0, onClose: s, children: [
|
|
146
|
+
/* @__PURE__ */ e(pe, { className: B + "-Title", children: /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ c(D, { container: !0, children: [
|
|
147
|
+
/* @__PURE__ */ e(D, { item: !0, xs: 6, children: /* @__PURE__ */ c($, { direction: "row", alignItems: "center", spacing: 2, children: [
|
|
148
|
+
f == d.Edit && /* @__PURE__ */ c(z, { children: [
|
|
149
|
+
/* @__PURE__ */ e(j, { variant: "text", color: "primary", onClick: s, startIcon: /* @__PURE__ */ e(ce, {}), disabled: y, "data-testid": "back-button", children: i._("Back") }),
|
|
150
|
+
/* @__PURE__ */ e(ye, { variant: "h3", children: i._("Compose email") })
|
|
151
|
+
] }),
|
|
152
|
+
h && /* @__PURE__ */ e(de, { edge: "start", color: "inherit", onClick: () => {
|
|
153
|
+
k(d.Edit);
|
|
154
|
+
}, "aria-label": i._("Back to edit"), "data-testid": "close-preview-button", children: /* @__PURE__ */ e(le, {}) })
|
|
155
|
+
] }) }),
|
|
156
|
+
/* @__PURE__ */ e(D, { item: !0, xs: 6, children: /* @__PURE__ */ c($, { direction: "row", alignItems: "center", justifyContent: "end", spacing: 2, children: [
|
|
157
|
+
f == d.Edit && /* @__PURE__ */ e(j, { variant: "outlined", color: "primary", type: "button", form: w, disabled: y || o, onClick: async () => {
|
|
158
|
+
await A() && k(d.Preview);
|
|
159
|
+
}, "data-testid": "preview-button", children: i._("Preview email") }),
|
|
160
|
+
/* @__PURE__ */ e(j, { variant: "contained", color: "primary", type: "submit", form: w, disabled: y || o, "data-testid": "issue-and-send-button", children: b ? i._("Send") : i._("Issue and Send") })
|
|
161
|
+
] }) })
|
|
162
|
+
] }) }) }),
|
|
163
|
+
/* @__PURE__ */ e(he, { className: B + "-Content", sx: {
|
|
164
|
+
mt: h ? 0 : 4,
|
|
165
|
+
p: h ? 0 : "0 32px 32px 32px",
|
|
166
|
+
height: "100%",
|
|
167
|
+
width: "100%",
|
|
168
|
+
display: "flex",
|
|
169
|
+
flexDirection: "column"
|
|
170
|
+
}, children: /* @__PURE__ */ c(ge, { formName: w, handleIssueAndSend: O, style: {
|
|
171
|
+
display: "flex",
|
|
172
|
+
flexDirection: "column",
|
|
173
|
+
flex: 1,
|
|
174
|
+
minHeight: 0,
|
|
175
|
+
width: "100%"
|
|
176
|
+
}, children: [
|
|
177
|
+
o ? /* @__PURE__ */ e(re, { className: "Monite-LoadingPage", children: /* @__PURE__ */ e(ve, {}) }) : f == d.Edit && /* @__PURE__ */ e(Ie, { invoiceId: t, control: I, isDisabled: y }),
|
|
178
|
+
h && /* @__PURE__ */ e(Ee, { invoiceId: t, body: T, subject: F })
|
|
179
|
+
] }) })
|
|
180
|
+
] });
|
|
181
|
+
};
|
|
303
182
|
export {
|
|
304
|
-
|
|
183
|
+
Ye as EmailInvoiceDetails,
|
|
184
|
+
Pe as EmailInvoiceDetailsBase
|
|
305
185
|
};
|
|
@@ -1,105 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import T from "@mui/icons-material/AttachFile";
|
|
13
|
-
import j from "@mui/icons-material/CloudUploadOutlined";
|
|
14
|
-
import { useTheme as k, alpha as $, CircularProgress as z, Box as g, Typography as a, Button as L } from "@mui/material";
|
|
15
|
-
const X = ({
|
|
16
|
-
payableId: i
|
|
17
|
-
}) => {
|
|
18
|
-
const {
|
|
19
|
-
i18n: o
|
|
20
|
-
} = S(), {
|
|
21
|
-
api: n,
|
|
22
|
-
queryClient: m
|
|
23
|
-
} = I(), p = k(), {
|
|
24
|
-
FileInput: y,
|
|
25
|
-
openFileInput: b,
|
|
26
|
-
checkFileError: v
|
|
27
|
-
} = E(), [c, l] = _(!1), u = n.finops.postPayablesIdAttachFile.useMutation({
|
|
28
|
-
path: {
|
|
29
|
-
payable_id: i
|
|
30
|
-
}
|
|
31
|
-
}, {
|
|
32
|
-
onSuccess: () => Promise.all([n.finops.getPayables.invalidateQueries(m), n.finops.getPayablesId.invalidateQueries({
|
|
33
|
-
parameters: {
|
|
34
|
-
path: {
|
|
35
|
-
payable_id: i
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}, m)]),
|
|
39
|
-
onError: () => {
|
|
40
|
-
}
|
|
41
|
-
}), x = A(() => ({
|
|
42
|
-
border: 2,
|
|
43
|
-
borderRadius: 2,
|
|
44
|
-
borderStyle: "dashed",
|
|
45
|
-
borderColor: "primary.main",
|
|
46
|
-
backgroundColor: $(p.palette.primary.main, 0.05)
|
|
47
|
-
}), [p.palette.primary.main]), D = (e) => {
|
|
48
|
-
e.preventDefault(), l(!0);
|
|
49
|
-
}, C = (e) => {
|
|
50
|
-
e.preventDefault(), l(!1);
|
|
51
|
-
}, F = (e) => {
|
|
52
|
-
e.preventDefault(), l(!1);
|
|
53
|
-
const t = Array.from(e.dataTransfer.files)[0];
|
|
54
|
-
t && d(t);
|
|
55
|
-
}, d = (e) => {
|
|
56
|
-
const t = v(e);
|
|
57
|
-
if (t) {
|
|
58
|
-
s.error(t);
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
i && u.mutate({
|
|
62
|
-
file: e
|
|
63
|
-
}, {
|
|
64
|
-
onSuccess: () => {
|
|
65
|
-
s.success(o._("File successfully attached"));
|
|
66
|
-
},
|
|
67
|
-
onError: (P) => {
|
|
68
|
-
s.error(B(o, P));
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
return u.isPending ? /* @__PURE__ */ r(M, { children: /* @__PURE__ */ r(z, {}) }) : /* @__PURE__ */ r(g, { className: "Monite-PayableDetailsAttachFile", sx: {
|
|
73
|
-
width: "100%",
|
|
74
|
-
height: "100%",
|
|
75
|
-
display: "flex",
|
|
76
|
-
flexDirection: "column",
|
|
77
|
-
justifyContent: "center",
|
|
78
|
-
textAlign: "center",
|
|
79
|
-
...c && x
|
|
80
|
-
}, onDragOver: D, onDragLeave: C, onDrop: F, children: /* @__PURE__ */ r(g, { sx: {
|
|
81
|
-
margin: "auto"
|
|
82
|
-
}, children: c ? /* @__PURE__ */ f(h, { children: [
|
|
83
|
-
/* @__PURE__ */ r(j, { color: "primary", fontSize: "large" }),
|
|
84
|
-
/* @__PURE__ */ r(a, { color: "primary", variant: "subtitle2", children: o._("Drop the file here to upload") })
|
|
85
|
-
] }) : /* @__PURE__ */ f(h, { children: [
|
|
86
|
-
/* @__PURE__ */ r(T, { color: "primary", fontSize: "large", sx: {
|
|
87
|
-
marginBottom: 2
|
|
88
|
-
} }),
|
|
89
|
-
/* @__PURE__ */ r(a, { variant: "h3", sx: {
|
|
90
|
-
marginBottom: 1
|
|
91
|
-
}, children: o._("Attach a file") }),
|
|
92
|
-
/* @__PURE__ */ r(a, { children: o._("This invoice doesn't have a file attached.") }),
|
|
93
|
-
/* @__PURE__ */ r(a, { sx: {
|
|
94
|
-
marginBottom: 2
|
|
95
|
-
}, children: o._("Drag & Drop it here to save for administrative purposes.") }),
|
|
96
|
-
/* @__PURE__ */ r(L, { variant: "outlined", component: "label", onClick: b, children: o._("Choose from device") }),
|
|
97
|
-
/* @__PURE__ */ r(y, { onChange: (e) => {
|
|
98
|
-
const t = e.target.files ? e.target.files[0] : null;
|
|
99
|
-
t && d(t);
|
|
100
|
-
} })
|
|
101
|
-
] }) }) });
|
|
102
|
-
};
|
|
1
|
+
import { jsxs as a, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Typography as e } from "./index85.js";
|
|
3
|
+
function i({
|
|
4
|
+
label: r,
|
|
5
|
+
value: o
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0", children: [
|
|
8
|
+
/* @__PURE__ */ t(e, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: r }),
|
|
9
|
+
/* @__PURE__ */ t(e, { component: "span", variant: "body2", className: "ttw:whitespace-pre-line", children: o })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
103
12
|
export {
|
|
104
|
-
|
|
13
|
+
i as InvoiceDetailsInfoRow
|
|
105
14
|
};
|