@tesouro/embedded-components-react 0.5.138 → 0.5.139
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/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,72 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useLingui as
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index27.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index46.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index471.js";
|
|
4
|
+
import { toast as r } from "react-hot-toast";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return e || u ? /* @__PURE__ */ r(o, {
|
|
13
|
-
in: !0,
|
|
14
|
-
sx: { ":not(.MuiCollapse-hidden)": { marginBottom: 1 } },
|
|
15
|
-
children: /* @__PURE__ */ i(a, {
|
|
16
|
-
severity: "error",
|
|
17
|
-
sx: { "& .MuiAlert-icon": { alignItems: "center" } },
|
|
18
|
-
children: [e && /* @__PURE__ */ r("div", { children: e }), u && /* @__PURE__ */ r(s, {
|
|
19
|
-
dense: !0,
|
|
20
|
-
disablePadding: !0,
|
|
21
|
-
sx: { mt: +!!e },
|
|
22
|
-
children: Object.entries(t).map(([e, t]) => t ? /* @__PURE__ */ r(c, {
|
|
23
|
-
disablePadding: !0,
|
|
24
|
-
children: /* @__PURE__ */ r(l, {
|
|
25
|
-
primary: t,
|
|
26
|
-
primaryTypographyProps: { sx: { color: "inherit" } }
|
|
27
|
-
})
|
|
28
|
-
}, e) : null)
|
|
29
|
-
})]
|
|
30
|
-
})
|
|
31
|
-
}) : null;
|
|
32
|
-
}, f = (r) => {
|
|
33
|
-
let { i18n: i } = u(), a = n(() => Array.isArray(r) ? r : r ? [r] : [], [r]), o = t((t) => {
|
|
34
|
-
for (let n = 0; n < a.length; n++) {
|
|
35
|
-
let r = a[n];
|
|
36
|
-
if (typeof r == "object") {
|
|
37
|
-
let n = e(r, t);
|
|
38
|
-
if (n) return n;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return null;
|
|
42
|
-
}, [a]), s = n(() => o("product.name") ?? o("name"), [o]), c = n(() => o("quantity"), [o]), l = n(() => o("price") ?? o("product.price.value") ?? o("product.price.currency"), [o]), d = n(() => o("tax_rate_value"), [o]), f = n(() => o("product.measure_unit_id") ?? o("product.measure_unit_name") ?? o("measure_unit"), [o]), p = n(() => o("product.type"), [o]), m = n(() => {
|
|
43
|
-
if (a.length !== 0 && !(s || c || l || d || f || p)) return a.some((e) => {
|
|
44
|
-
if (!e || typeof e != "object") return !1;
|
|
45
|
-
let t = Object.keys(e);
|
|
46
|
-
return t.length > 0 && t.some((t) => e[t] != null);
|
|
47
|
-
}) ? i._("Please check the form for errors") : void 0;
|
|
48
|
-
}, [
|
|
49
|
-
a,
|
|
50
|
-
s,
|
|
51
|
-
c,
|
|
52
|
-
l,
|
|
53
|
-
d,
|
|
54
|
-
f,
|
|
55
|
-
p,
|
|
56
|
-
i
|
|
57
|
-
]);
|
|
58
|
-
return {
|
|
59
|
-
generalError: m,
|
|
60
|
-
fieldErrors: {
|
|
61
|
-
name: s,
|
|
62
|
-
quantity: c,
|
|
63
|
-
price: l,
|
|
64
|
-
tax: d,
|
|
65
|
-
measureUnit: f,
|
|
66
|
-
productType: p
|
|
7
|
+
var a = (a) => {
|
|
8
|
+
let { api: o, queryClient: s } = t(), { i18n: c } = i();
|
|
9
|
+
return o.finops.postProducts.useMutation(void 0, {
|
|
10
|
+
onSuccess: async (e) => {
|
|
11
|
+
a?.(e), await o.finops.getProducts.invalidateQueries(s), r.success(n(c._("{name} has been added to the list.", { name: "\0" }), e.name));
|
|
67
12
|
},
|
|
68
|
-
|
|
69
|
-
|
|
13
|
+
onError: (t) => {
|
|
14
|
+
let n = e(c, t, { defaultMessage: "" });
|
|
15
|
+
r.error(n ? c._("Failed to create: {reason}", { reason: n }) : c._("Failed to create"));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
70
18
|
};
|
|
71
19
|
//#endregion
|
|
72
|
-
export {
|
|
20
|
+
export { a as useCreateProduct };
|
|
@@ -1,151 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { InputGroupAddon as r } from "./index109.js";
|
|
6
|
-
import { Combobox as i, ComboboxContent as a, ComboboxEmpty as o, ComboboxInput as s, ComboboxItem as c, ComboboxList as l } from "./index110.js";
|
|
7
|
-
import "./index222.js";
|
|
8
|
-
import { useUserPermissions as u } from "./index118.js";
|
|
9
|
-
import { useCallback as d, useEffect as f, useMemo as p, useState as m } from "react";
|
|
10
|
-
import { Loader2 as h } from "lucide-react";
|
|
11
|
-
import { jsx as g, jsxs as _ } from "@emotion/react/jsx-runtime";
|
|
12
|
-
import { useLingui as v } from "@lingui/react";
|
|
1
|
+
import { useMoniteContext as e } from "./index46.js";
|
|
2
|
+
import { messageWithTruncatedName as t } from "./index471.js";
|
|
3
|
+
import { toast as n } from "react-hot-toast";
|
|
4
|
+
import { useLingui as r } from "@lingui/react";
|
|
13
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js
|
|
14
|
-
var
|
|
15
|
-
let {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
initialPageParam: { query: { pagination_token: void 0 } },
|
|
20
|
-
getNextPageParam: (e) => {
|
|
21
|
-
if (e.next_pagination_token) return { query: { pagination_token: e.next_pagination_token } };
|
|
6
|
+
var i = (i) => {
|
|
7
|
+
let { api: a, queryClient: o } = e(), { i18n: s } = r();
|
|
8
|
+
return a.finops.deleteMeasureUnitsId.useMutation(void 0, {
|
|
9
|
+
onSuccess: async () => {
|
|
10
|
+
i && (await a.finops.getMeasureUnits.invalidateQueries(o), n.success(t(s._("Unit {name} was deleted from the list.", { name: "\0" }), i)));
|
|
22
11
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
let { scrollTop: t, scrollHeight: n, clientHeight: r } = e.currentTarget;
|
|
26
|
-
n - t - r < 100 && U && !W && H();
|
|
27
|
-
}, [
|
|
28
|
-
H,
|
|
29
|
-
U,
|
|
30
|
-
W
|
|
31
|
-
]), K = p(() => B ? B.pages.flatMap((e) => e.data).sort((e, t) => (e.name ?? "").localeCompare(t.name ?? "")) : [], [B]), q = p(() => !K || K.length === 0 ? [] : K.map((e) => {
|
|
32
|
-
let t = w ? w.data.find((t) => t.id === e.measure_unit_id) : void 0;
|
|
33
|
-
return {
|
|
34
|
-
id: e.id,
|
|
35
|
-
label: e.name,
|
|
36
|
-
description: e.description,
|
|
37
|
-
price: e.price,
|
|
38
|
-
smallestAmount: e.smallest_amount,
|
|
39
|
-
measureUnit: t
|
|
40
|
-
};
|
|
41
|
-
}), [K, w]);
|
|
42
|
-
f(() => {
|
|
43
|
-
!M && y && y.length > 0 && !A.length && (K?.find((e) => e?.name === y) || j(y));
|
|
44
|
-
}, [
|
|
45
|
-
y,
|
|
46
|
-
M,
|
|
47
|
-
K,
|
|
48
|
-
A
|
|
49
|
-
]);
|
|
50
|
-
let J = K?.find((e) => e?.id === ee);
|
|
51
|
-
if (!M && y && y.length > 0 && !A.length && !J) {
|
|
52
|
-
let e = K?.find((e) => e?.name === y);
|
|
53
|
-
e && (J = e);
|
|
54
|
-
}
|
|
55
|
-
let Y = J ? J.id : null, X = J ? J.name : A, Z = p(() => {
|
|
56
|
-
let e = X.toLowerCase().trim();
|
|
57
|
-
return !e || J && J.name.toLowerCase() === e ? q : q.filter((t) => t.label.toLowerCase().includes(e));
|
|
58
|
-
}, [
|
|
59
|
-
X,
|
|
60
|
-
q,
|
|
61
|
-
J
|
|
62
|
-
]), Q = p(() => Z.map((e) => e.id), [Z]), te = d(() => {
|
|
63
|
-
N(!0), I(!0);
|
|
64
|
-
}, []), ne = d(() => {
|
|
65
|
-
N(!1);
|
|
66
|
-
}, []), $ = d((e) => {
|
|
67
|
-
if (!e) {
|
|
68
|
-
P(null), j(""), D({
|
|
69
|
-
id: "",
|
|
70
|
-
label: ""
|
|
71
|
-
}, !1);
|
|
72
|
-
return;
|
|
12
|
+
onError: (e) => {
|
|
13
|
+
console.error(e), n.error(s._("Failed to delete Unit."));
|
|
73
14
|
}
|
|
74
|
-
let t = q.find((t) => t.id === e);
|
|
75
|
-
t && (P(t.id), j(""), D(t, !0));
|
|
76
|
-
}, [q, D]), re = d((e, t) => {
|
|
77
|
-
if (t.reason !== "input-change") {
|
|
78
|
-
z || j("");
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
j(e), P(null), z && D(e.trim() ? {
|
|
82
|
-
id: "custom",
|
|
83
|
-
label: e
|
|
84
|
-
} : {
|
|
85
|
-
id: "",
|
|
86
|
-
label: ""
|
|
87
|
-
}, !1);
|
|
88
|
-
}, [z, D]);
|
|
89
|
-
return /* @__PURE__ */ _(i, {
|
|
90
|
-
value: Y,
|
|
91
|
-
onValueChange: $,
|
|
92
|
-
inputValue: X,
|
|
93
|
-
onInputValueChange: re,
|
|
94
|
-
items: Q,
|
|
95
|
-
filter: () => !0,
|
|
96
|
-
disabled: x,
|
|
97
|
-
open: F,
|
|
98
|
-
onOpenChange: I,
|
|
99
|
-
children: [/* @__PURE__ */ g(s, {
|
|
100
|
-
id: `item-selector-${S}`,
|
|
101
|
-
placeholder: z ? O._("e.g., Office supplies") : O._("Search for an item"),
|
|
102
|
-
"aria-invalid": b || void 0,
|
|
103
|
-
maxLength: 100,
|
|
104
|
-
autoFocus: E,
|
|
105
|
-
onFocus: te,
|
|
106
|
-
onBlur: ne,
|
|
107
|
-
onClick: () => {
|
|
108
|
-
F || I(!0);
|
|
109
|
-
},
|
|
110
|
-
onKeyDown: (e) => {
|
|
111
|
-
if (e.key === "Enter") e.preventDefault(), I(!1);
|
|
112
|
-
else if (e.key === "Tab" && F) {
|
|
113
|
-
let e = X.toLowerCase().trim();
|
|
114
|
-
if (!e) return;
|
|
115
|
-
let t = Z.find((t) => t.label.toLowerCase() === e) ?? (Z.length === 1 ? Z[0] : void 0);
|
|
116
|
-
t && ($(t.id), I(!1));
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
className: "ttw:w-full",
|
|
120
|
-
children: V && /* @__PURE__ */ g(r, {
|
|
121
|
-
align: "inline-start",
|
|
122
|
-
children: /* @__PURE__ */ g(h, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" })
|
|
123
|
-
})
|
|
124
|
-
}), /* @__PURE__ */ g(a, {
|
|
125
|
-
container: T,
|
|
126
|
-
className: "ttw:min-w-138",
|
|
127
|
-
children: /* @__PURE__ */ _(l, {
|
|
128
|
-
onScroll: G,
|
|
129
|
-
children: [
|
|
130
|
-
/* @__PURE__ */ g(o, { children: z ? O._("No saved items found - type to add an item") : O._("No saved items found") }),
|
|
131
|
-
Z.map((e) => /* @__PURE__ */ _(c, {
|
|
132
|
-
value: e.id,
|
|
133
|
-
children: [/* @__PURE__ */ g("span", {
|
|
134
|
-
className: "ttw:flex-1 ttw:min-w-0 ttw:truncate",
|
|
135
|
-
children: e.label
|
|
136
|
-
}), /* @__PURE__ */ g("span", {
|
|
137
|
-
className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground",
|
|
138
|
-
children: [e.price && R(e.price.value, e.price.currency), e.measureUnit?.name].filter(Boolean).join(" ")
|
|
139
|
-
})]
|
|
140
|
-
}, e.id)),
|
|
141
|
-
W && /* @__PURE__ */ g("div", {
|
|
142
|
-
className: "ttw:flex ttw:justify-center ttw:py-1",
|
|
143
|
-
children: /* @__PURE__ */ g(h, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" })
|
|
144
|
-
})
|
|
145
|
-
]
|
|
146
|
-
})
|
|
147
|
-
})]
|
|
148
15
|
});
|
|
149
16
|
};
|
|
150
17
|
//#endregion
|
|
151
|
-
export {
|
|
18
|
+
export { i as useDeleteMeasureUnit };
|
|
@@ -1,64 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InputGroup as t, InputGroupAddon as n, InputGroupInput as r } from "./index109.js";
|
|
3
|
-
import "./index222.js";
|
|
4
|
-
import { formatMinorToMajorCurrency as i, parseMajorToMinorCurrency as a } from "./index99.js";
|
|
5
|
-
import { useEffect as o, useMemo as s, useState as c } from "react";
|
|
6
|
-
import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import { useLingui as d } from "@lingui/react";
|
|
1
|
+
import { useMoniteContext as e } from "./index46.js";
|
|
8
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js
|
|
9
|
-
var
|
|
10
|
-
let {
|
|
11
|
-
|
|
12
|
-
maximumFractionDigits: 2
|
|
13
|
-
}), [b]), { decimalSeparator: S, groupSeparator: C } = s(() => {
|
|
14
|
-
let e = new Intl.NumberFormat(b).formatToParts(12345.67);
|
|
15
|
-
return {
|
|
16
|
-
decimalSeparator: e.find((e) => e.type === "decimal")?.value || ".",
|
|
17
|
-
groupSeparator: e.find((e) => e.type === "group")?.value || ""
|
|
18
|
-
};
|
|
19
|
-
}, [b]), [w, T] = c(i(f, x)), [E, D] = c(!1);
|
|
20
|
-
return o(() => {
|
|
21
|
-
if (!E) {
|
|
22
|
-
let e = i(f, x);
|
|
23
|
-
e !== w && T(e);
|
|
24
|
-
}
|
|
25
|
-
}, [
|
|
26
|
-
f,
|
|
27
|
-
E,
|
|
28
|
-
b,
|
|
29
|
-
x,
|
|
30
|
-
w
|
|
31
|
-
]), /* @__PURE__ */ u(t, {
|
|
32
|
-
className: "ttw:max-w-41 ttw:w-full ttw:min-w-29",
|
|
33
|
-
children: [/* @__PURE__ */ l(n, {
|
|
34
|
-
align: "inline-start",
|
|
35
|
-
children: v(m) || m
|
|
36
|
-
}), /* @__PURE__ */ l(r, {
|
|
37
|
-
type: "text",
|
|
38
|
-
inputMode: "decimal",
|
|
39
|
-
className: "ttw:text-right",
|
|
40
|
-
"aria-invalid": p || void 0,
|
|
41
|
-
disabled: h,
|
|
42
|
-
value: w,
|
|
43
|
-
onChange: (e) => {
|
|
44
|
-
let t = e.target.value;
|
|
45
|
-
T(t);
|
|
46
|
-
},
|
|
47
|
-
onFocus: () => {
|
|
48
|
-
D(!0);
|
|
49
|
-
},
|
|
50
|
-
onBlur: (e) => {
|
|
51
|
-
D(!1);
|
|
52
|
-
let t = e.target.value.trim();
|
|
53
|
-
if (t === "") {
|
|
54
|
-
T(i(0, x)), g(0);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
let n = a(t, S, C);
|
|
58
|
-
T(i(n, x)), g(n);
|
|
59
|
-
}
|
|
60
|
-
})]
|
|
61
|
-
});
|
|
3
|
+
var t = (t, n = !0) => {
|
|
4
|
+
let { api: r } = e();
|
|
5
|
+
return r.finops.getProductsId.useQuery({ path: { product_id: t } }, { enabled: n });
|
|
62
6
|
};
|
|
63
7
|
//#endregion
|
|
64
|
-
export {
|
|
8
|
+
export { t as useGetProductById };
|
|
@@ -1,88 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
5
|
-
import { Controller as u } from "react-hook-form";
|
|
1
|
+
import { useMoniteContext as e } from "./index46.js";
|
|
2
|
+
import { toast as t } from "react-hot-toast";
|
|
3
|
+
import { useLingui as n } from "@lingui/react";
|
|
6
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
e !== x && S(e);
|
|
5
|
+
var r = (r, i) => {
|
|
6
|
+
let { i18n: a } = n(), { api: o, queryClient: s } = e();
|
|
7
|
+
return o.finops.deleteProductsId.useMutation({ path: { product_id: r } }, {
|
|
8
|
+
onSuccess: async () => {
|
|
9
|
+
await o.finops.getProducts.invalidateQueries(s), t.success(a._("Product was deleted.")), i?.();
|
|
10
|
+
},
|
|
11
|
+
onError: () => {
|
|
12
|
+
t.error(a._("Failed to delete product."));
|
|
16
13
|
}
|
|
17
|
-
}, [
|
|
18
|
-
y,
|
|
19
|
-
C,
|
|
20
|
-
x
|
|
21
|
-
]);
|
|
22
|
-
let T = (e) => {
|
|
23
|
-
let t = d(e);
|
|
24
|
-
if (t <= 0 && m) {
|
|
25
|
-
v(p);
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
_("quantity", Math.max(b, t), { shouldValidate: !0 });
|
|
29
|
-
};
|
|
30
|
-
return /* @__PURE__ */ l(e, {
|
|
31
|
-
className: "ttw:w-26 ttw:min-w-26 ttw:has-[>[data-align=inline-start]]:[&>input]:pl-0 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0",
|
|
32
|
-
children: [
|
|
33
|
-
/* @__PURE__ */ c(t, {
|
|
34
|
-
align: "inline-start",
|
|
35
|
-
children: /* @__PURE__ */ c(n, {
|
|
36
|
-
type: "button",
|
|
37
|
-
size: "icon-xs",
|
|
38
|
-
disabled: !h || !m && y <= 1,
|
|
39
|
-
onClick: () => T(y - 1),
|
|
40
|
-
children: /* @__PURE__ */ c(o, {})
|
|
41
|
-
})
|
|
42
|
-
}),
|
|
43
|
-
/* @__PURE__ */ c(r, {
|
|
44
|
-
ref: u.ref,
|
|
45
|
-
name: u.name,
|
|
46
|
-
type: "text",
|
|
47
|
-
inputMode: "decimal",
|
|
48
|
-
"aria-invalid": g || void 0,
|
|
49
|
-
value: x,
|
|
50
|
-
className: "ttw:text-center ttw:px-0",
|
|
51
|
-
onFocus: () => w(!0),
|
|
52
|
-
onChange: (e) => {
|
|
53
|
-
let t = f(e.target.value);
|
|
54
|
-
S(t), _("quantity", t === "" || t === "." ? 0 : Number(t), { shouldValidate: !1 });
|
|
55
|
-
},
|
|
56
|
-
onBlur: (e) => {
|
|
57
|
-
w(!1);
|
|
58
|
-
let t = f(e.target.value), n = t === "" || t === "." ? 0 : d(Number(t));
|
|
59
|
-
n <= 0 ? m ? v(p) : (S("1"), _("quantity", 1, { shouldValidate: !0 })) : (S(String(n)), _("quantity", n, { shouldValidate: !0 })), u.onBlur();
|
|
60
|
-
}
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ c(t, {
|
|
63
|
-
align: "inline-end",
|
|
64
|
-
children: /* @__PURE__ */ c(n, {
|
|
65
|
-
type: "button",
|
|
66
|
-
size: "icon-xs",
|
|
67
|
-
disabled: !h,
|
|
68
|
-
onClick: () => T(y + 1),
|
|
69
|
-
children: /* @__PURE__ */ c(s, {})
|
|
70
|
-
})
|
|
71
|
-
})
|
|
72
|
-
]
|
|
73
14
|
});
|
|
74
|
-
}
|
|
75
|
-
name: `line_items.${e}.quantity`,
|
|
76
|
-
control: t,
|
|
77
|
-
render: ({ field: t }) => /* @__PURE__ */ c(p, {
|
|
78
|
-
field: t,
|
|
79
|
-
index: e,
|
|
80
|
-
canRemove: r,
|
|
81
|
-
hasProduct: i,
|
|
82
|
-
hasQuantityError: n,
|
|
83
|
-
onLineItemValueChange: a,
|
|
84
|
-
onRemoveItem: o
|
|
85
|
-
})
|
|
86
|
-
});
|
|
15
|
+
};
|
|
87
16
|
//#endregion
|
|
88
|
-
export {
|
|
17
|
+
export { r as useDeleteProduct };
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index27.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index46.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index471.js";
|
|
4
|
+
import { toast as r } from "react-hot-toast";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
3
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
7
|
+
var a = (a) => {
|
|
8
|
+
let { i18n: o } = i(), { api: s, queryClient: c } = t();
|
|
9
|
+
return s.finops.patchProductsId.useMutation({ path: { product_id: a } }, {
|
|
10
|
+
onSuccess: async (e) => {
|
|
11
|
+
await s.finops.getProducts.invalidateQueries(c), await s.finops.getProductsId.invalidateQueries({ parameters: { path: { product_id: e.id } } }, c), r.success(n(e.type === "product" ? o._("Product {name} was updated.", { name: "\0" }) : o._("Service {name} was updated.", { name: "\0" }), e.name));
|
|
12
|
+
},
|
|
13
|
+
onError: (t) => {
|
|
14
|
+
let n = e(o, t, { defaultMessage: "" });
|
|
15
|
+
r.error(n ? o._("Failed to update: {reason}", { reason: n }) : o._("Failed to update"));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
};
|
|
15
19
|
//#endregion
|
|
16
|
-
export {
|
|
20
|
+
export { a as useUpdateProduct };
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
children: r
|
|
11
|
-
}), o < a.length - 1 && /* @__PURE__ */ t("span", {
|
|
12
|
-
className: "ttw:min-w-[4ch] ttw:shrink-[9999] ttw:truncate",
|
|
13
|
-
title: i,
|
|
14
|
-
children: i
|
|
15
|
-
})] }, o))
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
export { r as messageWithTruncatedName };
|
|
1
|
+
import "./index380.js";
|
|
2
|
+
import "./index449.js";
|
|
3
|
+
import "./index472.js";
|
|
4
|
+
import "./index473.js";
|
|
5
|
+
import "./index479.js";
|
|
6
|
+
import "./index478.js";
|
|
7
|
+
import "./index480.js";
|
|
8
|
+
import "./index481.js";
|
|
9
|
+
import "./index482.js";
|
|
@@ -1,24 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n } from "./index109.js";
|
|
2
|
+
import { useDebounceCallback as r } from "./index218.js";
|
|
3
|
+
import { Table as i, TableBody as a, TableCell as o, TableHead as s, TableHeader as c, TableRow as l } from "./index254.js";
|
|
4
|
+
import { useGetMeasureUnits as u } from "./index449.js";
|
|
5
|
+
import { MeasureUnitsFormRow as d } from "./index474.js";
|
|
6
|
+
import { ConfirmDeleteMeasureUnitDialog as f } from "./index475.js";
|
|
7
|
+
import { TableActions as p } from "./index476.js";
|
|
8
|
+
import "./index477.js";
|
|
9
|
+
import { useDeleteMeasureUnit as m } from "./index479.js";
|
|
10
|
+
import "./index483.js";
|
|
11
|
+
import { useCallback as h, useState as g } from "react";
|
|
12
|
+
import { Loader2 as _, Search as v } from "lucide-react";
|
|
13
|
+
import { Fragment as y, jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
14
|
+
import { useLingui as S } from "@lingui/react";
|
|
6
15
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js
|
|
7
|
-
var
|
|
8
|
-
let {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
var C = () => {
|
|
17
|
+
let { i18n: C } = S(), [w, T] = g(null), [E, D] = g(null), O = !!E, [k, A] = g(""), { data: j, isLoading: M } = u(), N = m(E?.name), P = r((e) => {
|
|
18
|
+
A(e);
|
|
19
|
+
}, 500), F = j?.data?.filter((e) => e.name.toLowerCase().includes(k.toLowerCase()) || e.description && e.description.toLowerCase().includes(k.toLowerCase())) || [], I = h((e) => {
|
|
20
|
+
D(e);
|
|
21
|
+
}, []), L = h(() => {
|
|
22
|
+
D(null);
|
|
23
|
+
}, []), R = h(() => {
|
|
24
|
+
E && N.mutate({ path: { unit_id: E.id } }, { onSuccess: () => L() });
|
|
25
|
+
}, [
|
|
26
|
+
N,
|
|
27
|
+
E,
|
|
28
|
+
L
|
|
29
|
+
]), z = N.isPending, B = () => {
|
|
30
|
+
T(null);
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ x("div", {
|
|
33
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative",
|
|
34
|
+
children: [M ? /* @__PURE__ */ b("div", {
|
|
35
|
+
className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full",
|
|
36
|
+
children: /* @__PURE__ */ b(_, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" })
|
|
37
|
+
}) : /* @__PURE__ */ x(y, { children: [
|
|
38
|
+
z && /* @__PURE__ */ b("div", {
|
|
39
|
+
className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10",
|
|
40
|
+
children: /* @__PURE__ */ b(_, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" })
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ x(e, { children: [/* @__PURE__ */ b(t, {
|
|
43
|
+
align: "inline-start",
|
|
44
|
+
children: /* @__PURE__ */ b(v, {})
|
|
45
|
+
}), /* @__PURE__ */ b(n, {
|
|
46
|
+
placeholder: C._("Search"),
|
|
47
|
+
onChange: (e) => P(e.target.value)
|
|
48
|
+
})] }),
|
|
49
|
+
/* @__PURE__ */ x(i, {
|
|
50
|
+
className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md",
|
|
51
|
+
children: [/* @__PURE__ */ b(c, { children: /* @__PURE__ */ x(l, {
|
|
52
|
+
className: "ttw:hover:bg-transparent ttw:border-border",
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ b(s, {
|
|
55
|
+
className: "ttw:w-[35%]",
|
|
56
|
+
children: C._("Unit label")
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ b(s, {
|
|
59
|
+
className: "ttw:w-[55%]",
|
|
60
|
+
children: C._("Description (optional)")
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ b(s, { className: "ttw:w-[10%]" })
|
|
63
|
+
]
|
|
64
|
+
}) }), /* @__PURE__ */ x(a, { children: [/* @__PURE__ */ b(d, { isEditMode: !1 }), F.map((e) => w?.id === e.id ? /* @__PURE__ */ b(d, {
|
|
65
|
+
isEditMode: !0,
|
|
66
|
+
initialValues: e,
|
|
67
|
+
onCancel: B,
|
|
68
|
+
onEdit: () => T(null),
|
|
69
|
+
id: e.id
|
|
70
|
+
}, e.id) : /* @__PURE__ */ x(l, {
|
|
71
|
+
className: "ttw:border-border",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ b(o, {
|
|
74
|
+
className: "ttw:w-[35%] ttw:text-sm ttw:truncate",
|
|
75
|
+
children: e.name
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ b(o, {
|
|
78
|
+
className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate",
|
|
79
|
+
children: e.description || "—"
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ b(o, {
|
|
82
|
+
className: "ttw:w-[10%]",
|
|
83
|
+
children: /* @__PURE__ */ b(p, {
|
|
84
|
+
permissions: {
|
|
85
|
+
isUpdateAllowed: !0,
|
|
86
|
+
isDeleteAllowed: !0
|
|
87
|
+
},
|
|
88
|
+
onEdit: () => T(e),
|
|
89
|
+
onDelete: () => I(e)
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
}, e.id))] })]
|
|
94
|
+
})
|
|
95
|
+
] }), /* @__PURE__ */ b(f, {
|
|
96
|
+
open: O,
|
|
97
|
+
id: E?.id,
|
|
98
|
+
name: E?.name || "",
|
|
99
|
+
isLoading: z,
|
|
100
|
+
onClose: L,
|
|
101
|
+
onDelete: R
|
|
102
|
+
})]
|
|
21
103
|
});
|
|
22
104
|
};
|
|
23
105
|
//#endregion
|
|
24
|
-
export {
|
|
106
|
+
export { C as ManageMeasureUnitsForm };
|