@tesouro/embedded-components-react 0.7.47 → 0.7.49
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 -23
- package/dist/lib/monite-sdk.d.ts +51 -182
- package/dist/lib/monite-sdk.js +71 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +75 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +10 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +36 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +1 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +102 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +51 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +1 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +49 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +1 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +53 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +1 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +151 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +52 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +70 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +11 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +68 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +172 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +73 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +76 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +1 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +33 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +1 -446
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +55 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +41 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +565 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +156 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +26 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +1 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +23 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +15 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +71 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +5 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +37 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +48 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +54 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +1 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +28 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +39 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +78 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +4 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +47 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +79 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +121 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +17 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +77 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +1 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +121 -292
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +17 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +120 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +21 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +6 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +55 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +71 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +26 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +57 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +19 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +185 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +3 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +30 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +31 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +10 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +12 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +18 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +14 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +16 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +13 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +15 -564
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +114 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +62 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +195 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +38 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +9 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +17 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +9 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +5 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +359 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +89 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +14 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +182 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +98 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +37 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +1 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +53 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +33 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +18 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +158 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +54 -176
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +49 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +85 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +7 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +304 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +26 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +20 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +157 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +34 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +31 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +101 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +186 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +131 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +208 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +238 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +131 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +165 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +26 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +16 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +19 -356
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +16 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +9 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +22 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +83 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +14 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +101 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +171 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +11 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +66 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +25 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +210 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +87 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +154 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +104 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +42 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +69 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +19 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +5 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +11 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +130 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +6 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +6 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +219 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +31 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +32 -238
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +73 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +179 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +194 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +102 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +64 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +53 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +91 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +39 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +83 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +12 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +1 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +46 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +15 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +87 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +14 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +32 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +70 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +6 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +8 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +5 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +4 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +72 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +54 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +49 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +18 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +63 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +33 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +25 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +51 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +71 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +80 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +1 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +8 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +27 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +16 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +3 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +55 -53
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +0 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +0 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +0 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +0 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +0 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +0 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +0 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +0 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +0 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +0 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +0 -97
|
@@ -1,13 +1,160 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { ScopedCssBaselineContainerClassName as t } from "./index29.js";
|
|
4
|
+
import { generatePayablesButtonCssVars as n } from "./index42.js";
|
|
5
|
+
import { useMoniteContext as r } from "./index45.js";
|
|
6
|
+
import { LoadingPage as i } from "./index68.js";
|
|
7
|
+
import "./index69.js";
|
|
8
|
+
import { MoniteScopedProviders as a } from "./index155.js";
|
|
9
|
+
import { useUserPermissions as o } from "./index156.js";
|
|
10
|
+
import { AccessRestriction as s } from "./index162.js";
|
|
11
|
+
import "./index165.js";
|
|
12
|
+
import { classNames as c } from "./index185.js";
|
|
13
|
+
import { PayableDetailsForceActionDialog as l } from "./index199.js";
|
|
14
|
+
import { PayableDetailsForm as u } from "./index235.js";
|
|
15
|
+
import "./index236.js";
|
|
16
|
+
import { usePayableDetails as d } from "./index242.js";
|
|
17
|
+
import { PayableDetailsAttachFile as ee } from "./index243.js";
|
|
18
|
+
import "./index244.js";
|
|
19
|
+
import { PayableDetailsHeader as te } from "./index256.js";
|
|
20
|
+
import "./index257.js";
|
|
21
|
+
import { PayableDetailsInfo as ne } from "./index264.js";
|
|
22
|
+
import "./index265.js";
|
|
23
|
+
import { PayableDetailsNoAttachedFile as re } from "./index266.js";
|
|
24
|
+
import "./index267.js";
|
|
25
|
+
import { FileViewer as ie } from "./index268.js";
|
|
26
|
+
import "./index269.js";
|
|
27
|
+
import { NotFound as ae } from "./index270.js";
|
|
28
|
+
import "./index271.js";
|
|
29
|
+
import { useId as oe, useMemo as se, useState as ce } from "react";
|
|
30
|
+
import { Fragment as f, jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
31
|
+
import { Alert as h, Backdrop as g, Box as _, DialogContent as v, Grid as y } from "@mui/material";
|
|
32
|
+
import { useLingui as b } from "@lingui/react";
|
|
5
33
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js
|
|
6
|
-
var
|
|
7
|
-
let {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
34
|
+
var x = (e) => /* @__PURE__ */ p(a, { children: /* @__PURE__ */ p(S, { ...e }) }), S = ({ id: a, optionalFields: x, enableGLCodes: S, hideAddDiscountButton: C, shouldOpenInEditMode: w, initialCounterpartId: T, onClose: E, onSaved: D, onCanceled: O, onSubmitted: k, onRejected: A, onApproved: j, onReopened: M, onDeleted: N, onPay: P }) => {
|
|
35
|
+
let { payable: F, payableQueryError: I, permissions: L, lineItems: R, isEdit: z, isLoading: B, showPayButton: V, actions: { setEdit: H, createInvoice: U, saveInvoice: W, submitInvoice: G, payInvoice: le, rejectInvoice: ue, approveInvoice: de, forceRejectInvoice: fe, forceApproveInvoice: pe, cancelInvoice: me, reopenInvoice: he, deleteInvoice: ge, modalComponent: _e } } = d({
|
|
36
|
+
id: a,
|
|
37
|
+
enableGLCodes: S,
|
|
38
|
+
shouldOpenInEditMode: w,
|
|
39
|
+
onSaved: D,
|
|
40
|
+
onCanceled: O,
|
|
41
|
+
onSubmitted: k,
|
|
42
|
+
onRejected: A,
|
|
43
|
+
onApproved: j,
|
|
44
|
+
onReopened: M,
|
|
45
|
+
onDeleted: N,
|
|
46
|
+
onPay: P
|
|
47
|
+
}), [K, q] = ce(null), J = () => q(null), ve = async () => {
|
|
48
|
+
J(), await pe();
|
|
49
|
+
}, ye = async () => {
|
|
50
|
+
J(), await fe();
|
|
51
|
+
}, { i18n: Y } = b(), { componentSettings: be, theme: X } = r(), xe = se(() => n(X.components?.styles?.payables?.button), [X.components?.styles?.payables?.button]), Z = o(), Q = Z.has(e.PayableWriteOrg), Se = Z.has(e.PayableReadOrg), $ = `Monite-PayableDetailsForm-${oe()}`;
|
|
52
|
+
return Se ? I ? /* @__PURE__ */ p(ae, {
|
|
53
|
+
title: Y._("Payable not found"),
|
|
54
|
+
description: Y._("There is no payable by provided id: {id}", { id: a })
|
|
55
|
+
}) : /* @__PURE__ */ p(f, { children: /* @__PURE__ */ m(_, {
|
|
56
|
+
className: c(t, "Monite-PayableDetails", "Monite-Payables"),
|
|
57
|
+
style: xe,
|
|
58
|
+
sx: {
|
|
59
|
+
width: "100%",
|
|
60
|
+
height: "100%",
|
|
61
|
+
display: "flex",
|
|
62
|
+
flexDirection: "column",
|
|
63
|
+
position: "absolute"
|
|
64
|
+
},
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ p(g, {
|
|
67
|
+
open: B,
|
|
68
|
+
sx: { zIndex: (e) => e.zIndex.drawer + 1 },
|
|
69
|
+
children: /* @__PURE__ */ p(i, {})
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ p(te, {
|
|
72
|
+
payable: F,
|
|
73
|
+
permissions: L,
|
|
74
|
+
setEdit: H,
|
|
75
|
+
isEdit: z,
|
|
76
|
+
submitInvoice: G,
|
|
77
|
+
rejectInvoice: ue,
|
|
78
|
+
approveInvoice: de,
|
|
79
|
+
forceRejectInvoice: () => q("reject"),
|
|
80
|
+
forceApproveInvoice: () => q("approve"),
|
|
81
|
+
reopenInvoice: he,
|
|
82
|
+
cancelInvoice: me,
|
|
83
|
+
deleteInvoice: ge,
|
|
84
|
+
payInvoice: le,
|
|
85
|
+
payableDetailsFormId: $,
|
|
86
|
+
onClose: E,
|
|
87
|
+
modalComponent: _e,
|
|
88
|
+
showPayButton: V
|
|
89
|
+
}, String(z)),
|
|
90
|
+
/* @__PURE__ */ p(l, {
|
|
91
|
+
open: K === "approve",
|
|
92
|
+
type: "approve",
|
|
93
|
+
onClose: J,
|
|
94
|
+
onConfirm: ve
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ p(l, {
|
|
97
|
+
open: K === "reject",
|
|
98
|
+
type: "reject",
|
|
99
|
+
onClose: J,
|
|
100
|
+
onConfirm: ye
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ p(v, {
|
|
103
|
+
sx: {
|
|
104
|
+
display: "flex",
|
|
105
|
+
flexDirection: "column"
|
|
106
|
+
},
|
|
107
|
+
children: /* @__PURE__ */ m(y, {
|
|
108
|
+
container: !0,
|
|
109
|
+
columnSpacing: 4,
|
|
110
|
+
height: "100%",
|
|
111
|
+
children: [/* @__PURE__ */ m(y, {
|
|
112
|
+
item: !0,
|
|
113
|
+
container: !0,
|
|
114
|
+
xs: 6,
|
|
115
|
+
height: "100%",
|
|
116
|
+
children: [
|
|
117
|
+
F?.file && /* @__PURE__ */ p(ie, {
|
|
118
|
+
name: F.file.name,
|
|
119
|
+
mimetype: F.file.mimetype,
|
|
120
|
+
url: F.file.url
|
|
121
|
+
}),
|
|
122
|
+
Q && F?.id && !F?.file && /* @__PURE__ */ p(ee, { payableId: F.id }),
|
|
123
|
+
!Q && F?.id && !F?.file && /* @__PURE__ */ p(re, {})
|
|
124
|
+
]
|
|
125
|
+
}), /* @__PURE__ */ m(y, {
|
|
126
|
+
item: !0,
|
|
127
|
+
container: !0,
|
|
128
|
+
xs: 6,
|
|
129
|
+
flexDirection: "column",
|
|
130
|
+
height: "100%",
|
|
131
|
+
overflow: "auto",
|
|
132
|
+
children: [F && (F.status === "new" || F.status === "draft") && (F.ocr_status === "error" || F.ocr_status === "canceled") && /* @__PURE__ */ p(_, {
|
|
133
|
+
mb: 2,
|
|
134
|
+
children: /* @__PURE__ */ p(h, {
|
|
135
|
+
severity: "error",
|
|
136
|
+
children: Y._("Due to an error, the OCR failed to read the data from the document. Please input the data manually.")
|
|
137
|
+
})
|
|
138
|
+
}), z ? /* @__PURE__ */ p(u, {
|
|
139
|
+
savePayable: W,
|
|
140
|
+
createPayable: U,
|
|
141
|
+
payable: F,
|
|
142
|
+
initialCounterpartId: T,
|
|
143
|
+
optionalFields: x,
|
|
144
|
+
lineItems: R,
|
|
145
|
+
payableDetailsFormId: $,
|
|
146
|
+
enableGLCodes: S,
|
|
147
|
+
hideAddDiscountButton: C ?? be?.payables?.hideAddDiscountButton
|
|
148
|
+
}) : F && /* @__PURE__ */ p(ne, {
|
|
149
|
+
payable: F,
|
|
150
|
+
optionalFields: x,
|
|
151
|
+
enableGLCodes: S
|
|
152
|
+
})]
|
|
153
|
+
})]
|
|
154
|
+
})
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
}) }) : /* @__PURE__ */ p(s, {});
|
|
11
158
|
};
|
|
12
159
|
//#endregion
|
|
13
|
-
export {
|
|
160
|
+
export { x as PayableDetails };
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
4
|
-
import { useLingui as r } from "@lingui/react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js
|
|
6
|
-
var i = () => {
|
|
7
|
-
let { api: i, queryClient: a } = t(), { i18n: o } = r();
|
|
8
|
-
return i.finops.patchPayablesId.useMutation(void 0, {
|
|
9
|
-
onSuccess: (e) => Promise.all([
|
|
10
|
-
i.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: e.id } } }, a),
|
|
11
|
-
i.finops.getPayables.invalidateQueries(a),
|
|
12
|
-
i.finops.getPayablesIdLineItems.invalidateQueries({ parameters: { path: { payable_id: e.id } } }, a)
|
|
13
|
-
]),
|
|
14
|
-
onError: (t) => {
|
|
15
|
-
n.error(e(o, t));
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { i as useUpdatePayable };
|
|
1
|
+
import "./index272.js";
|
|
@@ -1,16 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
4
|
-
import { useLingui as r } from "@lingui/react";
|
|
1
|
+
import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
|
|
5
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js
|
|
6
|
-
var i = (
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
})
|
|
3
|
+
var i = () => {
|
|
4
|
+
let i = n(null), [a, o] = r(!1), [s, c] = r(0), [l, u] = r(0), d = e((e) => {
|
|
5
|
+
o(!0), c(e.pageX - (i.current?.offsetLeft || 0)), u(i.current?.scrollLeft || 0);
|
|
6
|
+
}, []), f = e(() => {
|
|
7
|
+
o(!1);
|
|
8
|
+
}, []), p = e(() => {
|
|
9
|
+
o(!1);
|
|
10
|
+
}, []), m = e((e) => {
|
|
11
|
+
if (!a) return;
|
|
12
|
+
e.preventDefault();
|
|
13
|
+
let t = e.pageX - (i.current?.offsetLeft || 0) - s;
|
|
14
|
+
i.current && (i.current.scrollLeft = l - t);
|
|
15
|
+
}, [
|
|
16
|
+
a,
|
|
17
|
+
s,
|
|
18
|
+
l
|
|
19
|
+
]), h = e((e) => {
|
|
20
|
+
i.current && (e.deltaMode === 0 && Math.abs(e.deltaX) > Math.abs(e.deltaY) ? (e.preventDefault(), i.current.scrollLeft += e.deltaX * 2) : e.preventDefault());
|
|
21
|
+
}, []);
|
|
22
|
+
return t(() => {
|
|
23
|
+
let e = i.current;
|
|
24
|
+
if (e) return e.addEventListener("wheel", h), () => {
|
|
25
|
+
e.removeEventListener("wheel", h);
|
|
26
|
+
};
|
|
27
|
+
}, [h]), {
|
|
28
|
+
containerRef: i,
|
|
29
|
+
handleMouseDown: d,
|
|
30
|
+
handleMouseLeave: f,
|
|
31
|
+
handleMouseUp: p,
|
|
32
|
+
handleMouseMove: m,
|
|
33
|
+
isDragging: a
|
|
34
|
+
};
|
|
14
35
|
};
|
|
15
36
|
//#endregion
|
|
16
|
-
export { i as
|
|
37
|
+
export { i as useDragScroll };
|
|
@@ -1,16 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
1
|
+
import { twMerge as e } from "tailwind-merge";
|
|
2
|
+
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
4
3
|
import { useLingui as r } from "@lingui/react";
|
|
5
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js
|
|
6
|
-
var i = (i) => {
|
|
7
|
-
let {
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
var i = ({ isAllStatus: i, data: a, amountOfItems: o, selected: s, onClick: c, formatAmount: l, statusChip: u, allItemsText: d }) => {
|
|
6
|
+
let { i18n: f } = r();
|
|
7
|
+
return /* @__PURE__ */ t("button", {
|
|
8
|
+
onClick: c,
|
|
9
|
+
type: "button",
|
|
10
|
+
className: e("ttw:flex ttw:flex-col ttw:gap-2 ttw:px-4 ttw:py-2 ttw:rounded-xl ttw:border ttw:w-42 ttw:shrink-0 ttw:text-left ttw:cursor-pointer ttw:transition-colors ttw:bg-white", s ? "ttw:border-indigo-700" : "ttw:border-white ttw:hover:border-indigo-700"),
|
|
11
|
+
children: i ? /* @__PURE__ */ n("div", {
|
|
12
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
13
|
+
children: [/* @__PURE__ */ t("span", {
|
|
14
|
+
className: "ttw:text-xs ttw:font-medium ttw:text-zinc-950",
|
|
15
|
+
children: d ?? f._("All items")
|
|
16
|
+
}), /* @__PURE__ */ t("span", {
|
|
17
|
+
className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums",
|
|
18
|
+
children: a
|
|
19
|
+
})]
|
|
20
|
+
}) : /* @__PURE__ */ n("div", {
|
|
21
|
+
className: "ttw:flex ttw:flex-col",
|
|
22
|
+
children: [/* @__PURE__ */ n("div", {
|
|
23
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
24
|
+
children: [u, /* @__PURE__ */ t("span", {
|
|
25
|
+
className: "ttw:text-xs ttw:font-medium ttw:leading-4.5 ttw:text-zinc-950 ttw:tabular-nums",
|
|
26
|
+
children: o ?? 0
|
|
27
|
+
})]
|
|
28
|
+
}), /* @__PURE__ */ t("span", {
|
|
29
|
+
className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums ttw:overflow-hidden ttw:whitespace-nowrap ttw:text-ellipsis",
|
|
30
|
+
children: l(a)
|
|
31
|
+
})]
|
|
32
|
+
})
|
|
13
33
|
});
|
|
14
34
|
};
|
|
15
35
|
//#endregion
|
|
16
|
-
export { i as
|
|
36
|
+
export { i as StatusCard };
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import { getAPIErrorMessage as e } from "./index26.js";
|
|
2
|
-
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
4
|
-
import { useLingui as r } from "@lingui/react";
|
|
5
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
return a.finops.deletePayablesIdLineItemsId.useMutation(void 0, {
|
|
9
|
-
onSuccess: () => a.finops.getPayablesIdLineItems.invalidateQueries({ parameters: { path: { payable_id: i } } }, o),
|
|
10
|
-
onError: (t) => {
|
|
11
|
-
n.error(e(s, t));
|
|
12
|
-
}
|
|
13
|
-
});
|
|
2
|
+
var e = (e) => JSON.stringify(Object.entries(e).sort(([e], [t]) => e.localeCompare(t))), t = (t) => {
|
|
3
|
+
if (t) return JSON.stringify(t.map(e).sort((e, t) => e.localeCompare(t)));
|
|
14
4
|
};
|
|
15
5
|
//#endregion
|
|
16
|
-
export {
|
|
6
|
+
export { t as getPayablesAnalyticsSnapshot };
|
|
@@ -1,18 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { useCurrencies as t } from "./index76.js";
|
|
3
|
+
import { Skeleton as n } from "./index72.js";
|
|
4
|
+
import { PayableStatusChip as r } from "./index246.js";
|
|
5
|
+
import "./index247.js";
|
|
6
|
+
import { useDragScroll as i } from "./index274.js";
|
|
7
|
+
import { StatusCard as a } from "./index275.js";
|
|
8
|
+
import { getPayablesAnalyticsSnapshot as o } from "./index276.js";
|
|
9
|
+
import { useEffect as s, useRef as c } from "react";
|
|
10
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
11
|
+
import { useLingui as u } from "@lingui/react";
|
|
5
12
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
var d = [
|
|
14
|
+
{
|
|
15
|
+
groupStatus: "all",
|
|
16
|
+
apiStatuses: [],
|
|
17
|
+
representativeStatus: null
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
groupStatus: "draft",
|
|
21
|
+
apiStatuses: ["draft", "new"],
|
|
22
|
+
representativeStatus: "draft"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
groupStatus: "pending_approval",
|
|
26
|
+
apiStatuses: ["approve_in_progress"],
|
|
27
|
+
representativeStatus: "approve_in_progress"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
groupStatus: "rejected",
|
|
31
|
+
apiStatuses: ["rejected"],
|
|
32
|
+
representativeStatus: "rejected"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
groupStatus: "ready_to_pay",
|
|
36
|
+
apiStatuses: ["waiting_to_be_paid", "partially_paid"],
|
|
37
|
+
representativeStatus: "waiting_to_be_paid"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
groupStatus: "paid",
|
|
41
|
+
apiStatuses: ["paid"],
|
|
42
|
+
representativeStatus: "paid"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
groupStatus: "cancelled",
|
|
46
|
+
apiStatuses: ["canceled"],
|
|
47
|
+
representativeStatus: "canceled"
|
|
48
|
+
}
|
|
49
|
+
], f = ({ onChangeFilter: e, selectedStatus: o }) => {
|
|
50
|
+
let { i18n: s } = u(), { data: c, isLoading: f } = p(), { formatCurrencyToDisplay: m } = t(), { containerRef: h, handleMouseDown: g, handleMouseLeave: _, handleMouseUp: v, handleMouseMove: y } = i();
|
|
51
|
+
if (f) return /* @__PURE__ */ l("div", {
|
|
52
|
+
className: "ttw:flex ttw:gap-2",
|
|
53
|
+
children: Array.from({ length: 6 }).map((e, t) => /* @__PURE__ */ l(n, { className: "ttw:h-16.5 ttw:w-42 ttw:rounded-xl ttw:animate-pulse" }, t))
|
|
15
54
|
});
|
|
55
|
+
let b = c?.data ?? [], x = d.map(({ groupStatus: e, apiStatuses: t }) => {
|
|
56
|
+
if (e === "all") return {
|
|
57
|
+
status: "all",
|
|
58
|
+
count: b.reduce((e, t) => e + t.count, 0),
|
|
59
|
+
sum_total_amount: b.reduce((e, t) => e + (t.sum_total_amount ?? 0), 0)
|
|
60
|
+
};
|
|
61
|
+
let n = b.filter((e) => t.includes(e.status));
|
|
62
|
+
return {
|
|
63
|
+
status: e,
|
|
64
|
+
count: n.reduce((e, t) => e + t.count, 0),
|
|
65
|
+
sum_total_amount: n.reduce((e, t) => e + (t.sum_total_amount ?? 0), 0)
|
|
66
|
+
};
|
|
67
|
+
}).filter((e) => e.status === "all" || e.count > 0), S = (t) => {
|
|
68
|
+
e("status", t === "all" ? null : t);
|
|
69
|
+
}, C = (e) => m(e, "USD") ?? "—";
|
|
70
|
+
return /* @__PURE__ */ l("div", {
|
|
71
|
+
ref: h,
|
|
72
|
+
className: "ttw:flex ttw:gap-2 ttw:mb-6 ttw:overflow-x-auto ttw:[scrollbar-width:none] ttw:[&::-webkit-scrollbar]:hidden ttw:cursor-grab ttw:select-none",
|
|
73
|
+
onMouseDown: g,
|
|
74
|
+
onMouseLeave: _,
|
|
75
|
+
onMouseUp: v,
|
|
76
|
+
onMouseMove: y,
|
|
77
|
+
children: x.map((e) => {
|
|
78
|
+
let t = d.find((t) => t.groupStatus === e.status);
|
|
79
|
+
return /* @__PURE__ */ l(a, {
|
|
80
|
+
allItemsText: s._("All bills"),
|
|
81
|
+
isAllStatus: e.status === "all",
|
|
82
|
+
data: e.status === "all" ? e.count ?? 0 : e.sum_total_amount ?? 0,
|
|
83
|
+
amountOfItems: e.status === "all" ? void 0 : e.count ?? 0,
|
|
84
|
+
selected: o === e.status,
|
|
85
|
+
onClick: () => S(e.status),
|
|
86
|
+
formatAmount: C,
|
|
87
|
+
statusChip: t?.representativeStatus ? /* @__PURE__ */ l(r, { status: t.representativeStatus }) : void 0
|
|
88
|
+
}, e.status);
|
|
89
|
+
})
|
|
90
|
+
});
|
|
91
|
+
}, p = () => {
|
|
92
|
+
let { api: t, queryClient: n } = e(), r = t.finops.getPayablesAnalytics.useQuery({}, {
|
|
93
|
+
enabled: !!n,
|
|
94
|
+
refetchInterval: 3e3
|
|
95
|
+
}), i = o(r.data?.data), a = c(void 0);
|
|
96
|
+
return s(() => {
|
|
97
|
+
i !== void 0 && a.current !== void 0 && i !== a.current && n && t.finops.getPayables.invalidateQueries(n), a.current = i;
|
|
98
|
+
}, [
|
|
99
|
+
i,
|
|
100
|
+
t,
|
|
101
|
+
n
|
|
102
|
+
]), r;
|
|
16
103
|
};
|
|
17
104
|
//#endregion
|
|
18
|
-
export {
|
|
105
|
+
export { f as SummaryCardsFilters };
|
|
@@ -1,42 +1,189 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useLingui as i } from "@lingui/react";
|
|
1
|
+
import { AmountFilter as e, DateRangePicker as t, FilterBar as n, FilterMenuButton as r, FilterTag as i, Input as a, MultiSelectFilter as o, Popover as s, PopoverContent as c, PopoverTrigger as l, RadioGroup as u, RadioGroupItem as d, SearchInput as f, useFilterPanel as p } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ListFilter as m } from "lucide-react";
|
|
3
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { useLingui as v } from "@lingui/react";
|
|
6
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
var y = {
|
|
7
|
+
date: "ttw:w-auto",
|
|
8
|
+
status: "ttw:w-56",
|
|
9
|
+
amount: "ttw:w-64",
|
|
10
|
+
vendor: "ttw:w-64",
|
|
11
|
+
attachment: "ttw:w-56"
|
|
12
|
+
}, b = {
|
|
13
|
+
due_date: "Due date",
|
|
14
|
+
created_at: "Created on",
|
|
15
|
+
issued_at: "Issue date"
|
|
16
|
+
}, x = [
|
|
17
|
+
{
|
|
18
|
+
id: "date",
|
|
19
|
+
label: "Due date",
|
|
20
|
+
activeDateField: "due_date"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "date",
|
|
24
|
+
label: "Created on",
|
|
25
|
+
activeDateField: "created_at"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "date",
|
|
29
|
+
label: "Issue date",
|
|
30
|
+
activeDateField: "issued_at"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "status",
|
|
34
|
+
label: "Status",
|
|
35
|
+
activeDateField: void 0
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "amount",
|
|
39
|
+
label: "Amount",
|
|
40
|
+
activeDateField: void 0
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "vendor",
|
|
44
|
+
label: "Vendor",
|
|
45
|
+
activeDateField: void 0
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: "attachment",
|
|
49
|
+
label: "Attachment",
|
|
50
|
+
activeDateField: void 0
|
|
51
|
+
}
|
|
52
|
+
];
|
|
53
|
+
function S(S) {
|
|
54
|
+
let { i18n: C } = v(), w = p(), T = w.isMenuOpen || !!w.activePanelId, E = w.activePanelId && y[w.activePanelId] || "ttw:w-52", D = S.allPresets.map((e) => ({
|
|
55
|
+
value: e.value,
|
|
56
|
+
label: e.label,
|
|
57
|
+
group: e.group
|
|
58
|
+
})), O = (e) => {
|
|
59
|
+
e || (w.closeMenu(), w.closePanel());
|
|
60
|
+
}, k = (e, t) => {
|
|
61
|
+
t && S.onActiveDateFieldChange(t), w.openPanel(e);
|
|
62
|
+
}, A = S.hasFile === !0 ? "has" : S.hasFile === !1 ? "no" : "any";
|
|
63
|
+
return /* @__PURE__ */ g(n, {
|
|
64
|
+
className: "ttw:pl-4",
|
|
65
|
+
searchSlot: /* @__PURE__ */ g(f, {
|
|
66
|
+
value: S.searchValue,
|
|
67
|
+
onChange: (e) => S.onSearchChange(e.target.value),
|
|
68
|
+
placeholder: "Search by number or vendor..."
|
|
69
|
+
}),
|
|
70
|
+
menuSlot: /* @__PURE__ */ _(s, {
|
|
71
|
+
open: T,
|
|
72
|
+
onOpenChange: O,
|
|
73
|
+
children: [/* @__PURE__ */ g(l, {
|
|
74
|
+
asChild: !0,
|
|
75
|
+
children: /* @__PURE__ */ g(r, {
|
|
76
|
+
activeCount: S.activeFilterCount,
|
|
77
|
+
onClick: w.toggleMenu
|
|
78
|
+
})
|
|
79
|
+
}), /* @__PURE__ */ _(c, {
|
|
80
|
+
align: "start",
|
|
81
|
+
className: `ttw:p-0 ${E}`,
|
|
82
|
+
children: [
|
|
83
|
+
w.isMenuOpen && /* @__PURE__ */ g("div", {
|
|
84
|
+
className: "ttw:p-1",
|
|
85
|
+
children: x.map((e, t) => /* @__PURE__ */ _("button", {
|
|
86
|
+
type: "button",
|
|
87
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:w-full ttw:px-2 ttw:py-1.5 ttw:rounded-md ttw:text-xs ttw:font-medium ttw:hover:bg-accent ttw:transition-colors ttw:cursor-pointer",
|
|
88
|
+
onClick: () => k(e.id, e.activeDateField),
|
|
89
|
+
children: [/* @__PURE__ */ g(m, { className: "ttw:size-4 ttw:text-muted-foreground ttw:shrink-0" }), e.label]
|
|
90
|
+
}, `${e.id}-${t}`))
|
|
91
|
+
}),
|
|
92
|
+
w.activePanelId === "date" && /* @__PURE__ */ g(t, {
|
|
93
|
+
from: S.dateFrom,
|
|
94
|
+
to: S.dateTo,
|
|
95
|
+
onRangeChange: S.onDateRangeChange,
|
|
96
|
+
selectedPreset: S.selectedDatePreset,
|
|
97
|
+
onPresetChange: S.onDatePresetChange,
|
|
98
|
+
presets: D,
|
|
99
|
+
labels: { fieldLabel: b[S.activeDateField] }
|
|
100
|
+
}),
|
|
101
|
+
w.activePanelId === "status" && /* @__PURE__ */ g(o, {
|
|
102
|
+
options: S.statusOptions,
|
|
103
|
+
selectedValues: S.selectedStatus,
|
|
104
|
+
onSelectionChange: S.onStatusChange
|
|
105
|
+
}),
|
|
106
|
+
w.activePanelId === "amount" && /* @__PURE__ */ g(e, {
|
|
107
|
+
mode: S.amountMode,
|
|
108
|
+
onModeChange: S.onAmountModeChange,
|
|
109
|
+
min: S.amountMin,
|
|
110
|
+
max: S.amountMax,
|
|
111
|
+
onMinChange: S.onAmountMinChange,
|
|
112
|
+
onMaxChange: S.onAmountMaxChange,
|
|
113
|
+
showFlowDirection: !1,
|
|
114
|
+
labels: {
|
|
115
|
+
min: "No less than",
|
|
116
|
+
max: "No more than"
|
|
117
|
+
}
|
|
118
|
+
}),
|
|
119
|
+
w.activePanelId === "vendor" && /* @__PURE__ */ _("div", {
|
|
120
|
+
className: "ttw:p-3 ttw:flex ttw:flex-col ttw:gap-2",
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ g("p", {
|
|
123
|
+
className: "ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
|
|
124
|
+
children: "Vendor name"
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ g(a, {
|
|
127
|
+
type: "text",
|
|
128
|
+
value: S.vendorName,
|
|
129
|
+
onChange: (e) => S.onVendorNameChange(e.target.value),
|
|
130
|
+
placeholder: "Search vendors...",
|
|
131
|
+
className: "ttw:h-8 ttw:text-xs"
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ g("p", {
|
|
134
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
135
|
+
children: C._("Matches names containing your search")
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
}),
|
|
139
|
+
w.activePanelId === "attachment" && /* @__PURE__ */ g("div", {
|
|
140
|
+
className: "ttw:p-3",
|
|
141
|
+
children: /* @__PURE__ */ g(u, {
|
|
142
|
+
value: A,
|
|
143
|
+
onValueChange: (e) => {
|
|
144
|
+
e === "any" ? S.onHasFileChange(void 0) : e === "has" ? S.onHasFileChange(!0) : S.onHasFileChange(!1);
|
|
145
|
+
},
|
|
146
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
147
|
+
children: [
|
|
148
|
+
{
|
|
149
|
+
value: "any",
|
|
150
|
+
label: "Any"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
value: "has",
|
|
154
|
+
label: "Has attachment"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
value: "no",
|
|
158
|
+
label: "No attachment"
|
|
159
|
+
}
|
|
160
|
+
].map(({ value: e, label: t }) => /* @__PURE__ */ _("label", {
|
|
161
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:cursor-pointer",
|
|
162
|
+
children: [/* @__PURE__ */ g(d, { value: e }), /* @__PURE__ */ g("span", {
|
|
163
|
+
className: "ttw:text-xs ttw:font-medium",
|
|
164
|
+
children: t
|
|
165
|
+
})]
|
|
166
|
+
}, e))
|
|
167
|
+
})
|
|
168
|
+
})
|
|
169
|
+
]
|
|
170
|
+
})]
|
|
171
|
+
}),
|
|
172
|
+
activeChipsSlot: /* @__PURE__ */ _(h, { children: [S.activeChips.map((e) => /* @__PURE__ */ g(i, {
|
|
173
|
+
label: e.label,
|
|
174
|
+
count: e.count,
|
|
175
|
+
variant: "default",
|
|
176
|
+
onLabelClick: e.key === "date" ? () => {
|
|
177
|
+
w.openPanel("date");
|
|
178
|
+
} : void 0,
|
|
179
|
+
onDismiss: () => S.onDismissChip(e.key)
|
|
180
|
+
}, e.key)), S.activeFilterCount > 0 && /* @__PURE__ */ g("button", {
|
|
181
|
+
type: "button",
|
|
182
|
+
className: "ttw:text-xs ttw:text-muted-foreground ttw:hover:text-foreground ttw:transition-colors ttw:cursor-pointer ttw:whitespace-nowrap",
|
|
183
|
+
onClick: S.onClearAll,
|
|
184
|
+
children: "Clear all"
|
|
185
|
+
})] })
|
|
19
186
|
});
|
|
20
|
-
|
|
21
|
-
submitForApproval: async () => {
|
|
22
|
-
if (o && s) try {
|
|
23
|
-
await p.mutateAsync({
|
|
24
|
-
path: { payable_id: a },
|
|
25
|
-
body: {
|
|
26
|
-
counterpart_id: o,
|
|
27
|
-
...c?.bank_account_id && { counterpart_bank_account_id: c?.bank_account_id },
|
|
28
|
-
...c?.address_id && { counterpart_address_id: c?.address_id },
|
|
29
|
-
...c?.vat_id_id && { counterpart_vat_id_id: c?.vat_id_id }
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
} catch (e) {
|
|
33
|
-
console.error(e), r.error(f._("Failed to submit Payable with AI suggestion. Please try editing the Payable and submit again."));
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
await m.mutateAsync(), l?.(a);
|
|
37
|
-
},
|
|
38
|
-
...m
|
|
39
|
-
};
|
|
40
|
-
};
|
|
187
|
+
}
|
|
41
188
|
//#endregion
|
|
42
|
-
export {
|
|
189
|
+
export { S as PayablesFilterBar };
|