@tesouro/embedded-components-react 0.7.50 → 0.7.52
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.css +0 -25
- package/dist/lib/monite-sdk.d.ts +44 -79
- package/dist/lib/monite-sdk.js +56 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +60 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +153 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +52 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +53 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +37 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +71 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +39 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +65 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +158 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +7 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +76 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +78 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +42 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -568
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +27 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +16 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +23 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +6 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +39 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +48 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +58 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +27 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +43 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +78 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +2 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +52 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +81 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +119 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +4 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +75 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +122 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +11 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +122 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +21 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +6 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +54 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +72 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +25 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +58 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +19 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +181 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +27 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +61 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +34 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +9 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +42 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +17 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +34 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +111 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +66 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +196 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +9 -198
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +358 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -351
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +179 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +95 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +15 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +36 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +53 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +43 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +36 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +0 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +56 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +49 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +82 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +7 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +301 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +27 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +25 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +20 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +158 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +34 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +3 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +100 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +187 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +116 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +195 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +11 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +12 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +237 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +33 -239
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +159 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +16 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +20 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +11 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +9 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +22 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +14 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +79 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +99 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +44 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +26 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +102 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +168 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +11 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +4 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +65 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +26 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +208 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +88 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +17 -210
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +153 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +102 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +40 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +4 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +77 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +18 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +9 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +129 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +4 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +219 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +34 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +11 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +34 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +73 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +181 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +14 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +189 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +100 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +58 -198
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +52 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +91 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +40 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +73 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +81 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +12 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +22 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +5 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +44 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +4 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +33 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +30 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +95 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +13 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +3 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +51 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +1 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +15 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +45 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +63 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +33 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +36 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +12 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +24 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +53 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +23 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +73 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +79 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +8 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +3 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +10 -56
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +0 -97
|
@@ -1,22 +1,184 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
2
3
|
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { useEntityUserByAuthToken as n } from "./index52.js";
|
|
5
|
+
import { usePayablePaymentIntentsAndRecords as r } from "./index57.js";
|
|
6
|
+
import { useCurrencies as i } from "./index74.js";
|
|
7
|
+
import "./index87.js";
|
|
8
|
+
import { useUserPermissions as a } from "./index154.js";
|
|
9
|
+
import { useGetPayableCounterpart as o } from "./index198.js";
|
|
10
|
+
import { usePayButtonVisibility as s } from "./index201.js";
|
|
11
|
+
import { useGetPayableById as c } from "./index203.js";
|
|
12
|
+
import { useGetPayableLineItems as l } from "./index204.js";
|
|
13
|
+
import { useGetPayableApprovalRequests as u } from "./index205.js";
|
|
14
|
+
import { useCreatePayable as ee } from "./index206.js";
|
|
15
|
+
import { useUpdatePayable as d } from "./index207.js";
|
|
16
|
+
import { useCreatePayableLineItem as te } from "./index208.js";
|
|
17
|
+
import { useUpdatePayableLineItem as ne } from "./index209.js";
|
|
18
|
+
import { useDeletePayableLineItem as re } from "./index210.js";
|
|
19
|
+
import { useCancelPayableById as ie } from "./index211.js";
|
|
20
|
+
import { useSubmitPayableForApproval as ae } from "./index212.js";
|
|
21
|
+
import { useForceRejectPayable as oe } from "./index213.js";
|
|
22
|
+
import { useForceApprovePayable as se } from "./index214.js";
|
|
23
|
+
import { useReopenPayable as ce } from "./index215.js";
|
|
24
|
+
import { useDeletePayable as le } from "./index216.js";
|
|
25
|
+
import { prepareLineItemSubmit as f } from "./index219.js";
|
|
26
|
+
import { usePaymentHandler as ue } from "./index235.js";
|
|
27
|
+
import { useRejectApprovalRequest as de } from "./index236.js";
|
|
28
|
+
import { useApproveApprovalRequest as fe } from "./index237.js";
|
|
29
|
+
import { isPayableInOCRProcessing as p } from "./index238.js";
|
|
30
|
+
import { useCallback as m, useEffect as h, useMemo as g, useState as pe } from "react";
|
|
31
|
+
import { toast as _ } from "react-hot-toast";
|
|
32
|
+
import { useLingui as me } from "@lingui/react";
|
|
5
33
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js
|
|
6
|
-
|
|
7
|
-
let { api:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
34
|
+
function v({ id: v, enableGLCodes: he, shouldOpenInEditMode: ge, onSaved: y, onCanceled: _e, onSubmitted: ve, onRejected: b, onApproved: x, onReopened: ye, onDeleted: be, onPay: S }) {
|
|
35
|
+
let { api: C, queryClient: w } = t(), T = a(), { i18n: E } = me(), { formatToMinorUnits: D } = i(), { data: O } = n(), [k, A] = pe(ge ?? !1), j = C.finops.getPayablesId.getQueryData({ path: { payable_id: v ?? "" } }, w), M = j && p(j), { data: N, error: xe, isLoading: Se, refetch: P } = c(v ?? "", M, k), F = N?.status, { payablesPaymentIntentsRecord: Ce, refetch: I } = r(v ? [v] : []), { showPayButton: we, intentsAnalysis: Te } = s({
|
|
36
|
+
payable: N,
|
|
37
|
+
payableRecentPaymentRecordByIntent: Ce?.[v ?? ""] || []
|
|
38
|
+
}), { handlePay: L, modalComponent: Ee } = ue(v, N?.counterpart_id, () => {
|
|
39
|
+
P(), I();
|
|
40
|
+
}, Te.idPaymentIntentInCreated), { counterpart: De, isCounterpartAIMatched: Oe, AISuggestions: ke } = o({ payable: N });
|
|
41
|
+
h(() => {
|
|
42
|
+
if (M) return () => void C.finops.getPayables.invalidateQueries(w);
|
|
43
|
+
}, [
|
|
44
|
+
C,
|
|
45
|
+
M,
|
|
46
|
+
w
|
|
47
|
+
]);
|
|
48
|
+
let { data: Ae } = l(v ?? ""), R = Ae?.data, { data: z } = u(v ?? "", F), B = z?.data?.find((e) => e.status === "waiting" && !e.approved_by?.includes(O?.id ?? "") && e.user_ids?.includes(O?.id ?? "")), V = T.has(e.PayableWriteOrg), H = T.has(e.PayableWriteOrg), U = T.has(e.PayableWriteOrg), W = T.has(e.PayableApproveOrg), G = T.has(e.PayablePayOrg), K = T.has(e.PayableWriteOrg), q = T.has(e.PayableWriteOrg), J = ee(), Y = d(), X = te(v ?? ""), je = ne(v ?? ""), Me = re(v ?? ""), { mutateAsync: Ne, isPending: Pe } = ie(v ?? "", _e), { submitForApproval: Fe, isPending: Z } = ae({
|
|
49
|
+
payableId: v ?? "",
|
|
50
|
+
AISuggestions: ke?.suggested_counterpart,
|
|
51
|
+
isCounterpartAIMatched: Oe,
|
|
52
|
+
counterpartId: De?.id,
|
|
53
|
+
onSubmitted: ve
|
|
54
|
+
}), { mutateAsync: Ie, isPending: Le } = de(B?.id ?? "", b, v, N?.document_id), { mutateAsync: Re, isPending: ze } = fe(B?.id ?? "", x, v, N?.document_id), { mutateAsync: Be, isPending: Ve } = oe(v ?? "", b), { mutateAsync: He, isPending: Q } = se(v ?? "", x), { mutateAsync: Ue, isPending: We } = ce(v ?? "", ye), { mutateAsync: Ge } = le(v ?? "", be), Ke = J.isPending || Y.isPending || Pe || Z || Ve || Q || We || Le || ze, qe = J.isPending || Y.isPending || Z, $ = m(() => T.has(e.PayableApproveOrg), [T]), Je = g(() => {
|
|
55
|
+
if (!v) return ["cancelEdit", "save"];
|
|
56
|
+
if (F === "draft") return k ? H ? ["cancelEdit", "save"] : [] : [...V ? ["cancel"] : [], ...H ? ["edit"] : []];
|
|
57
|
+
if (F === "new") return k ? H ? ["cancelEdit", "save"] : [] : [
|
|
58
|
+
...V ? ["cancel"] : [],
|
|
59
|
+
...H ? ["edit"] : [],
|
|
60
|
+
...U ? ["submit"] : []
|
|
61
|
+
];
|
|
62
|
+
if (F === "approve_in_progress") {
|
|
63
|
+
let e = (z?.data?.length ?? 0) > 0 && z?.data?.[0]?.status === "waiting" && B !== void 0, t = $();
|
|
64
|
+
return [...e ? ["reject", "approve"] : [], ...W && t ? ["forceReject", "forceApprove"] : []];
|
|
65
|
+
}
|
|
66
|
+
return (F === "waiting_to_be_paid" || F === "partially_paid") && G && Number(N?.amount_to_pay) > 0 ? ["pay"] : F === "rejected" && K ? ["reopen"] : F === "canceled" && q ? ["delete"] : [];
|
|
67
|
+
}, [
|
|
68
|
+
v,
|
|
69
|
+
F,
|
|
70
|
+
k,
|
|
71
|
+
H,
|
|
72
|
+
V,
|
|
73
|
+
U,
|
|
74
|
+
W,
|
|
75
|
+
K,
|
|
76
|
+
q,
|
|
77
|
+
G,
|
|
78
|
+
z,
|
|
79
|
+
B,
|
|
80
|
+
N?.amount_to_pay,
|
|
81
|
+
$
|
|
82
|
+
]), Ye = async (e, t) => {
|
|
83
|
+
let n = await J.mutateAsync({ ...e }, { onSuccess: (e) => {
|
|
84
|
+
_.success(E._("Payable “{createdPayableDocument_id}” has been created", { createdPayableDocument_id: e.document_id })), C.finops.getCounterparts.invalidateQueries({ parameters: { query: { is_vendor: !0 } } }, w);
|
|
85
|
+
} });
|
|
86
|
+
if (t) {
|
|
87
|
+
let e = [];
|
|
88
|
+
t?.forEach((t) => {
|
|
89
|
+
n.currency && !t.id && e.push(X.mutateAsync({
|
|
90
|
+
path: { payable_id: n.id },
|
|
91
|
+
body: f(n.currency, t, D, { allowLedgerUpdate: !1 })
|
|
92
|
+
}));
|
|
93
|
+
}), await Promise.all(e);
|
|
94
|
+
}
|
|
95
|
+
await Promise.all([
|
|
96
|
+
C.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: n.id } } }, w),
|
|
97
|
+
C.finops.getPayables.invalidateQueries(w),
|
|
98
|
+
C.finops.getPayablesIdLineItems.invalidateQueries({ parameters: { path: { payable_id: n.id } } }, w)
|
|
99
|
+
]), k && A(!1), y?.(n.id);
|
|
100
|
+
}, Xe = async (e, t, n, r) => {
|
|
101
|
+
let i = await Y.mutateAsync({
|
|
102
|
+
path: { payable_id: e },
|
|
103
|
+
body: t
|
|
104
|
+
}, { onSuccess: (e) => {
|
|
105
|
+
_.success(E._("Payable “{updatedPayableDocument_id}” has been updated", { updatedPayableDocument_id: e.document_id }));
|
|
106
|
+
} });
|
|
107
|
+
if (n && r) {
|
|
108
|
+
let e = [];
|
|
109
|
+
n?.forEach((t) => {
|
|
110
|
+
i.currency && !t.id && e.push(X.mutateAsync({
|
|
111
|
+
path: { payable_id: i.id },
|
|
112
|
+
body: f(i.currency, t, D)
|
|
113
|
+
}));
|
|
114
|
+
}), r?.lineItems?.forEach((t, r) => {
|
|
115
|
+
if (!t) return;
|
|
116
|
+
let { id: a, ...o } = t, s = Object.values(o).some((e) => e), c = n[r]?.id, l = n[r], u = !a && !!s && !!c && !!l;
|
|
117
|
+
i.currency && u && e.push(je.mutateAsync({
|
|
118
|
+
path: {
|
|
119
|
+
payable_id: i.id,
|
|
120
|
+
line_item_id: c
|
|
121
|
+
},
|
|
122
|
+
body: f(i.currency, l, D, {
|
|
123
|
+
allowLedgerUpdate: he && !!o.ledger_account_id,
|
|
124
|
+
previous: R?.find((e) => e.id === c)?.ledger_account_id
|
|
125
|
+
})
|
|
126
|
+
}));
|
|
127
|
+
}), R?.forEach((t) => {
|
|
128
|
+
n?.find((e) => e.id === t.id) || e.push(Me.mutateAsync({ path: {
|
|
129
|
+
payable_id: i.id,
|
|
130
|
+
line_item_id: t.id
|
|
131
|
+
} }));
|
|
132
|
+
}), await Promise.all(e);
|
|
133
|
+
}
|
|
134
|
+
await C.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: i.id } } }, w), k && A(!1), y?.(e);
|
|
135
|
+
}, Ze = m(() => {
|
|
136
|
+
if (N) {
|
|
137
|
+
if (!S) return L();
|
|
138
|
+
if (S?.length < 2) return S(N.id);
|
|
139
|
+
S(N.id, void 0, {
|
|
140
|
+
resolve: (e) => {
|
|
141
|
+
e?.showToast && _.success(E._("Payment flow started")), P(), I();
|
|
142
|
+
},
|
|
143
|
+
reject: (e, t) => {
|
|
144
|
+
t?.showToast && _.error(E._("Payment failed or cancelled")), P(), I();
|
|
145
|
+
}
|
|
14
146
|
});
|
|
15
|
-
},
|
|
16
|
-
onError: (t) => {
|
|
17
|
-
n.error(e(u, t));
|
|
18
147
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
148
|
+
}, [
|
|
149
|
+
E,
|
|
150
|
+
N,
|
|
151
|
+
L,
|
|
152
|
+
S,
|
|
153
|
+
P,
|
|
154
|
+
I
|
|
155
|
+
]);
|
|
156
|
+
return {
|
|
157
|
+
payable: N,
|
|
158
|
+
isLoading: Se || Ke || qe,
|
|
159
|
+
payableQueryError: xe,
|
|
160
|
+
isEdit: k,
|
|
161
|
+
permissions: Je,
|
|
162
|
+
lineItems: R,
|
|
163
|
+
showPayButton: we,
|
|
164
|
+
currentUserApprovalRequest: B,
|
|
165
|
+
actions: {
|
|
166
|
+
setEdit: A,
|
|
167
|
+
createInvoice: Ye,
|
|
168
|
+
saveInvoice: Xe,
|
|
169
|
+
submitInvoice: Fe,
|
|
170
|
+
rejectInvoice: Ie,
|
|
171
|
+
approveInvoice: Re,
|
|
172
|
+
forceRejectInvoice: Be,
|
|
173
|
+
forceApproveInvoice: He,
|
|
174
|
+
reopenInvoice: Ue,
|
|
175
|
+
cancelInvoice: Ne,
|
|
176
|
+
deleteInvoice: Ge,
|
|
177
|
+
payInvoice: Ze,
|
|
178
|
+
handlePay: L,
|
|
179
|
+
modalComponent: Ee
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
}
|
|
21
183
|
//#endregion
|
|
22
|
-
export {
|
|
184
|
+
export { v as usePayableDetails };
|
|
@@ -1,20 +1,102 @@
|
|
|
1
1
|
import { getAPIErrorMessage as e } from "./index26.js";
|
|
2
2
|
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { useFileInput as n } from "./index79.js";
|
|
4
|
+
import "./index87.js";
|
|
5
|
+
import { CenteredContentBox as r } from "./index63.js";
|
|
6
|
+
import "./index64.js";
|
|
7
|
+
import { useMemo as i, useState as a } from "react";
|
|
8
|
+
import { Fragment as o, jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
9
|
+
import { toast as l } from "react-hot-toast";
|
|
10
|
+
import { Box as u, Button as d, CircularProgress as f, Typography as p, alpha as m, useTheme as h } from "@mui/material";
|
|
11
|
+
import { useLingui as g } from "@lingui/react";
|
|
12
|
+
import _ from "@mui/icons-material/AttachFile";
|
|
13
|
+
import v from "@mui/icons-material/CloudUploadOutlined";
|
|
5
14
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js
|
|
6
|
-
var
|
|
7
|
-
let { api:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
var y = ({ payableId: y }) => {
|
|
16
|
+
let { i18n: b } = g(), { api: x, queryClient: S } = t(), C = h(), { FileInput: w, openFileInput: T, checkFileError: E } = n(), [D, O] = a(!1), k = x.finops.postPayablesIdAttachFile.useMutation({ path: { payable_id: y } }, {
|
|
17
|
+
onSuccess: () => Promise.all([x.finops.getPayables.invalidateQueries(S), x.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: y } } }, S)]),
|
|
18
|
+
onError: () => {}
|
|
19
|
+
}), A = i(() => ({
|
|
20
|
+
border: 2,
|
|
21
|
+
borderRadius: 2,
|
|
22
|
+
borderStyle: "dashed",
|
|
23
|
+
borderColor: "primary.main",
|
|
24
|
+
backgroundColor: m(C.palette.primary.main, .05)
|
|
25
|
+
}), [C.palette.primary.main]), j = (e) => {
|
|
26
|
+
e.preventDefault(), O(!0);
|
|
27
|
+
}, M = (e) => {
|
|
28
|
+
e.preventDefault(), O(!1);
|
|
29
|
+
}, N = (e) => {
|
|
30
|
+
e.preventDefault(), O(!1);
|
|
31
|
+
let t = Array.from(e.dataTransfer.files)[0];
|
|
32
|
+
t && P(t);
|
|
33
|
+
}, P = (t) => {
|
|
34
|
+
let n = E(t);
|
|
35
|
+
if (n) {
|
|
36
|
+
l.error(n);
|
|
37
|
+
return;
|
|
16
38
|
}
|
|
39
|
+
y && k.mutate({ file: t }, {
|
|
40
|
+
onSuccess: () => {
|
|
41
|
+
l.success(b._("File successfully attached"));
|
|
42
|
+
},
|
|
43
|
+
onError: (t) => {
|
|
44
|
+
l.error(e(b, t));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
return k.isPending ? /* @__PURE__ */ s(r, { children: /* @__PURE__ */ s(f, {}) }) : /* @__PURE__ */ s(u, {
|
|
49
|
+
className: "Monite-PayableDetailsAttachFile",
|
|
50
|
+
sx: {
|
|
51
|
+
width: "100%",
|
|
52
|
+
height: "100%",
|
|
53
|
+
display: "flex",
|
|
54
|
+
flexDirection: "column",
|
|
55
|
+
justifyContent: "center",
|
|
56
|
+
textAlign: "center",
|
|
57
|
+
...D && A
|
|
58
|
+
},
|
|
59
|
+
onDragOver: j,
|
|
60
|
+
onDragLeave: M,
|
|
61
|
+
onDrop: N,
|
|
62
|
+
children: /* @__PURE__ */ s(u, {
|
|
63
|
+
sx: { margin: "auto" },
|
|
64
|
+
children: D ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(v, {
|
|
65
|
+
color: "primary",
|
|
66
|
+
fontSize: "large"
|
|
67
|
+
}), /* @__PURE__ */ s(p, {
|
|
68
|
+
color: "primary",
|
|
69
|
+
variant: "subtitle2",
|
|
70
|
+
children: b._("Drop the file here to upload")
|
|
71
|
+
})] }) : /* @__PURE__ */ c(o, { children: [
|
|
72
|
+
/* @__PURE__ */ s(_, {
|
|
73
|
+
color: "primary",
|
|
74
|
+
fontSize: "large",
|
|
75
|
+
sx: { marginBottom: 2 }
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ s(p, {
|
|
78
|
+
variant: "h3",
|
|
79
|
+
sx: { marginBottom: 1 },
|
|
80
|
+
children: b._("Attach a file")
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ s(p, { children: b._("This invoice doesn't have a file attached.") }),
|
|
83
|
+
/* @__PURE__ */ s(p, {
|
|
84
|
+
sx: { marginBottom: 2 },
|
|
85
|
+
children: b._("Drag & Drop it here to save for administrative purposes.")
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ s(d, {
|
|
88
|
+
variant: "outlined",
|
|
89
|
+
component: "label",
|
|
90
|
+
onClick: T,
|
|
91
|
+
children: b._("Choose from device")
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ s(w, { onChange: (e) => {
|
|
94
|
+
let t = e.target.files ? e.target.files[0] : null;
|
|
95
|
+
t && P(t);
|
|
96
|
+
} })
|
|
97
|
+
] })
|
|
98
|
+
})
|
|
17
99
|
});
|
|
18
100
|
};
|
|
19
101
|
//#endregion
|
|
20
|
-
export {
|
|
102
|
+
export { y as PayableDetailsAttachFile };
|
|
@@ -1,184 +1,18 @@
|
|
|
1
|
-
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { useMoniteContext as t } from "./index45.js";
|
|
4
|
-
import { useEntityUserByAuthToken as n } from "./index52.js";
|
|
5
|
-
import { usePayablePaymentIntentsAndRecords as r } from "./index57.js";
|
|
6
|
-
import { useCurrencies as i } from "./index76.js";
|
|
7
|
-
import "./index89.js";
|
|
8
|
-
import { useUserPermissions as a } from "./index156.js";
|
|
9
|
-
import { useGetPayableCounterpart as o } from "./index200.js";
|
|
10
|
-
import { usePayButtonVisibility as s } from "./index203.js";
|
|
11
|
-
import { useGetPayableById as c } from "./index205.js";
|
|
12
|
-
import { useGetPayableLineItems as l } from "./index206.js";
|
|
13
|
-
import { useGetPayableApprovalRequests as u } from "./index207.js";
|
|
14
|
-
import { useCreatePayable as ee } from "./index208.js";
|
|
15
|
-
import { useUpdatePayable as d } from "./index209.js";
|
|
16
|
-
import { useCreatePayableLineItem as te } from "./index210.js";
|
|
17
|
-
import { useUpdatePayableLineItem as ne } from "./index211.js";
|
|
18
|
-
import { useDeletePayableLineItem as re } from "./index212.js";
|
|
19
|
-
import { useCancelPayableById as ie } from "./index213.js";
|
|
20
|
-
import { useSubmitPayableForApproval as ae } from "./index214.js";
|
|
21
|
-
import { useForceRejectPayable as oe } from "./index215.js";
|
|
22
|
-
import { useForceApprovePayable as se } from "./index216.js";
|
|
23
|
-
import { useReopenPayable as ce } from "./index217.js";
|
|
24
|
-
import { useDeletePayable as le } from "./index218.js";
|
|
25
|
-
import { prepareLineItemSubmit as f } from "./index222.js";
|
|
26
|
-
import { usePaymentHandler as ue } from "./index238.js";
|
|
27
|
-
import { useRejectApprovalRequest as de } from "./index239.js";
|
|
28
|
-
import { useApproveApprovalRequest as fe } from "./index240.js";
|
|
29
|
-
import { isPayableInOCRProcessing as p } from "./index241.js";
|
|
30
|
-
import { useCallback as m, useEffect as h, useMemo as g, useState as pe } from "react";
|
|
31
|
-
import { toast as _ } from "react-hot-toast";
|
|
32
|
-
import { useLingui as me } from "@lingui/react";
|
|
33
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
let { data: Ae } = l(v ?? ""), R = Ae?.data, { data: z } = u(v ?? "", F), B = z?.data?.find((e) => e.status === "waiting" && !e.approved_by?.includes(O?.id ?? "") && e.user_ids?.includes(O?.id ?? "")), V = T.has(e.PayableWriteOrg), H = T.has(e.PayableWriteOrg), U = T.has(e.PayableWriteOrg), W = T.has(e.PayableApproveOrg), G = T.has(e.PayablePayOrg), K = T.has(e.PayableWriteOrg), q = T.has(e.PayableWriteOrg), J = ee(), Y = d(), X = te(v ?? ""), je = ne(v ?? ""), Me = re(v ?? ""), { mutateAsync: Ne, isPending: Pe } = ie(v ?? "", _e), { submitForApproval: Fe, isPending: Z } = ae({
|
|
49
|
-
payableId: v ?? "",
|
|
50
|
-
AISuggestions: ke?.suggested_counterpart,
|
|
51
|
-
isCounterpartAIMatched: Oe,
|
|
52
|
-
counterpartId: De?.id,
|
|
53
|
-
onSubmitted: ve
|
|
54
|
-
}), { mutateAsync: Ie, isPending: Le } = de(B?.id ?? "", b, v, N?.document_id), { mutateAsync: Re, isPending: ze } = fe(B?.id ?? "", x, v, N?.document_id), { mutateAsync: Be, isPending: Ve } = oe(v ?? "", b), { mutateAsync: He, isPending: Q } = se(v ?? "", x), { mutateAsync: Ue, isPending: We } = ce(v ?? "", ye), { mutateAsync: Ge } = le(v ?? "", be), Ke = J.isPending || Y.isPending || Pe || Z || Ve || Q || We || Le || ze, qe = J.isPending || Y.isPending || Z, $ = m(() => T.has(e.PayableApproveOrg), [T]), Je = g(() => {
|
|
55
|
-
if (!v) return ["cancelEdit", "save"];
|
|
56
|
-
if (F === "draft") return k ? H ? ["cancelEdit", "save"] : [] : [...V ? ["cancel"] : [], ...H ? ["edit"] : []];
|
|
57
|
-
if (F === "new") return k ? H ? ["cancelEdit", "save"] : [] : [
|
|
58
|
-
...V ? ["cancel"] : [],
|
|
59
|
-
...H ? ["edit"] : [],
|
|
60
|
-
...U ? ["submit"] : []
|
|
61
|
-
];
|
|
62
|
-
if (F === "approve_in_progress") {
|
|
63
|
-
let e = (z?.data?.length ?? 0) > 0 && z?.data?.[0]?.status === "waiting" && B !== void 0, t = $();
|
|
64
|
-
return [...e ? ["reject", "approve"] : [], ...W && t ? ["forceReject", "forceApprove"] : []];
|
|
65
|
-
}
|
|
66
|
-
return (F === "waiting_to_be_paid" || F === "partially_paid") && G && Number(N?.amount_to_pay) > 0 ? ["pay"] : F === "rejected" && K ? ["reopen"] : F === "canceled" && q ? ["delete"] : [];
|
|
67
|
-
}, [
|
|
68
|
-
v,
|
|
69
|
-
F,
|
|
70
|
-
k,
|
|
71
|
-
H,
|
|
72
|
-
V,
|
|
73
|
-
U,
|
|
74
|
-
W,
|
|
75
|
-
K,
|
|
76
|
-
q,
|
|
77
|
-
G,
|
|
78
|
-
z,
|
|
79
|
-
B,
|
|
80
|
-
N?.amount_to_pay,
|
|
81
|
-
$
|
|
82
|
-
]), Ye = async (e, t) => {
|
|
83
|
-
let n = await J.mutateAsync({ ...e }, { onSuccess: (e) => {
|
|
84
|
-
_.success(E._("Payable “{createdPayableDocument_id}” has been created", { createdPayableDocument_id: e.document_id })), C.finops.getCounterparts.invalidateQueries({ parameters: { query: { is_vendor: !0 } } }, w);
|
|
85
|
-
} });
|
|
86
|
-
if (t) {
|
|
87
|
-
let e = [];
|
|
88
|
-
t?.forEach((t) => {
|
|
89
|
-
n.currency && !t.id && e.push(X.mutateAsync({
|
|
90
|
-
path: { payable_id: n.id },
|
|
91
|
-
body: f(n.currency, t, D, { allowLedgerUpdate: !1 })
|
|
92
|
-
}));
|
|
93
|
-
}), await Promise.all(e);
|
|
94
|
-
}
|
|
95
|
-
await Promise.all([
|
|
96
|
-
C.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: n.id } } }, w),
|
|
97
|
-
C.finops.getPayables.invalidateQueries(w),
|
|
98
|
-
C.finops.getPayablesIdLineItems.invalidateQueries({ parameters: { path: { payable_id: n.id } } }, w)
|
|
99
|
-
]), k && A(!1), y?.(n.id);
|
|
100
|
-
}, Xe = async (e, t, n, r) => {
|
|
101
|
-
let i = await Y.mutateAsync({
|
|
102
|
-
path: { payable_id: e },
|
|
103
|
-
body: t
|
|
104
|
-
}, { onSuccess: (e) => {
|
|
105
|
-
_.success(E._("Payable “{updatedPayableDocument_id}” has been updated", { updatedPayableDocument_id: e.document_id }));
|
|
106
|
-
} });
|
|
107
|
-
if (n && r) {
|
|
108
|
-
let e = [];
|
|
109
|
-
n?.forEach((t) => {
|
|
110
|
-
i.currency && !t.id && e.push(X.mutateAsync({
|
|
111
|
-
path: { payable_id: i.id },
|
|
112
|
-
body: f(i.currency, t, D)
|
|
113
|
-
}));
|
|
114
|
-
}), r?.lineItems?.forEach((t, r) => {
|
|
115
|
-
if (!t) return;
|
|
116
|
-
let { id: a, ...o } = t, s = Object.values(o).some((e) => e), c = n[r]?.id, l = n[r], u = !a && !!s && !!c && !!l;
|
|
117
|
-
i.currency && u && e.push(je.mutateAsync({
|
|
118
|
-
path: {
|
|
119
|
-
payable_id: i.id,
|
|
120
|
-
line_item_id: c
|
|
121
|
-
},
|
|
122
|
-
body: f(i.currency, l, D, {
|
|
123
|
-
allowLedgerUpdate: he && !!o.ledger_account_id,
|
|
124
|
-
previous: R?.find((e) => e.id === c)?.ledger_account_id
|
|
125
|
-
})
|
|
126
|
-
}));
|
|
127
|
-
}), R?.forEach((t) => {
|
|
128
|
-
n?.find((e) => e.id === t.id) || e.push(Me.mutateAsync({ path: {
|
|
129
|
-
payable_id: i.id,
|
|
130
|
-
line_item_id: t.id
|
|
131
|
-
} }));
|
|
132
|
-
}), await Promise.all(e);
|
|
133
|
-
}
|
|
134
|
-
await C.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: i.id } } }, w), k && A(!1), y?.(e);
|
|
135
|
-
}, Ze = m(() => {
|
|
136
|
-
if (N) {
|
|
137
|
-
if (!S) return L();
|
|
138
|
-
if (S?.length < 2) return S(N.id);
|
|
139
|
-
S(N.id, void 0, {
|
|
140
|
-
resolve: (e) => {
|
|
141
|
-
e?.showToast && _.success(E._("Payment flow started")), P(), I();
|
|
142
|
-
},
|
|
143
|
-
reject: (e, t) => {
|
|
144
|
-
t?.showToast && _.error(E._("Payment failed or cancelled")), P(), I();
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
}, [
|
|
149
|
-
E,
|
|
150
|
-
N,
|
|
151
|
-
L,
|
|
152
|
-
S,
|
|
153
|
-
P,
|
|
154
|
-
I
|
|
155
|
-
]);
|
|
156
|
-
return {
|
|
157
|
-
payable: N,
|
|
158
|
-
isLoading: Se || Ke || qe,
|
|
159
|
-
payableQueryError: xe,
|
|
160
|
-
isEdit: k,
|
|
161
|
-
permissions: Je,
|
|
162
|
-
lineItems: R,
|
|
163
|
-
showPayButton: we,
|
|
164
|
-
currentUserApprovalRequest: B,
|
|
165
|
-
actions: {
|
|
166
|
-
setEdit: A,
|
|
167
|
-
createInvoice: Ye,
|
|
168
|
-
saveInvoice: Xe,
|
|
169
|
-
submitInvoice: Fe,
|
|
170
|
-
rejectInvoice: Ie,
|
|
171
|
-
approveInvoice: Re,
|
|
172
|
-
forceRejectInvoice: Be,
|
|
173
|
-
forceApproveInvoice: He,
|
|
174
|
-
reopenInvoice: Ue,
|
|
175
|
-
cancelInvoice: Ne,
|
|
176
|
-
deleteInvoice: Ge,
|
|
177
|
-
payInvoice: Ze,
|
|
178
|
-
handlePay: L,
|
|
179
|
-
modalComponent: Ee
|
|
180
|
-
}
|
|
181
|
-
};
|
|
2
|
+
var e = /* @__PURE__ */ new Set([
|
|
3
|
+
"new",
|
|
4
|
+
"approve_in_progress",
|
|
5
|
+
"waiting_to_be_paid",
|
|
6
|
+
"partially_paid"
|
|
7
|
+
]);
|
|
8
|
+
function t(t, n) {
|
|
9
|
+
if (n && e.has(t)) {
|
|
10
|
+
let e = /* @__PURE__ */ new Date();
|
|
11
|
+
e.setUTCHours(0, 0, 0, 0);
|
|
12
|
+
let t = new Date(n);
|
|
13
|
+
return t.setUTCHours(0, 0, 0, 0), t.getTime() < e.getTime();
|
|
14
|
+
}
|
|
15
|
+
return !1;
|
|
182
16
|
}
|
|
183
17
|
//#endregion
|
|
184
|
-
export {
|
|
18
|
+
export { t as isBillOverdue };
|
|
@@ -1,102 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import { useMemo as i, useState as a } from "react";
|
|
8
|
-
import { Fragment as o, jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
9
|
-
import { toast as l } from "react-hot-toast";
|
|
10
|
-
import { Box as u, Button as d, CircularProgress as f, Typography as p, alpha as m, useTheme as h } from "@mui/material";
|
|
11
|
-
import { useLingui as g } from "@lingui/react";
|
|
12
|
-
import _ from "@mui/icons-material/AttachFile";
|
|
13
|
-
import v from "@mui/icons-material/CloudUploadOutlined";
|
|
1
|
+
import { cn as e } from "./index62.js";
|
|
2
|
+
import { Badge as t } from "./index69.js";
|
|
3
|
+
import { isBillOverdue as n } from "./index242.js";
|
|
4
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
6
|
+
import { cva as a } from "class-variance-authority";
|
|
14
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
e.
|
|
27
|
-
}, M = (e) => {
|
|
28
|
-
e.preventDefault(), O(!1);
|
|
29
|
-
}, N = (e) => {
|
|
30
|
-
e.preventDefault(), O(!1);
|
|
31
|
-
let t = Array.from(e.dataTransfer.files)[0];
|
|
32
|
-
t && P(t);
|
|
33
|
-
}, P = (t) => {
|
|
34
|
-
let n = E(t);
|
|
35
|
-
if (n) {
|
|
36
|
-
l.error(n);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
y && k.mutate({ file: t }, {
|
|
40
|
-
onSuccess: () => {
|
|
41
|
-
l.success(b._("File successfully attached"));
|
|
42
|
-
},
|
|
43
|
-
onError: (t) => {
|
|
44
|
-
l.error(e(b, t));
|
|
45
|
-
}
|
|
46
|
-
});
|
|
8
|
+
function o(e) {
|
|
9
|
+
return e === "waiting_to_be_paid" || e === "partially_paid" ? "ready_to_pay" : e === "new" || e === "draft" ? "draft" : e === "approve_in_progress" ? "pending_approval" : e === "rejected" ? "rejected" : e === "paid" ? "paid" : "cancelled";
|
|
10
|
+
}
|
|
11
|
+
function s(e, t, n) {
|
|
12
|
+
let r = {
|
|
13
|
+
overdue: e._("Overdue"),
|
|
14
|
+
ready_to_pay: e._("Ready to pay"),
|
|
15
|
+
pending_approval: e._("Pending approval"),
|
|
16
|
+
rejected: e._("Rejected"),
|
|
17
|
+
draft: e._("New"),
|
|
18
|
+
paid: e._("Paid"),
|
|
19
|
+
cancelled: e._("Cancelled")
|
|
47
20
|
};
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
color: "primary",
|
|
66
|
-
fontSize: "large"
|
|
67
|
-
}), /* @__PURE__ */ s(p, {
|
|
68
|
-
color: "primary",
|
|
69
|
-
variant: "subtitle2",
|
|
70
|
-
children: b._("Drop the file here to upload")
|
|
71
|
-
})] }) : /* @__PURE__ */ c(o, { children: [
|
|
72
|
-
/* @__PURE__ */ s(_, {
|
|
73
|
-
color: "primary",
|
|
74
|
-
fontSize: "large",
|
|
75
|
-
sx: { marginBottom: 2 }
|
|
76
|
-
}),
|
|
77
|
-
/* @__PURE__ */ s(p, {
|
|
78
|
-
variant: "h3",
|
|
79
|
-
sx: { marginBottom: 1 },
|
|
80
|
-
children: b._("Attach a file")
|
|
81
|
-
}),
|
|
82
|
-
/* @__PURE__ */ s(p, { children: b._("This invoice doesn't have a file attached.") }),
|
|
83
|
-
/* @__PURE__ */ s(p, {
|
|
84
|
-
sx: { marginBottom: 2 },
|
|
85
|
-
children: b._("Drag & Drop it here to save for administrative purposes.")
|
|
86
|
-
}),
|
|
87
|
-
/* @__PURE__ */ s(d, {
|
|
88
|
-
variant: "outlined",
|
|
89
|
-
component: "label",
|
|
90
|
-
onClick: T,
|
|
91
|
-
children: b._("Choose from device")
|
|
92
|
-
}),
|
|
93
|
-
/* @__PURE__ */ s(w, { onChange: (e) => {
|
|
94
|
-
let t = e.target.files ? e.target.files[0] : null;
|
|
95
|
-
t && P(t);
|
|
96
|
-
} })
|
|
97
|
-
] })
|
|
98
|
-
})
|
|
21
|
+
return n ? r.overdue : r[t];
|
|
22
|
+
}
|
|
23
|
+
var c = a("", { variants: { variant: {
|
|
24
|
+
overdue: "ttw:bg-red-100 ttw:text-red-700",
|
|
25
|
+
ready_to_pay: "ttw:bg-green-100 ttw:text-green-700",
|
|
26
|
+
pending_approval: "ttw:bg-blue-100 ttw:text-blue-700",
|
|
27
|
+
rejected: "ttw:bg-orange-100 ttw:text-orange-700",
|
|
28
|
+
draft: "ttw:bg-neutral-100 ttw:text-neutral-700",
|
|
29
|
+
paid: "ttw:bg-white ttw:text-green-700",
|
|
30
|
+
cancelled: "ttw:bg-white ttw:text-neutral-400"
|
|
31
|
+
} } }), l = ({ status: a, dueDate: l, className: u, showBadgeBackground: d = !0, showOverdueBadge: f = !1, ref: p }) => {
|
|
32
|
+
let { i18n: m } = i(), h = n(a, l), g = o(a), _ = g === "paid", v = !_ && d;
|
|
33
|
+
return /* @__PURE__ */ r(t, {
|
|
34
|
+
ref: p,
|
|
35
|
+
className: e("ttw:inline-flex ttw:items-center ttw:gap-1", c({ variant: h ? "overdue" : g }), !d && !_ && "ttw:text-zinc-950!", u),
|
|
36
|
+
showBadgeBackground: v,
|
|
37
|
+
children: s(m, g, f)
|
|
99
38
|
});
|
|
100
39
|
};
|
|
101
40
|
//#endregion
|
|
102
|
-
export {
|
|
41
|
+
export { l as PayableStatusChip };
|