@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,156 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { getCounterpartEmail as e, getCounterpartName as t } from "./index52.js";
|
|
2
|
+
import { InputGroupAddon as n } from "./index109.js";
|
|
3
|
+
import { Combobox as r, ComboboxContent as i, ComboboxEmpty as a, ComboboxInput as o, ComboboxItem as s, ComboboxList as c } from "./index110.js";
|
|
4
|
+
import { useCounterpartList as l } from "./index131.js";
|
|
5
|
+
import "./index144.js";
|
|
6
|
+
import { useRootElements as u } from "./index211.js";
|
|
7
|
+
import "./index212.js";
|
|
8
|
+
import { Field as d, FieldContent as f, FieldDescription as p, FieldError as m, FieldLabel as h } from "./index87.js";
|
|
9
|
+
import { useMemo as g, useState as _ } from "react";
|
|
10
|
+
import { Loader2 as v, Search as y } from "lucide-react";
|
|
11
|
+
import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
12
|
+
import { useLingui as S } from "@lingui/react";
|
|
13
|
+
import { Controller as C, useFormContext as w } from "react-hook-form";
|
|
5
14
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
id: "customer",
|
|
38
|
-
label: "Customer",
|
|
39
|
-
field: void 0
|
|
40
|
-
}
|
|
41
|
-
], y = {
|
|
42
|
-
date_due_date: "ttw:w-auto",
|
|
43
|
-
date_created_at: "ttw:w-auto",
|
|
44
|
-
date_issue_date: "ttw:w-auto",
|
|
45
|
-
status: "ttw:w-56",
|
|
46
|
-
amount: "ttw:w-64",
|
|
47
|
-
customer: "ttw:w-64"
|
|
48
|
-
};
|
|
49
|
-
function b(b) {
|
|
50
|
-
let { i18n: x } = g(), S = d(), C = S.isMenuOpen || !!S.activePanelId, w = S.activePanelId && y[S.activePanelId] || "ttw:w-52", T = b.allPresets.map((e) => ({
|
|
51
|
-
value: e.value,
|
|
52
|
-
label: e.label,
|
|
53
|
-
group: e.group
|
|
54
|
-
})), E = (e) => {
|
|
55
|
-
e || (S.closeMenu(), S.closePanel());
|
|
56
|
-
}, D = (e) => {
|
|
57
|
-
S.openPanel(e);
|
|
58
|
-
};
|
|
59
|
-
return /* @__PURE__ */ m(n, {
|
|
60
|
-
className: "ttw:pl-4",
|
|
61
|
-
searchSlot: /* @__PURE__ */ m(u, {
|
|
62
|
-
value: b.searchValue,
|
|
63
|
-
onChange: (e) => b.onSearchChange(e.target.value),
|
|
64
|
-
placeholder: "Search by number or customer...",
|
|
65
|
-
className: "ttw:min-w-64"
|
|
66
|
-
}),
|
|
67
|
-
menuSlot: /* @__PURE__ */ h(s, {
|
|
68
|
-
open: C,
|
|
69
|
-
onOpenChange: E,
|
|
70
|
-
children: [/* @__PURE__ */ m(l, {
|
|
71
|
-
asChild: !0,
|
|
72
|
-
children: /* @__PURE__ */ m(r, {
|
|
73
|
-
activeCount: b.activeFilterCount,
|
|
74
|
-
onClick: S.toggleMenu
|
|
75
|
-
})
|
|
76
|
-
}), /* @__PURE__ */ h(c, {
|
|
77
|
-
align: "start",
|
|
78
|
-
className: `ttw:p-0 ${w}`,
|
|
79
|
-
children: [
|
|
80
|
-
S.isMenuOpen && /* @__PURE__ */ m("div", {
|
|
81
|
-
className: "ttw:p-1",
|
|
82
|
-
children: v.map((e) => /* @__PURE__ */ h("button", {
|
|
83
|
-
type: "button",
|
|
84
|
-
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:w-full ttw:px-2 ttw:py-1.5 ttw:rounded-md ttw:text-xs ttw:font-medium ttw:hover:bg-accent ttw:transition-colors ttw:cursor-pointer",
|
|
85
|
-
onClick: () => D(e.id),
|
|
86
|
-
children: [/* @__PURE__ */ m(f, { className: "ttw:size-4 ttw:text-muted-foreground ttw:shrink-0" }), e.label]
|
|
87
|
-
}, e.id))
|
|
88
|
-
}),
|
|
89
|
-
v.filter((e) => e.field !== void 0).map((e) => S.activePanelId === e.id && e.field && /* @__PURE__ */ m(t, {
|
|
90
|
-
from: b.activeDateFields[e.field]?.from,
|
|
91
|
-
to: b.activeDateFields[e.field]?.to,
|
|
92
|
-
onRangeChange: (t) => b.onDateFieldRangeChange(e.field, t),
|
|
93
|
-
selectedPreset: b.activeDateFields[e.field]?.preset,
|
|
94
|
-
onPresetChange: (t) => b.onDateFieldPresetChange(e.field, t),
|
|
95
|
-
presets: T,
|
|
96
|
-
labels: { fieldLabel: _[e.field] }
|
|
97
|
-
}, e.id)),
|
|
98
|
-
S.activePanelId === "status" && /* @__PURE__ */ m(o, {
|
|
99
|
-
options: b.statusOptions,
|
|
100
|
-
selectedValues: b.selectedStatus,
|
|
101
|
-
onSelectionChange: b.onStatusChange
|
|
102
|
-
}),
|
|
103
|
-
S.activePanelId === "amount" && /* @__PURE__ */ m(e, {
|
|
104
|
-
mode: b.amountMode,
|
|
105
|
-
onModeChange: b.onAmountModeChange,
|
|
106
|
-
min: b.amountMin,
|
|
107
|
-
max: b.amountMax,
|
|
108
|
-
onMinChange: b.onAmountMinChange,
|
|
109
|
-
onMaxChange: b.onAmountMaxChange,
|
|
110
|
-
showFlowDirection: !1,
|
|
111
|
-
labels: {
|
|
112
|
-
min: "No less than",
|
|
113
|
-
max: "No more than"
|
|
15
|
+
var T = ({ disabled: T, canCreateCounterpart: E = !0 }) => {
|
|
16
|
+
let { i18n: D } = S(), { root: O } = u(), { control: k, setValue: A, watch: j, clearErrors: M } = w(), { data: N, isLoading: P } = l({ query: { is_customer: !0 } }), [F, I] = _(!1), L = j("counterpart_name") ?? "", R = g(() => N ? N.data.map((n) => ({
|
|
17
|
+
id: n.id,
|
|
18
|
+
name: t(n),
|
|
19
|
+
email: e(n)
|
|
20
|
+
})) : [], [N]), z = g(() => {
|
|
21
|
+
let e = L.toLowerCase().trim();
|
|
22
|
+
return e ? R.filter((t) => t.name.toLowerCase().includes(e) || t.email.toLowerCase().includes(e)) : R;
|
|
23
|
+
}, [R, L]), B = g(() => z.map((e) => e.id), [z]);
|
|
24
|
+
return /* @__PURE__ */ b(C, {
|
|
25
|
+
name: "counterpart_id",
|
|
26
|
+
control: k,
|
|
27
|
+
render: ({ field: e, fieldState: { error: t } }) => {
|
|
28
|
+
let l = (t) => {
|
|
29
|
+
A("counterpart_name", ""), A("counterpart_email", ""), M(["counterpart_id", "counterpart_email"]), e.onChange(t ?? "");
|
|
30
|
+
};
|
|
31
|
+
return /* @__PURE__ */ b(d, { children: /* @__PURE__ */ x(f, { children: [
|
|
32
|
+
/* @__PURE__ */ b(h, {
|
|
33
|
+
htmlFor: "counterpart_id",
|
|
34
|
+
children: D._("Name")
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ x(r, {
|
|
37
|
+
value: e.value || null,
|
|
38
|
+
onValueChange: l,
|
|
39
|
+
inputValue: L,
|
|
40
|
+
onInputValueChange: (t, n) => {
|
|
41
|
+
if (n.reason !== "input-change") {
|
|
42
|
+
E || A("counterpart_name", "");
|
|
43
|
+
return;
|
|
114
44
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
45
|
+
A("counterpart_name", t), e.value && e.onChange(""), E && t.trim() && M("counterpart_id");
|
|
46
|
+
},
|
|
47
|
+
items: B,
|
|
48
|
+
filter: () => !0,
|
|
49
|
+
disabled: T,
|
|
50
|
+
open: F,
|
|
51
|
+
onOpenChange: I,
|
|
52
|
+
children: [/* @__PURE__ */ b(o, {
|
|
53
|
+
id: "counterpart_id",
|
|
54
|
+
placeholder: E ? D._("Search or type to add a customer") : D._("Search for a customer"),
|
|
55
|
+
"aria-invalid": !!t,
|
|
56
|
+
onKeyDown: (e) => {
|
|
57
|
+
if (e.key === "Enter") {
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (e.key === "Tab" && F) {
|
|
62
|
+
let e = L.toLowerCase().trim();
|
|
63
|
+
if (!e) return;
|
|
64
|
+
let t = z.find((t) => t.name.toLowerCase() === e) ?? (z.length === 1 ? z[0] : void 0);
|
|
65
|
+
t && (l(t.id), I(!1));
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
children: /* @__PURE__ */ b(n, {
|
|
69
|
+
align: "inline-start",
|
|
70
|
+
children: P ? /* @__PURE__ */ b(v, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ b(y, { className: "ttw:size-4 ttw:text-muted-foreground" })
|
|
71
|
+
})
|
|
72
|
+
}), /* @__PURE__ */ b(i, {
|
|
73
|
+
container: O,
|
|
74
|
+
children: /* @__PURE__ */ x(c, { children: [/* @__PURE__ */ b(a, { children: E ? D._("No customers found - type to add a customer") : D._("No customers found") }), z.map((e) => /* @__PURE__ */ b(s, {
|
|
75
|
+
value: e.id,
|
|
76
|
+
children: /* @__PURE__ */ x("div", {
|
|
77
|
+
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2",
|
|
78
|
+
children: [/* @__PURE__ */ b("span", { children: e.name }), /* @__PURE__ */ b("span", {
|
|
79
|
+
className: "ttw:text-muted-foreground",
|
|
80
|
+
children: e.email
|
|
81
|
+
})]
|
|
133
82
|
})
|
|
134
|
-
]
|
|
135
|
-
})
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
count: e.count,
|
|
142
|
-
variant: "default",
|
|
143
|
-
onLabelClick: e.key === "date" ? () => {
|
|
144
|
-
S.openPanel("date");
|
|
145
|
-
} : void 0,
|
|
146
|
-
onDismiss: () => b.onDismissChip(e.key)
|
|
147
|
-
}, e.key)), b.activeFilterCount > 0 && /* @__PURE__ */ m("button", {
|
|
148
|
-
type: "button",
|
|
149
|
-
className: "ttw:text-xs ttw:text-muted-foreground ttw:hover:text-foreground ttw:transition-colors ttw:cursor-pointer ttw:whitespace-nowrap",
|
|
150
|
-
onClick: b.onClearAll,
|
|
151
|
-
children: "Clear all"
|
|
152
|
-
})] })
|
|
83
|
+
}, e.id))] })
|
|
84
|
+
})]
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ b(p, { children: E ? D._("Search by customer name or email. New customers will be saved when saving the invoice.") : D._("Search by customer name or email.") }),
|
|
87
|
+
/* @__PURE__ */ b(m, { errors: t ? [t] : [] })
|
|
88
|
+
] }) });
|
|
89
|
+
}
|
|
153
90
|
});
|
|
154
|
-
}
|
|
91
|
+
};
|
|
155
92
|
//#endregion
|
|
156
|
-
export {
|
|
93
|
+
export { T as CounterpartSelector };
|
|
@@ -1,71 +1,202 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { getCounterpartEmail as e, getCounterpartName as t } from "./index52.js";
|
|
2
|
+
import { Button as n } from "./index55.js";
|
|
3
|
+
import { Input as r } from "./index88.js";
|
|
4
|
+
import { useCounterpartAddresses as i } from "./index132.js";
|
|
5
|
+
import "./index144.js";
|
|
6
|
+
import { Typography as a } from "./index61.js";
|
|
7
|
+
import { Separator as o } from "./index63.js";
|
|
8
|
+
import { Field as s, FieldContent as c, FieldError as l, FieldLabel as u } from "./index87.js";
|
|
9
|
+
import { CounterpartDetails as d } from "./index244.js";
|
|
10
|
+
import { CreateCounterpartDialog as f } from "./index259.js";
|
|
11
|
+
import { Avatar as p, AvatarFallback as m } from "./index266.js";
|
|
12
|
+
import { CounterpartSelector as h } from "./index451.js";
|
|
13
|
+
import { useCallback as g, useEffect as _, useRef as v, useState as y } from "react";
|
|
14
|
+
import { Plus as b } from "lucide-react";
|
|
15
|
+
import { Fragment as x, jsx as S, jsxs as C } from "@emotion/react/jsx-runtime";
|
|
16
|
+
import { useLingui as w } from "@lingui/react";
|
|
17
|
+
import { Controller as T, useFormContext as E } from "react-hook-form";
|
|
9
18
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js
|
|
10
|
-
var
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
19
|
+
var D = ({ disabled: D, canCreateCounterpart: O, isEditCustomerOpen: k, handleOpenEditCustomer: A, counterpart: j }) => {
|
|
20
|
+
let { i18n: M } = w(), { watch: N, setValue: P, control: ee, clearErrors: F } = E(), I = N("counterpart_id"), L = v(I), R = N("default_billing_address_id"), z = N("default_shipping_address_id"), { data: B } = i(j?.id), [V, H] = y(!1), [U, W] = y(!1), G = !!I, K = t(j), q = e(j), J = K ? Array.from(K)[0]?.toUpperCase() ?? "?" : "?", Y = N("counterpart_name") ?? "", X = N("counterpart_email") ?? "", Z = X.trim() || q, Q = v(Z), $ = g(() => {
|
|
21
|
+
P("recurrence_recipients_to", void 0, { shouldDirty: !0 }), P("recurrence_recipients_cc", void 0, { shouldDirty: !0 }), P("recurrence_recipients_bcc", void 0, { shouldDirty: !0 });
|
|
22
|
+
}, [P]), te = () => {
|
|
23
|
+
P("counterpart_id", ""), P("counterpart_name", ""), P("counterpart_email", "");
|
|
24
|
+
}, ne = g((e) => {
|
|
25
|
+
let t = {
|
|
26
|
+
email: X,
|
|
27
|
+
phone: "",
|
|
28
|
+
isCustomer: !0,
|
|
29
|
+
isVendor: !1,
|
|
30
|
+
line1: "",
|
|
31
|
+
line2: "",
|
|
32
|
+
city: "",
|
|
33
|
+
state: "",
|
|
34
|
+
postalCode: "",
|
|
35
|
+
country: "US"
|
|
36
|
+
};
|
|
37
|
+
if (e === "individual") {
|
|
38
|
+
let e = Y.trim(), n = e.indexOf(" "), r = n === -1 ? e : e.slice(0, n), i = n === -1 ? "" : e.slice(n + 1);
|
|
39
|
+
return {
|
|
40
|
+
tax_id: "",
|
|
41
|
+
counterpart: {
|
|
42
|
+
...t,
|
|
43
|
+
firstName: r,
|
|
44
|
+
lastName: i
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
tax_id: "",
|
|
50
|
+
counterpart: {
|
|
51
|
+
...t,
|
|
52
|
+
companyName: Y
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}, [Y, X]);
|
|
56
|
+
return _(() => {
|
|
57
|
+
L.current !== I && (L.current = I, P("default_billing_address_id", ""), P("default_shipping_address_id", ""), $());
|
|
58
|
+
}, [
|
|
59
|
+
I,
|
|
60
|
+
P,
|
|
61
|
+
$
|
|
62
|
+
]), _(() => {
|
|
63
|
+
let e = Q.current;
|
|
64
|
+
e !== Z && (Q.current = Z, e && $());
|
|
65
|
+
}, [Z, $]), _(() => {
|
|
66
|
+
if (B?.data?.length && j && j.id === I) {
|
|
67
|
+
if (!R) {
|
|
68
|
+
let e = j.default_billing_address_id || (B.data.length === 1 ? B.data[0].id : "");
|
|
69
|
+
P("default_billing_address_id", e);
|
|
70
|
+
}
|
|
71
|
+
if (!z) {
|
|
72
|
+
let e = j.default_shipping_address_id || "";
|
|
73
|
+
P("default_shipping_address_id", e);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}, [
|
|
77
|
+
B,
|
|
78
|
+
P,
|
|
79
|
+
j,
|
|
80
|
+
I,
|
|
81
|
+
R,
|
|
82
|
+
z
|
|
83
|
+
]), /* @__PURE__ */ C("div", {
|
|
84
|
+
className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ C("div", {
|
|
87
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
88
|
+
children: [/* @__PURE__ */ S(a, {
|
|
89
|
+
variant: "h4",
|
|
90
|
+
children: M._("Customer details")
|
|
91
|
+
}), /* @__PURE__ */ S(a, {
|
|
92
|
+
variant: "body2",
|
|
93
|
+
color: "muted",
|
|
94
|
+
className: "ttw:font-medium",
|
|
95
|
+
children: M._("Who are you billing?")
|
|
96
|
+
})]
|
|
97
|
+
}),
|
|
98
|
+
G ? /* @__PURE__ */ C("div", {
|
|
99
|
+
className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-center ttw:border ttw:border-border ttw:p-3 ttw:rounded-xl",
|
|
100
|
+
children: [/* @__PURE__ */ C("div", {
|
|
101
|
+
className: "ttw:flex ttw:items-center ttw:gap-5",
|
|
102
|
+
children: [/* @__PURE__ */ S(p, {
|
|
103
|
+
className: "ttw:size-16",
|
|
104
|
+
children: /* @__PURE__ */ S(m, {
|
|
105
|
+
className: "ttw:text-sm ttw:font-normal",
|
|
106
|
+
children: J
|
|
107
|
+
})
|
|
108
|
+
}), /* @__PURE__ */ C("div", {
|
|
109
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
110
|
+
children: [/* @__PURE__ */ S(a, {
|
|
111
|
+
variant: "body1",
|
|
112
|
+
className: "ttw:font-medium",
|
|
113
|
+
children: K
|
|
114
|
+
}), /* @__PURE__ */ S(a, {
|
|
115
|
+
variant: "body2",
|
|
116
|
+
color: "muted",
|
|
117
|
+
children: q
|
|
118
|
+
})]
|
|
119
|
+
})]
|
|
120
|
+
}), /* @__PURE__ */ C("div", {
|
|
121
|
+
className: "ttw:flex ttw:items-center",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ S(n, {
|
|
124
|
+
type: "button",
|
|
125
|
+
variant: "ghost",
|
|
126
|
+
className: "ttw:text-primary ttw:hover:text-primary",
|
|
127
|
+
disabled: D,
|
|
128
|
+
onClick: () => H(!0),
|
|
129
|
+
children: M._("View details")
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ S(o, {
|
|
132
|
+
orientation: "vertical",
|
|
133
|
+
className: "ttw:h-6!"
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ S(n, {
|
|
136
|
+
type: "button",
|
|
137
|
+
variant: "ghost",
|
|
138
|
+
className: "ttw:text-primary ttw:hover:text-primary",
|
|
139
|
+
disabled: D,
|
|
140
|
+
onClick: te,
|
|
141
|
+
children: M._("Clear")
|
|
142
|
+
})
|
|
143
|
+
]
|
|
144
|
+
})]
|
|
145
|
+
}) : /* @__PURE__ */ C(x, { children: [
|
|
146
|
+
/* @__PURE__ */ S(h, {
|
|
147
|
+
disabled: D,
|
|
148
|
+
canCreateCounterpart: O
|
|
149
|
+
}),
|
|
150
|
+
O && /* @__PURE__ */ S(T, {
|
|
151
|
+
name: "counterpart_email",
|
|
152
|
+
control: ee,
|
|
153
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ S(s, { children: /* @__PURE__ */ C(c, { children: [
|
|
154
|
+
/* @__PURE__ */ S(u, {
|
|
155
|
+
htmlFor: e.name,
|
|
156
|
+
children: M._("Email")
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ S(r, {
|
|
159
|
+
...e,
|
|
160
|
+
id: e.name,
|
|
161
|
+
type: "email",
|
|
162
|
+
disabled: D,
|
|
163
|
+
"aria-invalid": !!t
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ S(l, { errors: t ? [t] : [] })
|
|
166
|
+
] }) })
|
|
167
|
+
}),
|
|
168
|
+
O && /* @__PURE__ */ C(n, {
|
|
169
|
+
onClick: () => W(!0),
|
|
170
|
+
type: "button",
|
|
171
|
+
variant: "ghost",
|
|
172
|
+
disabled: D,
|
|
173
|
+
className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit",
|
|
174
|
+
children: [/* @__PURE__ */ S(b, {}), M._("Add more details including address, phone, etc.")]
|
|
175
|
+
})
|
|
176
|
+
] }),
|
|
177
|
+
U && /* @__PURE__ */ S(f, {
|
|
178
|
+
open: U,
|
|
179
|
+
onClose: () => {
|
|
180
|
+
W(!1);
|
|
181
|
+
},
|
|
182
|
+
onCreate: (e) => {
|
|
183
|
+
W(!1), P("counterpart_id", e), P("counterpart_name", ""), P("counterpart_email", ""), F(["counterpart_id", "counterpart_email"]);
|
|
184
|
+
},
|
|
185
|
+
getCounterpartDefaultValues: ne,
|
|
186
|
+
customerType: "customer"
|
|
187
|
+
}),
|
|
188
|
+
(k || V) && /* @__PURE__ */ S(d, {
|
|
189
|
+
counterpartId: j?.id || "",
|
|
190
|
+
open: k || V,
|
|
191
|
+
onClose: () => {
|
|
192
|
+
k && A(!1), H(!1);
|
|
193
|
+
},
|
|
194
|
+
isEditMode: k,
|
|
195
|
+
showActionsMenu: !1,
|
|
196
|
+
customerType: "customer"
|
|
197
|
+
})
|
|
198
|
+
]
|
|
68
199
|
});
|
|
69
200
|
};
|
|
70
201
|
//#endregion
|
|
71
|
-
export {
|
|
202
|
+
export { D as CustomerSection };
|