@tesouro/embedded-components-react 0.8.7 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -15
- package/dist/index.css +0 -826
- package/dist/index.d.ts +5 -2
- package/dist/lib/ProductsWidget.d.ts +5 -2
- package/dist/lib/ReceivablesWidget.d.ts +5 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -28
- package/dist/lib/monite-sdk.d.ts +0 -72191
- package/dist/lib/monite-sdk.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +0 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +0 -176
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +0 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +0 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +0 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +0 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +0 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +0 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +0 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +0 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +0 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +0 -569
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +0 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +0 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +0 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +0 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +0 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +0 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index16.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +0 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +0 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index17.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +0 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +0 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +0 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +0 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +0 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index18.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +0 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +0 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +0 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +0 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +0 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +0 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +0 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +0 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +0 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index23.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +0 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +0 -828
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index35.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +0 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +0 -294
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +0 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +0 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +0 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +0 -2314
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +0 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +0 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +0 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index7.js +0 -299
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +0 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +0 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +0 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +0 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +0 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +0 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +0 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +0 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +0 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +0 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +0 -1224
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { useEffect as e, useState as t } from "react";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js
|
|
3
|
-
var n = {
|
|
4
|
-
sm: 640,
|
|
5
|
-
md: 768,
|
|
6
|
-
lg: 1024,
|
|
7
|
-
xl: 1280,
|
|
8
|
-
"2xl": 1536
|
|
9
|
-
};
|
|
10
|
-
function r(r) {
|
|
11
|
-
let [i, a] = t(!1);
|
|
12
|
-
return e(() => {
|
|
13
|
-
let e;
|
|
14
|
-
e = r in n ? `(min-width: ${n[r]}px)` : r;
|
|
15
|
-
let t = window.matchMedia(e);
|
|
16
|
-
a(t.matches);
|
|
17
|
-
let i = (e) => {
|
|
18
|
-
a(e.matches);
|
|
19
|
-
};
|
|
20
|
-
return t.addEventListener("change", i), () => {
|
|
21
|
-
t.removeEventListener("change", i);
|
|
22
|
-
};
|
|
23
|
-
}, [r]), i;
|
|
24
|
-
}
|
|
25
|
-
var i = () => l("md"), a = () => {
|
|
26
|
-
let e = r("md"), t = r("lg");
|
|
27
|
-
return e && !t;
|
|
28
|
-
}, o = () => r("lg"), s = () => r("xl"), c = () => r("2xl");
|
|
29
|
-
function l(r) {
|
|
30
|
-
let [i, a] = t(!1);
|
|
31
|
-
return e(() => {
|
|
32
|
-
let e = `(max-width: ${n[r] - 1}px)`, t = window.matchMedia(e);
|
|
33
|
-
a(t.matches);
|
|
34
|
-
let i = (e) => {
|
|
35
|
-
a(e.matches);
|
|
36
|
-
};
|
|
37
|
-
return t.addEventListener("change", i), () => {
|
|
38
|
-
t.removeEventListener("change", i);
|
|
39
|
-
};
|
|
40
|
-
}, [r]), i;
|
|
41
|
-
}
|
|
42
|
-
function u(r) {
|
|
43
|
-
let [i, a] = t(!1);
|
|
44
|
-
return e(() => {
|
|
45
|
-
let e = `(min-width: ${n[r] + 1}px)`, t = window.matchMedia(e);
|
|
46
|
-
a(t.matches);
|
|
47
|
-
let i = (e) => {
|
|
48
|
-
a(e.matches);
|
|
49
|
-
};
|
|
50
|
-
return t.addEventListener("change", i), () => {
|
|
51
|
-
t.removeEventListener("change", i);
|
|
52
|
-
};
|
|
53
|
-
}, [r]), i;
|
|
54
|
-
}
|
|
55
|
-
//#endregion
|
|
56
|
-
export { n as breakpoints, o as useIsDesktopScreen, c as useIsExtraLargeDesktopScreen, s as useIsLargeDesktopScreen, u as useIsLargerThan, i as useIsMobileScreen, l as useIsSmallerThan, a as useIsTabletScreen, r as useMediaQuery };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js
|
|
2
|
-
var e = {
|
|
3
|
-
WAS_CREATED_BY_USER_ID: "was_created_by_user_id",
|
|
4
|
-
COUNTERPART_ID: "counterpart_id",
|
|
5
|
-
AMOUNT: "amount",
|
|
6
|
-
CURRENCY: "currency"
|
|
7
|
-
}, t = (t) => Object.values(e).includes(t), n = {
|
|
8
|
-
IN: "in",
|
|
9
|
-
EQUALS: "==",
|
|
10
|
-
GREATER_THAN: ">",
|
|
11
|
-
LESS_THAN: "<",
|
|
12
|
-
GREATER_THAN_OR_EQUAL: ">=",
|
|
13
|
-
LESS_THAN_OR_EQUAL: "<=",
|
|
14
|
-
RANGE: "range"
|
|
15
|
-
}, r = (e) => Object.values(n).includes(e), i = (e) => e.replace("invoice.", ""), a = (e) => e.operator === n.IN && typeof e.left_operand == "string" && typeof e.right_operand == "object" && e.right_operand && "name" in e.right_operand, o = (e) => !!e.left_operand && typeof e.left_operand == "object" && "name" in e.left_operand, s = (e) => a(e) ? {
|
|
16
|
-
key: i(e.right_operand.name),
|
|
17
|
-
value: e.left_operand
|
|
18
|
-
} : o(e) ? {
|
|
19
|
-
key: i(e.left_operand?.name),
|
|
20
|
-
value: e.right_operand
|
|
21
|
-
} : {
|
|
22
|
-
key: null,
|
|
23
|
-
value: null
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { e as NAMED_VALUES, n as OPERATOR_OPERATIONS, i as extractFieldName, s as getTriggerKeyAndValue, r as isValidOperation, t as isValidTriggerKey };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { useCurrencies as e } from "./index62.js";
|
|
2
|
-
import "./index73.js";
|
|
3
|
-
import { OPERATOR_OPERATIONS as t, getTriggerKeyAndValue as n, isValidOperation as r, isValidTriggerKey as i } from "./index74.js";
|
|
4
|
-
import { useLingui as a } from "@lingui/react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js
|
|
6
|
-
var o = ({ approvalPolicy: o }) => {
|
|
7
|
-
let { i18n: s } = a(), { formatCurrencyToDisplay: c } = e(), l = (e) => {
|
|
8
|
-
switch (e) {
|
|
9
|
-
case "amount": return s._("Amount");
|
|
10
|
-
case "was_created_by_user_id": return s._("Created by user");
|
|
11
|
-
case "counterpart_id": return s._("Vendors");
|
|
12
|
-
default: return e;
|
|
13
|
-
}
|
|
14
|
-
}, u = (e) => {
|
|
15
|
-
switch (e) {
|
|
16
|
-
case "amount": return s._("Amount");
|
|
17
|
-
case "was_created_by_user_id": return s._("Created by");
|
|
18
|
-
case "counterpart_id": return s._("Vendors");
|
|
19
|
-
default: return e;
|
|
20
|
-
}
|
|
21
|
-
}, d = (e, n) => {
|
|
22
|
-
let r = c(e[0][1], n);
|
|
23
|
-
if (e.length === 1) switch (e[0][0]) {
|
|
24
|
-
case t.GREATER_THAN: return s._("Greater than {formattedValue}", { formattedValue: r });
|
|
25
|
-
case t.GREATER_THAN_OR_EQUAL: return s._("Greater than or equal to {formattedValue}", { formattedValue: r });
|
|
26
|
-
case t.LESS_THAN: return s._("Less than {formattedValue}", { formattedValue: r });
|
|
27
|
-
case t.LESS_THAN_OR_EQUAL: return s._("Less than or equal to {formattedValue}", { formattedValue: r });
|
|
28
|
-
case t.EQUALS: return s._("Equal to {formattedValue}", { formattedValue: r });
|
|
29
|
-
default: return r;
|
|
30
|
-
}
|
|
31
|
-
if (e.length === 2) {
|
|
32
|
-
let r = e.find((e) => e[0] === t.GREATER_THAN_OR_EQUAL), i = e.find((e) => e[0] === t.LESS_THAN_OR_EQUAL);
|
|
33
|
-
if (r && i) return s._("{from} - {to}", {
|
|
34
|
-
from: c(r[1], n),
|
|
35
|
-
to: c(i[1], n)
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
return r;
|
|
39
|
-
};
|
|
40
|
-
return ((e) => !!(e && typeof e == "object" && "all" in e && Array.isArray(e.all)))(o?.trigger) ? {
|
|
41
|
-
triggers: o.trigger?.all?.reduce((e, t) => {
|
|
42
|
-
if (typeof t == "string" || !t.operator || !t.left_operand || t.right_operand == null) return e;
|
|
43
|
-
let { key: a, value: o } = n(t);
|
|
44
|
-
if (!a || o == null || !i(a)) return e;
|
|
45
|
-
switch (a) {
|
|
46
|
-
case "amount":
|
|
47
|
-
(typeof o == "string" || typeof o == "number") && r(t.operator) && (e.amount ||= {
|
|
48
|
-
currency: "EUR",
|
|
49
|
-
value: []
|
|
50
|
-
}, e.amount.value.push([t.operator, o]));
|
|
51
|
-
break;
|
|
52
|
-
case "currency":
|
|
53
|
-
e.amount ? e.amount.currency = o : e.amount = {
|
|
54
|
-
value: [],
|
|
55
|
-
currency: o
|
|
56
|
-
};
|
|
57
|
-
break;
|
|
58
|
-
case "counterpart_id":
|
|
59
|
-
case "was_created_by_user_id": Array.isArray(o) && (e[a] = o);
|
|
60
|
-
}
|
|
61
|
-
return e;
|
|
62
|
-
}, {}),
|
|
63
|
-
getTriggerName: l,
|
|
64
|
-
getTriggerLabel: u,
|
|
65
|
-
getAmountLabel: d
|
|
66
|
-
} : {
|
|
67
|
-
triggers: {},
|
|
68
|
-
getTriggerName: l,
|
|
69
|
-
getTriggerLabel: u,
|
|
70
|
-
getAmountLabel: d
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
//#endregion
|
|
74
|
-
export { o as useApprovalPolicyTrigger };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { useApprovalPolicyTrigger as e } from "./index75.js";
|
|
2
|
-
import { User as t } from "./index59.js";
|
|
3
|
-
import "./index60.js";
|
|
4
|
-
import { useMemo as n } from "react";
|
|
5
|
-
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { Button as a, Chip as o, IconButton as s, Paper as c, Stack as l, Table as u, TableBody as d, TableCell as f, TableHead as p, TableRow as m } from "@mui/material";
|
|
7
|
-
import { useLingui as h } from "@lingui/react";
|
|
8
|
-
import g from "@mui/icons-material/AddCircleOutline";
|
|
9
|
-
import _ from "@mui/icons-material/Delete";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js
|
|
11
|
-
var v = ({ triggers: v, onAddTrigger: y, onEditTrigger: b, onDeleteTrigger: x }) => {
|
|
12
|
-
let { i18n: S } = h(), { getTriggerLabel: C, getAmountLabel: w } = e({}), T = n(() => Object.keys(v).map((e) => {
|
|
13
|
-
let n = C(e), i;
|
|
14
|
-
switch (e) {
|
|
15
|
-
case "was_created_by_user_id":
|
|
16
|
-
i = /* @__PURE__ */ r(l, {
|
|
17
|
-
direction: "row",
|
|
18
|
-
gap: 1,
|
|
19
|
-
sx: { flexWrap: "wrap" },
|
|
20
|
-
children: v.was_created_by_user_id?.map((e) => /* @__PURE__ */ r(t, { userId: e.id }, e.id))
|
|
21
|
-
});
|
|
22
|
-
break;
|
|
23
|
-
case "counterpart_id":
|
|
24
|
-
i = /* @__PURE__ */ r(l, {
|
|
25
|
-
direction: "row",
|
|
26
|
-
gap: 1,
|
|
27
|
-
sx: { flexWrap: "wrap" },
|
|
28
|
-
children: v.counterpart_id?.map((e) => /* @__PURE__ */ r(o, { label: e.label }, e.id))
|
|
29
|
-
});
|
|
30
|
-
break;
|
|
31
|
-
case "amount":
|
|
32
|
-
i = /* @__PURE__ */ r("p", { children: w(v.amount?.value ?? [], v.amount?.currency ?? "EUR") });
|
|
33
|
-
break;
|
|
34
|
-
default: i = e;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
key: e,
|
|
38
|
-
label: n,
|
|
39
|
-
value: i
|
|
40
|
-
};
|
|
41
|
-
}), [
|
|
42
|
-
v,
|
|
43
|
-
C,
|
|
44
|
-
w
|
|
45
|
-
]);
|
|
46
|
-
return /* @__PURE__ */ r(c, {
|
|
47
|
-
variant: "outlined",
|
|
48
|
-
children: /* @__PURE__ */ i(u, { children: [/* @__PURE__ */ r(p, { children: /* @__PURE__ */ i(m, { children: [
|
|
49
|
-
/* @__PURE__ */ r(f, { children: S._("Condition") }),
|
|
50
|
-
/* @__PURE__ */ r(f, { children: S._("Criteria") }),
|
|
51
|
-
/* @__PURE__ */ r(f, {})
|
|
52
|
-
] }) }), /* @__PURE__ */ i(d, { children: [T.length > 0 ? T.map((e) => /* @__PURE__ */ i(m, {
|
|
53
|
-
hover: !0,
|
|
54
|
-
sx: { "&.MuiTableRow-root": { cursor: "pointer" } },
|
|
55
|
-
onClick: () => b(e.key),
|
|
56
|
-
children: [
|
|
57
|
-
/* @__PURE__ */ r(f, { children: e.label }),
|
|
58
|
-
/* @__PURE__ */ r(f, { children: e.value }),
|
|
59
|
-
/* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(s, {
|
|
60
|
-
"aria-label": S._("Delete trigger"),
|
|
61
|
-
onClick: (t) => {
|
|
62
|
-
t.stopPropagation(), x(e.key);
|
|
63
|
-
},
|
|
64
|
-
children: /* @__PURE__ */ r(_, {})
|
|
65
|
-
}) })
|
|
66
|
-
]
|
|
67
|
-
}, e.label)) : /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(f, {
|
|
68
|
-
colSpan: 3,
|
|
69
|
-
children: S._("No conditions")
|
|
70
|
-
}) }), /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(f, {
|
|
71
|
-
colSpan: 3,
|
|
72
|
-
children: /* @__PURE__ */ r(a, {
|
|
73
|
-
startIcon: /* @__PURE__ */ r(g, {}),
|
|
74
|
-
onClick: y,
|
|
75
|
-
disabled: !!(v?.was_created_by_user_id?.length && v?.counterpart_id?.length && v?.amount?.value?.length),
|
|
76
|
-
children: S._("Add new condition")
|
|
77
|
-
})
|
|
78
|
-
}) })] })] })
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
//#endregion
|
|
82
|
-
export { v as ConditionsTable };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index76.js";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js
|
|
2
|
-
var e = {
|
|
3
|
-
singleUser: (e) => e._("Single user"),
|
|
4
|
-
anyUserFromList: (e) => e._("Any user from the list"),
|
|
5
|
-
anyUsersFromList: (e, t) => e._("Any {count} users from the list", { count: t.toString() }),
|
|
6
|
-
anyUserWithRole: (e) => e._("Any user with role"),
|
|
7
|
-
allUsersFromList: (e) => e._("All users from list, one by one")
|
|
8
|
-
}, t = (t, n = 0) => n === 1 ? e.anyUserFromList(t) : e.anyUsersFromList(t, n);
|
|
9
|
-
//#endregion
|
|
10
|
-
export { e as getSharedApprovalRuleLabel, t as getUsersFromListLabel };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { getSharedApprovalRuleLabel as e, getUsersFromListLabel as t } from "./index78.js";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js
|
|
3
|
-
var n = {
|
|
4
|
-
SINGLE_USER: "single_user",
|
|
5
|
-
USERS_FROM_LIST: "users_from_list",
|
|
6
|
-
ROLES_FROM_LIST: "roles_from_list",
|
|
7
|
-
APPROVAL_CHAIN: "approval_chain"
|
|
8
|
-
}, r = {
|
|
9
|
-
REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
|
|
10
|
-
REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
|
|
11
|
-
}, i = (e, t) => {
|
|
12
|
-
switch (e) {
|
|
13
|
-
case n.SINGLE_USER: return t._("Single user");
|
|
14
|
-
case n.USERS_FROM_LIST: return t._("Users from the list");
|
|
15
|
-
case n.ROLES_FROM_LIST: return t._("Roles from the list");
|
|
16
|
-
case n.APPROVAL_CHAIN: return t._("Approval chain");
|
|
17
|
-
default: return;
|
|
18
|
-
}
|
|
19
|
-
}, a = (r, i, a) => {
|
|
20
|
-
switch (r) {
|
|
21
|
-
case n.SINGLE_USER: return e.singleUser(i);
|
|
22
|
-
case n.USERS_FROM_LIST: return t(i, a);
|
|
23
|
-
case n.ROLES_FROM_LIST: return e.anyUserWithRole(i);
|
|
24
|
-
case n.APPROVAL_CHAIN: return e.allUsersFromList(i);
|
|
25
|
-
default: return;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { n as APPROVAL_POLICY_RULE_TYPES, r as APPROVAL_REQUEST_CALLS, a as getRuleLabel, i as getRuleName };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { apiService as e } from "./index3.js";
|
|
2
|
-
import { embeddedBankingService as t } from "./index4.js";
|
|
3
|
-
import { filesService as n } from "./index5.js";
|
|
4
|
-
import { finopsService as r } from "./index6.js";
|
|
5
|
-
import { identityService as i } from "./index7.js";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js
|
|
7
|
-
var a = {
|
|
8
|
-
api: e,
|
|
9
|
-
embeddedBanking: t,
|
|
10
|
-
files: n,
|
|
11
|
-
finops: r,
|
|
12
|
-
identity: i
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
export { a as services };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js
|
|
2
|
-
var e = (e) => typeof e == "object" && !!e, t = (n) => Array.isArray(n) ? n.flatMap(t) : e(n) ? n.call && e(n.params) ? [n] : Array.isArray(n.all) ? n.all.flatMap(t) : [] : [];
|
|
3
|
-
//#endregion
|
|
4
|
-
export { t as extractApprovalCallsForTable };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import e from "@mui/icons-material/Cancel";
|
|
2
|
-
import t from "@mui/icons-material/HourglassEmpty";
|
|
3
|
-
import n from "@mui/icons-material/PaidOutlined";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js
|
|
5
|
-
var r = "search", i = "created_at", a = "created_by", o = ["ApprovalRequests.request_approval_by_roles", "ApprovalRequests.request_approval_by_role"], s = {
|
|
6
|
-
active: "success",
|
|
7
|
-
deleted: "error",
|
|
8
|
-
pending: "warning"
|
|
9
|
-
}, c = (e) => ({
|
|
10
|
-
active: e._("Active"),
|
|
11
|
-
deleted: e._("Deleted"),
|
|
12
|
-
pending: e._("Pending")
|
|
13
|
-
}), l = {
|
|
14
|
-
active: n,
|
|
15
|
-
deleted: e,
|
|
16
|
-
pending: t
|
|
17
|
-
};
|
|
18
|
-
//#endregion
|
|
19
|
-
export { l as APPROVAL_STATUS_TO_MUI_ICON_MAP, i as FILTER_TYPE_CREATED_AT, a as FILTER_TYPE_CREATED_BY, r as FILTER_TYPE_SEARCH, o as ROLE_APPROVAL_CALLS, s as ROW_TO_STATUS_MUI_MAP, c as getRowToStatusTextMap };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { APPROVAL_REQUEST_CALLS as e, getRuleLabel as t, getRuleName as n } from "./index79.js";
|
|
2
|
-
import { isRoleApprovalCall as r } from "./index82.js";
|
|
3
|
-
import "./index83.js";
|
|
4
|
-
import { useLingui as i } from "@lingui/react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js
|
|
6
|
-
var a = ({ approvalPolicy: a }) => {
|
|
7
|
-
let { i18n: o } = i(), s = (t) => {
|
|
8
|
-
if (typeof t != "object" || !t || !("call" in t) || typeof t.call != "string" || t.call !== e.REQUEST_APPROVAL_BY_USERS && !r(t.call) || !("params" in t) || typeof t.params != "object" || t.params === null) return !1;
|
|
9
|
-
let n = t.params;
|
|
10
|
-
return !("user_ids" in n && !Array.isArray(n.user_ids) || "role_ids" in n && !Array.isArray(n.role_ids) || !("required_approval_count" in n) || typeof n.required_approval_count != "number");
|
|
11
|
-
}, c = (e) => typeof e != "object" || !e || !("run_concurrently" in e) || typeof e.run_concurrently != "boolean" || !("all" in e) || !Array.isArray(e.all) ? !1 : e.all.every((e) => s(e) || c(e)), l = (e) => {
|
|
12
|
-
if (!Array.isArray(e) || e.length !== 1) return !1;
|
|
13
|
-
let [t] = e;
|
|
14
|
-
if (typeof t != "object" || !t || !("if" in t) || !("then" in t) || !("else" in t)) return !1;
|
|
15
|
-
let { if: n, then: r, else: i } = t;
|
|
16
|
-
if (typeof n != "object" || !n || !("run_concurrently" in n) || !("all" in n)) return !1;
|
|
17
|
-
let { run_concurrently: a, all: o } = n;
|
|
18
|
-
return typeof a != "boolean" || !Array.isArray(o) || !Array.isArray(r) || !Array.isArray(i) ? !1 : o.every((e) => s(e) || c(e));
|
|
19
|
-
}, u = (t) => t.call === e.REQUEST_APPROVAL_BY_USERS && Array.isArray(t.params.user_ids) && t.params.user_ids.length === 1 && t.params.required_approval_count === 1, d = (t) => t.call === e.REQUEST_APPROVAL_BY_USERS && Array.isArray(t.params.user_ids) && t.params.user_ids.length > 1 && t.params.required_approval_count > 0, f = (e) => r(e.call) && Array.isArray(e.params.role_ids) && e.params.role_ids.length >= 1 && e.params.required_approval_count > 0, p = (e) => !e.run_concurrently && e.all.length > 1 && e.all.every((e) => s(e) && u(e)), m = (e) => n(e, o), h = (e, n) => t(e, o, n);
|
|
20
|
-
return l(a?.script) ? {
|
|
21
|
-
rules: a?.script[0].if.all.reduce((e, t) => {
|
|
22
|
-
if (c(t)) {
|
|
23
|
-
if (p(t)) return {
|
|
24
|
-
...e,
|
|
25
|
-
approval_chain: { chainUserIds: t.all.reduce((e, t) => s(t) && u(t) && t.params.user_ids[0] && t.params.user_ids[0] ? [...e, t.params.user_ids[0]] : e, []) }
|
|
26
|
-
};
|
|
27
|
-
} else if (s(t)) {
|
|
28
|
-
if (u(t)) return {
|
|
29
|
-
...e,
|
|
30
|
-
single_user: { userId: t.params.user_ids[0] }
|
|
31
|
-
};
|
|
32
|
-
if (d(t)) return {
|
|
33
|
-
...e,
|
|
34
|
-
users_from_list: {
|
|
35
|
-
userIds: t.params.user_ids,
|
|
36
|
-
count: t.params.required_approval_count
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
if (f(t)) return {
|
|
40
|
-
...e,
|
|
41
|
-
roles_from_list: {
|
|
42
|
-
roleIds: t.params.role_ids,
|
|
43
|
-
count: t.params.required_approval_count
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
return e;
|
|
48
|
-
}, {}),
|
|
49
|
-
getRuleName: m,
|
|
50
|
-
getRuleLabel: h
|
|
51
|
-
} : {
|
|
52
|
-
rules: void 0,
|
|
53
|
-
getRuleName: m,
|
|
54
|
-
getRuleLabel: h
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
//#endregion
|
|
58
|
-
export { a as useApprovalPolicyScript };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createElement as e } from "react";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js
|
|
3
|
-
var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
4
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
width: n,
|
|
6
|
-
height: n,
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
fill: t,
|
|
9
|
-
...r
|
|
10
|
-
}, e("path", { d: "M14.81,12.28a3.73,3.73,0,0,0,1-2.5,3.78,3.78,0,0,0-7.56,0,3.73,3.73,0,0,0,1,2.5A5.94,5.94,0,0,0,6,16.89a1,1,0,0,0,2,.22,4,4,0,0,1,7.94,0A1,1,0,0,0,17,18h.11a1,1,0,0,0,.88-1.1A5.94,5.94,0,0,0,14.81,12.28ZM12,11.56a1.78,1.78,0,1,1,1.78-1.78A1.78,1.78,0,0,1,12,11.56ZM19,2H5A3,3,0,0,0,2,5V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2Zm1,17a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V5A1,1,0,0,1,5,4H19a1,1,0,0,1,1,1Z" }));
|
|
11
|
-
//#endregion
|
|
12
|
-
export { t as UUserSquare };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index36.js";
|
|
2
|
-
import { Badge as t } from "./index56.js";
|
|
3
|
-
import { Skeleton as n } from "./index57.js";
|
|
4
|
-
import { getVariantProps as r } from "./index58.js";
|
|
5
|
-
import { UUserSquare as i } from "./index85.js";
|
|
6
|
-
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js
|
|
8
|
-
var s = ({ roleId: s, variant: c = "default", quoted: l = !1, roleData: u }) => {
|
|
9
|
-
let { api: d } = e(), { data: f, isLoading: p, isError: m } = d.finops.getRolesId.useQuery({ path: { role_id: s } }, { enabled: !u }), h = u ?? f, g = !u && p;
|
|
10
|
-
if (!h && !g && m && s) {
|
|
11
|
-
let { badgeVariant: e, className: n } = r({
|
|
12
|
-
variant: c,
|
|
13
|
-
isError: !0,
|
|
14
|
-
componentType: "role"
|
|
15
|
-
});
|
|
16
|
-
return /* @__PURE__ */ a(t, {
|
|
17
|
-
variant: e,
|
|
18
|
-
className: n,
|
|
19
|
-
children: "N/A"
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
if (!h && !g || !h) return null;
|
|
23
|
-
let { badgeVariant: _, className: v, showIcon: y } = r({
|
|
24
|
-
variant: c,
|
|
25
|
-
isError: !1,
|
|
26
|
-
componentType: "role"
|
|
27
|
-
});
|
|
28
|
-
return /* @__PURE__ */ o(t, {
|
|
29
|
-
variant: _,
|
|
30
|
-
className: v,
|
|
31
|
-
children: [y && /* @__PURE__ */ a(i, {
|
|
32
|
-
width: 24,
|
|
33
|
-
height: 24,
|
|
34
|
-
className: c === "default" ? "ttw:text-[rgb(97,97,97)] ttw:!w-6 ttw:!h-6 ttw:flex-shrink-0" : "ttw:!w-6 ttw:!h-6 ttw:flex-shrink-0"
|
|
35
|
-
}), g ? /* @__PURE__ */ a(n, { className: "ttw:h-4 ttw:w-20" }) : l ? `"${h.name}"` : h.name]
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
//#endregion
|
|
39
|
-
export { s as Role };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index86.js";
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { User as e } from "./index59.js";
|
|
2
|
-
import "./index60.js";
|
|
3
|
-
import { useApprovalPolicyScript as t } from "./index84.js";
|
|
4
|
-
import { Role as n } from "./index86.js";
|
|
5
|
-
import "./index87.js";
|
|
6
|
-
import { useMemo as r } from "react";
|
|
7
|
-
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
8
|
-
import { Button as o, IconButton as s, Paper as c, Stack as l, Table as u, TableBody as d, TableCell as f, TableHead as p, TableRow as m } from "@mui/material";
|
|
9
|
-
import { useLingui as h } from "@lingui/react";
|
|
10
|
-
import g from "@mui/icons-material/AddCircleOutline";
|
|
11
|
-
import _ from "@mui/icons-material/Delete";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js
|
|
13
|
-
var v = ({ rules: v, usersFromListCount: y, rolesFromListCount: b, onAddRule: x, onEditRule: S, onDeleteRule: C }) => {
|
|
14
|
-
let { i18n: w } = h(), { getRuleLabel: T } = t({}), E = r(() => Object.keys(v).map((t) => {
|
|
15
|
-
let r, a;
|
|
16
|
-
switch (t) {
|
|
17
|
-
case "users_from_list":
|
|
18
|
-
r = T(t, (typeof y == "string" ? parseInt(y) : y) || 0);
|
|
19
|
-
break;
|
|
20
|
-
case "roles_from_list":
|
|
21
|
-
r = T(t, typeof b == "string" ? parseInt(b) : b || 0);
|
|
22
|
-
break;
|
|
23
|
-
default: r = T(t);
|
|
24
|
-
}
|
|
25
|
-
switch (t) {
|
|
26
|
-
case "single_user":
|
|
27
|
-
a = /* @__PURE__ */ i(l, {
|
|
28
|
-
direction: "column",
|
|
29
|
-
spacing: .5,
|
|
30
|
-
sx: { overflow: "hidden" },
|
|
31
|
-
children: v.single_user?.id && /* @__PURE__ */ i(e, { userId: v.single_user?.id }, v.single_user?.id)
|
|
32
|
-
});
|
|
33
|
-
break;
|
|
34
|
-
case "users_from_list":
|
|
35
|
-
a = /* @__PURE__ */ i(l, {
|
|
36
|
-
direction: "column",
|
|
37
|
-
spacing: .5,
|
|
38
|
-
sx: { overflow: "hidden" },
|
|
39
|
-
children: v?.users_from_list?.map((t) => /* @__PURE__ */ i(e, { userId: t.id }, t.id))
|
|
40
|
-
});
|
|
41
|
-
break;
|
|
42
|
-
case "roles_from_list":
|
|
43
|
-
a = /* @__PURE__ */ i(l, {
|
|
44
|
-
direction: "row",
|
|
45
|
-
gap: 1,
|
|
46
|
-
flexWrap: "wrap",
|
|
47
|
-
useFlexGap: !0,
|
|
48
|
-
sx: { "& > *": { flexShrink: 0 } },
|
|
49
|
-
children: v.roles_from_list?.map((e) => /* @__PURE__ */ i(n, { roleId: e.id }, e.id))
|
|
50
|
-
});
|
|
51
|
-
break;
|
|
52
|
-
case "approval_chain": a = /* @__PURE__ */ i(l, {
|
|
53
|
-
direction: "column",
|
|
54
|
-
spacing: .5,
|
|
55
|
-
sx: { overflow: "hidden" },
|
|
56
|
-
children: v?.approval_chain?.map((t) => /* @__PURE__ */ i(e, { userId: t.id }, t.id))
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
key: t,
|
|
61
|
-
label: r,
|
|
62
|
-
value: a
|
|
63
|
-
};
|
|
64
|
-
}), [
|
|
65
|
-
v,
|
|
66
|
-
y,
|
|
67
|
-
T,
|
|
68
|
-
b
|
|
69
|
-
]);
|
|
70
|
-
return /* @__PURE__ */ i(c, {
|
|
71
|
-
variant: "outlined",
|
|
72
|
-
children: /* @__PURE__ */ a(u, { children: [/* @__PURE__ */ i(p, { children: /* @__PURE__ */ a(m, { children: [
|
|
73
|
-
/* @__PURE__ */ i(f, { children: w._("Condition") }),
|
|
74
|
-
/* @__PURE__ */ i(f, { children: w._("Criteria") }),
|
|
75
|
-
/* @__PURE__ */ i(f, {})
|
|
76
|
-
] }) }), /* @__PURE__ */ a(d, { children: [E.length > 0 ? E.map((e) => /* @__PURE__ */ a(m, {
|
|
77
|
-
hover: !0,
|
|
78
|
-
sx: { "&.MuiTableRow-root": { cursor: "pointer" } },
|
|
79
|
-
onClick: () => S(e.key),
|
|
80
|
-
children: [
|
|
81
|
-
/* @__PURE__ */ i(f, { children: e.label }),
|
|
82
|
-
/* @__PURE__ */ i(f, { children: e.value }),
|
|
83
|
-
/* @__PURE__ */ i(f, { children: /* @__PURE__ */ i(s, {
|
|
84
|
-
"aria-label": w._("Delete trigger"),
|
|
85
|
-
onClick: (t) => {
|
|
86
|
-
t.stopPropagation(), C(e.key);
|
|
87
|
-
},
|
|
88
|
-
children: /* @__PURE__ */ i(_, {})
|
|
89
|
-
}) })
|
|
90
|
-
]
|
|
91
|
-
}, e.label)) : /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(f, {
|
|
92
|
-
colSpan: 3,
|
|
93
|
-
children: w._("No rules")
|
|
94
|
-
}) }), /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(f, {
|
|
95
|
-
colSpan: 3,
|
|
96
|
-
children: /* @__PURE__ */ i(o, {
|
|
97
|
-
startIcon: /* @__PURE__ */ i(g, {}),
|
|
98
|
-
onClick: x,
|
|
99
|
-
disabled: !!v.single_user && (v.users_from_list?.length ?? 0) > 0 && (v.roles_from_list?.length ?? 0) > 0 && (v.approval_chain?.length ?? 0) > 0,
|
|
100
|
-
children: w._("Add new rule")
|
|
101
|
-
})
|
|
102
|
-
}) })] })] })
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
//#endregion
|
|
106
|
-
export { v as RulesTable };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index88.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { services as e } from "./index8.js";
|
|
2
|
-
import { qraftAPIClient as t } from "@openapi-qraft/react";
|
|
3
|
-
import * as n from "@openapi-qraft/react/callbacks/index";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js
|
|
5
|
-
function r(r) {
|
|
6
|
-
return t(e, n, r);
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { r as createAPIClient };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index36.js";
|
|
2
|
-
import { useRootElements as t } from "./index63.js";
|
|
3
|
-
import "./index64.js";
|
|
4
|
-
import { useDebounce as n } from "./index69.js";
|
|
5
|
-
import { useState as r } from "react";
|
|
6
|
-
import { Fragment as i, jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import { Autocomplete as s, CircularProgress as c, FormHelperText as l, TextField as u } from "@mui/material";
|
|
8
|
-
import { useLingui as d } from "@lingui/react";
|
|
9
|
-
import { Controller as f, useFormContext as p } from "react-hook-form";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js
|
|
11
|
-
var m = ({ control: m, name: h, label: g }) => {
|
|
12
|
-
let { i18n: _ } = d(), { api: v } = e(), { root: y } = t(), { setValue: b } = p(), [x, S] = r(""), C = n(x, 300), { data: w, isLoading: T, refetch: E } = v.finops.getEntityUsers.useQuery({ query: { name__istartswith: C || void 0 } });
|
|
13
|
-
return /* @__PURE__ */ a(f, {
|
|
14
|
-
control: m,
|
|
15
|
-
name: h,
|
|
16
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(s, {
|
|
17
|
-
...e,
|
|
18
|
-
id: e.name,
|
|
19
|
-
multiple: !0,
|
|
20
|
-
autoComplete: !0,
|
|
21
|
-
includeInputInList: !0,
|
|
22
|
-
filterSelectedOptions: !0,
|
|
23
|
-
noOptionsText: _._("No users found"),
|
|
24
|
-
slotProps: { popper: { container: y } },
|
|
25
|
-
loading: T,
|
|
26
|
-
options: w?.data || [],
|
|
27
|
-
getOptionKey: (e) => e.id,
|
|
28
|
-
getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(),
|
|
29
|
-
isOptionEqualToValue: (e, t) => e.id === t.id,
|
|
30
|
-
filterOptions: (e) => e,
|
|
31
|
-
onInputChange: (e, t) => {
|
|
32
|
-
S(t);
|
|
33
|
-
},
|
|
34
|
-
onChange: (e, t) => {
|
|
35
|
-
b(h, t), E();
|
|
36
|
-
},
|
|
37
|
-
renderInput: (e) => /* @__PURE__ */ a(u, {
|
|
38
|
-
...e,
|
|
39
|
-
label: g,
|
|
40
|
-
error: !!t,
|
|
41
|
-
InputProps: {
|
|
42
|
-
...e.InputProps,
|
|
43
|
-
endAdornment: /* @__PURE__ */ o(i, { children: [T ? /* @__PURE__ */ a(c, {
|
|
44
|
-
color: "inherit",
|
|
45
|
-
size: 20
|
|
46
|
-
}) : null, e.InputProps.endAdornment] })
|
|
47
|
-
}
|
|
48
|
-
})
|
|
49
|
-
}), t && /* @__PURE__ */ a(l, {
|
|
50
|
-
error: !0,
|
|
51
|
-
children: t.message
|
|
52
|
-
})] })
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
//#endregion
|
|
56
|
-
export { m as AutocompleteUsers };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index90.js";
|