@tesouro/embedded-components-react 0.5.138 → 0.5.139
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 -6
- package/dist/lib/monite-sdk.js +50 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +575 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +1 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +157 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +24 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +10 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +10 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +16 -597
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +75 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +126 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +11 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +5 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +62 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +120 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +21 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +6 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +7 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +26 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +19 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +20 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +183 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +59 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +11 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +34 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +43 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +5 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +9 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +20 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +12 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +37 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +5 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +119 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +62 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +196 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +1 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +41 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +5 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +3 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +407 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +18 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +95 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +17 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +180 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +98 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +49 -419
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +158 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +7 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +55 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +51 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +80 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +21 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +307 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +158 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +34 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +34 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +3 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +181 -340
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +134 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +209 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +229 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +34 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +135 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +163 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +26 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +36 -207
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +154 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +67 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +217 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +83 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +184 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +169 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +15 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +383 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +88 -151
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +198 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +30 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +84 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +136 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +35 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +58 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +54 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +135 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +552 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +145 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +142 -382
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +36 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +59 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +67 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +147 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +57 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +82 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +14 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +16 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +21 -552
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +89 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +41 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +27 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +16 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +12 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +5 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +13 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +9 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +102 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +35 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +43 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +71 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +99 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +186 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +139 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +130 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +77 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +245 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +6 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +398 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +22 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +18 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +44 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +45 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +14 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +39 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +140 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +112 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +39 -246
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +33 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +24 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +22 -399
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +71 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +179 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +138 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +28 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +93 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +44 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +36 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +76 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +33 -177
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +82 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +50 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +1 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +1 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +133 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +109 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +49 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +787 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +88 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +101 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +23 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +11 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +23 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +165 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +208 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +87 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +17 -789
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +154 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +98 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +46 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +4 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +47 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +63 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +164 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +175 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +1 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +72 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +18 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +9 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +130 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +5 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +219 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +34 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +179 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +203 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +98 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +66 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +51 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +91 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +40 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +69 -174
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +80 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +12 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +21 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +16 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +4 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +22 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +1 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +64 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +36 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +18 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +31 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +2 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +93 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +13 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +31 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +22 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index10.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index11.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index4.js +16 -58
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index5.js +95 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index7.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index2.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/{shared/tag-selection/ui/dist/index3.js → settings-widget/tags/ui/dist/index5.js} +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +539 -533
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +0 -97
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index2.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index3.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index4.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index5.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index6.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index7.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/index.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/TagSelectorField.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/helpers.js +0 -38
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/labels.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/permissions.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/useTagCreateForm.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index2.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index4.js +0 -4
|
@@ -9,7 +9,6 @@ var o = ({ approvalPolicy: o }) => {
|
|
|
9
9
|
case "amount": return s._("Amount");
|
|
10
10
|
case "was_created_by_user_id": return s._("Created by user");
|
|
11
11
|
case "counterpart_id": return s._("Vendors");
|
|
12
|
-
case "tags": return s._("Tags");
|
|
13
12
|
default: return e;
|
|
14
13
|
}
|
|
15
14
|
}, u = (e) => {
|
|
@@ -17,7 +16,6 @@ var o = ({ approvalPolicy: o }) => {
|
|
|
17
16
|
case "amount": return s._("Amount");
|
|
18
17
|
case "was_created_by_user_id": return s._("Created by");
|
|
19
18
|
case "counterpart_id": return s._("Vendors");
|
|
20
|
-
case "tags": return s._("Has tags");
|
|
21
19
|
default: return e;
|
|
22
20
|
}
|
|
23
21
|
}, d = (e, n) => {
|
|
@@ -57,9 +55,6 @@ var o = ({ approvalPolicy: o }) => {
|
|
|
57
55
|
currency: o
|
|
58
56
|
};
|
|
59
57
|
break;
|
|
60
|
-
case "tags.id":
|
|
61
|
-
typeof o == "string" && (e.tags ||= [], e.tags.push(o));
|
|
62
|
-
break;
|
|
63
58
|
case "counterpart_id":
|
|
64
59
|
case "was_created_by_user_id": Array.isArray(o) && (e[a] = o);
|
|
65
60
|
}
|
|
@@ -20,14 +20,6 @@ var v = ({ triggers: v, onAddTrigger: y, onEditTrigger: b, onDeleteTrigger: x })
|
|
|
20
20
|
children: v.was_created_by_user_id?.map((e) => /* @__PURE__ */ r(t, { userId: e.id }, e.id))
|
|
21
21
|
});
|
|
22
22
|
break;
|
|
23
|
-
case "tags":
|
|
24
|
-
i = /* @__PURE__ */ r(l, {
|
|
25
|
-
direction: "row",
|
|
26
|
-
gap: 1,
|
|
27
|
-
sx: { flexWrap: "wrap" },
|
|
28
|
-
children: v.tags?.map((e) => /* @__PURE__ */ r(o, { label: e.name }, e.id))
|
|
29
|
-
});
|
|
30
|
-
break;
|
|
31
23
|
case "counterpart_id":
|
|
32
24
|
i = /* @__PURE__ */ r(l, {
|
|
33
25
|
direction: "row",
|
|
@@ -80,7 +72,7 @@ var v = ({ triggers: v, onAddTrigger: y, onEditTrigger: b, onDeleteTrigger: x })
|
|
|
80
72
|
children: /* @__PURE__ */ r(a, {
|
|
81
73
|
startIcon: /* @__PURE__ */ r(g, {}),
|
|
82
74
|
onClick: y,
|
|
83
|
-
disabled: !!(v?.was_created_by_user_id?.length && v?.
|
|
75
|
+
disabled: !!(v?.was_created_by_user_id?.length && v?.counterpart_id?.length && v?.amount?.value?.length),
|
|
84
76
|
children: S._("Add new condition")
|
|
85
77
|
})
|
|
86
78
|
}) })] })] })
|
|
@@ -1,11 +1,578 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { useMoniteContext as e } from "./index46.js";
|
|
2
|
+
import { getCounterpartName as t } from "./index52.js";
|
|
3
|
+
import { useCurrencies as n } from "./index62.js";
|
|
4
|
+
import "./index222.js";
|
|
5
|
+
import { useDialog as r } from "./index234.js";
|
|
6
|
+
import "./index235.js";
|
|
7
|
+
import { CurrencyEnumSchema as i } from "./index93.js";
|
|
8
|
+
import { CounterpartAutocomplete as ee } from "./index262.js";
|
|
9
|
+
import { NAMED_VALUES as a, OPERATOR_OPERATIONS as o } from "./index270.js";
|
|
10
|
+
import { useApprovalPolicyTrigger as te } from "./index271.js";
|
|
11
|
+
import { ConditionsTable as ne } from "./index272.js";
|
|
12
|
+
import "./index273.js";
|
|
13
|
+
import { useApprovalPolicyScript as re } from "./index279.js";
|
|
14
|
+
import { RulesTable as ie } from "./index283.js";
|
|
15
|
+
import "./index284.js";
|
|
16
|
+
import { AutocompleteUsers as s } from "./index285.js";
|
|
17
|
+
import "./index286.js";
|
|
18
|
+
import { AutocompleteRoles as ae } from "./index287.js";
|
|
19
|
+
import "./index288.js";
|
|
20
|
+
import { AutocompleteUser as oe } from "./index289.js";
|
|
21
|
+
import "./index290.js";
|
|
22
|
+
import "./index291.js";
|
|
23
|
+
import { MoniteCurrency as se } from "./index300.js";
|
|
24
|
+
import "./index302.js";
|
|
25
|
+
import { DialogFooter as ce } from "./index303.js";
|
|
26
|
+
import "./index304.js";
|
|
27
|
+
import { DialogHeader as le } from "./index305.js";
|
|
28
|
+
import { RHFTextField as c } from "./index306.js";
|
|
29
|
+
import "./index307.js";
|
|
30
|
+
import { useEffect as l, useId as ue, useState as u } from "react";
|
|
31
|
+
import { z as d } from "zod";
|
|
32
|
+
import { Fragment as f, jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
33
|
+
import { toast as h } from "react-hot-toast";
|
|
34
|
+
import { Box as de, DialogContent as fe, Grid as g, MenuItem as _, Stack as pe, Typography as v } from "@mui/material";
|
|
35
|
+
import { Trans as me, useLingui as he } from "@lingui/react";
|
|
36
|
+
import { FormProvider as ge, useForm as _e } from "react-hook-form";
|
|
37
|
+
import { zodResolver as ve } from "@hookform/resolvers/zod";
|
|
5
38
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
39
|
+
var ye = (e) => d.object({
|
|
40
|
+
name: d.string().min(1, e._("Policy name is required")),
|
|
41
|
+
description: d.string().optional(),
|
|
42
|
+
object_type: d.string(),
|
|
43
|
+
triggerType: d.union([
|
|
44
|
+
d.literal("was_created_by_user_id"),
|
|
45
|
+
d.literal("counterpart_id"),
|
|
46
|
+
d.literal("amount"),
|
|
47
|
+
d.literal("currency")
|
|
48
|
+
]).nullish(),
|
|
49
|
+
triggers: d.object({
|
|
50
|
+
was_created_by_user_id: d.array(d.any()).optional(),
|
|
51
|
+
counterpart_id: d.array(d.any()).optional(),
|
|
52
|
+
amount: d.object({
|
|
53
|
+
currency: i,
|
|
54
|
+
value: d.array(d.any())
|
|
55
|
+
}).optional()
|
|
56
|
+
}),
|
|
57
|
+
amountOperator: d.union([
|
|
58
|
+
d.literal("range"),
|
|
59
|
+
d.literal("in"),
|
|
60
|
+
d.literal("=="),
|
|
61
|
+
d.literal("<"),
|
|
62
|
+
d.literal("<="),
|
|
63
|
+
d.literal(">"),
|
|
64
|
+
d.literal(">=")
|
|
65
|
+
]).optional(),
|
|
66
|
+
amountValue: d.number().positive(e._("Amount must be a positive number")).optional(),
|
|
67
|
+
amountRangeLeftValue: d.number().positive(e._("Amount must be a positive number")).optional(),
|
|
68
|
+
amountRangeRightValue: d.number().positive(e._("Amount must be a positive number")).optional(),
|
|
69
|
+
amountCurrency: i.optional(),
|
|
70
|
+
scriptType: d.union([
|
|
71
|
+
d.literal("single_user"),
|
|
72
|
+
d.literal("users_from_list"),
|
|
73
|
+
d.literal("roles_from_list"),
|
|
74
|
+
d.literal("approval_chain")
|
|
75
|
+
]).nullish(),
|
|
76
|
+
rules: d.object({
|
|
77
|
+
single_user: d.any().optional(),
|
|
78
|
+
users_from_list: d.array(d.any()).optional(),
|
|
79
|
+
roles_from_list: d.array(d.any()).optional(),
|
|
80
|
+
approval_chain: d.array(d.any()).optional()
|
|
81
|
+
}),
|
|
82
|
+
usersFromListCount: d.number().min(1, e._("Minimum number of approvals required must be at least 1")).optional(),
|
|
83
|
+
rolesFromListCount: d.number().min(1, e._("Minimum number of approvals required must be at least 1")).optional()
|
|
84
|
+
}).superRefine((t, n) => {
|
|
85
|
+
let r = t.rules?.users_from_list;
|
|
86
|
+
r && r.length > 0 && t.usersFromListCount !== void 0 && t.usersFromListCount > r.length && n.addIssue({
|
|
87
|
+
code: d.ZodIssueCode.custom,
|
|
88
|
+
message: e._("Cannot exceed the number of selected users ({selectedUsersLength})", { selectedUsersLength: r.length }),
|
|
89
|
+
path: ["usersFromListCount"]
|
|
90
|
+
});
|
|
91
|
+
}), be = (e) => ({
|
|
92
|
+
name: e.name,
|
|
93
|
+
description: e.description,
|
|
94
|
+
trigger: { all: [
|
|
95
|
+
"{event_name == 'submitted_for_approval'}",
|
|
96
|
+
...e.triggers.was_created_by_user_id?.length && e.triggers.was_created_by_user_id?.length > 0 ? [{
|
|
97
|
+
operator: o.IN,
|
|
98
|
+
left_operand: { name: `invoice.${a.WAS_CREATED_BY_USER_ID}` },
|
|
99
|
+
right_operand: e.triggers.was_created_by_user_id.map((e) => e.id)
|
|
100
|
+
}] : [],
|
|
101
|
+
...e.triggers.counterpart_id?.length && e.triggers.counterpart_id?.length > 0 ? [{
|
|
102
|
+
operator: o.IN,
|
|
103
|
+
left_operand: { name: `invoice.${a.COUNTERPART_ID}` },
|
|
104
|
+
right_operand: e.triggers.counterpart_id.map((e) => e.id)
|
|
105
|
+
}] : [],
|
|
106
|
+
...e.triggers.amount?.value?.length && e.triggers.amount?.value?.length > 0 ? [...e.triggers.amount.value.map((e) => ({
|
|
107
|
+
operator: e[0],
|
|
108
|
+
left_operand: { name: `invoice.${a.AMOUNT}` },
|
|
109
|
+
right_operand: typeof e[1] == "number" ? e[1] : parseInt(e[1])
|
|
110
|
+
})), {
|
|
111
|
+
operator: o.EQUALS,
|
|
112
|
+
left_operand: { name: `invoice.${a.CURRENCY}` },
|
|
113
|
+
right_operand: e.triggers.amount.currency
|
|
114
|
+
}] : []
|
|
115
|
+
] },
|
|
116
|
+
script: [{
|
|
117
|
+
if: {
|
|
118
|
+
run_concurrently: !1,
|
|
119
|
+
all: [
|
|
120
|
+
...e.rules.single_user ? [{
|
|
121
|
+
call: "ApprovalRequests.request_approval_by_users",
|
|
122
|
+
params: {
|
|
123
|
+
user_ids: [e.rules.single_user.id],
|
|
124
|
+
required_approval_count: 1
|
|
125
|
+
}
|
|
126
|
+
}] : [],
|
|
127
|
+
...e.rules.users_from_list && e.rules.users_from_list?.length > 0 ? [{
|
|
128
|
+
call: "ApprovalRequests.request_approval_by_users",
|
|
129
|
+
params: {
|
|
130
|
+
user_ids: e.rules.users_from_list.map((e) => e.id) || [],
|
|
131
|
+
required_approval_count: e.usersFromListCount ? typeof e.usersFromListCount == "number" ? e.usersFromListCount : parseInt(e.usersFromListCount) : 0
|
|
132
|
+
}
|
|
133
|
+
}] : [],
|
|
134
|
+
...e.rules.roles_from_list && e.rules.roles_from_list?.length > 0 ? [{
|
|
135
|
+
call: "ApprovalRequests.request_approval_by_roles",
|
|
136
|
+
params: {
|
|
137
|
+
role_ids: e.rules.roles_from_list.map((e) => e.id) || [],
|
|
138
|
+
required_approval_count: e.rolesFromListCount ? typeof e.rolesFromListCount == "number" ? e.rolesFromListCount : parseInt(e.rolesFromListCount) : 0
|
|
139
|
+
}
|
|
140
|
+
}] : [],
|
|
141
|
+
...e.rules.approval_chain && e.rules.approval_chain?.length > 0 ? [{
|
|
142
|
+
run_concurrently: !1,
|
|
143
|
+
all: [...e.rules.approval_chain.map((e) => ({
|
|
144
|
+
call: "ApprovalRequests.request_approval_by_users",
|
|
145
|
+
params: {
|
|
146
|
+
user_ids: [e.id],
|
|
147
|
+
required_approval_count: 1
|
|
148
|
+
}
|
|
149
|
+
})) || []]
|
|
150
|
+
}] : []
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
then: ["{Payables.approve(invoice.id)}"],
|
|
154
|
+
else: ["{Payables.reject(invoice.id)}"]
|
|
155
|
+
}]
|
|
156
|
+
}), y = ({ approvalPolicy: i, setIsEdit: a, onCreated: o, onUpdated: d }) => {
|
|
157
|
+
let { i18n: y } = he(), xe = r(), { api: b, queryClient: x } = e(), { formatFromMinorUnits: S, formatToMinorUnits: C } = n(), w = !!i, Se = `Monite-Form-approvalPolicyBuilder-${ue()}`, { triggers: T, getTriggerName: E } = te({ approvalPolicy: i }), { rules: D } = re({ approvalPolicy: i }), [O, k] = u(!1), [A, j] = u(!1), [M, N] = u(null), [P, F] = u(null), [I, L] = u(null), { data: Ce } = b.finops.getApprovalPolicies.useQuery({ query: { object_type: "payable" } }, { enabled: !w }), { data: R } = b.finops.getEntityUsers.useQuery({ query: { id__in: Array.isArray(T?.was_created_by_user_id) ? T.was_created_by_user_id : [] } }, { enabled: !!T?.was_created_by_user_id?.length }), { data: z } = b.finops.getCounterparts.useQuery({ query: { id__in: Array.isArray(T?.counterpart_id) ? T.counterpart_id : [] } }, { enabled: !!T?.counterpart_id?.length }), { data: we } = b.finops.getEntityUsersId.useQuery({ path: { entity_user_id: D?.single_user?.userId ?? "" } }, { enabled: !!D?.single_user?.userId }), { data: B } = b.finops.getEntityUsers.useQuery({ query: { id__in: Array.isArray(D?.users_from_list?.userIds) ? D.users_from_list.userIds : [] } }, { enabled: !!D?.users_from_list?.userIds?.length }), { data: V } = b.finops.getRoles.useQuery({ query: { id__in: Array.isArray(D?.roles_from_list?.roleIds) ? D.roles_from_list.roleIds : [] } }, { enabled: !!D?.roles_from_list?.roleIds?.length }), { data: H } = b.finops.getEntityUsers.useQuery({ query: { id__in: Array.isArray(D?.approval_chain?.chainUserIds) ? D.approval_chain.chainUserIds : [] } }, { enabled: !!D?.approval_chain?.chainUserIds?.length }), Te = b.finops.postApprovalPolicies.useMutation({}, {
|
|
158
|
+
onSuccess: async (e) => {
|
|
159
|
+
await Promise.all([b.finops.getApprovalPolicies.invalidateQueries(x), b.finops.getApprovalPoliciesId.invalidateQueries({ parameters: { path: { approval_policy_id: e.id } } }, x)]), h.success(y._("Approval policy created"));
|
|
160
|
+
},
|
|
161
|
+
onError: async () => {
|
|
162
|
+
h.error(y._("Error creating approval policy"));
|
|
163
|
+
}
|
|
164
|
+
}), Ee = b.finops.patchApprovalPoliciesId.useMutation(void 0, {
|
|
165
|
+
onSuccess: async (e) => {
|
|
166
|
+
await Promise.all([b.finops.getApprovalPolicies.invalidateQueries(x), b.finops.getApprovalPoliciesId.invalidateQueries({ parameters: { path: { approval_policy_id: e.id } } }, x)]), h.success(y._("Approval policy updated"));
|
|
167
|
+
},
|
|
168
|
+
onError: async () => {
|
|
169
|
+
h.error(y._("Error updating approval policy"));
|
|
170
|
+
}
|
|
171
|
+
}), De = async (e) => {
|
|
172
|
+
let t = Ce?.data?.map((e) => e.priority ?? 0) ?? [];
|
|
173
|
+
e.priority = Math.max(0, ...t) + 1;
|
|
174
|
+
let n = await Te.mutateAsync(e);
|
|
175
|
+
if (n) return a(!1), o?.(n.id), n;
|
|
176
|
+
}, Oe = async (e, t) => {
|
|
177
|
+
let n = await Ee.mutateAsync({
|
|
178
|
+
path: { approval_policy_id: e },
|
|
179
|
+
body: t
|
|
180
|
+
});
|
|
181
|
+
return n && (a(!1), d?.(e)), n;
|
|
182
|
+
}, ke = _e({
|
|
183
|
+
resolver: ve(ye(y)),
|
|
184
|
+
mode: "onChange",
|
|
185
|
+
defaultValues: {
|
|
186
|
+
name: i?.name || "",
|
|
187
|
+
description: i?.description || "",
|
|
188
|
+
scriptType: void 0,
|
|
189
|
+
triggerType: void 0,
|
|
190
|
+
triggers: {},
|
|
191
|
+
rules: {},
|
|
192
|
+
object_type: i?.object_type || "payable",
|
|
193
|
+
amountOperator: void 0,
|
|
194
|
+
amountValue: void 0,
|
|
195
|
+
amountCurrency: "USD",
|
|
196
|
+
amountRangeLeftValue: void 0,
|
|
197
|
+
amountRangeRightValue: void 0,
|
|
198
|
+
usersFromListCount: 1,
|
|
199
|
+
rolesFromListCount: 1
|
|
200
|
+
}
|
|
201
|
+
}), { control: U, handleSubmit: Ae, setValue: W, getValues: G, watch: je } = ke, [Me, K, q, J, Y, X, Z, Q, $, Ne, Pe] = je([
|
|
202
|
+
"triggers",
|
|
203
|
+
"rules",
|
|
204
|
+
"amountOperator",
|
|
205
|
+
"amountValue",
|
|
206
|
+
"amountRangeLeftValue",
|
|
207
|
+
"amountRangeRightValue",
|
|
208
|
+
"amountCurrency",
|
|
209
|
+
"triggerType",
|
|
210
|
+
"scriptType",
|
|
211
|
+
"usersFromListCount",
|
|
212
|
+
"rolesFromListCount"
|
|
213
|
+
]);
|
|
214
|
+
l(() => {
|
|
215
|
+
w && (R?.data && R?.data.length > 0 && W("triggers.was_created_by_user_id", R?.data), (z?.data?.length ?? 0) > 0 && W("triggers.counterpart_id", z?.data.map((e) => ({
|
|
216
|
+
id: e.id,
|
|
217
|
+
label: t(e)
|
|
218
|
+
}))), T.amount && T.amount?.value?.length > 0 && (W("triggers.amount", T.amount), T.amount.value.length === 2 ? (W("amountOperator", "range"), W("amountRangeLeftValue", S(typeof T.amount.value[0][1] == "number" ? T.amount.value[0][1] : parseInt(T.amount.value[0][1]), T.amount.currency) || 0), W("amountRangeRightValue", S(typeof T.amount.value[1][1] == "number" ? T.amount.value[1][1] : parseInt(T.amount.value[1][1]), T.amount.currency) || 0), W("amountCurrency", T.amount.currency)) : (W("amountOperator", T.amount.value[0][0]), W("amountValue", S(typeof T.amount.value[0][1] == "number" ? T.amount.value[0][1] : parseInt(T.amount.value[0][1]), T.amount.currency) || 0), W("amountCurrency", T.amount.currency))), we && W("rules.single_user", we), B?.data && B?.data.length > 0 && (W("rules.users_from_list", B?.data), W("usersFromListCount", D?.users_from_list?.count)), V?.data && V?.data.length > 0 && (W("rules.roles_from_list", V?.data), W("rolesFromListCount", D?.roles_from_list?.count)), H?.data && H?.data.length > 0 && W("rules.approval_chain", H?.data));
|
|
219
|
+
}, [
|
|
220
|
+
R?.data,
|
|
221
|
+
z?.data,
|
|
222
|
+
we,
|
|
223
|
+
B?.data,
|
|
224
|
+
V?.data,
|
|
225
|
+
H?.data,
|
|
226
|
+
w,
|
|
227
|
+
W
|
|
228
|
+
]), l(() => {
|
|
229
|
+
M && W("triggerType", M);
|
|
230
|
+
}, [W, M]), l(() => {
|
|
231
|
+
I && W("scriptType", I);
|
|
232
|
+
}, [W, I]), l(() => {
|
|
233
|
+
q && (q === "range" && Y && X ? W("triggers.amount", {
|
|
234
|
+
currency: Z ?? "USD",
|
|
235
|
+
value: [[">=", C(typeof Y == "number" ? Y : parseInt(Y), Z ?? "USD") || 0], ["<=", C(typeof X == "number" ? X : parseInt(X), Z ?? "USD") || 0]]
|
|
236
|
+
}) : J && W("triggers.amount", {
|
|
237
|
+
currency: Z ?? "USD",
|
|
238
|
+
value: [[q, C(typeof J == "number" ? J : parseInt(J), Z ?? "USD") || 0]]
|
|
239
|
+
}));
|
|
240
|
+
}, [
|
|
241
|
+
C,
|
|
242
|
+
q,
|
|
243
|
+
Y,
|
|
244
|
+
X,
|
|
245
|
+
J,
|
|
246
|
+
Z,
|
|
247
|
+
W
|
|
248
|
+
]);
|
|
249
|
+
let Fe = () => {
|
|
250
|
+
!O && M === "was_created_by_user_id" && W("triggers.was_created_by_user_id", P?.triggers?.was_created_by_user_id || []), !O && M === "counterpart_id" && W("triggers.counterpart_id", P?.triggers?.counterpart_id || []), !O && M === "amount" && (W("triggers.amount", P?.triggers?.amount || void 0), W("amountOperator", P?.amountOperator || void 0), W("amountValue", P?.amountValue || void 0), W("amountRangeLeftValue", P?.amountRangeLeftValue || void 0), W("amountRangeRightValue", P?.amountRangeRightValue || void 0), W("amountCurrency", P?.amountCurrency || void 0)), O && P?.triggers && W("triggers", P?.triggers), !A && I === "single_user" && W("rules.single_user", P?.rules?.single_user || void 0), !A && I === "users_from_list" && (W("rules.users_from_list", P?.rules?.users_from_list || void 0), W("usersFromListCount", P?.usersFromListCount || 1)), !A && I === "roles_from_list" && (W("rules.roles_from_list", P?.rules?.roles_from_list || void 0), W("rolesFromListCount", P?.rolesFromListCount || 1)), !A && I === "approval_chain" && W("rules.approval_chain", P?.rules?.approval_chain || void 0), A && P?.rules && W("rules", P?.rules), N(null), L(null), k(!1), j(!1), F(null), W("triggerType", null), W("scriptType", null);
|
|
251
|
+
}, Ie = !!M || !!I || O || A;
|
|
252
|
+
return /* @__PURE__ */ m(f, { children: [
|
|
253
|
+
/* @__PURE__ */ p(le, {
|
|
254
|
+
secondaryLevel: w || Ie,
|
|
255
|
+
title: M ? y._("Edit Condition") : O ? y._("Add Condition") : I ? y._("Edit Rule") : A ? y._("Add Rule") : w ? y._("Edit Approval Policy") : y._("Create Approval Policy"),
|
|
256
|
+
previousLevelTitle: (() => {
|
|
257
|
+
if (Ie) return w ? y._("Edit Approval Policy") : y._("Create Approval Policy");
|
|
258
|
+
})(),
|
|
259
|
+
closeSecondaryLevelDialog: Fe
|
|
260
|
+
}),
|
|
261
|
+
/* @__PURE__ */ p(fe, { children: /* @__PURE__ */ p(ge, {
|
|
262
|
+
...ke,
|
|
263
|
+
children: /* @__PURE__ */ p("form", {
|
|
264
|
+
id: Se,
|
|
265
|
+
noValidate: !0,
|
|
266
|
+
onSubmit: Ae((e) => {
|
|
267
|
+
let t = be(e);
|
|
268
|
+
if (w) {
|
|
269
|
+
Oe(i.id, t);
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
De({
|
|
273
|
+
...t,
|
|
274
|
+
object_type: e.object_type
|
|
275
|
+
});
|
|
276
|
+
}),
|
|
277
|
+
children: /* @__PURE__ */ m(pe, {
|
|
278
|
+
gap: 3,
|
|
279
|
+
children: [
|
|
280
|
+
(M || O) && /* @__PURE__ */ m(c, {
|
|
281
|
+
label: y._("Condition type"),
|
|
282
|
+
name: "triggerType",
|
|
283
|
+
control: U,
|
|
284
|
+
fullWidth: !0,
|
|
285
|
+
required: !0,
|
|
286
|
+
select: !0,
|
|
287
|
+
value: M || void 0,
|
|
288
|
+
disabled: !!M,
|
|
289
|
+
children: [
|
|
290
|
+
(!P?.triggers?.amount || M === "amount") && /* @__PURE__ */ p(_, {
|
|
291
|
+
value: "amount",
|
|
292
|
+
children: E("amount")
|
|
293
|
+
}),
|
|
294
|
+
(!P?.triggers?.counterpart_id || M === "counterpart_id") && /* @__PURE__ */ p(_, {
|
|
295
|
+
value: "counterpart_id",
|
|
296
|
+
children: E("counterpart_id")
|
|
297
|
+
}),
|
|
298
|
+
(!P?.triggers?.was_created_by_user_id || M === "was_created_by_user_id") && /* @__PURE__ */ p(_, {
|
|
299
|
+
value: "was_created_by_user_id",
|
|
300
|
+
children: E("was_created_by_user_id")
|
|
301
|
+
})
|
|
302
|
+
]
|
|
303
|
+
}),
|
|
304
|
+
(I || A) && /* @__PURE__ */ m(c, {
|
|
305
|
+
label: y._("Approval flow"),
|
|
306
|
+
name: "scriptType",
|
|
307
|
+
control: U,
|
|
308
|
+
fullWidth: !0,
|
|
309
|
+
required: !0,
|
|
310
|
+
select: !0,
|
|
311
|
+
value: I,
|
|
312
|
+
disabled: !!I,
|
|
313
|
+
children: [
|
|
314
|
+
(!P?.rules?.single_user || I === "single_user") && /* @__PURE__ */ p(_, {
|
|
315
|
+
value: "single_user",
|
|
316
|
+
children: y._("Single user")
|
|
317
|
+
}),
|
|
318
|
+
(!P?.rules?.users_from_list || I === "users_from_list") && /* @__PURE__ */ p(_, {
|
|
319
|
+
value: "users_from_list",
|
|
320
|
+
children: y._("Users from the list - Any")
|
|
321
|
+
}),
|
|
322
|
+
I === "roles_from_list" && /* @__PURE__ */ p(_, {
|
|
323
|
+
value: "roles_from_list",
|
|
324
|
+
children: y._("Any user that has user role")
|
|
325
|
+
}),
|
|
326
|
+
(!P?.rules?.approval_chain || I === "approval_chain") && /* @__PURE__ */ p(_, {
|
|
327
|
+
value: "approval_chain",
|
|
328
|
+
children: y._("Users from list - One by one")
|
|
329
|
+
})
|
|
330
|
+
]
|
|
331
|
+
}),
|
|
332
|
+
(M === "was_created_by_user_id" || O && Q === "was_created_by_user_id") && /* @__PURE__ */ p(s, {
|
|
333
|
+
control: U,
|
|
334
|
+
name: "triggers.was_created_by_user_id",
|
|
335
|
+
label: y._("Users")
|
|
336
|
+
}),
|
|
337
|
+
(M === "counterpart_id" || O && Q === "counterpart_id") && /* @__PURE__ */ p(ee, {
|
|
338
|
+
control: U,
|
|
339
|
+
name: "triggers.counterpart_id",
|
|
340
|
+
label: y._("Vendors"),
|
|
341
|
+
multiple: !0,
|
|
342
|
+
customerType: "vendor"
|
|
343
|
+
}),
|
|
344
|
+
(M === "amount" || O && Q === "amount") && /* @__PURE__ */ m(g, {
|
|
345
|
+
container: !0,
|
|
346
|
+
spacing: 2,
|
|
347
|
+
children: [
|
|
348
|
+
/* @__PURE__ */ p(g, {
|
|
349
|
+
item: !0,
|
|
350
|
+
xs: 4,
|
|
351
|
+
children: /* @__PURE__ */ m(c, {
|
|
352
|
+
label: y._("If amount is"),
|
|
353
|
+
name: "amountOperator",
|
|
354
|
+
control: U,
|
|
355
|
+
select: !0,
|
|
356
|
+
fullWidth: !0,
|
|
357
|
+
children: [
|
|
358
|
+
/* @__PURE__ */ p(_, {
|
|
359
|
+
value: ">",
|
|
360
|
+
children: y._("Greater than")
|
|
361
|
+
}),
|
|
362
|
+
/* @__PURE__ */ p(_, {
|
|
363
|
+
value: "<",
|
|
364
|
+
children: y._("Less than")
|
|
365
|
+
}),
|
|
366
|
+
/* @__PURE__ */ p(_, {
|
|
367
|
+
value: ">=",
|
|
368
|
+
children: y._("Greater than or equal to")
|
|
369
|
+
}),
|
|
370
|
+
/* @__PURE__ */ p(_, {
|
|
371
|
+
value: "<=",
|
|
372
|
+
children: y._("Less than or equal to")
|
|
373
|
+
}),
|
|
374
|
+
/* @__PURE__ */ p(_, {
|
|
375
|
+
value: "==",
|
|
376
|
+
children: y._("Equal to")
|
|
377
|
+
}),
|
|
378
|
+
/* @__PURE__ */ p(_, {
|
|
379
|
+
value: "range",
|
|
380
|
+
children: y._("In range")
|
|
381
|
+
})
|
|
382
|
+
]
|
|
383
|
+
})
|
|
384
|
+
}),
|
|
385
|
+
q === "range" ? /* @__PURE__ */ m(g, {
|
|
386
|
+
item: !0,
|
|
387
|
+
container: !0,
|
|
388
|
+
spacing: 2,
|
|
389
|
+
children: [/* @__PURE__ */ p(g, {
|
|
390
|
+
item: !0,
|
|
391
|
+
xs: 6,
|
|
392
|
+
children: /* @__PURE__ */ p(c, {
|
|
393
|
+
label: y._("From (including)"),
|
|
394
|
+
name: "amountRangeLeftValue",
|
|
395
|
+
control: U,
|
|
396
|
+
type: "number",
|
|
397
|
+
fullWidth: !0
|
|
398
|
+
})
|
|
399
|
+
}), /* @__PURE__ */ p(g, {
|
|
400
|
+
item: !0,
|
|
401
|
+
xs: 6,
|
|
402
|
+
children: /* @__PURE__ */ p(c, {
|
|
403
|
+
label: y._("To (including)"),
|
|
404
|
+
name: "amountRangeRightValue",
|
|
405
|
+
control: U,
|
|
406
|
+
type: "number",
|
|
407
|
+
fullWidth: !0
|
|
408
|
+
})
|
|
409
|
+
})]
|
|
410
|
+
}) : /* @__PURE__ */ p(g, {
|
|
411
|
+
item: !0,
|
|
412
|
+
xs: 4,
|
|
413
|
+
children: /* @__PURE__ */ p(c, {
|
|
414
|
+
label: y._("Amount"),
|
|
415
|
+
name: "amountValue",
|
|
416
|
+
control: U,
|
|
417
|
+
type: "number",
|
|
418
|
+
fullWidth: !0
|
|
419
|
+
})
|
|
420
|
+
}),
|
|
421
|
+
/* @__PURE__ */ p(g, {
|
|
422
|
+
item: !0,
|
|
423
|
+
xs: 4,
|
|
424
|
+
children: /* @__PURE__ */ p(se, {
|
|
425
|
+
name: "amountCurrency",
|
|
426
|
+
control: U,
|
|
427
|
+
showCodeOnly: !0
|
|
428
|
+
})
|
|
429
|
+
})
|
|
430
|
+
]
|
|
431
|
+
}),
|
|
432
|
+
(I === "single_user" || A && $ === "single_user") && /* @__PURE__ */ p(f, { children: /* @__PURE__ */ p(oe, {
|
|
433
|
+
control: U,
|
|
434
|
+
name: "rules.single_user",
|
|
435
|
+
label: y._("User allowed to approve")
|
|
436
|
+
}) }),
|
|
437
|
+
(I === "users_from_list" || A && $ === "users_from_list") && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(s, {
|
|
438
|
+
control: U,
|
|
439
|
+
name: "rules.users_from_list",
|
|
440
|
+
label: y._("Users allowed to approve")
|
|
441
|
+
}), /* @__PURE__ */ p(c, {
|
|
442
|
+
control: U,
|
|
443
|
+
label: y._("Minimum number of approvals required"),
|
|
444
|
+
name: "usersFromListCount",
|
|
445
|
+
type: "number",
|
|
446
|
+
required: !0,
|
|
447
|
+
inputProps: {
|
|
448
|
+
min: 1,
|
|
449
|
+
max: K?.users_from_list?.length || void 0
|
|
450
|
+
}
|
|
451
|
+
})] }),
|
|
452
|
+
(I === "roles_from_list" || A && $ === "roles_from_list") && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(ae, {
|
|
453
|
+
control: U,
|
|
454
|
+
name: "rules.roles_from_list",
|
|
455
|
+
label: y._("Any user that has user role")
|
|
456
|
+
}), /* @__PURE__ */ p(c, {
|
|
457
|
+
control: U,
|
|
458
|
+
label: y._("Minimum number of approvals required"),
|
|
459
|
+
name: "rolesFromListCount",
|
|
460
|
+
type: "number",
|
|
461
|
+
required: !0,
|
|
462
|
+
inputProps: { min: 1 }
|
|
463
|
+
})] }),
|
|
464
|
+
(I === "approval_chain" || A && $ === "approval_chain") && /* @__PURE__ */ p(s, {
|
|
465
|
+
control: U,
|
|
466
|
+
name: "rules.approval_chain",
|
|
467
|
+
label: y._("Users allowed to approve")
|
|
468
|
+
}),
|
|
469
|
+
!M && !I && !O && !A && /* @__PURE__ */ m(f, { children: [
|
|
470
|
+
/* @__PURE__ */ p(c, {
|
|
471
|
+
label: y._("Policy Name"),
|
|
472
|
+
name: "name",
|
|
473
|
+
control: U,
|
|
474
|
+
fullWidth: !0,
|
|
475
|
+
required: !0
|
|
476
|
+
}),
|
|
477
|
+
/* @__PURE__ */ p(c, {
|
|
478
|
+
label: y._("Description"),
|
|
479
|
+
name: "description",
|
|
480
|
+
control: U,
|
|
481
|
+
fullWidth: !0,
|
|
482
|
+
multiline: !0,
|
|
483
|
+
rows: 4
|
|
484
|
+
}),
|
|
485
|
+
/* @__PURE__ */ m(de, { children: [
|
|
486
|
+
/* @__PURE__ */ p(v, {
|
|
487
|
+
variant: "h5",
|
|
488
|
+
mt: 4,
|
|
489
|
+
mb: 1,
|
|
490
|
+
children: y._("Conditions")
|
|
491
|
+
}),
|
|
492
|
+
/* @__PURE__ */ p(v, {
|
|
493
|
+
variant: "body1",
|
|
494
|
+
mb: 1,
|
|
495
|
+
children: /* @__PURE__ */ p(me, {
|
|
496
|
+
id: "INKhSX",
|
|
497
|
+
components: { 0: /* @__PURE__ */ p("strong", {}) }
|
|
498
|
+
})
|
|
499
|
+
}),
|
|
500
|
+
/* @__PURE__ */ p(ne, {
|
|
501
|
+
triggers: Me,
|
|
502
|
+
onAddTrigger: () => {
|
|
503
|
+
k(!0), F({
|
|
504
|
+
triggers: { ...G("triggers") },
|
|
505
|
+
amountOperator: G("amountOperator"),
|
|
506
|
+
amountValue: G("amountValue"),
|
|
507
|
+
amountRangeLeftValue: G("amountRangeLeftValue"),
|
|
508
|
+
amountRangeRightValue: G("amountRangeRightValue"),
|
|
509
|
+
amountCurrency: G("amountCurrency")
|
|
510
|
+
});
|
|
511
|
+
},
|
|
512
|
+
onEditTrigger: (e) => {
|
|
513
|
+
N(e), F({
|
|
514
|
+
triggers: { ...G("triggers") },
|
|
515
|
+
amountOperator: G("amountOperator"),
|
|
516
|
+
amountValue: G("amountValue"),
|
|
517
|
+
amountRangeLeftValue: G("amountRangeLeftValue"),
|
|
518
|
+
amountRangeRightValue: G("amountRangeRightValue"),
|
|
519
|
+
amountCurrency: G("amountCurrency")
|
|
520
|
+
});
|
|
521
|
+
},
|
|
522
|
+
onDeleteTrigger: (e) => {
|
|
523
|
+
let t = { ...Me };
|
|
524
|
+
delete t[e], W("triggers", t), W("amountOperator", void 0), W("amountValue", void 0), W("amountRangeLeftValue", void 0), W("amountRangeRightValue", void 0), W("amountCurrency", void 0);
|
|
525
|
+
}
|
|
526
|
+
}),
|
|
527
|
+
/* @__PURE__ */ p(v, {
|
|
528
|
+
variant: "h5",
|
|
529
|
+
mt: 4,
|
|
530
|
+
mb: 1,
|
|
531
|
+
children: y._("Approval flow")
|
|
532
|
+
}),
|
|
533
|
+
/* @__PURE__ */ p(ie, {
|
|
534
|
+
rules: K,
|
|
535
|
+
usersFromListCount: Ne,
|
|
536
|
+
rolesFromListCount: Pe,
|
|
537
|
+
onAddRule: () => {
|
|
538
|
+
j(!0), F({
|
|
539
|
+
rules: { ...G("rules") },
|
|
540
|
+
usersFromListCount: G("usersFromListCount"),
|
|
541
|
+
rolesFromListCount: G("rolesFromListCount")
|
|
542
|
+
});
|
|
543
|
+
},
|
|
544
|
+
onEditRule: (e) => {
|
|
545
|
+
L(e), F({
|
|
546
|
+
rules: { ...G("rules") },
|
|
547
|
+
usersFromListCount: G("usersFromListCount"),
|
|
548
|
+
rolesFromListCount: G("rolesFromListCount")
|
|
549
|
+
});
|
|
550
|
+
},
|
|
551
|
+
onDeleteRule: (e) => {
|
|
552
|
+
let t = { ...K };
|
|
553
|
+
delete t[e], W("rules", t), W("usersFromListCount", void 0), W("rolesFromListCount", void 0);
|
|
554
|
+
}
|
|
555
|
+
})
|
|
556
|
+
] })
|
|
557
|
+
] })
|
|
558
|
+
]
|
|
559
|
+
})
|
|
560
|
+
})
|
|
561
|
+
}) }),
|
|
562
|
+
/* @__PURE__ */ p(ce, {
|
|
563
|
+
primaryButton: M || I || O || A ? {
|
|
564
|
+
label: M ? y._("Update") : y._("Add"),
|
|
565
|
+
onClick: (e) => {
|
|
566
|
+
e?.preventDefault(), N(null), L(null), k(!1), j(!1), W("triggerType", null), W("scriptType", null);
|
|
567
|
+
}
|
|
568
|
+
} : {
|
|
569
|
+
label: y._("Save"),
|
|
570
|
+
formId: Se,
|
|
571
|
+
isLoading: Ee.isPending || Te.isPending
|
|
572
|
+
},
|
|
573
|
+
cancelButton: { onClick: M || I || O || A ? Fe : w ? () => a(!1) : xe?.onClose }
|
|
574
|
+
})
|
|
575
|
+
] });
|
|
9
576
|
};
|
|
10
577
|
//#endregion
|
|
11
|
-
export {
|
|
578
|
+
export { y as ApprovalPolicyForm };
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var e = [
|
|
3
|
-
"document_type",
|
|
4
|
-
"department",
|
|
5
|
-
"project",
|
|
6
|
-
"cost_center",
|
|
7
|
-
"vendor_type",
|
|
8
|
-
"payment_method",
|
|
9
|
-
"approval_status"
|
|
10
|
-
], t = (e) => ({
|
|
11
|
-
document_type: e._("Document Type"),
|
|
12
|
-
department: e._("Department"),
|
|
13
|
-
project: e._("Project"),
|
|
14
|
-
cost_center: e._("Cost Center"),
|
|
15
|
-
vendor_type: e._("Vendor Type"),
|
|
16
|
-
payment_method: e._("Payment Method"),
|
|
17
|
-
approval_status: e._("Approval Status")
|
|
18
|
-
});
|
|
19
|
-
function n(e, n) {
|
|
20
|
-
return e ? t(n)[e] : "";
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { n as getTagCategoryLabel, e as tagCategories };
|
|
1
|
+
import "./index308.js";
|