@tesouro/embedded-components-react 0.3.20 → 0.3.23
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 +9 -0
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/monite-sdk.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +158 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +33 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +45 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +4 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +13 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +14 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +56 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +18 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +15 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +61 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +130 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +38 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +48 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +5 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +71 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +48 -139
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +91 -66
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +34 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +144 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +63 -209
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +21 -103
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +209 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +211 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +104 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +12 -165
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +47 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +29 -99
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +64 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +166 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +34 -243
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +104 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +259 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +4 -145
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +82 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +155 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +43 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +1 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +85 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +3 -59
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +19 -120
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +56 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +116 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +8 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +43 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +19 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +27 -249
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +82 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +47 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +253 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +111 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +6 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +197 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +6 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +114 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +3 -162
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +163 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -0
- 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 +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +16 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +19 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +18 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +8 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +36 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +44 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +72 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +99 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +35 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +171 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +134 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +125 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +63 -232
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +248 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +5 -456
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +455 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +13 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +51 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +39 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +143 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +114 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +32 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +20 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +18 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +149 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +136 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +31 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +116 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +10 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +26 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +50 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +34 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +86 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +1 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +0 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +129 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +105 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +48 -779
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +780 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +84 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +105 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +14 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +163 -200
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +204 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +82 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +146 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +95 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +13 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +27 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +0 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +186 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +0 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +41 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +11 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +4 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +219 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +32 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +168 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +192 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +97 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +46 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +91 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +39 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +63 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +1 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +66 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +104 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +72 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +144 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +14 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +91 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index612.js +22 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index613.js +71 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index614.js +0 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +66 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index617.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index619.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index620.js +29 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index621.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index622.js +2 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index623.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +1 -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/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/package.json +1 -1
|
@@ -1,34 +1,108 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import "../../../shared/ui/dist/index.js";
|
|
7
|
+
import { useUpdatePayableMutation as t } from "../../data-access/dist/index10.js";
|
|
8
|
+
import "../../data-access/dist/index.js";
|
|
9
|
+
import { counterpartFormBankAccountToCreatePayload as n, counterpartFormBankAccountToUpdatePayload as r, getAchInstructions as i, resolveCounterpartBankAccountWrite as a, validateAchFormValues as o } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
10
|
+
import { useCounterpartBankAccountsQuery as s, useCreateCounterpartBankAccountMutation as c, useUpdateCounterpartBankAccountMutation as l } from "../../../shared/counterpart-management/data-access/dist/index5.js";
|
|
11
|
+
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
12
|
+
import { useCallback as u, useEffect as d, useRef as f, useState as p } from "react";
|
|
3
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
function
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
var m = {
|
|
15
|
+
accountHolderName: "",
|
|
16
|
+
routingNumber: "",
|
|
17
|
+
accountNumber: ""
|
|
18
|
+
};
|
|
19
|
+
function h({ payableId: h, counterpartId: g, saveErrorMessage: _, linkErrorMessage: v }) {
|
|
20
|
+
let [y, b] = p(!1), [x, S] = p(m), [C, w] = p(), T = s(g), E = T.data?.data, D = c(), O = l(), k = t(), A = f(void 0), j = f(!1);
|
|
21
|
+
d(() => {
|
|
22
|
+
A.current = void 0;
|
|
23
|
+
}, [g]);
|
|
24
|
+
let M = u(() => {
|
|
25
|
+
let e = T.isFetching ? void 0 : i(E);
|
|
26
|
+
S(e ? {
|
|
27
|
+
accountHolderName: e.account_holder_name ?? "",
|
|
28
|
+
routingNumber: e.routing_number ?? "",
|
|
29
|
+
accountNumber: e.account_number ?? ""
|
|
30
|
+
} : m), A.current = e?.id ?? A.current, j.current = !T.isFetching, w(void 0), b(!0);
|
|
31
|
+
}, [E, T.isFetching]);
|
|
32
|
+
d(() => {
|
|
33
|
+
if (!y || j.current || T.isFetching) return;
|
|
34
|
+
j.current = !0;
|
|
35
|
+
let e = i(E);
|
|
36
|
+
e && (S((t) => t.accountHolderName === "" && t.routingNumber === "" && t.accountNumber === "" ? {
|
|
37
|
+
accountHolderName: e.account_holder_name ?? "",
|
|
38
|
+
routingNumber: e.routing_number ?? "",
|
|
39
|
+
accountNumber: e.account_number ?? ""
|
|
40
|
+
} : t), A.current = e.id);
|
|
41
|
+
}, [
|
|
42
|
+
y,
|
|
43
|
+
T.isFetching,
|
|
44
|
+
E
|
|
45
|
+
]);
|
|
46
|
+
let N = u(() => {
|
|
47
|
+
b(!1);
|
|
48
|
+
}, []), P = u((e) => {
|
|
49
|
+
S((t) => ({
|
|
50
|
+
...t,
|
|
51
|
+
...e
|
|
52
|
+
}));
|
|
53
|
+
}, []), F = u(async () => {
|
|
54
|
+
if (!h || !g) return !1;
|
|
55
|
+
let t = o(x);
|
|
56
|
+
if (Object.keys(t).length > 0) return w(t), !1;
|
|
57
|
+
if (w(void 0), T.isFetching || T.isError) return e.error(_), !1;
|
|
58
|
+
let s = A.current;
|
|
59
|
+
try {
|
|
60
|
+
let e = a(E, s ?? i(E)?.id);
|
|
61
|
+
e.kind === "update" ? (await O.mutateAsync({
|
|
62
|
+
path: {
|
|
63
|
+
counterpart_id: g,
|
|
64
|
+
bank_account_id: e.bankAccountId
|
|
65
|
+
},
|
|
66
|
+
body: r(x, { includeAchDefaults: e.includeAchDefaults })
|
|
67
|
+
}), s = e.bankAccountId) : s = (await D.mutateAsync({
|
|
68
|
+
path: { counterpart_id: g },
|
|
69
|
+
body: n(x, { isDefaultForCurrency: e.isDefaultForCurrency })
|
|
70
|
+
}))?.id, A.current = s;
|
|
71
|
+
} catch {
|
|
72
|
+
return e.error(_), !1;
|
|
73
|
+
}
|
|
74
|
+
try {
|
|
75
|
+
await k.mutateAsync({
|
|
76
|
+
path: { payable_id: h },
|
|
77
|
+
body: { counterpart_bank_account_id: s }
|
|
78
|
+
});
|
|
79
|
+
} catch {
|
|
80
|
+
return e.error(v), !1;
|
|
81
|
+
}
|
|
82
|
+
return b(!1), !0;
|
|
83
|
+
}, [
|
|
84
|
+
E,
|
|
85
|
+
T.isError,
|
|
86
|
+
T.isFetching,
|
|
87
|
+
g,
|
|
88
|
+
D,
|
|
89
|
+
v,
|
|
90
|
+
h,
|
|
91
|
+
_,
|
|
92
|
+
O,
|
|
93
|
+
k,
|
|
94
|
+
x
|
|
95
|
+
]);
|
|
96
|
+
return {
|
|
97
|
+
isOpen: y,
|
|
98
|
+
values: x,
|
|
99
|
+
errors: C,
|
|
100
|
+
isSaving: D.isPending || O.isPending || k.isPending,
|
|
101
|
+
open: M,
|
|
102
|
+
close: N,
|
|
103
|
+
onChange: P,
|
|
104
|
+
save: F
|
|
28
105
|
};
|
|
29
106
|
}
|
|
30
|
-
function c(t, r, i, o = e) {
|
|
31
|
-
return !a(t) || !a(r) || i !== void 0 && n(i) === null ? { form: o.totalsNeedAttention } : void 0;
|
|
32
|
-
}
|
|
33
107
|
//#endregion
|
|
34
|
-
export {
|
|
108
|
+
export { h as usePaymentInstructionsForm };
|
|
@@ -1,169 +1,16 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import "../../../shared/ui/dist/index.js";
|
|
7
|
-
import { useReplacePayableLineItemsMutation as t } from "../../data-access/dist/index7.js";
|
|
8
|
-
import { useCreatePayableMutation as n, useSubmitPayableForApprovalMutation as r, useUpdatePayableMutation as i, useValidatePayableMutation as a } from "../../data-access/dist/index10.js";
|
|
9
|
-
import "../../data-access/dist/index.js";
|
|
10
|
-
import { BILL_CREATE_MESSAGE_LABELS_EN as o } from "./index28.js";
|
|
11
|
-
import { encodeFileToBase64 as s } from "./index34.js";
|
|
12
|
-
import { mapBillFormToPayload as c, mapLineItemsToPayload as l } from "./index35.js";
|
|
13
|
-
import { validateBillCompleteness as u, validateBillTotals as d, validateLineItems as f } from "./index36.js";
|
|
14
|
-
import { useCallback as p, useRef as m, useState as h } from "react";
|
|
15
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
function v(e, t = o) {
|
|
26
|
-
let n = {}, r = [];
|
|
27
|
-
for (let i of e) {
|
|
28
|
-
let e = i.loc[0] ?? t.unknownValidationField, a = g[e], o = _(i) ? t.requiredField : i.msg;
|
|
29
|
-
a ? n[a] = o : r.push(t.unmappedValidationError(e, o));
|
|
30
|
-
}
|
|
31
|
-
return r.length && (n.form = r.join(" ")), n;
|
|
32
|
-
}
|
|
33
|
-
function y(e, t) {
|
|
34
|
-
if (!e && !t) return;
|
|
35
|
-
let n = {}, r = /* @__PURE__ */ new Set([...Object.keys(e ?? {}), ...Object.keys(t ?? {})]);
|
|
36
|
-
for (let i of r) n[i] = {
|
|
37
|
-
...e?.[i],
|
|
38
|
-
...t?.[i]
|
|
39
|
-
};
|
|
40
|
-
return n;
|
|
41
|
-
}
|
|
42
|
-
function b({ payableId: g, form: _, counterpartId: b, clearCounterpart: x, prepareVendorForSave: S, onSaved: C, onPayableCreated: w, onDraftSaved: T, onFinalized: E, labels: D }) {
|
|
43
|
-
let O = {
|
|
44
|
-
...o,
|
|
45
|
-
...D
|
|
46
|
-
}, [k, A] = h(), j = g ?? k, [M, N] = h(), P = p(() => N(void 0), []), [F, I] = h(), L = m(!1), R = n(), z = i(), B = t(), V = a(), H = r(), U = p(() => {
|
|
47
|
-
let t = f(_.lineItems, O), n = d(_.discount, _.tax, _.totalOverride, O);
|
|
48
|
-
return _.setLineItemErrors(t), !t && !n || (t ? (_.setErrors(void 0), e.error(O.lineItemsNeedAttention)) : _.setErrors(n), !1);
|
|
49
|
-
}, [_, O]), W = p(async (e) => {
|
|
50
|
-
let t = !j && M ? {
|
|
51
|
-
base64EncodedFile: await s(M),
|
|
52
|
-
fileName: M.name
|
|
53
|
-
} : void 0, n = c({
|
|
54
|
-
values: _.values,
|
|
55
|
-
counterpartId: b,
|
|
56
|
-
clearCounterpart: x,
|
|
57
|
-
counterpartBankAccountId: e,
|
|
58
|
-
editedTotals: _.isTotalsDirty ? {
|
|
59
|
-
discount: _.discount,
|
|
60
|
-
tax: _.tax,
|
|
61
|
-
total: _.totalOverride
|
|
62
|
-
} : void 0,
|
|
63
|
-
document: t
|
|
64
|
-
}), r = j;
|
|
65
|
-
if (r ? await z.mutateAsync({
|
|
66
|
-
path: { payable_id: r },
|
|
67
|
-
body: n
|
|
68
|
-
}) : (r = (await R.mutateAsync({ body: n }))?.id, r && (A(r), w?.(r), t && N(void 0))), !r) throw Error("Payable was created without an id");
|
|
69
|
-
return await B.mutateAsync({
|
|
70
|
-
path: { payable_id: r },
|
|
71
|
-
body: { data: l(_.lineItems) }
|
|
72
|
-
}), r;
|
|
73
|
-
}, [
|
|
74
|
-
b,
|
|
75
|
-
x,
|
|
76
|
-
R,
|
|
77
|
-
_.discount,
|
|
78
|
-
_.isTotalsDirty,
|
|
79
|
-
_.lineItems,
|
|
80
|
-
_.tax,
|
|
81
|
-
_.totalOverride,
|
|
82
|
-
_.values,
|
|
83
|
-
w,
|
|
84
|
-
j,
|
|
85
|
-
B,
|
|
86
|
-
M,
|
|
87
|
-
z
|
|
88
|
-
]);
|
|
89
|
-
return {
|
|
90
|
-
saveDraft: p(async () => {
|
|
91
|
-
if (!L.current && U()) {
|
|
92
|
-
L.current = !0, I("draft");
|
|
93
|
-
try {
|
|
94
|
-
let t = await S?.();
|
|
95
|
-
if (t && !t.ok) return;
|
|
96
|
-
let n = await W(t?.counterpartBankAccountId);
|
|
97
|
-
_.setErrors(void 0), C?.(n), T?.(n), e.success(O.draftSaved);
|
|
98
|
-
} catch {
|
|
99
|
-
_.setErrors({ form: O.saveFailed });
|
|
100
|
-
} finally {
|
|
101
|
-
I(void 0), L.current = !1;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}, [
|
|
105
|
-
_,
|
|
106
|
-
U,
|
|
107
|
-
O.draftSaved,
|
|
108
|
-
O.saveFailed,
|
|
109
|
-
T,
|
|
110
|
-
C,
|
|
111
|
-
S,
|
|
112
|
-
W
|
|
113
|
-
]),
|
|
114
|
-
finalize: p(async () => {
|
|
115
|
-
if (L.current) return;
|
|
116
|
-
let t = f(_.lineItems, O), n = d(_.discount, _.tax, _.totalOverride, O), { formErrors: r, lineItemErrors: i } = u(_.values, b, _.lineItems, O), a = y(i, t);
|
|
117
|
-
_.setLineItemErrors(a);
|
|
118
|
-
let o = {
|
|
119
|
-
...r,
|
|
120
|
-
...n
|
|
121
|
-
};
|
|
122
|
-
if (_.setErrors(Object.keys(o).length ? o : void 0), t && e.error(O.lineItemsNeedAttention), !(a || Object.keys(o).length)) {
|
|
123
|
-
L.current = !0, I("finalize");
|
|
124
|
-
try {
|
|
125
|
-
let t;
|
|
126
|
-
try {
|
|
127
|
-
let e = await S?.();
|
|
128
|
-
if (e && !e.ok) return;
|
|
129
|
-
t = await W(e?.counterpartBankAccountId);
|
|
130
|
-
} catch {
|
|
131
|
-
_.setErrors({ form: O.saveFailed });
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
C?.(t);
|
|
135
|
-
try {
|
|
136
|
-
let n = await V.mutateAsync({ path: { payable_id: t } });
|
|
137
|
-
if (n.validation_errors.length) {
|
|
138
|
-
_.setErrors(v(n.validation_errors, O));
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
await H.mutateAsync({ path: { payable_id: t } }), _.setErrors(void 0), E?.(t), e.success(O.billFinalized);
|
|
142
|
-
} catch {
|
|
143
|
-
_.setErrors({ form: O.finalizeFailed });
|
|
144
|
-
}
|
|
145
|
-
} finally {
|
|
146
|
-
I(void 0), L.current = !1;
|
|
147
|
-
}
|
|
2
|
+
function e(e) {
|
|
3
|
+
return new Promise((t, n) => {
|
|
4
|
+
let r = new FileReader();
|
|
5
|
+
r.onerror = () => n(r.error ?? /* @__PURE__ */ Error("Failed to read file")), r.onload = () => {
|
|
6
|
+
let e = r.result;
|
|
7
|
+
if (typeof e != "string") {
|
|
8
|
+
n(/* @__PURE__ */ Error("Failed to read file as a data URL"));
|
|
9
|
+
return;
|
|
148
10
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
O,
|
|
153
|
-
E,
|
|
154
|
-
C,
|
|
155
|
-
S,
|
|
156
|
-
W,
|
|
157
|
-
H,
|
|
158
|
-
V
|
|
159
|
-
]),
|
|
160
|
-
payableId: j,
|
|
161
|
-
isSavingDraft: F === "draft",
|
|
162
|
-
isFinalizing: F === "finalize",
|
|
163
|
-
stagedFile: M,
|
|
164
|
-
stageFile: N,
|
|
165
|
-
clearStagedFile: P
|
|
166
|
-
};
|
|
11
|
+
t(e.slice(e.indexOf(",") + 1));
|
|
12
|
+
}, r.readAsDataURL(e);
|
|
13
|
+
});
|
|
167
14
|
}
|
|
168
15
|
//#endregion
|
|
169
|
-
export {
|
|
16
|
+
export { e as encodeFileToBase64 };
|
|
@@ -1,38 +1,50 @@
|
|
|
1
|
+
import { parseDecimalAmountToMinorUnits as e } from "../../../shared/util/dist/lib/parseDecimalAmountToMinorUnits.js";
|
|
2
|
+
import "../../data-access/dist/index.js";
|
|
1
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
14
|
-
}
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
4
|
+
var t = "USD";
|
|
5
|
+
function n(n) {
|
|
6
|
+
return e(n, t);
|
|
7
|
+
}
|
|
8
|
+
function r(e) {
|
|
9
|
+
let t = e.trim();
|
|
10
|
+
if (!t) return null;
|
|
11
|
+
let n = Number(t);
|
|
12
|
+
return Number.isFinite(n) && n > 0 ? n : null;
|
|
13
|
+
}
|
|
14
|
+
function i(e) {
|
|
15
|
+
return !!(e.description.trim() || e.glCode.trim() || n(e.price) !== null || n(e.amount) !== null);
|
|
16
|
+
}
|
|
17
|
+
function a(e) {
|
|
18
|
+
return n(e) ?? 0;
|
|
19
|
+
}
|
|
20
|
+
function o(e) {
|
|
21
|
+
let t = Number.parseFloat(e);
|
|
22
|
+
return Number.isFinite(t) ? t : 0;
|
|
23
|
+
}
|
|
24
|
+
function s(e) {
|
|
25
|
+
return (e / 100).toFixed(2);
|
|
26
|
+
}
|
|
27
|
+
function c({ values: e, counterpartId: r, clearCounterpart: i, counterpartBankAccountId: a, editedTotals: o, document: s }) {
|
|
28
|
+
let c = { currency: t };
|
|
29
|
+
return r ? c.counterpart_id = r : i && (c.counterpart_id = null), r ? c.counterpart_bank_account_id = a ?? null : i && (c.counterpart_bank_account_id = null), e.invoiceNumber && (c.document_id = e.invoiceNumber), e.invoiceDate && (c.issued_at = e.invoiceDate), e.dueDate && (c.due_date = e.dueDate), s && (c.base64_encoded_file = s.base64EncodedFile, c.file_name = s.fileName), o && (c.discount = n(o.discount) ?? 0, c.tax_amount = n(o.tax) ?? 0, o.total !== void 0 && (c.total_amount = n(o.total) ?? 0)), c;
|
|
30
|
+
}
|
|
31
|
+
function l(e) {
|
|
32
|
+
return e.filter(i).map((e) => {
|
|
33
|
+
let t = n(e.amount), i = r(e.quantity) ?? 1, a = n(e.price) ?? (t === null ? 0 : Math.round(t / i)), o = Math.round(i * a);
|
|
34
|
+
return {
|
|
35
|
+
name: e.description,
|
|
36
|
+
quantity: i,
|
|
37
|
+
unit_price: a,
|
|
38
|
+
...t !== null && t !== o ? { subtotal: t } : {},
|
|
39
|
+
...e.glCode ? { ledger_account_id: e.glCode } : {}
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function u(e, t) {
|
|
44
|
+
return s(Math.round(o(e) * a(t)));
|
|
45
|
+
}
|
|
46
|
+
function d(e, t, n) {
|
|
47
|
+
return s(e.reduce((e, t) => e + a(t.amount), 0) + a(t) - a(n));
|
|
36
48
|
}
|
|
37
49
|
//#endregion
|
|
38
|
-
export {
|
|
50
|
+
export { d as calculateTotal, u as displayLineAmount, i as isPersistableLineItem, c as mapBillFormToPayload, l as mapLineItemsToPayload, n as parseMoneyToMinorUnits, r as parseQuantity };
|
|
@@ -1,104 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { calculateTotal as e, displayLineAmount as t, parseMoneyToMinorUnits as n } from "./index35.js";
|
|
6
|
-
import { emptyLineItem as r, mapPayableToBillForm as i } from "./index38.js";
|
|
7
|
-
import { useCallback as a, useEffect as o, useMemo as s, useState as c } from "react";
|
|
1
|
+
import { BILL_CREATE_MESSAGE_LABELS_EN as e } from "./index31.js";
|
|
2
|
+
import { isPersistableLineItem as t, parseMoneyToMinorUnits as n, parseQuantity as r } from "./index38.js";
|
|
8
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
var i = /^(?:\d{1,3}(?:,\d{3})+(?:\.\d+)?|\d+(?:\.\d+)?|\.\d+)$/;
|
|
5
|
+
function a(e) {
|
|
6
|
+
let t = e.trim();
|
|
7
|
+
return !t || n(t) !== null ? !0 : i.test(t) ? Number(t.replaceAll(",", "")) === 0 : !1;
|
|
11
8
|
}
|
|
12
|
-
function
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (!t?.[e]) return t;
|
|
32
|
-
let n = { ...t };
|
|
33
|
-
return delete n[e], Object.keys(n).length ? n : void 0;
|
|
34
|
-
});
|
|
35
|
-
}, []), N = a((e, t) => {
|
|
36
|
-
M(e), m((n) => n.map((n) => {
|
|
37
|
-
if (n.id !== e) return n;
|
|
38
|
-
let r = {
|
|
39
|
-
...n,
|
|
40
|
-
...t
|
|
41
|
-
};
|
|
42
|
-
return "amount" in t ? r : {
|
|
43
|
-
...r,
|
|
44
|
-
amount: l(r.quantity, r.price, r.amount)
|
|
45
|
-
};
|
|
46
|
-
})), O(!0), b(void 0);
|
|
47
|
-
}, [M]), P = a((e, t) => {
|
|
48
|
-
M(e), m((n) => n.map((n) => {
|
|
49
|
-
if (n.id !== e) return n;
|
|
50
|
-
let r = Number.parseFloat(n.quantity), i = String(Math.max(1, (Number.isFinite(r) ? r : 1) + t));
|
|
51
|
-
return {
|
|
52
|
-
...n,
|
|
53
|
-
quantity: i,
|
|
54
|
-
amount: l(i, n.price, n.amount)
|
|
55
|
-
};
|
|
56
|
-
})), O(!0), b(void 0);
|
|
57
|
-
}, [M]), F = a((e) => {
|
|
58
|
-
M(e), m((t) => t.length <= 1 ? t : t.filter((t) => t.id !== e)), O(!0), b(void 0);
|
|
59
|
-
}, [M]), I = a(() => {
|
|
60
|
-
m((e) => [...e, r()]), O(!0), b(void 0);
|
|
61
|
-
}, []), L = a((e) => {
|
|
62
|
-
g(e), A(!0), b(void 0);
|
|
63
|
-
}, []), R = a((e) => {
|
|
64
|
-
v(e), A(!0), b(void 0);
|
|
65
|
-
}, []), z = a((e) => {
|
|
66
|
-
b(e), A(!0);
|
|
67
|
-
}, []), B = s(() => p.map((e) => ({
|
|
68
|
-
...e,
|
|
69
|
-
onChange: (t) => N(e.id, t),
|
|
70
|
-
onQuantityStep: (t) => P(e.id, t),
|
|
71
|
-
onRemove: () => F(e.id)
|
|
72
|
-
})), [
|
|
73
|
-
p,
|
|
74
|
-
N,
|
|
75
|
-
F,
|
|
76
|
-
P
|
|
77
|
-
]), V = s(() => e(p, _, h), [
|
|
78
|
-
p,
|
|
79
|
-
_,
|
|
80
|
-
h
|
|
81
|
-
]);
|
|
82
|
-
return {
|
|
83
|
-
values: d,
|
|
84
|
-
errors: x,
|
|
85
|
-
setErrors: S,
|
|
86
|
-
lineItemErrors: C,
|
|
87
|
-
setLineItemErrors: w,
|
|
88
|
-
onChange: j,
|
|
89
|
-
lineItems: p,
|
|
90
|
-
lineItemRows: B,
|
|
91
|
-
discount: h,
|
|
92
|
-
onDiscountChange: L,
|
|
93
|
-
tax: _,
|
|
94
|
-
onTaxChange: R,
|
|
95
|
-
total: y ?? V,
|
|
96
|
-
totalOverride: y,
|
|
97
|
-
onTotalChange: z,
|
|
98
|
-
onAddLineItem: I,
|
|
99
|
-
isTotalsDirty: k,
|
|
100
|
-
isDirty: T || D || k
|
|
9
|
+
function o(t, i = e) {
|
|
10
|
+
let a = {};
|
|
11
|
+
for (let e of t) {
|
|
12
|
+
let t = n(e.price), o = n(e.amount), s = {};
|
|
13
|
+
e.price.trim() && t === null && (s.price = i.unreadableMoney), e.amount.trim() && o === null && (s.amount = i.unreadableMoney), (t !== null || o !== null) && r(e.quantity) === null && (s.quantity = i.unusableQuantity), Object.keys(s).length && (a[e.id] = s);
|
|
14
|
+
}
|
|
15
|
+
return Object.keys(a).length ? a : void 0;
|
|
16
|
+
}
|
|
17
|
+
function s(i, a, o, s = e) {
|
|
18
|
+
let c = {};
|
|
19
|
+
a || (c.vendor = s.requiredField), i.invoiceNumber.trim() || (c.invoiceNumber = s.requiredField), i.invoiceDate.trim() || (c.invoiceDate = s.requiredField), i.dueDate.trim() || (c.dueDate = s.requiredField);
|
|
20
|
+
let l = {};
|
|
21
|
+
return o.forEach((e, i) => {
|
|
22
|
+
if (i > 0 && !t(e)) return;
|
|
23
|
+
let a = {};
|
|
24
|
+
e.description.trim() || (a.description = s.requiredField), r(e.quantity) === null && (a.quantity = s.requiredField), n(e.price) === null && n(e.amount) === null && (a.price = s.requiredField, a.amount = s.requiredField), Object.keys(a).length && (l[e.id] = a);
|
|
25
|
+
}), {
|
|
26
|
+
formErrors: Object.keys(c).length ? c : void 0,
|
|
27
|
+
lineItemErrors: Object.keys(l).length ? l : void 0
|
|
101
28
|
};
|
|
102
29
|
}
|
|
30
|
+
function c(t, r, i, o = e) {
|
|
31
|
+
return !a(t) || !a(r) || i !== void 0 && n(i) === null ? { form: o.totalsNeedAttention } : void 0;
|
|
32
|
+
}
|
|
103
33
|
//#endregion
|
|
104
|
-
export {
|
|
34
|
+
export { s as validateBillCompleteness, c as validateBillTotals, o as validateLineItems };
|
|
@@ -1,7 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import "../../../shared/ui/dist/index.js";
|
|
7
|
+
import { formatCalendarDate as t } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
8
|
+
import { formatMoneyExact as n } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
9
|
+
import { extractApiErrorMessage as r } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
10
|
+
import { dateToCalendarKey as i, getDefaultPaymentDate as a, isTodayInEastern as o } from "./index3.js";
|
|
11
|
+
import { useMarkPayableAsPaidMutation as s } from "../../data-access/dist/index10.js";
|
|
12
|
+
import "../../data-access/dist/index.js";
|
|
13
|
+
import { mergeMarkAsPaidFlowLabels as c } from "./index2.js";
|
|
14
|
+
import { useEffect as l, useState as u } from "react";
|
|
1
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
16
|
+
function d({ payableId: d, amountDueMinorUnits: f, amountToPayMinorUnits: p, currencyCode: m, dueDate: h, hasScheduledPayment: g, testId: _, labels: v }) {
|
|
17
|
+
let y = c(v), b = s(), [x, S] = u(!1), [C, w] = u(void 0), [T, E] = u(""), D = x && !g, O = n(f / 100, { currencyCode: m }), k = n((p ?? f) / 100, { currencyCode: m }), A = C ? t(i(C)) : void 0, j = h ? y.dueDateSuffix(t(h)) : void 0, M = () => {
|
|
18
|
+
S(!1), w(void 0), E("");
|
|
19
|
+
};
|
|
20
|
+
return l(() => {
|
|
21
|
+
g && (S(!1), w(void 0), E(""));
|
|
22
|
+
}, [g]), {
|
|
23
|
+
open: () => {
|
|
24
|
+
w(a()), E(""), S(!0);
|
|
25
|
+
},
|
|
26
|
+
isPending: b.isPending,
|
|
27
|
+
dialogProps: {
|
|
28
|
+
open: D,
|
|
29
|
+
amountDue: O,
|
|
30
|
+
dueDateSuffix: j,
|
|
31
|
+
paymentAmount: k,
|
|
32
|
+
selectedDate: C,
|
|
33
|
+
selectedDateLabel: A,
|
|
34
|
+
isToday: C ? o(C) : !1,
|
|
35
|
+
comment: T,
|
|
36
|
+
isSubmitting: b.isPending,
|
|
37
|
+
onDateChange: w,
|
|
38
|
+
onCommentChange: E,
|
|
39
|
+
onConfirm: () => {
|
|
40
|
+
!d || !C || b.isPending || g || b.mutate({
|
|
41
|
+
path: { payable_id: d },
|
|
42
|
+
body: {
|
|
43
|
+
paid_at: `${i(C)}T12:00:00.000Z`,
|
|
44
|
+
is_external: !0,
|
|
45
|
+
...T.trim() ? { comment: T.trim() } : {}
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
onSuccess: () => {
|
|
49
|
+
e.success(y.paidToast), M();
|
|
50
|
+
},
|
|
51
|
+
onError: (t) => {
|
|
52
|
+
e.error(r(t) ?? y.submitError);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
onCancel: () => {
|
|
57
|
+
b.isPending || M();
|
|
58
|
+
},
|
|
59
|
+
testId: _ ? `${_}-mark-as-paid-dialog` : void 0,
|
|
60
|
+
confirmTestId: _ ? `${_}-mark-as-paid-confirm` : void 0,
|
|
61
|
+
labels: y.dialog
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
6
65
|
//#endregion
|
|
7
|
-
export {
|
|
66
|
+
export { d as useMarkAsPaidFlow };
|