@tesouro/embedded-components-react 0.5.189 → 0.5.191
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.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/lib/BankAccountsWidget.d.ts +0 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/WidgetSuite.d.ts +0 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js +34 -34
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +263 -263
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +89 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +29 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +18 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +24 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +13 -327
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +31 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +8 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +92 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +20 -137
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +69 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index19.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index2.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index20.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index21.js +88 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index22.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index23.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index24.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index25.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index26.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index27.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index28.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index29.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index30.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index31.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index32.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index33.js +49 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index34.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index35.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index36.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index37.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index38.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index39.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +27 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index40.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index41.js +43 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index42.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index43.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index44.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index45.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index46.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index47.js +39 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +35 -255
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +59 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +13 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +5 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +15 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +51 -211
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +84 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +31 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +167 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +46 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +47 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +7 -163
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +61 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +24 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +162 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +4 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +25 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +16 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +32 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +96 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +81 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +3 -158
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +111 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +189 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +69 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +29 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +89 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +412 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +12 -97
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +83 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +80 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +224 -134
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +44 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +247 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +22 -191
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +6 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +614 -66
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +42 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +243 -398
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +3 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +3 -86
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +43 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +1 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +6 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +11 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +24 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +130 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -628
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +127 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +8 -257
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +10 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +82 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +22 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +29 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +83 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +48 -130
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +262 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +32 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +387 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +307 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +4 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +4 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +111 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +37 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +24 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +222 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +46 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +10 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +73 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +30 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +8 -106
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +181 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +32 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +19 -135
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +137 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +278 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +1 -106
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +15 -76
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +51 -275
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +368 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +92 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +25 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +43 -363
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +48 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +10 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +197 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +75 -184
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +46 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +313 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +26 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -317
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +13 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +34 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +195 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +1 -508
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +62 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +493 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index87.js → ui/dist/index88.js} +1 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +88 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +5 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +146 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/derivePayableStatus.js +62 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/formatBillMoney.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/formatScheduledDateLabel.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/isEditablePayableStatus.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/isLiveScheduledPaymentRecord.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableDuplicates.js +48 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableTotals.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveAmountDue.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveLineItemAmount.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveLineItemQuantity.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveVendor.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/widgetName.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +95 -95
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +31 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +23 -190
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +163 -50
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +1 -80
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +101 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +85 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +104 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +47 -47
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +53 -53
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -35
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js +4 -4
- 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/util/dist/lib/mergeLabelTree.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +0 -86
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +0 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +0 -263
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +0 -392
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +0 -310
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +0 -114
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +0 -2
|
@@ -1,7 +1,415 @@
|
|
|
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 { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
+
import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
8
|
+
import "../../../shared/data-access/dist/index.js";
|
|
9
|
+
import "../../../shared/ui/dist/index.js";
|
|
10
|
+
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
+
import "../../../shared/feature/dist/index.js";
|
|
12
|
+
import { usePayableSuggestionsQuery as i } from "../../data-access/dist/index47.js";
|
|
13
|
+
import "../../data-access/dist/index.js";
|
|
14
|
+
import { COUNTERPART_MESSAGE_LABELS_EN as a } from "../../../shared/counterpart-management/feature/dist/lib/labels.js";
|
|
15
|
+
import { counterpartFormBankAccountToCreatePayload as ee, counterpartFormBankAccountToUpdatePayload as te, getAchInstructions as o, getCounterpartEmail as s, getCounterpartName as c, getPayableAchInstructions as ne, isAchCompatibleBankAccount as l, resolveCounterpartBankAccountWrite as re, validateAchFormValues as ie } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
16
|
+
import { useCounterpartsQuery as ae } from "../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
17
|
+
import { useCreateCounterpartBankAccountMutation as oe, useUpdateCounterpartBankAccountMutation as se } from "../../../shared/counterpart-management/data-access/dist/index5.js";
|
|
18
|
+
import { useCounterpartDetails as ce } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js";
|
|
19
|
+
import { useCounterpartForm as le } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartForm.js";
|
|
20
|
+
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
21
|
+
import { VENDOR_SECTION_PROPS_LABELS_EN as ue } from "./index38.js";
|
|
22
|
+
import { buildVendorPrefill as de } from "./index40.js";
|
|
23
|
+
import { VendorInlineForm as fe } from "./index41.js";
|
|
24
|
+
import { useCallback as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
25
|
+
import { jsx as pe } from "react/jsx-runtime";
|
|
1
26
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
27
|
+
var me = 10, he = 300, h = {
|
|
28
|
+
accountHolderName: "",
|
|
29
|
+
routingNumber: "",
|
|
30
|
+
accountNumber: ""
|
|
31
|
+
};
|
|
32
|
+
function ge(e) {
|
|
33
|
+
return {
|
|
34
|
+
accountHolderName: e.account_holder_name ?? "",
|
|
35
|
+
routingNumber: e.routing_number ?? "",
|
|
36
|
+
accountNumber: e.account_number ?? ""
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function g(e, t) {
|
|
40
|
+
return e.accountHolderName.trim() === t.accountHolderName.trim() && e.routingNumber.trim() === t.routingNumber.trim() && e.accountNumber.trim() === t.accountNumber.trim();
|
|
41
|
+
}
|
|
42
|
+
function _e(e, t) {
|
|
43
|
+
return e?.find((e) => e.id === t && l(e)) ?? o(e);
|
|
44
|
+
}
|
|
45
|
+
function _({ payableId: o, counterpartId: l, payableCounterpartId: _, payableCounterpartBankAccountId: ve, isVendorKnown: ye = !0, onCounterpartChange: be, requiredError: xe, extractedVendor: v, readOnly: y = !1, canEditVendor: b = !0, canEditPaymentInstructions: Se = !0, canAddPaymentInstructions: x = !0, confirmDiscard: S = (e) => e(), labels: Ce }) {
|
|
46
|
+
let C = {
|
|
47
|
+
...ue,
|
|
48
|
+
...Ce
|
|
49
|
+
}, { initResponse: we } = r(), Te = t(we?.scopes, [n.CounterpartReadOrg]), [w, Ee] = m(""), [T, De] = m(""), Oe = p(T), [E, ke] = m(), [Ae, je] = m("none"), [Me, Ne] = m(), [Pe, D] = m(!1), [O, k] = m(!1), [A, j] = m(h), Fe = p(A);
|
|
50
|
+
Fe.current = A;
|
|
51
|
+
let M = p(h), [N, P] = m(), [Ie, Le] = m(), F = Ie?.bankAccountId, I = p(void 0), Re = p(l), [ze, Be] = m(!1), [Ve, He] = m(!1), L = p(void 0), Ue = (O || E === "create") && !g(A, M.current), R = u(() => {
|
|
52
|
+
k(!1), j(h), M.current = h, P(void 0);
|
|
53
|
+
}, []), z = u((e) => {
|
|
54
|
+
Be(!0), be(e);
|
|
55
|
+
}, [be]), We = i(o, { enabled: !y && !!o && !l && !_ }).data?.suggested_counterpart?.id, Ge = v?.name;
|
|
56
|
+
d(() => {
|
|
57
|
+
!y && !ze && !l && !_ && We && z(We);
|
|
58
|
+
}, [
|
|
59
|
+
l,
|
|
60
|
+
_,
|
|
61
|
+
y,
|
|
62
|
+
ze,
|
|
63
|
+
We,
|
|
64
|
+
z
|
|
65
|
+
]), d(() => {
|
|
66
|
+
Re.current !== l && (Re.current = l, R(), Le((e) => e?.counterpartId === l ? e : void 0));
|
|
67
|
+
}, [l, R]), d(() => {
|
|
68
|
+
let e = setTimeout(() => {
|
|
69
|
+
De(w.trim());
|
|
70
|
+
}, he);
|
|
71
|
+
return () => clearTimeout(e);
|
|
72
|
+
}, [w]);
|
|
73
|
+
let B = ae({
|
|
74
|
+
sort: "counterpart_name",
|
|
75
|
+
order: "asc",
|
|
76
|
+
limit: me,
|
|
77
|
+
counterpart_name__icontains: T || void 0,
|
|
78
|
+
is_vendor: !0,
|
|
79
|
+
enabled: !y && (E === "edit" || !E && !l) && ye && Te
|
|
80
|
+
});
|
|
81
|
+
d(() => {
|
|
82
|
+
B.isPlaceholderData || (Oe.current = T);
|
|
83
|
+
}, [T, B.isPlaceholderData]);
|
|
84
|
+
let Ke = B.isPlaceholderData && Oe.current !== T, V = ce({
|
|
85
|
+
selectedId: l,
|
|
86
|
+
enabled: Te
|
|
87
|
+
}), qe = oe(), Je = se(), H = le({
|
|
88
|
+
view: Ae,
|
|
89
|
+
setView: je,
|
|
90
|
+
selectedId: Me,
|
|
91
|
+
setSelectedId: Ne,
|
|
92
|
+
messages: a,
|
|
93
|
+
counterpartType: "vendor",
|
|
94
|
+
counterpart: V.counterpart,
|
|
95
|
+
primaryAddress: V.primaryAddress,
|
|
96
|
+
includeBankAccount: !1
|
|
97
|
+
}), { openCreate: Ye, openEdit: Xe, close: Ze, setValues: U, submit: Qe } = H, W = f(() => de(v), [v]), G = W?.bankAccount, K = f(() => {
|
|
98
|
+
let e = V.counterpart;
|
|
99
|
+
if (!e) return;
|
|
100
|
+
if (V.isBankAccountsLoading) return {
|
|
101
|
+
name: c(e),
|
|
102
|
+
email: s(e),
|
|
103
|
+
methodLabel: C.paymentMethodLoading,
|
|
104
|
+
hasPaymentInstructions: !1
|
|
105
|
+
};
|
|
106
|
+
if (V.isBankAccountsError) return {
|
|
107
|
+
name: c(e),
|
|
108
|
+
email: s(e),
|
|
109
|
+
methodLabel: C.paymentMethodUnavailable,
|
|
110
|
+
hasPaymentInstructions: !1
|
|
111
|
+
};
|
|
112
|
+
let t = ne(V.bankAccounts);
|
|
113
|
+
return {
|
|
114
|
+
name: c(e),
|
|
115
|
+
email: s(e),
|
|
116
|
+
methodLabel: t ? C.paymentInstructionsValue(t.account_number?.slice(-4) ?? "") : C.noMethod,
|
|
117
|
+
hasPaymentInstructions: !!t
|
|
118
|
+
};
|
|
119
|
+
}, [
|
|
120
|
+
V.bankAccounts,
|
|
121
|
+
V.counterpart,
|
|
122
|
+
V.isBankAccountsError,
|
|
123
|
+
V.isBankAccountsLoading,
|
|
124
|
+
C
|
|
125
|
+
]), $e = f(() => {
|
|
126
|
+
let e = Ge?.trim();
|
|
127
|
+
if (!e || l || E) return;
|
|
128
|
+
let t = G?.accountNumber;
|
|
129
|
+
return {
|
|
130
|
+
name: e,
|
|
131
|
+
email: v?.email ?? "",
|
|
132
|
+
description: C.pendingVendorDescription,
|
|
133
|
+
methodLabel: t ? C.paymentInstructionsValue(t.slice(-4)) : "",
|
|
134
|
+
hasPaymentInstructions: !!t
|
|
135
|
+
};
|
|
136
|
+
}, [
|
|
137
|
+
l,
|
|
138
|
+
G?.accountNumber,
|
|
139
|
+
v?.email,
|
|
140
|
+
Ge,
|
|
141
|
+
E,
|
|
142
|
+
C.paymentInstructionsValue,
|
|
143
|
+
C.pendingVendorDescription
|
|
144
|
+
]), q = l === _ ? ve : void 0, J = f(() => _e(V.bankAccounts, q), [V.bankAccounts, q]), et = f(() => ne(V.bankAccounts)?.id, [V.bankAccounts]), tt = !V.counterpart || V.isLoading || V.isFetching || V.isError || V.isBankAccountsLoading || V.isBankAccountsFetching || V.isBankAccountsError, nt = tt || V.isAddressesLoading || V.isAddressesFetching || V.isAddressesError, rt = b && !tt && V.isAddressesError ? { onRetry: V.refetchAddresses } : void 0, Y = u(() => {
|
|
145
|
+
Ze(), ke(void 0), D(!1), I.current = void 0;
|
|
146
|
+
}, [Ze]), it = u((e) => {
|
|
147
|
+
if (D(!1), I.current = void 0, e === "edit") Ne(l), Xe();
|
|
148
|
+
else {
|
|
149
|
+
Ye();
|
|
150
|
+
let e = w.trim();
|
|
151
|
+
U((t) => ({
|
|
152
|
+
...t,
|
|
153
|
+
entityType: "organization",
|
|
154
|
+
legalName: e || W?.legalName || t.legalName,
|
|
155
|
+
email: W?.email || t.email,
|
|
156
|
+
phone: W?.phone || t.phone,
|
|
157
|
+
address: W?.address ?? t.address
|
|
158
|
+
})), j(G ?? h), P(void 0), M.current = h;
|
|
159
|
+
}
|
|
160
|
+
ke(e);
|
|
161
|
+
}, [
|
|
162
|
+
l,
|
|
163
|
+
G,
|
|
164
|
+
Ye,
|
|
165
|
+
Xe,
|
|
166
|
+
w,
|
|
167
|
+
U,
|
|
168
|
+
W
|
|
169
|
+
]), at = u(() => {
|
|
170
|
+
let e = J ? ge(J) : h;
|
|
171
|
+
M.current = e, j(e), P(void 0), k(!0);
|
|
172
|
+
}, [J]), ot = u((e) => {
|
|
173
|
+
j((t) => ({
|
|
174
|
+
...t,
|
|
175
|
+
...e
|
|
176
|
+
})), P(void 0);
|
|
177
|
+
}, []), st = u(() => {
|
|
178
|
+
Ue ? S(R) : R();
|
|
179
|
+
}, [
|
|
180
|
+
R,
|
|
181
|
+
S,
|
|
182
|
+
Ue
|
|
183
|
+
]), X = u(() => {
|
|
184
|
+
Y(), R();
|
|
185
|
+
}, [R, Y]), Z = Pe || Ue, Q = u((e) => {
|
|
186
|
+
let t = () => {
|
|
187
|
+
X(), e();
|
|
188
|
+
};
|
|
189
|
+
Z ? S(t) : t();
|
|
190
|
+
}, [
|
|
191
|
+
S,
|
|
192
|
+
X,
|
|
193
|
+
Z
|
|
194
|
+
]), ct = u(() => {
|
|
195
|
+
Z ? S(X) : X();
|
|
196
|
+
}, [
|
|
197
|
+
S,
|
|
198
|
+
X,
|
|
199
|
+
Z
|
|
200
|
+
]), lt = u(async (t) => {
|
|
201
|
+
let n = l, r = !1, i = Fe.current;
|
|
202
|
+
if (!g(i, M.current)) {
|
|
203
|
+
let e = ie(i);
|
|
204
|
+
if (Object.keys(e).length > 0) return P(e), E !== "create" && k(!0), { ok: !1 };
|
|
205
|
+
}
|
|
206
|
+
if (E === "edit" && nt) return { ok: !1 };
|
|
207
|
+
if (E) {
|
|
208
|
+
if (E === "create" && I.current) n = I.current;
|
|
209
|
+
else {
|
|
210
|
+
let e = await Qe();
|
|
211
|
+
if (!e.ok) return { ok: !1 };
|
|
212
|
+
E === "create" ? (n = e.counterpartId, I.current = n) : n = e.counterpartId ?? n;
|
|
213
|
+
}
|
|
214
|
+
E === "create" && (r = !0);
|
|
215
|
+
}
|
|
216
|
+
if (!n) return { ok: !0 };
|
|
217
|
+
let a = V.isBankAccountsLoading || V.isBankAccountsFetching || V.isBankAccountsError;
|
|
218
|
+
if (g(i, M.current)) {
|
|
219
|
+
let e = F ?? q;
|
|
220
|
+
return e ? (t && (k(!1), E && Y()), r && z(n), {
|
|
221
|
+
ok: !0,
|
|
222
|
+
counterpartId: n,
|
|
223
|
+
counterpartBankAccountId: e
|
|
224
|
+
}) : r ? (t && Y(), z(n), {
|
|
225
|
+
ok: !0,
|
|
226
|
+
counterpartId: n
|
|
227
|
+
}) : a ? { ok: !1 } : (t && (k(!1), E && Y()), {
|
|
228
|
+
ok: !0,
|
|
229
|
+
counterpartId: n,
|
|
230
|
+
counterpartBankAccountId: et
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
if (a) return { ok: !1 };
|
|
234
|
+
P(void 0);
|
|
235
|
+
let o = re(V.bankAccounts, F ?? J?.id), s;
|
|
236
|
+
try {
|
|
237
|
+
o.kind === "update" ? (await Je.mutateAsync({
|
|
238
|
+
path: {
|
|
239
|
+
counterpart_id: n,
|
|
240
|
+
bank_account_id: o.bankAccountId
|
|
241
|
+
},
|
|
242
|
+
body: te(i, { includeAchDefaults: o.includeAchDefaults })
|
|
243
|
+
}), s = o.bankAccountId) : s = (await qe.mutateAsync({
|
|
244
|
+
path: { counterpart_id: n },
|
|
245
|
+
body: ee(i, { isDefaultForCurrency: o.isDefaultForCurrency })
|
|
246
|
+
}))?.id;
|
|
247
|
+
} catch {
|
|
248
|
+
return e.error(C.bankAccountSaveFailed), {
|
|
249
|
+
ok: !1,
|
|
250
|
+
counterpartId: n
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
return M.current = i, Le(s ? {
|
|
254
|
+
counterpartId: n,
|
|
255
|
+
bankAccountId: s
|
|
256
|
+
} : void 0), t && (k(!1), E && Y()), r && z(n), {
|
|
257
|
+
ok: !0,
|
|
258
|
+
counterpartId: n,
|
|
259
|
+
counterpartBankAccountId: s
|
|
260
|
+
};
|
|
261
|
+
}, [
|
|
262
|
+
Y,
|
|
263
|
+
l,
|
|
264
|
+
qe,
|
|
265
|
+
V.bankAccounts,
|
|
266
|
+
V.isBankAccountsError,
|
|
267
|
+
V.isBankAccountsFetching,
|
|
268
|
+
V.isBankAccountsLoading,
|
|
269
|
+
E,
|
|
270
|
+
nt,
|
|
271
|
+
q,
|
|
272
|
+
et,
|
|
273
|
+
z,
|
|
274
|
+
J,
|
|
275
|
+
Qe,
|
|
276
|
+
Je,
|
|
277
|
+
F
|
|
278
|
+
]), ut = u((e) => {
|
|
279
|
+
if (L.current) return L.current;
|
|
280
|
+
let t = e?.closeOnSuccess ?? !0, n = (async () => {
|
|
281
|
+
He(!0);
|
|
282
|
+
try {
|
|
283
|
+
return await lt(t);
|
|
284
|
+
} finally {
|
|
285
|
+
L.current = void 0, He(!1);
|
|
286
|
+
}
|
|
287
|
+
})();
|
|
288
|
+
return L.current = n, n;
|
|
289
|
+
}, [lt]), dt = u(() => {
|
|
290
|
+
k(!1), E && Y();
|
|
291
|
+
}, [E, Y]), ft = f(() => (B.data?.data ?? []).map((e) => ({
|
|
292
|
+
name: c(e),
|
|
293
|
+
email: s(e),
|
|
294
|
+
onSelect: () => {
|
|
295
|
+
Q(() => z(e.id));
|
|
296
|
+
}
|
|
297
|
+
})), [
|
|
298
|
+
B.data,
|
|
299
|
+
Q,
|
|
300
|
+
z
|
|
301
|
+
]), pt = u((e) => {
|
|
302
|
+
D(!0), U((t) => e.entityType === "individual" && t.entityType !== "individual" ? {
|
|
303
|
+
...t,
|
|
304
|
+
...e,
|
|
305
|
+
firstName: t.firstName || t.legalName,
|
|
306
|
+
legalName: t.legalName
|
|
307
|
+
} : e.entityType === "organization" && t.entityType !== "organization" ? {
|
|
308
|
+
...t,
|
|
309
|
+
...e,
|
|
310
|
+
legalName: t.legalName || [t.firstName, t.lastName].filter(Boolean).join(" ")
|
|
311
|
+
} : {
|
|
312
|
+
...t,
|
|
313
|
+
...e
|
|
314
|
+
});
|
|
315
|
+
}, [U]), mt = u((e) => {
|
|
316
|
+
D(!0), U((t) => ({
|
|
317
|
+
...t,
|
|
318
|
+
address: {
|
|
319
|
+
...t.address,
|
|
320
|
+
...e
|
|
321
|
+
}
|
|
322
|
+
}));
|
|
323
|
+
}, [U]), ht = {
|
|
324
|
+
query: w,
|
|
325
|
+
onQueryChange: Ee,
|
|
326
|
+
isLoading: !ye || !we || !!l && V.isLoading || B.isLoading || B.isFetching && Ke,
|
|
327
|
+
onAddVendor: () => {
|
|
328
|
+
Q(() => it("create"));
|
|
329
|
+
},
|
|
330
|
+
results: ft
|
|
331
|
+
}, gt = x && (E === "create" || !tt) ? {
|
|
332
|
+
isOpen: O,
|
|
333
|
+
values: A,
|
|
334
|
+
errors: N,
|
|
335
|
+
onOpen: at,
|
|
336
|
+
onCancel: st,
|
|
337
|
+
onChange: ot
|
|
338
|
+
} : void 0, _t = E !== "create" && gt ? {
|
|
339
|
+
...gt,
|
|
340
|
+
onOpen: E === "edit" ? () => Q(at) : gt.onOpen,
|
|
341
|
+
canEditExisting: Se
|
|
342
|
+
} : void 0, vt = H.isSubmitting || qe.isPending || Je.isPending, $ = {
|
|
343
|
+
prepareVendorForSave: ut,
|
|
344
|
+
isVendorSavePending: Ve || vt,
|
|
345
|
+
hasUnsavedVendorChanges: Z,
|
|
346
|
+
isPendingVendor: !!$e,
|
|
347
|
+
isEditingPayTo: !!E || O,
|
|
348
|
+
activePayToOperation: E ? "vendor" : O ? K?.hasPaymentInstructions ? "existingInstructions" : "missingInstructions" : void 0,
|
|
349
|
+
discardPayToEdits: X,
|
|
350
|
+
finalizePayToSave: dt,
|
|
351
|
+
openPaymentInstructions: at,
|
|
352
|
+
paymentInstructions: _t,
|
|
353
|
+
detailsWarning: rt
|
|
354
|
+
}, yt = E === "create" && x ? {
|
|
355
|
+
values: A,
|
|
356
|
+
errors: N,
|
|
357
|
+
onChange: ot,
|
|
358
|
+
isExtracted: !!(G && g(A, G))
|
|
359
|
+
} : void 0;
|
|
360
|
+
if (E) return {
|
|
361
|
+
mode: "creating",
|
|
362
|
+
summary: K,
|
|
363
|
+
newVendorForm: /* @__PURE__ */ pe(fe, {
|
|
364
|
+
mode: E,
|
|
365
|
+
values: H.values,
|
|
366
|
+
errors: H.errors,
|
|
367
|
+
onChange: pt,
|
|
368
|
+
onAddressChange: mt,
|
|
369
|
+
sectionsToExpand: H.sectionsToExpand,
|
|
370
|
+
onAddressExpand: H.expandAddress,
|
|
371
|
+
onCancel: ct,
|
|
372
|
+
onSave: ut,
|
|
373
|
+
isSaving: vt,
|
|
374
|
+
search: E === "edit" && !y ? ht : void 0,
|
|
375
|
+
paymentInstructions: yt
|
|
376
|
+
}),
|
|
377
|
+
...$
|
|
378
|
+
};
|
|
379
|
+
if (K) return {
|
|
380
|
+
mode: "resolved",
|
|
381
|
+
summary: K,
|
|
382
|
+
onEdit: b && !nt ? () => Q(() => it("edit")) : void 0,
|
|
383
|
+
...$
|
|
384
|
+
};
|
|
385
|
+
if ($e) {
|
|
386
|
+
let e = () => Q(() => {
|
|
387
|
+
Be(!0), it("create");
|
|
388
|
+
});
|
|
389
|
+
return {
|
|
390
|
+
mode: "resolved",
|
|
391
|
+
summary: $e,
|
|
392
|
+
onEdit: b ? e : void 0,
|
|
393
|
+
error: xe,
|
|
394
|
+
...$,
|
|
395
|
+
showPaymentInstructions: !0,
|
|
396
|
+
paymentInstructions: b && x ? {
|
|
397
|
+
isOpen: !1,
|
|
398
|
+
values: A,
|
|
399
|
+
errors: N,
|
|
400
|
+
onOpen: e,
|
|
401
|
+
onChange: ot,
|
|
402
|
+
onCancel: st,
|
|
403
|
+
canEditExisting: !0
|
|
404
|
+
} : void 0
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
return {
|
|
408
|
+
mode: "selecting",
|
|
409
|
+
error: B.isError ? C.searchFailed : V.isError ? C.vendorDetailsFailed : xe,
|
|
410
|
+
search: ht,
|
|
411
|
+
...$
|
|
412
|
+
};
|
|
5
413
|
}
|
|
6
414
|
//#endregion
|
|
7
|
-
export {
|
|
415
|
+
export { _ as useVendorSectionProps };
|
|
@@ -1,101 +1,16 @@
|
|
|
1
|
-
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
2
|
-
import { derivePayableStatus as t } from "./index10.js";
|
|
3
|
-
import { resolveVendor as n, resolveVendorName as r } from "./index12.js";
|
|
4
|
-
import { formatBillMoney as i } from "./index2.js";
|
|
5
|
-
import { resolveLineItemAmountMinorUnits as a } from "./index41.js";
|
|
6
|
-
import { resolveLineItemQuantity as o } from "./index42.js";
|
|
7
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js
|
|
8
|
-
function
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
hasScheduledPayment: m,
|
|
20
|
-
now: h
|
|
21
|
-
}), S = n(l), C = r(l), w = e(l.issued_at) || p.notProvided, T = e(l.due_date) || p.notProvided, E = [{
|
|
22
|
-
label: p.vendorRow,
|
|
23
|
-
value: C || p.notProvided,
|
|
24
|
-
secondaryValue: S?.email ?? void 0
|
|
25
|
-
}], D = v ? _?.account_number : void 0;
|
|
26
|
-
D && E.push({
|
|
27
|
-
label: p.bankAccountRow,
|
|
28
|
-
value: p.bankAccountValue(D.slice(-4))
|
|
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;
|
|
10
|
+
}
|
|
11
|
+
t(e.slice(e.indexOf(",") + 1));
|
|
12
|
+
}, r.readAsDataURL(e);
|
|
29
13
|
});
|
|
30
|
-
let O = [
|
|
31
|
-
{
|
|
32
|
-
label: p.invoiceNumberRow,
|
|
33
|
-
value: l.document_id || p.notProvided
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: p.issueDateRow,
|
|
37
|
-
value: w
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label: p.dueDateRow,
|
|
41
|
-
value: T
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: p.poNumberRow,
|
|
45
|
-
value: c(l.purchase_order_number) || p.notProvided
|
|
46
|
-
}
|
|
47
|
-
], k = new Map(f.map((e) => [e.id, [e.nominal_code, e.name].filter(Boolean).join(" — ")])), A = d.map((e) => {
|
|
48
|
-
let t = b(e.unit_price), n = String(o(e));
|
|
49
|
-
return {
|
|
50
|
-
id: e.id,
|
|
51
|
-
description: e.name ?? e.description ?? "",
|
|
52
|
-
glCodeLabel: (e.ledger_account_id ? k.get(e.ledger_account_id) : void 0) || p.glCodeMissing,
|
|
53
|
-
quantityLabel: t ? p.quantityValue(n, t) : p.quantityOnlyValue(n),
|
|
54
|
-
amountLabel: b(a(e)) ?? ""
|
|
55
|
-
};
|
|
56
|
-
}), j = [
|
|
57
|
-
{
|
|
58
|
-
label: p.subtotalRow,
|
|
59
|
-
value: l.subtotal
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: p.discountsRow,
|
|
63
|
-
value: l.discount
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
label: p.taxRow,
|
|
67
|
-
value: l.tax_amount
|
|
68
|
-
}
|
|
69
|
-
].map(({ label: e, value: t }) => ({
|
|
70
|
-
label: e,
|
|
71
|
-
value: b(t)
|
|
72
|
-
})).filter((e) => !!e.value), M = b(s(l));
|
|
73
|
-
M && j.push({
|
|
74
|
-
label: p.totalRow,
|
|
75
|
-
value: M,
|
|
76
|
-
emphasis: !0
|
|
77
|
-
});
|
|
78
|
-
let N = u(l);
|
|
79
|
-
return {
|
|
80
|
-
title: C,
|
|
81
|
-
subtitle: p.subtitle,
|
|
82
|
-
status: x.status,
|
|
83
|
-
statusTone: x.tone,
|
|
84
|
-
amountDueLabel: b(l.amount_due) ?? b(l.total_amount) ?? "",
|
|
85
|
-
amountPaidLabel: N ? b(l.amount_paid) : void 0,
|
|
86
|
-
paidOnLabel: N ? p.paidOnLabel(N) : void 0,
|
|
87
|
-
invoiceDateLabel: w,
|
|
88
|
-
dueDateLabel: T,
|
|
89
|
-
dueDateTone: x.isOverdue ? "danger" : "default",
|
|
90
|
-
payToItems: E,
|
|
91
|
-
invoiceItems: O,
|
|
92
|
-
lineItems: A,
|
|
93
|
-
totals: j,
|
|
94
|
-
rejection: g
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function u(t) {
|
|
98
|
-
return t.status === "paid" && t.paid_at ? e(t.paid_at.slice(0, 10)) : void 0;
|
|
99
14
|
}
|
|
100
15
|
//#endregion
|
|
101
|
-
export {
|
|
16
|
+
export { e as encodeFileToBase64 };
|