@tesouro/embedded-components-react 0.5.138 → 0.5.141
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/data-access/dist/lib/rest/zod.gen.js +855 -831
- 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
|
@@ -1,22 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useMoniteContext as t } from "./index46.js";
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
4
|
-
import { useLingui as r } from "@lingui/react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js
|
|
6
|
-
var i = (i, a, o, s) => {
|
|
7
|
-
let { api: c, queryClient: l } = t(), { i18n: u } = r();
|
|
8
|
-
return c.finops.postApprovalRequestsIdReject.useMutation({ path: { approval_request_id: i } }, {
|
|
9
|
-
onSuccess: () => {
|
|
10
|
-
if (c.finops.getApprovalRequests.invalidateQueries(l), n.success(u._("Payable “{document_id}” has been rejected", { document_id: s })), o) return a?.(o ?? ""), new Promise((e) => {
|
|
11
|
-
setTimeout(() => {
|
|
12
|
-
Promise.all([c.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: o ?? "" } } }, l), c.finops.getPayables.invalidateQueries(l)]).then(() => e());
|
|
13
|
-
}, 500);
|
|
14
|
-
});
|
|
15
|
-
},
|
|
16
|
-
onError: (t) => {
|
|
17
|
-
n.error(e(u, t));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { i as useRejectApprovalRequest };
|
|
1
|
+
import "./index399.js";
|
|
@@ -1,20 +1,162 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { useCounterpartById as e } from "./index47.js";
|
|
2
|
+
import { getCounterpartName as t } from "./index52.js";
|
|
3
|
+
import "./index144.js";
|
|
4
|
+
import { isBillOverdue as n } from "./index229.js";
|
|
5
|
+
import { PayableStatusChip as r } from "./index230.js";
|
|
6
|
+
import { isPayableInOCRProcessing as i } from "./index391.js";
|
|
7
|
+
import "./index395.js";
|
|
8
|
+
import { DropdownMenu as a } from "./index396.js";
|
|
9
|
+
import { FullScreenModalHeader as o } from "./index397.js";
|
|
10
|
+
import "./index398.js";
|
|
11
|
+
import { PayableDetailsCancelModal as s } from "./index399.js";
|
|
12
|
+
import "./index400.js";
|
|
13
|
+
import { useState as c } from "react";
|
|
14
|
+
import { Wallet as l } from "lucide-react";
|
|
15
|
+
import { Fragment as u, jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
|
|
16
|
+
import { Box as p, Button as m } from "@mui/material";
|
|
17
|
+
import { useLingui as h } from "@lingui/react";
|
|
5
18
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js
|
|
6
|
-
var
|
|
7
|
-
let {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
var g = ({ payable: g, permissions: _, setEdit: v, isEdit: y, submitInvoice: b, rejectInvoice: x, approveInvoice: S, forceRejectInvoice: C, forceApproveInvoice: w, cancelInvoice: T, reopenInvoice: E, deleteInvoice: D, payInvoice: O, payableDetailsFormId: k, onClose: A, modalComponent: j, showPayButton: M }) => {
|
|
20
|
+
let { i18n: N } = h(), { data: P } = e(g?.counterpart_id), [F, I] = c(!1), L = t(P), R = n(g?.status ?? "draft", g?.due_date), z = {
|
|
21
|
+
edit: {
|
|
22
|
+
variant: "outlined",
|
|
23
|
+
onClick: () => v(!0),
|
|
24
|
+
children: N._("Edit")
|
|
25
|
+
},
|
|
26
|
+
save: {
|
|
27
|
+
variant: "contained",
|
|
28
|
+
form: k,
|
|
29
|
+
type: "submit",
|
|
30
|
+
children: N._("Save")
|
|
31
|
+
},
|
|
32
|
+
cancelEdit: {
|
|
33
|
+
variant: "outlined",
|
|
34
|
+
onClick: () => {
|
|
35
|
+
v(!1), !g && A && A();
|
|
36
|
+
},
|
|
37
|
+
children: N._("Cancel")
|
|
38
|
+
},
|
|
39
|
+
submit: {
|
|
40
|
+
variant: "contained",
|
|
41
|
+
onClick: () => b(),
|
|
42
|
+
children: N._("Submit")
|
|
43
|
+
},
|
|
44
|
+
reject: {
|
|
45
|
+
variant: "text",
|
|
46
|
+
color: "error",
|
|
47
|
+
onClick: () => x(),
|
|
48
|
+
children: N._("Reject")
|
|
49
|
+
},
|
|
50
|
+
reopen: {
|
|
51
|
+
variant: "text",
|
|
52
|
+
color: "error",
|
|
53
|
+
onClick: () => E(),
|
|
54
|
+
children: N._("Reopen")
|
|
55
|
+
},
|
|
56
|
+
approve: {
|
|
57
|
+
variant: "contained",
|
|
58
|
+
onClick: () => S(),
|
|
59
|
+
children: N._("Approve")
|
|
60
|
+
},
|
|
61
|
+
cancel: {
|
|
62
|
+
variant: "text",
|
|
63
|
+
color: "error",
|
|
64
|
+
onClick: () => I(!0),
|
|
65
|
+
children: N._("Cancel bill")
|
|
66
|
+
},
|
|
67
|
+
delete: {
|
|
68
|
+
variant: "text",
|
|
69
|
+
color: "error",
|
|
70
|
+
onClick: () => {
|
|
71
|
+
D(), A?.();
|
|
72
|
+
},
|
|
73
|
+
children: N._("Delete bill")
|
|
74
|
+
},
|
|
75
|
+
pay: {
|
|
76
|
+
variant: "contained",
|
|
77
|
+
size: "small",
|
|
78
|
+
onClick: () => O(),
|
|
79
|
+
disabled: !M,
|
|
80
|
+
startIcon: /* @__PURE__ */ d(l, { size: 14 }),
|
|
81
|
+
children: N._("Pay")
|
|
82
|
+
},
|
|
83
|
+
forceApprove: {
|
|
84
|
+
variant: "outlined",
|
|
85
|
+
onClick: () => w(),
|
|
86
|
+
children: N._("Force Approve")
|
|
87
|
+
},
|
|
88
|
+
forceReject: {
|
|
89
|
+
variant: "outlined",
|
|
90
|
+
color: "error",
|
|
91
|
+
onClick: () => C(),
|
|
92
|
+
children: N._("Force Reject")
|
|
16
93
|
}
|
|
17
|
-
});
|
|
94
|
+
}, B = _.includes("cancel"), V = g?.document_id ? L ? `${N._("Bill")} #${g.document_id} ${N._("from")} ${L}` : y ? `${N._("Edit bill")} #${g.document_id}` : `${N._("Bill")} #${g.document_id}` : N._("New incoming invoice"), H = null;
|
|
95
|
+
if (!g || !i(g)) {
|
|
96
|
+
let e = _.filter((e) => e === "approve" || e === "reject"), t = _.filter((e) => e === "forceApprove" || e === "forceReject"), n = ["forceApprove", "forceReject"].filter((e) => t.includes(e)), r = n.map((e) => {
|
|
97
|
+
let { children: t, onClick: n } = z[e];
|
|
98
|
+
return {
|
|
99
|
+
key: e,
|
|
100
|
+
label: t,
|
|
101
|
+
onClick: n,
|
|
102
|
+
sx: { color: e === "forceReject" ? "error.main" : "text.primary" }
|
|
103
|
+
};
|
|
104
|
+
}), i = _.filter((e) => ![
|
|
105
|
+
"approve",
|
|
106
|
+
"reject",
|
|
107
|
+
"forceApprove",
|
|
108
|
+
"forceReject"
|
|
109
|
+
].includes(e));
|
|
110
|
+
H = /* @__PURE__ */ f(p, {
|
|
111
|
+
sx: {
|
|
112
|
+
display: "flex",
|
|
113
|
+
alignItems: "center",
|
|
114
|
+
gap: 1
|
|
115
|
+
},
|
|
116
|
+
children: [
|
|
117
|
+
i.map((e) => {
|
|
118
|
+
let { children: t, ...n } = z[e];
|
|
119
|
+
return /* @__PURE__ */ d(m, {
|
|
120
|
+
...n,
|
|
121
|
+
children: t
|
|
122
|
+
}, e);
|
|
123
|
+
}),
|
|
124
|
+
e.length > 0 && e.map((e) => {
|
|
125
|
+
let { children: t, ...n } = z[e];
|
|
126
|
+
return /* @__PURE__ */ d(m, {
|
|
127
|
+
...n,
|
|
128
|
+
children: t
|
|
129
|
+
}, e);
|
|
130
|
+
}),
|
|
131
|
+
n.length > 0 && /* @__PURE__ */ d(a, { items: r })
|
|
132
|
+
]
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return /* @__PURE__ */ f(u, { children: [
|
|
136
|
+
/* @__PURE__ */ d(o, {
|
|
137
|
+
className: "Monite-PayableDetails-Header",
|
|
138
|
+
title: V,
|
|
139
|
+
statusElement: /* @__PURE__ */ f("div", {
|
|
140
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
141
|
+
children: [/* @__PURE__ */ d(r, {
|
|
142
|
+
status: g?.status ?? "draft",
|
|
143
|
+
dueDate: g?.due_date
|
|
144
|
+
}), R && /* @__PURE__ */ d(r, {
|
|
145
|
+
status: g?.status ?? "draft",
|
|
146
|
+
dueDate: g?.due_date,
|
|
147
|
+
showOverdueBadge: !0
|
|
148
|
+
})]
|
|
149
|
+
}),
|
|
150
|
+
actions: H,
|
|
151
|
+
closeButtonTooltip: N._("Close payable details")
|
|
152
|
+
}),
|
|
153
|
+
j,
|
|
154
|
+
B && /* @__PURE__ */ d(s, {
|
|
155
|
+
isOpen: F,
|
|
156
|
+
handleCloseModal: () => I(!1),
|
|
157
|
+
handleConfirmation: T
|
|
158
|
+
})
|
|
159
|
+
] });
|
|
18
160
|
};
|
|
19
161
|
//#endregion
|
|
20
|
-
export {
|
|
162
|
+
export { g as PayableDetailsHeader };
|
|
@@ -1,193 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import { useMoniteContext as t } from "./index46.js";
|
|
4
|
-
import { useCurrencies as n } from "./index62.js";
|
|
5
|
-
import { useEntityUserByAuthToken as r } from "./index135.js";
|
|
6
|
-
import { usePayablePaymentIntentsAndRecords as i } from "./index140.js";
|
|
7
|
-
import "./index222.js";
|
|
8
|
-
import { useUserPermissions as a } from "./index118.js";
|
|
9
|
-
import { useGetPayableCounterpart as o } from "./index363.js";
|
|
10
|
-
import { usePayButtonVisibility as s } from "./index366.js";
|
|
11
|
-
import { useGetPayableById as c } from "./index368.js";
|
|
12
|
-
import { useGetPayableLineItems as l } from "./index369.js";
|
|
13
|
-
import { useGetPayableApprovalRequests as u } from "./index370.js";
|
|
14
|
-
import { useCreatePayable as ee } from "./index371.js";
|
|
15
|
-
import { useUpdatePayable as d } from "./index372.js";
|
|
16
|
-
import { useCreatePayableLineItem as te } from "./index373.js";
|
|
17
|
-
import { useUpdatePayableLineItem as ne } from "./index374.js";
|
|
18
|
-
import { useDeletePayableLineItem as re } from "./index375.js";
|
|
19
|
-
import { useCancelPayableById as ie } from "./index376.js";
|
|
20
|
-
import { useSubmitPayableForApproval as ae } from "./index377.js";
|
|
21
|
-
import { useForceRejectPayable as oe } from "./index378.js";
|
|
22
|
-
import { useForceApprovePayable as se } from "./index379.js";
|
|
23
|
-
import { useReopenPayable as ce } from "./index380.js";
|
|
24
|
-
import { useDeletePayable as le } from "./index381.js";
|
|
25
|
-
import { prepareLineItemSubmit as f } from "./index384.js";
|
|
26
|
-
import { usePaymentHandler as ue } from "./index399.js";
|
|
27
|
-
import { useRejectApprovalRequest as de } from "./index400.js";
|
|
28
|
-
import { useApproveApprovalRequest as fe } from "./index401.js";
|
|
29
|
-
import { isPayableInOCRProcessing as p } from "./index402.js";
|
|
30
|
-
import { useCallback as m, useEffect as h, useMemo as g, useState as pe } from "react";
|
|
31
|
-
import { toast as _ } from "react-hot-toast";
|
|
32
|
-
import { useLingui as me } from "@lingui/react";
|
|
1
|
+
import { useMoniteContext as e } from "./index46.js";
|
|
2
|
+
import { useCounterpartsBankAccountsList as t } from "./index231.js";
|
|
33
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js
|
|
34
|
-
function
|
|
35
|
-
let { api:
|
|
36
|
-
payable: N,
|
|
37
|
-
payableRecentPaymentRecordByIntent: Ce?.[v ?? ""] || []
|
|
38
|
-
}), { handlePay: L, modalComponent: Ee } = ue(v, N?.counterpart_id, () => {
|
|
39
|
-
P(), I();
|
|
40
|
-
}, Te.idPaymentIntentInCreated), { counterpart: De, isCounterpartAIMatched: Oe, AISuggestions: ke } = o({ payable: N });
|
|
41
|
-
h(() => {
|
|
42
|
-
if (M) return () => void C.finops.getPayables.invalidateQueries(w);
|
|
43
|
-
}, [
|
|
44
|
-
C,
|
|
45
|
-
M,
|
|
46
|
-
w
|
|
47
|
-
]);
|
|
48
|
-
let { data: Ae } = l(v ?? ""), R = Ae?.data, { data: z } = u(v ?? "", F), B = z?.data?.find((e) => e.status === "waiting" && !e.approved_by?.includes(O?.id ?? "") && e.user_ids?.includes(O?.id ?? "")), V = T.has(e.PayableWriteOrg), H = T.has(e.PayableWriteOrg), U = T.has(e.PayableWriteOrg), W = T.has(e.PayableApproveOrg), G = T.has(e.PayablePayOrg), K = T.has(e.PayableWriteOrg), q = T.has(e.PayableWriteOrg), J = ee(), Y = d(), X = te(v ?? ""), je = ne(v ?? ""), Me = re(v ?? ""), { mutateAsync: Ne, isPending: Pe } = ie(v ?? "", _e), { submitForApproval: Fe, isPending: Z } = ae({
|
|
49
|
-
payableId: v ?? "",
|
|
50
|
-
AISuggestions: ke?.suggested_counterpart,
|
|
51
|
-
isCounterpartAIMatched: Oe,
|
|
52
|
-
counterpartId: De?.id,
|
|
53
|
-
onSubmitted: ve
|
|
54
|
-
}), { mutateAsync: Ie, isPending: Le } = de(B?.id ?? "", b, v, N?.document_id), { mutateAsync: Re, isPending: ze } = fe(B?.id ?? "", x, v, N?.document_id), { mutateAsync: Be, isPending: Ve } = oe(v ?? "", b), { mutateAsync: He, isPending: Q } = se(v ?? "", x), { mutateAsync: Ue, isPending: We } = ce(v ?? "", ye), { mutateAsync: Ge } = le(v ?? "", be), Ke = J.isPending || Y.isPending || Pe || Z || Ve || Q || We || Le || ze, qe = J.isPending || Y.isPending || Z, $ = m(() => T.has(e.PayableApproveOrg), [T]), Je = g(() => {
|
|
55
|
-
if (!v) return ["cancelEdit", "save"];
|
|
56
|
-
if (F === "draft") return k ? H ? ["cancelEdit", "save"] : [] : [...V ? ["cancel"] : [], ...H ? ["edit"] : []];
|
|
57
|
-
if (F === "new") return k ? H ? ["cancelEdit", "save"] : [] : [
|
|
58
|
-
...V ? ["cancel"] : [],
|
|
59
|
-
...H ? ["edit"] : [],
|
|
60
|
-
...U ? ["submit"] : []
|
|
61
|
-
];
|
|
62
|
-
if (F === "approve_in_progress") {
|
|
63
|
-
let e = (z?.data?.length ?? 0) > 0 && z?.data?.[0]?.status === "waiting" && B !== void 0, t = $();
|
|
64
|
-
return [...e ? ["reject", "approve"] : [], ...W && t ? ["forceReject", "forceApprove"] : []];
|
|
65
|
-
}
|
|
66
|
-
return (F === "waiting_to_be_paid" || F === "partially_paid") && G && Number(N?.amount_to_pay) > 0 ? ["pay"] : F === "rejected" && K ? ["reopen"] : F === "canceled" && q ? ["delete"] : [];
|
|
67
|
-
}, [
|
|
68
|
-
v,
|
|
69
|
-
F,
|
|
70
|
-
k,
|
|
71
|
-
H,
|
|
72
|
-
V,
|
|
73
|
-
U,
|
|
74
|
-
W,
|
|
75
|
-
K,
|
|
76
|
-
q,
|
|
77
|
-
G,
|
|
78
|
-
z,
|
|
79
|
-
B,
|
|
80
|
-
N?.amount_to_pay,
|
|
81
|
-
$
|
|
82
|
-
]), Ye = async (e, t) => {
|
|
83
|
-
let n = await J.mutateAsync({ ...e }, { onSuccess: (e) => {
|
|
84
|
-
_.success(E._("Payable “{createdPayableDocument_id}” has been created", { createdPayableDocument_id: e.document_id })), C.finops.getCounterparts.invalidateQueries({ parameters: { query: { is_vendor: !0 } } }, w);
|
|
85
|
-
} });
|
|
86
|
-
if (t) {
|
|
87
|
-
let e = [];
|
|
88
|
-
t?.forEach((t) => {
|
|
89
|
-
n.currency && !t.id && e.push(X.mutateAsync({
|
|
90
|
-
path: { payable_id: n.id },
|
|
91
|
-
body: f(n.currency, t, D, { allowLedgerUpdate: !1 })
|
|
92
|
-
}));
|
|
93
|
-
}), await Promise.all(e);
|
|
94
|
-
}
|
|
95
|
-
await Promise.all([
|
|
96
|
-
C.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: n.id } } }, w),
|
|
97
|
-
C.finops.getPayables.invalidateQueries(w),
|
|
98
|
-
C.finops.getPayablesIdLineItems.invalidateQueries({ parameters: { path: { payable_id: n.id } } }, w)
|
|
99
|
-
]), k && A(!1), y?.(n.id);
|
|
100
|
-
}, Xe = async (e, t, n, r) => {
|
|
101
|
-
let i = await Y.mutateAsync({
|
|
102
|
-
path: { payable_id: e },
|
|
103
|
-
body: t
|
|
104
|
-
}, { onSuccess: (e) => {
|
|
105
|
-
_.success(E._("Payable “{updatedPayableDocument_id}” has been updated", { updatedPayableDocument_id: e.document_id }));
|
|
106
|
-
} });
|
|
107
|
-
if (n && r) {
|
|
108
|
-
let e = [];
|
|
109
|
-
n?.forEach((t) => {
|
|
110
|
-
i.currency && !t.id && e.push(X.mutateAsync({
|
|
111
|
-
path: { payable_id: i.id },
|
|
112
|
-
body: f(i.currency, t, D)
|
|
113
|
-
}));
|
|
114
|
-
}), r?.lineItems?.forEach((t, r) => {
|
|
115
|
-
if (!t) return;
|
|
116
|
-
let { id: a, ...o } = t, s = Object.values(o).some((e) => e), c = n[r]?.id, l = n[r], u = !a && !!s && !!c && !!l;
|
|
117
|
-
i.currency && u && e.push(je.mutateAsync({
|
|
118
|
-
path: {
|
|
119
|
-
payable_id: i.id,
|
|
120
|
-
line_item_id: c
|
|
121
|
-
},
|
|
122
|
-
body: f(i.currency, l, D, {
|
|
123
|
-
allowLedgerUpdate: he && !!o.ledger_account_id,
|
|
124
|
-
previous: R?.find((e) => e.id === c)?.ledger_account_id
|
|
125
|
-
})
|
|
126
|
-
}));
|
|
127
|
-
}), R?.forEach((t) => {
|
|
128
|
-
n?.find((e) => e.id === t.id) || e.push(Me.mutateAsync({ path: {
|
|
129
|
-
payable_id: i.id,
|
|
130
|
-
line_item_id: t.id
|
|
131
|
-
} }));
|
|
132
|
-
}), await Promise.all(e);
|
|
133
|
-
}
|
|
134
|
-
await C.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: i.id } } }, w), k && A(!1), y?.(e);
|
|
135
|
-
}, Ze = async (e, t) => {
|
|
136
|
-
let n = t.map((e) => e.id);
|
|
137
|
-
await Y.mutateAsync({
|
|
138
|
-
path: { payable_id: e },
|
|
139
|
-
body: { tag_ids: n }
|
|
140
|
-
}, { onSuccess: (e) => {
|
|
141
|
-
C.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: e.id } } }, w);
|
|
142
|
-
} });
|
|
143
|
-
}, Qe = m(() => {
|
|
144
|
-
if (N) {
|
|
145
|
-
if (!S) return L();
|
|
146
|
-
if (S?.length < 2) return S(N.id);
|
|
147
|
-
S(N.id, void 0, {
|
|
148
|
-
resolve: (e) => {
|
|
149
|
-
e?.showToast && _.success(E._("Payment flow started")), P(), I();
|
|
150
|
-
},
|
|
151
|
-
reject: (e, t) => {
|
|
152
|
-
t?.showToast && _.error(E._("Payment failed or cancelled")), P(), I();
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
}, [
|
|
157
|
-
E,
|
|
158
|
-
N,
|
|
159
|
-
L,
|
|
160
|
-
S,
|
|
161
|
-
P,
|
|
162
|
-
I
|
|
163
|
-
]);
|
|
4
|
+
function n({ currentCounterpartId: n, payableId: r }) {
|
|
5
|
+
let { api: i } = e();
|
|
164
6
|
return {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
payableQueryError: xe,
|
|
168
|
-
isEdit: k,
|
|
169
|
-
permissions: Je,
|
|
170
|
-
lineItems: R,
|
|
171
|
-
showPayButton: we,
|
|
172
|
-
currentUserApprovalRequest: B,
|
|
173
|
-
actions: {
|
|
174
|
-
setEdit: A,
|
|
175
|
-
createInvoice: Ye,
|
|
176
|
-
saveInvoice: Xe,
|
|
177
|
-
submitInvoice: Fe,
|
|
178
|
-
rejectInvoice: Ie,
|
|
179
|
-
approveInvoice: Re,
|
|
180
|
-
forceRejectInvoice: Be,
|
|
181
|
-
forceApproveInvoice: He,
|
|
182
|
-
reopenInvoice: Ue,
|
|
183
|
-
cancelInvoice: Ne,
|
|
184
|
-
deleteInvoice: Ge,
|
|
185
|
-
payInvoice: Qe,
|
|
186
|
-
handlePay: L,
|
|
187
|
-
updateTags: Ze,
|
|
188
|
-
modalComponent: Ee
|
|
189
|
-
}
|
|
7
|
+
counterpartBankAccountQuery: t(n),
|
|
8
|
+
lineItemsQuery: i.finops.getPayablesIdLineItems.useQuery({ path: { payable_id: r } })
|
|
190
9
|
};
|
|
191
10
|
}
|
|
192
11
|
//#endregion
|
|
193
|
-
export {
|
|
12
|
+
export { n as usePayableDetailsInfo };
|
|
@@ -1,102 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import { useMemo as i, useState as a } from "react";
|
|
8
|
-
import { Fragment as o, jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
9
|
-
import { toast as l } from "react-hot-toast";
|
|
10
|
-
import { Box as u, Button as d, CircularProgress as f, Typography as p, alpha as m, useTheme as h } from "@mui/material";
|
|
11
|
-
import { useLingui as g } from "@lingui/react";
|
|
12
|
-
import _ from "@mui/icons-material/AttachFile";
|
|
13
|
-
import v from "@mui/icons-material/CloudUploadOutlined";
|
|
1
|
+
import { getIndividualName as e, getUserDisplayName as t } from "./index15.js";
|
|
2
|
+
import "./index18.js";
|
|
3
|
+
import { UserAvatar as n } from "./index345.js";
|
|
4
|
+
import { useMemo as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Box as o, Typography as s } from "@mui/material";
|
|
14
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js
|
|
15
|
-
var
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
onError: () => {}
|
|
19
|
-
}), A = i(() => ({
|
|
20
|
-
border: 2,
|
|
21
|
-
borderRadius: 2,
|
|
22
|
-
borderStyle: "dashed",
|
|
23
|
-
borderColor: "primary.main",
|
|
24
|
-
backgroundColor: m(C.palette.primary.main, .05)
|
|
25
|
-
}), [C.palette.primary.main]), j = (e) => {
|
|
26
|
-
e.preventDefault(), O(!0);
|
|
27
|
-
}, M = (e) => {
|
|
28
|
-
e.preventDefault(), O(!1);
|
|
29
|
-
}, N = (e) => {
|
|
30
|
-
e.preventDefault(), O(!1);
|
|
31
|
-
let t = Array.from(e.dataTransfer.files)[0];
|
|
32
|
-
t && P(t);
|
|
33
|
-
}, P = (t) => {
|
|
34
|
-
let n = E(t);
|
|
35
|
-
if (n) {
|
|
36
|
-
l.error(n);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
y && k.mutate({ file: t }, {
|
|
40
|
-
onSuccess: () => {
|
|
41
|
-
l.success(b._("File successfully attached"));
|
|
42
|
-
},
|
|
43
|
-
onError: (t) => {
|
|
44
|
-
l.error(e(b, t));
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
return k.isPending ? /* @__PURE__ */ s(r, { children: /* @__PURE__ */ s(f, {}) }) : /* @__PURE__ */ s(u, {
|
|
49
|
-
className: "Monite-PayableDetailsAttachFile",
|
|
8
|
+
var c = ({ user: c, showUserEmail: l = !1, showAvatar: u = !0, avatarSize: d = 24, variant: f = "inline", typographyVariant: p = "body2", sx: m }) => {
|
|
9
|
+
let h = r(() => t(c, l), [c, l]), g = r(() => e(c.first_name || "", c.last_name || ""), [c.first_name, c.last_name]);
|
|
10
|
+
return f === "stacked" ? /* @__PURE__ */ a(o, {
|
|
50
11
|
sx: {
|
|
51
|
-
width: "100%",
|
|
52
|
-
height: "100%",
|
|
53
12
|
display: "flex",
|
|
54
13
|
flexDirection: "column",
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
...
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
gap: 1,
|
|
16
|
+
...m
|
|
17
|
+
},
|
|
18
|
+
children: [u && /* @__PURE__ */ i(n, {
|
|
19
|
+
sx: {
|
|
20
|
+
width: d,
|
|
21
|
+
height: d
|
|
22
|
+
},
|
|
23
|
+
alt: g,
|
|
24
|
+
fileId: c.userpic_file_id
|
|
25
|
+
}), /* @__PURE__ */ i(s, {
|
|
26
|
+
variant: p,
|
|
27
|
+
title: h ?? "",
|
|
28
|
+
sx: {
|
|
29
|
+
overflow: "hidden",
|
|
30
|
+
textOverflow: "ellipsis",
|
|
31
|
+
whiteSpace: "nowrap",
|
|
32
|
+
textAlign: "center"
|
|
33
|
+
},
|
|
34
|
+
children: h ?? ""
|
|
35
|
+
})]
|
|
36
|
+
}) : /* @__PURE__ */ a(o, {
|
|
37
|
+
sx: {
|
|
38
|
+
display: "flex",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
gap: 1,
|
|
41
|
+
...m
|
|
58
42
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}),
|
|
77
|
-
/* @__PURE__ */ s(p, {
|
|
78
|
-
variant: "h3",
|
|
79
|
-
sx: { marginBottom: 1 },
|
|
80
|
-
children: b._("Attach a file")
|
|
81
|
-
}),
|
|
82
|
-
/* @__PURE__ */ s(p, { children: b._("This invoice doesn't have a file attached.") }),
|
|
83
|
-
/* @__PURE__ */ s(p, {
|
|
84
|
-
sx: { marginBottom: 2 },
|
|
85
|
-
children: b._("Drag & Drop it here to save for administrative purposes.")
|
|
86
|
-
}),
|
|
87
|
-
/* @__PURE__ */ s(d, {
|
|
88
|
-
variant: "outlined",
|
|
89
|
-
component: "label",
|
|
90
|
-
onClick: T,
|
|
91
|
-
children: b._("Choose from device")
|
|
92
|
-
}),
|
|
93
|
-
/* @__PURE__ */ s(w, { onChange: (e) => {
|
|
94
|
-
let t = e.target.files ? e.target.files[0] : null;
|
|
95
|
-
t && P(t);
|
|
96
|
-
} })
|
|
97
|
-
] })
|
|
98
|
-
})
|
|
43
|
+
children: [u && /* @__PURE__ */ i(n, {
|
|
44
|
+
sx: {
|
|
45
|
+
width: d,
|
|
46
|
+
height: d
|
|
47
|
+
},
|
|
48
|
+
alt: g,
|
|
49
|
+
fileId: c.userpic_file_id
|
|
50
|
+
}), /* @__PURE__ */ i(s, {
|
|
51
|
+
variant: p,
|
|
52
|
+
title: h ?? "",
|
|
53
|
+
sx: {
|
|
54
|
+
overflow: "hidden",
|
|
55
|
+
textOverflow: "ellipsis",
|
|
56
|
+
whiteSpace: "nowrap"
|
|
57
|
+
},
|
|
58
|
+
children: h ?? ""
|
|
59
|
+
})]
|
|
99
60
|
});
|
|
100
61
|
};
|
|
101
62
|
//#endregion
|
|
102
|
-
export {
|
|
63
|
+
export { c as UserDisplayCell };
|
|
@@ -1 +1,47 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { createBaseApprovalStep as e, createChainApprovalStep as t, extractApprovalCalls as n, extractItemsFromScriptStep as r, findRoleApprovalCall as i, findUserApprovalCall as a, getApprovalRuleLabel as o, processChainApprovalCalls as s, resolveStepForCall as c } from "./index322.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js
|
|
3
|
+
var l = class {
|
|
4
|
+
policyScript;
|
|
5
|
+
requests;
|
|
6
|
+
i18n;
|
|
7
|
+
constructor(e, t, n) {
|
|
8
|
+
this.policyScript = e, this.requests = t, this.i18n = n;
|
|
9
|
+
}
|
|
10
|
+
processApprovalItem(r, l) {
|
|
11
|
+
let u = n(r), d = a(u), f = i(u), p = o(d, f, this.i18n);
|
|
12
|
+
if (u.length > 1 && d) {
|
|
13
|
+
let { allChainUserIds: e, allChainRequests: n } = s(u, this.requests), r = this.i18n._("All users from the list");
|
|
14
|
+
return t(e, n, l, r);
|
|
15
|
+
}
|
|
16
|
+
{
|
|
17
|
+
let t = u[0];
|
|
18
|
+
if (t) {
|
|
19
|
+
let n = c(t, this.requests);
|
|
20
|
+
return e(n, l, p);
|
|
21
|
+
}
|
|
22
|
+
return e({
|
|
23
|
+
assignees: [],
|
|
24
|
+
actualAssignees: [],
|
|
25
|
+
relatedRequests: [],
|
|
26
|
+
stepStatus: "waiting",
|
|
27
|
+
approvalRequestId: void 0,
|
|
28
|
+
approvedBy: void 0,
|
|
29
|
+
objectId: void 0,
|
|
30
|
+
rejectedBy: void 0,
|
|
31
|
+
requiredApprovalCount: 1
|
|
32
|
+
}, l, p);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
buildCompleteSteps() {
|
|
36
|
+
let e = [], t = 1;
|
|
37
|
+
return this.policyScript.forEach((n) => {
|
|
38
|
+
let i = r(n);
|
|
39
|
+
i.length > 0 && (i.forEach((n) => {
|
|
40
|
+
let r = this.processApprovalItem(n, t);
|
|
41
|
+
e.push(r);
|
|
42
|
+
}), t++);
|
|
43
|
+
}), e;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { l as ApprovalStepResolver };
|
|
@@ -1 +1,51 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useMoniteContext as e } from "./index46.js";
|
|
2
|
+
import { extractStructureItemsFromScriptStep as t, findUserApprovalCall as n, processApprovalStructure as r } from "./index322.js";
|
|
3
|
+
import { ApprovalStepResolver as i } from "./index405.js";
|
|
4
|
+
import { useMemo as a } from "react";
|
|
5
|
+
import { useLingui as o } from "@lingui/react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js
|
|
7
|
+
function s(s, c, l = "desc") {
|
|
8
|
+
let { i18n: u } = o(), { api: d } = e(), { data: f, isLoading: p } = d.finops.getApprovalRequests.useQuery({ query: {
|
|
9
|
+
object_id: s,
|
|
10
|
+
object_type: "payable",
|
|
11
|
+
limit: 50,
|
|
12
|
+
order: l
|
|
13
|
+
} }), { data: m, isLoading: h } = d.finops.getApprovalPoliciesId.useQuery({ path: { approval_policy_id: c } }), g = a(() => f?.data || [], [f]), _ = a(() => m?.script || [], [m]), v = a(() => !_.length || !g ? [] : new i(_, g, u).buildCompleteSteps(), [
|
|
14
|
+
_,
|
|
15
|
+
g,
|
|
16
|
+
u
|
|
17
|
+
]), y = a(() => {
|
|
18
|
+
let e = /* @__PURE__ */ new Set();
|
|
19
|
+
return _.forEach((i) => {
|
|
20
|
+
let a = t(i), o = r(a), s = n(o);
|
|
21
|
+
s?.params?.user_ids && s.params.user_ids.forEach((t) => e.add(t));
|
|
22
|
+
}), v.forEach((t) => {
|
|
23
|
+
t.actualAssignees.forEach((t) => e.add(t));
|
|
24
|
+
}), Array.from(e);
|
|
25
|
+
}, [_, v]), { data: b, isLoading: x } = d.finops.getEntityUsers.useQuery({ query: {
|
|
26
|
+
id__in: y.length > 0 ? y : void 0,
|
|
27
|
+
limit: 100
|
|
28
|
+
} }, { enabled: y.length > 0 }), S = a(() => {
|
|
29
|
+
let e = /* @__PURE__ */ new Map();
|
|
30
|
+
return b?.data && b.data.forEach((t) => {
|
|
31
|
+
e.set(t.id, t);
|
|
32
|
+
}), e;
|
|
33
|
+
}, [b]);
|
|
34
|
+
return {
|
|
35
|
+
steps: a(() => v.map((e) => ({
|
|
36
|
+
...e,
|
|
37
|
+
resolvedUsers: e.actualAssignees.map((e) => S.get(e)),
|
|
38
|
+
userNames: e.actualAssignees.map((e) => {
|
|
39
|
+
let t = S.get(e);
|
|
40
|
+
return t && (`${t.first_name || ""} ${t.last_name || ""}`.trim() || t.email || t.login) || e;
|
|
41
|
+
})
|
|
42
|
+
})), [v, S]),
|
|
43
|
+
isLoading: p || h || x,
|
|
44
|
+
error: null
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function c(e, t) {
|
|
48
|
+
return s(e, t.id, "desc");
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { c as useResolvedApprovalStepsWithPolicy };
|