@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,88 +1,151 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { useMoniteContext as t } from "./index46.js";
|
|
4
|
+
import { useCurrencies as n } from "./index62.js";
|
|
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";
|
|
7
13
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js
|
|
8
|
-
|
|
9
|
-
let
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
...m
|
|
14
|
+
var y = "custom", b = ({ fieldName: y, error: b, disabled: x, index: S = 0, defaultCurrency: C, measureUnits: w, container: T, autoFocus: E = !1, onChange: D }) => {
|
|
15
|
+
let { i18n: O } = v(), k = C, [A, j] = m(""), [M, N] = m(!1), [ee, P] = m(null), [F, I] = m(!1), { api: L } = t(), { formatCurrencyToDisplay: R } = n(), z = u().has(e.InvoiceWriteOrg), { data: B, isLoading: V, fetchNextPage: H, hasNextPage: U, isFetchingNextPage: W } = L.finops.getProducts.useInfiniteQuery({ query: {
|
|
16
|
+
limit: 20,
|
|
17
|
+
currency: k
|
|
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 } };
|
|
17
22
|
},
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
23
|
+
enabled: !!k
|
|
24
|
+
}), G = d((e) => {
|
|
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;
|
|
73
|
+
}
|
|
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
|
+
})]
|
|
85
148
|
});
|
|
86
|
-
}
|
|
149
|
+
};
|
|
87
150
|
//#endregion
|
|
88
|
-
export {
|
|
151
|
+
export { y as CUSTOM_ID, b as ItemSelector };
|
|
@@ -1,136 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { Popover as h, PopoverAnchor as g, PopoverContent as _ } from "./index444.js";
|
|
9
|
-
import { dedupePaymentTermsByContent as v } from "./index466.js";
|
|
10
|
-
import { Calendar as y } from "./index467.js";
|
|
11
|
-
import { useMemo as b, useState as x } from "react";
|
|
12
|
-
import { Calendar as S } from "lucide-react";
|
|
13
|
-
import { addYears as C, format as w, max as T, min as E } from "date-fns";
|
|
14
|
-
import { Fragment as D, jsx as O, jsxs as k } from "@emotion/react/jsx-runtime";
|
|
15
|
-
import { useLingui as A } from "@lingui/react";
|
|
16
|
-
import { Controller as j, useFormContext as M } from "react-hook-form";
|
|
1
|
+
import { useCurrencies as e } from "./index62.js";
|
|
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";
|
|
17
8
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js
|
|
18
|
-
var
|
|
19
|
-
let {
|
|
20
|
-
|
|
9
|
+
var f = ({ value: f, error: p = !1, currency: m, disabled: h = !1, onChange: g, locale: _ }) => {
|
|
10
|
+
let { getSymbolFromCurrency: v } = e(), { i18n: y } = d(), b = _ ?? y.locale, x = s(() => new Intl.NumberFormat(b, {
|
|
11
|
+
minimumFractionDigits: 2,
|
|
12
|
+
maximumFractionDigits: 2
|
|
13
|
+
}), [b]), { decimalSeparator: S, groupSeparator: C } = s(() => {
|
|
14
|
+
let e = new Intl.NumberFormat(b).formatToParts(12345.67);
|
|
21
15
|
return {
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
decimalSeparator: e.find((e) => e.type === "decimal")?.value || ".",
|
|
17
|
+
groupSeparator: e.find((e) => e.type === "group")?.value || ""
|
|
24
18
|
};
|
|
25
|
-
}, [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
+
}
|
|
35
60
|
})]
|
|
36
61
|
});
|
|
37
|
-
return /* @__PURE__ */ O(D, { children: I ? /* @__PURE__ */ O(n, { className: "ttw:w-full ttw:h-9" }) : /* @__PURE__ */ O(D, { children: /* @__PURE__ */ O(j, {
|
|
38
|
-
name: "payment_terms_id",
|
|
39
|
-
control: R,
|
|
40
|
-
render: ({ field: n, fieldState: { error: v } }) => /* @__PURE__ */ O(r, { children: /* @__PURE__ */ k(i, { children: [
|
|
41
|
-
/* @__PURE__ */ O(s, {
|
|
42
|
-
htmlFor: "payment_terms_id",
|
|
43
|
-
children: L._("Payment terms")
|
|
44
|
-
}),
|
|
45
|
-
/* @__PURE__ */ k(h, {
|
|
46
|
-
open: V,
|
|
47
|
-
onOpenChange: (e) => {
|
|
48
|
-
H(e), !e && U === "custom" && !G && n.onChange(void 0);
|
|
49
|
-
},
|
|
50
|
-
children: [/* @__PURE__ */ k(c, {
|
|
51
|
-
...n,
|
|
52
|
-
disabled: P,
|
|
53
|
-
value: n.value,
|
|
54
|
-
onValueChange: (e) => {
|
|
55
|
-
if (e === "custom") {
|
|
56
|
-
U !== "custom" && K(void 0), n.onChange(e), Z();
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
n.onChange(e), e === "receipt_due" && B("payment_reminder_id", "", { shouldDirty: !0 }), K(void 0), H(!1);
|
|
60
|
-
},
|
|
61
|
-
children: [/* @__PURE__ */ O(g, {
|
|
62
|
-
className: "ttw:w-full",
|
|
63
|
-
children: /* @__PURE__ */ O(f, {
|
|
64
|
-
id: "payment_terms_id",
|
|
65
|
-
className: "ttw:w-full",
|
|
66
|
-
"aria-invalid": !!v,
|
|
67
|
-
children: /* @__PURE__ */ k(p, {
|
|
68
|
-
placeholder: L._("Select payment terms"),
|
|
69
|
-
children: [
|
|
70
|
-
U === "receipt_due" && /* @__PURE__ */ O("span", {
|
|
71
|
-
className: "ttw:truncate",
|
|
72
|
-
children: L._("Due on receipt")
|
|
73
|
-
}),
|
|
74
|
-
U === "custom" && /* @__PURE__ */ k("span", {
|
|
75
|
-
className: "ttw:flex ttw:w-full ttw:min-w-0 ttw:items-center ttw:justify-between ttw:gap-2",
|
|
76
|
-
children: [/* @__PURE__ */ k("span", {
|
|
77
|
-
className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:gap-1.5",
|
|
78
|
-
children: [/* @__PURE__ */ O(S, { className: t("ttw:size-4 ttw:shrink-0", !G && "ttw:text-muted-foreground") }), /* @__PURE__ */ O("span", {
|
|
79
|
-
className: t("ttw:truncate", !G && "ttw:text-muted-foreground"),
|
|
80
|
-
children: G ? w(G, N) : L._("Mon DD, YYYY")
|
|
81
|
-
})]
|
|
82
|
-
}), /* @__PURE__ */ O("span", {
|
|
83
|
-
className: "ttw:text-muted-foreground ttw:shrink-0 ttw:text-xs",
|
|
84
|
-
children: L._("Custom date")
|
|
85
|
-
})]
|
|
86
|
-
}),
|
|
87
|
-
J && Q(J.name, Y)
|
|
88
|
-
]
|
|
89
|
-
})
|
|
90
|
-
})
|
|
91
|
-
}), /* @__PURE__ */ k(l, { children: [
|
|
92
|
-
/* @__PURE__ */ O(u, {
|
|
93
|
-
value: m,
|
|
94
|
-
children: L._("Due on receipt")
|
|
95
|
-
}),
|
|
96
|
-
!W && /* @__PURE__ */ O(u, {
|
|
97
|
-
value: "custom",
|
|
98
|
-
onPointerUp: Z,
|
|
99
|
-
onClick: Z,
|
|
100
|
-
onKeyDown: (e) => {
|
|
101
|
-
(e.key === "Enter" || e.key === " ") && Z();
|
|
102
|
-
},
|
|
103
|
-
children: L._("Custom date")
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ O(d, {}),
|
|
106
|
-
q.map((t) => /* @__PURE__ */ O(u, {
|
|
107
|
-
value: t.id,
|
|
108
|
-
children: Q(t.name, e(t))
|
|
109
|
-
}, t.id))
|
|
110
|
-
] })]
|
|
111
|
-
}), /* @__PURE__ */ O(_, {
|
|
112
|
-
className: "ttw:w-auto ttw:overflow-hidden ttw:p-0",
|
|
113
|
-
align: "start",
|
|
114
|
-
onFocusOutside: (e) => {
|
|
115
|
-
e.preventDefault();
|
|
116
|
-
},
|
|
117
|
-
children: /* @__PURE__ */ O(y, {
|
|
118
|
-
mode: "single",
|
|
119
|
-
captionLayout: "dropdown",
|
|
120
|
-
selected: G,
|
|
121
|
-
disabled: { before: /* @__PURE__ */ new Date() },
|
|
122
|
-
startMonth: X.start,
|
|
123
|
-
endMonth: X.end,
|
|
124
|
-
onSelect: (e) => {
|
|
125
|
-
K(e), H(!1);
|
|
126
|
-
}
|
|
127
|
-
})
|
|
128
|
-
})]
|
|
129
|
-
}),
|
|
130
|
-
W && /* @__PURE__ */ O(a, { children: L._("Each invoice in the series will have the same payment term.") }),
|
|
131
|
-
/* @__PURE__ */ O(o, { errors: v ? [v] : [] })
|
|
132
|
-
] }) })
|
|
133
|
-
}) }) });
|
|
134
62
|
};
|
|
135
63
|
//#endregion
|
|
136
|
-
export {
|
|
64
|
+
export { f as PriceField };
|
|
@@ -1,41 +1,88 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import * as a from "react";
|
|
5
|
-
import { Calendar as o } from "lucide-react";
|
|
6
|
-
import { format as s } from "date-fns";
|
|
1
|
+
import { InputGroup as e, InputGroupAddon as t, InputGroupButton as n, InputGroupInput as r } from "./index109.js";
|
|
2
|
+
import { useEffect as i, useState as a } from "react";
|
|
3
|
+
import { Minus as o, Plus as s } from "lucide-react";
|
|
7
4
|
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
8
|
-
import {
|
|
5
|
+
import { Controller as u } from "react-hook-form";
|
|
9
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js
|
|
10
|
-
var d =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
7
|
+
var d = (e) => Math.round(e * 100) / 100, f = (e) => {
|
|
8
|
+
let t = e.replace(/[^0-9.]/g, ""), n = t.indexOf(".");
|
|
9
|
+
return n !== -1 && (t = t.slice(0, n + 1) + t.slice(n + 1).replace(/\./g, ""), t = t.slice(0, n + 3)), t;
|
|
10
|
+
}, p = ({ field: u, index: p, canRemove: m, hasProduct: h, hasQuantityError: g, onLineItemValueChange: _, onRemoveItem: v }) => {
|
|
11
|
+
let y = Math.max(0, Number(u.value) || 0), b = +!m, [x, S] = a(y === 0 ? "" : String(y)), [C, w] = a(!1);
|
|
12
|
+
i(() => {
|
|
13
|
+
if (!C) {
|
|
14
|
+
let e = y === 0 ? "" : String(y);
|
|
15
|
+
e !== x && S(e);
|
|
16
|
+
}
|
|
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();
|
|
35
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
|
+
})
|
|
36
71
|
})
|
|
37
|
-
|
|
72
|
+
]
|
|
38
73
|
});
|
|
39
|
-
}
|
|
74
|
+
}, m = ({ index: e, control: t, quantityError: n, canRemove: r, hasProduct: i, onLineItemValueChange: a, onRemoveItem: o }) => /* @__PURE__ */ c(u, {
|
|
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
|
+
});
|
|
40
87
|
//#endregion
|
|
41
|
-
export {
|
|
88
|
+
export { m as QuantityField };
|
|
@@ -1,61 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CurrencyEnumSchema as e } from "./index93.js";
|
|
2
|
+
import { z as t } from "zod";
|
|
2
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
issue: {
|
|
15
|
-
title: n._("Finalize, don't send"),
|
|
16
|
-
description: n._("Finalized but held for manual send.")
|
|
17
|
-
},
|
|
18
|
-
draft: {
|
|
19
|
-
title: n._("Save as draft"),
|
|
20
|
-
description: n._("Created but not finalized. Edit and send when ready.")
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
return {
|
|
25
|
-
...r,
|
|
26
|
-
...t,
|
|
27
|
-
creationModes: {
|
|
28
|
-
issue_and_send: {
|
|
29
|
-
...r.creationModes.issue_and_send,
|
|
30
|
-
...t?.creationModes?.issue_and_send
|
|
31
|
-
},
|
|
32
|
-
issue: {
|
|
33
|
-
...r.creationModes.issue,
|
|
34
|
-
...t?.creationModes?.issue
|
|
35
|
-
},
|
|
36
|
-
draft: {
|
|
37
|
-
...r.creationModes.draft,
|
|
38
|
-
...t?.creationModes?.draft
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
}, n = (t) => {
|
|
43
|
-
let { i18n: n } = e();
|
|
44
|
-
return {
|
|
45
|
-
title: n._("Email sent with each invoice"),
|
|
46
|
-
description: n._("The same recipients, subject, and message are used for every invoice in the series."),
|
|
47
|
-
to: n._("To"),
|
|
48
|
-
cc: n._("Cc"),
|
|
49
|
-
bcc: n._("Bcc"),
|
|
50
|
-
subject: n._("Subject"),
|
|
51
|
-
message: n._("Message"),
|
|
52
|
-
recipientPlaceholder: n._("name@example.com"),
|
|
53
|
-
messagePlaceholder: n._("e.g., Thank you for your business"),
|
|
54
|
-
footnote: n._("Each invoice is finalized and emailed automatically on its schedule."),
|
|
55
|
-
cancel: n._("Cancel"),
|
|
56
|
-
save: n._("Save"),
|
|
57
|
-
...t
|
|
58
|
-
};
|
|
59
|
-
};
|
|
4
|
+
var n = (n) => t.object({
|
|
5
|
+
name: t.string().trim().min(1, n._("Product name is required")).max(100, n._("Product name must be 100 characters or less")).meta({ title: n._("Product Name") }),
|
|
6
|
+
type: t.enum(["product", "service"], n._("Product type is required")).meta({ title: n._("Type") }),
|
|
7
|
+
pricePerUnit: t.number().min(0, n._("Price per unit must be 0 or greater")).meta({ title: n._("Price Per Unit") }),
|
|
8
|
+
currency: e.meta({ title: n._("Currency") }),
|
|
9
|
+
description: t.string().trim().max(255, n._("Description must be 255 characters or less")).optional().meta({ title: n._("Description") }),
|
|
10
|
+
measureUnitId: t.string().optional().meta({ title: n._("Unit") })
|
|
11
|
+
}), r = (e) => t.object({
|
|
12
|
+
name: t.string().trim().min(1, e._("Unit label is required")),
|
|
13
|
+
description: t.string().trim().optional()
|
|
14
|
+
});
|
|
60
15
|
//#endregion
|
|
61
|
-
export {
|
|
16
|
+
export { r as getMeasureUnitValidationSchema, n as getProductValidationSchema };
|