@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,20 +1,191 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { Button as e } from "./index55.js";
|
|
2
|
+
import { InputGroup as t, InputGroupAddon as n, InputGroupInput as r } from "./index109.js";
|
|
3
|
+
import { LoadingSpinner as i } from "./index50.js";
|
|
4
|
+
import "./index51.js";
|
|
5
|
+
import { Typography as a } from "./index61.js";
|
|
6
|
+
import { Separator as o } from "./index63.js";
|
|
7
|
+
import { Field as s, FieldContent as c, FieldError as l, FieldLabel as u } from "./index87.js";
|
|
8
|
+
import { sanitizeTaxRateInput as d } from "./index99.js";
|
|
9
|
+
import { useLineItemManagement as f } from "./index223.js";
|
|
10
|
+
import { useGetMeasureUnits as p } from "./index449.js";
|
|
11
|
+
import { FormErrorDisplay as m, useFormErrors as h } from "./index466.js";
|
|
12
|
+
import "./index467.js";
|
|
13
|
+
import { InvoiceItemRow as g } from "./index487.js";
|
|
14
|
+
import { InvoiceDiscountField as _ } from "./index488.js";
|
|
15
|
+
import { InvoiceTotals as v } from "./index489.js";
|
|
16
|
+
import { useCallback as y, useEffect as b, useRef as x } from "react";
|
|
17
|
+
import { Plus as S } from "lucide-react";
|
|
18
|
+
import { jsx as C, jsxs as w } from "@emotion/react/jsx-runtime";
|
|
19
|
+
import { useLingui as ee } from "@lingui/react";
|
|
20
|
+
import { Controller as T, useFormContext as E } from "react-hook-form";
|
|
6
21
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js
|
|
7
|
-
var
|
|
8
|
-
let {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
var D = ({ defaultCurrency: D = "USD", registerLineItemCleanupFn: O }) => {
|
|
23
|
+
let { i18n: k } = ee(), { control: A, formState: j, getValues: M, watch: N, trigger: P, clearErrors: F } = E(), I = N("tax_mode") === "inclusive", { data: L, isLoading: R } = p(), { fields: z, subtotalPrice: te, discountValue: B, nonTaxableSubtotal: V, taxableSubtotal: H, totalPrice: U, totalTaxes: W, lineItemErrors: G, autoFocusIndex: K, handleAddRow: q, handleRemoveItem: J, setValueWithValidationLocal: Y, cleanUpLineItemsForSubmission: X } = f({
|
|
24
|
+
defaultCurrency: D,
|
|
25
|
+
isInclusivePricing: I
|
|
26
|
+
}), Z = y((e, t) => {
|
|
27
|
+
Y(e, t, { shouldValidate: !1 });
|
|
28
|
+
}, [Y]);
|
|
29
|
+
b(() => (O?.(X), () => O?.(null)), [O, X]);
|
|
30
|
+
let Q = x(null), { generalError: ne, fieldErrors: re } = h(G), $ = y((e, t, n) => {
|
|
31
|
+
let r = t.measureUnit?.id, i = t.measureUnit?.name;
|
|
32
|
+
i && !r ? (Z(`line_items.${e}.product.measure_unit_id`, ""), Z(`line_items.${e}.product.measure_unit_name`, i), Z(`line_items.${e}.measure_unit`, {
|
|
33
|
+
name: i,
|
|
34
|
+
id: null
|
|
35
|
+
})) : (r || n) && (Z(`line_items.${e}.product.measure_unit_id`, r || n), Z(`line_items.${e}.product.measure_unit_name`, void 0), Z(`line_items.${e}.measure_unit`, void 0));
|
|
36
|
+
}, [Z]), ie = y((e, t, n) => {
|
|
37
|
+
let r = t.label ?? "";
|
|
38
|
+
Z(`line_items.${e}.product.name`, r), r.trim() && F(`line_items.${e}.product.name`);
|
|
39
|
+
let i = t.id !== "" && t.id !== "custom" && n;
|
|
40
|
+
if (Z(`line_items.${e}.product_id`, i ? t.id : ""), i) {
|
|
41
|
+
Z(`line_items.${e}.product.price.value`, t.price?.value ?? 0), Z(`line_items.${e}.product.price.currency`, D);
|
|
42
|
+
let n = M(`line_items.${e}.product.measure_unit_id`);
|
|
43
|
+
$(e, t, n), Z(`line_items.${e}.quantity`, t.smallestAmount || 1), Z(`line_items.${e}.product.smallest_amount`, t.smallestAmount), Z(`line_items.${e}.product.type`, "product"), Z(`line_items.${e}.product.description`, t.description ?? ""), P(`line_items.${e}`);
|
|
16
44
|
}
|
|
45
|
+
}, [
|
|
46
|
+
D,
|
|
47
|
+
M,
|
|
48
|
+
Z,
|
|
49
|
+
$,
|
|
50
|
+
P,
|
|
51
|
+
F
|
|
52
|
+
]);
|
|
53
|
+
return /* @__PURE__ */ w("div", {
|
|
54
|
+
ref: Q,
|
|
55
|
+
className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ w("div", {
|
|
58
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
59
|
+
children: [/* @__PURE__ */ C(a, {
|
|
60
|
+
variant: "h4",
|
|
61
|
+
children: k._("Products and services")
|
|
62
|
+
}), /* @__PURE__ */ C(a, {
|
|
63
|
+
variant: "body2",
|
|
64
|
+
color: "muted",
|
|
65
|
+
className: "ttw:font-medium",
|
|
66
|
+
children: k._("Add the products and services on this invoice. You'll have the option to save new items to your inventory.")
|
|
67
|
+
})]
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ C(m, {
|
|
70
|
+
generalError: j?.errors?.line_items?.root?.message ?? ne,
|
|
71
|
+
fieldErrors: re
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ w("ul", {
|
|
74
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
75
|
+
children: [/* @__PURE__ */ w("li", {
|
|
76
|
+
className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:h-5",
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ C(a, {
|
|
79
|
+
variant: "body2",
|
|
80
|
+
className: "ttw:font-medium ttw:leading-5 ttw:min-w-30 ttw:whitespace-nowrap ttw:inline-flex ttw:flex-1",
|
|
81
|
+
children: k._("Item name")
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ C(a, {
|
|
84
|
+
variant: "body2",
|
|
85
|
+
className: "ttw:font-medium ttw:leading-5 ttw:w-24 ttw:min-w-24",
|
|
86
|
+
children: k._("Quantity")
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ C(a, {
|
|
89
|
+
variant: "body2",
|
|
90
|
+
className: "ttw:font-medium ttw:leading-5 ttw:w-20.5 ttw:min-w-20.5",
|
|
91
|
+
children: k._("Units")
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ C(a, {
|
|
94
|
+
variant: "body2",
|
|
95
|
+
className: "ttw:font-medium ttw:leading-5 ttw:max-w-41 ttw:w-full ttw:min-w-29",
|
|
96
|
+
children: k._("Price")
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ C(a, {
|
|
99
|
+
variant: "body2",
|
|
100
|
+
className: "ttw:font-medium ttw:leading-5 ttw:w-12 ttw:min-w-12",
|
|
101
|
+
children: k._("Taxable")
|
|
102
|
+
}),
|
|
103
|
+
z.length > 1 && /* @__PURE__ */ C("div", { className: "ttw:w-10 ttw:min-w-10" })
|
|
104
|
+
]
|
|
105
|
+
}), R ? /* @__PURE__ */ C("li", {
|
|
106
|
+
className: "ttw:flex ttw:items-center ttw:justify-center ttw:h-9",
|
|
107
|
+
children: /* @__PURE__ */ C(i, { className: "ttw:w-5 ttw:h-5" })
|
|
108
|
+
}) : z.map((e, t) => /* @__PURE__ */ C(g, {
|
|
109
|
+
field: e,
|
|
110
|
+
index: t,
|
|
111
|
+
control: A,
|
|
112
|
+
errors: j.errors,
|
|
113
|
+
defaultCurrency: D,
|
|
114
|
+
measureUnitsData: L,
|
|
115
|
+
onRequestLineItemValue: (e) => M(`line_items.${t}.${e}`),
|
|
116
|
+
onLineItemValueChange: (e, n, r) => {
|
|
117
|
+
let i = `line_items.${t}.${e}`;
|
|
118
|
+
Y(i, n, r);
|
|
119
|
+
},
|
|
120
|
+
canRemove: z.length > 1,
|
|
121
|
+
autoFocusName: t === K,
|
|
122
|
+
onUpdateItem: ie,
|
|
123
|
+
onRemoveItem: J,
|
|
124
|
+
container: Q
|
|
125
|
+
}, e.id))]
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ w(e, {
|
|
128
|
+
type: "button",
|
|
129
|
+
variant: "ghost",
|
|
130
|
+
onClick: q,
|
|
131
|
+
className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit",
|
|
132
|
+
children: [/* @__PURE__ */ C(S, { className: "ttw:size-5 ttw:text-primary" }), k._("Add item")]
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ C(T, {
|
|
135
|
+
name: "discount",
|
|
136
|
+
control: A,
|
|
137
|
+
render: ({ field: e }) => /* @__PURE__ */ C(_, {
|
|
138
|
+
value: e.value,
|
|
139
|
+
onChange: e.onChange,
|
|
140
|
+
onBlur: e.onBlur,
|
|
141
|
+
currency: D,
|
|
142
|
+
errorMessage: j.errors.discount?.amount?.message
|
|
143
|
+
})
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ C(T, {
|
|
146
|
+
name: "tax_rate",
|
|
147
|
+
control: A,
|
|
148
|
+
render: ({ field: e, fieldState: { error: i } }) => /* @__PURE__ */ w(s, { children: [/* @__PURE__ */ w(c, {
|
|
149
|
+
className: "ttw:flex-row ttw:justify-end",
|
|
150
|
+
children: [/* @__PURE__ */ C(u, {
|
|
151
|
+
htmlFor: e.name,
|
|
152
|
+
children: k._("Tax rate")
|
|
153
|
+
}), /* @__PURE__ */ w(t, {
|
|
154
|
+
className: "ttw:w-40 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0",
|
|
155
|
+
children: [/* @__PURE__ */ C(r, {
|
|
156
|
+
...e,
|
|
157
|
+
value: e.value ?? "",
|
|
158
|
+
id: e.name,
|
|
159
|
+
"aria-invalid": !!i || void 0,
|
|
160
|
+
className: "ttw:text-right",
|
|
161
|
+
placeholder: k._("e.g. 6.25"),
|
|
162
|
+
type: "text",
|
|
163
|
+
inputMode: "decimal",
|
|
164
|
+
onChange: (t) => {
|
|
165
|
+
e.onChange(d(t.target.value));
|
|
166
|
+
},
|
|
167
|
+
onBlur: (t) => {
|
|
168
|
+
let n = t.target.value;
|
|
169
|
+
e.onChange(n.endsWith(".") ? n.slice(0, -1) : n), e.onBlur();
|
|
170
|
+
}
|
|
171
|
+
}), /* @__PURE__ */ C(n, {
|
|
172
|
+
align: "inline-end",
|
|
173
|
+
children: "%"
|
|
174
|
+
})]
|
|
175
|
+
})]
|
|
176
|
+
}), /* @__PURE__ */ C(l, { errors: [i] })] })
|
|
177
|
+
}),
|
|
178
|
+
/* @__PURE__ */ C(o, {}),
|
|
179
|
+
/* @__PURE__ */ C(v, {
|
|
180
|
+
subtotalPrice: te,
|
|
181
|
+
discountValue: B,
|
|
182
|
+
nonTaxableSubtotal: V,
|
|
183
|
+
taxableSubtotal: H,
|
|
184
|
+
totalTaxes: W,
|
|
185
|
+
totalPrice: U
|
|
186
|
+
})
|
|
187
|
+
]
|
|
17
188
|
});
|
|
18
189
|
};
|
|
19
190
|
//#endregion
|
|
20
|
-
export {
|
|
191
|
+
export { D as ItemsSection };
|
|
@@ -1,18 +1,144 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Button as e } from "./index55.js";
|
|
2
|
+
import { Input as t } from "./index88.js";
|
|
3
|
+
import { Typography as n } from "./index61.js";
|
|
4
|
+
import { Field as r, FieldContent as i, FieldError as a, FieldLabel as o } from "./index87.js";
|
|
5
|
+
import { getCreateBankAccountSchema as s } from "./index100.js";
|
|
6
|
+
import { useCreateEntityBankAccount as c } from "./index120.js";
|
|
7
|
+
import { prepareBankAccountCreatePayload as l } from "./index155.js";
|
|
8
|
+
import "./index182.js";
|
|
9
|
+
import { safeZodResolver as u } from "./index384.js";
|
|
10
|
+
import { jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
|
|
11
|
+
import { useLingui as p } from "@lingui/react";
|
|
12
|
+
import { Controller as m, useForm as h } from "react-hook-form";
|
|
5
13
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js
|
|
6
|
-
var
|
|
7
|
-
let {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
var g = ({ bankAccountsLength: g, onCreate: _, onCancel: v }) => {
|
|
15
|
+
let { i18n: y } = p(), { mutate: b, isPending: x } = c(_), { control: S, handleSubmit: C } = h({
|
|
16
|
+
mode: "onSubmit",
|
|
17
|
+
reValidateMode: "onSubmit",
|
|
18
|
+
resolver: u(s(y)),
|
|
19
|
+
defaultValues: {
|
|
20
|
+
display_name: "",
|
|
21
|
+
account_holder_name: "",
|
|
22
|
+
account_number: "",
|
|
23
|
+
routing_number: ""
|
|
14
24
|
}
|
|
15
25
|
});
|
|
26
|
+
return /* @__PURE__ */ f("div", {
|
|
27
|
+
className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ d("div", {
|
|
30
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
31
|
+
children: /* @__PURE__ */ d(n, {
|
|
32
|
+
variant: "body2",
|
|
33
|
+
children: y._("Add a bank account")
|
|
34
|
+
})
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ f("div", {
|
|
37
|
+
className: "ttw:flex ttw:gap-4",
|
|
38
|
+
children: [/* @__PURE__ */ d(m, {
|
|
39
|
+
name: "routing_number",
|
|
40
|
+
control: S,
|
|
41
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
|
|
42
|
+
/* @__PURE__ */ d(o, {
|
|
43
|
+
htmlFor: "routing_number",
|
|
44
|
+
children: y._("Routing number")
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ d(t, {
|
|
47
|
+
...e,
|
|
48
|
+
id: "routing_number",
|
|
49
|
+
placeholder: y._("e.g. 123456789"),
|
|
50
|
+
value: e.value ?? "",
|
|
51
|
+
disabled: x,
|
|
52
|
+
"aria-invalid": !!n
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ d(a, { errors: n ? [n] : [] })
|
|
55
|
+
] }) })
|
|
56
|
+
}), /* @__PURE__ */ d(m, {
|
|
57
|
+
name: "account_number",
|
|
58
|
+
control: S,
|
|
59
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
|
|
60
|
+
/* @__PURE__ */ d(o, {
|
|
61
|
+
htmlFor: "account_number",
|
|
62
|
+
children: y._("Account number")
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ d(t, {
|
|
65
|
+
...e,
|
|
66
|
+
id: "account_number",
|
|
67
|
+
placeholder: y._("e.g. 123456789"),
|
|
68
|
+
value: e.value ?? "",
|
|
69
|
+
disabled: x,
|
|
70
|
+
"aria-invalid": !!n
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ d(a, { errors: n ? [n] : [] })
|
|
73
|
+
] }) })
|
|
74
|
+
})]
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ f("div", {
|
|
77
|
+
className: "ttw:flex ttw:gap-4",
|
|
78
|
+
children: [/* @__PURE__ */ d(m, {
|
|
79
|
+
name: "account_holder_name",
|
|
80
|
+
control: S,
|
|
81
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
|
|
82
|
+
/* @__PURE__ */ d(o, {
|
|
83
|
+
htmlFor: "account_holder_name",
|
|
84
|
+
children: y._("Account holder name")
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ d(t, {
|
|
87
|
+
...e,
|
|
88
|
+
id: "account_holder_name",
|
|
89
|
+
placeholder: y._("e.g. James Smith"),
|
|
90
|
+
value: e.value ?? "",
|
|
91
|
+
disabled: x,
|
|
92
|
+
"aria-invalid": !!n
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ d(a, { errors: n ? [n] : [] })
|
|
95
|
+
] }) })
|
|
96
|
+
}), /* @__PURE__ */ d(m, {
|
|
97
|
+
name: "display_name",
|
|
98
|
+
control: S,
|
|
99
|
+
render: ({ field: e, fieldState: { error: s } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
|
|
100
|
+
/* @__PURE__ */ f(o, {
|
|
101
|
+
htmlFor: "display_name",
|
|
102
|
+
className: "ttw:gap-1",
|
|
103
|
+
children: [y._("Account nickname"), /* @__PURE__ */ d(n, {
|
|
104
|
+
variant: "body2",
|
|
105
|
+
color: "muted",
|
|
106
|
+
className: "ttw:leading-snug",
|
|
107
|
+
children: y._("(optional)")
|
|
108
|
+
})]
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ d(t, {
|
|
111
|
+
...e,
|
|
112
|
+
id: "display_name",
|
|
113
|
+
placeholder: y._("e.g. Empire Bank Checking"),
|
|
114
|
+
value: e.value ?? "",
|
|
115
|
+
disabled: x,
|
|
116
|
+
"aria-invalid": !!s
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ d(a, { errors: s ? [s] : [] })
|
|
119
|
+
] }) })
|
|
120
|
+
})]
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ f("div", {
|
|
123
|
+
className: "ttw:flex ttw:gap-4",
|
|
124
|
+
children: [g !== 0 && /* @__PURE__ */ d(e, {
|
|
125
|
+
type: "button",
|
|
126
|
+
variant: "outline",
|
|
127
|
+
className: "ttw:border-border",
|
|
128
|
+
disabled: x,
|
|
129
|
+
onClick: v,
|
|
130
|
+
children: y._("Cancel")
|
|
131
|
+
}), /* @__PURE__ */ d(e, {
|
|
132
|
+
type: "button",
|
|
133
|
+
disabled: x,
|
|
134
|
+
onClick: C((e) => {
|
|
135
|
+
b({ body: l(e) });
|
|
136
|
+
}),
|
|
137
|
+
children: y._("Save account")
|
|
138
|
+
})]
|
|
139
|
+
})
|
|
140
|
+
]
|
|
141
|
+
});
|
|
16
142
|
};
|
|
17
143
|
//#endregion
|
|
18
|
-
export {
|
|
144
|
+
export { g as BankAccountSectionForm };
|
|
@@ -1,8 +1,133 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { Skeleton as t } from "./index53.js";
|
|
4
|
+
import { Typography as n } from "./index61.js";
|
|
5
|
+
import { Field as r, FieldContent as i, FieldError as a } from "./index87.js";
|
|
6
|
+
import { Select as o, SelectContent as s, SelectItem as c, SelectSeparator as l, SelectTrigger as u, SelectValue as d } from "./index107.js";
|
|
7
|
+
import { useUserPermissions as f } from "./index118.js";
|
|
8
|
+
import { getLineLabel as p, getSourceLabel as m } from "./index126.js";
|
|
9
|
+
import { useSelectableBankAccounts as h } from "./index127.js";
|
|
10
|
+
import "./index227.js";
|
|
11
|
+
import { Badge as g } from "./index228.js";
|
|
12
|
+
import { Alert as _, AlertDescription as v, AlertTitle as y } from "./index261.js";
|
|
13
|
+
import { BankAccountSectionForm as b } from "./index491.js";
|
|
14
|
+
import { useEffect as x, useRef as S, useState as C } from "react";
|
|
15
|
+
import { Plus as w, TriangleAlert as T } from "lucide-react";
|
|
16
|
+
import { Fragment as E, jsx as D, jsxs as O } from "@emotion/react/jsx-runtime";
|
|
17
|
+
import { useLingui as k } from "@lingui/react";
|
|
18
|
+
import { Controller as A, useFormContext as j } from "react-hook-form";
|
|
2
19
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js
|
|
3
|
-
var
|
|
4
|
-
let {
|
|
5
|
-
return
|
|
20
|
+
var M = ({ disabled: M, embeddedBankName: N }) => {
|
|
21
|
+
let { i18n: P } = k(), F = S(!1), { control: I, setValue: L, getFieldState: R, clearErrors: z } = j(), [B, V] = C(!1), H = f().has(e.BankAccountWriteOrg), { bankAccounts: U, isLoading: W } = h(), G = R("bank_account_id");
|
|
22
|
+
return x(() => {
|
|
23
|
+
if (U.length === 1 && !W && !F.current) {
|
|
24
|
+
let e = U[0];
|
|
25
|
+
L("bank_account_id", e.id), L("bank_account_type", e.bank_account_type), F.current = !0;
|
|
26
|
+
}
|
|
27
|
+
}, [
|
|
28
|
+
L,
|
|
29
|
+
U,
|
|
30
|
+
W
|
|
31
|
+
]), /* @__PURE__ */ O("div", {
|
|
32
|
+
className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
|
|
33
|
+
children: [/* @__PURE__ */ O("div", {
|
|
34
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
35
|
+
children: [/* @__PURE__ */ D(n, {
|
|
36
|
+
variant: "h4",
|
|
37
|
+
children: P._("Payment instructions")
|
|
38
|
+
}), /* @__PURE__ */ D(n, {
|
|
39
|
+
variant: "body2",
|
|
40
|
+
color: "muted",
|
|
41
|
+
className: "ttw:font-medium",
|
|
42
|
+
children: P._("Tells the customer how they can pay you. We'll include the selected info on the invoice")
|
|
43
|
+
})]
|
|
44
|
+
}), W || U.length > 0 && !B ? /* @__PURE__ */ O("div", {
|
|
45
|
+
className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl",
|
|
46
|
+
children: [/* @__PURE__ */ O("div", {
|
|
47
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
48
|
+
children: [/* @__PURE__ */ D(n, {
|
|
49
|
+
variant: "body2",
|
|
50
|
+
children: P._("Bank account")
|
|
51
|
+
}), /* @__PURE__ */ D(n, {
|
|
52
|
+
variant: "caption",
|
|
53
|
+
color: "muted",
|
|
54
|
+
children: P._("Display your bank account number and routing number")
|
|
55
|
+
})]
|
|
56
|
+
}), W ? /* @__PURE__ */ D(t, { className: "ttw:w-full ttw:h-9 ttw:rounded-md" }) : /* @__PURE__ */ D(A, {
|
|
57
|
+
name: "bank_account_id",
|
|
58
|
+
control: I,
|
|
59
|
+
render: ({ field: e, fieldState: { error: t } }) => {
|
|
60
|
+
let n = U.find((t) => t.id === e.value), f = n ? m(n.bank_account_type, N, P) : null;
|
|
61
|
+
return /* @__PURE__ */ D(r, { children: /* @__PURE__ */ O(i, { children: [/* @__PURE__ */ D("div", {
|
|
62
|
+
className: "ttw:relative",
|
|
63
|
+
children: /* @__PURE__ */ O(o, {
|
|
64
|
+
...e,
|
|
65
|
+
disabled: M,
|
|
66
|
+
value: e.value,
|
|
67
|
+
onValueChange: (t) => {
|
|
68
|
+
if (t === "add_new") V(!0);
|
|
69
|
+
else {
|
|
70
|
+
e.onChange(t);
|
|
71
|
+
let n = U.find((e) => e.id === t);
|
|
72
|
+
n && L("bank_account_type", n.bank_account_type), G?.invalid && z("bank_account_id");
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
children: [/* @__PURE__ */ D(u, {
|
|
76
|
+
id: "bank_account_id",
|
|
77
|
+
className: "ttw:w-full",
|
|
78
|
+
"aria-label": P._("Bank account selector"),
|
|
79
|
+
"aria-invalid": !!t,
|
|
80
|
+
children: /* @__PURE__ */ D(d, {
|
|
81
|
+
placeholder: P._("Select bank account"),
|
|
82
|
+
children: n && /* @__PURE__ */ O("span", {
|
|
83
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2",
|
|
84
|
+
children: [/* @__PURE__ */ D("span", {
|
|
85
|
+
className: "ttw:truncate",
|
|
86
|
+
children: p(n, P)
|
|
87
|
+
}), f && /* @__PURE__ */ D(g, {
|
|
88
|
+
variant: "secondary",
|
|
89
|
+
className: "ttw:shrink-0",
|
|
90
|
+
children: f
|
|
91
|
+
})]
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
}), /* @__PURE__ */ O(s, { children: [U.map((e) => {
|
|
95
|
+
let t = m(e.bank_account_type, N, P);
|
|
96
|
+
return /* @__PURE__ */ D(c, {
|
|
97
|
+
value: e.id,
|
|
98
|
+
children: /* @__PURE__ */ O("span", {
|
|
99
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2",
|
|
100
|
+
children: [/* @__PURE__ */ D("span", {
|
|
101
|
+
className: "ttw:truncate",
|
|
102
|
+
children: p(e, P)
|
|
103
|
+
}), t && /* @__PURE__ */ D("span", {
|
|
104
|
+
className: "ttw:shrink-0 ttw:text-muted-foreground",
|
|
105
|
+
children: t
|
|
106
|
+
})]
|
|
107
|
+
})
|
|
108
|
+
}, e.id);
|
|
109
|
+
}), H && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(l, {}), /* @__PURE__ */ O(c, {
|
|
110
|
+
value: "add_new",
|
|
111
|
+
className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary",
|
|
112
|
+
children: [/* @__PURE__ */ D(w, { className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary" }), P._("Add a new account")]
|
|
113
|
+
})] })] })]
|
|
114
|
+
})
|
|
115
|
+
}), /* @__PURE__ */ D(a, { errors: t ? [t] : [] })] }) });
|
|
116
|
+
}
|
|
117
|
+
})]
|
|
118
|
+
}) : /* @__PURE__ */ D(E, { children: H ? /* @__PURE__ */ D(b, {
|
|
119
|
+
bankAccountsLength: U.length,
|
|
120
|
+
onCreate: (e) => {
|
|
121
|
+
V(!1), L("bank_account_id", e), L("bank_account_type", "BANK_DETAILS"), G?.invalid && z("bank_account_id");
|
|
122
|
+
},
|
|
123
|
+
onCancel: () => V(!1)
|
|
124
|
+
}) : /* @__PURE__ */ O(_, {
|
|
125
|
+
enableClose: !1,
|
|
126
|
+
variant: "warning",
|
|
127
|
+
icon: /* @__PURE__ */ D(T, {}),
|
|
128
|
+
children: [/* @__PURE__ */ D(y, { children: P._("There are no bank accounts on file for this account") }), /* @__PURE__ */ D(v, { children: P._("A bank account is required in order to issue invoices. Contact your company admin to set one up.") })]
|
|
129
|
+
}) })]
|
|
130
|
+
});
|
|
6
131
|
};
|
|
7
132
|
//#endregion
|
|
8
|
-
export {
|
|
133
|
+
export { M as BankAccountSection };
|
|
@@ -1,17 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Textarea as e } from "./index108.js";
|
|
2
|
+
import { Typography as t } from "./index61.js";
|
|
3
|
+
import { Field as n, FieldContent as r, FieldDescription as i, FieldError as a, FieldLabel as o } from "./index87.js";
|
|
4
|
+
import { jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useLingui as l } from "@lingui/react";
|
|
6
|
+
import { Controller as u, useFormContext as d } from "react-hook-form";
|
|
4
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js
|
|
5
|
-
var
|
|
6
|
-
let { i18n:
|
|
7
|
-
return
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
var f = ({ disabled: f }) => {
|
|
9
|
+
let { i18n: p } = l(), { control: m } = d();
|
|
10
|
+
return /* @__PURE__ */ c("div", {
|
|
11
|
+
className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ c("div", {
|
|
14
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
15
|
+
children: [/* @__PURE__ */ s(t, {
|
|
16
|
+
variant: "h4",
|
|
17
|
+
children: p._("Notes")
|
|
18
|
+
}), /* @__PURE__ */ s(t, {
|
|
19
|
+
variant: "body2",
|
|
20
|
+
color: "muted",
|
|
21
|
+
className: "ttw:font-medium",
|
|
22
|
+
children: p._("Provide additional information for your customer.")
|
|
23
|
+
})]
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ s(u, {
|
|
26
|
+
name: "memo",
|
|
27
|
+
control: m,
|
|
28
|
+
render: ({ field: l, fieldState: { error: u } }) => /* @__PURE__ */ s(n, { children: /* @__PURE__ */ c(r, { children: [
|
|
29
|
+
/* @__PURE__ */ c(o, {
|
|
30
|
+
htmlFor: l.name,
|
|
31
|
+
className: "ttw:text-nowrap",
|
|
32
|
+
children: [p._("Opening note to the customer"), /* @__PURE__ */ s(t, {
|
|
33
|
+
variant: "body2",
|
|
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
|
+
] }) })
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ s(u, {
|
|
52
|
+
name: "footer",
|
|
53
|
+
control: m,
|
|
54
|
+
render: ({ field: l, fieldState: { error: u } }) => /* @__PURE__ */ s(n, { children: /* @__PURE__ */ c(r, { children: [
|
|
55
|
+
/* @__PURE__ */ c(o, {
|
|
56
|
+
htmlFor: l.name,
|
|
57
|
+
className: "ttw:text-nowrap",
|
|
58
|
+
children: [p._("Closing note to the customer"), /* @__PURE__ */ s(t, {
|
|
59
|
+
variant: "body2",
|
|
60
|
+
color: "muted",
|
|
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
|
+
]
|
|
14
78
|
});
|
|
15
79
|
};
|
|
16
80
|
//#endregion
|
|
17
|
-
export {
|
|
81
|
+
export { f as NotesSection };
|