@tesouro/embedded-components-react 0.5.136 → 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/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/monite-sdk.js +50 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +26 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +145 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +214 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +5 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +113 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +93 -79
- 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/counterpart-management/data-access/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
- 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/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +539 -533
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +0 -97
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index2.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index3.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index4.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index5.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index6.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index7.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/index.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/TagSelectorField.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/helpers.js +0 -38
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/labels.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/permissions.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/useTagCreateForm.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index2.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index4.js +0 -4
|
@@ -1,20 +1,76 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
1
|
+
import { Typography as e } from "./index61.js";
|
|
2
|
+
import { Badge as t } from "./index228.js";
|
|
3
|
+
import { AccordionContent as n, AccordionItem as r, AccordionTrigger as i } from "./index506.js";
|
|
4
|
+
import { Check as a } from "lucide-react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useLingui as c } from "@lingui/react";
|
|
4
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js
|
|
5
|
-
var
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
var l = ({ attachments: l }) => {
|
|
9
|
+
let { i18n: u } = c();
|
|
10
|
+
return /* @__PURE__ */ s(r, {
|
|
11
|
+
value: "attachments",
|
|
12
|
+
children: [/* @__PURE__ */ o(i, { children: /* @__PURE__ */ s("span", {
|
|
13
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
14
|
+
children: [/* @__PURE__ */ o("span", {
|
|
15
|
+
className: "ttw:group-hover:underline",
|
|
16
|
+
children: u._("Attachments")
|
|
17
|
+
}), /* @__PURE__ */ o(t, {
|
|
18
|
+
variant: "secondary",
|
|
19
|
+
className: "ttw:rounded-full",
|
|
20
|
+
children: l.length
|
|
21
|
+
})]
|
|
22
|
+
}) }), /* @__PURE__ */ o(n, { children: l.length === 0 ? /* @__PURE__ */ o(e, {
|
|
23
|
+
variant: "body2",
|
|
24
|
+
color: "muted",
|
|
25
|
+
children: u._("No attached files")
|
|
26
|
+
}) : /* @__PURE__ */ s("table", {
|
|
27
|
+
className: "ttw:w-full ttw:border-collapse",
|
|
28
|
+
children: [/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ s("tr", {
|
|
29
|
+
className: "ttw:border-b ttw:border-border",
|
|
30
|
+
children: [/* @__PURE__ */ o("th", {
|
|
31
|
+
scope: "col",
|
|
32
|
+
className: "ttw:py-2 ttw:text-left",
|
|
33
|
+
children: /* @__PURE__ */ o(e, {
|
|
34
|
+
component: "span",
|
|
35
|
+
variant: "caption",
|
|
36
|
+
color: "muted",
|
|
37
|
+
children: u._("File")
|
|
38
|
+
})
|
|
39
|
+
}), /* @__PURE__ */ o("th", {
|
|
40
|
+
scope: "col",
|
|
41
|
+
className: "ttw:py-2 ttw:text-right",
|
|
42
|
+
children: /* @__PURE__ */ o(e, {
|
|
43
|
+
component: "span",
|
|
44
|
+
variant: "caption",
|
|
45
|
+
color: "muted",
|
|
46
|
+
children: u._("Emailed")
|
|
47
|
+
})
|
|
48
|
+
})]
|
|
49
|
+
}) }), /* @__PURE__ */ o("tbody", { children: l.map((e) => /* @__PURE__ */ s("tr", {
|
|
50
|
+
className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
|
|
51
|
+
children: [/* @__PURE__ */ o("td", {
|
|
52
|
+
className: "ttw:py-3",
|
|
53
|
+
children: /* @__PURE__ */ o("a", {
|
|
54
|
+
href: e.url,
|
|
55
|
+
target: "_blank",
|
|
56
|
+
rel: "noreferrer",
|
|
57
|
+
className: "ttw:text-primary ttw:hover:underline",
|
|
58
|
+
children: e.name
|
|
59
|
+
})
|
|
60
|
+
}), /* @__PURE__ */ o("td", {
|
|
61
|
+
className: "ttw:py-3 ttw:text-right ttw:align-middle",
|
|
62
|
+
children: e.include_in_email ? /* @__PURE__ */ o(a, {
|
|
63
|
+
role: "img",
|
|
64
|
+
"aria-label": u._("Included in email"),
|
|
65
|
+
className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600"
|
|
66
|
+
}) : /* @__PURE__ */ o("span", {
|
|
67
|
+
className: "ttw:sr-only",
|
|
68
|
+
children: u._("Not included in email")
|
|
69
|
+
})
|
|
70
|
+
})]
|
|
71
|
+
}, e.id)) })]
|
|
72
|
+
}) })]
|
|
73
|
+
});
|
|
18
74
|
};
|
|
19
75
|
//#endregion
|
|
20
|
-
export {
|
|
76
|
+
export { l as InvoiceDetailsAttachments };
|
|
@@ -1,48 +1,75 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuditHistoryList as e } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { Scope as t } from "../../shared/data-access/dist/lib/scopes.js";
|
|
3
|
+
import "../../shared/data-access/dist/index.js";
|
|
4
|
+
import { buildReceivableAuditHistory as n } from "../../shared/util/dist/lib/auditHistory/buildReceivableAuditHistory.js";
|
|
5
|
+
import { useMoniteContext as r } from "./index46.js";
|
|
6
|
+
import { useCurrencies as i } from "./index62.js";
|
|
7
|
+
import { useEntityUserNames as a } from "./index135.js";
|
|
8
|
+
import "./index222.js";
|
|
9
|
+
import { Typography as o } from "./index61.js";
|
|
10
|
+
import { AUDIT_HISTORY_SECTION as s } from "./index92.js";
|
|
11
|
+
import { useUserPermissions as c } from "./index118.js";
|
|
12
|
+
import { createReceivableAuditHistoryLabels as l } from "./index159.js";
|
|
13
|
+
import "./index182.js";
|
|
14
|
+
import { useGetReceivableHistory as u } from "./index188.js";
|
|
15
|
+
import { Badge as d } from "./index228.js";
|
|
16
|
+
import { AccordionContent as f, AccordionItem as p, AccordionTrigger as m } from "./index506.js";
|
|
17
|
+
import { useMemo as h } from "react";
|
|
18
|
+
import { jsx as g, jsxs as _ } from "@emotion/react/jsx-runtime";
|
|
19
|
+
import { useLingui as v } from "@lingui/react";
|
|
2
20
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
var y = ({ invoice: y, isOpen: b = !1 }) => {
|
|
22
|
+
let { i18n: x } = v(), { locale: S } = r(), { formatCurrencyToDisplay: C } = i(), w = u({ receivable_id: y.id }), T = h(() => w.data?.data ?? [], [w.data]), E = h(() => [...new Set(T.filter((e) => e.recorded_by === "user").map((e) => e.entity_user_id).filter((e) => !!e))], [T]), D = c().has(t.UserReadOrg), { userNames: O, isError: k } = a({
|
|
23
|
+
entityUserIds: E,
|
|
24
|
+
enabled: b && D
|
|
25
|
+
}), A = h(() => l({
|
|
26
|
+
i18n: x,
|
|
27
|
+
locale: S,
|
|
28
|
+
formatCurrencyToDisplay: C
|
|
29
|
+
}), [
|
|
30
|
+
x,
|
|
31
|
+
S,
|
|
32
|
+
C
|
|
33
|
+
]), j = h(() => n(T, O, A, {
|
|
34
|
+
documentType: "invoice",
|
|
35
|
+
currency: y.currency,
|
|
36
|
+
documentNumber: y.document_id,
|
|
37
|
+
dueDate: y.due_date
|
|
38
|
+
}), [
|
|
39
|
+
T,
|
|
40
|
+
O,
|
|
41
|
+
A,
|
|
42
|
+
y.currency,
|
|
43
|
+
y.document_id,
|
|
44
|
+
y.due_date
|
|
45
|
+
]);
|
|
46
|
+
return /* @__PURE__ */ _(p, {
|
|
47
|
+
value: s,
|
|
48
|
+
children: [/* @__PURE__ */ g(m, { children: /* @__PURE__ */ _("span", {
|
|
49
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
50
|
+
children: [/* @__PURE__ */ g("span", {
|
|
51
|
+
className: "ttw:group-hover:underline",
|
|
52
|
+
children: x._("Audit history")
|
|
53
|
+
}), w.data && !w.isLoading && !w.isError ? /* @__PURE__ */ g(d, {
|
|
54
|
+
variant: "secondary",
|
|
55
|
+
className: "ttw:rounded-full",
|
|
56
|
+
children: j.length
|
|
57
|
+
}) : null]
|
|
58
|
+
}) }), /* @__PURE__ */ _(f, { children: [D && k && E.length > 0 ? /* @__PURE__ */ g(o, {
|
|
59
|
+
variant: "caption",
|
|
60
|
+
color: "muted",
|
|
61
|
+
children: x._("Some names could not be loaded.")
|
|
62
|
+
}) : null, /* @__PURE__ */ g(e, {
|
|
63
|
+
rows: j,
|
|
64
|
+
isLoading: w.isLoading,
|
|
65
|
+
isError: w.isError,
|
|
66
|
+
labels: {
|
|
67
|
+
empty: x._("No history yet."),
|
|
68
|
+
loading: x._("Loading history"),
|
|
69
|
+
error: x._("The audit history could not be loaded.")
|
|
30
70
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
let s = o.getBoundingClientRect(), c = Math.round(s.width);
|
|
34
|
-
document.body.removeChild(o);
|
|
35
|
-
let l = c > 0 ? c : i, u = Math.round(n.width * l), d = Math.round(n.height * l);
|
|
36
|
-
a({
|
|
37
|
-
width: u,
|
|
38
|
-
height: d,
|
|
39
|
-
dpi: l
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
return e(), window.addEventListener("resize", e), () => {
|
|
43
|
-
window.removeEventListener("resize", e);
|
|
44
|
-
};
|
|
45
|
-
}, []), i;
|
|
71
|
+
})] })]
|
|
72
|
+
});
|
|
46
73
|
};
|
|
47
74
|
//#endregion
|
|
48
|
-
export {
|
|
75
|
+
export { y as InvoiceDetailsAuditHistory };
|
|
@@ -1,48 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { LETTER_PX as r, useLetterDimensions as i } from "./index512.js";
|
|
6
|
-
import { useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
1
|
+
import { Button as e } from "./index55.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { XIcon as n } from "lucide-react";
|
|
4
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
7
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
x,
|
|
22
|
-
m,
|
|
23
|
-
C,
|
|
24
|
-
w,
|
|
25
|
-
h
|
|
26
|
-
]);
|
|
27
|
-
n(T, 100);
|
|
28
|
-
let { observe: E, disconnect: D } = t(T, 50);
|
|
29
|
-
return o(() => {
|
|
30
|
-
if (typeof window > "u") return;
|
|
31
|
-
let e = setTimeout(() => {
|
|
32
|
-
T(), b.current = !0;
|
|
33
|
-
}, g);
|
|
34
|
-
return l.current && E(l.current), () => {
|
|
35
|
-
clearTimeout(e), D();
|
|
36
|
-
};
|
|
37
|
-
}, [
|
|
38
|
-
E,
|
|
39
|
-
D,
|
|
40
|
-
g,
|
|
41
|
-
T,
|
|
42
|
-
l
|
|
43
|
-
]), o(() => {
|
|
44
|
-
l.current && b.current && E(l.current);
|
|
45
|
-
}, [l, E]), v;
|
|
46
|
-
};
|
|
6
|
+
var i = t(function({ label: t, onClose: i, variant: a = "ghost", size: o = "icon", onClick: s, ...c }, l) {
|
|
7
|
+
return /* @__PURE__ */ r(e, {
|
|
8
|
+
ref: l,
|
|
9
|
+
variant: a,
|
|
10
|
+
size: o,
|
|
11
|
+
...c,
|
|
12
|
+
"aria-label": t,
|
|
13
|
+
onClick: (e) => {
|
|
14
|
+
s?.(e), i();
|
|
15
|
+
},
|
|
16
|
+
children: /* @__PURE__ */ r(n, { className: "ttw:size-4" })
|
|
17
|
+
});
|
|
18
|
+
});
|
|
47
19
|
//#endregion
|
|
48
|
-
export {
|
|
20
|
+
export { i as InvoiceDetailsCloseButton };
|
|
@@ -1,16 +1,181 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useMoniteContext as e } from "./index46.js";
|
|
2
|
+
import { useCounterpartById as t } from "./index47.js";
|
|
3
|
+
import { getCounterpartEmail as n, getCounterpartName as r } from "./index52.js";
|
|
4
|
+
import { Button as i } from "./index55.js";
|
|
5
|
+
import { Input as a } from "./index88.js";
|
|
6
|
+
import { Textarea as o } from "./index108.js";
|
|
7
|
+
import { useGetReceivableById as s } from "./index143.js";
|
|
8
|
+
import "./index144.js";
|
|
9
|
+
import { DialogDescription as c, DialogFooter as l, DialogHeader as u, DialogTitle as d } from "./index57.js";
|
|
10
|
+
import { Typography as f } from "./index61.js";
|
|
11
|
+
import { invalidateReceivableHistory as p } from "./index157.js";
|
|
12
|
+
import { invalidateReceivableLists as m } from "./index158.js";
|
|
13
|
+
import { formatFileSize as h } from "./index172.js";
|
|
14
|
+
import "./index182.js";
|
|
15
|
+
import { useEffect as g, useMemo as _, useState as v } from "react";
|
|
16
|
+
import { Check as y, Send as b } from "lucide-react";
|
|
17
|
+
import { Fragment as x, jsx as S, jsxs as C } from "@emotion/react/jsx-runtime";
|
|
18
|
+
import { toast as w } from "react-hot-toast";
|
|
19
|
+
import { useLingui as T } from "@lingui/react";
|
|
3
20
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
21
|
+
var E = ({ receivableId: E, counterpartId: D, onSkip: O, onSent: k, isEditFlow: A = !1 }) => {
|
|
22
|
+
let { i18n: j } = T(), { api: M, queryClient: N, entityId: P } = e(), { data: F } = s(E, !!E), { data: I } = t(D), { data: L } = M.finops.getEntitiesIdPaymentMethods.useQuery({ path: { entity_id: P } }), { mutateAsync: R } = M.finops.postReceivablesIdSend.useMutation(), { mutateAsync: z } = M.finops.postPaymentLinks.useMutation({}), B = r(I), V = n(I), H = F, U = H?.document_id, W = H?.attachments ?? [], G = _(() => B ? U ? j._("Invoice #{documentId} for {name}", {
|
|
23
|
+
documentId: U,
|
|
24
|
+
name: B
|
|
25
|
+
}) : j._("Invoice for {name}", { name: B }) : "", [
|
|
26
|
+
U,
|
|
27
|
+
B,
|
|
28
|
+
j
|
|
29
|
+
]), [K, q] = v(""), [J, Y] = v(!1), [X, Z] = v(""), [Q, $] = v(!1);
|
|
30
|
+
return g(() => {
|
|
31
|
+
!J && G && q(G);
|
|
32
|
+
}, [G, J]), /* @__PURE__ */ C(x, { children: [
|
|
33
|
+
/* @__PURE__ */ S(u, {
|
|
34
|
+
className: "ttw:border-b ttw:border-border ttw:p-6",
|
|
35
|
+
children: /* @__PURE__ */ C("div", {
|
|
36
|
+
className: "ttw:flex ttw:items-center ttw:gap-4",
|
|
37
|
+
children: [/* @__PURE__ */ S("span", {
|
|
38
|
+
className: "ttw:flex ttw:size-10 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50",
|
|
39
|
+
children: S(A ? b : y, { className: "ttw:size-6 ttw:text-green-700" })
|
|
40
|
+
}), /* @__PURE__ */ C("div", {
|
|
41
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
42
|
+
children: [/* @__PURE__ */ S(d, { children: A ? j._("Send a copy to {name}?", { name: B }) : j._("Invoice issued. Send a copy to {name}?", { name: B }) }), /* @__PURE__ */ S(c, {
|
|
43
|
+
className: "ttw:text-xs",
|
|
44
|
+
children: j._("The customer will be emailed a copy of the invoice with payment instructions.")
|
|
45
|
+
})]
|
|
46
|
+
})]
|
|
47
|
+
})
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ C("div", {
|
|
50
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-6",
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ C("div", {
|
|
53
|
+
className: "ttw:flex ttw:items-center ttw:gap-4",
|
|
54
|
+
children: [/* @__PURE__ */ S(f, {
|
|
55
|
+
variant: "body2",
|
|
56
|
+
color: "muted",
|
|
57
|
+
className: "ttw:w-16 ttw:shrink-0",
|
|
58
|
+
children: j._("To")
|
|
59
|
+
}), /* @__PURE__ */ C(f, {
|
|
60
|
+
variant: "body2",
|
|
61
|
+
children: [B, V ? ` <${V}>` : ""]
|
|
62
|
+
})]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ C("div", {
|
|
65
|
+
className: "ttw:flex ttw:items-center ttw:gap-4",
|
|
66
|
+
children: [/* @__PURE__ */ S(f, {
|
|
67
|
+
variant: "body2",
|
|
68
|
+
color: "muted",
|
|
69
|
+
className: "ttw:w-16 ttw:shrink-0",
|
|
70
|
+
children: j._("Subject")
|
|
71
|
+
}), /* @__PURE__ */ S(a, {
|
|
72
|
+
className: "ttw:flex-1",
|
|
73
|
+
value: K,
|
|
74
|
+
onChange: (e) => {
|
|
75
|
+
q(e.target.value), Y(!0);
|
|
76
|
+
},
|
|
77
|
+
disabled: Q
|
|
78
|
+
})]
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ C("div", {
|
|
81
|
+
className: "ttw:flex ttw:items-start ttw:gap-4",
|
|
82
|
+
children: [/* @__PURE__ */ S(f, {
|
|
83
|
+
variant: "body2",
|
|
84
|
+
color: "muted",
|
|
85
|
+
className: "ttw:w-16 ttw:shrink-0 ttw:pt-2",
|
|
86
|
+
children: j._("Message")
|
|
87
|
+
}), /* @__PURE__ */ S(o, {
|
|
88
|
+
className: "ttw:flex-1",
|
|
89
|
+
value: X,
|
|
90
|
+
onChange: (e) => Z(e.target.value),
|
|
91
|
+
placeholder: j._("e.g., Thank you for your business"),
|
|
92
|
+
disabled: Q
|
|
93
|
+
})]
|
|
94
|
+
}),
|
|
95
|
+
W.length > 0 && /* @__PURE__ */ C("div", {
|
|
96
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pl-20",
|
|
97
|
+
children: [/* @__PURE__ */ C("div", {
|
|
98
|
+
className: "ttw:flex ttw:flex-col",
|
|
99
|
+
children: [/* @__PURE__ */ S(f, {
|
|
100
|
+
variant: "body2",
|
|
101
|
+
color: "muted",
|
|
102
|
+
children: j._("Attachments")
|
|
103
|
+
}), /* @__PURE__ */ S(f, {
|
|
104
|
+
variant: "caption",
|
|
105
|
+
color: "muted",
|
|
106
|
+
children: j._("To change what files are attached to the email, you will need to update the invoice.")
|
|
107
|
+
})]
|
|
108
|
+
}), /* @__PURE__ */ S("ul", {
|
|
109
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
110
|
+
children: W.map((e) => /* @__PURE__ */ C("li", {
|
|
111
|
+
className: "ttw:rounded-lg ttw:bg-muted ttw:px-2 ttw:py-1 ttw:text-sm ttw:font-medium",
|
|
112
|
+
children: [
|
|
113
|
+
e.name,
|
|
114
|
+
" ",
|
|
115
|
+
/* @__PURE__ */ C("span", {
|
|
116
|
+
className: "ttw:text-muted-foreground",
|
|
117
|
+
children: [
|
|
118
|
+
"(",
|
|
119
|
+
h(e.size),
|
|
120
|
+
")"
|
|
121
|
+
]
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
}, e.id))
|
|
125
|
+
})]
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ C(l, {
|
|
130
|
+
className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6",
|
|
131
|
+
children: [/* @__PURE__ */ S(i, {
|
|
132
|
+
type: "button",
|
|
133
|
+
variant: "outline",
|
|
134
|
+
className: "ttw:flex-1 ttw:border-border",
|
|
135
|
+
disabled: Q,
|
|
136
|
+
onClick: O,
|
|
137
|
+
children: A ? j._("Cancel") : j._("Skip")
|
|
138
|
+
}), /* @__PURE__ */ S(i, {
|
|
139
|
+
type: "button",
|
|
140
|
+
variant: "default",
|
|
141
|
+
className: "ttw:flex-1",
|
|
142
|
+
disabled: Q || !K.trim() || !X.trim(),
|
|
143
|
+
onClick: async () => {
|
|
144
|
+
$(!0);
|
|
145
|
+
try {
|
|
146
|
+
let e = L ? L.data.filter(({ status: e, direction: t }) => e === "active" && t === "receive") : [];
|
|
147
|
+
e.length === 0 ? w.error(j._("You haven't onboarded for any payment method. Invoice is sent without a payment link.")) : await z({
|
|
148
|
+
recipient: {
|
|
149
|
+
id: P,
|
|
150
|
+
type: "entity"
|
|
151
|
+
},
|
|
152
|
+
payment_methods: e.map((e) => e.type),
|
|
153
|
+
object: {
|
|
154
|
+
id: E,
|
|
155
|
+
type: "receivable"
|
|
156
|
+
}
|
|
157
|
+
}), await R({
|
|
158
|
+
path: { receivable_id: E },
|
|
159
|
+
body: {
|
|
160
|
+
subject_text: K,
|
|
161
|
+
body_text: X,
|
|
162
|
+
recipients: V ? { to: [V] } : void 0
|
|
163
|
+
}
|
|
164
|
+
}), await Promise.all([
|
|
165
|
+
m(M, N),
|
|
166
|
+
M.finops.getReceivablesId.invalidateQueries({ parameters: { path: { receivable_id: E } } }, N),
|
|
167
|
+
p(M, N, E)
|
|
168
|
+
]), w.success(j._("Invoice sent successfully")), k();
|
|
169
|
+
} catch {
|
|
170
|
+
w.error(j._("Failed to send invoice."));
|
|
171
|
+
} finally {
|
|
172
|
+
$(!1);
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
children: j._("Send invoice")
|
|
176
|
+
})]
|
|
177
|
+
})
|
|
178
|
+
] });
|
|
179
|
+
};
|
|
15
180
|
//#endregion
|
|
16
|
-
export {
|
|
181
|
+
export { E as ActionsModalIssueStep };
|
|
@@ -1,44 +1,144 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { useMoniteContext as e } from "./index46.js";
|
|
2
|
+
import { useCurrencies as t } from "./index62.js";
|
|
3
|
+
import { Button as n } from "./index55.js";
|
|
4
|
+
import "./index222.js";
|
|
5
|
+
import { DialogFooter as r, DialogHeader as i, DialogTitle as a } from "./index57.js";
|
|
6
|
+
import { Typography as o } from "./index61.js";
|
|
7
|
+
import { Separator as s } from "./index63.js";
|
|
8
|
+
import { Checkbox as c } from "./index105.js";
|
|
9
|
+
import { useGetMeasureUnits as l } from "./index449.js";
|
|
10
|
+
import { useMemo as u, useState as d } from "react";
|
|
11
|
+
import { Check as f } from "lucide-react";
|
|
12
|
+
import { Fragment as p, jsx as m, jsxs as h } from "@emotion/react/jsx-runtime";
|
|
13
|
+
import { toast as g } from "react-hot-toast";
|
|
14
|
+
import { useLingui as _ } from "@lingui/react";
|
|
8
15
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js
|
|
9
|
-
var
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
invoiceData: u,
|
|
20
|
-
entityData: d,
|
|
21
|
-
paymentTerms: f,
|
|
22
|
-
measureUnits: h?.data || []
|
|
16
|
+
var v = ({ inlineLineItems: v, title: y, onClose: b }) => {
|
|
17
|
+
let { i18n: x } = _(), { api: S, queryClient: C } = e(), { formatCurrencyToDisplay: w } = t(), { data: T } = l(), { mutateAsync: E } = S.finops.postProducts.useMutation(), D = u(() => v.map((e, t) => ({
|
|
18
|
+
key: e.id ?? String(t),
|
|
19
|
+
lineItem: e
|
|
20
|
+
})), [v]), [O, k] = d(() => new Set(D.map((e) => e.key))), [A, j] = d(!1), M = D.length > 0 && O.size === D.length, N = O.size > 0, P = () => k(new Set(D.map((e) => e.key))), F = () => k(/* @__PURE__ */ new Set()), I = (e) => k((t) => {
|
|
21
|
+
let n = new Set(t);
|
|
22
|
+
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
23
|
+
}), L = (e) => {
|
|
24
|
+
let t = w(e.product.price.value, e.product.price.currency) ?? "", n = e.product.measure_unit_id ? T?.data?.find((t) => t.id === e.product.measure_unit_id)?.name : void 0;
|
|
25
|
+
return n ? `${t} ${n}` : t;
|
|
23
26
|
};
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
className: e("ttw:max-w-[8.5in]", "ttw:min-w-[816px] ttw:min-h-[1056px]", "ttw:transition-transform ttw:duration-200 ttw:ease-in-out", "motion-reduce:ttw:transition-none", "ttw:origin-center", "ttw:shrink-0", "ttw:[contain:\"layout style\"]"),
|
|
34
|
-
style: { transform: `scale(${g})` },
|
|
35
|
-
children: /* @__PURE__ */ o("div", {
|
|
36
|
-
ref: m,
|
|
37
|
-
className: e("ttw:w-full ttw:h-full", "ttw:bg-white ttw:shrink-0", "ttw:shadow-md", "ttw:overflow-hidden"),
|
|
38
|
-
children: /* @__PURE__ */ o(n, { ..._ })
|
|
27
|
+
return /* @__PURE__ */ h(p, { children: [
|
|
28
|
+
/* @__PURE__ */ m(i, {
|
|
29
|
+
className: "ttw:border-b ttw:border-border ttw:p-6",
|
|
30
|
+
children: /* @__PURE__ */ h(a, {
|
|
31
|
+
className: "ttw:flex ttw:flex-row ttw:items-center ttw:gap-4",
|
|
32
|
+
children: [/* @__PURE__ */ m("span", {
|
|
33
|
+
className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50",
|
|
34
|
+
children: /* @__PURE__ */ m(f, { className: "ttw:size-6 ttw:text-green-700" })
|
|
35
|
+
}), y]
|
|
39
36
|
})
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ h("div", {
|
|
39
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-6",
|
|
40
|
+
children: [/* @__PURE__ */ h("div", {
|
|
41
|
+
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-1.5",
|
|
42
|
+
children: [/* @__PURE__ */ h("div", {
|
|
43
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-1",
|
|
44
|
+
children: [/* @__PURE__ */ m(o, {
|
|
45
|
+
variant: "h4",
|
|
46
|
+
children: x._("Do you want to also save these items?")
|
|
47
|
+
}), /* @__PURE__ */ m(o, {
|
|
48
|
+
variant: "caption",
|
|
49
|
+
color: "muted",
|
|
50
|
+
children: x._("Saved items can be quickly added to future invoices.")
|
|
51
|
+
})]
|
|
52
|
+
}), /* @__PURE__ */ m(n, {
|
|
53
|
+
type: "button",
|
|
54
|
+
variant: "ghost",
|
|
55
|
+
className: "ttw:shrink-0 ttw:text-primary ttw:hover:text-primary",
|
|
56
|
+
disabled: A,
|
|
57
|
+
onClick: N ? F : P,
|
|
58
|
+
children: N ? x._("Deselect all") : x._("Select all")
|
|
59
|
+
})]
|
|
60
|
+
}), /* @__PURE__ */ h("ul", {
|
|
61
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ h("li", {
|
|
64
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
65
|
+
children: [/* @__PURE__ */ m(c, {
|
|
66
|
+
checked: M,
|
|
67
|
+
onCheckedChange: (e) => e ? P() : F(),
|
|
68
|
+
disabled: A || D.length === 0,
|
|
69
|
+
"aria-label": x._("Products and services")
|
|
70
|
+
}), /* @__PURE__ */ m(o, {
|
|
71
|
+
variant: "body2",
|
|
72
|
+
className: "ttw:font-semibold",
|
|
73
|
+
children: x._("Products and services")
|
|
74
|
+
})]
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ m("li", { children: /* @__PURE__ */ m(s, {}) }),
|
|
77
|
+
D.map(({ key: e, lineItem: t }) => /* @__PURE__ */ h("li", {
|
|
78
|
+
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
79
|
+
children: [/* @__PURE__ */ m(c, {
|
|
80
|
+
checked: O.has(e),
|
|
81
|
+
onCheckedChange: () => I(e),
|
|
82
|
+
disabled: A,
|
|
83
|
+
"aria-label": t.product.name
|
|
84
|
+
}), /* @__PURE__ */ h("div", {
|
|
85
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-1",
|
|
86
|
+
children: [/* @__PURE__ */ m(o, {
|
|
87
|
+
variant: "caption",
|
|
88
|
+
className: "ttw:truncate",
|
|
89
|
+
title: t.product.name,
|
|
90
|
+
children: t.product.name
|
|
91
|
+
}), /* @__PURE__ */ m(o, {
|
|
92
|
+
variant: "caption",
|
|
93
|
+
color: "muted",
|
|
94
|
+
className: "ttw:truncate",
|
|
95
|
+
children: L(t)
|
|
96
|
+
})]
|
|
97
|
+
})]
|
|
98
|
+
}, e))
|
|
99
|
+
]
|
|
100
|
+
})]
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ h(r, {
|
|
103
|
+
className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6",
|
|
104
|
+
children: [/* @__PURE__ */ m(n, {
|
|
105
|
+
type: "button",
|
|
106
|
+
variant: "outline",
|
|
107
|
+
className: "ttw:flex-1 ttw:border-border",
|
|
108
|
+
disabled: A,
|
|
109
|
+
onClick: b,
|
|
110
|
+
children: x._("Skip")
|
|
111
|
+
}), /* @__PURE__ */ m(n, {
|
|
112
|
+
type: "button",
|
|
113
|
+
variant: "default",
|
|
114
|
+
className: "ttw:flex-1",
|
|
115
|
+
disabled: !N || A,
|
|
116
|
+
onClick: async () => {
|
|
117
|
+
let e = D.filter((e) => O.has(e.key));
|
|
118
|
+
if (e.length) {
|
|
119
|
+
j(!0);
|
|
120
|
+
try {
|
|
121
|
+
await Promise.all(e.map(({ lineItem: e }) => E({ body: {
|
|
122
|
+
name: e.product.name,
|
|
123
|
+
type: "product",
|
|
124
|
+
price: {
|
|
125
|
+
value: e.product.price.value,
|
|
126
|
+
currency: e.product.price?.currency ?? "USD"
|
|
127
|
+
},
|
|
128
|
+
...e.product.measure_unit_id ? { measure_unit_id: e.product.measure_unit_id } : {},
|
|
129
|
+
...e.product.description ? { description: e.product.description } : {}
|
|
130
|
+
} }))), await S.finops.getProducts.invalidateQueries(C), g.success(x._("Products and services saved.")), b();
|
|
131
|
+
} catch {
|
|
132
|
+
g.error(x._("Failed to save products and services."));
|
|
133
|
+
} finally {
|
|
134
|
+
j(!1);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
children: x._("Save selected items")
|
|
139
|
+
})]
|
|
40
140
|
})
|
|
41
|
-
});
|
|
141
|
+
] });
|
|
42
142
|
};
|
|
43
143
|
//#endregion
|
|
44
|
-
export {
|
|
144
|
+
export { v as ActionsModalProductsStep };
|