@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,81 +1,118 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { useMoniteContext as t } from "./index46.js";
|
|
4
|
+
import { Button as n } from "./index55.js";
|
|
5
|
+
import { MoniteScopedProviders as r } from "./index241.js";
|
|
6
|
+
import { getDraftInvoiceValidationSchema as i, getInvoiceValidationSchema as a } from "./index100.js";
|
|
7
|
+
import { useUserPermissions as o } from "./index118.js";
|
|
8
|
+
import { willRecurrenceIssue as s } from "./index169.js";
|
|
9
|
+
import { AccessRestriction as c } from "./index251.js";
|
|
10
|
+
import { useReceivableSubmit as l } from "./index450.js";
|
|
11
|
+
import { ReceivableFormLayout as u } from "./index504.js";
|
|
12
|
+
import { useCallback as d, useMemo as f, useRef as p } from "react";
|
|
13
|
+
import { Fragment as m, jsx as h, jsxs as g } from "@emotion/react/jsx-runtime";
|
|
14
|
+
import { useLingui as _ } from "@lingui/react";
|
|
15
|
+
import { useForm as v } from "react-hook-form";
|
|
16
|
+
import { zodResolver as y } from "@hookform/resolvers/zod";
|
|
7
17
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js
|
|
8
|
-
var
|
|
9
|
-
let { i18n:
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
var b = (e) => {
|
|
19
|
+
let { i18n: t } = _();
|
|
20
|
+
return /* @__PURE__ */ h(r, { children: e.type === "invoice" ? /* @__PURE__ */ h(S, { ...e }) : /* @__PURE__ */ h(c, { description: t._("You can not create receivable with a type other than “invoice”") }) });
|
|
21
|
+
}, x = "USD", S = ({ type: r, onCreate: c, open: b, onOpenChange: S, embeddedBankName: C, initialCounterpartId: w }) => {
|
|
22
|
+
let { i18n: T } = _(), { componentSettings: E } = t(), D = o().has(e.CounterpartWriteOrg), O = !!E?.receivables?.enableEntityBankAccount, k = p("draft"), A = f(() => y(i(T, D)), [T, D]), j = f(() => y(a(T, O, D)), [
|
|
23
|
+
T,
|
|
24
|
+
O,
|
|
25
|
+
D
|
|
26
|
+
]), M = d((e, t, n) => (k.current === "issue" || s(e) ? j : A)(e, t, n), [j, A]), N = v({
|
|
27
|
+
mode: "onBlur",
|
|
28
|
+
resolver: M,
|
|
29
|
+
defaultValues: f(() => ({
|
|
30
|
+
type: r,
|
|
31
|
+
counterpart_id: w ?? "",
|
|
32
|
+
counterpart_name: "",
|
|
33
|
+
counterpart_email: "",
|
|
34
|
+
payment_terms_id: "",
|
|
35
|
+
payment_terms_custom_date: null,
|
|
36
|
+
default_shipping_address_id: "",
|
|
37
|
+
default_billing_address_id: "",
|
|
38
|
+
purchase_order: "",
|
|
39
|
+
line_items: [],
|
|
40
|
+
bank_account_id: "",
|
|
41
|
+
overdue_reminder_id: "",
|
|
42
|
+
payment_reminder_id: "",
|
|
43
|
+
memo: "",
|
|
44
|
+
footer: "",
|
|
45
|
+
tax_mode: "exclusive",
|
|
46
|
+
frequency: "once",
|
|
47
|
+
recurrence_start_date: void 0,
|
|
48
|
+
recurrence_end_date: void 0,
|
|
49
|
+
recurrence_issue_mode: "first_day",
|
|
50
|
+
recurrence_days_of_week: void 0,
|
|
51
|
+
recurrence_end_mode: "after",
|
|
52
|
+
recurrence_max_occurrences: void 0,
|
|
53
|
+
tax_rate: void 0,
|
|
54
|
+
discount: null,
|
|
55
|
+
attachments: []
|
|
56
|
+
}), [r, w])
|
|
57
|
+
}), P = l({
|
|
58
|
+
mode: "create",
|
|
59
|
+
methods: N,
|
|
60
|
+
currency: x,
|
|
61
|
+
submitModeRef: k,
|
|
62
|
+
onComplete: (e) => c?.(e.receivableId, {
|
|
63
|
+
mode: e.mode,
|
|
64
|
+
counterpartId: e.counterpartId,
|
|
65
|
+
inlineLineItems: e.inlineLineItems,
|
|
66
|
+
hasCustomerEmail: e.hasCustomerEmail
|
|
67
|
+
}),
|
|
68
|
+
onClose: () => S(!1)
|
|
69
|
+
});
|
|
70
|
+
return /* @__PURE__ */ h(u, {
|
|
71
|
+
open: b,
|
|
72
|
+
onRequestClose: P.requestClose,
|
|
73
|
+
methods: N,
|
|
74
|
+
title: T._("Create invoice"),
|
|
75
|
+
description: T._("Create and issue an invoice to your customers "),
|
|
76
|
+
currency: x,
|
|
77
|
+
embeddedBankName: C,
|
|
78
|
+
showPurchaseOrder: !0,
|
|
79
|
+
formName: P.formName,
|
|
80
|
+
onSubmit: P.onSubmit,
|
|
81
|
+
formScrollRef: P.formScrollRef,
|
|
82
|
+
registerLineItemCleanupFn: P.registerLineItemCleanupFn,
|
|
83
|
+
onAttachmentsUploadingChange: P.onAttachmentsUploadingChange,
|
|
84
|
+
disabled: P.isLoading,
|
|
85
|
+
closeDisabled: P.isSaving,
|
|
86
|
+
discardModal: P.discardModal,
|
|
87
|
+
footer: /* @__PURE__ */ g(m, { children: [
|
|
88
|
+
/* @__PURE__ */ h(n, {
|
|
89
|
+
variant: "outline",
|
|
90
|
+
className: "ttw:border-border",
|
|
91
|
+
onClick: P.requestClose,
|
|
92
|
+
disabled: P.isSaving || P.attachmentsUploading,
|
|
93
|
+
children: T._("Cancel")
|
|
24
94
|
}),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
color: "muted",
|
|
35
|
-
className: "ttw:leading-snug",
|
|
36
|
-
children: p._("(optional)")
|
|
37
|
-
})]
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ s(e, {
|
|
40
|
-
...l,
|
|
41
|
-
id: l.name,
|
|
42
|
-
disabled: f,
|
|
43
|
-
placeholder: p._("e.g., As discussed on our call, please find the attached invoice."),
|
|
44
|
-
className: "ttw:h-26 ttw:resize-none",
|
|
45
|
-
"aria-invalid": !!u
|
|
46
|
-
}),
|
|
47
|
-
/* @__PURE__ */ s(i, { children: p._("Appears above your line items. Use it to reference a discussion, agreement, or project.") }),
|
|
48
|
-
/* @__PURE__ */ s(a, { errors: u ? [u] : [] })
|
|
49
|
-
] }) })
|
|
95
|
+
!P.isRecurrenceEnabled && /* @__PURE__ */ h(n, {
|
|
96
|
+
variant: "secondary",
|
|
97
|
+
type: "submit",
|
|
98
|
+
form: P.formName,
|
|
99
|
+
disabled: P.isLoading || P.attachmentsUploading,
|
|
100
|
+
onClick: () => {
|
|
101
|
+
P.submitModeRef.current = "draft";
|
|
102
|
+
},
|
|
103
|
+
children: T._("Save as draft")
|
|
50
104
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
className: "ttw:leading-snug",
|
|
62
|
-
children: p._("(optional)")
|
|
63
|
-
})]
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */ s(e, {
|
|
66
|
-
...l,
|
|
67
|
-
id: l.name,
|
|
68
|
-
disabled: f,
|
|
69
|
-
placeholder: p._("e.g., Thank you for your business!"),
|
|
70
|
-
className: "ttw:h-26 ttw:resize-none",
|
|
71
|
-
"aria-invalid": !!u
|
|
72
|
-
}),
|
|
73
|
-
/* @__PURE__ */ s(i, { children: p._("Appears below your line items. Commonly used for thank you messages or payment instructions.") }),
|
|
74
|
-
/* @__PURE__ */ s(a, { errors: u ? [u] : [] })
|
|
75
|
-
] }) })
|
|
76
|
-
})
|
|
77
|
-
]
|
|
105
|
+
/* @__PURE__ */ h(n, {
|
|
106
|
+
type: "submit",
|
|
107
|
+
form: P.formName,
|
|
108
|
+
disabled: P.isLoading || P.attachmentsUploading || P.isIssuePreflightLoading || !P.isRecurrenceEnabled && P.isCustomerEmailLoading,
|
|
109
|
+
onClick: () => {
|
|
110
|
+
P.submitModeRef.current = P.isRecurrenceEnabled ? "draft" : "issue";
|
|
111
|
+
},
|
|
112
|
+
children: P.isRecurrenceEnabled ? T._("Activate recurring billing schedule") : T._("Issue invoice")
|
|
113
|
+
}, "next")
|
|
114
|
+
] })
|
|
78
115
|
});
|
|
79
116
|
};
|
|
80
117
|
//#endregion
|
|
81
|
-
export {
|
|
118
|
+
export { b as CreateReceivables };
|
|
@@ -1,250 +1,43 @@
|
|
|
1
1
|
import { cn as e } from "./index48.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import { Separator as i } from "./index63.js";
|
|
7
|
-
import { ATTACHMENT_ACCEPTED_EXTENSIONS as a, ATTACHMENT_ACCEPTED_FORMATS as o } from "./index92.js";
|
|
8
|
-
import { Checkbox as s } from "./index105.js";
|
|
9
|
-
import { validateAttachmentFile as c } from "./index171.js";
|
|
10
|
-
import { formatFileSize as l } from "./index172.js";
|
|
11
|
-
import { toFileArray as u } from "./index174.js";
|
|
12
|
-
import { useUploadReceivableAttachment as d } from "./index225.js";
|
|
13
|
-
import { useDeleteFile as f } from "./index226.js";
|
|
14
|
-
import { useEffect as p, useRef as m, useState as h } from "react";
|
|
15
|
-
import { FileText as g, ImageIcon as _, Loader2 as v, Trash2 as y, X as b } from "lucide-react";
|
|
16
|
-
import { Fragment as x, jsx as S, jsxs as C } from "@emotion/react/jsx-runtime";
|
|
17
|
-
import { useLingui as w } from "@lingui/react";
|
|
18
|
-
import { useFormContext as T } from "react-hook-form";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ChevronDownIcon as t } from "lucide-react";
|
|
4
|
+
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import * as i from "@radix-ui/react-accordion";
|
|
19
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}), L = k("attachments") ?? [], R = k("frequency"), z = !!R && R !== "once", [B, V] = h([]), [H, U] = h(!1), [W, G] = h(!1), K = m(0), q = m(!1);
|
|
25
|
-
p(() => (q.current = !1, () => {
|
|
26
|
-
q.current = !0;
|
|
27
|
-
}), []);
|
|
28
|
-
let J = m(/* @__PURE__ */ new Set()), Y = B.some((e) => e.status === "uploading");
|
|
29
|
-
p(() => {
|
|
30
|
-
D?.(Y);
|
|
31
|
-
}, [Y, D]), p(() => () => D?.(!1), [D]);
|
|
32
|
-
let X = () => (K.current += 1, `attachment-${K.current}`), Z = (e) => e === "too_large" ? O._("File too large (max 3 MB)") : O._("File type not supported. Use PDF, DOC, JPG or PNG"), Q = async (e, t) => {
|
|
33
|
-
try {
|
|
34
|
-
let n = await M({
|
|
35
|
-
file: t,
|
|
36
|
-
file_type: "attachments"
|
|
37
|
-
});
|
|
38
|
-
if (q.current || J.current.delete(e)) {
|
|
39
|
-
N({ path: { file_id: n.id } });
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
V((t) => t.filter((t) => t.localId !== e)), A("attachments", [...j("attachments") ?? [], {
|
|
43
|
-
id: n.id,
|
|
44
|
-
include_in_email: !0,
|
|
45
|
-
name: n.name,
|
|
46
|
-
size: n.size
|
|
47
|
-
}], { shouldDirty: !0 });
|
|
48
|
-
} catch {
|
|
49
|
-
let t = J.current.delete(e);
|
|
50
|
-
if (q.current || t) return;
|
|
51
|
-
V((t) => t.map((t) => t.localId === e ? {
|
|
52
|
-
...t,
|
|
53
|
-
status: "error",
|
|
54
|
-
errorMessage: O._("Upload failed. Please try again.")
|
|
55
|
-
} : t));
|
|
56
|
-
}
|
|
57
|
-
}, $ = (e) => {
|
|
58
|
-
if (e.length === 0) return;
|
|
59
|
-
let t = j("attachments") ?? [], n = B.filter((e) => e.status === "uploading").length, r = 10 - t.length - n, i = [], s = !1;
|
|
60
|
-
for (let t of e) {
|
|
61
|
-
let e = c(t, {
|
|
62
|
-
acceptedFormats: o,
|
|
63
|
-
acceptedExtensions: a,
|
|
64
|
-
maxFileSizeInMB: 3
|
|
65
|
-
});
|
|
66
|
-
if (e) {
|
|
67
|
-
i.push({
|
|
68
|
-
localId: X(),
|
|
69
|
-
name: t.name,
|
|
70
|
-
size: t.size,
|
|
71
|
-
status: "error",
|
|
72
|
-
errorMessage: Z(e)
|
|
73
|
-
});
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
if (r <= 0) {
|
|
77
|
-
s = !0;
|
|
78
|
-
continue;
|
|
79
|
-
}
|
|
80
|
-
--r;
|
|
81
|
-
let n = X();
|
|
82
|
-
i.push({
|
|
83
|
-
localId: n,
|
|
84
|
-
name: t.name,
|
|
85
|
-
size: t.size,
|
|
86
|
-
status: "uploading"
|
|
87
|
-
}), Q(n, t);
|
|
88
|
-
}
|
|
89
|
-
i.length > 0 && V((e) => [...e, ...i]), U(s);
|
|
90
|
-
}, ee = (e, t) => {
|
|
91
|
-
A("attachments", (j("attachments") ?? []).map((n) => n.id === e ? {
|
|
92
|
-
...n,
|
|
93
|
-
include_in_email: t
|
|
94
|
-
} : n), { shouldDirty: !0 });
|
|
95
|
-
}, te = (e) => {
|
|
96
|
-
A("attachments", (j("attachments") ?? []).filter((t) => t.id !== e), { shouldDirty: !0 }), U(!1), N({ path: { file_id: e } });
|
|
97
|
-
}, ne = (e) => {
|
|
98
|
-
B.some((t) => t.localId === e && t.status === "uploading") && J.current.add(e), V((t) => t.filter((t) => t.localId !== e)), U(!1);
|
|
99
|
-
}, re = (e) => {
|
|
100
|
-
e.preventDefault(), G(!1), !E && $(u(e.dataTransfer.files));
|
|
101
|
-
}, ie = L.length > 0 || B.length > 0;
|
|
102
|
-
return /* @__PURE__ */ C("div", {
|
|
103
|
-
className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
|
|
104
|
-
children: [
|
|
105
|
-
/* @__PURE__ */ C("div", {
|
|
106
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
107
|
-
children: [/* @__PURE__ */ S(r, {
|
|
108
|
-
variant: "h4",
|
|
109
|
-
children: O._("Attachments")
|
|
110
|
-
}), /* @__PURE__ */ S(r, {
|
|
111
|
-
variant: "body2",
|
|
112
|
-
color: "muted",
|
|
113
|
-
className: "ttw:font-medium",
|
|
114
|
-
children: O._("Associate additional documents with this invoice for your own reference or to share with the customer. e.g. contracts, photos, terms and conditions, etc.")
|
|
115
|
-
})]
|
|
116
|
-
}),
|
|
117
|
-
ie && /* @__PURE__ */ C("div", {
|
|
118
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
119
|
-
children: [L.length > 0 && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(r, {
|
|
120
|
-
variant: "caption",
|
|
121
|
-
color: "muted",
|
|
122
|
-
children: z ? O._("Selected files will be attached to every invoice email in the recurring series.") : O._("Selected files will be attached to the invoice email sent to the customer.")
|
|
123
|
-
}), /* @__PURE__ */ S(i, {})] }), /* @__PURE__ */ C("ul", {
|
|
124
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
125
|
-
children: [L.map((e) => {
|
|
126
|
-
let n = `attachment-include-${e.id}`;
|
|
127
|
-
return /* @__PURE__ */ C("li", {
|
|
128
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
129
|
-
children: [/* @__PURE__ */ S(s, {
|
|
130
|
-
id: n,
|
|
131
|
-
checked: e.include_in_email,
|
|
132
|
-
disabled: E,
|
|
133
|
-
"aria-label": `${O._("Include in email:")} ${e.name}`,
|
|
134
|
-
onCheckedChange: (t) => ee(e.id, t === !0)
|
|
135
|
-
}), /* @__PURE__ */ C("div", {
|
|
136
|
-
className: "ttw:flex ttw:w-full ttw:items-center ttw:rounded-lg ttw:gap-3 ttw:bg-muted ttw:px-2 ttw:py-1",
|
|
137
|
-
children: [/* @__PURE__ */ C("div", {
|
|
138
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:gap-1",
|
|
139
|
-
children: [/* @__PURE__ */ S(r, {
|
|
140
|
-
variant: "body2",
|
|
141
|
-
className: "ttw:truncate",
|
|
142
|
-
children: e.name
|
|
143
|
-
}), /* @__PURE__ */ C(r, {
|
|
144
|
-
variant: "body2",
|
|
145
|
-
color: "muted",
|
|
146
|
-
className: "ttw:shrink-0",
|
|
147
|
-
children: [
|
|
148
|
-
"(",
|
|
149
|
-
l(e.size),
|
|
150
|
-
")"
|
|
151
|
-
]
|
|
152
|
-
})]
|
|
153
|
-
}), /* @__PURE__ */ S(t, {
|
|
154
|
-
type: "button",
|
|
155
|
-
variant: "ghost",
|
|
156
|
-
size: "icon",
|
|
157
|
-
className: "ttw:size-4",
|
|
158
|
-
disabled: E,
|
|
159
|
-
"aria-label": `${O._("Remove")} ${e.name}`,
|
|
160
|
-
onClick: () => te(e.id),
|
|
161
|
-
children: /* @__PURE__ */ S(y, { className: "ttw:size-4" })
|
|
162
|
-
})]
|
|
163
|
-
})]
|
|
164
|
-
}, e.id);
|
|
165
|
-
}), B.map((e) => /* @__PURE__ */ C("li", {
|
|
166
|
-
className: "ttw:flex ttw:w-full ttw:items-center ttw:rounded-lg ttw:gap-3 ttw:bg-muted ttw:px-2 ttw:py-1",
|
|
167
|
-
children: [
|
|
168
|
-
e.status === "uploading" ? /* @__PURE__ */ S(v, { className: "ttw:size-5 ttw:shrink-0 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ S(g, { className: "ttw:size-5 ttw:shrink-0 ttw:text-destructive" }),
|
|
169
|
-
/* @__PURE__ */ C("div", {
|
|
170
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
|
|
171
|
-
children: [/* @__PURE__ */ S(r, {
|
|
172
|
-
variant: "body2",
|
|
173
|
-
className: "ttw:truncate",
|
|
174
|
-
children: e.name
|
|
175
|
-
}), e.status === "uploading" ? /* @__PURE__ */ S(r, {
|
|
176
|
-
variant: "caption",
|
|
177
|
-
color: "muted",
|
|
178
|
-
children: O._("Uploading…")
|
|
179
|
-
}) : /* @__PURE__ */ S(r, {
|
|
180
|
-
variant: "caption",
|
|
181
|
-
role: "alert",
|
|
182
|
-
className: "ttw:text-destructive",
|
|
183
|
-
children: e.errorMessage
|
|
184
|
-
})]
|
|
185
|
-
}),
|
|
186
|
-
/* @__PURE__ */ S(t, {
|
|
187
|
-
type: "button",
|
|
188
|
-
variant: "ghost",
|
|
189
|
-
size: "icon",
|
|
190
|
-
disabled: E,
|
|
191
|
-
"aria-label": `${O._("Remove")} ${e.name}`,
|
|
192
|
-
onClick: () => ne(e.localId),
|
|
193
|
-
children: /* @__PURE__ */ S(b, { className: "ttw:size-4" })
|
|
194
|
-
})
|
|
195
|
-
]
|
|
196
|
-
}, e.localId))]
|
|
197
|
-
})]
|
|
198
|
-
}),
|
|
199
|
-
/* @__PURE__ */ C("button", {
|
|
200
|
-
type: "button",
|
|
201
|
-
disabled: E,
|
|
202
|
-
onClick: F,
|
|
203
|
-
onDragOver: (e) => {
|
|
204
|
-
e.preventDefault(), E || G(!0);
|
|
205
|
-
},
|
|
206
|
-
onDragLeave: (e) => {
|
|
207
|
-
e.preventDefault(), G(!1);
|
|
208
|
-
},
|
|
209
|
-
onDrop: re,
|
|
210
|
-
className: e("ttw:flex ttw:w-full ttw:flex-col ttw:items-center ttw:gap-2 ttw:rounded-xl ttw:border ttw:border-dashed ttw:p-6 ttw:text-center ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", W ? "ttw:border-primary ttw:bg-primary/5" : "ttw:border-border ttw:bg-muted"),
|
|
211
|
-
children: [
|
|
212
|
-
/* @__PURE__ */ S("span", {
|
|
213
|
-
className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-border",
|
|
214
|
-
children: /* @__PURE__ */ S(_, { className: "ttw:size-5 ttw:text-muted-foreground" })
|
|
215
|
-
}),
|
|
216
|
-
/* @__PURE__ */ C(r, {
|
|
217
|
-
variant: "body2",
|
|
218
|
-
children: [
|
|
219
|
-
O._("Drop your files here, or"),
|
|
220
|
-
" ",
|
|
221
|
-
/* @__PURE__ */ S("span", {
|
|
222
|
-
className: "ttw:text-primary ttw:underline",
|
|
223
|
-
children: O._("browse to upload")
|
|
224
|
-
})
|
|
225
|
-
]
|
|
226
|
-
}),
|
|
227
|
-
/* @__PURE__ */ S(r, {
|
|
228
|
-
variant: "caption",
|
|
229
|
-
color: "muted",
|
|
230
|
-
children: O._("PDF, DOC, JPG, PNG (max. 3MB)")
|
|
231
|
-
})
|
|
232
|
-
]
|
|
233
|
-
}),
|
|
234
|
-
H && /* @__PURE__ */ S(r, {
|
|
235
|
-
variant: "body2",
|
|
236
|
-
role: "alert",
|
|
237
|
-
className: "ttw:text-destructive",
|
|
238
|
-
children: O._("You can attach up to 10 files.")
|
|
239
|
-
}),
|
|
240
|
-
/* @__PURE__ */ S(P, {
|
|
241
|
-
multiple: !0,
|
|
242
|
-
onChange: (e) => {
|
|
243
|
-
$(u(e.target.files)), I();
|
|
244
|
-
}
|
|
245
|
-
})
|
|
246
|
-
]
|
|
7
|
+
function a({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ n(i.Root, {
|
|
9
|
+
"data-slot": "accordion",
|
|
10
|
+
...e
|
|
247
11
|
});
|
|
248
|
-
}
|
|
12
|
+
}
|
|
13
|
+
function o({ className: t, ...r }) {
|
|
14
|
+
return /* @__PURE__ */ n(i.Item, {
|
|
15
|
+
"data-slot": "accordion-item",
|
|
16
|
+
className: e("ttw:border-b ttw:border-border ttw:last:border-b-0", t),
|
|
17
|
+
...r
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function s({ className: a, children: o, ...s }) {
|
|
21
|
+
return /* @__PURE__ */ n(i.Header, {
|
|
22
|
+
className: "ttw:flex",
|
|
23
|
+
children: /* @__PURE__ */ r(i.Trigger, {
|
|
24
|
+
"data-slot": "accordion-trigger",
|
|
25
|
+
className: e("ttw:group ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:flex ttw:flex-1 ttw:cursor-pointer ttw:items-start ttw:justify-between ttw:gap-4 ttw:rounded-md ttw:py-4 ttw:text-left ttw:text-sm ttw:font-medium ttw:transition-all ttw:outline-none ttw:focus-visible:ring-[3px] ttw:disabled:pointer-events-none ttw:disabled:opacity-50 ttw:[&[data-state=open]>svg]:rotate-180", a),
|
|
26
|
+
...s,
|
|
27
|
+
children: [o, /* @__PURE__ */ n(t, { className: "ttw:text-muted-foreground ttw:pointer-events-none ttw:size-4 ttw:shrink-0 ttw:translate-y-0.5 ttw:transition-transform ttw:duration-200" })]
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function c({ className: t, children: r, ...a }) {
|
|
32
|
+
return /* @__PURE__ */ n(i.Content, {
|
|
33
|
+
"data-slot": "accordion-content",
|
|
34
|
+
className: "ttw:data-[state=closed]:animate-accordion-up ttw:data-[state=open]:animate-accordion-down ttw:overflow-hidden ttw:text-sm",
|
|
35
|
+
...a,
|
|
36
|
+
children: /* @__PURE__ */ n("div", {
|
|
37
|
+
className: e("ttw:pt-0 ttw:pb-4", t),
|
|
38
|
+
children: r
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
}
|
|
249
42
|
//#endregion
|
|
250
|
-
export {
|
|
43
|
+
export { a as Accordion, c as AccordionContent, o as AccordionItem, s as AccordionTrigger };
|
|
@@ -1,10 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cn as e } from "./index48.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import * as r from "@radix-ui/react-tooltip";
|
|
2
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
6
|
+
function i({ delayDuration: e = 0, ...n }) {
|
|
7
|
+
return /* @__PURE__ */ t(r.Provider, {
|
|
8
|
+
"data-slot": "tooltip-provider",
|
|
9
|
+
delayDuration: e,
|
|
10
|
+
...n
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function a({ ...e }) {
|
|
14
|
+
return /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(r.Root, {
|
|
15
|
+
"data-slot": "tooltip",
|
|
16
|
+
...e
|
|
17
|
+
}) });
|
|
18
|
+
}
|
|
19
|
+
function o({ ...e }) {
|
|
20
|
+
return /* @__PURE__ */ t(r.Trigger, {
|
|
21
|
+
"data-slot": "tooltip-trigger",
|
|
22
|
+
...e
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function s({ className: i, sideOffset: a = 0, children: o, ...s }) {
|
|
26
|
+
return /* @__PURE__ */ t(r.Portal, { children: /* @__PURE__ */ n(r.Content, {
|
|
27
|
+
"data-slot": "tooltip-content",
|
|
28
|
+
sideOffset: a,
|
|
29
|
+
className: e("ttw:bg-primary ttw:text-primary-foreground ttw:animate-in ttw:fade-in-0 ttw:zoom-in-95 ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:z-1300 ttw:w-fit ttw:origin-(--radix-tooltip-content-transform-origin) ttw:rounded-md ttw:px-3 ttw:py-1.5 ttw:text-xs ttw:text-balance", i),
|
|
30
|
+
...s,
|
|
31
|
+
children: [o, /* @__PURE__ */ t(r.Arrow, { className: "ttw:bg-primary ttw:fill-primary ttw:z-1300 ttw:size-2.5 ttw:translate-y-[calc(-50%_-_2px)] ttw:rotate-45 ttw:rounded-[2px]" })]
|
|
32
|
+
}) });
|
|
33
|
+
}
|
|
9
34
|
//#endregion
|
|
10
|
-
export {
|
|
35
|
+
export { a as Tooltip, s as TooltipContent, i as TooltipProvider, o as TooltipTrigger };
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index27.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index46.js";
|
|
3
|
+
import { invalidateReceivableHistory as n } from "./index157.js";
|
|
4
|
+
import { invalidateReceivableLists as r } from "./index158.js";
|
|
5
|
+
import "./index182.js";
|
|
6
|
+
import { toast as i } from "react-hot-toast";
|
|
7
|
+
import { useLingui as a } from "@lingui/react";
|
|
3
8
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
9
|
+
var o = (o, s) => {
|
|
10
|
+
let { i18n: c } = a(), { api: l, queryClient: u } = t();
|
|
11
|
+
return l.finops.postRecurrencesIdPause.useMutation({ path: { recurrence_id: o } }, {
|
|
12
|
+
onError: (t) => {
|
|
13
|
+
i.error(e(c, t));
|
|
14
|
+
},
|
|
15
|
+
onSuccess: async () => {
|
|
16
|
+
await Promise.all([
|
|
17
|
+
r(l, u),
|
|
18
|
+
l.finops.getReceivablesId.invalidateQueries({ parameters: { path: { receivable_id: s } } }, u),
|
|
19
|
+
n(l, u, s),
|
|
20
|
+
l.finops.getRecurrencesId.invalidateQueries({ parameters: { path: { recurrence_id: o } } }, u)
|
|
21
|
+
]), i.success(c._("Series has been paused"));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
};
|
|
7
25
|
//#endregion
|
|
8
|
-
export {
|
|
26
|
+
export { o as usePauseRecurrence };
|