@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,18 +1,200 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { useCurrencies as e } from "./index62.js";
|
|
2
|
+
import { calculateTotalPriceForLineItem as t } from "./index373.js";
|
|
3
|
+
import { GLCodeSelector as n } from "./index374.js";
|
|
4
|
+
import "./index375.js";
|
|
5
|
+
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Button as a, Grid as o, IconButton as s, TextField as c, Typography as l } from "@mui/material";
|
|
7
|
+
import { useLingui as u } from "@lingui/react";
|
|
8
|
+
import { Controller as d, useFieldArray as f, useFormContext as p } from "react-hook-form";
|
|
9
|
+
import m from "@mui/icons-material/DeleteForever";
|
|
10
|
+
import h from "@mui/icons-material/Add";
|
|
5
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js
|
|
6
|
-
var
|
|
7
|
-
let {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
var g = ({ enableGLCodes: g }) => {
|
|
13
|
+
let { i18n: _ } = u(), { getSymbolFromCurrency: v, formatCurrencyToDisplay: y, formatToMinorUnits: b } = e(), { control: x, watch: S } = p(), { fields: C, append: w, remove: T } = f({
|
|
14
|
+
control: x,
|
|
15
|
+
name: "lineItems"
|
|
16
|
+
}), E = S("currency"), D = S("lineItems");
|
|
17
|
+
return /* @__PURE__ */ i(o, {
|
|
18
|
+
container: !0,
|
|
19
|
+
direction: "column",
|
|
20
|
+
spacing: 4,
|
|
21
|
+
children: [C.map((e, a) => /* @__PURE__ */ i(o, {
|
|
22
|
+
item: !0,
|
|
23
|
+
container: !0,
|
|
24
|
+
gap: 2,
|
|
25
|
+
className: "Monite-PayableDetailsForm-Item",
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ i(o, {
|
|
28
|
+
item: !0,
|
|
29
|
+
xs: 12,
|
|
30
|
+
gap: 2,
|
|
31
|
+
container: !0,
|
|
32
|
+
flexWrap: "nowrap",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ r(o, {
|
|
35
|
+
item: !0,
|
|
36
|
+
xs: 8,
|
|
37
|
+
children: /* @__PURE__ */ r(d, {
|
|
38
|
+
name: `lineItems.${a}.name`,
|
|
39
|
+
control: x,
|
|
40
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
41
|
+
...e,
|
|
42
|
+
id: e.name,
|
|
43
|
+
label: _._("Name"),
|
|
44
|
+
variant: "standard",
|
|
45
|
+
error: !!t,
|
|
46
|
+
helperText: t?.message,
|
|
47
|
+
fullWidth: !0
|
|
48
|
+
})
|
|
49
|
+
})
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ r(o, {
|
|
52
|
+
item: !0,
|
|
53
|
+
xs: 3,
|
|
54
|
+
children: /* @__PURE__ */ r(d, {
|
|
55
|
+
name: `lineItems.${a}.quantity`,
|
|
56
|
+
control: x,
|
|
57
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
58
|
+
...e,
|
|
59
|
+
id: e.name,
|
|
60
|
+
label: _._("Quantity"),
|
|
61
|
+
variant: "standard",
|
|
62
|
+
type: "number",
|
|
63
|
+
inputProps: { min: 1 },
|
|
64
|
+
error: !!t,
|
|
65
|
+
helperText: t?.message,
|
|
66
|
+
fullWidth: !0
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ r(o, {
|
|
71
|
+
item: !0,
|
|
72
|
+
xs: 1,
|
|
73
|
+
container: !0,
|
|
74
|
+
sx: {
|
|
75
|
+
justifyContent: "flex-end",
|
|
76
|
+
alignItems: "center"
|
|
77
|
+
},
|
|
78
|
+
children: /* @__PURE__ */ r(s, {
|
|
79
|
+
"aria-label": "delete",
|
|
80
|
+
onClick: () => T(a),
|
|
81
|
+
disabled: C.length === 1,
|
|
82
|
+
children: /* @__PURE__ */ r(m, {})
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
]
|
|
86
|
+
}),
|
|
87
|
+
g && /* @__PURE__ */ i(o, {
|
|
88
|
+
item: !0,
|
|
89
|
+
xs: 12,
|
|
90
|
+
gap: 2,
|
|
91
|
+
container: !0,
|
|
92
|
+
flexWrap: "nowrap",
|
|
93
|
+
children: [/* @__PURE__ */ r(o, {
|
|
94
|
+
item: !0,
|
|
95
|
+
xs: 11,
|
|
96
|
+
children: /* @__PURE__ */ r(d, {
|
|
97
|
+
name: `lineItems.${a}.ledger_account_id`,
|
|
98
|
+
control: x,
|
|
99
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(n, {
|
|
100
|
+
value: e.value ?? void 0,
|
|
101
|
+
onChange: (t) => e.onChange(t ?? void 0),
|
|
102
|
+
error: !!t,
|
|
103
|
+
helperText: t?.message
|
|
104
|
+
})
|
|
105
|
+
})
|
|
106
|
+
}), /* @__PURE__ */ r(o, {
|
|
107
|
+
item: !0,
|
|
108
|
+
xs: 1
|
|
109
|
+
})]
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ i(o, {
|
|
112
|
+
item: !0,
|
|
113
|
+
xs: 12,
|
|
114
|
+
gap: 2,
|
|
115
|
+
container: !0,
|
|
116
|
+
flexWrap: "nowrap",
|
|
117
|
+
justifyContent: "flex-end",
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ r(o, {
|
|
120
|
+
item: !0,
|
|
121
|
+
xs: 8,
|
|
122
|
+
children: /* @__PURE__ */ r(d, {
|
|
123
|
+
name: `lineItems.${a}.price`,
|
|
124
|
+
control: x,
|
|
125
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
126
|
+
...e,
|
|
127
|
+
id: e.name,
|
|
128
|
+
label: _._("Price"),
|
|
129
|
+
variant: "standard",
|
|
130
|
+
type: "number",
|
|
131
|
+
inputProps: { min: 0 },
|
|
132
|
+
error: !!t,
|
|
133
|
+
helperText: t?.message,
|
|
134
|
+
fullWidth: !0,
|
|
135
|
+
InputProps: { endAdornment: v(S("currency")) }
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ r(o, {
|
|
140
|
+
item: !0,
|
|
141
|
+
xs: 3,
|
|
142
|
+
children: /* @__PURE__ */ r(d, {
|
|
143
|
+
name: `lineItems.${a}.tax`,
|
|
144
|
+
control: x,
|
|
145
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
146
|
+
...e,
|
|
147
|
+
id: e.name,
|
|
148
|
+
label: _._("Tax"),
|
|
149
|
+
variant: "standard",
|
|
150
|
+
type: "number",
|
|
151
|
+
inputProps: {
|
|
152
|
+
min: 0,
|
|
153
|
+
max: 100
|
|
154
|
+
},
|
|
155
|
+
error: !!t,
|
|
156
|
+
helperText: t?.message,
|
|
157
|
+
fullWidth: !0,
|
|
158
|
+
InputProps: { endAdornment: "%" }
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
}),
|
|
162
|
+
/* @__PURE__ */ r(o, {
|
|
163
|
+
item: !0,
|
|
164
|
+
xs: 1
|
|
165
|
+
})
|
|
166
|
+
]
|
|
167
|
+
}),
|
|
168
|
+
D?.[a] && E && /* @__PURE__ */ r(o, {
|
|
169
|
+
item: !0,
|
|
170
|
+
xs: 12,
|
|
171
|
+
gap: 2,
|
|
172
|
+
className: "Monite-PayableDetailsForm-Item-Total",
|
|
173
|
+
children: /* @__PURE__ */ r(l, {
|
|
174
|
+
fontWeight: "bold",
|
|
175
|
+
align: "right",
|
|
176
|
+
children: y(b(t(D?.[a]), E) || 0, E)
|
|
177
|
+
})
|
|
178
|
+
})
|
|
179
|
+
]
|
|
180
|
+
}, e.id)), /* @__PURE__ */ r(o, {
|
|
181
|
+
item: !0,
|
|
182
|
+
xs: 12,
|
|
183
|
+
gap: 2,
|
|
184
|
+
children: /* @__PURE__ */ r(a, {
|
|
185
|
+
variant: "text",
|
|
186
|
+
startIcon: /* @__PURE__ */ r(h, {}),
|
|
187
|
+
onClick: () => w({
|
|
188
|
+
id: "",
|
|
189
|
+
name: "",
|
|
190
|
+
quantity: 1,
|
|
191
|
+
price: 0,
|
|
192
|
+
tax: 19
|
|
193
|
+
}),
|
|
194
|
+
children: _._("Add item")
|
|
195
|
+
})
|
|
196
|
+
})]
|
|
15
197
|
});
|
|
16
198
|
};
|
|
17
199
|
//#endregion
|
|
18
|
-
export {
|
|
200
|
+
export { g as PayableLineItemsForm };
|
|
@@ -1,42 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useMoniteContext as t } from "./index46.js";
|
|
3
|
-
import { useUpdatePayable as n } from "./index372.js";
|
|
4
|
-
import { toast as r } from "react-hot-toast";
|
|
5
|
-
import { useLingui as i } from "@lingui/react";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js
|
|
7
|
-
var a = ({ payableId: a, counterpartId: o, isCounterpartAIMatched: s, AISuggestions: c, onSubmitted: l }) => {
|
|
8
|
-
let { api: u, queryClient: d } = t(), { i18n: f } = i(), p = n(), m = u.finops.postPayablesIdSubmitForApproval.useMutation({ path: { payable_id: a } }, {
|
|
9
|
-
onSuccess: (e) => {
|
|
10
|
-
Promise.all([
|
|
11
|
-
u.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: e.id } } }, d),
|
|
12
|
-
u.finops.getPayables.invalidateQueries(d),
|
|
13
|
-
u.finops.getApprovalRequests.invalidateQueries(d)
|
|
14
|
-
]), r.success(f._("Payable \"{document_id}\" has been submitted", { document_id: e.document_id }));
|
|
15
|
-
},
|
|
16
|
-
onError: (t) => {
|
|
17
|
-
r.error(e(f, t));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
return {
|
|
21
|
-
submitForApproval: async () => {
|
|
22
|
-
if (o && s) try {
|
|
23
|
-
await p.mutateAsync({
|
|
24
|
-
path: { payable_id: a },
|
|
25
|
-
body: {
|
|
26
|
-
counterpart_id: o,
|
|
27
|
-
...c?.bank_account_id && { counterpart_bank_account_id: c?.bank_account_id },
|
|
28
|
-
...c?.address_id && { counterpart_address_id: c?.address_id },
|
|
29
|
-
...c?.vat_id_id && { counterpart_vat_id_id: c?.vat_id_id }
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
} catch (e) {
|
|
33
|
-
console.error(e), r.error(f._("Failed to submit Payable with AI suggestion. Please try editing the Payable and submit again."));
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
await m.mutateAsync(), l?.(a);
|
|
37
|
-
},
|
|
38
|
-
...m
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
//#endregion
|
|
42
|
-
export { a as useSubmitPayableForApproval };
|
|
1
|
+
import "./index376.js";
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
4
|
-
import { useLingui as r } from "@lingui/react";
|
|
1
|
+
import { useCounterpartList as e } from "./index131.js";
|
|
2
|
+
import { useCounterpartsBankAccountsList as t } from "./index231.js";
|
|
5
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
onError: (t) => {
|
|
13
|
-
n.error(e(c, t));
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
};
|
|
4
|
+
function n({ currentCounterpartId: n }) {
|
|
5
|
+
return {
|
|
6
|
+
counterpartQuery: e({ query: { is_vendor: !0 } }),
|
|
7
|
+
counterpartBankAccountQuery: t(n)
|
|
8
|
+
};
|
|
9
|
+
}
|
|
17
10
|
//#endregion
|
|
18
|
-
export {
|
|
11
|
+
export { n as usePayableDetailsForm };
|
|
@@ -1,18 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
4
|
-
import { useLingui as r } from "@lingui/react";
|
|
1
|
+
import { getCurrencyEnum as e } from "./index100.js";
|
|
2
|
+
import { z as t } from "zod";
|
|
5
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js
|
|
6
|
-
var
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
var n = (e, t) => !!t?.required_fields?.includes(e), r = (n) => {
|
|
5
|
+
let r = t.array(t.object({
|
|
6
|
+
id: t.string().meta({ title: n._("Item ID") }),
|
|
7
|
+
name: t.string().min(1, n._("Item name is required")).meta({ title: n._("Item Name") }),
|
|
8
|
+
quantity: t.coerce.number().positive(n._("Item quantity must be positive")).meta({ title: n._("Quantity") }),
|
|
9
|
+
price: t.coerce.number().min(0, n._("Item price cannot be negative")).meta({ title: n._("Price") }),
|
|
10
|
+
tax: t.coerce.number().min(0, n._("Item tax cannot be negative")).max(100, n._("Item tax cannot exceed 100%")).meta({ title: n._("Tax") }),
|
|
11
|
+
ledger_account_id: t.string().nullable().optional().meta({ title: n._("GL Code") })
|
|
12
|
+
})).meta({ title: n._("Line Items") }), i = t.object({
|
|
13
|
+
id: t.string(),
|
|
14
|
+
name: t.string()
|
|
15
|
+
}).loose().meta({ title: n._("Tag") });
|
|
16
|
+
return t.object({
|
|
17
|
+
invoiceNumber: t.string().min(1, n._("Invoice Number is required")).meta({ title: n._("Invoice Number") }),
|
|
18
|
+
counterpart: t.string().meta({ title: n._("Vendor") }),
|
|
19
|
+
counterpartBankAccount: t.string().optional().meta({ title: n._("Vendor Bank Account") }),
|
|
20
|
+
invoiceDate: t.preprocess((e) => e === null ? void 0 : e, t.date()).optional().meta({ title: n._("Invoice Date") }),
|
|
21
|
+
dueDate: t.preprocess((e) => e === null ? void 0 : e, t.date()).optional().meta({ title: n._("Due Date") }),
|
|
22
|
+
currency: e(n).optional().meta({ title: n._("Currency") }),
|
|
23
|
+
tags: t.array(i).meta({ title: n._("Tags") }),
|
|
24
|
+
lineItems: r,
|
|
25
|
+
discount: t.union([t.coerce.number().min(0), t.null()]).optional().meta({ title: n._("Discount") })
|
|
15
26
|
});
|
|
16
|
-
}
|
|
27
|
+
}, i = (e, t) => r(e).refine((e) => e.dueDate instanceof Date, {
|
|
28
|
+
path: ["dueDate"],
|
|
29
|
+
message: e._("Due date is required")
|
|
30
|
+
}).refine((e) => !n("counterpart_id", t) || !!e.counterpart, {
|
|
31
|
+
path: ["counterpart"],
|
|
32
|
+
message: e._("Vendor is required")
|
|
33
|
+
}).refine((e) => !n("counterpart_bank_account_id", t) || !!e.counterpartBankAccount, {
|
|
34
|
+
path: ["counterpartBankAccount"],
|
|
35
|
+
message: e._("Vendor bank account is required")
|
|
36
|
+
}).refine((e) => !n("issued_at", t) || e.invoiceDate instanceof Date, {
|
|
37
|
+
path: ["invoiceDate"],
|
|
38
|
+
message: e._("Invoice date is required")
|
|
39
|
+
}).refine((e) => !n("currency", t) || e.currency !== void 0, {
|
|
40
|
+
path: ["currency"],
|
|
41
|
+
message: e._("Currency is required")
|
|
42
|
+
});
|
|
17
43
|
//#endregion
|
|
18
|
-
export { i as
|
|
44
|
+
export { i as getPayableDetailsFormSchema, n as isFieldRequiredByValidations };
|
|
@@ -1,18 +1,8 @@
|
|
|
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";
|
|
1
|
+
import { useMoniteContext as e } from "./index46.js";
|
|
5
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js
|
|
6
|
-
var
|
|
7
|
-
let { api:
|
|
8
|
-
return
|
|
9
|
-
onSuccess: (e) => {
|
|
10
|
-
Promise.all([o.finops.getPayablesId.invalidateQueries({ parameters: { path: { payable_id: e.id } } }, s), o.finops.getPayables.invalidateQueries(s)]), n.success(c._("Payable “{document_id}” has been reopened", { document_id: e.document_id })), a?.(e.id);
|
|
11
|
-
},
|
|
12
|
-
onError: (t) => {
|
|
13
|
-
n.error(e(c, t));
|
|
14
|
-
}
|
|
15
|
-
});
|
|
3
|
+
var t = (t, n = !0) => {
|
|
4
|
+
let { api: r } = e();
|
|
5
|
+
return r.finops.getProducts.useQuery({ query: t }, { enabled: n });
|
|
16
6
|
};
|
|
17
7
|
//#endregion
|
|
18
|
-
export {
|
|
8
|
+
export { t as useGetProducts };
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
4
|
-
import { useLingui as r } from "@lingui/react";
|
|
1
|
+
import { useGetProducts as e } from "./index380.js";
|
|
2
|
+
import { useMemo as t } from "react";
|
|
5
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js
|
|
6
|
-
var
|
|
7
|
-
let {
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
onError: (t) => {
|
|
13
|
-
n.error(e(c, t));
|
|
14
|
-
}
|
|
15
|
-
});
|
|
4
|
+
var n = () => {
|
|
5
|
+
let { data: n, isLoading: r } = e();
|
|
6
|
+
return {
|
|
7
|
+
existingCurrencies: t(() => new Set(n?.data?.map((e) => e.price?.currency).filter((e) => !!e) ?? []), [n?.data]),
|
|
8
|
+
isLoadingProducts: r
|
|
9
|
+
};
|
|
16
10
|
};
|
|
17
11
|
//#endregion
|
|
18
|
-
export {
|
|
12
|
+
export { n as useExistingCurrenciesFromProducts };
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import "./index381.js";
|
|
1
|
+
import { useExistingCurrenciesFromProducts as e } from "./index381.js";
|
|
2
|
+
import { useMemo as t } from "react";
|
|
3
|
+
import { useLingui as n } from "@lingui/react";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js
|
|
5
|
+
var r = () => {
|
|
6
|
+
let { i18n: r } = n(), { existingCurrencies: i, isLoadingProducts: a } = e();
|
|
7
|
+
return {
|
|
8
|
+
currencyGroups: t(() => [{
|
|
9
|
+
title: r._("You have items in"),
|
|
10
|
+
predicate: (e) => i.has(e.code)
|
|
11
|
+
}, {
|
|
12
|
+
title: r._("No items created in"),
|
|
13
|
+
predicate: (e) => !i.has(e.code)
|
|
14
|
+
}], [i, r]),
|
|
15
|
+
isLoadingCurrencyGroups: a
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { r as useProductCurrencyGroups };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { getCountries as e } from "./index12.js";
|
|
2
|
+
import { getCurrencies as t } from "./index14.js";
|
|
1
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
4
|
+
var n = (e, t) => {
|
|
5
|
+
let n = r(e, t);
|
|
6
|
+
return t.is_default_for_currency ? e._("{bankAccountName} (Default)", { bankAccountName: n }) : n;
|
|
7
|
+
}, r = (n, r) => r.name ? r.name : r.country && r.currency ? `${e(n)[r.country]} (${t(n)[r.currency]})` : r.id;
|
|
6
8
|
//#endregion
|
|
7
|
-
export {
|
|
9
|
+
export { n as getBankAccountName };
|
|
@@ -1,123 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getIndividualName as n } from "./index15.js";
|
|
3
|
-
import "./index18.js";
|
|
4
|
-
import { isIndividualCounterpart as r, isOrganizationCounterpart as i } from "./index52.js";
|
|
5
|
-
import { resolveNullableUpdate as a } from "./index383.js";
|
|
6
|
-
import { format as o } from "date-fns";
|
|
1
|
+
import { zodResolver as e } from "@hookform/resolvers/zod";
|
|
7
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js
|
|
8
|
-
|
|
9
|
-
value: e.id,
|
|
10
|
-
label: r(e) ? n(e.individual.first_name, e.individual.last_name) : i(e) ? e.organization.legal_name : ""
|
|
11
|
-
})) : [];
|
|
12
|
-
function l(e) {
|
|
13
|
-
let [t, n, r] = e.split("-");
|
|
14
|
-
return new Date(+t, n - 1, +r);
|
|
15
|
-
}
|
|
16
|
-
var u = (e) => o(e, "yyyy-MM-dd"), d = (e, t, n, r) => {
|
|
17
|
-
if (!t) return {
|
|
18
|
-
invoiceNumber: "",
|
|
19
|
-
counterpart: r ?? "",
|
|
20
|
-
counterpartBankAccount: "",
|
|
21
|
-
invoiceDate: void 0,
|
|
22
|
-
dueDate: void 0,
|
|
23
|
-
currency: "USD",
|
|
24
|
-
tags: [],
|
|
25
|
-
discount: null,
|
|
26
|
-
lineItems: [{
|
|
27
|
-
id: "",
|
|
28
|
-
name: "",
|
|
29
|
-
quantity: 1,
|
|
30
|
-
price: 0,
|
|
31
|
-
tax: 0
|
|
32
|
-
}]
|
|
33
|
-
};
|
|
34
|
-
let { document_id: i, counterpart_id: a, counterpart_bank_account_id: o, issued_at: s, due_date: c, currency: u, tags: d, discount: f } = t;
|
|
35
|
-
return {
|
|
36
|
-
invoiceNumber: i ?? "",
|
|
37
|
-
counterpart: a ?? "",
|
|
38
|
-
counterpartBankAccount: o ?? "",
|
|
39
|
-
invoiceDate: s ? l(s) : void 0,
|
|
40
|
-
dueDate: c ? l(c) : void 0,
|
|
41
|
-
currency: u ?? "USD",
|
|
42
|
-
tags: d ?? [],
|
|
43
|
-
discount: f && u ? e(f, u) : null,
|
|
44
|
-
lineItems: (n || []).map((t) => ({
|
|
45
|
-
id: t.id ?? "",
|
|
46
|
-
name: t.name ?? "",
|
|
47
|
-
quantity: t.quantity ?? 1,
|
|
48
|
-
price: t.unit_price && u ? e(t.unit_price, u) ?? 0 : 0,
|
|
49
|
-
tax: t.tax ? y(t.tax) : 0,
|
|
50
|
-
ledger_account_id: t.ledger_account_id
|
|
51
|
-
}))
|
|
52
|
-
};
|
|
53
|
-
}, f = ({ discount: e, invoiceNumber: t, counterpart: n, counterpartBankAccount: r, invoiceDate: i, dueDate: a, currency: o, tags: s, counterpartAddressId: c }, l, d) => ({
|
|
54
|
-
document_id: t,
|
|
55
|
-
discount: e && o ? l(e, o) ?? 0 : 0,
|
|
56
|
-
counterpart_id: n || void 0,
|
|
57
|
-
counterpart_bank_account_id: r || void 0,
|
|
58
|
-
issued_at: i instanceof Date ? u(i) : void 0,
|
|
59
|
-
due_date: a instanceof Date ? u(a) : void 0,
|
|
60
|
-
currency: o,
|
|
61
|
-
tag_ids: s.map((e) => e.id),
|
|
62
|
-
counterpart_address_id: c,
|
|
63
|
-
subtotal: o ? l(d.subtotal, o) ?? 0 : void 0,
|
|
64
|
-
tax_amount: o ? l(d.taxes, o) ?? 0 : void 0,
|
|
65
|
-
total_amount: o ? l(d.total + (e ?? 0), o) ?? 0 : void 0
|
|
66
|
-
}), p = (e, t) => {
|
|
67
|
-
let n = e * t;
|
|
68
|
-
return parseFloat(n.toFixed(2));
|
|
69
|
-
}, m = (e, t) => {
|
|
70
|
-
let n = e + t * e / 100;
|
|
71
|
-
return parseFloat(n.toFixed(2));
|
|
72
|
-
}, h = (e) => {
|
|
73
|
-
let { price: t, quantity: n, tax: r } = e;
|
|
74
|
-
return !t || !n ? 0 : m(p(t, n), r || 0);
|
|
75
|
-
}, g = (e, t) => {
|
|
76
|
-
let { subtotal: n, taxes: r, total: i } = e.reduce((e, t) => {
|
|
77
|
-
let n = p(t.price, t.quantity), r = m(n, t.tax || 0);
|
|
78
|
-
return {
|
|
79
|
-
subtotal: e.subtotal + n,
|
|
80
|
-
taxes: e.taxes + (r - n),
|
|
81
|
-
total: e.total + r
|
|
82
|
-
};
|
|
83
|
-
}, {
|
|
84
|
-
subtotal: 0,
|
|
85
|
-
taxes: 0,
|
|
86
|
-
total: 0
|
|
87
|
-
});
|
|
88
|
-
return {
|
|
89
|
-
subtotal: n,
|
|
90
|
-
taxes: r,
|
|
91
|
-
total: i - (t ?? 0)
|
|
92
|
-
};
|
|
93
|
-
}, _ = (e, t, n, r) => {
|
|
94
|
-
let { name: i, quantity: o, price: s, tax: c, ledger_account_id: l } = t, u = r?.allowLedgerUpdate ? a(l, r?.previous) : l, d = p(s, o), f = m(d, c || 0), h = f - d, g = {
|
|
95
|
-
name: i,
|
|
96
|
-
quantity: o,
|
|
97
|
-
tax: v(c),
|
|
98
|
-
subtotal: n(d, e) ?? 0,
|
|
99
|
-
tax_amount: n(h, e) ?? 0,
|
|
100
|
-
total: n(f, e) ?? 0,
|
|
101
|
-
unit_price: n(s, e) ?? 0
|
|
102
|
-
};
|
|
103
|
-
return u !== void 0 && (g.ledger_account_id = u), g;
|
|
104
|
-
};
|
|
105
|
-
function v(e) {
|
|
106
|
-
return t(e);
|
|
107
|
-
}
|
|
108
|
-
function y(t) {
|
|
3
|
+
function t(t) {
|
|
109
4
|
return e(t);
|
|
110
5
|
}
|
|
111
|
-
var b = (e, t, n) => {
|
|
112
|
-
let r = {
|
|
113
|
-
invoiceNumber: !0,
|
|
114
|
-
dueDate: !0,
|
|
115
|
-
tags: !0,
|
|
116
|
-
currency: !0
|
|
117
|
-
};
|
|
118
|
-
if (n) return !1;
|
|
119
|
-
let i = r[e] ?? !1, a = t?.[e] ?? !1;
|
|
120
|
-
return i || a;
|
|
121
|
-
}, x = (e, t) => e.find((e) => e.currency === t && e.is_default_for_currency)?.id || "";
|
|
122
6
|
//#endregion
|
|
123
|
-
export {
|
|
7
|
+
export { t as safeZodResolver };
|